All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.ads.googleads.v10.services.GenerateReachForecastRequest Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v10/services/reach_plan_service.proto

package com.google.ads.googleads.v10.services;

/**
 * 
 * Request message for [ReachPlanService.GenerateReachForecast][google.ads.googleads.v10.services.ReachPlanService.GenerateReachForecast].
 * 
* * Protobuf type {@code google.ads.googleads.v10.services.GenerateReachForecastRequest} */ public final class GenerateReachForecastRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.services.GenerateReachForecastRequest) GenerateReachForecastRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GenerateReachForecastRequest.newBuilder() to construct. private GenerateReachForecastRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GenerateReachForecastRequest() { customerId_ = ""; currencyCode_ = ""; plannedProducts_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GenerateReachForecastRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.services.ReachPlanServiceProto.internal_static_google_ads_googleads_v10_services_GenerateReachForecastRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.services.ReachPlanServiceProto.internal_static_google_ads_googleads_v10_services_GenerateReachForecastRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.services.GenerateReachForecastRequest.class, com.google.ads.googleads.v10.services.GenerateReachForecastRequest.Builder.class); } private int bitField0_; public static final int CUSTOMER_ID_FIELD_NUMBER = 1; private volatile java.lang.Object customerId_; /** *
   * Required. The ID of the customer.
   * 
* * string customer_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The customerId. */ @java.lang.Override public java.lang.String getCustomerId() { java.lang.Object ref = customerId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customerId_ = s; return s; } } /** *
   * Required. The ID of the customer.
   * 
* * string customer_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for customerId. */ @java.lang.Override public com.google.protobuf.ByteString getCustomerIdBytes() { java.lang.Object ref = customerId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); customerId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CURRENCY_CODE_FIELD_NUMBER = 9; private volatile java.lang.Object currencyCode_; /** *
   * The currency code.
   * Three-character ISO 4217 currency code.
   * 
* * optional string currency_code = 9; * @return Whether the currencyCode field is set. */ @java.lang.Override public boolean hasCurrencyCode() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * The currency code.
   * Three-character ISO 4217 currency code.
   * 
* * optional string currency_code = 9; * @return The currencyCode. */ @java.lang.Override public java.lang.String getCurrencyCode() { java.lang.Object ref = currencyCode_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currencyCode_ = s; return s; } } /** *
   * The currency code.
   * Three-character ISO 4217 currency code.
   * 
* * optional string currency_code = 9; * @return The bytes for currencyCode. */ @java.lang.Override public com.google.protobuf.ByteString getCurrencyCodeBytes() { java.lang.Object ref = currencyCode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); currencyCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CAMPAIGN_DURATION_FIELD_NUMBER = 3; private com.google.ads.googleads.v10.services.CampaignDuration campaignDuration_; /** *
   * Required. Campaign duration.
   * 
* * .google.ads.googleads.v10.services.CampaignDuration campaign_duration = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the campaignDuration field is set. */ @java.lang.Override public boolean hasCampaignDuration() { return campaignDuration_ != null; } /** *
   * Required. Campaign duration.
   * 
* * .google.ads.googleads.v10.services.CampaignDuration campaign_duration = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The campaignDuration. */ @java.lang.Override public com.google.ads.googleads.v10.services.CampaignDuration getCampaignDuration() { return campaignDuration_ == null ? com.google.ads.googleads.v10.services.CampaignDuration.getDefaultInstance() : campaignDuration_; } /** *
   * Required. Campaign duration.
   * 
* * .google.ads.googleads.v10.services.CampaignDuration campaign_duration = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.ads.googleads.v10.services.CampaignDurationOrBuilder getCampaignDurationOrBuilder() { return getCampaignDuration(); } public static final int COOKIE_FREQUENCY_CAP_FIELD_NUMBER = 10; private int cookieFrequencyCap_; /** *
   * Chosen cookie frequency cap to be applied to each planned product.
   * This is equivalent to the frequency cap exposed in Google Ads when creating
   * a campaign, it represents the maximum number of times an ad can be shown to
   * the same user.
   * If not specified, no cap is applied.
   * This field is deprecated in v4 and will eventually be removed.
   * Use cookie_frequency_cap_setting instead.
   * 
* * optional int32 cookie_frequency_cap = 10; * @return Whether the cookieFrequencyCap field is set. */ @java.lang.Override public boolean hasCookieFrequencyCap() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Chosen cookie frequency cap to be applied to each planned product.
   * This is equivalent to the frequency cap exposed in Google Ads when creating
   * a campaign, it represents the maximum number of times an ad can be shown to
   * the same user.
   * If not specified, no cap is applied.
   * This field is deprecated in v4 and will eventually be removed.
   * Use cookie_frequency_cap_setting instead.
   * 
* * optional int32 cookie_frequency_cap = 10; * @return The cookieFrequencyCap. */ @java.lang.Override public int getCookieFrequencyCap() { return cookieFrequencyCap_; } public static final int COOKIE_FREQUENCY_CAP_SETTING_FIELD_NUMBER = 8; private com.google.ads.googleads.v10.services.FrequencyCap cookieFrequencyCapSetting_; /** *
   * Chosen cookie frequency cap to be applied to each planned product.
   * This is equivalent to the frequency cap exposed in Google Ads when creating
   * a campaign, it represents the maximum number of times an ad can be shown to
   * the same user during a specified time interval.
   * If not specified, a default of 0 (no cap) is applied.
   * This field replaces the deprecated cookie_frequency_cap field.
   * 
* * .google.ads.googleads.v10.services.FrequencyCap cookie_frequency_cap_setting = 8; * @return Whether the cookieFrequencyCapSetting field is set. */ @java.lang.Override public boolean hasCookieFrequencyCapSetting() { return cookieFrequencyCapSetting_ != null; } /** *
   * Chosen cookie frequency cap to be applied to each planned product.
   * This is equivalent to the frequency cap exposed in Google Ads when creating
   * a campaign, it represents the maximum number of times an ad can be shown to
   * the same user during a specified time interval.
   * If not specified, a default of 0 (no cap) is applied.
   * This field replaces the deprecated cookie_frequency_cap field.
   * 
* * .google.ads.googleads.v10.services.FrequencyCap cookie_frequency_cap_setting = 8; * @return The cookieFrequencyCapSetting. */ @java.lang.Override public com.google.ads.googleads.v10.services.FrequencyCap getCookieFrequencyCapSetting() { return cookieFrequencyCapSetting_ == null ? com.google.ads.googleads.v10.services.FrequencyCap.getDefaultInstance() : cookieFrequencyCapSetting_; } /** *
   * Chosen cookie frequency cap to be applied to each planned product.
   * This is equivalent to the frequency cap exposed in Google Ads when creating
   * a campaign, it represents the maximum number of times an ad can be shown to
   * the same user during a specified time interval.
   * If not specified, a default of 0 (no cap) is applied.
   * This field replaces the deprecated cookie_frequency_cap field.
   * 
* * .google.ads.googleads.v10.services.FrequencyCap cookie_frequency_cap_setting = 8; */ @java.lang.Override public com.google.ads.googleads.v10.services.FrequencyCapOrBuilder getCookieFrequencyCapSettingOrBuilder() { return getCookieFrequencyCapSetting(); } public static final int MIN_EFFECTIVE_FREQUENCY_FIELD_NUMBER = 11; private int minEffectiveFrequency_; /** *
   * Chosen minimum effective frequency (the number of times a person was
   * exposed to the ad) for the reported reach metrics [1-10].
   * This won't affect the targeting, but just the reporting.
   * If not specified, a default of 1 is applied.
   * This field cannot be combined with the effective_frequency_limit field.
   * 
* * optional int32 min_effective_frequency = 11; * @return Whether the minEffectiveFrequency field is set. */ @java.lang.Override public boolean hasMinEffectiveFrequency() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * Chosen minimum effective frequency (the number of times a person was
   * exposed to the ad) for the reported reach metrics [1-10].
   * This won't affect the targeting, but just the reporting.
   * If not specified, a default of 1 is applied.
   * This field cannot be combined with the effective_frequency_limit field.
   * 
