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.v25.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.v25.services.CampaignToForecast
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CampaignToForecast.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CampaignToForecast.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CampaignToForecast.Builder>
    • getDefaultInstanceForType

      public CampaignToForecast getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public CampaignToForecast build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CampaignToForecast buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CampaignToForecast.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CampaignToForecast.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getLanguageConstantsList in interface CampaignToForecastOrBuilder
      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:
      getLanguageConstantsCount in interface CampaignToForecastOrBuilder
      Returns:
      The count of languageConstants.
    • getLanguageConstants

      public String getLanguageConstants(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:
      getLanguageConstants in interface CampaignToForecastOrBuilder
      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:
      getLanguageConstantsBytes in interface CampaignToForecastOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the languageConstants at the given index.
    • setLanguageConstants

      public CampaignToForecast.Builder setLanguageConstants(int index, String value)
       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

      public CampaignToForecast.Builder addLanguageConstants(String value)
       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

      public CampaignToForecast.Builder addAllLanguageConstants(Iterable<String> values)
       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

      public CampaignToForecast.Builder 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

      public CampaignToForecast.Builder addLanguageConstantsBytes(com.google.protobuf.ByteString value)
       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:
      getGeoTargetConstantsList in interface CampaignToForecastOrBuilder
      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:
      getGeoTargetConstantsCount in interface CampaignToForecastOrBuilder
      Returns:
      The count of geoTargetConstants.
    • getGeoTargetConstants

      public String getGeoTargetConstants(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:
      getGeoTargetConstants in interface CampaignToForecastOrBuilder
      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:
      getGeoTargetConstantsBytes in interface CampaignToForecastOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the geoTargetConstants at the given index.
    • setGeoTargetConstants

      public CampaignToForecast.Builder setGeoTargetConstants(int index, String value)
       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

      public CampaignToForecast.Builder addGeoTargetConstants(String value)
       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

      public CampaignToForecast.Builder addAllGeoTargetConstants(Iterable<String> values)
       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

      public CampaignToForecast.Builder 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

      public CampaignToForecast.Builder addGeoTargetConstantsBytes(com.google.protobuf.ByteString value)
       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.v25.services.CampaignToForecast.CampaignBiddingStrategy bidding_strategy = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasBiddingStrategy in interface CampaignToForecastOrBuilder
      Returns:
      Whether the biddingStrategy field is set.
    • getBiddingStrategy

      public CampaignToForecast.CampaignBiddingStrategy getBiddingStrategy()
       Required. The bidding strategy for the campaign.
       
      .google.ads.googleads.v25.services.CampaignToForecast.CampaignBiddingStrategy bidding_strategy = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getBiddingStrategy in interface CampaignToForecastOrBuilder
      Returns:
      The biddingStrategy.
    • setBiddingStrategy

       Required. The bidding strategy for the campaign.
       
      .google.ads.googleads.v25.services.CampaignToForecast.CampaignBiddingStrategy bidding_strategy = 5 [(.google.api.field_behavior) = REQUIRED];
    • setBiddingStrategy

       Required. The bidding strategy for the campaign.
       
      .google.ads.googleads.v25.services.CampaignToForecast.CampaignBiddingStrategy bidding_strategy = 5 [(.google.api.field_behavior) = REQUIRED];
    • mergeBiddingStrategy

       Required. The bidding strategy for the campaign.
       
      .google.ads.googleads.v25.services.CampaignToForecast.CampaignBiddingStrategy bidding_strategy = 5 [(.google.api.field_behavior) = REQUIRED];
    • clearBiddingStrategy

      public CampaignToForecast.Builder clearBiddingStrategy()
       Required. The bidding strategy for the campaign.
       
      .google.ads.googleads.v25.services.CampaignToForecast.CampaignBiddingStrategy bidding_strategy = 5 [(.google.api.field_behavior) = REQUIRED];
    • getBiddingStrategyBuilder

      public CampaignToForecast.CampaignBiddingStrategy.Builder getBiddingStrategyBuilder()
       Required. The bidding strategy for the campaign.
       
      .google.ads.googleads.v25.services.CampaignToForecast.CampaignBiddingStrategy bidding_strategy = 5 [(.google.api.field_behavior) = REQUIRED];
    • getBiddingStrategyOrBuilder

      public CampaignToForecast.CampaignBiddingStrategyOrBuilder getBiddingStrategyOrBuilder()
       Required. The bidding strategy for the campaign.
       
      .google.ads.googleads.v25.services.CampaignToForecast.CampaignBiddingStrategy bidding_strategy = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getBiddingStrategyOrBuilder in interface CampaignToForecastOrBuilder
    • getAdGroupsList

      public List<ForecastAdGroup> getAdGroupsList()
       The ad groups in the new campaign to forecast.
       
      repeated .google.ads.googleads.v25.services.ForecastAdGroup ad_groups = 7;
      Specified by:
      getAdGroupsList in interface CampaignToForecastOrBuilder
    • getAdGroupsCount

      public int getAdGroupsCount()
       The ad groups in the new campaign to forecast.
       
      repeated .google.ads.googleads.v25.services.ForecastAdGroup ad_groups = 7;
      Specified by:
      getAdGroupsCount in interface CampaignToForecastOrBuilder
    • getAdGroups

      public ForecastAdGroup getAdGroups(int index)
       The ad groups in the new campaign to forecast.
       
      repeated .google.ads.googleads.v25.services.ForecastAdGroup ad_groups = 7;
      Specified by:
      getAdGroups in interface CampaignToForecastOrBuilder
    • setAdGroups

      public CampaignToForecast.Builder setAdGroups(int index, ForecastAdGroup value)
       The ad groups in the new campaign to forecast.
       
      repeated .google.ads.googleads.v25.services.ForecastAdGroup ad_groups = 7;
    • setAdGroups

      public CampaignToForecast.Builder setAdGroups(int index, ForecastAdGroup.Builder builderForValue)
       The ad groups in the new campaign to forecast.
       
      repeated .google.ads.googleads.v25.services.ForecastAdGroup ad_groups = 7;
    • addAdGroups

      public CampaignToForecast.Builder addAdGroups(ForecastAdGroup value)
       The ad groups in the new campaign to forecast.
       
      repeated .google.ads.googleads.v25.services.ForecastAdGroup ad_groups = 7;
    • addAdGroups

      public CampaignToForecast.Builder addAdGroups(int index, ForecastAdGroup value)
       The ad groups in the new campaign to forecast.
       
      repeated .google.ads.googleads.v25.services.ForecastAdGroup ad_groups = 7;
    • addAdGroups

      public CampaignToForecast.Builder addAdGroups(ForecastAdGroup.Builder builderForValue)
       The ad groups in the new campaign to forecast.
       
      repeated .google.ads.googleads.v25.services.ForecastAdGroup ad_groups = 7;
    • addAdGroups

      public CampaignToForecast.Builder addAdGroups(int index, ForecastAdGroup.Builder builderForValue)
       The ad groups in the new campaign to forecast.
       
      repeated .google.ads.googleads.v25.services.ForecastAdGroup ad_groups = 7;
    • addAllAdGroups

      public CampaignToForecast.Builder addAllAdGroups(Iterable<? extends ForecastAdGroup> values)
       The ad groups in the new campaign to forecast.
       
      repeated .google.ads.googleads.v25.services.ForecastAdGroup ad_groups = 7;
    • clearAdGroups

      public CampaignToForecast.Builder clearAdGroups()
       The ad groups in the new campaign to forecast.
       
      repeated .google.ads.googleads.v25.services.ForecastAdGroup ad_groups = 7;
    • removeAdGroups

      public CampaignToForecast.Builder removeAdGroups(int index)
       The ad groups in the new campaign to forecast.
       
      repeated .google.ads.googleads.v25.services.ForecastAdGroup ad_groups = 7;
    • getAdGroupsBuilder

      public ForecastAdGroup.Builder getAdGroupsBuilder(int index)
       The ad groups in the new campaign to forecast.
       
      repeated .google.ads.googleads.v25.services.ForecastAdGroup ad_groups = 7;
    • getAdGroupsOrBuilder

      public ForecastAdGroupOrBuilder getAdGroupsOrBuilder(int index)
       The ad groups in the new campaign to forecast.
       
      repeated .google.ads.googleads.v25.services.ForecastAdGroup ad_groups = 7;
      Specified by:
      getAdGroupsOrBuilder in interface CampaignToForecastOrBuilder
    • getAdGroupsOrBuilderList

      public List<? extends ForecastAdGroupOrBuilder> getAdGroupsOrBuilderList()
       The ad groups in the new campaign to forecast.
       
      repeated .google.ads.googleads.v25.services.ForecastAdGroup ad_groups = 7;
      Specified by:
      getAdGroupsOrBuilderList in interface CampaignToForecastOrBuilder
    • addAdGroupsBuilder

      public ForecastAdGroup.Builder addAdGroupsBuilder()
       The ad groups in the new campaign to forecast.
       
      repeated .google.ads.googleads.v25.services.ForecastAdGroup ad_groups = 7;
    • addAdGroupsBuilder

      public ForecastAdGroup.Builder addAdGroupsBuilder(int index)
       The ad groups in the new campaign to forecast.
       
      repeated .google.ads.googleads.v25.services.ForecastAdGroup ad_groups = 7;
    • getAdGroupsBuilderList

      public List<ForecastAdGroup.Builder> getAdGroupsBuilderList()
       The ad groups in the new campaign to forecast.
       
      repeated .google.ads.googleads.v25.services.ForecastAdGroup ad_groups = 7;