Class Campaign.CategoryBid.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Campaign.CategoryBid.Builder>
com.google.ads.googleads.v18.resources.Campaign.CategoryBid.Builder
All Implemented Interfaces:
Campaign.CategoryBidOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Campaign.CategoryBid

public static final class Campaign.CategoryBid.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Campaign.CategoryBid.Builder> implements Campaign.CategoryBidOrBuilder
 Category bids in LocalServicesReportingCampaignSettings.
 
Protobuf type google.ads.googleads.v18.resources.Campaign.CategoryBid
  • 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<Campaign.CategoryBid.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<Campaign.CategoryBid.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<Campaign.CategoryBid.Builder>
    • getDefaultInstanceForType

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

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

      public Campaign.CategoryBid 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<Campaign.CategoryBid.Builder>
    • setField

      public Campaign.CategoryBid.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<Campaign.CategoryBid.Builder>
    • clearField

      public Campaign.CategoryBid.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<Campaign.CategoryBid.Builder>
    • clearOneof

      public Campaign.CategoryBid.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<Campaign.CategoryBid.Builder>
    • setRepeatedField

      public Campaign.CategoryBid.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<Campaign.CategoryBid.Builder>
    • addRepeatedField

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

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

      public Campaign.CategoryBid.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<Campaign.CategoryBid.Builder>
      Throws:
      IOException
    • hasCategoryId

      public boolean hasCategoryId()
       Category for which the bid will be associated with. For example,
       xcat:service_area_business_plumber.
       
      optional string category_id = 1;
      Specified by:
      hasCategoryId in interface Campaign.CategoryBidOrBuilder
      Returns:
      Whether the categoryId field is set.
    • getCategoryId

      public String getCategoryId()
       Category for which the bid will be associated with. For example,
       xcat:service_area_business_plumber.
       
      optional string category_id = 1;
      Specified by:
      getCategoryId in interface Campaign.CategoryBidOrBuilder
      Returns:
      The categoryId.
    • getCategoryIdBytes

      public com.google.protobuf.ByteString getCategoryIdBytes()
       Category for which the bid will be associated with. For example,
       xcat:service_area_business_plumber.
       
      optional string category_id = 1;
      Specified by:
      getCategoryIdBytes in interface Campaign.CategoryBidOrBuilder
      Returns:
      The bytes for categoryId.
    • setCategoryId

      public Campaign.CategoryBid.Builder setCategoryId(String value)
       Category for which the bid will be associated with. For example,
       xcat:service_area_business_plumber.
       
      optional string category_id = 1;
      Parameters:
      value - The categoryId to set.
      Returns:
      This builder for chaining.
    • clearCategoryId

      public Campaign.CategoryBid.Builder clearCategoryId()
       Category for which the bid will be associated with. For example,
       xcat:service_area_business_plumber.
       
      optional string category_id = 1;
      Returns:
      This builder for chaining.
    • setCategoryIdBytes

      public Campaign.CategoryBid.Builder setCategoryIdBytes(com.google.protobuf.ByteString value)
       Category for which the bid will be associated with. For example,
       xcat:service_area_business_plumber.
       
      optional string category_id = 1;
      Parameters:
      value - The bytes for categoryId to set.
      Returns:
      This builder for chaining.
    • hasManualCpaBidMicros

      public boolean hasManualCpaBidMicros()
       Manual CPA bid for the category. Bid must be greater than the
       reserve price associated for that category. Value is in micros
       and in the advertiser's currency.
       
      optional int64 manual_cpa_bid_micros = 2;
      Specified by:
      hasManualCpaBidMicros in interface Campaign.CategoryBidOrBuilder
      Returns:
      Whether the manualCpaBidMicros field is set.
    • getManualCpaBidMicros

      public long getManualCpaBidMicros()
       Manual CPA bid for the category. Bid must be greater than the
       reserve price associated for that category. Value is in micros
       and in the advertiser's currency.
       
      optional int64 manual_cpa_bid_micros = 2;
      Specified by:
      getManualCpaBidMicros in interface Campaign.CategoryBidOrBuilder
      Returns:
      The manualCpaBidMicros.
    • setManualCpaBidMicros

      public Campaign.CategoryBid.Builder setManualCpaBidMicros(long value)
       Manual CPA bid for the category. Bid must be greater than the
       reserve price associated for that category. Value is in micros
       and in the advertiser's currency.
       
      optional int64 manual_cpa_bid_micros = 2;
      Parameters:
      value - The manualCpaBidMicros to set.
      Returns:
      This builder for chaining.
    • clearManualCpaBidMicros

      public Campaign.CategoryBid.Builder clearManualCpaBidMicros()
       Manual CPA bid for the category. Bid must be greater than the
       reserve price associated for that category. Value is in micros
       and in the advertiser's currency.
       
      optional int64 manual_cpa_bid_micros = 2;
      Returns:
      This builder for chaining.
    • hasTargetCpaBidMicros

      public boolean hasTargetCpaBidMicros()
       Target CPA bid for the category. Value is in micros and in the
       advertiser's currency.
       
      optional int64 target_cpa_bid_micros = 3;
      Specified by:
      hasTargetCpaBidMicros in interface Campaign.CategoryBidOrBuilder
      Returns:
      Whether the targetCpaBidMicros field is set.
    • getTargetCpaBidMicros

      public long getTargetCpaBidMicros()
       Target CPA bid for the category. Value is in micros and in the
       advertiser's currency.
       
      optional int64 target_cpa_bid_micros = 3;
      Specified by:
      getTargetCpaBidMicros in interface Campaign.CategoryBidOrBuilder
      Returns:
      The targetCpaBidMicros.
    • setTargetCpaBidMicros

      public Campaign.CategoryBid.Builder setTargetCpaBidMicros(long value)
       Target CPA bid for the category. Value is in micros and in the
       advertiser's currency.
       
      optional int64 target_cpa_bid_micros = 3;
      Parameters:
      value - The targetCpaBidMicros to set.
      Returns:
      This builder for chaining.
    • clearTargetCpaBidMicros

      public Campaign.CategoryBid.Builder clearTargetCpaBidMicros()
       Target CPA bid for the category. Value is in micros and in the
       advertiser's currency.
       
      optional int64 target_cpa_bid_micros = 3;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Campaign.CategoryBid.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<Campaign.CategoryBid.Builder>
    • mergeUnknownFields

      public final Campaign.CategoryBid.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<Campaign.CategoryBid.Builder>