* * optional int32 min_effective_frequency = 11; * @return The minEffectiveFrequency. */ @java.lang.Override public int getMinEffectiveFrequency() { return minEffectiveFrequency_; } public static final int EFFECTIVE_FREQUENCY_LIMIT_FIELD_NUMBER = 12; private com.google.ads.googleads.v10.services.EffectiveFrequencyLimit effectiveFrequencyLimit_; /** *
   * The highest minimum effective frequency (the number of times a person was
   * exposed to the ad) value [1-10] to include in
   * Forecast.effective_frequency_breakdowns.
   * If not specified, Forecast.effective_frequency_breakdowns will not be
   * provided.
   * The effective frequency value provided here will also be used as the
   * minimum effective frequency for the reported reach metrics.
   * This field cannot be combined with the min_effective_frequency field.
   * 
* * optional .google.ads.googleads.v10.services.EffectiveFrequencyLimit effective_frequency_limit = 12; * @return Whether the effectiveFrequencyLimit field is set. */ @java.lang.Override public boolean hasEffectiveFrequencyLimit() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * The highest minimum effective frequency (the number of times a person was
   * exposed to the ad) value [1-10] to include in
   * Forecast.effective_frequency_breakdowns.
   * If not specified, Forecast.effective_frequency_breakdowns will not be
   * provided.
   * The effective frequency value provided here will also be used as the
   * minimum effective frequency for the reported reach metrics.
   * This field cannot be combined with the min_effective_frequency field.
   * 
