Class GenerateRecommendationsRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.Builder>
com.google.ads.googleads.v17.services.GenerateRecommendationsRequest.Builder
All Implemented Interfaces:
GenerateRecommendationsRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GenerateRecommendationsRequest

public static final class GenerateRecommendationsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.Builder> implements GenerateRecommendationsRequestOrBuilder
 Request message for
 [RecommendationService.GenerateRecommendations][google.ads.googleads.v17.services.RecommendationService.GenerateRecommendations].
 
Protobuf type google.ads.googleads.v17.services.GenerateRecommendationsRequest
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.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.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.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.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.Builder>
    • setField

      public GenerateRecommendationsRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.Builder>
    • clearField

      public GenerateRecommendationsRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.Builder>
    • clearOneof

      public GenerateRecommendationsRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.Builder>
    • setRepeatedField

      public GenerateRecommendationsRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.Builder>
    • addRepeatedField

      public GenerateRecommendationsRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.Builder>
    • mergeFrom

      public GenerateRecommendationsRequest.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<GenerateRecommendationsRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.Builder>
    • mergeFrom

      public GenerateRecommendationsRequest.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<GenerateRecommendationsRequest.Builder>
      Throws:
      IOException
    • getCustomerId

      public String getCustomerId()
       Required. The ID of the customer generating recommendations.
       
      string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCustomerId in interface GenerateRecommendationsRequestOrBuilder
      Returns:
      The customerId.
    • getCustomerIdBytes

      public com.google.protobuf.ByteString getCustomerIdBytes()
       Required. The ID of the customer generating recommendations.
       
      string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCustomerIdBytes in interface GenerateRecommendationsRequestOrBuilder
      Returns:
      The bytes for customerId.
    • setCustomerId

      public GenerateRecommendationsRequest.Builder setCustomerId(String value)
       Required. The ID of the customer generating recommendations.
       
      string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The customerId to set.
      Returns:
      This builder for chaining.
    • clearCustomerId

      public GenerateRecommendationsRequest.Builder clearCustomerId()
       Required. The ID of the customer generating recommendations.
       
      string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setCustomerIdBytes

      public GenerateRecommendationsRequest.Builder setCustomerIdBytes(com.google.protobuf.ByteString value)
       Required. The ID of the customer generating recommendations.
       
      string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for customerId to set.
      Returns:
      This builder for chaining.
    • getRecommendationTypesList

      public List<RecommendationTypeEnum.RecommendationType> getRecommendationTypesList()
       Required. List of eligible recommendation_types to generate. If the
       uploaded criteria isn't sufficient to make a recommendation, or the
       campaign is already in the recommended state, no recommendation will be
       returned for that type. Generally, a recommendation is returned if all
       required fields for that recommendation_type are uploaded, but there are
       cases where this is still not sufficient.
      
       The following recommendation_types are supported for recommendation
       generation:
       KEYWORD, MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN,
       MAXIMIZE_CONVERSION_VALUE_OPT_IN, SET_TARGET_CPA, SET_TARGET_ROAS,
       SITELINK_ASSET, TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN
       
      repeated .google.ads.googleads.v17.enums.RecommendationTypeEnum.RecommendationType recommendation_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRecommendationTypesList in interface GenerateRecommendationsRequestOrBuilder
      Returns:
      A list containing the recommendationTypes.
    • getRecommendationTypesCount

      public int getRecommendationTypesCount()
       Required. List of eligible recommendation_types to generate. If the
       uploaded criteria isn't sufficient to make a recommendation, or the
       campaign is already in the recommended state, no recommendation will be
       returned for that type. Generally, a recommendation is returned if all
       required fields for that recommendation_type are uploaded, but there are
       cases where this is still not sufficient.
      
       The following recommendation_types are supported for recommendation
       generation:
       KEYWORD, MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN,
       MAXIMIZE_CONVERSION_VALUE_OPT_IN, SET_TARGET_CPA, SET_TARGET_ROAS,
       SITELINK_ASSET, TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN
       
      repeated .google.ads.googleads.v17.enums.RecommendationTypeEnum.RecommendationType recommendation_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRecommendationTypesCount in interface GenerateRecommendationsRequestOrBuilder
      Returns:
      The count of recommendationTypes.
    • getRecommendationTypes

      public RecommendationTypeEnum.RecommendationType getRecommendationTypes(int index)
       Required. List of eligible recommendation_types to generate. If the
       uploaded criteria isn't sufficient to make a recommendation, or the
       campaign is already in the recommended state, no recommendation will be
       returned for that type. Generally, a recommendation is returned if all
       required fields for that recommendation_type are uploaded, but there are
       cases where this is still not sufficient.
      
       The following recommendation_types are supported for recommendation
       generation:
       KEYWORD, MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN,
       MAXIMIZE_CONVERSION_VALUE_OPT_IN, SET_TARGET_CPA, SET_TARGET_ROAS,
       SITELINK_ASSET, TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN
       
      repeated .google.ads.googleads.v17.enums.RecommendationTypeEnum.RecommendationType recommendation_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRecommendationTypes in interface GenerateRecommendationsRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The recommendationTypes at the given index.
    • setRecommendationTypes

      public GenerateRecommendationsRequest.Builder setRecommendationTypes(int index, RecommendationTypeEnum.RecommendationType value)
       Required. List of eligible recommendation_types to generate. If the
       uploaded criteria isn't sufficient to make a recommendation, or the
       campaign is already in the recommended state, no recommendation will be
       returned for that type. Generally, a recommendation is returned if all
       required fields for that recommendation_type are uploaded, but there are
       cases where this is still not sufficient.
      
       The following recommendation_types are supported for recommendation
       generation:
       KEYWORD, MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN,
       MAXIMIZE_CONVERSION_VALUE_OPT_IN, SET_TARGET_CPA, SET_TARGET_ROAS,
       SITELINK_ASSET, TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN
       
      repeated .google.ads.googleads.v17.enums.RecommendationTypeEnum.RecommendationType recommendation_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The recommendationTypes to set.
      Returns:
      This builder for chaining.
    • addRecommendationTypes

       Required. List of eligible recommendation_types to generate. If the
       uploaded criteria isn't sufficient to make a recommendation, or the
       campaign is already in the recommended state, no recommendation will be
       returned for that type. Generally, a recommendation is returned if all
       required fields for that recommendation_type are uploaded, but there are
       cases where this is still not sufficient.
      
       The following recommendation_types are supported for recommendation
       generation:
       KEYWORD, MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN,
       MAXIMIZE_CONVERSION_VALUE_OPT_IN, SET_TARGET_CPA, SET_TARGET_ROAS,
       SITELINK_ASSET, TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN
       
      repeated .google.ads.googleads.v17.enums.RecommendationTypeEnum.RecommendationType recommendation_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The recommendationTypes to add.
      Returns:
      This builder for chaining.
    • addAllRecommendationTypes

       Required. List of eligible recommendation_types to generate. If the
       uploaded criteria isn't sufficient to make a recommendation, or the
       campaign is already in the recommended state, no recommendation will be
       returned for that type. Generally, a recommendation is returned if all
       required fields for that recommendation_type are uploaded, but there are
       cases where this is still not sufficient.
      
       The following recommendation_types are supported for recommendation
       generation:
       KEYWORD, MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN,
       MAXIMIZE_CONVERSION_VALUE_OPT_IN, SET_TARGET_CPA, SET_TARGET_ROAS,
       SITELINK_ASSET, TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN
       
      repeated .google.ads.googleads.v17.enums.RecommendationTypeEnum.RecommendationType recommendation_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The recommendationTypes to add.
      Returns:
      This builder for chaining.
    • clearRecommendationTypes

      public GenerateRecommendationsRequest.Builder clearRecommendationTypes()
       Required. List of eligible recommendation_types to generate. If the
       uploaded criteria isn't sufficient to make a recommendation, or the
       campaign is already in the recommended state, no recommendation will be
       returned for that type. Generally, a recommendation is returned if all
       required fields for that recommendation_type are uploaded, but there are
       cases where this is still not sufficient.
      
       The following recommendation_types are supported for recommendation
       generation:
       KEYWORD, MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN,
       MAXIMIZE_CONVERSION_VALUE_OPT_IN, SET_TARGET_CPA, SET_TARGET_ROAS,
       SITELINK_ASSET, TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN
       
      repeated .google.ads.googleads.v17.enums.RecommendationTypeEnum.RecommendationType recommendation_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getRecommendationTypesValueList

      public List<Integer> getRecommendationTypesValueList()
       Required. List of eligible recommendation_types to generate. If the
       uploaded criteria isn't sufficient to make a recommendation, or the
       campaign is already in the recommended state, no recommendation will be
       returned for that type. Generally, a recommendation is returned if all
       required fields for that recommendation_type are uploaded, but there are
       cases where this is still not sufficient.
      
       The following recommendation_types are supported for recommendation
       generation:
       KEYWORD, MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN,
       MAXIMIZE_CONVERSION_VALUE_OPT_IN, SET_TARGET_CPA, SET_TARGET_ROAS,
       SITELINK_ASSET, TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN
       
      repeated .google.ads.googleads.v17.enums.RecommendationTypeEnum.RecommendationType recommendation_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRecommendationTypesValueList in interface GenerateRecommendationsRequestOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for recommendationTypes.
    • getRecommendationTypesValue

      public int getRecommendationTypesValue(int index)
       Required. List of eligible recommendation_types to generate. If the
       uploaded criteria isn't sufficient to make a recommendation, or the
       campaign is already in the recommended state, no recommendation will be
       returned for that type. Generally, a recommendation is returned if all
       required fields for that recommendation_type are uploaded, but there are
       cases where this is still not sufficient.
      
       The following recommendation_types are supported for recommendation
       generation:
       KEYWORD, MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN,
       MAXIMIZE_CONVERSION_VALUE_OPT_IN, SET_TARGET_CPA, SET_TARGET_ROAS,
       SITELINK_ASSET, TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN
       
      repeated .google.ads.googleads.v17.enums.RecommendationTypeEnum.RecommendationType recommendation_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRecommendationTypesValue in interface GenerateRecommendationsRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of recommendationTypes at the given index.
    • setRecommendationTypesValue

      public GenerateRecommendationsRequest.Builder setRecommendationTypesValue(int index, int value)
       Required. List of eligible recommendation_types to generate. If the
       uploaded criteria isn't sufficient to make a recommendation, or the
       campaign is already in the recommended state, no recommendation will be
       returned for that type. Generally, a recommendation is returned if all
       required fields for that recommendation_type are uploaded, but there are
       cases where this is still not sufficient.
      
       The following recommendation_types are supported for recommendation
       generation:
       KEYWORD, MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN,
       MAXIMIZE_CONVERSION_VALUE_OPT_IN, SET_TARGET_CPA, SET_TARGET_ROAS,
       SITELINK_ASSET, TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN
       
      repeated .google.ads.googleads.v17.enums.RecommendationTypeEnum.RecommendationType recommendation_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for recommendationTypes to set.
      Returns:
      This builder for chaining.
    • addRecommendationTypesValue

      public GenerateRecommendationsRequest.Builder addRecommendationTypesValue(int value)
       Required. List of eligible recommendation_types to generate. If the
       uploaded criteria isn't sufficient to make a recommendation, or the
       campaign is already in the recommended state, no recommendation will be
       returned for that type. Generally, a recommendation is returned if all
       required fields for that recommendation_type are uploaded, but there are
       cases where this is still not sufficient.
      
       The following recommendation_types are supported for recommendation
       generation:
       KEYWORD, MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN,
       MAXIMIZE_CONVERSION_VALUE_OPT_IN, SET_TARGET_CPA, SET_TARGET_ROAS,
       SITELINK_ASSET, TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN
       
      repeated .google.ads.googleads.v17.enums.RecommendationTypeEnum.RecommendationType recommendation_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for recommendationTypes to add.
      Returns:
      This builder for chaining.
    • addAllRecommendationTypesValue

      public GenerateRecommendationsRequest.Builder addAllRecommendationTypesValue(Iterable<Integer> values)
       Required. List of eligible recommendation_types to generate. If the
       uploaded criteria isn't sufficient to make a recommendation, or the
       campaign is already in the recommended state, no recommendation will be
       returned for that type. Generally, a recommendation is returned if all
       required fields for that recommendation_type are uploaded, but there are
       cases where this is still not sufficient.
      
       The following recommendation_types are supported for recommendation
       generation:
       KEYWORD, MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN,
       MAXIMIZE_CONVERSION_VALUE_OPT_IN, SET_TARGET_CPA, SET_TARGET_ROAS,
       SITELINK_ASSET, TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN
       
      repeated .google.ads.googleads.v17.enums.RecommendationTypeEnum.RecommendationType recommendation_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The enum numeric values on the wire for recommendationTypes to add.
      Returns:
      This builder for chaining.
    • getAdvertisingChannelTypeValue

      public int getAdvertisingChannelTypeValue()
       Required. Advertising channel type of the campaign.
       The following advertising_channel_types are supported for recommendation
       generation:
       PERFORMANCE_MAX and SEARCH
       
      .google.ads.googleads.v17.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAdvertisingChannelTypeValue in interface GenerateRecommendationsRequestOrBuilder
      Returns:
      The enum numeric value on the wire for advertisingChannelType.
    • setAdvertisingChannelTypeValue

      public GenerateRecommendationsRequest.Builder setAdvertisingChannelTypeValue(int value)
       Required. Advertising channel type of the campaign.
       The following advertising_channel_types are supported for recommendation
       generation:
       PERFORMANCE_MAX and SEARCH
       
      .google.ads.googleads.v17.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for advertisingChannelType to set.
      Returns:
      This builder for chaining.
    • getAdvertisingChannelType

      public AdvertisingChannelTypeEnum.AdvertisingChannelType getAdvertisingChannelType()
       Required. Advertising channel type of the campaign.
       The following advertising_channel_types are supported for recommendation
       generation:
       PERFORMANCE_MAX and SEARCH
       
      .google.ads.googleads.v17.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAdvertisingChannelType in interface GenerateRecommendationsRequestOrBuilder
      Returns:
      The advertisingChannelType.
    • setAdvertisingChannelType

       Required. Advertising channel type of the campaign.
       The following advertising_channel_types are supported for recommendation
       generation:
       PERFORMANCE_MAX and SEARCH
       
      .google.ads.googleads.v17.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The advertisingChannelType to set.
      Returns:
      This builder for chaining.
    • clearAdvertisingChannelType

      public GenerateRecommendationsRequest.Builder clearAdvertisingChannelType()
       Required. Advertising channel type of the campaign.
       The following advertising_channel_types are supported for recommendation
       generation:
       PERFORMANCE_MAX and SEARCH
       
      .google.ads.googleads.v17.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • hasCampaignSitelinkCount

      public boolean hasCampaignSitelinkCount()
       Optional. Number of sitelinks on the campaign.
       This field is necessary for the following recommendation_types:
       SITELINK_ASSET
       
      optional int32 campaign_sitelink_count = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasCampaignSitelinkCount in interface GenerateRecommendationsRequestOrBuilder
      Returns:
      Whether the campaignSitelinkCount field is set.
    • getCampaignSitelinkCount

      public int getCampaignSitelinkCount()
       Optional. Number of sitelinks on the campaign.
       This field is necessary for the following recommendation_types:
       SITELINK_ASSET
       
      optional int32 campaign_sitelink_count = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCampaignSitelinkCount in interface GenerateRecommendationsRequestOrBuilder
      Returns:
      The campaignSitelinkCount.
    • setCampaignSitelinkCount

      public GenerateRecommendationsRequest.Builder setCampaignSitelinkCount(int value)
       Optional. Number of sitelinks on the campaign.
       This field is necessary for the following recommendation_types:
       SITELINK_ASSET
       
      optional int32 campaign_sitelink_count = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The campaignSitelinkCount to set.
      Returns:
      This builder for chaining.
    • clearCampaignSitelinkCount

      public GenerateRecommendationsRequest.Builder clearCampaignSitelinkCount()
       Optional. Number of sitelinks on the campaign.
       This field is necessary for the following recommendation_types:
       SITELINK_ASSET
       
      optional int32 campaign_sitelink_count = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasConversionTrackingStatus

      public boolean hasConversionTrackingStatus()
       Optional. Current conversion tracking status.
       This field is necessary for the following recommendation_types:
       MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN,
       MAXIMIZE_CONVERSION_VALUE_OPT_IN, SET_TARGET_CPA, SET_TARGET_ROAS,
       TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN
       
      optional .google.ads.googleads.v17.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus conversion_tracking_status = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasConversionTrackingStatus in interface GenerateRecommendationsRequestOrBuilder
      Returns:
      Whether the conversionTrackingStatus field is set.
    • getConversionTrackingStatusValue

      public int getConversionTrackingStatusValue()
       Optional. Current conversion tracking status.
       This field is necessary for the following recommendation_types:
       MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN,
       MAXIMIZE_CONVERSION_VALUE_OPT_IN, SET_TARGET_CPA, SET_TARGET_ROAS,
       TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN
       
      optional .google.ads.googleads.v17.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus conversion_tracking_status = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConversionTrackingStatusValue in interface GenerateRecommendationsRequestOrBuilder
      Returns:
      The enum numeric value on the wire for conversionTrackingStatus.
    • setConversionTrackingStatusValue

      public GenerateRecommendationsRequest.Builder setConversionTrackingStatusValue(int value)
       Optional. Current conversion tracking status.
       This field is necessary for the following recommendation_types:
       MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN,
       MAXIMIZE_CONVERSION_VALUE_OPT_IN, SET_TARGET_CPA, SET_TARGET_ROAS,
       TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN
       
      optional .google.ads.googleads.v17.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus conversion_tracking_status = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for conversionTrackingStatus to set.
      Returns:
      This builder for chaining.
    • getConversionTrackingStatus

      public ConversionTrackingStatusEnum.ConversionTrackingStatus getConversionTrackingStatus()
       Optional. Current conversion tracking status.
       This field is necessary for the following recommendation_types:
       MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN,
       MAXIMIZE_CONVERSION_VALUE_OPT_IN, SET_TARGET_CPA, SET_TARGET_ROAS,
       TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN
       
      optional .google.ads.googleads.v17.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus conversion_tracking_status = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConversionTrackingStatus in interface GenerateRecommendationsRequestOrBuilder
      Returns:
      The conversionTrackingStatus.
    • setConversionTrackingStatus

       Optional. Current conversion tracking status.
       This field is necessary for the following recommendation_types:
       MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN,
       MAXIMIZE_CONVERSION_VALUE_OPT_IN, SET_TARGET_CPA, SET_TARGET_ROAS,
       TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN
       
      optional .google.ads.googleads.v17.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus conversion_tracking_status = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The conversionTrackingStatus to set.
      Returns:
      This builder for chaining.
    • clearConversionTrackingStatus

      public GenerateRecommendationsRequest.Builder clearConversionTrackingStatus()
       Optional. Current conversion tracking status.
       This field is necessary for the following recommendation_types:
       MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN,
       MAXIMIZE_CONVERSION_VALUE_OPT_IN, SET_TARGET_CPA, SET_TARGET_ROAS,
       TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN
       
      optional .google.ads.googleads.v17.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus conversion_tracking_status = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasBiddingInfo

      public boolean hasBiddingInfo()
       Optional. Current bidding information of the campaign.
       This field is necessary for the following recommendation_types:
       MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN,
       MAXIMIZE_CONVERSION_VALUE_OPT_IN, SET_TARGET_CPA, SET_TARGET_ROAS,
       TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN
       
      optional .google.ads.googleads.v17.services.GenerateRecommendationsRequest.BiddingInfo bidding_info = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasBiddingInfo in interface GenerateRecommendationsRequestOrBuilder
      Returns:
      Whether the biddingInfo field is set.
    • getBiddingInfo

       Optional. Current bidding information of the campaign.
       This field is necessary for the following recommendation_types:
       MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN,
       MAXIMIZE_CONVERSION_VALUE_OPT_IN, SET_TARGET_CPA, SET_TARGET_ROAS,
       TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN
       
      optional .google.ads.googleads.v17.services.GenerateRecommendationsRequest.BiddingInfo bidding_info = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBiddingInfo in interface GenerateRecommendationsRequestOrBuilder
      Returns:
      The biddingInfo.
    • setBiddingInfo

       Optional. Current bidding information of the campaign.
       This field is necessary for the following recommendation_types:
       MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN,
       MAXIMIZE_CONVERSION_VALUE_OPT_IN, SET_TARGET_CPA, SET_TARGET_ROAS,
       TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN
       
      optional .google.ads.googleads.v17.services.GenerateRecommendationsRequest.BiddingInfo bidding_info = 6 [(.google.api.field_behavior) = OPTIONAL];
    • setBiddingInfo

       Optional. Current bidding information of the campaign.
       This field is necessary for the following recommendation_types:
       MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN,
       MAXIMIZE_CONVERSION_VALUE_OPT_IN, SET_TARGET_CPA, SET_TARGET_ROAS,
       TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN
       
      optional .google.ads.googleads.v17.services.GenerateRecommendationsRequest.BiddingInfo bidding_info = 6 [(.google.api.field_behavior) = OPTIONAL];
    • mergeBiddingInfo

       Optional. Current bidding information of the campaign.
       This field is necessary for the following recommendation_types:
       MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN,
       MAXIMIZE_CONVERSION_VALUE_OPT_IN, SET_TARGET_CPA, SET_TARGET_ROAS,
       TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN
       
      optional .google.ads.googleads.v17.services.GenerateRecommendationsRequest.BiddingInfo bidding_info = 6 [(.google.api.field_behavior) = OPTIONAL];
    • clearBiddingInfo

      public GenerateRecommendationsRequest.Builder clearBiddingInfo()
       Optional. Current bidding information of the campaign.
       This field is necessary for the following recommendation_types:
       MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN,
       MAXIMIZE_CONVERSION_VALUE_OPT_IN, SET_TARGET_CPA, SET_TARGET_ROAS,
       TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN
       
      optional .google.ads.googleads.v17.services.GenerateRecommendationsRequest.BiddingInfo bidding_info = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getBiddingInfoBuilder

       Optional. Current bidding information of the campaign.
       This field is necessary for the following recommendation_types:
       MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN,
       MAXIMIZE_CONVERSION_VALUE_OPT_IN, SET_TARGET_CPA, SET_TARGET_ROAS,
       TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN
       
      optional .google.ads.googleads.v17.services.GenerateRecommendationsRequest.BiddingInfo bidding_info = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getBiddingInfoOrBuilder

      public GenerateRecommendationsRequest.BiddingInfoOrBuilder getBiddingInfoOrBuilder()
       Optional. Current bidding information of the campaign.
       This field is necessary for the following recommendation_types:
       MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN,
       MAXIMIZE_CONVERSION_VALUE_OPT_IN, SET_TARGET_CPA, SET_TARGET_ROAS,
       TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN
       
      optional .google.ads.googleads.v17.services.GenerateRecommendationsRequest.BiddingInfo bidding_info = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBiddingInfoOrBuilder in interface GenerateRecommendationsRequestOrBuilder
    • getAdGroupInfoList

      public List<GenerateRecommendationsRequest.AdGroupInfo> getAdGroupInfoList()
       Optional. Current AdGroup Information.
       Supports information from a single AdGroup.
       This field is optional for the following recommendation_types:
       KEYWORD
       
      repeated .google.ads.googleads.v17.services.GenerateRecommendationsRequest.AdGroupInfo ad_group_info = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAdGroupInfoList in interface GenerateRecommendationsRequestOrBuilder
    • getAdGroupInfoCount

      public int getAdGroupInfoCount()
       Optional. Current AdGroup Information.
       Supports information from a single AdGroup.
       This field is optional for the following recommendation_types:
       KEYWORD
       
      repeated .google.ads.googleads.v17.services.GenerateRecommendationsRequest.AdGroupInfo ad_group_info = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAdGroupInfoCount in interface GenerateRecommendationsRequestOrBuilder
    • getAdGroupInfo

      public GenerateRecommendationsRequest.AdGroupInfo getAdGroupInfo(int index)
       Optional. Current AdGroup Information.
       Supports information from a single AdGroup.
       This field is optional for the following recommendation_types:
       KEYWORD
       
      repeated .google.ads.googleads.v17.services.GenerateRecommendationsRequest.AdGroupInfo ad_group_info = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAdGroupInfo in interface GenerateRecommendationsRequestOrBuilder
    • setAdGroupInfo

       Optional. Current AdGroup Information.
       Supports information from a single AdGroup.
       This field is optional for the following recommendation_types:
       KEYWORD
       
      repeated .google.ads.googleads.v17.services.GenerateRecommendationsRequest.AdGroupInfo ad_group_info = 7 [(.google.api.field_behavior) = OPTIONAL];
    • setAdGroupInfo

       Optional. Current AdGroup Information.
       Supports information from a single AdGroup.
       This field is optional for the following recommendation_types:
       KEYWORD
       
      repeated .google.ads.googleads.v17.services.GenerateRecommendationsRequest.AdGroupInfo ad_group_info = 7 [(.google.api.field_behavior) = OPTIONAL];
    • addAdGroupInfo

       Optional. Current AdGroup Information.
       Supports information from a single AdGroup.
       This field is optional for the following recommendation_types:
       KEYWORD
       
      repeated .google.ads.googleads.v17.services.GenerateRecommendationsRequest.AdGroupInfo ad_group_info = 7 [(.google.api.field_behavior) = OPTIONAL];
    • addAdGroupInfo

       Optional. Current AdGroup Information.
       Supports information from a single AdGroup.
       This field is optional for the following recommendation_types:
       KEYWORD
       
      repeated .google.ads.googleads.v17.services.GenerateRecommendationsRequest.AdGroupInfo ad_group_info = 7 [(.google.api.field_behavior) = OPTIONAL];
    • addAdGroupInfo

       Optional. Current AdGroup Information.
       Supports information from a single AdGroup.
       This field is optional for the following recommendation_types:
       KEYWORD
       
      repeated .google.ads.googleads.v17.services.GenerateRecommendationsRequest.AdGroupInfo ad_group_info = 7 [(.google.api.field_behavior) = OPTIONAL];
    • addAdGroupInfo

       Optional. Current AdGroup Information.
       Supports information from a single AdGroup.
       This field is optional for the following recommendation_types:
       KEYWORD
       
      repeated .google.ads.googleads.v17.services.GenerateRecommendationsRequest.AdGroupInfo ad_group_info = 7 [(.google.api.field_behavior) = OPTIONAL];
    • addAllAdGroupInfo

       Optional. Current AdGroup Information.
       Supports information from a single AdGroup.
       This field is optional for the following recommendation_types:
       KEYWORD
       
      repeated .google.ads.googleads.v17.services.GenerateRecommendationsRequest.AdGroupInfo ad_group_info = 7 [(.google.api.field_behavior) = OPTIONAL];
    • clearAdGroupInfo

      public GenerateRecommendationsRequest.Builder clearAdGroupInfo()
       Optional. Current AdGroup Information.
       Supports information from a single AdGroup.
       This field is optional for the following recommendation_types:
       KEYWORD
       
      repeated .google.ads.googleads.v17.services.GenerateRecommendationsRequest.AdGroupInfo ad_group_info = 7 [(.google.api.field_behavior) = OPTIONAL];
    • removeAdGroupInfo

      public GenerateRecommendationsRequest.Builder removeAdGroupInfo(int index)
       Optional. Current AdGroup Information.
       Supports information from a single AdGroup.
       This field is optional for the following recommendation_types:
       KEYWORD
       
      repeated .google.ads.googleads.v17.services.GenerateRecommendationsRequest.AdGroupInfo ad_group_info = 7 [(.google.api.field_behavior) = OPTIONAL];
    • getAdGroupInfoBuilder

      public GenerateRecommendationsRequest.AdGroupInfo.Builder getAdGroupInfoBuilder(int index)
       Optional. Current AdGroup Information.
       Supports information from a single AdGroup.
       This field is optional for the following recommendation_types:
       KEYWORD
       
      repeated .google.ads.googleads.v17.services.GenerateRecommendationsRequest.AdGroupInfo ad_group_info = 7 [(.google.api.field_behavior) = OPTIONAL];
    • getAdGroupInfoOrBuilder

      public GenerateRecommendationsRequest.AdGroupInfoOrBuilder getAdGroupInfoOrBuilder(int index)
       Optional. Current AdGroup Information.
       Supports information from a single AdGroup.
       This field is optional for the following recommendation_types:
       KEYWORD
       
      repeated .google.ads.googleads.v17.services.GenerateRecommendationsRequest.AdGroupInfo ad_group_info = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAdGroupInfoOrBuilder in interface GenerateRecommendationsRequestOrBuilder
    • getAdGroupInfoOrBuilderList

      public List<? extends GenerateRecommendationsRequest.AdGroupInfoOrBuilder> getAdGroupInfoOrBuilderList()
       Optional. Current AdGroup Information.
       Supports information from a single AdGroup.
       This field is optional for the following recommendation_types:
       KEYWORD
       
      repeated .google.ads.googleads.v17.services.GenerateRecommendationsRequest.AdGroupInfo ad_group_info = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAdGroupInfoOrBuilderList in interface GenerateRecommendationsRequestOrBuilder
    • addAdGroupInfoBuilder

       Optional. Current AdGroup Information.
       Supports information from a single AdGroup.
       This field is optional for the following recommendation_types:
       KEYWORD
       
      repeated .google.ads.googleads.v17.services.GenerateRecommendationsRequest.AdGroupInfo ad_group_info = 7 [(.google.api.field_behavior) = OPTIONAL];
    • addAdGroupInfoBuilder

      public GenerateRecommendationsRequest.AdGroupInfo.Builder addAdGroupInfoBuilder(int index)
       Optional. Current AdGroup Information.
       Supports information from a single AdGroup.
       This field is optional for the following recommendation_types:
       KEYWORD
       
      repeated .google.ads.googleads.v17.services.GenerateRecommendationsRequest.AdGroupInfo ad_group_info = 7 [(.google.api.field_behavior) = OPTIONAL];
    • getAdGroupInfoBuilderList

      public List<GenerateRecommendationsRequest.AdGroupInfo.Builder> getAdGroupInfoBuilderList()
       Optional. Current AdGroup Information.
       Supports information from a single AdGroup.
       This field is optional for the following recommendation_types:
       KEYWORD
       
      repeated .google.ads.googleads.v17.services.GenerateRecommendationsRequest.AdGroupInfo ad_group_info = 7 [(.google.api.field_behavior) = OPTIONAL];
    • hasSeedInfo

      public boolean hasSeedInfo()
       Optional. Seed information for Keywords.
       This field is necessary for the following recommendation_types:
       KEYWORD
       
      optional .google.ads.googleads.v17.services.GenerateRecommendationsRequest.SeedInfo seed_info = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasSeedInfo in interface GenerateRecommendationsRequestOrBuilder
      Returns:
      Whether the seedInfo field is set.
    • getSeedInfo

       Optional. Seed information for Keywords.
       This field is necessary for the following recommendation_types:
       KEYWORD
       
      optional .google.ads.googleads.v17.services.GenerateRecommendationsRequest.SeedInfo seed_info = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSeedInfo in interface GenerateRecommendationsRequestOrBuilder
      Returns:
      The seedInfo.
    • setSeedInfo

       Optional. Seed information for Keywords.
       This field is necessary for the following recommendation_types:
       KEYWORD
       
      optional .google.ads.googleads.v17.services.GenerateRecommendationsRequest.SeedInfo seed_info = 8 [(.google.api.field_behavior) = OPTIONAL];
    • setSeedInfo

       Optional. Seed information for Keywords.
       This field is necessary for the following recommendation_types:
       KEYWORD
       
      optional .google.ads.googleads.v17.services.GenerateRecommendationsRequest.SeedInfo seed_info = 8 [(.google.api.field_behavior) = OPTIONAL];
    • mergeSeedInfo

       Optional. Seed information for Keywords.
       This field is necessary for the following recommendation_types:
       KEYWORD
       
      optional .google.ads.googleads.v17.services.GenerateRecommendationsRequest.SeedInfo seed_info = 8 [(.google.api.field_behavior) = OPTIONAL];
    • clearSeedInfo

       Optional. Seed information for Keywords.
       This field is necessary for the following recommendation_types:
       KEYWORD
       
      optional .google.ads.googleads.v17.services.GenerateRecommendationsRequest.SeedInfo seed_info = 8 [(.google.api.field_behavior) = OPTIONAL];
    • getSeedInfoBuilder

       Optional. Seed information for Keywords.
       This field is necessary for the following recommendation_types:
       KEYWORD
       
      optional .google.ads.googleads.v17.services.GenerateRecommendationsRequest.SeedInfo seed_info = 8 [(.google.api.field_behavior) = OPTIONAL];
    • getSeedInfoOrBuilder

      public GenerateRecommendationsRequest.SeedInfoOrBuilder getSeedInfoOrBuilder()
       Optional. Seed information for Keywords.
       This field is necessary for the following recommendation_types:
       KEYWORD
       
      optional .google.ads.googleads.v17.services.GenerateRecommendationsRequest.SeedInfo seed_info = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSeedInfoOrBuilder in interface GenerateRecommendationsRequestOrBuilder
    • setUnknownFields

      public final GenerateRecommendationsRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.Builder>
    • mergeUnknownFields

      public final GenerateRecommendationsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateRecommendationsRequest.Builder>