Exemplo n.º 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 (deleteTime_ == null)
                    {
                        deleteTime_ = new global::Google.Protobuf.Timestamp();
                    }
                    input.ReadMessage(deleteTime_);
                    break;
                }

                case 26: {
                    if (currentOperation_ == null)
                    {
                        currentOperation_ = new global::Google.Longrunning.Operation();
                    }
                    input.ReadMessage(currentOperation_);
                    break;
                }

                case 34: {
                    DisplayName = input.ReadString();
                    break;
                }

                case 40: {
                    ServeNodes = input.ReadInt32();
                    break;
                }

                case 64: {
                    defaultStorageType_ = (global::Google.Bigtable.Admin.Cluster.V1.StorageType)input.ReadEnum();
                    break;
                }
                }
            }
        }
Exemplo n.º 2
0
 public void MergeFrom(Cluster other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.deleteTime_ != null)
     {
         if (deleteTime_ == null)
         {
             deleteTime_ = new global::Google.Protobuf.Timestamp();
         }
         DeleteTime.MergeFrom(other.DeleteTime);
     }
     if (other.currentOperation_ != null)
     {
         if (currentOperation_ == null)
         {
             currentOperation_ = new global::Google.Longrunning.Operation();
         }
         CurrentOperation.MergeFrom(other.CurrentOperation);
     }
     if (other.DisplayName.Length != 0)
     {
         DisplayName = other.DisplayName;
     }
     if (other.ServeNodes != 0)
     {
         ServeNodes = other.ServeNodes;
     }
     if (other.DefaultStorageType != global::Google.Bigtable.Admin.Cluster.V1.StorageType.STORAGE_UNSPECIFIED)
     {
         DefaultStorageType = other.DefaultStorageType;
     }
 }