コード例 #1
0
        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;
                }
                }
            }
        }
コード例 #2
0
        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;
                }
                }
            }
        }
コード例 #3
0
 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);
     }
 }
コード例 #4
0
 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);
 }
コード例 #5
0
ファイル: PresenceTypes.cs プロジェクト: doriangray2/Tools
 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);
     }
 }
コード例 #6
0
 public void ClearValue()
 {
     value_ = null;
 }