コード例 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (id_ != null)
            {
                hash ^= Id.GetHashCode();
            }
            if (Type != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (criterionCase_ == CriterionOneofCase.ContentLabel)
            {
                hash ^= ContentLabel.GetHashCode();
            }
            if (criterionCase_ == CriterionOneofCase.MobileApplication)
            {
                hash ^= MobileApplication.GetHashCode();
            }
            if (criterionCase_ == CriterionOneofCase.MobileAppCategory)
            {
                hash ^= MobileAppCategory.GetHashCode();
            }
            if (criterionCase_ == CriterionOneofCase.Placement)
            {
                hash ^= Placement.GetHashCode();
            }
            if (criterionCase_ == CriterionOneofCase.YoutubeVideo)
            {
                hash ^= YoutubeVideo.GetHashCode();
            }
            if (criterionCase_ == CriterionOneofCase.YoutubeChannel)
            {
                hash ^= YoutubeChannel.GetHashCode();
            }
            hash ^= (int)criterionCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (HasId)
            {
                hash ^= Id.GetHashCode();
            }
            if (Type != global::Google.Ads.GoogleAds.V6.Enums.CriterionTypeEnum.Types.CriterionType.Unspecified)
            {
                hash ^= Type.GetHashCode();
            }
            if (criterionCase_ == CriterionOneofCase.ContentLabel)
            {
                hash ^= ContentLabel.GetHashCode();
            }
            if (criterionCase_ == CriterionOneofCase.MobileApplication)
            {
                hash ^= MobileApplication.GetHashCode();
            }
            if (criterionCase_ == CriterionOneofCase.MobileAppCategory)
            {
                hash ^= MobileAppCategory.GetHashCode();
            }
            if (criterionCase_ == CriterionOneofCase.Placement)
            {
                hash ^= Placement.GetHashCode();
            }
            if (criterionCase_ == CriterionOneofCase.YoutubeVideo)
            {
                hash ^= YoutubeVideo.GetHashCode();
            }
            if (criterionCase_ == CriterionOneofCase.YoutubeChannel)
            {
                hash ^= YoutubeChannel.GetHashCode();
            }
            hash ^= (int)criterionCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }