Example #1
0
        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.V7.Enums.FeedItemTargetTypeEnum.Types.FeedItemTargetType.Unspecified)
            {
                hash ^= FeedItemTargetType.GetHashCode();
            }
            if (HasFeedItemTargetId)
            {
                hash ^= FeedItemTargetId.GetHashCode();
            }
            if (Status != global::Google.Ads.GoogleAds.V7.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 (FeedItem.Length != 0)
            {
                hash ^= FeedItem.GetHashCode();
            }
            if (FeedItemSet.Length != 0)
            {
                hash ^= FeedItemSet.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #3
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.V7.Enums.ChangeStatusResourceTypeEnum.Types.ChangeStatusResourceType.Unspecified)
            {
                hash ^= ResourceType.GetHashCode();
            }
            if (HasCampaign)
            {
                hash ^= Campaign.GetHashCode();
            }
            if (HasAdGroup)
            {
                hash ^= AdGroup.GetHashCode();
            }
            if (ResourceStatus != global::Google.Ads.GoogleAds.V7.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);
        }