示例#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::Mysqlx.Datatypes.Any();
                    }
                    input.ReadMessage(value_);
                    break;
                }
                }
            }
        }
示例#2
0
 public void MergeFrom(Capability other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.value_ != null)
     {
         if (value_ == null)
         {
             value_ = new global::Mysqlx.Datatypes.Any();
         }
         Value.MergeFrom(other.Value);
     }
 }