public static final class SupportedLanguage.Builder extends GeneratedMessageV3.Builder<SupportedLanguage.Builder> implements SupportedLanguageOrBuilder
A single supported language response corresponds to information related to one supported language.Protobuf type
google.cloud.translation.v3beta1.SupportedLanguage
Modifier and Type | Method and Description |
---|---|
SupportedLanguage.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
SupportedLanguage |
build() |
SupportedLanguage |
buildPartial() |
SupportedLanguage.Builder |
clear() |
SupportedLanguage.Builder |
clearDisplayName()
Human readable name of the language localized in the display language
specified in the request.
|
SupportedLanguage.Builder |
clearField(Descriptors.FieldDescriptor field) |
SupportedLanguage.Builder |
clearLanguageCode()
Supported language code, generally consisting of its ISO 639-1
identifier, for example, 'en', 'ja'.
|
SupportedLanguage.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
SupportedLanguage.Builder |
clearSupportSource()
Can be used as source language.
|
SupportedLanguage.Builder |
clearSupportTarget()
Can be used as target language.
|
SupportedLanguage.Builder |
clone() |
SupportedLanguage |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
String |
getDisplayName()
Human readable name of the language localized in the display language
specified in the request.
|
ByteString |
getDisplayNameBytes()
Human readable name of the language localized in the display language
specified in the request.
|
String |
getLanguageCode()
Supported language code, generally consisting of its ISO 639-1
identifier, for example, 'en', 'ja'.
|
ByteString |
getLanguageCodeBytes()
Supported language code, generally consisting of its ISO 639-1
identifier, for example, 'en', 'ja'.
|
boolean |
getSupportSource()
Can be used as source language.
|
boolean |
getSupportTarget()
Can be used as target language.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SupportedLanguage.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
SupportedLanguage.Builder |
mergeFrom(Message other) |
SupportedLanguage.Builder |
mergeFrom(SupportedLanguage other) |
SupportedLanguage.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
SupportedLanguage.Builder |
setDisplayName(String value)
Human readable name of the language localized in the display language
specified in the request.
|
SupportedLanguage.Builder |
setDisplayNameBytes(ByteString value)
Human readable name of the language localized in the display language
specified in the request.
|
SupportedLanguage.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
SupportedLanguage.Builder |
setLanguageCode(String value)
Supported language code, generally consisting of its ISO 639-1
identifier, for example, 'en', 'ja'.
|
SupportedLanguage.Builder |
setLanguageCodeBytes(ByteString value)
Supported language code, generally consisting of its ISO 639-1
identifier, for example, 'en', 'ja'.
|
SupportedLanguage.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
SupportedLanguage.Builder |
setSupportSource(boolean value)
Can be used as source language.
|
SupportedLanguage.Builder |
setSupportTarget(boolean value)
Can be used as target language.
|
SupportedLanguage.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<SupportedLanguage.Builder>
public SupportedLanguage.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<SupportedLanguage.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<SupportedLanguage.Builder>
public SupportedLanguage getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public SupportedLanguage build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public SupportedLanguage buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public SupportedLanguage.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<SupportedLanguage.Builder>
public SupportedLanguage.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<SupportedLanguage.Builder>
public SupportedLanguage.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<SupportedLanguage.Builder>
public SupportedLanguage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<SupportedLanguage.Builder>
public SupportedLanguage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<SupportedLanguage.Builder>
public SupportedLanguage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<SupportedLanguage.Builder>
public SupportedLanguage.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<SupportedLanguage.Builder>
public SupportedLanguage.Builder mergeFrom(SupportedLanguage other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<SupportedLanguage.Builder>
public SupportedLanguage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<SupportedLanguage.Builder>
IOException
public String getLanguageCode()
Supported language code, generally consisting of its ISO 639-1 identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes including language and region identifiers are returned (for example, 'zh-TW' and 'zh-CN')
string language_code = 1;
getLanguageCode
in interface SupportedLanguageOrBuilder
public ByteString getLanguageCodeBytes()
Supported language code, generally consisting of its ISO 639-1 identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes including language and region identifiers are returned (for example, 'zh-TW' and 'zh-CN')
string language_code = 1;
getLanguageCodeBytes
in interface SupportedLanguageOrBuilder
public SupportedLanguage.Builder setLanguageCode(String value)
Supported language code, generally consisting of its ISO 639-1 identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes including language and region identifiers are returned (for example, 'zh-TW' and 'zh-CN')
string language_code = 1;
value
- The languageCode to set.public SupportedLanguage.Builder clearLanguageCode()
Supported language code, generally consisting of its ISO 639-1 identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes including language and region identifiers are returned (for example, 'zh-TW' and 'zh-CN')
string language_code = 1;
public SupportedLanguage.Builder setLanguageCodeBytes(ByteString value)
Supported language code, generally consisting of its ISO 639-1 identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes including language and region identifiers are returned (for example, 'zh-TW' and 'zh-CN')
string language_code = 1;
value
- The bytes for languageCode to set.public String getDisplayName()
Human readable name of the language localized in the display language specified in the request.
string display_name = 2;
getDisplayName
in interface SupportedLanguageOrBuilder
public ByteString getDisplayNameBytes()
Human readable name of the language localized in the display language specified in the request.
string display_name = 2;
getDisplayNameBytes
in interface SupportedLanguageOrBuilder
public SupportedLanguage.Builder setDisplayName(String value)
Human readable name of the language localized in the display language specified in the request.
string display_name = 2;
value
- The displayName to set.public SupportedLanguage.Builder clearDisplayName()
Human readable name of the language localized in the display language specified in the request.
string display_name = 2;
public SupportedLanguage.Builder setDisplayNameBytes(ByteString value)
Human readable name of the language localized in the display language specified in the request.
string display_name = 2;
value
- The bytes for displayName to set.public boolean getSupportSource()
Can be used as source language.
bool support_source = 3;
getSupportSource
in interface SupportedLanguageOrBuilder
public SupportedLanguage.Builder setSupportSource(boolean value)
Can be used as source language.
bool support_source = 3;
value
- The supportSource to set.public SupportedLanguage.Builder clearSupportSource()
Can be used as source language.
bool support_source = 3;
public boolean getSupportTarget()
Can be used as target language.
bool support_target = 4;
getSupportTarget
in interface SupportedLanguageOrBuilder
public SupportedLanguage.Builder setSupportTarget(boolean value)
Can be used as target language.
bool support_target = 4;
value
- The supportTarget to set.public SupportedLanguage.Builder clearSupportTarget()
Can be used as target language.
bool support_target = 4;
public final SupportedLanguage.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<SupportedLanguage.Builder>
public final SupportedLanguage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<SupportedLanguage.Builder>
Copyright © 2022 Google LLC. All rights reserved.