public void MergeFrom(OneOfMessage other) { if (other == null) { return; } if (other.find_ != null) { if (find_ == null) { find_ = new global::Mysqlx.Crud.Find(); } Find.MergeFrom(other.Find); } if (other.insert_ != null) { if (insert_ == null) { insert_ = new global::Mysqlx.Crud.Insert(); } Insert.MergeFrom(other.Insert); } if (other.update_ != null) { if (update_ == null) { update_ = new global::Mysqlx.Crud.Update(); } Update.MergeFrom(other.Update); } if (other.delete_ != null) { if (delete_ == null) { delete_ = new global::Mysqlx.Crud.Delete(); } Delete.MergeFrom(other.Delete); } if (other.stmtExecute_ != null) { if (stmtExecute_ == null) { stmtExecute_ = new global::Mysqlx.Sql.StmtExecute(); } StmtExecute.MergeFrom(other.StmtExecute); } switch (other.TypePresentCase) { case TypePresentOneofCase.Type: Type = other.Type; break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { typePresent_ = input.ReadEnum(); typePresentCase_ = TypePresentOneofCase.Type; break; } case 18: { if (find_ == null) { find_ = new global::Mysqlx.Crud.Find(); } input.ReadMessage(find_); break; } case 26: { if (insert_ == null) { insert_ = new global::Mysqlx.Crud.Insert(); } input.ReadMessage(insert_); break; } case 34: { if (update_ == null) { update_ = new global::Mysqlx.Crud.Update(); } input.ReadMessage(update_); break; } case 42: { if (delete_ == null) { delete_ = new global::Mysqlx.Crud.Delete(); } input.ReadMessage(delete_); break; } case 50: { if (stmtExecute_ == null) { stmtExecute_ = new global::Mysqlx.Sql.StmtExecute(); } input.ReadMessage(stmtExecute_); break; } } } }