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); }
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(); } }
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; } }
protected PoolItemBase(DeleteTime deleteTime) { mDeleteTime = deleteTime; }
public void SetDeleteTime(DeleteTime deleteTime) { mDeleteTime = deleteTime; }
public bool IsDeleted() { return(!DeleteTime.Equals(new DateTime(0))); }