コード例 #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: {
                    GcExpression = input.ReadString();
                    break;
                }

                case 26: {
                    if (gcRule_ == null)
                    {
                        gcRule_ = new global::Google.Bigtable.Admin.Table.V1.GcRule();
                    }
                    input.ReadMessage(gcRule_);
                    break;
                }
                }
            }
        }
コード例 #2
0
 public void MergeFrom(ColumnFamily other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.GcExpression.Length != 0)
     {
         GcExpression = other.GcExpression;
     }
     if (other.gcRule_ != null)
     {
         if (gcRule_ == null)
         {
             gcRule_ = new global::Google.Bigtable.Admin.Table.V1.GcRule();
         }
         GcRule.MergeFrom(other.GcRule);
     }
 }