/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (Id != null) { hashCode = hashCode * 59 + Id.GetHashCode(); } if (ResourceState != null) { hashCode = hashCode * 59 + ResourceState.GetHashCode(); } if (Primary != null) { hashCode = hashCode * 59 + Primary.GetHashCode(); } if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (Distance != null) { hashCode = hashCode * 59 + Distance.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (Primary != false) { hash ^= Primary.GetHashCode(); } if (Username.Length != 0) { hash ^= Username.GetHashCode(); } if (Uid != 0L) { hash ^= Uid.GetHashCode(); } if (Gid != 0L) { hash ^= Gid.GetHashCode(); } if (HomeDirectory.Length != 0) { hash ^= HomeDirectory.GetHashCode(); } if (Shell.Length != 0) { hash ^= Shell.GetHashCode(); } if (Gecos.Length != 0) { hash ^= Gecos.GetHashCode(); } if (SystemId.Length != 0) { hash ^= SystemId.GetHashCode(); } if (AccountId.Length != 0) { hash ^= AccountId.GetHashCode(); } if (OperatingSystemType != global::Google.Cloud.OsLogin.Common.OperatingSystemType.Unspecified) { hash ^= OperatingSystemType.GetHashCode(); } if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
///<inheritdoc/> public override int GetHashCode() { int hash = 17; // Overflow is fine, just wrap unchecked { hash = (hash * 29) + Primary.GetHashCode(); hash = (hash * 29) + Secondary.GetHashCode(); hash = (hash * 29) + AHD.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (Primary != false) { hash ^= Primary.GetHashCode(); } if (Username.Length != 0) { hash ^= Username.GetHashCode(); } if (Uid != 0L) { hash ^= Uid.GetHashCode(); } if (Gid != 0L) { hash ^= Gid.GetHashCode(); } if (HomeDirectory.Length != 0) { hash ^= HomeDirectory.GetHashCode(); } if (Shell.Length != 0) { hash ^= Shell.GetHashCode(); } if (Gecos.Length != 0) { hash ^= Gecos.GetHashCode(); } if (SystemId.Length != 0) { hash ^= SystemId.GetHashCode(); } if (AccountId.Length != 0) { hash ^= AccountId.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (Id.Length != 0) { hash ^= Id.GetHashCode(); } if (KeyId.Length != 0) { hash ^= KeyId.GetHashCode(); } if (Status != global::Yandex.Cloud.Kms.V1.SymmetricKeyVersion.Types.Status.Unspecified) { hash ^= Status.GetHashCode(); } if (Algorithm != global::Yandex.Cloud.Kms.V1.SymmetricAlgorithm.Unspecified) { hash ^= Algorithm.GetHashCode(); } if (createdAt_ != null) { hash ^= CreatedAt.GetHashCode(); } if (Primary != false) { hash ^= Primary.GetHashCode(); } if (destroyAt_ != null) { hash ^= DestroyAt.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (primary_ != null) { hash ^= Primary.GetHashCode(); } if (Purpose != 0) { hash ^= Purpose.GetHashCode(); } if (createTime_ != null) { hash ^= CreateTime.GetHashCode(); } if (nextRotationTime_ != null) { hash ^= NextRotationTime.GetHashCode(); } if (rotationScheduleCase_ == RotationScheduleOneofCase.RotationPeriod) { hash ^= RotationPeriod.GetHashCode(); } hash ^= Labels.GetHashCode(); hash ^= (int)rotationScheduleCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { return(Primary.GetHashCode()); }