Beispiel #1
0
 /// <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 (Label != null)
         {
             hashCode = hashCode * 59 + Label.GetHashCode();
         }
         if (LanguageCode != null)
         {
             hashCode = hashCode * 59 + LanguageCode.GetHashCode();
         }
         if (IsManaged != null)
         {
             hashCode = hashCode * 59 + IsManaged.GetHashCode();
         }
         if (MetadataId != null)
         {
             hashCode = hashCode * 59 + MetadataId.GetHashCode();
         }
         if (HasChanged != null)
         {
             hashCode = hashCode * 59 + HasChanged.GetHashCode();
         }
         return(hashCode);
     }
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (Parent.Length != 0)
            {
                hash ^= Parent.GetHashCode();
            }
            if (Resume.Length != 0)
            {
                hash ^= Resume.GetHashCode();
            }
            if (RegionCode.Length != 0)
            {
                hash ^= RegionCode.GetHashCode();
            }
            if (LanguageCode.Length != 0)
            {
                hash ^= LanguageCode.GetHashCode();
            }
            if (options_ != null)
            {
                hash ^= Options.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #3
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((LanguageCode != null ? LanguageCode.GetHashCode() : 0) * 397) ^ (LanguageRegion != null ? LanguageRegion.GetHashCode() : 0));
     }
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (Result.Length != 0)
            {
                hash ^= Result.GetHashCode();
            }
            if (Passcode.Length != 0)
            {
                hash ^= Passcode.GetHashCode();
            }
            if (CountryCode.Length != 0)
            {
                hash ^= CountryCode.GetHashCode();
            }
            if (LanguageCode.Length != 0)
            {
                hash ^= LanguageCode.GetHashCode();
            }
            if (BundleVersion.Length != 0)
            {
                hash ^= BundleVersion.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (HasCountryCode)
            {
                hash ^= CountryCode.GetHashCode();
            }
            if (HasLanguageCode)
            {
                hash ^= LanguageCode.GetHashCode();
            }
            if (HasDisplayName)
            {
                hash ^= DisplayName.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #6
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((LanguageCode != null ? LanguageCode.GetHashCode() : 0) * 397) ^ (int)Mode);
     }
 }
