public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (field_ == null) { field_ = new global::Bgs.Protocol.Presence.V1.Field(); } input.ReadMessage(field_); break; } case 16: { operation_ = (global::Bgs.Protocol.Presence.V1.FieldOperation.Types.OperationType)input.ReadEnum(); break; } } } }
public void MergeFrom(FieldOperation other) { if (other == null) { return; } if (other.field_ != null) { if (field_ == null) { field_ = new global::Bgs.Protocol.Presence.V1.Field(); } Field.MergeFrom(other.Field); } if (other.Operation != global::Bgs.Protocol.Presence.V1.FieldOperation.Types.OperationType.SET) { Operation = other.Operation; } }