Class VerticalAdsItemGroupRuleInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VerticalAdsItemGroupRuleInfo.Builder>
com.google.ads.googleads.v24.common.VerticalAdsItemGroupRuleInfo.Builder
All Implemented Interfaces:
VerticalAdsItemGroupRuleInfoOrBuilder, 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.GeneratedMessage.Builder<VerticalAdsItemGroupRuleInfo.Builder> implements VerticalAdsItemGroupRuleInfoOrBuilder
 A criterion to represent a single item group rule in Vertical Ads.
 
Protobuf type google.ads.googleads.v24.common.VerticalAdsItemGroupRuleInfo
  • 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<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.GeneratedMessage.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.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
    • 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.Builder<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.
    • hasUserRating

      public boolean hasUserRating()
       Integer value specifying the user rating for a Vertical Ad listing.
       Ranges from 1 to 5, where 5 is the best.
       
      int64 user_rating = 7;
      Specified by:
      hasUserRating in interface VerticalAdsItemGroupRuleInfoOrBuilder
      Returns:
      Whether the userRating field is set.
    • getUserRating

      public long getUserRating()
       Integer value specifying the user rating for a Vertical Ad listing.
       Ranges from 1 to 5, where 5 is the best.
       
      int64 user_rating = 7;
      Specified by:
      getUserRating in interface VerticalAdsItemGroupRuleInfoOrBuilder
      Returns:
      The userRating.
    • setUserRating

      public VerticalAdsItemGroupRuleInfo.Builder setUserRating(long value)
       Integer value specifying the user rating for a Vertical Ad listing.
       Ranges from 1 to 5, where 5 is the best.
       
      int64 user_rating = 7;
      Parameters:
      value - The userRating to set.
      Returns:
      This builder for chaining.
    • clearUserRating

      public VerticalAdsItemGroupRuleInfo.Builder clearUserRating()
       Integer value specifying the user rating for a Vertical Ad listing.
       Ranges from 1 to 5, where 5 is the best.
       
      int64 user_rating = 7;
      Returns:
      This builder for chaining.
    • hasVenue

      public boolean hasVenue()
       A name for a specific location, like the venue for a concert event.
       
      string venue = 8;
      Specified by:
      hasVenue in interface VerticalAdsItemGroupRuleInfoOrBuilder
      Returns:
      Whether the venue field is set.
    • getVenue

      public String getVenue()
       A name for a specific location, like the venue for a concert event.
       
      string venue = 8;
      Specified by:
      getVenue in interface VerticalAdsItemGroupRuleInfoOrBuilder
      Returns:
      The venue.
    • getVenueBytes

      public com.google.protobuf.ByteString getVenueBytes()
       A name for a specific location, like the venue for a concert event.
       
      string venue = 8;
      Specified by:
      getVenueBytes in interface VerticalAdsItemGroupRuleInfoOrBuilder
      Returns:
      The bytes for venue.
    • setVenue

       A name for a specific location, like the venue for a concert event.
       
      string venue = 8;
      Parameters:
      value - The venue to set.
      Returns:
      This builder for chaining.
    • clearVenue

       A name for a specific location, like the venue for a concert event.
       
      string venue = 8;
      Returns:
      This builder for chaining.
    • setVenueBytes

      public VerticalAdsItemGroupRuleInfo.Builder setVenueBytes(com.google.protobuf.ByteString value)
       A name for a specific location, like the venue for a concert event.
       
      string venue = 8;
      Parameters:
      value - The bytes for venue to set.
      Returns:
      This builder for chaining.
    • hasEventParticipantDisplayName

      public boolean hasEventParticipantDisplayName()
       The name of an associated participant for a given event. For example,
       headliner for a concert event.
       
      string event_participant_display_name = 9;
      Specified by:
      hasEventParticipantDisplayName in interface VerticalAdsItemGroupRuleInfoOrBuilder
      Returns:
      Whether the eventParticipantDisplayName field is set.
    • getEventParticipantDisplayName

      public String getEventParticipantDisplayName()
       The name of an associated participant for a given event. For example,
       headliner for a concert event.
       
      string event_participant_display_name = 9;
      Specified by:
      getEventParticipantDisplayName in interface VerticalAdsItemGroupRuleInfoOrBuilder
      Returns:
      The eventParticipantDisplayName.
    • getEventParticipantDisplayNameBytes

      public com.google.protobuf.ByteString getEventParticipantDisplayNameBytes()
       The name of an associated participant for a given event. For example,
       headliner for a concert event.
       
      string event_participant_display_name = 9;
      Specified by:
      getEventParticipantDisplayNameBytes in interface VerticalAdsItemGroupRuleInfoOrBuilder
      Returns:
      The bytes for eventParticipantDisplayName.
    • setEventParticipantDisplayName

      public VerticalAdsItemGroupRuleInfo.Builder setEventParticipantDisplayName(String value)
       The name of an associated participant for a given event. For example,
       headliner for a concert event.
       
      string event_participant_display_name = 9;
      Parameters:
      value - The eventParticipantDisplayName to set.
      Returns:
      This builder for chaining.
    • clearEventParticipantDisplayName

      public VerticalAdsItemGroupRuleInfo.Builder clearEventParticipantDisplayName()
       The name of an associated participant for a given event. For example,
       headliner for a concert event.
       
      string event_participant_display_name = 9;
      Returns:
      This builder for chaining.
    • setEventParticipantDisplayNameBytes

      public VerticalAdsItemGroupRuleInfo.Builder setEventParticipantDisplayNameBytes(com.google.protobuf.ByteString value)
       The name of an associated participant for a given event. For example,
       headliner for a concert event.
       
      string event_participant_display_name = 9;
      Parameters:
      value - The bytes for eventParticipantDisplayName to set.
      Returns:
      This builder for chaining.