Esempio n. 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (HasId)
            {
                hash ^= Id.GetHashCode();
            }
            if (HasName)
            {
                hash ^= Name.GetHashCode();
            }
            if (HasOsMajorVersion)
            {
                hash ^= OsMajorVersion.GetHashCode();
            }
            if (HasOsMinorVersion)
            {
                hash ^= OsMinorVersion.GetHashCode();
            }
            if (OperatorType != global::Google.Ads.GoogleAds.V7.Enums.OperatingSystemVersionOperatorTypeEnum.Types.OperatingSystemVersionOperatorType.Unspecified)
            {
                hash ^= OperatorType.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 (name_ != null)
            {
                hash ^= Name.GetHashCode();
            }
            if (osMajorVersion_ != null)
            {
                hash ^= OsMajorVersion.GetHashCode();
            }
            if (osMinorVersion_ != null)
            {
                hash ^= OsMinorVersion.GetHashCode();
            }
            if (OperatorType != 0)
            {
                hash ^= OperatorType.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }