Class CriterionCategoryLocaleAvailability.Builder

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

public static final class CriterionCategoryLocaleAvailability.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryLocaleAvailability.Builder> implements CriterionCategoryLocaleAvailabilityOrBuilder
 Information about which locales a category is available in.
 
Protobuf type google.ads.googleads.v18.common.CriterionCategoryLocaleAvailability
  • 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<CriterionCategoryLocaleAvailability.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<CriterionCategoryLocaleAvailability.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<CriterionCategoryLocaleAvailability.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

      public CriterionCategoryLocaleAvailability.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<CriterionCategoryLocaleAvailability.Builder>
      Throws:
      IOException
    • getAvailabilityModeValue

      public int getAvailabilityModeValue()
       Format of the locale availability. Can be LAUNCHED_TO_ALL (both country and
       language will be empty), COUNTRY (only country will be set), LANGUAGE (only
       language wil be set), COUNTRY_AND_LANGUAGE (both country and language will
       be set).
       
      .google.ads.googleads.v18.enums.CriterionCategoryLocaleAvailabilityModeEnum.CriterionCategoryLocaleAvailabilityMode availability_mode = 1;
      Specified by:
      getAvailabilityModeValue in interface CriterionCategoryLocaleAvailabilityOrBuilder
      Returns:
      The enum numeric value on the wire for availabilityMode.
    • setAvailabilityModeValue

      public CriterionCategoryLocaleAvailability.Builder setAvailabilityModeValue(int value)
       Format of the locale availability. Can be LAUNCHED_TO_ALL (both country and
       language will be empty), COUNTRY (only country will be set), LANGUAGE (only
       language wil be set), COUNTRY_AND_LANGUAGE (both country and language will
       be set).
       
      .google.ads.googleads.v18.enums.CriterionCategoryLocaleAvailabilityModeEnum.CriterionCategoryLocaleAvailabilityMode availability_mode = 1;
      Parameters:
      value - The enum numeric value on the wire for availabilityMode to set.
      Returns:
      This builder for chaining.
    • getAvailabilityMode

       Format of the locale availability. Can be LAUNCHED_TO_ALL (both country and
       language will be empty), COUNTRY (only country will be set), LANGUAGE (only
       language wil be set), COUNTRY_AND_LANGUAGE (both country and language will
       be set).
       
      .google.ads.googleads.v18.enums.CriterionCategoryLocaleAvailabilityModeEnum.CriterionCategoryLocaleAvailabilityMode availability_mode = 1;
      Specified by:
      getAvailabilityMode in interface CriterionCategoryLocaleAvailabilityOrBuilder
      Returns:
      The availabilityMode.
    • setAvailabilityMode

       Format of the locale availability. Can be LAUNCHED_TO_ALL (both country and
       language will be empty), COUNTRY (only country will be set), LANGUAGE (only
       language wil be set), COUNTRY_AND_LANGUAGE (both country and language will
       be set).
       
      .google.ads.googleads.v18.enums.CriterionCategoryLocaleAvailabilityModeEnum.CriterionCategoryLocaleAvailabilityMode availability_mode = 1;
      Parameters:
      value - The availabilityMode to set.
      Returns:
      This builder for chaining.
    • clearAvailabilityMode

      public CriterionCategoryLocaleAvailability.Builder clearAvailabilityMode()
       Format of the locale availability. Can be LAUNCHED_TO_ALL (both country and
       language will be empty), COUNTRY (only country will be set), LANGUAGE (only
       language wil be set), COUNTRY_AND_LANGUAGE (both country and language will
       be set).
       
      .google.ads.googleads.v18.enums.CriterionCategoryLocaleAvailabilityModeEnum.CriterionCategoryLocaleAvailabilityMode availability_mode = 1;
      Returns:
      This builder for chaining.
    • hasCountryCode

      public boolean hasCountryCode()
       The ISO-3166-1 alpha-2 country code associated with the category.
       
      optional string country_code = 4;
      Specified by:
      hasCountryCode in interface CriterionCategoryLocaleAvailabilityOrBuilder
      Returns:
      Whether the countryCode field is set.
    • getCountryCode

      public String getCountryCode()
       The ISO-3166-1 alpha-2 country code associated with the category.
       
      optional string country_code = 4;
      Specified by:
      getCountryCode in interface CriterionCategoryLocaleAvailabilityOrBuilder
      Returns:
      The countryCode.
    • getCountryCodeBytes

      public com.google.protobuf.ByteString getCountryCodeBytes()
       The ISO-3166-1 alpha-2 country code associated with the category.
       
      optional string country_code = 4;
      Specified by:
      getCountryCodeBytes in interface CriterionCategoryLocaleAvailabilityOrBuilder
      Returns:
      The bytes for countryCode.
    • setCountryCode

      public CriterionCategoryLocaleAvailability.Builder setCountryCode(String value)
       The ISO-3166-1 alpha-2 country code associated with the category.
       
      optional string country_code = 4;
      Parameters:
      value - The countryCode to set.
      Returns:
      This builder for chaining.
    • clearCountryCode

       The ISO-3166-1 alpha-2 country code associated with the category.
       
      optional string country_code = 4;
      Returns:
      This builder for chaining.
    • setCountryCodeBytes

      public CriterionCategoryLocaleAvailability.Builder setCountryCodeBytes(com.google.protobuf.ByteString value)
       The ISO-3166-1 alpha-2 country code associated with the category.
       
      optional string country_code = 4;
      Parameters:
      value - The bytes for countryCode to set.
      Returns:
      This builder for chaining.
    • hasLanguageCode

      public boolean hasLanguageCode()
       ISO 639-1 code of the language associated with the category.
       
      optional string language_code = 5;
      Specified by:
      hasLanguageCode in interface CriterionCategoryLocaleAvailabilityOrBuilder
      Returns:
      Whether the languageCode field is set.
    • getLanguageCode

      public String getLanguageCode()
       ISO 639-1 code of the language associated with the category.
       
      optional string language_code = 5;
      Specified by:
      getLanguageCode in interface CriterionCategoryLocaleAvailabilityOrBuilder
      Returns:
      The languageCode.
    • getLanguageCodeBytes

      public com.google.protobuf.ByteString getLanguageCodeBytes()
       ISO 639-1 code of the language associated with the category.
       
      optional string language_code = 5;
      Specified by:
      getLanguageCodeBytes in interface CriterionCategoryLocaleAvailabilityOrBuilder
      Returns:
      The bytes for languageCode.
    • setLanguageCode

      public CriterionCategoryLocaleAvailability.Builder setLanguageCode(String value)
       ISO 639-1 code of the language associated with the category.
       
      optional string language_code = 5;
      Parameters:
      value - The languageCode to set.
      Returns:
      This builder for chaining.
    • clearLanguageCode

      public CriterionCategoryLocaleAvailability.Builder clearLanguageCode()
       ISO 639-1 code of the language associated with the category.
       
      optional string language_code = 5;
      Returns:
      This builder for chaining.
    • setLanguageCodeBytes

      public CriterionCategoryLocaleAvailability.Builder setLanguageCodeBytes(com.google.protobuf.ByteString value)
       ISO 639-1 code of the language associated with the category.
       
      optional string language_code = 5;
      Parameters:
      value - The bytes for languageCode to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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