* * optional .google.ads.googleads.v10.services.EffectiveFrequencyLimit effective_frequency_limit = 12; * @return The effectiveFrequencyLimit. */ @java.lang.Override public com.google.ads.googleads.v10.services.EffectiveFrequencyLimit getEffectiveFrequencyLimit() { return effectiveFrequencyLimit_ == null ? com.google.ads.googleads.v10.services.EffectiveFrequencyLimit.getDefaultInstance() : effectiveFrequencyLimit_; } /** *
   * The highest minimum effective frequency (the number of times a person was
   * exposed to the ad) value [1-10] to include in
   * Forecast.effective_frequency_breakdowns.
   * If not specified, Forecast.effective_frequency_breakdowns will not be
   * provided.
   * The effective frequency value provided here will also be used as the
   * minimum effective frequency for the reported reach metrics.
   * This field cannot be combined with the min_effective_frequency field.
   * 
* * optional .google.ads.googleads.v10.services.EffectiveFrequencyLimit effective_frequency_limit = 12; */ @java.lang.Override public com.google.ads.googleads.v10.services.EffectiveFrequencyLimitOrBuilder getEffectiveFrequencyLimitOrBuilder() { return effectiveFrequencyLimit_ == null ? com.google.ads.googleads.v10.services.EffectiveFrequencyLimit.getDefaultInstance() : effectiveFrequencyLimit_; } public static final int TARGETING_FIELD_NUMBER = 6; private com.google.ads.googleads.v10.services.Targeting targeting_; /** *
   * The targeting to be applied to all products selected in the product mix.
   * This is planned targeting: execution details might vary based on the
   * advertising product, consult an implementation specialist.
   * See specific metrics for details on how targeting affects them.
   * 
* * .google.ads.googleads.v10.services.Targeting targeting = 6; * @return Whether the targeting field is set. */ @java.lang.Override public boolean hasTargeting() { return targeting_ != null; } /** *
   * The targeting to be applied to all products selected in the product mix.
   * This is planned targeting: execution details might vary based on the
   * advertising product, consult an implementation specialist.
   * See specific metrics for details on how targeting affects them.
   * 
* * .google.ads.googleads.v10.services.Targeting targeting = 6; * @return The targeting. */ @java.lang.Override public com.google.ads.googleads.v10.services.Targeting getTargeting() { return targeting_ == null ? com.google.ads.googleads.v10.services.Targeting.getDefaultInstance() : targeting_; } /** *
   * The targeting to be applied to all products selected in the product mix.
   * This is planned targeting: execution details might vary based on the
   * advertising product, consult an implementation specialist.
   * See specific metrics for details on how targeting affects them.
   * 
* * .google.ads.googleads.v10.services.Targeting targeting = 6; */ @java.lang.Override public com.google.ads.googleads.v10.services.TargetingOrBuilder getTargetingOrBuilder() { return getTargeting(); } public static final int PLANNED_PRODUCTS_FIELD_NUMBER = 7; private java.util.List plannedProducts_; /** *
   * Required. The products to be forecast.
   * The max number of allowed planned products is 15.
   * 
* * repeated .google.ads.googleads.v10.services.PlannedProduct planned_products = 7 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getPlannedProductsList() { return plannedProducts_; } /** *
   * Required. The products to be forecast.
   * The max number of allowed planned products is 15.
   * 
* * repeated .google.ads.googleads.v10.services.PlannedProduct planned_products = 7 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getPlannedProductsOrBuilderList() { return plannedProducts_; } /** *
   * Required. The products to be forecast.
   * The max number of allowed planned products is 15.
   * 
* * repeated .google.ads.googleads.v10.services.PlannedProduct planned_products = 7 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getPlannedProductsCount() { return plannedProducts_.size(); } /** *
   * Required. The products to be forecast.
   * The max number of allowed planned products is 15.
   * 
* * repeated .google.ads.googleads.v10.services.PlannedProduct planned_products = 7 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.ads.googleads.v10.services.PlannedProduct getPlannedProducts(int index) { return plannedProducts_.get(index); } /** *
   * Required. The products to be forecast.
   * The max number of allowed planned products is 15.
   * 
* * repeated .google.ads.googleads.v10.services.PlannedProduct planned_products = 7 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.ads.googleads.v10.services.PlannedProductOrBuilder getPlannedProductsOrBuilder( int index) { return plannedProducts_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, customerId_); } if (campaignDuration_ != null) { output.writeMessage(3, getCampaignDuration()); } if (targeting_ != null) { output.writeMessage(6, getTargeting()); } for (int i = 0; i < plannedProducts_.size(); i++) { output.writeMessage(7, plannedProducts_.get(i)); } if (cookieFrequencyCapSetting_ != null) { output.writeMessage(8, getCookieFrequencyCapSetting()); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, currencyCode_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(10, cookieFrequencyCap_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeInt32(11, minEffectiveFrequency_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(12, getEffectiveFrequencyLimit()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, customerId_); } if (campaignDuration_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCampaignDuration()); } if (targeting_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getTargeting()); } for (int i = 0; i < plannedProducts_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, plannedProducts_.get(i)); } if (cookieFrequencyCapSetting_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getCookieFrequencyCapSetting()); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, currencyCode_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(10, cookieFrequencyCap_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(11, minEffectiveFrequency_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getEffectiveFrequencyLimit()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.ads.googleads.v10.services.GenerateReachForecastRequest)) { return super.equals(obj); } com.google.ads.googleads.v10.services.GenerateReachForecastRequest other = (com.google.ads.googleads.v10.services.GenerateReachForecastRequest) obj; if (!getCustomerId() .equals(other.getCustomerId())) return false; if (hasCurrencyCode() != other.hasCurrencyCode()) return false; if (hasCurrencyCode()) { if (!getCurrencyCode() .equals(other.getCurrencyCode())) return false; } if (hasCampaignDuration() != other.hasCampaignDuration()) return false; if (hasCampaignDuration()) { if (!getCampaignDuration() .equals(other.getCampaignDuration())) return false; } if (hasCookieFrequencyCap() != other.hasCookieFrequencyCap()) return false; if (hasCookieFrequencyCap()) { if (getCookieFrequencyCap() != other.getCookieFrequencyCap()) return false; } if (hasCookieFrequencyCapSetting() != other.hasCookieFrequencyCapSetting()) return false; if (hasCookieFrequencyCapSetting()) { if (!getCookieFrequencyCapSetting() .equals(other.getCookieFrequencyCapSetting())) return false; } if (hasMinEffectiveFrequency() != other.hasMinEffectiveFrequency()) return false; if (hasMinEffectiveFrequency()) { if (getMinEffectiveFrequency() != other.getMinEffectiveFrequency()) return false; } if (hasEffectiveFrequencyLimit() != other.hasEffectiveFrequencyLimit()) return false; if (hasEffectiveFrequencyLimit()) { if (!getEffectiveFrequencyLimit() .equals(other.getEffectiveFrequencyLimit())) return false; } if (hasTargeting() != other.hasTargeting()) return false; if (hasTargeting()) { if (!getTargeting() .equals(other.getTargeting())) return false; } if (!getPlannedProductsList() .equals(other.getPlannedProductsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CUSTOMER_ID_FIELD_NUMBER; hash = (53 * hash) + getCustomerId().hashCode(); if (hasCurrencyCode()) { hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER; hash = (53 * hash) + getCurrencyCode().hashCode(); } if (hasCampaignDuration()) { hash = (37 * hash) + CAMPAIGN_DURATION_FIELD_NUMBER; hash = (53 * hash) + getCampaignDuration().hashCode(); } if (hasCookieFrequencyCap()) { hash = (37 * hash) + COOKIE_FREQUENCY_CAP_FIELD_NUMBER; hash = (53 * hash) + getCookieFrequencyCap(); } if (hasCookieFrequencyCapSetting()) { hash = (37 * hash) + COOKIE_FREQUENCY_CAP_SETTING_FIELD_NUMBER; hash = (53 * hash) + getCookieFrequencyCapSetting().hashCode(); } if (hasMinEffectiveFrequency()) { hash = (37 * hash) + MIN_EFFECTIVE_FREQUENCY_FIELD_NUMBER; hash = (53 * hash) + getMinEffectiveFrequency(); } if (hasEffectiveFrequencyLimit()) { hash = (37 * hash) + EFFECTIVE_FREQUENCY_LIMIT_FIELD_NUMBER; hash = (53 * hash) + getEffectiveFrequencyLimit().hashCode(); } if (hasTargeting()) { hash = (37 * hash) + TARGETING_FIELD_NUMBER; hash = (53 * hash) + getTargeting().hashCode(); } if (getPlannedProductsCount() > 0) { hash = (37 * hash) + PLANNED_PRODUCTS_FIELD_NUMBER; hash = (53 * hash) + getPlannedProductsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v10.services.GenerateReachForecastRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.services.GenerateReachForecastRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.services.GenerateReachForecastRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.services.GenerateReachForecastRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.services.GenerateReachForecastRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.services.GenerateReachForecastRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.services.GenerateReachForecastRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.services.GenerateReachForecastRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v10.services.GenerateReachForecastRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.services.GenerateReachForecastRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v10.services.GenerateReachForecastRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.services.GenerateReachForecastRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.ads.googleads.v10.services.GenerateReachForecastRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Request message for [ReachPlanService.GenerateReachForecast][google.ads.googleads.v10.services.ReachPlanService.GenerateReachForecast].
   * 
* * Protobuf type {@code google.ads.googleads.v10.services.GenerateReachForecastRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.services.GenerateReachForecastRequest) com.google.ads.googleads.v10.services.GenerateReachForecastRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.services.ReachPlanServiceProto.internal_static_google_ads_googleads_v10_services_GenerateReachForecastRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.services.ReachPlanServiceProto.internal_static_google_ads_googleads_v10_services_GenerateReachForecastRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.services.GenerateReachForecastRequest.class, com.google.ads.googleads.v10.services.GenerateReachForecastRequest.Builder.class); } // Construct using com.google.ads.googleads.v10.services.GenerateReachForecastRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getEffectiveFrequencyLimitFieldBuilder(); getPlannedProductsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); customerId_ = ""; currencyCode_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (campaignDurationBuilder_ == null) { campaignDuration_ = null; } else { campaignDuration_ = null; campaignDurationBuilder_ = null; } cookieFrequencyCap_ = 0; bitField0_ = (bitField0_ & ~0x00000002); if (cookieFrequencyCapSettingBuilder_ == null) { cookieFrequencyCapSetting_ = null; } else { cookieFrequencyCapSetting_ = null; cookieFrequencyCapSettingBuilder_ = null; } minEffectiveFrequency_ = 0; bitField0_ = (bitField0_ & ~0x00000004); if (effectiveFrequencyLimitBuilder_ == null) { effectiveFrequencyLimit_ = null; } else { effectiveFrequencyLimitBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (targetingBuilder_ == null) { targeting_ = null; } else { targeting_ = null; targetingBuilder_ = null; } if (plannedProductsBuilder_ == null) { plannedProducts_ = java.util.Collections.emptyList(); } else { plannedProducts_ = null; plannedProductsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.services.ReachPlanServiceProto.internal_static_google_ads_googleads_v10_services_GenerateReachForecastRequest_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.services.GenerateReachForecastRequest getDefaultInstanceForType() { return com.google.ads.googleads.v10.services.GenerateReachForecastRequest.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.services.GenerateReachForecastRequest build() { com.google.ads.googleads.v10.services.GenerateReachForecastRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.services.GenerateReachForecastRequest buildPartial() { com.google.ads.googleads.v10.services.GenerateReachForecastRequest result = new com.google.ads.googleads.v10.services.GenerateReachForecastRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.customerId_ = customerId_; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.currencyCode_ = currencyCode_; if (campaignDurationBuilder_ == null) { result.campaignDuration_ = campaignDuration_; } else { result.campaignDuration_ = campaignDurationBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.cookieFrequencyCap_ = cookieFrequencyCap_; to_bitField0_ |= 0x00000002; } if (cookieFrequencyCapSettingBuilder_ == null) { result.cookieFrequencyCapSetting_ = cookieFrequencyCapSetting_; } else { result.cookieFrequencyCapSetting_ = cookieFrequencyCapSettingBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.minEffectiveFrequency_ = minEffectiveFrequency_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { if (effectiveFrequencyLimitBuilder_ == null) { result.effectiveFrequencyLimit_ = effectiveFrequencyLimit_; } else { result.effectiveFrequencyLimit_ = effectiveFrequencyLimitBuilder_.build(); } to_bitField0_ |= 0x00000008; } if (targetingBuilder_ == null) { result.targeting_ = targeting_; } else { result.targeting_ = targetingBuilder_.build(); } if (plannedProductsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { plannedProducts_ = java.util.Collections.unmodifiableList(plannedProducts_); bitField0_ = (bitField0_ & ~0x00000010); } result.plannedProducts_ = plannedProducts_; } else { result.plannedProducts_ = plannedProductsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.services.GenerateReachForecastRequest) { return mergeFrom((com.google.ads.googleads.v10.services.GenerateReachForecastRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.services.GenerateReachForecastRequest other) { if (other == com.google.ads.googleads.v10.services.GenerateReachForecastRequest.getDefaultInstance()) return this; if (!other.getCustomerId().isEmpty()) { customerId_ = other.customerId_; onChanged(); } if (other.hasCurrencyCode()) { bitField0_ |= 0x00000001; currencyCode_ = other.currencyCode_; onChanged(); } if (other.hasCampaignDuration()) { mergeCampaignDuration(other.getCampaignDuration()); } if (other.hasCookieFrequencyCap()) { setCookieFrequencyCap(other.getCookieFrequencyCap()); } if (other.hasCookieFrequencyCapSetting()) { mergeCookieFrequencyCapSetting(other.getCookieFrequencyCapSetting()); } if (other.hasMinEffectiveFrequency()) { setMinEffectiveFrequency(other.getMinEffectiveFrequency()); } if (other.hasEffectiveFrequencyLimit()) { mergeEffectiveFrequencyLimit(other.getEffectiveFrequencyLimit()); } if (other.hasTargeting()) { mergeTargeting(other.getTargeting()); } if (plannedProductsBuilder_ == null) { if (!other.plannedProducts_.isEmpty()) { if (plannedProducts_.isEmpty()) { plannedProducts_ = other.plannedProducts_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensurePlannedProductsIsMutable(); plannedProducts_.addAll(other.plannedProducts_); } onChanged(); } } else { if (!other.plannedProducts_.isEmpty()) { if (plannedProductsBuilder_.isEmpty()) { plannedProductsBuilder_.dispose(); plannedProductsBuilder_ = null; plannedProducts_ = other.plannedProducts_; bitField0_ = (bitField0_ & ~0x00000010); plannedProductsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPlannedProductsFieldBuilder() : null; } else { plannedProductsBuilder_.addAllMessages(other.plannedProducts_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { customerId_ = input.readStringRequireUtf8(); break; } // case 10 case 26: { input.readMessage( getCampaignDurationFieldBuilder().getBuilder(), extensionRegistry); break; } // case 26 case 50: { input.readMessage( getTargetingFieldBuilder().getBuilder(), extensionRegistry); break; } // case 50 case 58: { com.google.ads.googleads.v10.services.PlannedProduct m = input.readMessage( com.google.ads.googleads.v10.services.PlannedProduct.parser(), extensionRegistry); if (plannedProductsBuilder_ == null) { ensurePlannedProductsIsMutable(); plannedProducts_.add(m); } else { plannedProductsBuilder_.addMessage(m); } break; } // case 58 case 66: { input.readMessage( getCookieFrequencyCapSettingFieldBuilder().getBuilder(), extensionRegistry); break; } // case 66 case 74: { currencyCode_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 74 case 80: { cookieFrequencyCap_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 80 case 88: { minEffectiveFrequency_ = input.readInt32(); bitField0_ |= 0x00000004; break; } // case 88 case 98: { input.readMessage( getEffectiveFrequencyLimitFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 98 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object customerId_ = ""; /** *
     * Required. The ID of the customer.
     * 
* * string customer_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The customerId. */ public java.lang.String getCustomerId() { java.lang.Object ref = customerId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customerId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Required. The ID of the customer.
     * 
* * string customer_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for customerId. */ public com.google.protobuf.ByteString getCustomerIdBytes() { java.lang.Object ref = customerId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); customerId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Required. The ID of the customer.
     * 
* * string customer_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The customerId to set. * @return This builder for chaining. */ public Builder setCustomerId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } customerId_ = value; onChanged(); return this; } /** *
     * Required. The ID of the customer.
     * 
* * string customer_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearCustomerId() { customerId_ = getDefaultInstance().getCustomerId(); onChanged(); return this; } /** *
     * Required. The ID of the customer.
     * 
* * string customer_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes for customerId to set. * @return This builder for chaining. */ public Builder setCustomerIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); customerId_ = value; onChanged(); return this; } private java.lang.Object currencyCode_ = ""; /** *
     * The currency code.
     * Three-character ISO 4217 currency code.
     * 
* * optional string currency_code = 9; * @return Whether the currencyCode field is set. */ public boolean hasCurrencyCode() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The currency code.
     * Three-character ISO 4217 currency code.
     * 
