Class CampaignToForecast.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CampaignToForecast.Builder>
com.google.ads.googleads.v24.services.CampaignToForecast.Builder
- All Implemented Interfaces:
CampaignToForecastOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CampaignToForecast
public static final class CampaignToForecast.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CampaignToForecast.Builder>
implements CampaignToForecastOrBuilder
A campaign to do a keyword campaign forecast.Protobuf type
google.ads.googleads.v24.services.CampaignToForecast-
Method Summary
Modifier and TypeMethodDescriptionaddAdGroups(int index, ForecastAdGroup value) The ad groups in the new campaign to forecast.addAdGroups(int index, ForecastAdGroup.Builder builderForValue) The ad groups in the new campaign to forecast.addAdGroups(ForecastAdGroup value) The ad groups in the new campaign to forecast.addAdGroups(ForecastAdGroup.Builder builderForValue) The ad groups in the new campaign to forecast.The ad groups in the new campaign to forecast.addAdGroupsBuilder(int index) The ad groups in the new campaign to forecast.addAllAdGroups(Iterable<? extends ForecastAdGroup> values) The ad groups in the new campaign to forecast.addAllGeoTargetConstants(Iterable<String> values) Locations to be targeted.addAllLanguageConstants(Iterable<String> values) The list of resource names of languages to be targeted.addGeoTargetConstants(String value) Locations to be targeted.addGeoTargetConstantsBytes(com.google.protobuf.ByteString value) Locations to be targeted.addLanguageConstants(String value) The list of resource names of languages to be targeted.addLanguageConstantsBytes(com.google.protobuf.ByteString value) The list of resource names of languages to be targeted.build()clear()The ad groups in the new campaign to forecast.Required.Locations to be targeted.The list of resource names of languages to be targeted.getAdGroups(int index) The ad groups in the new campaign to forecast.getAdGroupsBuilder(int index) The ad groups in the new campaign to forecast.The ad groups in the new campaign to forecast.intThe ad groups in the new campaign to forecast.The ad groups in the new campaign to forecast.getAdGroupsOrBuilder(int index) The ad groups in the new campaign to forecast.List<? extends ForecastAdGroupOrBuilder>The ad groups in the new campaign to forecast.Required.Required.Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetGeoTargetConstants(int index) Locations to be targeted.com.google.protobuf.ByteStringgetGeoTargetConstantsBytes(int index) Locations to be targeted.intLocations to be targeted.com.google.protobuf.ProtocolStringListLocations to be targeted.getLanguageConstants(int index) The list of resource names of languages to be targeted.com.google.protobuf.ByteStringgetLanguageConstantsBytes(int index) The list of resource names of languages to be targeted.intThe list of resource names of languages to be targeted.com.google.protobuf.ProtocolStringListThe list of resource names of languages to be targeted.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanRequired.mergeFrom(CampaignToForecast other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeAdGroups(int index) The ad groups in the new campaign to forecast.setAdGroups(int index, ForecastAdGroup value) The ad groups in the new campaign to forecast.setAdGroups(int index, ForecastAdGroup.Builder builderForValue) The ad groups in the new campaign to forecast.Required.setBiddingStrategy(CampaignToForecast.CampaignBiddingStrategy.Builder builderForValue) Required.setGeoTargetConstants(int index, String value) Locations to be targeted.setLanguageConstants(int index, String value) The list of resource names of languages to be targeted.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CampaignToForecast.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CampaignToForecast.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.GeneratedMessage.Builder<CampaignToForecast.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
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CampaignToForecast.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CampaignToForecast.Builder>
-
mergeFrom
public CampaignToForecast.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<CampaignToForecast.Builder>- Throws:
IOException
-
getLanguageConstantsList
public com.google.protobuf.ProtocolStringList getLanguageConstantsList()The list of resource names of languages to be targeted. The resource name is of the format "languageConstants/{criterion_id}". See https://developers.google.com/google-ads/api/data/codes-formats#languages for the list of language criterion codes.repeated string language_constants = 1;- Specified by:
getLanguageConstantsListin interfaceCampaignToForecastOrBuilder- Returns:
- A list containing the languageConstants.
-
getLanguageConstantsCount
public int getLanguageConstantsCount()The list of resource names of languages to be targeted. The resource name is of the format "languageConstants/{criterion_id}". See https://developers.google.com/google-ads/api/data/codes-formats#languages for the list of language criterion codes.repeated string language_constants = 1;- Specified by:
getLanguageConstantsCountin interfaceCampaignToForecastOrBuilder- Returns:
- The count of languageConstants.
-
getLanguageConstants
The list of resource names of languages to be targeted. The resource name is of the format "languageConstants/{criterion_id}". See https://developers.google.com/google-ads/api/data/codes-formats#languages for the list of language criterion codes.repeated string language_constants = 1;- Specified by:
getLanguageConstantsin interfaceCampaignToForecastOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The languageConstants at the given index.
-
getLanguageConstantsBytes
public com.google.protobuf.ByteString getLanguageConstantsBytes(int index) The list of resource names of languages to be targeted. The resource name is of the format "languageConstants/{criterion_id}". See https://developers.google.com/google-ads/api/data/codes-formats#languages for the list of language criterion codes.repeated string language_constants = 1;- Specified by:
getLanguageConstantsBytesin interfaceCampaignToForecastOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the languageConstants at the given index.
-
setLanguageConstants
The list of resource names of languages to be targeted. The resource name is of the format "languageConstants/{criterion_id}". See https://developers.google.com/google-ads/api/data/codes-formats#languages for the list of language criterion codes.repeated string language_constants = 1;- Parameters:
index- The index to set the value at.value- The languageConstants to set.- Returns:
- This builder for chaining.
-
addLanguageConstants
The list of resource names of languages to be targeted. The resource name is of the format "languageConstants/{criterion_id}". See https://developers.google.com/google-ads/api/data/codes-formats#languages for the list of language criterion codes.repeated string language_constants = 1;- Parameters:
value- The languageConstants to add.- Returns:
- This builder for chaining.
-
addAllLanguageConstants
The list of resource names of languages to be targeted. The resource name is of the format "languageConstants/{criterion_id}". See https://developers.google.com/google-ads/api/data/codes-formats#languages for the list of language criterion codes.repeated string language_constants = 1;- Parameters:
values- The languageConstants to add.- Returns:
- This builder for chaining.
-
clearLanguageConstants
The list of resource names of languages to be targeted. The resource name is of the format "languageConstants/{criterion_id}". See https://developers.google.com/google-ads/api/data/codes-formats#languages for the list of language criterion codes.repeated string language_constants = 1;- Returns:
- This builder for chaining.
-
addLanguageConstantsBytes
The list of resource names of languages to be targeted. The resource name is of the format "languageConstants/{criterion_id}". See https://developers.google.com/google-ads/api/data/codes-formats#languages for the list of language criterion codes.repeated string language_constants = 1;- Parameters:
value- The bytes of the languageConstants to add.- Returns:
- This builder for chaining.
-
getGeoTargetConstantsList
public com.google.protobuf.ProtocolStringList getGeoTargetConstantsList()Locations to be targeted. Locations must be unique. The resource name is of the format "geoTargetConstants/{criterion_id}".repeated string geo_target_constants = 8;- Specified by:
getGeoTargetConstantsListin interfaceCampaignToForecastOrBuilder- Returns:
- A list containing the geoTargetConstants.
-
getGeoTargetConstantsCount
public int getGeoTargetConstantsCount()Locations to be targeted. Locations must be unique. The resource name is of the format "geoTargetConstants/{criterion_id}".repeated string geo_target_constants = 8;- Specified by:
getGeoTargetConstantsCountin interfaceCampaignToForecastOrBuilder- Returns:
- The count of geoTargetConstants.
-
getGeoTargetConstants
Locations to be targeted. Locations must be unique. The resource name is of the format "geoTargetConstants/{criterion_id}".repeated string geo_target_constants = 8;- Specified by:
getGeoTargetConstantsin interfaceCampaignToForecastOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The geoTargetConstants at the given index.
-
getGeoTargetConstantsBytes
public com.google.protobuf.ByteString getGeoTargetConstantsBytes(int index) Locations to be targeted. Locations must be unique. The resource name is of the format "geoTargetConstants/{criterion_id}".repeated string geo_target_constants = 8;- Specified by:
getGeoTargetConstantsBytesin interfaceCampaignToForecastOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the geoTargetConstants at the given index.
-
setGeoTargetConstants
Locations to be targeted. Locations must be unique. The resource name is of the format "geoTargetConstants/{criterion_id}".repeated string geo_target_constants = 8;- Parameters:
index- The index to set the value at.value- The geoTargetConstants to set.- Returns:
- This builder for chaining.
-
addGeoTargetConstants
Locations to be targeted. Locations must be unique. The resource name is of the format "geoTargetConstants/{criterion_id}".repeated string geo_target_constants = 8;- Parameters:
value- The geoTargetConstants to add.- Returns:
- This builder for chaining.
-
addAllGeoTargetConstants
Locations to be targeted. Locations must be unique. The resource name is of the format "geoTargetConstants/{criterion_id}".repeated string geo_target_constants = 8;- Parameters:
values- The geoTargetConstants to add.- Returns:
- This builder for chaining.
-
clearGeoTargetConstants
Locations to be targeted. Locations must be unique. The resource name is of the format "geoTargetConstants/{criterion_id}".repeated string geo_target_constants = 8;- Returns:
- This builder for chaining.
-
addGeoTargetConstantsBytes
Locations to be targeted. Locations must be unique. The resource name is of the format "geoTargetConstants/{criterion_id}".repeated string geo_target_constants = 8;- Parameters:
value- The bytes of the geoTargetConstants to add.- Returns:
- This builder for chaining.
-
hasBiddingStrategy
public boolean hasBiddingStrategy()Required. The bidding strategy for the campaign.
.google.ads.googleads.v24.services.CampaignToForecast.CampaignBiddingStrategy bidding_strategy = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasBiddingStrategyin interfaceCampaignToForecastOrBuilder- Returns:
- Whether the biddingStrategy field is set.
-
getBiddingStrategy
Required. The bidding strategy for the campaign.
.google.ads.googleads.v24.services.CampaignToForecast.CampaignBiddingStrategy bidding_strategy = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getBiddingStrategyin interfaceCampaignToForecastOrBuilder- Returns:
- The biddingStrategy.
-
setBiddingStrategy
public CampaignToForecast.Builder setBiddingStrategy(CampaignToForecast.CampaignBiddingStrategy value) Required. The bidding strategy for the campaign.
.google.ads.googleads.v24.services.CampaignToForecast.CampaignBiddingStrategy bidding_strategy = 5 [(.google.api.field_behavior) = REQUIRED]; -
setBiddingStrategy
public CampaignToForecast.Builder setBiddingStrategy(CampaignToForecast.CampaignBiddingStrategy.Builder builderForValue) Required. The bidding strategy for the campaign.
.google.ads.googleads.v24.services.CampaignToForecast.CampaignBiddingStrategy bidding_strategy = 5 [(.google.api.field_behavior) = REQUIRED]; -
mergeBiddingStrategy
public CampaignToForecast.Builder mergeBiddingStrategy(CampaignToForecast.CampaignBiddingStrategy value) Required. The bidding strategy for the campaign.
.google.ads.googleads.v24.services.CampaignToForecast.CampaignBiddingStrategy bidding_strategy = 5 [(.google.api.field_behavior) = REQUIRED]; -
clearBiddingStrategy
Required. The bidding strategy for the campaign.
.google.ads.googleads.v24.services.CampaignToForecast.CampaignBiddingStrategy bidding_strategy = 5 [(.google.api.field_behavior) = REQUIRED]; -
getBiddingStrategyBuilder
Required. The bidding strategy for the campaign.
.google.ads.googleads.v24.services.CampaignToForecast.CampaignBiddingStrategy bidding_strategy = 5 [(.google.api.field_behavior) = REQUIRED]; -
getBiddingStrategyOrBuilder
Required. The bidding strategy for the campaign.
.google.ads.googleads.v24.services.CampaignToForecast.CampaignBiddingStrategy bidding_strategy = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getBiddingStrategyOrBuilderin interfaceCampaignToForecastOrBuilder
-
getAdGroupsList
The ad groups in the new campaign to forecast.
repeated .google.ads.googleads.v24.services.ForecastAdGroup ad_groups = 7;- Specified by:
getAdGroupsListin interfaceCampaignToForecastOrBuilder
-
getAdGroupsCount
public int getAdGroupsCount()The ad groups in the new campaign to forecast.
repeated .google.ads.googleads.v24.services.ForecastAdGroup ad_groups = 7;- Specified by:
getAdGroupsCountin interfaceCampaignToForecastOrBuilder
-
getAdGroups
The ad groups in the new campaign to forecast.
repeated .google.ads.googleads.v24.services.ForecastAdGroup ad_groups = 7;- Specified by:
getAdGroupsin interfaceCampaignToForecastOrBuilder
-
setAdGroups
The ad groups in the new campaign to forecast.
repeated .google.ads.googleads.v24.services.ForecastAdGroup ad_groups = 7; -
setAdGroups
The ad groups in the new campaign to forecast.
repeated .google.ads.googleads.v24.services.ForecastAdGroup ad_groups = 7; -
addAdGroups
The ad groups in the new campaign to forecast.
repeated .google.ads.googleads.v24.services.ForecastAdGroup ad_groups = 7; -
addAdGroups
The ad groups in the new campaign to forecast.
repeated .google.ads.googleads.v24.services.ForecastAdGroup ad_groups = 7; -
addAdGroups
The ad groups in the new campaign to forecast.
repeated .google.ads.googleads.v24.services.ForecastAdGroup ad_groups = 7; -
addAdGroups
The ad groups in the new campaign to forecast.
repeated .google.ads.googleads.v24.services.ForecastAdGroup ad_groups = 7; -
addAllAdGroups
The ad groups in the new campaign to forecast.
repeated .google.ads.googleads.v24.services.ForecastAdGroup ad_groups = 7; -
clearAdGroups
The ad groups in the new campaign to forecast.
repeated .google.ads.googleads.v24.services.ForecastAdGroup ad_groups = 7; -
removeAdGroups
The ad groups in the new campaign to forecast.
repeated .google.ads.googleads.v24.services.ForecastAdGroup ad_groups = 7; -
getAdGroupsBuilder
The ad groups in the new campaign to forecast.
repeated .google.ads.googleads.v24.services.ForecastAdGroup ad_groups = 7; -
getAdGroupsOrBuilder
The ad groups in the new campaign to forecast.
repeated .google.ads.googleads.v24.services.ForecastAdGroup ad_groups = 7;- Specified by:
getAdGroupsOrBuilderin interfaceCampaignToForecastOrBuilder
-
getAdGroupsOrBuilderList
The ad groups in the new campaign to forecast.
repeated .google.ads.googleads.v24.services.ForecastAdGroup ad_groups = 7;- Specified by:
getAdGroupsOrBuilderListin interfaceCampaignToForecastOrBuilder
-
addAdGroupsBuilder
The ad groups in the new campaign to forecast.
repeated .google.ads.googleads.v24.services.ForecastAdGroup ad_groups = 7; -
addAdGroupsBuilder
The ad groups in the new campaign to forecast.
repeated .google.ads.googleads.v24.services.ForecastAdGroup ad_groups = 7; -
getAdGroupsBuilderList
The ad groups in the new campaign to forecast.
repeated .google.ads.googleads.v24.services.ForecastAdGroup ad_groups = 7;
-