public override int GetHashCode() { int hash = 1; if (typeCase_ == TypeOneofCase.Poi) { hash ^= Poi.GetHashCode(); } if (typeCase_ == TypeOneofCase.Trace) { hash ^= Trace.GetHashCode(); } if (typeCase_ == TypeOneofCase.Landmark) { hash ^= Landmark.GetHashCode(); } if (typeCase_ == TypeOneofCase.PotionIngredient) { hash ^= PotionIngredient.GetHashCode(); } if (typeCase_ == TypeOneofCase.Weather) { hash ^= Weather.GetHashCode(); } if (typeCase_ == TypeOneofCase.EnvironmentTags) { hash ^= EnvironmentTags.GetHashCode(); } hash ^= (int)typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 0; if (!string.IsNullOrWhiteSpace(AddressLine)) { hash ^= AddressLine.GetHashCode(); } if (!string.IsNullOrWhiteSpace(AdminDistrict)) { hash ^= AdminDistrict.GetHashCode(); } if (!string.IsNullOrWhiteSpace(AdminDistrict2)) { hash ^= AdminDistrict2.GetHashCode(); } if (!string.IsNullOrWhiteSpace(CountryRegion)) { hash ^= CountryRegion.GetHashCode(); } if (!string.IsNullOrWhiteSpace(FormattedAddress)) { hash ^= FormattedAddress.GetHashCode(); } if (!string.IsNullOrWhiteSpace(Locality)) { hash ^= Locality.GetHashCode(); } if (!string.IsNullOrWhiteSpace(PostalCode)) { hash ^= PostalCode.GetHashCode(); } if (!string.IsNullOrWhiteSpace(PostalTown)) { hash ^= PostalTown.GetHashCode(); } if (!string.IsNullOrWhiteSpace(Landmark)) { hash ^= Landmark.GetHashCode(); } if (!string.IsNullOrWhiteSpace(Neighborhood)) { hash ^= Neighborhood.GetHashCode(); } return(hash); }