Class GenerateRecommendationsRequest.BiddingInfo.Builder

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

public static final class GenerateRecommendationsRequest.BiddingInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<GenerateRecommendationsRequest.BiddingInfo.Builder> implements GenerateRecommendationsRequest.BiddingInfoOrBuilder
 Current bidding information of the campaign. Provides a wrapper for
 bidding-related signals that inform recommendations.
 
Protobuf type google.ads.googleads.v22.services.GenerateRecommendationsRequest.BiddingInfo
  • 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<GenerateRecommendationsRequest.BiddingInfo.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<GenerateRecommendationsRequest.BiddingInfo.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<GenerateRecommendationsRequest.BiddingInfo.Builder>
    • getDefaultInstanceForType

      public GenerateRecommendationsRequest.BiddingInfo 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

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

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

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

      Specified by:
      getBiddingStrategyTargetInfoCase in interface GenerateRecommendationsRequest.BiddingInfoOrBuilder
    • clearBiddingStrategyTargetInfo

      public GenerateRecommendationsRequest.BiddingInfo.Builder clearBiddingStrategyTargetInfo()
    • hasBiddingStrategyType

      public boolean hasBiddingStrategyType()
       Current bidding strategy.
       This field is necessary for the following recommendation_types:
       CAMPAIGN_BUDGET, 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.v22.enums.BiddingStrategyTypeEnum.BiddingStrategyType bidding_strategy_type = 1;
      Specified by:
      hasBiddingStrategyType in interface GenerateRecommendationsRequest.BiddingInfoOrBuilder
      Returns:
      Whether the biddingStrategyType field is set.
    • getBiddingStrategyTypeValue

      public int getBiddingStrategyTypeValue()
       Current bidding strategy.
       This field is necessary for the following recommendation_types:
       CAMPAIGN_BUDGET, 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.v22.enums.BiddingStrategyTypeEnum.BiddingStrategyType bidding_strategy_type = 1;
      Specified by:
      getBiddingStrategyTypeValue in interface GenerateRecommendationsRequest.BiddingInfoOrBuilder
      Returns:
      The enum numeric value on the wire for biddingStrategyType.
    • setBiddingStrategyTypeValue

      public GenerateRecommendationsRequest.BiddingInfo.Builder setBiddingStrategyTypeValue(int value)
       Current bidding strategy.
       This field is necessary for the following recommendation_types:
       CAMPAIGN_BUDGET, 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.v22.enums.BiddingStrategyTypeEnum.BiddingStrategyType bidding_strategy_type = 1;
      Parameters:
      value - The enum numeric value on the wire for biddingStrategyType to set.
      Returns:
      This builder for chaining.
    • getBiddingStrategyType

      public BiddingStrategyTypeEnum.BiddingStrategyType getBiddingStrategyType()
       Current bidding strategy.
       This field is necessary for the following recommendation_types:
       CAMPAIGN_BUDGET, 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.v22.enums.BiddingStrategyTypeEnum.BiddingStrategyType bidding_strategy_type = 1;
      Specified by:
      getBiddingStrategyType in interface GenerateRecommendationsRequest.BiddingInfoOrBuilder
      Returns:
      The biddingStrategyType.
    • setBiddingStrategyType

       Current bidding strategy.
       This field is necessary for the following recommendation_types:
       CAMPAIGN_BUDGET, 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.v22.enums.BiddingStrategyTypeEnum.BiddingStrategyType bidding_strategy_type = 1;
      Parameters:
      value - The biddingStrategyType to set.
      Returns:
      This builder for chaining.
    • clearBiddingStrategyType

      public GenerateRecommendationsRequest.BiddingInfo.Builder clearBiddingStrategyType()
       Current bidding strategy.
       This field is necessary for the following recommendation_types:
       CAMPAIGN_BUDGET, 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.v22.enums.BiddingStrategyTypeEnum.BiddingStrategyType bidding_strategy_type = 1;
      Returns:
      This builder for chaining.
    • hasTargetCpaMicros

      public boolean hasTargetCpaMicros()
       Current target_cpa in micros.
       This can be populated for campaigns with a bidding strategy type of
       TARGET_CPA or MAXIMIZE_CONVERSIONS.
       
      int64 target_cpa_micros = 2;
      Specified by:
      hasTargetCpaMicros in interface GenerateRecommendationsRequest.BiddingInfoOrBuilder
      Returns:
      Whether the targetCpaMicros field is set.
    • getTargetCpaMicros

      public long getTargetCpaMicros()
       Current target_cpa in micros.
       This can be populated for campaigns with a bidding strategy type of
       TARGET_CPA or MAXIMIZE_CONVERSIONS.
       
      int64 target_cpa_micros = 2;
      Specified by:
      getTargetCpaMicros in interface GenerateRecommendationsRequest.BiddingInfoOrBuilder
      Returns:
      The targetCpaMicros.
    • setTargetCpaMicros

      public GenerateRecommendationsRequest.BiddingInfo.Builder setTargetCpaMicros(long value)
       Current target_cpa in micros.
       This can be populated for campaigns with a bidding strategy type of
       TARGET_CPA or MAXIMIZE_CONVERSIONS.
       
      int64 target_cpa_micros = 2;
      Parameters:
      value - The targetCpaMicros to set.
      Returns:
      This builder for chaining.
    • clearTargetCpaMicros

       Current target_cpa in micros.
       This can be populated for campaigns with a bidding strategy type of
       TARGET_CPA or MAXIMIZE_CONVERSIONS.
       
      int64 target_cpa_micros = 2;
      Returns:
      This builder for chaining.
    • hasTargetRoas

      public boolean hasTargetRoas()
       Current target_roas.
       This can be populated for campaigns with a bidding strategy type of
       TARGET_ROAS or MAXIMIZE_CONVERSION_VALUE.
       
      double target_roas = 3;
      Specified by:
      hasTargetRoas in interface GenerateRecommendationsRequest.BiddingInfoOrBuilder
      Returns:
      Whether the targetRoas field is set.
    • getTargetRoas

      public double getTargetRoas()
       Current target_roas.
       This can be populated for campaigns with a bidding strategy type of
       TARGET_ROAS or MAXIMIZE_CONVERSION_VALUE.
       
      double target_roas = 3;
      Specified by:
      getTargetRoas in interface GenerateRecommendationsRequest.BiddingInfoOrBuilder
      Returns:
      The targetRoas.
    • setTargetRoas

      public GenerateRecommendationsRequest.BiddingInfo.Builder setTargetRoas(double value)
       Current target_roas.
       This can be populated for campaigns with a bidding strategy type of
       TARGET_ROAS or MAXIMIZE_CONVERSION_VALUE.
       
      double target_roas = 3;
      Parameters:
      value - The targetRoas to set.
      Returns:
      This builder for chaining.
    • clearTargetRoas

       Current target_roas.
       This can be populated for campaigns with a bidding strategy type of
       TARGET_ROAS or MAXIMIZE_CONVERSION_VALUE.
       
      double target_roas = 3;
      Returns:
      This builder for chaining.
    • hasTargetImpressionShareInfo

      public boolean hasTargetImpressionShareInfo()
       Optional. Current Target Impression Share information of the campaign.
       This field is necessary for the following recommendation_types:
       CAMPAIGN_BUDGET
       
      .google.ads.googleads.v22.services.GenerateRecommendationsRequest.TargetImpressionShareInfo target_impression_share_info = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasTargetImpressionShareInfo in interface GenerateRecommendationsRequest.BiddingInfoOrBuilder
      Returns:
      Whether the targetImpressionShareInfo field is set.
    • getTargetImpressionShareInfo

      public GenerateRecommendationsRequest.TargetImpressionShareInfo getTargetImpressionShareInfo()
       Optional. Current Target Impression Share information of the campaign.
       This field is necessary for the following recommendation_types:
       CAMPAIGN_BUDGET
       
      .google.ads.googleads.v22.services.GenerateRecommendationsRequest.TargetImpressionShareInfo target_impression_share_info = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTargetImpressionShareInfo in interface GenerateRecommendationsRequest.BiddingInfoOrBuilder
      Returns:
      The targetImpressionShareInfo.
    • setTargetImpressionShareInfo

       Optional. Current Target Impression Share information of the campaign.
       This field is necessary for the following recommendation_types:
       CAMPAIGN_BUDGET
       
      .google.ads.googleads.v22.services.GenerateRecommendationsRequest.TargetImpressionShareInfo target_impression_share_info = 4 [(.google.api.field_behavior) = OPTIONAL];
    • setTargetImpressionShareInfo

       Optional. Current Target Impression Share information of the campaign.
       This field is necessary for the following recommendation_types:
       CAMPAIGN_BUDGET
       
      .google.ads.googleads.v22.services.GenerateRecommendationsRequest.TargetImpressionShareInfo target_impression_share_info = 4 [(.google.api.field_behavior) = OPTIONAL];
    • mergeTargetImpressionShareInfo

       Optional. Current Target Impression Share information of the campaign.
       This field is necessary for the following recommendation_types:
       CAMPAIGN_BUDGET
       
      .google.ads.googleads.v22.services.GenerateRecommendationsRequest.TargetImpressionShareInfo target_impression_share_info = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearTargetImpressionShareInfo

      public GenerateRecommendationsRequest.BiddingInfo.Builder clearTargetImpressionShareInfo()
       Optional. Current Target Impression Share information of the campaign.
       This field is necessary for the following recommendation_types:
       CAMPAIGN_BUDGET
       
      .google.ads.googleads.v22.services.GenerateRecommendationsRequest.TargetImpressionShareInfo target_impression_share_info = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getTargetImpressionShareInfoBuilder

      public GenerateRecommendationsRequest.TargetImpressionShareInfo.Builder getTargetImpressionShareInfoBuilder()
       Optional. Current Target Impression Share information of the campaign.
       This field is necessary for the following recommendation_types:
       CAMPAIGN_BUDGET
       
      .google.ads.googleads.v22.services.GenerateRecommendationsRequest.TargetImpressionShareInfo target_impression_share_info = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getTargetImpressionShareInfoOrBuilder

      public GenerateRecommendationsRequest.TargetImpressionShareInfoOrBuilder getTargetImpressionShareInfoOrBuilder()
       Optional. Current Target Impression Share information of the campaign.
       This field is necessary for the following recommendation_types:
       CAMPAIGN_BUDGET
       
      .google.ads.googleads.v22.services.GenerateRecommendationsRequest.TargetImpressionShareInfo target_impression_share_info = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTargetImpressionShareInfoOrBuilder in interface GenerateRecommendationsRequest.BiddingInfoOrBuilder