Example #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (Status != global::Google.Ads.GoogleAds.V6.Enums.AdGroupAdStatusEnum.Types.AdGroupAdStatus.Unspecified)
            {
                hash ^= Status.GetHashCode();
            }
            if (HasAdGroup)
            {
                hash ^= AdGroup.GetHashCode();
            }
            if (ad_ != null)
            {
                hash ^= Ad.GetHashCode();
            }
            if (policySummary_ != null)
            {
                hash ^= PolicySummary.GetHashCode();
            }
            if (AdStrength != global::Google.Ads.GoogleAds.V6.Enums.AdStrengthEnum.Types.AdStrength.Unspecified)
            {
                hash ^= AdStrength.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (HasFeed)
            {
                hash ^= Feed.GetHashCode();
            }
            if (HasAdGroup)
            {
                hash ^= AdGroup.GetHashCode();
            }
            hash ^= placeholderTypes_.GetHashCode();
            if (matchingFunction_ != null)
            {
                hash ^= MatchingFunction.GetHashCode();
            }
            if (Status != global::Google.Ads.GoogleAds.V6.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus.Unspecified)
            {
                hash ^= Status.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (HasSearchTerm)
            {
                hash ^= SearchTerm.GetHashCode();
            }
            if (HasAdGroup)
            {
                hash ^= AdGroup.GetHashCode();
            }
            if (Status != global::Google.Ads.GoogleAds.V6.Enums.SearchTermTargetingStatusEnum.Types.SearchTermTargetingStatus.Unspecified)
            {
                hash ^= Status.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (ExtensionType != global::Google.Ads.GoogleAds.V6.Enums.ExtensionTypeEnum.Types.ExtensionType.Unspecified)
            {
                hash ^= ExtensionType.GetHashCode();
            }
            if (HasAdGroup)
            {
                hash ^= AdGroup.GetHashCode();
            }
            hash ^= extensionFeedItems_.GetHashCode();
            if (Device != global::Google.Ads.GoogleAds.V6.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice.Unspecified)
            {
                hash ^= Device.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (HasAdGroup)
            {
                hash ^= AdGroup.GetHashCode();
            }
            if (HasCriterionId)
            {
                hash ^= CriterionId.GetHashCode();
            }
            if (HasBidModifier)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(BidModifier);
            }
            if (HasBaseAdGroup)
            {
                hash ^= BaseAdGroup.GetHashCode();
            }
            if (BidModifierSource != global::Google.Ads.GoogleAds.V6.Enums.BidModifierSourceEnum.Types.BidModifierSource.Unspecified)
            {
                hash ^= BidModifierSource.GetHashCode();
            }
            if (criterionCase_ == CriterionOneofCase.HotelDateSelectionType)
            {
                hash ^= HotelDateSelectionType.GetHashCode();
            }
            if (criterionCase_ == CriterionOneofCase.HotelAdvanceBookingWindow)
            {
                hash ^= HotelAdvanceBookingWindow.GetHashCode();
            }
            if (criterionCase_ == CriterionOneofCase.HotelLengthOfStay)
            {
                hash ^= HotelLengthOfStay.GetHashCode();
            }
            if (criterionCase_ == CriterionOneofCase.HotelCheckInDay)
            {
                hash ^= HotelCheckInDay.GetHashCode();
            }
            if (criterionCase_ == CriterionOneofCase.Device)
            {
                hash ^= Device.GetHashCode();
            }
            if (criterionCase_ == CriterionOneofCase.PreferredContent)
            {
                hash ^= PreferredContent.GetHashCode();
            }
            hash ^= (int)criterionCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (HasFeedItem)
            {
                hash ^= FeedItem.GetHashCode();
            }
            if (FeedItemTargetType != global::Google.Ads.GoogleAds.V6.Enums.FeedItemTargetTypeEnum.Types.FeedItemTargetType.Unspecified)
            {
                hash ^= FeedItemTargetType.GetHashCode();
            }
            if (HasFeedItemTargetId)
            {
                hash ^= FeedItemTargetId.GetHashCode();
            }
            if (Status != global::Google.Ads.GoogleAds.V6.Enums.FeedItemTargetStatusEnum.Types.FeedItemTargetStatus.Unspecified)
            {
                hash ^= Status.GetHashCode();
            }
            if (targetCase_ == TargetOneofCase.Campaign)
            {
                hash ^= Campaign.GetHashCode();
            }
            if (targetCase_ == TargetOneofCase.AdGroup)
            {
                hash ^= AdGroup.GetHashCode();
            }
            if (targetCase_ == TargetOneofCase.Keyword)
            {
                hash ^= Keyword.GetHashCode();
            }
            if (targetCase_ == TargetOneofCase.GeoTargetConstant)
            {
                hash ^= GeoTargetConstant.GetHashCode();
            }
            if (targetCase_ == TargetOneofCase.Device)
            {
                hash ^= Device.GetHashCode();
            }
            if (targetCase_ == TargetOneofCase.AdSchedule)
            {
                hash ^= AdSchedule.GetHashCode();
            }
            hash ^= (int)targetCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (HasAdGroup)
            {
                hash ^= AdGroup.GetHashCode();
            }
            if (HasLabel)
            {
                hash ^= Label.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #8
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (HasLastChangeDateTime)
            {
                hash ^= LastChangeDateTime.GetHashCode();
            }
            if (ResourceType != global::Google.Ads.GoogleAds.V6.Enums.ChangeStatusResourceTypeEnum.Types.ChangeStatusResourceType.Unspecified)
            {
                hash ^= ResourceType.GetHashCode();
            }
            if (HasCampaign)
            {
                hash ^= Campaign.GetHashCode();
            }
            if (HasAdGroup)
            {
                hash ^= AdGroup.GetHashCode();
            }
            if (ResourceStatus != global::Google.Ads.GoogleAds.V6.Enums.ChangeStatusOperationEnum.Types.ChangeStatusOperation.Unspecified)
            {
                hash ^= ResourceStatus.GetHashCode();
            }
            if (HasAdGroupAd)
            {
                hash ^= AdGroupAd.GetHashCode();
            }
            if (HasAdGroupCriterion)
            {
                hash ^= AdGroupCriterion.GetHashCode();
            }
            if (HasCampaignCriterion)
            {
                hash ^= CampaignCriterion.GetHashCode();
            }
            if (HasFeed)
            {
                hash ^= Feed.GetHashCode();
            }
            if (HasFeedItem)
            {
                hash ^= FeedItem.GetHashCode();
            }
            if (HasAdGroupFeed)
            {
                hash ^= AdGroupFeed.GetHashCode();
            }
            if (HasCampaignFeed)
            {
                hash ^= CampaignFeed.GetHashCode();
            }
            if (HasAdGroupBidModifier)
            {
                hash ^= AdGroupBidModifier.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }