public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (key_ == null) { key_ = new Bgs.Protocol.Presence.V1.FieldKey(); } input.ReadMessage(key_); break; } case 18: { if (value_ == null) { value_ = new Bgs.Protocol.Variant(); } input.ReadMessage(value_); break; } } } }
public void MergeFrom(Field other) { if (other == null) { return; } if (other.key_ != null) { if (key_ == null) { key_ = new Bgs.Protocol.Presence.V1.FieldKey(); } Key.MergeFrom(other.Key); } if (other.value_ != null) { if (value_ == null) { value_ = new Bgs.Protocol.Variant(); } Value.MergeFrom(other.Value); } }