Class GenerateKeywordForecastMetricsRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<GenerateKeywordForecastMetricsRequest.Builder>
com.google.ads.googleads.v18.services.GenerateKeywordForecastMetricsRequest.Builder
- All Implemented Interfaces:
GenerateKeywordForecastMetricsRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GenerateKeywordForecastMetricsRequest
public static final class GenerateKeywordForecastMetricsRequest.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<GenerateKeywordForecastMetricsRequest.Builder>
implements GenerateKeywordForecastMetricsRequestOrBuilder
Request message for [KeywordPlanIdeaService.GenerateKeywordForecastMetrics].Protobuf type
google.ads.googleads.v18.services.GenerateKeywordForecastMetricsRequest-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Required.The currency used for exchange rate conversion.The ID of the customer.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The date range for the forecast.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()Required.Required.Required.The currency used for exchange rate conversion.com.google.protobuf.ByteStringThe currency used for exchange rate conversion.The ID of the customer.com.google.protobuf.ByteStringThe ID of the customer.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe date range for the forecast.The date range for the forecast.The date range for the forecast.booleanRequired.booleanThe currency used for exchange rate conversion.booleanThe date range for the forecast.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeCampaign(CampaignToForecast value) Required.mergeForecastPeriod(DateRange value) The date range for the forecast.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setCampaign(CampaignToForecast value) Required.setCampaign(CampaignToForecast.Builder builderForValue) Required.setCurrencyCode(String value) The currency used for exchange rate conversion.setCurrencyCodeBytes(com.google.protobuf.ByteString value) The currency used for exchange rate conversion.setCustomerId(String value) The ID of the customer.setCustomerIdBytes(com.google.protobuf.ByteString value) The ID of the customer.setForecastPeriod(DateRange value) The date range for the forecast.setForecastPeriod(DateRange.Builder builderForValue) The date range for the forecast.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateKeywordForecastMetricsRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateKeywordForecastMetricsRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateKeywordForecastMetricsRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateKeywordForecastMetricsRequest.Builder>
-
setField
public GenerateKeywordForecastMetricsRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateKeywordForecastMetricsRequest.Builder>
-
clearField
public GenerateKeywordForecastMetricsRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateKeywordForecastMetricsRequest.Builder>
-
clearOneof
public GenerateKeywordForecastMetricsRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateKeywordForecastMetricsRequest.Builder>
-
setRepeatedField
public GenerateKeywordForecastMetricsRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateKeywordForecastMetricsRequest.Builder>
-
addRepeatedField
public GenerateKeywordForecastMetricsRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateKeywordForecastMetricsRequest.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GenerateKeywordForecastMetricsRequest.Builder>
-
mergeFrom
public GenerateKeywordForecastMetricsRequest.Builder mergeFrom(GenerateKeywordForecastMetricsRequest other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateKeywordForecastMetricsRequest.Builder>
-
mergeFrom
public GenerateKeywordForecastMetricsRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GenerateKeywordForecastMetricsRequest.Builder>- Throws:
IOException
-
getCustomerId
The ID of the customer.
string customer_id = 1;- Specified by:
getCustomerIdin interfaceGenerateKeywordForecastMetricsRequestOrBuilder- Returns:
- The customerId.
-
getCustomerIdBytes
public com.google.protobuf.ByteString getCustomerIdBytes()The ID of the customer.
string customer_id = 1;- Specified by:
getCustomerIdBytesin interfaceGenerateKeywordForecastMetricsRequestOrBuilder- Returns:
- The bytes for customerId.
-
setCustomerId
The ID of the customer.
string customer_id = 1;- Parameters:
value- The customerId to set.- Returns:
- This builder for chaining.
-
clearCustomerId
The ID of the customer.
string customer_id = 1;- Returns:
- This builder for chaining.
-
setCustomerIdBytes
public GenerateKeywordForecastMetricsRequest.Builder setCustomerIdBytes(com.google.protobuf.ByteString value) The ID of the customer.
string customer_id = 1;- Parameters:
value- The bytes for customerId to set.- Returns:
- This builder for chaining.
-
hasCurrencyCode
public boolean hasCurrencyCode()The currency used for exchange rate conversion. By default, the account currency of the customer is used. Set this field only if the currency is different from the account currency. The list of valid currency codes can be found at https://developers.google.com/google-ads/api/data/codes-formats#currency-codes.
optional string currency_code = 2;- Specified by:
hasCurrencyCodein interfaceGenerateKeywordForecastMetricsRequestOrBuilder- Returns:
- Whether the currencyCode field is set.
-
getCurrencyCode
The currency used for exchange rate conversion. By default, the account currency of the customer is used. Set this field only if the currency is different from the account currency. The list of valid currency codes can be found at https://developers.google.com/google-ads/api/data/codes-formats#currency-codes.
optional string currency_code = 2;- Specified by:
getCurrencyCodein interfaceGenerateKeywordForecastMetricsRequestOrBuilder- Returns:
- The currencyCode.
-
getCurrencyCodeBytes
public com.google.protobuf.ByteString getCurrencyCodeBytes()The currency used for exchange rate conversion. By default, the account currency of the customer is used. Set this field only if the currency is different from the account currency. The list of valid currency codes can be found at https://developers.google.com/google-ads/api/data/codes-formats#currency-codes.
optional string currency_code = 2;- Specified by:
getCurrencyCodeBytesin interfaceGenerateKeywordForecastMetricsRequestOrBuilder- Returns:
- The bytes for currencyCode.
-
setCurrencyCode
The currency used for exchange rate conversion. By default, the account currency of the customer is used. Set this field only if the currency is different from the account currency. The list of valid currency codes can be found at https://developers.google.com/google-ads/api/data/codes-formats#currency-codes.
optional string currency_code = 2;- Parameters:
value- The currencyCode to set.- Returns:
- This builder for chaining.
-
clearCurrencyCode
The currency used for exchange rate conversion. By default, the account currency of the customer is used. Set this field only if the currency is different from the account currency. The list of valid currency codes can be found at https://developers.google.com/google-ads/api/data/codes-formats#currency-codes.
optional string currency_code = 2;- Returns:
- This builder for chaining.
-
setCurrencyCodeBytes
public GenerateKeywordForecastMetricsRequest.Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) The currency used for exchange rate conversion. By default, the account currency of the customer is used. Set this field only if the currency is different from the account currency. The list of valid currency codes can be found at https://developers.google.com/google-ads/api/data/codes-formats#currency-codes.
optional string currency_code = 2;- Parameters:
value- The bytes for currencyCode to set.- Returns:
- This builder for chaining.
-
hasForecastPeriod
public boolean hasForecastPeriod()The date range for the forecast. The start date must be in the future and end date must be within 1 year from today. The reference timezone used is the one of the Google Ads account belonging to the customer. If not set, a default date range from next Sunday to the following Saturday will be used.
.google.ads.googleads.v18.common.DateRange forecast_period = 3;- Specified by:
hasForecastPeriodin interfaceGenerateKeywordForecastMetricsRequestOrBuilder- Returns:
- Whether the forecastPeriod field is set.
-
getForecastPeriod
The date range for the forecast. The start date must be in the future and end date must be within 1 year from today. The reference timezone used is the one of the Google Ads account belonging to the customer. If not set, a default date range from next Sunday to the following Saturday will be used.
.google.ads.googleads.v18.common.DateRange forecast_period = 3;- Specified by:
getForecastPeriodin interfaceGenerateKeywordForecastMetricsRequestOrBuilder- Returns:
- The forecastPeriod.
-
setForecastPeriod
The date range for the forecast. The start date must be in the future and end date must be within 1 year from today. The reference timezone used is the one of the Google Ads account belonging to the customer. If not set, a default date range from next Sunday to the following Saturday will be used.
.google.ads.googleads.v18.common.DateRange forecast_period = 3; -
setForecastPeriod
public GenerateKeywordForecastMetricsRequest.Builder setForecastPeriod(DateRange.Builder builderForValue) The date range for the forecast. The start date must be in the future and end date must be within 1 year from today. The reference timezone used is the one of the Google Ads account belonging to the customer. If not set, a default date range from next Sunday to the following Saturday will be used.
.google.ads.googleads.v18.common.DateRange forecast_period = 3; -
mergeForecastPeriod
The date range for the forecast. The start date must be in the future and end date must be within 1 year from today. The reference timezone used is the one of the Google Ads account belonging to the customer. If not set, a default date range from next Sunday to the following Saturday will be used.
.google.ads.googleads.v18.common.DateRange forecast_period = 3; -
clearForecastPeriod
The date range for the forecast. The start date must be in the future and end date must be within 1 year from today. The reference timezone used is the one of the Google Ads account belonging to the customer. If not set, a default date range from next Sunday to the following Saturday will be used.
.google.ads.googleads.v18.common.DateRange forecast_period = 3; -
getForecastPeriodBuilder
The date range for the forecast. The start date must be in the future and end date must be within 1 year from today. The reference timezone used is the one of the Google Ads account belonging to the customer. If not set, a default date range from next Sunday to the following Saturday will be used.
.google.ads.googleads.v18.common.DateRange forecast_period = 3; -
getForecastPeriodOrBuilder
The date range for the forecast. The start date must be in the future and end date must be within 1 year from today. The reference timezone used is the one of the Google Ads account belonging to the customer. If not set, a default date range from next Sunday to the following Saturday will be used.
.google.ads.googleads.v18.common.DateRange forecast_period = 3;- Specified by:
getForecastPeriodOrBuilderin interfaceGenerateKeywordForecastMetricsRequestOrBuilder
-
hasCampaign
public boolean hasCampaign()Required. The campaign used in the forecast.
.google.ads.googleads.v18.services.CampaignToForecast campaign = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasCampaignin interfaceGenerateKeywordForecastMetricsRequestOrBuilder- Returns:
- Whether the campaign field is set.
-
getCampaign
Required. The campaign used in the forecast.
.google.ads.googleads.v18.services.CampaignToForecast campaign = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getCampaignin interfaceGenerateKeywordForecastMetricsRequestOrBuilder- Returns:
- The campaign.
-
setCampaign
Required. The campaign used in the forecast.
.google.ads.googleads.v18.services.CampaignToForecast campaign = 4 [(.google.api.field_behavior) = REQUIRED]; -
setCampaign
public GenerateKeywordForecastMetricsRequest.Builder setCampaign(CampaignToForecast.Builder builderForValue) Required. The campaign used in the forecast.
.google.ads.googleads.v18.services.CampaignToForecast campaign = 4 [(.google.api.field_behavior) = REQUIRED]; -
mergeCampaign
Required. The campaign used in the forecast.
.google.ads.googleads.v18.services.CampaignToForecast campaign = 4 [(.google.api.field_behavior) = REQUIRED]; -
clearCampaign
Required. The campaign used in the forecast.
.google.ads.googleads.v18.services.CampaignToForecast campaign = 4 [(.google.api.field_behavior) = REQUIRED]; -
getCampaignBuilder
Required. The campaign used in the forecast.
.google.ads.googleads.v18.services.CampaignToForecast campaign = 4 [(.google.api.field_behavior) = REQUIRED]; -
getCampaignOrBuilder
Required. The campaign used in the forecast.
.google.ads.googleads.v18.services.CampaignToForecast campaign = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getCampaignOrBuilderin interfaceGenerateKeywordForecastMetricsRequestOrBuilder
-
setUnknownFields
public final GenerateKeywordForecastMetricsRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateKeywordForecastMetricsRequest.Builder>
-
mergeUnknownFields
public final GenerateKeywordForecastMetricsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateKeywordForecastMetricsRequest.Builder>
-