public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (HasId)
            {
                hash ^= Id.GetHashCode();
            }
            if (HasCampaignDraft)
            {
                hash ^= CampaignDraft.GetHashCode();
            }
            if (HasName)
            {
                hash ^= Name.GetHashCode();
            }
            if (HasDescription)
            {
                hash ^= Description.GetHashCode();
            }
            if (HasTrafficSplitPercent)
            {
                hash ^= TrafficSplitPercent.GetHashCode();
            }
            if (TrafficSplitType != global::Google.Ads.GoogleAds.V9.Enums.CampaignExperimentTrafficSplitTypeEnum.Types.CampaignExperimentTrafficSplitType.Unspecified)
            {
                hash ^= TrafficSplitType.GetHashCode();
            }
            if (HasExperimentCampaign)
            {
                hash ^= ExperimentCampaign.GetHashCode();
            }
            if (Status != global::Google.Ads.GoogleAds.V9.Enums.CampaignExperimentStatusEnum.Types.CampaignExperimentStatus.Unspecified)
            {
                hash ^= Status.GetHashCode();
            }
            if (HasLongRunningOperation)
            {
                hash ^= LongRunningOperation.GetHashCode();
            }
            if (HasStartDate)
            {
                hash ^= StartDate.GetHashCode();
            }
            if (HasEndDate)
            {
                hash ^= EndDate.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (id_ != null)
            {
                hash ^= Id.GetHashCode();
            }
            if (campaignDraft_ != null)
            {
                hash ^= CampaignDraft.GetHashCode();
            }
            if (name_ != null)
            {
                hash ^= Name.GetHashCode();
            }
            if (description_ != null)
            {
                hash ^= Description.GetHashCode();
            }
            if (trafficSplitPercent_ != null)
            {
                hash ^= TrafficSplitPercent.GetHashCode();
            }
            if (TrafficSplitType != global::Google.Ads.GoogleAds.V5.Enums.CampaignExperimentTrafficSplitTypeEnum.Types.CampaignExperimentTrafficSplitType.Unspecified)
            {
                hash ^= TrafficSplitType.GetHashCode();
            }
            if (experimentCampaign_ != null)
            {
                hash ^= ExperimentCampaign.GetHashCode();
            }
            if (Status != global::Google.Ads.GoogleAds.V5.Enums.CampaignExperimentStatusEnum.Types.CampaignExperimentStatus.Unspecified)
            {
                hash ^= Status.GetHashCode();
            }
            if (longRunningOperation_ != null)
            {
                hash ^= LongRunningOperation.GetHashCode();
            }
            if (startDate_ != null)
            {
                hash ^= StartDate.GetHashCode();
            }
            if (endDate_ != null)
            {
                hash ^= EndDate.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (HasExperimentId)
            {
                hash ^= ExperimentId.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            if (Suffix.Length != 0)
            {
                hash ^= Suffix.GetHashCode();
            }
            if (Type != global::Google.Ads.GoogleAds.V10.Enums.ExperimentTypeEnum.Types.ExperimentType.Unspecified)
            {
                hash ^= Type.GetHashCode();
            }
            if (Status != global::Google.Ads.GoogleAds.V10.Enums.ExperimentStatusEnum.Types.ExperimentStatus.Unspecified)
            {
                hash ^= Status.GetHashCode();
            }
            if (HasStartDate)
            {
                hash ^= StartDate.GetHashCode();
            }
            if (HasEndDate)
            {
                hash ^= EndDate.GetHashCode();
            }
            hash ^= goals_.GetHashCode();
            if (HasLongRunningOperation)
            {
                hash ^= LongRunningOperation.GetHashCode();
            }
            if (PromoteStatus != global::Google.Ads.GoogleAds.V10.Enums.AsyncActionStatusEnum.Types.AsyncActionStatus.Unspecified)
            {
                hash ^= PromoteStatus.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (HasDraftId)
            {
                hash ^= DraftId.GetHashCode();
            }
            if (HasBaseCampaign)
            {
                hash ^= BaseCampaign.GetHashCode();
            }
            if (HasName)
            {
                hash ^= Name.GetHashCode();
            }
            if (HasDraftCampaign)
            {
                hash ^= DraftCampaign.GetHashCode();
            }
            if (Status != global::Google.Ads.GoogleAds.V10.Enums.CampaignDraftStatusEnum.Types.CampaignDraftStatus.Unspecified)
            {
                hash ^= Status.GetHashCode();
            }
            if (HasHasExperimentRunning)
            {
                hash ^= HasExperimentRunning.GetHashCode();
            }
            if (HasLongRunningOperation)
            {
                hash ^= LongRunningOperation.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }