Class LanguageConstant.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<LanguageConstant.Builder>
-
- com.google.ads.googleads.v14.resources.LanguageConstant.Builder
-
- All Implemented Interfaces:
LanguageConstantOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- LanguageConstant
public static final class LanguageConstant.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LanguageConstant.Builder> implements LanguageConstantOrBuilder
A language.
Protobuf typegoogle.ads.googleads.v14.resources.LanguageConstant
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LanguageConstant.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)LanguageConstantbuild()LanguageConstantbuildPartial()LanguageConstant.Builderclear()LanguageConstant.BuilderclearCode()Output only.LanguageConstant.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)LanguageConstant.BuilderclearId()Output only.LanguageConstant.BuilderclearName()Output only.LanguageConstant.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)LanguageConstant.BuilderclearResourceName()Output only.LanguageConstant.BuilderclearTargetable()Output only.LanguageConstant.Builderclone()java.lang.StringgetCode()Output only.com.google.protobuf.ByteStringgetCodeBytes()Output only.LanguageConstantgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()longgetId()Output only.java.lang.StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.java.lang.StringgetResourceName()Output only.com.google.protobuf.ByteStringgetResourceNameBytes()Output only.booleangetTargetable()Output only.booleanhasCode()Output only.booleanhasId()Output only.booleanhasName()Output only.booleanhasTargetable()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()LanguageConstant.BuildermergeFrom(LanguageConstant other)LanguageConstant.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)LanguageConstant.BuildermergeFrom(com.google.protobuf.Message other)LanguageConstant.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)LanguageConstant.BuildersetCode(java.lang.String value)Output only.LanguageConstant.BuildersetCodeBytes(com.google.protobuf.ByteString value)Output only.LanguageConstant.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)LanguageConstant.BuildersetId(long value)Output only.LanguageConstant.BuildersetName(java.lang.String value)Output only.LanguageConstant.BuildersetNameBytes(com.google.protobuf.ByteString value)Output only.LanguageConstant.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)LanguageConstant.BuildersetResourceName(java.lang.String value)Output only.LanguageConstant.BuildersetResourceNameBytes(com.google.protobuf.ByteString value)Output only.LanguageConstant.BuildersetTargetable(boolean value)Output only.LanguageConstant.BuildersetUnknownFields(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, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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<LanguageConstant.Builder>
-
clear
public LanguageConstant.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<LanguageConstant.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<LanguageConstant.Builder>
-
getDefaultInstanceForType
public LanguageConstant getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public LanguageConstant build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LanguageConstant buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public LanguageConstant.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<LanguageConstant.Builder>
-
setField
public LanguageConstant.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LanguageConstant.Builder>
-
clearField
public LanguageConstant.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LanguageConstant.Builder>
-
clearOneof
public LanguageConstant.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<LanguageConstant.Builder>
-
setRepeatedField
public LanguageConstant.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LanguageConstant.Builder>
-
addRepeatedField
public LanguageConstant.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LanguageConstant.Builder>
-
mergeFrom
public LanguageConstant.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LanguageConstant.Builder>
-
mergeFrom
public LanguageConstant.Builder mergeFrom(LanguageConstant other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<LanguageConstant.Builder>
-
mergeFrom
public LanguageConstant.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LanguageConstant.Builder>- Throws:
java.io.IOException
-
getResourceName
public java.lang.String getResourceName()
Output only. The resource name of the language constant. Language constant resource names have the form: `languageConstants/{criterion_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNamein interfaceLanguageConstantOrBuilder- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()
Output only. The resource name of the language constant. Language constant resource names have the form: `languageConstants/{criterion_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNameBytesin interfaceLanguageConstantOrBuilder- Returns:
- The bytes for resourceName.
-
setResourceName
public LanguageConstant.Builder setResourceName(java.lang.String value)
Output only. The resource name of the language constant. Language constant resource names have the form: `languageConstants/{criterion_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The resourceName to set.- Returns:
- This builder for chaining.
-
clearResourceName
public LanguageConstant.Builder clearResourceName()
Output only. The resource name of the language constant. Language constant resource names have the form: `languageConstants/{criterion_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setResourceNameBytes
public LanguageConstant.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
Output only. The resource name of the language constant. Language constant resource names have the form: `languageConstants/{criterion_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for resourceName to set.- Returns:
- This builder for chaining.
-
hasId
public boolean hasId()
Output only. The ID of the language constant.
optional int64 id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasIdin interfaceLanguageConstantOrBuilder- Returns:
- Whether the id field is set.
-
getId
public long getId()
Output only. The ID of the language constant.
optional int64 id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIdin interfaceLanguageConstantOrBuilder- Returns:
- The id.
-
setId
public LanguageConstant.Builder setId(long value)
Output only. The ID of the language constant.
optional int64 id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
public LanguageConstant.Builder clearId()
Output only. The ID of the language constant.
optional int64 id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasCode
public boolean hasCode()
Output only. The language code, for example, "en_US", "en_AU", "es", "fr", etc.
optional string code = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCodein interfaceLanguageConstantOrBuilder- Returns:
- Whether the code field is set.
-
getCode
public java.lang.String getCode()
Output only. The language code, for example, "en_US", "en_AU", "es", "fr", etc.
optional string code = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCodein interfaceLanguageConstantOrBuilder- Returns:
- The code.
-
getCodeBytes
public com.google.protobuf.ByteString getCodeBytes()
Output only. The language code, for example, "en_US", "en_AU", "es", "fr", etc.
optional string code = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCodeBytesin interfaceLanguageConstantOrBuilder- Returns:
- The bytes for code.
-
setCode
public LanguageConstant.Builder setCode(java.lang.String value)
Output only. The language code, for example, "en_US", "en_AU", "es", "fr", etc.
optional string code = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The code to set.- Returns:
- This builder for chaining.
-
clearCode
public LanguageConstant.Builder clearCode()
Output only. The language code, for example, "en_US", "en_AU", "es", "fr", etc.
optional string code = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setCodeBytes
public LanguageConstant.Builder setCodeBytes(com.google.protobuf.ByteString value)
Output only. The language code, for example, "en_US", "en_AU", "es", "fr", etc.
optional string code = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for code to set.- Returns:
- This builder for chaining.
-
hasName
public boolean hasName()
Output only. The full name of the language in English, for example, "English (US)", "Spanish", etc.
optional string name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasNamein interfaceLanguageConstantOrBuilder- Returns:
- Whether the name field is set.
-
getName
public java.lang.String getName()
Output only. The full name of the language in English, for example, "English (US)", "Spanish", etc.
optional string name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceLanguageConstantOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. The full name of the language in English, for example, "English (US)", "Spanish", etc.
optional string name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceLanguageConstantOrBuilder- Returns:
- The bytes for name.
-
setName
public LanguageConstant.Builder setName(java.lang.String value)
Output only. The full name of the language in English, for example, "English (US)", "Spanish", etc.
optional string name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public LanguageConstant.Builder clearName()
Output only. The full name of the language in English, for example, "English (US)", "Spanish", etc.
optional string name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNameBytes
public LanguageConstant.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. The full name of the language in English, for example, "English (US)", "Spanish", etc.
optional string name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasTargetable
public boolean hasTargetable()
Output only. Whether the language is targetable.
optional bool targetable = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasTargetablein interfaceLanguageConstantOrBuilder- Returns:
- Whether the targetable field is set.
-
getTargetable
public boolean getTargetable()
Output only. Whether the language is targetable.
optional bool targetable = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTargetablein interfaceLanguageConstantOrBuilder- Returns:
- The targetable.
-
setTargetable
public LanguageConstant.Builder setTargetable(boolean value)
Output only. Whether the language is targetable.
optional bool targetable = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The targetable to set.- Returns:
- This builder for chaining.
-
clearTargetable
public LanguageConstant.Builder clearTargetable()
Output only. Whether the language is targetable.
optional bool targetable = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setUnknownFields
public final LanguageConstant.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LanguageConstant.Builder>
-
mergeUnknownFields
public final LanguageConstant.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LanguageConstant.Builder>
-
-