* * optional string currency_code = 9; * @return The currencyCode. */ public java.lang.String getCurrencyCode() { java.lang.Object ref = currencyCode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currencyCode_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The currency code.
     * Three-character ISO 4217 currency code.
     * 
* * optional string currency_code = 9; * @return The bytes for currencyCode. */ public com.google.protobuf.ByteString getCurrencyCodeBytes() { java.lang.Object ref = currencyCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); currencyCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The currency code.
     * Three-character ISO 4217 currency code.
     * 
* * optional string currency_code = 9; * @param value The currencyCode to set. * @return This builder for chaining. */ public Builder setCurrencyCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; currencyCode_ = value; onChanged(); return this; } /** *
     * The currency code.
     * Three-character ISO 4217 currency code.
     * 
* * optional string currency_code = 9; * @return This builder for chaining. */ public Builder clearCurrencyCode() { bitField0_ = (bitField0_ & ~0x00000001); currencyCode_ = getDefaultInstance().getCurrencyCode(); onChanged(); return this; } /** *
     * The currency code.
     * Three-character ISO 4217 currency code.
     * 
* * optional string currency_code = 9; * @param value The bytes for currencyCode to set. * @return This builder for chaining. */ public Builder setCurrencyCodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000001; currencyCode_ = value; onChanged(); return this; } private com.google.ads.googleads.v10.services.CampaignDuration campaignDuration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.services.CampaignDuration, com.google.ads.googleads.v10.services.CampaignDuration.Builder, com.google.ads.googleads.v10.services.CampaignDurationOrBuilder> campaignDurationBuilder_; /** *
     * Required. Campaign duration.
     * 
* * .google.ads.googleads.v10.services.CampaignDuration campaign_duration = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the campaignDuration field is set. */ public boolean hasCampaignDuration() { return campaignDurationBuilder_ != null || campaignDuration_ != null; } /** *
     * Required. Campaign duration.
     * 
* * .google.ads.googleads.v10.services.CampaignDuration campaign_duration = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The campaignDuration. */ public com.google.ads.googleads.v10.services.CampaignDuration getCampaignDuration() { if (campaignDurationBuilder_ == null) { return campaignDuration_ == null ? com.google.ads.googleads.v10.services.CampaignDuration.getDefaultInstance() : campaignDuration_; } else { return campaignDurationBuilder_.getMessage(); } } /** *
     * Required. Campaign duration.
     * 
* * .google.ads.googleads.v10.services.CampaignDuration campaign_duration = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCampaignDuration(com.google.ads.googleads.v10.services.CampaignDuration value) { if (campaignDurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } campaignDuration_ = value; onChanged(); } else { campaignDurationBuilder_.setMessage(value); } return this; } /** *
     * Required. Campaign duration.
     * 
* * .google.ads.googleads.v10.services.CampaignDuration campaign_duration = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCampaignDuration( com.google.ads.googleads.v10.services.CampaignDuration.Builder builderForValue) { if (campaignDurationBuilder_ == null) { campaignDuration_ = builderForValue.build(); onChanged(); } else { campaignDurationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Required. Campaign duration.
     * 
* * .google.ads.googleads.v10.services.CampaignDuration campaign_duration = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeCampaignDuration(com.google.ads.googleads.v10.services.CampaignDuration value) { if (campaignDurationBuilder_ == null) { if (campaignDuration_ != null) { campaignDuration_ = com.google.ads.googleads.v10.services.CampaignDuration.newBuilder(campaignDuration_).mergeFrom(value).buildPartial(); } else { campaignDuration_ = value; } onChanged(); } else { campaignDurationBuilder_.mergeFrom(value); } return this; } /** *
     * Required. Campaign duration.
     * 
* * .google.ads.googleads.v10.services.CampaignDuration campaign_duration = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCampaignDuration() { if (campaignDurationBuilder_ == null) { campaignDuration_ = null; onChanged(); } else { campaignDuration_ = null; campaignDurationBuilder_ = null; } return this; } /** *
     * Required. Campaign duration.
     * 
* * .google.ads.googleads.v10.services.CampaignDuration campaign_duration = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.ads.googleads.v10.services.CampaignDuration.Builder getCampaignDurationBuilder() { onChanged(); return getCampaignDurationFieldBuilder().getBuilder(); } /** *
     * Required. Campaign duration.
     * 
* * .google.ads.googleads.v10.services.CampaignDuration campaign_duration = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.ads.googleads.v10.services.CampaignDurationOrBuilder getCampaignDurationOrBuilder() { if (campaignDurationBuilder_ != null) { return campaignDurationBuilder_.getMessageOrBuilder(); } else { return campaignDuration_ == null ? com.google.ads.googleads.v10.services.CampaignDuration.getDefaultInstance() : campaignDuration_; } } /** *
     * Required. Campaign duration.
     * 
* * .google.ads.googleads.v10.services.CampaignDuration campaign_duration = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.services.CampaignDuration, com.google.ads.googleads.v10.services.CampaignDuration.Builder, com.google.ads.googleads.v10.services.CampaignDurationOrBuilder> getCampaignDurationFieldBuilder() { if (campaignDurationBuilder_ == null) { campaignDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.services.CampaignDuration, com.google.ads.googleads.v10.services.CampaignDuration.Builder, com.google.ads.googleads.v10.services.CampaignDurationOrBuilder>( getCampaignDuration(), getParentForChildren(), isClean()); campaignDuration_ = null; } return campaignDurationBuilder_; } private int cookieFrequencyCap_ ; /** *
     * Chosen cookie frequency cap to be applied to each planned product.
     * This is equivalent to the frequency cap exposed in Google Ads when creating
     * a campaign, it represents the maximum number of times an ad can be shown to
     * the same user.
     * If not specified, no cap is applied.
     * This field is deprecated in v4 and will eventually be removed.
     * Use cookie_frequency_cap_setting instead.
     * 
* * optional int32 cookie_frequency_cap = 10; * @return Whether the cookieFrequencyCap field is set. */ @java.lang.Override public boolean hasCookieFrequencyCap() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Chosen cookie frequency cap to be applied to each planned product.
     * This is equivalent to the frequency cap exposed in Google Ads when creating
     * a campaign, it represents the maximum number of times an ad can be shown to
     * the same user.
     * If not specified, no cap is applied.
     * This field is deprecated in v4 and will eventually be removed.
     * Use cookie_frequency_cap_setting instead.
     * 
