public override int GetHashCode() { int hash = 1; if (ProjectId.Length != 0) { hash ^= ProjectId.GetHashCode(); } if (IndexId.Length != 0) { hash ^= IndexId.GetHashCode(); } if (Kind.Length != 0) { hash ^= Kind.GetHashCode(); } if (Ancestor != global::Google.Cloud.Datastore.Admin.V1.Index.Types.AncestorMode.Unspecified) { hash ^= Ancestor.GetHashCode(); } hash ^= properties_.GetHashCode(); if (State != global::Google.Cloud.Datastore.Admin.V1.Index.Types.State.Unspecified) { hash ^= State.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }