Class VerticalAdsItemGroupRuleInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<VerticalAdsItemGroupRuleInfo.Builder>
com.google.ads.googleads.v23.common.VerticalAdsItemGroupRuleInfo.Builder
All Implemented Interfaces:
VerticalAdsItemGroupRuleInfoOrBuilder, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
VerticalAdsItemGroupRuleInfo

public static final class VerticalAdsItemGroupRuleInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<VerticalAdsItemGroupRuleInfo.Builder> implements VerticalAdsItemGroupRuleInfoOrBuilder
 A criterion to represent a single item group rule in Vertical Ads.
 
Protobuf type google.ads.googleads.v23.common.VerticalAdsItemGroupRuleInfo
  • Method Details

    • getDescriptor

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

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

      public VerticalAdsItemGroupRuleInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
      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 VerticalAdsItemGroupRuleInfo 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<VerticalAdsItemGroupRuleInfo.Builder>
    • setField

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

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

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

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

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

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

    • isInitialized

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

      public VerticalAdsItemGroupRuleInfo.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<VerticalAdsItemGroupRuleInfo.Builder>
      Throws:
      IOException
    • getDimensionCase

      public VerticalAdsItemGroupRuleInfo.DimensionCase getDimensionCase()
      Specified by:
      getDimensionCase in interface VerticalAdsItemGroupRuleInfoOrBuilder
    • clearDimension

      public VerticalAdsItemGroupRuleInfo.Builder clearDimension()
    • hasItemCode

      public boolean hasItemCode()
       The id specifying a particular Vertical Ad listing.
       
      string item_code = 1;
      Specified by:
      hasItemCode in interface VerticalAdsItemGroupRuleInfoOrBuilder
      Returns:
      Whether the itemCode field is set.
    • getItemCode

      public String getItemCode()
       The id specifying a particular Vertical Ad listing.
       
      string item_code = 1;
      Specified by:
      getItemCode in interface VerticalAdsItemGroupRuleInfoOrBuilder
      Returns:
      The itemCode.
    • getItemCodeBytes

      public com.google.protobuf.ByteString getItemCodeBytes()
       The id specifying a particular Vertical Ad listing.
       
      string item_code = 1;
      Specified by:
      getItemCodeBytes in interface VerticalAdsItemGroupRuleInfoOrBuilder
      Returns:
      The bytes for itemCode.
    • setItemCode

      public VerticalAdsItemGroupRuleInfo.Builder setItemCode(String value)
       The id specifying a particular Vertical Ad listing.
       
      string item_code = 1;
      Parameters:
      value - The itemCode to set.
      Returns:
      This builder for chaining.
    • clearItemCode

      public VerticalAdsItemGroupRuleInfo.Builder clearItemCode()
       The id specifying a particular Vertical Ad listing.
       
      string item_code = 1;
      Returns:
      This builder for chaining.
    • setItemCodeBytes

      public VerticalAdsItemGroupRuleInfo.Builder setItemCodeBytes(com.google.protobuf.ByteString value)
       The id specifying a particular Vertical Ad listing.
       
      string item_code = 1;
      Parameters:
      value - The bytes for itemCode to set.
      Returns:
      This builder for chaining.
    • hasCountryCriterionId

      public boolean hasCountryCriterionId()
       The resource name of the Geo Target Constant for the country.
       
      string country_criterion_id = 2;
      Specified by:
      hasCountryCriterionId in interface VerticalAdsItemGroupRuleInfoOrBuilder
      Returns:
      Whether the countryCriterionId field is set.
    • getCountryCriterionId

      public String getCountryCriterionId()
       The resource name of the Geo Target Constant for the country.
       
      string country_criterion_id = 2;
      Specified by:
      getCountryCriterionId in interface VerticalAdsItemGroupRuleInfoOrBuilder
      Returns:
      The countryCriterionId.
    • getCountryCriterionIdBytes

      public com.google.protobuf.ByteString getCountryCriterionIdBytes()
       The resource name of the Geo Target Constant for the country.
       
      string country_criterion_id = 2;
      Specified by:
      getCountryCriterionIdBytes in interface VerticalAdsItemGroupRuleInfoOrBuilder
      Returns:
      The bytes for countryCriterionId.
    • setCountryCriterionId

      public VerticalAdsItemGroupRuleInfo.Builder setCountryCriterionId(String value)
       The resource name of the Geo Target Constant for the country.
       
      string country_criterion_id = 2;
      Parameters:
      value - The countryCriterionId to set.
      Returns:
      This builder for chaining.
    • clearCountryCriterionId

      public VerticalAdsItemGroupRuleInfo.Builder clearCountryCriterionId()
       The resource name of the Geo Target Constant for the country.
       
      string country_criterion_id = 2;
      Returns:
      This builder for chaining.
    • setCountryCriterionIdBytes

      public VerticalAdsItemGroupRuleInfo.Builder setCountryCriterionIdBytes(com.google.protobuf.ByteString value)
       The resource name of the Geo Target Constant for the country.
       
      string country_criterion_id = 2;
      Parameters:
      value - The bytes for countryCriterionId to set.
      Returns:
      This builder for chaining.
    • hasRegionCriterionId

      public boolean hasRegionCriterionId()
       The resource name of the Geo Target Constant for the region.
       
      string region_criterion_id = 3;
      Specified by:
      hasRegionCriterionId in interface VerticalAdsItemGroupRuleInfoOrBuilder
      Returns:
      Whether the regionCriterionId field is set.
    • getRegionCriterionId

      public String getRegionCriterionId()
       The resource name of the Geo Target Constant for the region.
       
      string region_criterion_id = 3;
      Specified by:
      getRegionCriterionId in interface VerticalAdsItemGroupRuleInfoOrBuilder
      Returns:
      The regionCriterionId.
    • getRegionCriterionIdBytes

      public com.google.protobuf.ByteString getRegionCriterionIdBytes()
       The resource name of the Geo Target Constant for the region.
       
      string region_criterion_id = 3;
      Specified by:
      getRegionCriterionIdBytes in interface VerticalAdsItemGroupRuleInfoOrBuilder
      Returns:
      The bytes for regionCriterionId.
    • setRegionCriterionId

      public VerticalAdsItemGroupRuleInfo.Builder setRegionCriterionId(String value)
       The resource name of the Geo Target Constant for the region.
       
      string region_criterion_id = 3;
      Parameters:
      value - The regionCriterionId to set.
      Returns:
      This builder for chaining.
    • clearRegionCriterionId

      public VerticalAdsItemGroupRuleInfo.Builder clearRegionCriterionId()
       The resource name of the Geo Target Constant for the region.
       
      string region_criterion_id = 3;
      Returns:
      This builder for chaining.
    • setRegionCriterionIdBytes

      public VerticalAdsItemGroupRuleInfo.Builder setRegionCriterionIdBytes(com.google.protobuf.ByteString value)
       The resource name of the Geo Target Constant for the region.
       
      string region_criterion_id = 3;
      Parameters:
      value - The bytes for regionCriterionId to set.
      Returns:
      This builder for chaining.
    • hasCityCriterionId

      public boolean hasCityCriterionId()
       The resource name of the Geo Target Constant for the city.
       
      string city_criterion_id = 4;
      Specified by:
      hasCityCriterionId in interface VerticalAdsItemGroupRuleInfoOrBuilder
      Returns:
      Whether the cityCriterionId field is set.
    • getCityCriterionId

      public String getCityCriterionId()
       The resource name of the Geo Target Constant for the city.
       
      string city_criterion_id = 4;
      Specified by:
      getCityCriterionId in interface VerticalAdsItemGroupRuleInfoOrBuilder
      Returns:
      The cityCriterionId.
    • getCityCriterionIdBytes

      public com.google.protobuf.ByteString getCityCriterionIdBytes()
       The resource name of the Geo Target Constant for the city.
       
      string city_criterion_id = 4;
      Specified by:
      getCityCriterionIdBytes in interface VerticalAdsItemGroupRuleInfoOrBuilder
      Returns:
      The bytes for cityCriterionId.
    • setCityCriterionId

      public VerticalAdsItemGroupRuleInfo.Builder setCityCriterionId(String value)
       The resource name of the Geo Target Constant for the city.
       
      string city_criterion_id = 4;
      Parameters:
      value - The cityCriterionId to set.
      Returns:
      This builder for chaining.
    • clearCityCriterionId

      public VerticalAdsItemGroupRuleInfo.Builder clearCityCriterionId()
       The resource name of the Geo Target Constant for the city.
       
      string city_criterion_id = 4;
      Returns:
      This builder for chaining.
    • setCityCriterionIdBytes

      public VerticalAdsItemGroupRuleInfo.Builder setCityCriterionIdBytes(com.google.protobuf.ByteString value)
       The resource name of the Geo Target Constant for the city.
       
      string city_criterion_id = 4;
      Parameters:
      value - The bytes for cityCriterionId to set.
      Returns:
      This builder for chaining.
    • hasHotelClass

      public boolean hasHotelClass()
       Integer value specifying the class rating for a hotel. Ranges from 1 to 5
       stars.
       
      int64 hotel_class = 6;
      Specified by:
      hasHotelClass in interface VerticalAdsItemGroupRuleInfoOrBuilder
      Returns:
      Whether the hotelClass field is set.
    • getHotelClass

      public long getHotelClass()
       Integer value specifying the class rating for a hotel. Ranges from 1 to 5
       stars.
       
      int64 hotel_class = 6;
      Specified by:
      getHotelClass in interface VerticalAdsItemGroupRuleInfoOrBuilder
      Returns:
      The hotelClass.
    • setHotelClass

      public VerticalAdsItemGroupRuleInfo.Builder setHotelClass(long value)
       Integer value specifying the class rating for a hotel. Ranges from 1 to 5
       stars.
       
      int64 hotel_class = 6;
      Parameters:
      value - The hotelClass to set.
      Returns:
      This builder for chaining.
    • clearHotelClass

      public VerticalAdsItemGroupRuleInfo.Builder clearHotelClass()
       Integer value specifying the class rating for a hotel. Ranges from 1 to 5
       stars.
       
      int64 hotel_class = 6;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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