* * optional int32 cookie_frequency_cap = 10; * @return The cookieFrequencyCap. */ @java.lang.Override public int getCookieFrequencyCap() { return cookieFrequencyCap_; } /** *
     * Chosen cookie frequency cap to be applied to each planned product.
     * This is equivalent to the frequency cap exposed in Google Ads when creating
     * a campaign, it represents the maximum number of times an ad can be shown to
     * the same user.
     * If not specified, no cap is applied.
     * This field is deprecated in v4 and will eventually be removed.
     * Use cookie_frequency_cap_setting instead.
     * 
* * optional int32 cookie_frequency_cap = 10; * @param value The cookieFrequencyCap to set. * @return This builder for chaining. */ public Builder setCookieFrequencyCap(int value) { bitField0_ |= 0x00000002; cookieFrequencyCap_ = value; onChanged(); return this; } /** *
     * Chosen cookie frequency cap to be applied to each planned product.
     * This is equivalent to the frequency cap exposed in Google Ads when creating
     * a campaign, it represents the maximum number of times an ad can be shown to
     * the same user.
     * If not specified, no cap is applied.
     * This field is deprecated in v4 and will eventually be removed.
     * Use cookie_frequency_cap_setting instead.
     * 
* * optional int32 cookie_frequency_cap = 10; * @return This builder for chaining. */ public Builder clearCookieFrequencyCap() { bitField0_ = (bitField0_ & ~0x00000002); cookieFrequencyCap_ = 0; onChanged(); return this; } private com.google.ads.googleads.v10.services.FrequencyCap cookieFrequencyCapSetting_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.services.FrequencyCap, com.google.ads.googleads.v10.services.FrequencyCap.Builder, com.google.ads.googleads.v10.services.FrequencyCapOrBuilder> cookieFrequencyCapSettingBuilder_; /** *
     * Chosen cookie frequency cap to be applied to each planned product.
     * This is equivalent to the frequency cap exposed in Google Ads when creating
     * a campaign, it represents the maximum number of times an ad can be shown to
     * the same user during a specified time interval.
     * If not specified, a default of 0 (no cap) is applied.
     * This field replaces the deprecated cookie_frequency_cap field.
     * 
* * .google.ads.googleads.v10.services.FrequencyCap cookie_frequency_cap_setting = 8; * @return Whether the cookieFrequencyCapSetting field is set. */ public boolean hasCookieFrequencyCapSetting() { return cookieFrequencyCapSettingBuilder_ != null || cookieFrequencyCapSetting_ != null; } /** *
     * Chosen cookie frequency cap to be applied to each planned product.
     * This is equivalent to the frequency cap exposed in Google Ads when creating
     * a campaign, it represents the maximum number of times an ad can be shown to
     * the same user during a specified time interval.
     * If not specified, a default of 0 (no cap) is applied.
     * This field replaces the deprecated cookie_frequency_cap field.
     * 
* * .google.ads.googleads.v10.services.FrequencyCap cookie_frequency_cap_setting = 8; * @return The cookieFrequencyCapSetting. */ public com.google.ads.googleads.v10.services.FrequencyCap getCookieFrequencyCapSetting() { if (cookieFrequencyCapSettingBuilder_ == null) { return cookieFrequencyCapSetting_ == null ? com.google.ads.googleads.v10.services.FrequencyCap.getDefaultInstance() : cookieFrequencyCapSetting_; } else { return cookieFrequencyCapSettingBuilder_.getMessage(); } } /** *
     * Chosen cookie frequency cap to be applied to each planned product.
     * This is equivalent to the frequency cap exposed in Google Ads when creating
     * a campaign, it represents the maximum number of times an ad can be shown to
     * the same user during a specified time interval.
     * If not specified, a default of 0 (no cap) is applied.
     * This field replaces the deprecated cookie_frequency_cap field.
     * 
* * .google.ads.googleads.v10.services.FrequencyCap cookie_frequency_cap_setting = 8; */ public Builder setCookieFrequencyCapSetting(com.google.ads.googleads.v10.services.FrequencyCap value) { if (cookieFrequencyCapSettingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cookieFrequencyCapSetting_ = value; onChanged(); } else { cookieFrequencyCapSettingBuilder_.setMessage(value); } return this; } /** *
     * Chosen cookie frequency cap to be applied to each planned product.
     * This is equivalent to the frequency cap exposed in Google Ads when creating
     * a campaign, it represents the maximum number of times an ad can be shown to
     * the same user during a specified time interval.
     * If not specified, a default of 0 (no cap) is applied.
     * This field replaces the deprecated cookie_frequency_cap field.
     * 
* * .google.ads.googleads.v10.services.FrequencyCap cookie_frequency_cap_setting = 8; */ public Builder setCookieFrequencyCapSetting( com.google.ads.googleads.v10.services.FrequencyCap.Builder builderForValue) { if (cookieFrequencyCapSettingBuilder_ == null) { cookieFrequencyCapSetting_ = builderForValue.build(); onChanged(); } else { cookieFrequencyCapSettingBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Chosen cookie frequency cap to be applied to each planned product.
     * This is equivalent to the frequency cap exposed in Google Ads when creating
     * a campaign, it represents the maximum number of times an ad can be shown to
     * the same user during a specified time interval.
     * If not specified, a default of 0 (no cap) is applied.
     * This field replaces the deprecated cookie_frequency_cap field.
     * 
* * .google.ads.googleads.v10.services.FrequencyCap cookie_frequency_cap_setting = 8; */ public Builder mergeCookieFrequencyCapSetting(com.google.ads.googleads.v10.services.FrequencyCap value) { if (cookieFrequencyCapSettingBuilder_ == null) { if (cookieFrequencyCapSetting_ != null) { cookieFrequencyCapSetting_ = com.google.ads.googleads.v10.services.FrequencyCap.newBuilder(cookieFrequencyCapSetting_).mergeFrom(value).buildPartial(); } else { cookieFrequencyCapSetting_ = value; } onChanged(); } else { cookieFrequencyCapSettingBuilder_.mergeFrom(value); } return this; } /** *
     * Chosen cookie frequency cap to be applied to each planned product.
     * This is equivalent to the frequency cap exposed in Google Ads when creating
     * a campaign, it represents the maximum number of times an ad can be shown to
     * the same user during a specified time interval.
     * If not specified, a default of 0 (no cap) is applied.
     * This field replaces the deprecated cookie_frequency_cap field.
     * 
* * .google.ads.googleads.v10.services.FrequencyCap cookie_frequency_cap_setting = 8; */ public Builder clearCookieFrequencyCapSetting() { if (cookieFrequencyCapSettingBuilder_ == null) { cookieFrequencyCapSetting_ = null; onChanged(); } else { cookieFrequencyCapSetting_ = null; cookieFrequencyCapSettingBuilder_ = null; } return this; } /** *
     * Chosen cookie frequency cap to be applied to each planned product.
     * This is equivalent to the frequency cap exposed in Google Ads when creating
     * a campaign, it represents the maximum number of times an ad can be shown to
     * the same user during a specified time interval.
     * If not specified, a default of 0 (no cap) is applied.
     * This field replaces the deprecated cookie_frequency_cap field.
     * 
* * .google.ads.googleads.v10.services.FrequencyCap cookie_frequency_cap_setting = 8; */ public com.google.ads.googleads.v10.services.FrequencyCap.Builder getCookieFrequencyCapSettingBuilder() { onChanged(); return getCookieFrequencyCapSettingFieldBuilder().getBuilder(); } /** *
     * Chosen cookie frequency cap to be applied to each planned product.
     * This is equivalent to the frequency cap exposed in Google Ads when creating
     * a campaign, it represents the maximum number of times an ad can be shown to
     * the same user during a specified time interval.
     * If not specified, a default of 0 (no cap) is applied.
     * This field replaces the deprecated cookie_frequency_cap field.
     * 
* * .google.ads.googleads.v10.services.FrequencyCap cookie_frequency_cap_setting = 8; */ public com.google.ads.googleads.v10.services.FrequencyCapOrBuilder getCookieFrequencyCapSettingOrBuilder() { if (cookieFrequencyCapSettingBuilder_ != null) { return cookieFrequencyCapSettingBuilder_.getMessageOrBuilder(); } else { return cookieFrequencyCapSetting_ == null ? com.google.ads.googleads.v10.services.FrequencyCap.getDefaultInstance() : cookieFrequencyCapSetting_; } } /** *
     * Chosen cookie frequency cap to be applied to each planned product.
     * This is equivalent to the frequency cap exposed in Google Ads when creating
     * a campaign, it represents the maximum number of times an ad can be shown to
     * the same user during a specified time interval.
     * If not specified, a default of 0 (no cap) is applied.
     * This field replaces the deprecated cookie_frequency_cap field.
     * 
* * .google.ads.googleads.v10.services.FrequencyCap cookie_frequency_cap_setting = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.services.FrequencyCap, com.google.ads.googleads.v10.services.FrequencyCap.Builder, com.google.ads.googleads.v10.services.FrequencyCapOrBuilder> getCookieFrequencyCapSettingFieldBuilder() { if (cookieFrequencyCapSettingBuilder_ == null) { cookieFrequencyCapSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.services.FrequencyCap, com.google.ads.googleads.v10.services.FrequencyCap.Builder, com.google.ads.googleads.v10.services.FrequencyCapOrBuilder>( getCookieFrequencyCapSetting(), getParentForChildren(), isClean()); cookieFrequencyCapSetting_ = null; } return cookieFrequencyCapSettingBuilder_; } private int minEffectiveFrequency_ ; /** *
     * Chosen minimum effective frequency (the number of times a person was
     * exposed to the ad) for the reported reach metrics [1-10].
     * This won't affect the targeting, but just the reporting.
     * If not specified, a default of 1 is applied.
     * This field cannot be combined with the effective_frequency_limit field.
     * 
* * optional int32 min_effective_frequency = 11; * @return Whether the minEffectiveFrequency field is set. */ @java.lang.Override public boolean hasMinEffectiveFrequency() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Chosen minimum effective frequency (the number of times a person was
     * exposed to the ad) for the reported reach metrics [1-10].
     * This won't affect the targeting, but just the reporting.
     * If not specified, a default of 1 is applied.
     * This field cannot be combined with the effective_frequency_limit field.
     * 
* * optional int32 min_effective_frequency = 11; * @return The minEffectiveFrequency. */ @java.lang.Override public int getMinEffectiveFrequency() { return minEffectiveFrequency_; } /** *
     * Chosen minimum effective frequency (the number of times a person was
     * exposed to the ad) for the reported reach metrics [1-10].
     * This won't affect the targeting, but just the reporting.
     * If not specified, a default of 1 is applied.
     * This field cannot be combined with the effective_frequency_limit field.
     * 
* * optional int32 min_effective_frequency = 11; * @param value The minEffectiveFrequency to set. * @return This builder for chaining. */ public Builder setMinEffectiveFrequency(int value) { bitField0_ |= 0x00000004; minEffectiveFrequency_ = value; onChanged(); return this; } /** *
     * Chosen minimum effective frequency (the number of times a person was
     * exposed to the ad) for the reported reach metrics [1-10].
     * This won't affect the targeting, but just the reporting.
     * If not specified, a default of 1 is applied.
     * This field cannot be combined with the effective_frequency_limit field.
     * 
* * optional int32 min_effective_frequency = 11; * @return This builder for chaining. */ public Builder clearMinEffectiveFrequency() { bitField0_ = (bitField0_ & ~0x00000004); minEffectiveFrequency_ = 0; onChanged(); return this; } private com.google.ads.googleads.v10.services.EffectiveFrequencyLimit effectiveFrequencyLimit_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.services.EffectiveFrequencyLimit, com.google.ads.googleads.v10.services.EffectiveFrequencyLimit.Builder, com.google.ads.googleads.v10.services.EffectiveFrequencyLimitOrBuilder> effectiveFrequencyLimitBuilder_; /** *
     * The highest minimum effective frequency (the number of times a person was
     * exposed to the ad) value [1-10] to include in
     * Forecast.effective_frequency_breakdowns.
     * If not specified, Forecast.effective_frequency_breakdowns will not be
     * provided.
     * The effective frequency value provided here will also be used as the
     * minimum effective frequency for the reported reach metrics.
     * This field cannot be combined with the min_effective_frequency field.
     * 
* * optional .google.ads.googleads.v10.services.EffectiveFrequencyLimit effective_frequency_limit = 12; * @return Whether the effectiveFrequencyLimit field is set. */ public boolean hasEffectiveFrequencyLimit() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * The highest minimum effective frequency (the number of times a person was
     * exposed to the ad) value [1-10] to include in
     * Forecast.effective_frequency_breakdowns.
     * If not specified, Forecast.effective_frequency_breakdowns will not be
     * provided.
     * The effective frequency value provided here will also be used as the
     * minimum effective frequency for the reported reach metrics.
     * This field cannot be combined with the min_effective_frequency field.
     * 
* * optional .google.ads.googleads.v10.services.EffectiveFrequencyLimit effective_frequency_limit = 12; * @return The effectiveFrequencyLimit. */ public com.google.ads.googleads.v10.services.EffectiveFrequencyLimit getEffectiveFrequencyLimit() { if (effectiveFrequencyLimitBuilder_ == null) { return effectiveFrequencyLimit_ == null ? com.google.ads.googleads.v10.services.EffectiveFrequencyLimit.getDefaultInstance() : effectiveFrequencyLimit_; } else { return effectiveFrequencyLimitBuilder_.getMessage(); } } /** *
     * The highest minimum effective frequency (the number of times a person was
     * exposed to the ad) value [1-10] to include in
     * Forecast.effective_frequency_breakdowns.
     * If not specified, Forecast.effective_frequency_breakdowns will not be
     * provided.
     * The effective frequency value provided here will also be used as the
     * minimum effective frequency for the reported reach metrics.
     * This field cannot be combined with the min_effective_frequency field.
     * 
* * optional .google.ads.googleads.v10.services.EffectiveFrequencyLimit effective_frequency_limit = 12; */ public Builder setEffectiveFrequencyLimit(com.google.ads.googleads.v10.services.EffectiveFrequencyLimit value) { if (effectiveFrequencyLimitBuilder_ == null) { if (value == null) { throw new NullPointerException(); } effectiveFrequencyLimit_ = value; onChanged(); } else { effectiveFrequencyLimitBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** *
     * The highest minimum effective frequency (the number of times a person was
     * exposed to the ad) value [1-10] to include in
     * Forecast.effective_frequency_breakdowns.
     * If not specified, Forecast.effective_frequency_breakdowns will not be
     * provided.
     * The effective frequency value provided here will also be used as the
     * minimum effective frequency for the reported reach metrics.
     * This field cannot be combined with the min_effective_frequency field.
     * 
* * optional .google.ads.googleads.v10.services.EffectiveFrequencyLimit effective_frequency_limit = 12; */ public Builder setEffectiveFrequencyLimit( com.google.ads.googleads.v10.services.EffectiveFrequencyLimit.Builder builderForValue) { if (effectiveFrequencyLimitBuilder_ == null) { effectiveFrequencyLimit_ = builderForValue.build(); onChanged(); } else { effectiveFrequencyLimitBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** *
     * The highest minimum effective frequency (the number of times a person was
     * exposed to the ad) value [1-10] to include in
     * Forecast.effective_frequency_breakdowns.
     * If not specified, Forecast.effective_frequency_breakdowns will not be
     * provided.
     * The effective frequency value provided here will also be used as the
     * minimum effective frequency for the reported reach metrics.
     * This field cannot be combined with the min_effective_frequency field.
     * 
* * optional .google.ads.googleads.v10.services.EffectiveFrequencyLimit effective_frequency_limit = 12; */ public Builder mergeEffectiveFrequencyLimit(com.google.ads.googleads.v10.services.EffectiveFrequencyLimit value) { if (effectiveFrequencyLimitBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && effectiveFrequencyLimit_ != null && effectiveFrequencyLimit_ != com.google.ads.googleads.v10.services.EffectiveFrequencyLimit.getDefaultInstance()) { effectiveFrequencyLimit_ = com.google.ads.googleads.v10.services.EffectiveFrequencyLimit.newBuilder(effectiveFrequencyLimit_).mergeFrom(value).buildPartial(); } else { effectiveFrequencyLimit_ = value; } onChanged(); } else { effectiveFrequencyLimitBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** *
     * The highest minimum effective frequency (the number of times a person was
     * exposed to the ad) value [1-10] to include in
     * Forecast.effective_frequency_breakdowns.
     * If not specified, Forecast.effective_frequency_breakdowns will not be
     * provided.
     * The effective frequency value provided here will also be used as the
     * minimum effective frequency for the reported reach metrics.
     * This field cannot be combined with the min_effective_frequency field.
     * 
* * optional .google.ads.googleads.v10.services.EffectiveFrequencyLimit effective_frequency_limit = 12; */ public Builder clearEffectiveFrequencyLimit() { if (effectiveFrequencyLimitBuilder_ == null) { effectiveFrequencyLimit_ = null; onChanged(); } else { effectiveFrequencyLimitBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** *
     * The highest minimum effective frequency (the number of times a person was
     * exposed to the ad) value [1-10] to include in
     * Forecast.effective_frequency_breakdowns.
     * If not specified, Forecast.effective_frequency_breakdowns will not be
     * provided.
     * The effective frequency value provided here will also be used as the
     * minimum effective frequency for the reported reach metrics.
     * This field cannot be combined with the min_effective_frequency field.
     * 
* * optional .google.ads.googleads.v10.services.EffectiveFrequencyLimit effective_frequency_limit = 12; */ public com.google.ads.googleads.v10.services.EffectiveFrequencyLimit.Builder getEffectiveFrequencyLimitBuilder() { bitField0_ |= 0x00000008; onChanged(); return getEffectiveFrequencyLimitFieldBuilder().getBuilder(); } /** *
     * The highest minimum effective frequency (the number of times a person was
     * exposed to the ad) value [1-10] to include in
     * Forecast.effective_frequency_breakdowns.
     * If not specified, Forecast.effective_frequency_breakdowns will not be
     * provided.
     * The effective frequency value provided here will also be used as the
     * minimum effective frequency for the reported reach metrics.
     * This field cannot be combined with the min_effective_frequency field.
     * 
* * optional .google.ads.googleads.v10.services.EffectiveFrequencyLimit effective_frequency_limit = 12; */ public com.google.ads.googleads.v10.services.EffectiveFrequencyLimitOrBuilder getEffectiveFrequencyLimitOrBuilder() { if (effectiveFrequencyLimitBuilder_ != null) { return effectiveFrequencyLimitBuilder_.getMessageOrBuilder(); } else { return effectiveFrequencyLimit_ == null ? com.google.ads.googleads.v10.services.EffectiveFrequencyLimit.getDefaultInstance() : effectiveFrequencyLimit_; } } /** *
     * The highest minimum effective frequency (the number of times a person was
     * exposed to the ad) value [1-10] to include in
     * Forecast.effective_frequency_breakdowns.
     * If not specified, Forecast.effective_frequency_breakdowns will not be
     * provided.
     * The effective frequency value provided here will also be used as the
     * minimum effective frequency for the reported reach metrics.
     * This field cannot be combined with the min_effective_frequency field.
     * 
* * optional .google.ads.googleads.v10.services.EffectiveFrequencyLimit effective_frequency_limit = 12; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.services.EffectiveFrequencyLimit, com.google.ads.googleads.v10.services.EffectiveFrequencyLimit.Builder, com.google.ads.googleads.v10.services.EffectiveFrequencyLimitOrBuilder> getEffectiveFrequencyLimitFieldBuilder() { if (effectiveFrequencyLimitBuilder_ == null) { effectiveFrequencyLimitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.services.EffectiveFrequencyLimit, com.google.ads.googleads.v10.services.EffectiveFrequencyLimit.Builder, com.google.ads.googleads.v10.services.EffectiveFrequencyLimitOrBuilder>( getEffectiveFrequencyLimit(), getParentForChildren(), isClean()); effectiveFrequencyLimit_ = null; } return effectiveFrequencyLimitBuilder_; } private com.google.ads.googleads.v10.services.Targeting targeting_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.services.Targeting, com.google.ads.googleads.v10.services.Targeting.Builder, com.google.ads.googleads.v10.services.TargetingOrBuilder> targetingBuilder_; /** *
     * The targeting to be applied to all products selected in the product mix.
     * This is planned targeting: execution details might vary based on the
     * advertising product, consult an implementation specialist.
     * See specific metrics for details on how targeting affects them.
     * 
* * .google.ads.googleads.v10.services.Targeting targeting = 6; * @return Whether the targeting field is set. */ public boolean hasTargeting() { return targetingBuilder_ != null || targeting_ != null; } /** *
     * The targeting to be applied to all products selected in the product mix.
     * This is planned targeting: execution details might vary based on the
     * advertising product, consult an implementation specialist.
     * See specific metrics for details on how targeting affects them.
     * 
* * .google.ads.googleads.v10.services.Targeting targeting = 6; * @return The targeting. */ public com.google.ads.googleads.v10.services.Targeting getTargeting() { if (targetingBuilder_ == null) { return targeting_ == null ? com.google.ads.googleads.v10.services.Targeting.getDefaultInstance() : targeting_; } else { return targetingBuilder_.getMessage(); } } /** *
     * The targeting to be applied to all products selected in the product mix.
     * This is planned targeting: execution details might vary based on the
     * advertising product, consult an implementation specialist.
     * See specific metrics for details on how targeting affects them.
     * 
* * .google.ads.googleads.v10.services.Targeting targeting = 6; */ public Builder setTargeting(com.google.ads.googleads.v10.services.Targeting value) { if (targetingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } targeting_ = value; onChanged(); } else { targetingBuilder_.setMessage(value); } return this; } /** *
     * The targeting to be applied to all products selected in the product mix.
     * This is planned targeting: execution details might vary based on the
     * advertising product, consult an implementation specialist.
     * See specific metrics for details on how targeting affects them.
     * 
* * .google.ads.googleads.v10.services.Targeting targeting = 6; */ public Builder setTargeting( com.google.ads.googleads.v10.services.Targeting.Builder builderForValue) { if (targetingBuilder_ == null) { targeting_ = builderForValue.build(); onChanged(); } else { targetingBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The targeting to be applied to all products selected in the product mix.
     * This is planned targeting: execution details might vary based on the
     * advertising product, consult an implementation specialist.
     * See specific metrics for details on how targeting affects them.
     * 
* * .google.ads.googleads.v10.services.Targeting targeting = 6; */ public Builder mergeTargeting(com.google.ads.googleads.v10.services.Targeting value) { if (targetingBuilder_ == null) { if (targeting_ != null) { targeting_ = com.google.ads.googleads.v10.services.Targeting.newBuilder(targeting_).mergeFrom(value).buildPartial(); } else { targeting_ = value; } onChanged(); } else { targetingBuilder_.mergeFrom(value); } return this; } /** *
     * The targeting to be applied to all products selected in the product mix.
     * This is planned targeting: execution details might vary based on the
     * advertising product, consult an implementation specialist.
     * See specific metrics for details on how targeting affects them.
     * 
* * .google.ads.googleads.v10.services.Targeting targeting = 6; */ public Builder clearTargeting() { if (targetingBuilder_ == null) { targeting_ = null; onChanged(); } else { targeting_ = null; targetingBuilder_ = null; } return this; } /** *
     * The targeting to be applied to all products selected in the product mix.
     * This is planned targeting: execution details might vary based on the
     * advertising product, consult an implementation specialist.
     * See specific metrics for details on how targeting affects them.
     * 
* * .google.ads.googleads.v10.services.Targeting targeting = 6; */ public com.google.ads.googleads.v10.services.Targeting.Builder getTargetingBuilder() { onChanged(); return getTargetingFieldBuilder().getBuilder(); } /** *
     * The targeting to be applied to all products selected in the product mix.
     * This is planned targeting: execution details might vary based on the
     * advertising product, consult an implementation specialist.
     * See specific metrics for details on how targeting affects them.
     * 
* * .google.ads.googleads.v10.services.Targeting targeting = 6; */ public com.google.ads.googleads.v10.services.TargetingOrBuilder getTargetingOrBuilder() { if (targetingBuilder_ != null) { return targetingBuilder_.getMessageOrBuilder(); } else { return targeting_ == null ? com.google.ads.googleads.v10.services.Targeting.getDefaultInstance() : targeting_; } } /** *
     * The targeting to be applied to all products selected in the product mix.
     * This is planned targeting: execution details might vary based on the
     * advertising product, consult an implementation specialist.
     * See specific metrics for details on how targeting affects them.
     * 
* * .google.ads.googleads.v10.services.Targeting targeting = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.services.Targeting, com.google.ads.googleads.v10.services.Targeting.Builder, com.google.ads.googleads.v10.services.TargetingOrBuilder> getTargetingFieldBuilder() { if (targetingBuilder_ == null) { targetingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.services.Targeting, com.google.ads.googleads.v10.services.Targeting.Builder, com.google.ads.googleads.v10.services.TargetingOrBuilder>( getTargeting(), getParentForChildren(), isClean()); targeting_ = null; } return targetingBuilder_; } private java.util.List plannedProducts_ = java.util.Collections.emptyList(); private void ensurePlannedProductsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { plannedProducts_ = new java.util.ArrayList(plannedProducts_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.services.PlannedProduct, com.google.ads.googleads.v10.services.PlannedProduct.Builder, com.google.ads.googleads.v10.services.PlannedProductOrBuilder> plannedProductsBuilder_; /** *
     * Required. The products to be forecast.
     * The max number of allowed planned products is 15.
     * 
* * repeated .google.ads.googleads.v10.services.PlannedProduct planned_products = 7 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getPlannedProductsList() { if (plannedProductsBuilder_ == null) { return java.util.Collections.unmodifiableList(plannedProducts_); } else { return plannedProductsBuilder_.getMessageList(); } } /** *
     * Required. The products to be forecast.
     * The max number of allowed planned products is 15.
     * 
* * repeated .google.ads.googleads.v10.services.PlannedProduct planned_products = 7 [(.google.api.field_behavior) = REQUIRED]; */ public int getPlannedProductsCount() { if (plannedProductsBuilder_ == null) { return plannedProducts_.size(); } else { return plannedProductsBuilder_.getCount(); } } /** *
     * Required. The products to be forecast.
     * The max number of allowed planned products is 15.
     * 
* * repeated .google.ads.googleads.v10.services.PlannedProduct planned_products = 7 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.ads.googleads.v10.services.PlannedProduct getPlannedProducts(int index) { if (plannedProductsBuilder_ == null) { return plannedProducts_.get(index); } else { return plannedProductsBuilder_.getMessage(index); } } /** *
     * Required. The products to be forecast.
     * The max number of allowed planned products is 15.
     * 
* * repeated .google.ads.googleads.v10.services.PlannedProduct planned_products = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPlannedProducts( int index, com.google.ads.googleads.v10.services.PlannedProduct value) { if (plannedProductsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePlannedProductsIsMutable(); plannedProducts_.set(index, value); onChanged(); } else { plannedProductsBuilder_.setMessage(index, value); } return this; } /** *
     * Required. The products to be forecast.
     * The max number of allowed planned products is 15.
     * 
* * repeated .google.ads.googleads.v10.services.PlannedProduct planned_products = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPlannedProducts( int index, com.google.ads.googleads.v10.services.PlannedProduct.Builder builderForValue) { if (plannedProductsBuilder_ == null) { ensurePlannedProductsIsMutable(); plannedProducts_.set(index, builderForValue.build()); onChanged(); } else { plannedProductsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Required. The products to be forecast.
     * The max number of allowed planned products is 15.
     * 
* * repeated .google.ads.googleads.v10.services.PlannedProduct planned_products = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addPlannedProducts(com.google.ads.googleads.v10.services.PlannedProduct value) { if (plannedProductsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePlannedProductsIsMutable(); plannedProducts_.add(value); onChanged(); } else { plannedProductsBuilder_.addMessage(value); } return this; } /** *
     * Required. The products to be forecast.
     * The max number of allowed planned products is 15.
     * 
* * repeated .google.ads.googleads.v10.services.PlannedProduct planned_products = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addPlannedProducts( int index, com.google.ads.googleads.v10.services.PlannedProduct value) { if (plannedProductsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePlannedProductsIsMutable(); plannedProducts_.add(index, value); onChanged(); } else { plannedProductsBuilder_.addMessage(index, value); } return this; } /** *
     * Required. The products to be forecast.
     * The max number of allowed planned products is 15.
     * 
* * repeated .google.ads.googleads.v10.services.PlannedProduct planned_products = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addPlannedProducts( com.google.ads.googleads.v10.services.PlannedProduct.Builder builderForValue) { if (plannedProductsBuilder_ == null) { ensurePlannedProductsIsMutable(); plannedProducts_.add(builderForValue.build()); onChanged(); } else { plannedProductsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Required. The products to be forecast.
     * The max number of allowed planned products is 15.
     * 
* * repeated .google.ads.googleads.v10.services.PlannedProduct planned_products = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addPlannedProducts( int index, com.google.ads.googleads.v10.services.PlannedProduct.Builder builderForValue) { if (plannedProductsBuilder_ == null) { ensurePlannedProductsIsMutable(); plannedProducts_.add(index, builderForValue.build()); onChanged(); } else { plannedProductsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Required. The products to be forecast.
     * The max number of allowed planned products is 15.
     * 
* * repeated .google.ads.googleads.v10.services.PlannedProduct planned_products = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllPlannedProducts( java.lang.Iterable values) { if (plannedProductsBuilder_ == null) { ensurePlannedProductsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, plannedProducts_); onChanged(); } else { plannedProductsBuilder_.addAllMessages(values); } return this; } /** *
     * Required. The products to be forecast.
     * The max number of allowed planned products is 15.
     * 
* * repeated .google.ads.googleads.v10.services.PlannedProduct planned_products = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearPlannedProducts() { if (plannedProductsBuilder_ == null) { plannedProducts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { plannedProductsBuilder_.clear(); } return this; } /** *
     * Required. The products to be forecast.
     * The max number of allowed planned products is 15.
     * 
* * repeated .google.ads.googleads.v10.services.PlannedProduct planned_products = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removePlannedProducts(int index) { if (plannedProductsBuilder_ == null) { ensurePlannedProductsIsMutable(); plannedProducts_.remove(index); onChanged(); } else { plannedProductsBuilder_.remove(index); } return this; } /** *
     * Required. The products to be forecast.
     * The max number of allowed planned products is 15.
     * 
* * repeated .google.ads.googleads.v10.services.PlannedProduct planned_products = 7 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.ads.googleads.v10.services.PlannedProduct.Builder getPlannedProductsBuilder( int index) { return getPlannedProductsFieldBuilder().getBuilder(index); } /** *
     * Required. The products to be forecast.
     * The max number of allowed planned products is 15.
     * 
* * repeated .google.ads.googleads.v10.services.PlannedProduct planned_products = 7 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.ads.googleads.v10.services.PlannedProductOrBuilder getPlannedProductsOrBuilder( int index) { if (plannedProductsBuilder_ == null) { return plannedProducts_.get(index); } else { return plannedProductsBuilder_.getMessageOrBuilder(index); } } /** *
     * Required. The products to be forecast.
     * The max number of allowed planned products is 15.
     * 
* * repeated .google.ads.googleads.v10.services.PlannedProduct planned_products = 7 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getPlannedProductsOrBuilderList() { if (plannedProductsBuilder_ != null) { return plannedProductsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(plannedProducts_); } } /** *
     * Required. The products to be forecast.
     * The max number of allowed planned products is 15.
     * 
* * repeated .google.ads.googleads.v10.services.PlannedProduct planned_products = 7 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.ads.googleads.v10.services.PlannedProduct.Builder addPlannedProductsBuilder() { return getPlannedProductsFieldBuilder().addBuilder( com.google.ads.googleads.v10.services.PlannedProduct.getDefaultInstance()); } /** *
     * Required. The products to be forecast.
     * The max number of allowed planned products is 15.
     * 
* * repeated .google.ads.googleads.v10.services.PlannedProduct planned_products = 7 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.ads.googleads.v10.services.PlannedProduct.Builder addPlannedProductsBuilder( int index) { return getPlannedProductsFieldBuilder().addBuilder( index, com.google.ads.googleads.v10.services.PlannedProduct.getDefaultInstance()); } /** *
     * Required. The products to be forecast.
     * The max number of allowed planned products is 15.
     * 
* * repeated .google.ads.googleads.v10.services.PlannedProduct planned_products = 7 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getPlannedProductsBuilderList() { return getPlannedProductsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.services.PlannedProduct, com.google.ads.googleads.v10.services.PlannedProduct.Builder, com.google.ads.googleads.v10.services.PlannedProductOrBuilder> getPlannedProductsFieldBuilder() { if (plannedProductsBuilder_ == null) { plannedProductsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.services.PlannedProduct, com.google.ads.googleads.v10.services.PlannedProduct.Builder, com.google.ads.googleads.v10.services.PlannedProductOrBuilder>( plannedProducts_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); plannedProducts_ = null; } return plannedProductsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.ads.googleads.v10.services.GenerateReachForecastRequest) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.services.GenerateReachForecastRequest) private static final com.google.ads.googleads.v10.services.GenerateReachForecastRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.services.GenerateReachForecastRequest(); } public static com.google.ads.googleads.v10.services.GenerateReachForecastRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GenerateReachForecastRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.ads.googleads.v10.services.GenerateReachForecastRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy