Class GenerateRecommendationsRequest.TargetImpressionShareInfo.Builder

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

public static final class GenerateRecommendationsRequest.TargetImpressionShareInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<GenerateRecommendationsRequest.TargetImpressionShareInfo.Builder> implements GenerateRecommendationsRequest.TargetImpressionShareInfoOrBuilder
 Current Target Impression Share information of the campaign.
 
Protobuf type google.ads.googleads.v23.services.GenerateRecommendationsRequest.TargetImpressionShareInfo
  • 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.TargetImpressionShareInfo.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.TargetImpressionShareInfo.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.TargetImpressionShareInfo.Builder>
    • 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.TargetImpressionShareInfo.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.TargetImpressionShareInfo.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.TargetImpressionShareInfo.Builder>
    • mergeFrom

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

      public boolean hasLocation()
       Required. The targeted location on the search results page.
       This is required for campaigns where the AdvertisingChannelType is SEARCH
       and the bidding strategy type is TARGET_IMPRESSION_SHARE.
       
      optional .google.ads.googleads.v23.enums.TargetImpressionShareLocationEnum.TargetImpressionShareLocation location = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasLocation in interface GenerateRecommendationsRequest.TargetImpressionShareInfoOrBuilder
      Returns:
      Whether the location field is set.
    • getLocationValue

      public int getLocationValue()
       Required. The targeted location on the search results page.
       This is required for campaigns where the AdvertisingChannelType is SEARCH
       and the bidding strategy type is TARGET_IMPRESSION_SHARE.
       
      optional .google.ads.googleads.v23.enums.TargetImpressionShareLocationEnum.TargetImpressionShareLocation location = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLocationValue in interface GenerateRecommendationsRequest.TargetImpressionShareInfoOrBuilder
      Returns:
      The enum numeric value on the wire for location.
    • setLocationValue

       Required. The targeted location on the search results page.
       This is required for campaigns where the AdvertisingChannelType is SEARCH
       and the bidding strategy type is TARGET_IMPRESSION_SHARE.
       
      optional .google.ads.googleads.v23.enums.TargetImpressionShareLocationEnum.TargetImpressionShareLocation location = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for location to set.
      Returns:
      This builder for chaining.
    • getLocation

       Required. The targeted location on the search results page.
       This is required for campaigns where the AdvertisingChannelType is SEARCH
       and the bidding strategy type is TARGET_IMPRESSION_SHARE.
       
      optional .google.ads.googleads.v23.enums.TargetImpressionShareLocationEnum.TargetImpressionShareLocation location = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLocation in interface GenerateRecommendationsRequest.TargetImpressionShareInfoOrBuilder
      Returns:
      The location.
    • setLocation

       Required. The targeted location on the search results page.
       This is required for campaigns where the AdvertisingChannelType is SEARCH
       and the bidding strategy type is TARGET_IMPRESSION_SHARE.
       
      optional .google.ads.googleads.v23.enums.TargetImpressionShareLocationEnum.TargetImpressionShareLocation location = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The location to set.
      Returns:
      This builder for chaining.
    • clearLocation

       Required. The targeted location on the search results page.
       This is required for campaigns where the AdvertisingChannelType is SEARCH
       and the bidding strategy type is TARGET_IMPRESSION_SHARE.
       
      optional .google.ads.googleads.v23.enums.TargetImpressionShareLocationEnum.TargetImpressionShareLocation location = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • hasTargetImpressionShareMicros

      public boolean hasTargetImpressionShareMicros()
       Required. The chosen fraction of targeted impression share in micros. For
       example, 1% equals 10,000. It must be a value between 1 and 1,000,000.
       This is required for campaigns with an AdvertisingChannelType of SEARCH
       and a bidding strategy type of TARGET_IMPRESSION_SHARE.
       
      optional int64 target_impression_share_micros = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasTargetImpressionShareMicros in interface GenerateRecommendationsRequest.TargetImpressionShareInfoOrBuilder
      Returns:
      Whether the targetImpressionShareMicros field is set.
    • getTargetImpressionShareMicros

      public long getTargetImpressionShareMicros()
       Required. The chosen fraction of targeted impression share in micros. For
       example, 1% equals 10,000. It must be a value between 1 and 1,000,000.
       This is required for campaigns with an AdvertisingChannelType of SEARCH
       and a bidding strategy type of TARGET_IMPRESSION_SHARE.
       
      optional int64 target_impression_share_micros = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTargetImpressionShareMicros in interface GenerateRecommendationsRequest.TargetImpressionShareInfoOrBuilder
      Returns:
      The targetImpressionShareMicros.
    • setTargetImpressionShareMicros

      public GenerateRecommendationsRequest.TargetImpressionShareInfo.Builder setTargetImpressionShareMicros(long value)
       Required. The chosen fraction of targeted impression share in micros. For
       example, 1% equals 10,000. It must be a value between 1 and 1,000,000.
       This is required for campaigns with an AdvertisingChannelType of SEARCH
       and a bidding strategy type of TARGET_IMPRESSION_SHARE.
       
      optional int64 target_impression_share_micros = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The targetImpressionShareMicros to set.
      Returns:
      This builder for chaining.
    • clearTargetImpressionShareMicros

      public GenerateRecommendationsRequest.TargetImpressionShareInfo.Builder clearTargetImpressionShareMicros()
       Required. The chosen fraction of targeted impression share in micros. For
       example, 1% equals 10,000. It must be a value between 1 and 1,000,000.
       This is required for campaigns with an AdvertisingChannelType of SEARCH
       and a bidding strategy type of TARGET_IMPRESSION_SHARE.
       
      optional int64 target_impression_share_micros = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • hasMaxCpcBidCeiling

      public boolean hasMaxCpcBidCeiling()
       Optional. Ceiling of max CPC bids in micros set by automated bidders.
       This is optional for campaigns with an AdvertisingChannelType of SEARCH
       and a bidding strategy type of TARGET_IMPRESSION_SHARE.
       
      optional int64 max_cpc_bid_ceiling = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasMaxCpcBidCeiling in interface GenerateRecommendationsRequest.TargetImpressionShareInfoOrBuilder
      Returns:
      Whether the maxCpcBidCeiling field is set.
    • getMaxCpcBidCeiling

      public long getMaxCpcBidCeiling()
       Optional. Ceiling of max CPC bids in micros set by automated bidders.
       This is optional for campaigns with an AdvertisingChannelType of SEARCH
       and a bidding strategy type of TARGET_IMPRESSION_SHARE.
       
      optional int64 max_cpc_bid_ceiling = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMaxCpcBidCeiling in interface GenerateRecommendationsRequest.TargetImpressionShareInfoOrBuilder
      Returns:
      The maxCpcBidCeiling.
    • setMaxCpcBidCeiling

       Optional. Ceiling of max CPC bids in micros set by automated bidders.
       This is optional for campaigns with an AdvertisingChannelType of SEARCH
       and a bidding strategy type of TARGET_IMPRESSION_SHARE.
       
      optional int64 max_cpc_bid_ceiling = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The maxCpcBidCeiling to set.
      Returns:
      This builder for chaining.
    • clearMaxCpcBidCeiling

       Optional. Ceiling of max CPC bids in micros set by automated bidders.
       This is optional for campaigns with an AdvertisingChannelType of SEARCH
       and a bidding strategy type of TARGET_IMPRESSION_SHARE.
       
      optional int64 max_cpc_bid_ceiling = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.