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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Format of the locale availability.The ISO-3166-1 alpha-2 country code associated with the category.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) ISO 639-1 code of the language associated with the category.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()Format of the locale availability.intFormat of the locale availability.The ISO-3166-1 alpha-2 country code associated with the category.com.google.protobuf.ByteStringThe ISO-3166-1 alpha-2 country code associated with the category.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorISO 639-1 code of the language associated with the category.com.google.protobuf.ByteStringISO 639-1 code of the language associated with the category.booleanThe ISO-3166-1 alpha-2 country code associated with the category.booleanISO 639-1 code of the language associated with the category.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setAvailabilityMode(CriterionCategoryLocaleAvailabilityModeEnum.CriterionCategoryLocaleAvailabilityMode value) Format of the locale availability.setAvailabilityModeValue(int value) Format of the locale availability.setCountryCode(String value) The ISO-3166-1 alpha-2 country code associated with the category.setCountryCodeBytes(com.google.protobuf.ByteString value) The ISO-3166-1 alpha-2 country code associated with the category.setLanguageCode(String value) ISO 639-1 code of the language associated with the category.setLanguageCodeBytes(com.google.protobuf.ByteString value) ISO 639-1 code of the language associated with the category.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryLocaleAvailability.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryLocaleAvailability.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryLocaleAvailability.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryLocaleAvailability.Builder>
-
setField
public CriterionCategoryLocaleAvailability.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryLocaleAvailability.Builder>
-
clearField
public CriterionCategoryLocaleAvailability.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryLocaleAvailability.Builder>
-
clearOneof
public CriterionCategoryLocaleAvailability.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryLocaleAvailability.Builder>
-
setRepeatedField
public CriterionCategoryLocaleAvailability.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryLocaleAvailability.Builder>
-
addRepeatedField
public CriterionCategoryLocaleAvailability.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryLocaleAvailability.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CriterionCategoryLocaleAvailability.Builder>
-
mergeFrom
public CriterionCategoryLocaleAvailability.Builder mergeFrom(CriterionCategoryLocaleAvailability other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getAvailabilityModeValuein interfaceCriterionCategoryLocaleAvailabilityOrBuilder- Returns:
- The enum numeric value on the wire for availabilityMode.
-
setAvailabilityModeValue
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
public CriterionCategoryLocaleAvailabilityModeEnum.CriterionCategoryLocaleAvailabilityMode 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:
getAvailabilityModein interfaceCriterionCategoryLocaleAvailabilityOrBuilder- Returns:
- The availabilityMode.
-
setAvailabilityMode
public CriterionCategoryLocaleAvailability.Builder setAvailabilityMode(CriterionCategoryLocaleAvailabilityModeEnum.CriterionCategoryLocaleAvailabilityMode 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 availabilityMode to set.- Returns:
- This builder for chaining.
-
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:
hasCountryCodein interfaceCriterionCategoryLocaleAvailabilityOrBuilder- Returns:
- Whether the countryCode field is set.
-
getCountryCode
The ISO-3166-1 alpha-2 country code associated with the category.
optional string country_code = 4;- Specified by:
getCountryCodein interfaceCriterionCategoryLocaleAvailabilityOrBuilder- 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:
getCountryCodeBytesin interfaceCriterionCategoryLocaleAvailabilityOrBuilder- Returns:
- The bytes for countryCode.
-
setCountryCode
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:
hasLanguageCodein interfaceCriterionCategoryLocaleAvailabilityOrBuilder- Returns:
- Whether the languageCode field is set.
-
getLanguageCode
ISO 639-1 code of the language associated with the category.
optional string language_code = 5;- Specified by:
getLanguageCodein interfaceCriterionCategoryLocaleAvailabilityOrBuilder- 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:
getLanguageCodeBytesin interfaceCriterionCategoryLocaleAvailabilityOrBuilder- Returns:
- The bytes for languageCode.
-
setLanguageCode
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
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryLocaleAvailability.Builder>
-
mergeUnknownFields
public final CriterionCategoryLocaleAvailability.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CriterionCategoryLocaleAvailability.Builder>
-