Send feedback
Class SupportedLanguages.Builder (2.3.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.3.0 keyboard_arrow_down
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-21 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-21 UTC."],[],[]]