public bool Equals(Settings other) { if (ReferenceEquals(other, null)) { return(false); } if (ReferenceEquals(other, this)) { return(true); } if (Name != other.Name) { return(false); } if (!object.Equals(BillingSettings, other.BillingSettings)) { return(false); } if (State != other.State) { return(false); } if (OrgServiceAccount != other.OrgServiceAccount) { return(false); } if (!object.Equals(SinkSettings, other.SinkSettings)) { return(false); } if (!ComponentSettings.Equals(other.ComponentSettings)) { return(false); } if (!DetectorGroupSettings.Equals(other.DetectorGroupSettings)) { return(false); } if (Etag != other.Etag) { return(false); } if (!object.Equals(UpdateTime, other.UpdateTime)) { return(false); } return(Equals(_unknownFields, other._unknownFields)); }
public override int GetHashCode() { int hash = 1; if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (billingSettings_ != null) { hash ^= BillingSettings.GetHashCode(); } if (State != global::Google.Cloud.SecurityCenter.Settings.V1Beta1.Settings.Types.OnboardingState.Unspecified) { hash ^= State.GetHashCode(); } if (OrgServiceAccount.Length != 0) { hash ^= OrgServiceAccount.GetHashCode(); } if (sinkSettings_ != null) { hash ^= SinkSettings.GetHashCode(); } hash ^= ComponentSettings.GetHashCode(); hash ^= DetectorGroupSettings.GetHashCode(); if (Etag.Length != 0) { hash ^= Etag.GetHashCode(); } if (updateTime_ != null) { hash ^= UpdateTime.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }