Example #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 (currentOperation_ == null)
                    {
                        currentOperation_ = new global::Google.Longrunning.Operation();
                    }
                    input.ReadMessage(currentOperation_);
                    break;
                }

                case 26: {
                    columnFamilies_.AddEntriesFrom(input, _map_columnFamilies_codec);
                    break;
                }

                case 32: {
                    granularity_ = (global::Google.Bigtable.Admin.Table.V1.Table.Types.TimestampGranularity)input.ReadEnum();
                    break;
                }
                }
            }
        }
Example #2
0
 public void MergeFrom(Table other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.currentOperation_ != null)
     {
         if (currentOperation_ == null)
         {
             currentOperation_ = new global::Google.Longrunning.Operation();
         }
         CurrentOperation.MergeFrom(other.CurrentOperation);
     }
     columnFamilies_.Add(other.columnFamilies_);
     if (other.Granularity != global::Google.Bigtable.Admin.Table.V1.Table.Types.TimestampGranularity.MILLIS)
     {
         Granularity = other.Granularity;
     }
 }