Beispiel #7
0
#pragma warning restore CS0649 // Field is never assigned to, and will always have its default value

        public override int GetHashCode()
        {
            int toReturn = base.GetHashCode();

            toReturn ^= CountryCode.GetHashCode();
            toReturn ^= LanguageCode.GetHashCode();
            return(toReturn);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (OrgDisplayName.Length != 0)
            {
                hash ^= OrgDisplayName.GetHashCode();
            }
            if (orgPostalAddress_ != null)
            {
                hash ^= OrgPostalAddress.GetHashCode();
            }
            if (primaryContactInfo_ != null)
            {
                hash ^= PrimaryContactInfo.GetHashCode();
            }
            if (AlternateEmail.Length != 0)
            {
                hash ^= AlternateEmail.GetHashCode();
            }
            if (Domain.Length != 0)
            {
                hash ^= Domain.GetHashCode();
            }
            if (createTime_ != null)
            {
                hash ^= CreateTime.GetHashCode();
            }
            if (updateTime_ != null)
            {
                hash ^= UpdateTime.GetHashCode();
            }
            if (CloudIdentityId.Length != 0)
            {
                hash ^= CloudIdentityId.GetHashCode();
            }
            if (LanguageCode.Length != 0)
            {
                hash ^= LanguageCode.GetHashCode();
            }
            if (cloudIdentityInfo_ != null)
            {
                hash ^= CloudIdentityInfo.GetHashCode();
            }
            if (ChannelPartnerId.Length != 0)
            {
                hash ^= ChannelPartnerId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #9
0
        public override int GetHashCode()
        {
            int hashCode = 0;

            unchecked {
                if (LanguageCode != null)
                {
                    hashCode += LanguageCode.GetHashCode();
                }
            }
            return(hashCode);
        }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (LayoutId != null ? LayoutId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (LayoutVariant != null ? LayoutVariant.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (LanguageCode != null ? LanguageCode.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CountryCode != null ? CountryCode.GetHashCode() : 0);
         return(hashCode);
     }
 }
Beispiel #11
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Revision != 0)
            {
                hash ^= Revision.GetHashCode();
            }
            if (RegionCode.Length != 0)
            {
                hash ^= RegionCode.GetHashCode();
            }
            if (LanguageCode.Length != 0)
            {
                hash ^= LanguageCode.GetHashCode();
            }
            if (PostalCode.Length != 0)
            {
                hash ^= PostalCode.GetHashCode();
            }
            if (SortingCode.Length != 0)
            {
                hash ^= SortingCode.GetHashCode();
            }
            if (AdministrativeArea.Length != 0)
            {
                hash ^= AdministrativeArea.GetHashCode();
            }
            if (Locality.Length != 0)
            {
                hash ^= Locality.GetHashCode();
            }
            if (Sublocality.Length != 0)
            {
                hash ^= Sublocality.GetHashCode();
            }
            hash ^= addressLines_.GetHashCode();
            hash ^= recipients_.GetHashCode();
            if (Organization.Length != 0)
            {
                hash ^= Organization.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (HasCampaign)
            {
                hash ^= Campaign.GetHashCode();
            }
            if (HasCategory)
            {
                hash ^= Category.GetHashCode();
            }
            if (HasLanguageCode)
            {
                hash ^= LanguageCode.GetHashCode();
            }
            if (HasDomain)
            {
                hash ^= Domain.GetHashCode();
            }
            if (HasCoverageFraction)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(CoverageFraction);
            }
            if (HasCategoryRank)
            {
                hash ^= CategoryRank.GetHashCode();
            }
            if (HasHasChildren)
            {
                hash ^= HasChildren.GetHashCode();
            }
            if (HasRecommendedCpcBidMicros)
            {
                hash ^= RecommendedCpcBidMicros.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #13
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked
     {
         // ReSharper disable NonReadonlyMemberInGetHashCode
         var hashCode = Id;
         hashCode = (hashCode * 397) ^ IsBot.GetHashCode();
         hashCode = (hashCode * 397) ^ (FirstName?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (LastName?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Username?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (LanguageCode?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (CanJoinGroups?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (CanReadAllGroupMessages?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (SupportsInlineQueries?.GetHashCode() ?? 0);
         // ReSharper restore NonReadonlyMemberInGetHashCode
         return(hashCode);
     }
 }
Beispiel #14
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (id_ != null)
            {
                hash ^= Id.GetHashCode();
            }
            if (countryCode_ != null)
            {
                hash ^= CountryCode.GetHashCode();
            }
            if (productBiddingCategoryConstantParent_ != null)
            {
                hash ^= ProductBiddingCategoryConstantParent.GetHashCode();
            }
            if (Level != global::Google.Ads.GoogleAds.V4.Enums.ProductBiddingCategoryLevelEnum.Types.ProductBiddingCategoryLevel.Unspecified)
            {
                hash ^= Level.GetHashCode();
            }
            if (Status != global::Google.Ads.GoogleAds.V4.Enums.ProductBiddingCategoryStatusEnum.Types.ProductBiddingCategoryStatus.Unspecified)
            {
                hash ^= Status.GetHashCode();
            }
            if (languageCode_ != null)
            {
                hash ^= LanguageCode.GetHashCode();
            }
            if (localizedName_ != null)
            {
                hash ^= LocalizedName.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (id_ != null)
            {
                hash ^= Id.GetHashCode();
            }
            if (countryCode_ != null)
            {
                hash ^= CountryCode.GetHashCode();
            }
            if (productBiddingCategoryConstantParent_ != null)
            {
                hash ^= ProductBiddingCategoryConstantParent.GetHashCode();
            }
            if (Level != 0)
            {
                hash ^= Level.GetHashCode();
            }
            if (Status != 0)
            {
                hash ^= Status.GetHashCode();
            }
            if (languageCode_ != null)
            {
                hash ^= LanguageCode.GetHashCode();
            }
            if (localizedName_ != null)
            {
                hash ^= LocalizedName.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #16
0
        public override int GetHashCode()
        {
            int hashCode = -1340049772;

            if (Id != null)
            {
                hashCode += Id.GetHashCode();
            }

            if (BusinessName != null)
            {
                hashCode += BusinessName.GetHashCode();
            }

            if (Country != null)
            {
                hashCode += Country.GetHashCode();
            }

            if (LanguageCode != null)
            {
                hashCode += LanguageCode.GetHashCode();
            }

            if (Currency != null)
            {
                hashCode += Currency.GetHashCode();
            }

            if (Status != null)
            {
                hashCode += Status.GetHashCode();
            }

            if (MainLocationId != null)
            {
                hashCode += MainLocationId.GetHashCode();
            }

            return(hashCode);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (AvailabilityMode != global::Google.Ads.GoogleAds.V8.Enums.CriterionCategoryLocaleAvailabilityModeEnum.Types.CriterionCategoryLocaleAvailabilityMode.Unspecified)
            {
                hash ^= AvailabilityMode.GetHashCode();
            }
            if (HasCountryCode)
            {
                hash ^= CountryCode.GetHashCode();
            }
            if (HasLanguageCode)
            {
                hash ^= LanguageCode.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #18
0
 public override int GetHashCode() =>
 LanguageCode != null?LanguageCode.GetHashCode() : base.GetHashCode();
Beispiel #19
0
 public override int GetHashCode()
 {
     return(GetType().GetHashCode() + LanguageCode.GetHashCode());
 }
Beispiel #20
0
 public override int GetHashCode() => LanguageCode.GetHashCode();
Beispiel #21
0
        public override int GetHashCode()
        {
            int hashCode = -255518735;

            if (Id != null)
            {
                hashCode += Id.GetHashCode();
            }

            if (Name != null)
            {
                hashCode += Name.GetHashCode();
            }

            if (Address != null)
            {
                hashCode += Address.GetHashCode();
            }

            if (Timezone != null)
            {
                hashCode += Timezone.GetHashCode();
            }

            if (Capabilities != null)
            {
                hashCode += Capabilities.GetHashCode();
            }

            if (Status != null)
            {
                hashCode += Status.GetHashCode();
            }

            if (CreatedAt != null)
            {
                hashCode += CreatedAt.GetHashCode();
            }

            if (MerchantId != null)
            {
                hashCode += MerchantId.GetHashCode();
            }

            if (Country != null)
            {
                hashCode += Country.GetHashCode();
            }

            if (LanguageCode != null)
            {
                hashCode += LanguageCode.GetHashCode();
            }

            if (Currency != null)
            {
                hashCode += Currency.GetHashCode();
            }

            if (PhoneNumber != null)
            {
                hashCode += PhoneNumber.GetHashCode();
            }

            if (BusinessName != null)
            {
                hashCode += BusinessName.GetHashCode();
            }

            if (Type != null)
            {
                hashCode += Type.GetHashCode();
            }

            if (WebsiteUrl != null)
            {
                hashCode += WebsiteUrl.GetHashCode();
            }

            if (BusinessHours != null)
            {
                hashCode += BusinessHours.GetHashCode();
            }

            if (BusinessEmail != null)
            {
                hashCode += BusinessEmail.GetHashCode();
            }

            if (Description != null)
            {
                hashCode += Description.GetHashCode();
            }

            if (TwitterUsername != null)
            {
                hashCode += TwitterUsername.GetHashCode();
            }

            if (InstagramUsername != null)
            {
                hashCode += InstagramUsername.GetHashCode();
            }

            if (FacebookUrl != null)
            {
                hashCode += FacebookUrl.GetHashCode();
            }

            if (Coordinates != null)
            {
                hashCode += Coordinates.GetHashCode();
            }

            if (LogoUrl != null)
            {
                hashCode += LogoUrl.GetHashCode();
            }

            if (PosBackgroundUrl != null)
            {
                hashCode += PosBackgroundUrl.GetHashCode();
            }

            if (Mcc != null)
            {
                hashCode += Mcc.GetHashCode();
            }

            if (FullFormatLogoUrl != null)
            {
                hashCode += FullFormatLogoUrl.GetHashCode();
            }

            return(hashCode);
        }