示例#1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (deleteTime_ != null)
            {
                hash ^= DeleteTime.GetHashCode();
            }
            if (currentOperation_ != null)
            {
                hash ^= CurrentOperation.GetHashCode();
            }
            if (DisplayName.Length != 0)
            {
                hash ^= DisplayName.GetHashCode();
            }
            if (ServeNodes != 0)
            {
                hash ^= ServeNodes.GetHashCode();
            }
            if (DefaultStorageType != global::Google.Bigtable.Admin.Cluster.V1.StorageType.STORAGE_UNSPECIFIED)
            {
                hash ^= DefaultStorageType.GetHashCode();
            }
            return(hash);
        }
示例#2
0
 public void Dispose()
 {
     // If not rolling back and the dir was renamed by this command
     // then delete it. Otherwise, just leave the ".deleted" directory
     if (!RollBackRequested && _sourceDirRenamed)
     {
         DeleteTime.Start();
         DirectoryUtility.DeleteIfExists(_dir + ".deleted");
         DeleteTime.End();
     }
 }
示例#3
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;
     }
 }
示例#4
0
 protected PoolItemBase(DeleteTime deleteTime)
 {
     mDeleteTime = deleteTime;
 }
示例#5
0
 public void SetDeleteTime(DeleteTime deleteTime)
 {
     mDeleteTime = deleteTime;
 }
示例#6
0
 public bool IsDeleted()
 {
     return(!DeleteTime.Equals(new DateTime(0)));
 }