Class SupportedLanguages.Builder (2.47.0)

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
Type Description
Descriptor

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
Type Description
SupportedLanguages.Builder

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
Name Description
value SupportedLanguage
Returns
Type Description
SupportedLanguages.Builder

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
Name Description
builderForValue SupportedLanguage.Builder
Returns
Type Description
SupportedLanguages.Builder

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
Name Description
index int
value SupportedLanguage
Returns
Type Description
SupportedLanguages.Builder

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
Name Description
index int
builderForValue SupportedLanguage.Builder
Returns
Type Description
SupportedLanguages.Builder

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
Type Description
SupportedLanguage.Builder

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
Name Description
index int
Returns
Type Description
SupportedLanguage.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SupportedLanguages.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SupportedLanguages.Builder
Overrides

build()

public SupportedLanguages build()
Returns
Type Description
SupportedLanguages

buildPartial()

public SupportedLanguages buildPartial()
Returns
Type Description
SupportedLanguages

clear()

public SupportedLanguages.Builder clear()
Returns
Type Description
SupportedLanguages.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SupportedLanguages.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SupportedLanguages.Builder
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
Type Description
SupportedLanguages.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public SupportedLanguages.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SupportedLanguages.Builder
Overrides

clone()

public SupportedLanguages.Builder clone()
Returns
Type Description
SupportedLanguages.Builder
Overrides

getDefaultInstanceForType()

public SupportedLanguages getDefaultInstanceForType()
Returns
Type Description
SupportedLanguages

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Name Description
index int
Returns
Type Description
SupportedLanguage

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
Name Description
index int
Returns
Type Description
SupportedLanguage.Builder

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
Type Description
List<Builder>

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
Type Description
int

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
Type Description
List<SupportedLanguage>

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
Name Description
index int
Returns
Type Description
SupportedLanguageOrBuilder

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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SupportedLanguages other)

public SupportedLanguages.Builder mergeFrom(SupportedLanguages other)
Parameter
Name Description
other SupportedLanguages
Returns
Type Description
SupportedLanguages.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SupportedLanguages.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SupportedLanguages.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SupportedLanguages.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SupportedLanguages.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SupportedLanguages.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SupportedLanguages.Builder
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
Name Description
index int
Returns
Type Description
SupportedLanguages.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SupportedLanguages.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SupportedLanguages.Builder
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
Name Description
index int
value SupportedLanguage
Returns
Type Description
SupportedLanguages.Builder

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
Name Description
index int
builderForValue SupportedLanguage.Builder
Returns
Type Description
SupportedLanguages.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SupportedLanguages.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SupportedLanguages.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SupportedLanguages.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SupportedLanguages.Builder
Overrides