public override int GetHashCode() { int hash = 1; if (Type.Length != 0) { hash ^= Type.GetHashCode(); } hash ^= pattern_.GetHashCode(); if (NameField.Length != 0) { hash ^= NameField.GetHashCode(); } if (History != global::Google.Api.ResourceDescriptor.Types.History.Unspecified) { hash ^= History.GetHashCode(); } if (Plural.Length != 0) { hash ^= Plural.GetHashCode(); } if (Singular.Length != 0) { hash ^= Singular.GetHashCode(); } hash ^= style_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { var hash = 0x1505L; if (Context != null) { hash = ((hash << 5) + hash) ^ Context.GetHashCode(); } hash = ((hash << 5) + hash) ^ Singular.GetHashCode(); if (Plural != null) { hash = ((hash << 5) + hash) ^ Plural.GetHashCode(); } return(hash.GetHashCode()); }
public override int GetHashCode() { return(Singular.GetHashCode() ^ (Plural?.GetHashCode() ?? 0) ^ (Context?.GetHashCode() ?? 0)); }