public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { Name = input.ReadString(); break; } case 18: { if (value_ == null) { value_ = new global::Bgs.Protocol.Variant(); } input.ReadMessage(value_); break; } } } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Name = input.ReadString(); break; } case 18: { if (!HasValue) { Value = new global::Bgs.Protocol.Variant(); } input.ReadMessage(Value); break; } } } }
public void MergeFrom(Attribute other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.value_ != null) { if (value_ == null) { value_ = new global::Bgs.Protocol.Variant(); } Value.MergeFrom(other.Value); } }
public void MergeFrom(Attribute other) { if (other == null) { return; } if (other.HasName) { Name = other.Name; } if (other.HasValue) { if (!HasValue) { Value = new global::Bgs.Protocol.Variant(); } Value.MergeFrom(other.Value); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(Field other) { if (other == null) { return; } if (other.key_ != null) { if (key_ == null) { key_ = new global::Bgs.Protocol.Presence.V1.FieldKey(); } Key.MergeFrom(other.Key); } if (other.value_ != null) { if (value_ == null) { value_ = new global::Bgs.Protocol.Variant(); } Value.MergeFrom(other.Value); } }
public void ClearValue() { value_ = null; }