コード例 #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.V9.Enums.FeedItemTargetTypeEnum.Types.FeedItemTargetType.Unspecified)
            {
                hash ^= FeedItemTargetType.GetHashCode();
            }
            if (HasFeedItemTargetId)
            {
                hash ^= FeedItemTargetId.GetHashCode();
            }
            if (Status != global::Google.Ads.GoogleAds.V9.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);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (HasGeoTargetConstant)
            {
                hash ^= GeoTargetConstant.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }