Class SupportedLanguages.Builder (2.6.0)

Stay organized with collections Save and categorize content based on your preferences.
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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.translate.v3.SupportedLanguage>
Returns
TypeDescription
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
NameDescription
valueSupportedLanguage
Returns
TypeDescription
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
NameDescription
builderForValueSupportedLanguage.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueSupportedLanguage
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSupportedLanguage.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
SupportedLanguage.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SupportedLanguages.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SupportedLanguages.Builder
Overrides

build()

public SupportedLanguages build()
Returns
TypeDescription
SupportedLanguages

buildPartial()

public SupportedLanguages buildPartial()
Returns
TypeDescription
SupportedLanguages

clear()

public SupportedLanguages.Builder clear()
Returns
TypeDescription
SupportedLanguages.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SupportedLanguages.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
SupportedLanguages.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public SupportedLanguages.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SupportedLanguages.Builder
Overrides

clone()

public SupportedLanguages.Builder clone()
Returns
TypeDescription
SupportedLanguages.Builder
Overrides

getDefaultInstanceForType()

public SupportedLanguages getDefaultInstanceForType()
Returns
TypeDescription
SupportedLanguages

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.translate.v3.SupportedLanguageOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SupportedLanguages other)

public SupportedLanguages.Builder mergeFrom(SupportedLanguages other)
Parameter
NameDescription
otherSupportedLanguages
Returns
TypeDescription
SupportedLanguages.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SupportedLanguages.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SupportedLanguages.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SupportedLanguages.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SupportedLanguages.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SupportedLanguages.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
SupportedLanguages.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SupportedLanguages.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueSupportedLanguage
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSupportedLanguage.Builder
Returns
TypeDescription
SupportedLanguages.Builder

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

public SupportedLanguages.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SupportedLanguages.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SupportedLanguages.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SupportedLanguages.Builder
Overrides