public static final class SupportedLanguages.Builder extends GeneratedMessageV3.Builder<SupportedLanguages.Builder> implements SupportedLanguagesOrBuilder
The response message for discovering supported languages.
Protobuf type google.cloud.translation.v3.SupportedLanguages
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllLanguages(Iterable<? extends SupportedLanguage> values)
public SupportedLanguages.Builder addAllLanguages(Iterable<? extends SupportedLanguage> values)
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.translate.v3.SupportedLanguage>
|
Returns
addLanguages(SupportedLanguage value)
public SupportedLanguages.Builder addLanguages(SupportedLanguage value)
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
Parameter
Returns
addLanguages(SupportedLanguage.Builder builderForValue)
public SupportedLanguages.Builder addLanguages(SupportedLanguage.Builder builderForValue)
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
Parameter
Returns
addLanguages(int index, SupportedLanguage value)
public SupportedLanguages.Builder addLanguages(int index, SupportedLanguage value)
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
Parameters
Returns
addLanguages(int index, SupportedLanguage.Builder builderForValue)
public SupportedLanguages.Builder addLanguages(int index, SupportedLanguage.Builder builderForValue)
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
Parameters
Returns
addLanguagesBuilder()
public SupportedLanguage.Builder addLanguagesBuilder()
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
Returns
addLanguagesBuilder(int index)
public SupportedLanguage.Builder addLanguagesBuilder(int index)
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SupportedLanguages.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SupportedLanguages build()
Returns
buildPartial()
public SupportedLanguages buildPartial()
Returns
clear()
public SupportedLanguages.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public SupportedLanguages.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearLanguages()
public SupportedLanguages.Builder clearLanguages()
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public SupportedLanguages.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public SupportedLanguages.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public SupportedLanguages getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getLanguages(int index)
public SupportedLanguage getLanguages(int index)
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
Parameter
Returns
getLanguagesBuilder(int index)
public SupportedLanguage.Builder getLanguagesBuilder(int index)
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
Parameter
Returns
getLanguagesBuilderList()
public List<SupportedLanguage.Builder> getLanguagesBuilderList()
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
Returns
getLanguagesCount()
public int getLanguagesCount()
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
Returns
getLanguagesList()
public List<SupportedLanguage> getLanguagesList()
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
Returns
getLanguagesOrBuilder(int index)
public SupportedLanguageOrBuilder getLanguagesOrBuilder(int index)
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
Parameter
Returns
getLanguagesOrBuilderList()
public List<? extends SupportedLanguageOrBuilder> getLanguagesOrBuilderList()
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
Returns
Type | Description |
List<? extends com.google.cloud.translate.v3.SupportedLanguageOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(SupportedLanguages other)
public SupportedLanguages.Builder mergeFrom(SupportedLanguages other)
Parameter
Returns
public SupportedLanguages.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SupportedLanguages.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SupportedLanguages.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeLanguages(int index)
public SupportedLanguages.Builder removeLanguages(int index)
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public SupportedLanguages.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setLanguages(int index, SupportedLanguage value)
public SupportedLanguages.Builder setLanguages(int index, SupportedLanguage value)
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
Parameters
Returns
setLanguages(int index, SupportedLanguage.Builder builderForValue)
public SupportedLanguages.Builder setLanguages(int index, SupportedLanguage.Builder builderForValue)
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3.SupportedLanguage languages = 1;
Parameters
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SupportedLanguages.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SupportedLanguages.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides