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.v15.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,java.lang.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 typegoogle.ads.googleads.v15.services.GenerateKeywordForecastMetricsRequest
-
-
Method Summary
-
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, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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
public 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
public GenerateKeywordForecastMetricsRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public GenerateKeywordForecastMetricsRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GenerateKeywordForecastMetricsRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GenerateKeywordForecastMetricsRequest.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, java.lang.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, java.lang.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, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateKeywordForecastMetricsRequest.Builder>
-
mergeFrom
public GenerateKeywordForecastMetricsRequest.Builder mergeFrom(com.google.protobuf.Message other)
- 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 java.io.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:
java.io.IOException
-
getCustomerId
public java.lang.String 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
public GenerateKeywordForecastMetricsRequest.Builder setCustomerId(java.lang.String value)
The ID of the customer.
string customer_id = 1;- Parameters:
value- The customerId to set.- Returns:
- This builder for chaining.
-
clearCustomerId
public GenerateKeywordForecastMetricsRequest.Builder 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
public java.lang.String 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
public GenerateKeywordForecastMetricsRequest.Builder setCurrencyCode(java.lang.String 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 currencyCode to set.- Returns:
- This builder for chaining.
-
clearCurrencyCode
public GenerateKeywordForecastMetricsRequest.Builder 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.v15.common.DateRange forecast_period = 3;- Specified by:
hasForecastPeriodin interfaceGenerateKeywordForecastMetricsRequestOrBuilder- Returns:
- Whether the forecastPeriod field is set.
-
getForecastPeriod
public DateRange 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.v15.common.DateRange forecast_period = 3;- Specified by:
getForecastPeriodin interfaceGenerateKeywordForecastMetricsRequestOrBuilder- Returns:
- The forecastPeriod.
-
setForecastPeriod
public GenerateKeywordForecastMetricsRequest.Builder setForecastPeriod(DateRange value)
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.v15.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.v15.common.DateRange forecast_period = 3;
-
mergeForecastPeriod
public GenerateKeywordForecastMetricsRequest.Builder mergeForecastPeriod(DateRange value)
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.v15.common.DateRange forecast_period = 3;
-
clearForecastPeriod
public GenerateKeywordForecastMetricsRequest.Builder 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.v15.common.DateRange forecast_period = 3;
-
getForecastPeriodBuilder
public DateRange.Builder 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.v15.common.DateRange forecast_period = 3;
-
getForecastPeriodOrBuilder
public DateRangeOrBuilder 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.v15.common.DateRange forecast_period = 3;- Specified by:
getForecastPeriodOrBuilderin interfaceGenerateKeywordForecastMetricsRequestOrBuilder
-
hasCampaign
public boolean hasCampaign()
Required. The campaign used in the forecast.
.google.ads.googleads.v15.services.CampaignToForecast campaign = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasCampaignin interfaceGenerateKeywordForecastMetricsRequestOrBuilder- Returns:
- Whether the campaign field is set.
-
getCampaign
public CampaignToForecast getCampaign()
Required. The campaign used in the forecast.
.google.ads.googleads.v15.services.CampaignToForecast campaign = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getCampaignin interfaceGenerateKeywordForecastMetricsRequestOrBuilder- Returns:
- The campaign.
-
setCampaign
public GenerateKeywordForecastMetricsRequest.Builder setCampaign(CampaignToForecast value)
Required. The campaign used in the forecast.
.google.ads.googleads.v15.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.v15.services.CampaignToForecast campaign = 4 [(.google.api.field_behavior) = REQUIRED];
-
mergeCampaign
public GenerateKeywordForecastMetricsRequest.Builder mergeCampaign(CampaignToForecast value)
Required. The campaign used in the forecast.
.google.ads.googleads.v15.services.CampaignToForecast campaign = 4 [(.google.api.field_behavior) = REQUIRED];
-
clearCampaign
public GenerateKeywordForecastMetricsRequest.Builder clearCampaign()
Required. The campaign used in the forecast.
.google.ads.googleads.v15.services.CampaignToForecast campaign = 4 [(.google.api.field_behavior) = REQUIRED];
-
getCampaignBuilder
public CampaignToForecast.Builder getCampaignBuilder()
Required. The campaign used in the forecast.
.google.ads.googleads.v15.services.CampaignToForecast campaign = 4 [(.google.api.field_behavior) = REQUIRED];
-
getCampaignOrBuilder
public CampaignToForecastOrBuilder getCampaignOrBuilder()
Required. The campaign used in the forecast.
.google.ads.googleads.v15.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>
-
-