Esempio n. 1
0
        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 global::Bgs.Protocol.Presence.V1.FieldKey();
                    }
                    input.ReadMessage(key_);
                    break;
                }

                case 18: {
                    if (value_ == null)
                    {
                        value_ = new global::Bgs.Protocol.Variant();
                    }
                    input.ReadMessage(value_);
                    break;
                }
                }
            }
        }
Esempio n. 2
0
 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);
     }
 }