Class CampaignToForecast

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.ads.googleads.v24.services.CampaignToForecast
All Implemented Interfaces:
CampaignToForecastOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class CampaignToForecast extends com.google.protobuf.GeneratedMessage implements CampaignToForecastOrBuilder
 A campaign to do a keyword campaign forecast.
 
Protobuf type google.ads.googleads.v24.services.CampaignToForecast
See Also:
  • Field Details

    • LANGUAGE_CONSTANTS_FIELD_NUMBER

      public static final int LANGUAGE_CONSTANTS_FIELD_NUMBER
      See Also:
    • GEO_TARGET_CONSTANTS_FIELD_NUMBER

      public static final int GEO_TARGET_CONSTANTS_FIELD_NUMBER
      See Also:
    • BIDDING_STRATEGY_FIELD_NUMBER

      public static final int BIDDING_STRATEGY_FIELD_NUMBER
      See Also:
    • AD_GROUPS_FIELD_NUMBER

      public static final int AD_GROUPS_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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:
      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.v24.services.CampaignToForecast.CampaignBiddingStrategy bidding_strategy = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getBiddingStrategy in interface CampaignToForecastOrBuilder
      Returns:
      The biddingStrategy.
    • getBiddingStrategyOrBuilder

      public CampaignToForecast.CampaignBiddingStrategyOrBuilder 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:
      getBiddingStrategyOrBuilder in interface CampaignToForecastOrBuilder
    • getAdGroupsList

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

      public List<? extends ForecastAdGroupOrBuilder> getAdGroupsOrBuilderList()
       The ad groups in the new campaign to forecast.
       
      repeated .google.ads.googleads.v24.services.ForecastAdGroup ad_groups = 7;
      Specified by:
      getAdGroupsOrBuilderList in interface CampaignToForecastOrBuilder
    • 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:
      getAdGroupsCount in interface CampaignToForecastOrBuilder
    • getAdGroups

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

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

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static CampaignToForecast parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CampaignToForecast parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CampaignToForecast parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CampaignToForecast parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CampaignToForecast parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CampaignToForecast parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CampaignToForecast parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CampaignToForecast parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CampaignToForecast parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CampaignToForecast parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CampaignToForecast parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CampaignToForecast parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static CampaignToForecast.Builder newBuilder()
    • newBuilder

      public static CampaignToForecast.Builder newBuilder(CampaignToForecast prototype)
    • toBuilder

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

      protected CampaignToForecast.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static CampaignToForecast getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<CampaignToForecast> parser()
    • getParserForType

      public com.google.protobuf.Parser<CampaignToForecast> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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