コード例 #1
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);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (draftId_ != null)
            {
                hash ^= DraftId.GetHashCode();
            }
            if (baseCampaign_ != null)
            {
                hash ^= BaseCampaign.GetHashCode();
            }
            if (name_ != null)
            {
                hash ^= Name.GetHashCode();
            }
            if (draftCampaign_ != null)
            {
                hash ^= DraftCampaign.GetHashCode();
            }
            if (Status != 0)
            {
                hash ^= Status.GetHashCode();
            }
            if (hasExperimentRunning_ != null)
            {
                hash ^= HasExperimentRunning.GetHashCode();
            }
            if (longRunningOperation_ != null)
            {
                hash ^= LongRunningOperation.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }