Class SupportedLanguages (2.16.0)

public final class SupportedLanguages extends GeneratedMessageV3 implements SupportedLanguagesOrBuilder

The response message for discovering supported languages.

Protobuf type google.cloud.translation.v3.SupportedLanguages

Static Fields

LANGUAGES_FIELD_NUMBER

public static final int LANGUAGES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SupportedLanguages getDefaultInstance()
Returns
TypeDescription
SupportedLanguages

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static SupportedLanguages.Builder newBuilder()
Returns
TypeDescription
SupportedLanguages.Builder

newBuilder(SupportedLanguages prototype)

public static SupportedLanguages.Builder newBuilder(SupportedLanguages prototype)
Parameter
NameDescription
prototypeSupportedLanguages
Returns
TypeDescription
SupportedLanguages.Builder

parseDelimitedFrom(InputStream input)

public static SupportedLanguages parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SupportedLanguages
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SupportedLanguages parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SupportedLanguages
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SupportedLanguages parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SupportedLanguages
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SupportedLanguages parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SupportedLanguages
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SupportedLanguages parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SupportedLanguages
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SupportedLanguages parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SupportedLanguages
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SupportedLanguages parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SupportedLanguages
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SupportedLanguages parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SupportedLanguages
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SupportedLanguages parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SupportedLanguages
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SupportedLanguages parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SupportedLanguages
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SupportedLanguages parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SupportedLanguages
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SupportedLanguages parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SupportedLanguages
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SupportedLanguages> parser()
Returns
TypeDescription
Parser<SupportedLanguages>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public SupportedLanguages getDefaultInstanceForType()
Returns
TypeDescription
SupportedLanguages

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

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>

getParserForType()

public Parser<SupportedLanguages> getParserForType()
Returns
TypeDescription
Parser<SupportedLanguages>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public SupportedLanguages.Builder newBuilderForType()
Returns
TypeDescription
SupportedLanguages.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SupportedLanguages.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SupportedLanguages.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public SupportedLanguages.Builder toBuilder()
Returns
TypeDescription
SupportedLanguages.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException