Class SupportedLanguage (2.3.2)

public final class SupportedLanguage extends GeneratedMessageV3 implements SupportedLanguageOrBuilder

A single supported language response corresponds to information related to one supported language.

Protobuf type google.cloud.translation.v3.SupportedLanguage

Static Fields

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

LANGUAGE_CODE_FIELD_NUMBER

public static final int LANGUAGE_CODE_FIELD_NUMBER
Field Value
TypeDescription
int

SUPPORT_SOURCE_FIELD_NUMBER

public static final int SUPPORT_SOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

SUPPORT_TARGET_FIELD_NUMBER

public static final int SUPPORT_TARGET_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SupportedLanguage getDefaultInstance()
Returns
TypeDescription
SupportedLanguage

getDescriptor()

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

newBuilder()

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

newBuilder(SupportedLanguage prototype)

public static SupportedLanguage.Builder newBuilder(SupportedLanguage prototype)
Parameter
NameDescription
prototypeSupportedLanguage
Returns
TypeDescription
SupportedLanguage.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public SupportedLanguage getDefaultInstanceForType()
Returns
TypeDescription
SupportedLanguage

getDisplayName()

public String getDisplayName()

Human readable name of the language localized in the display language specified in the request.

string display_name = 2;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Human readable name of the language localized in the display language specified in the request.

string display_name = 2;

Returns
TypeDescription
ByteString

The bytes for displayName.

getLanguageCode()

public String getLanguageCode()

Supported language code, generally consisting of its ISO 639-1 identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes including language and region identifiers are returned (for example, 'zh-TW' and 'zh-CN')

string language_code = 1;

Returns
TypeDescription
String

The languageCode.

getLanguageCodeBytes()

public ByteString getLanguageCodeBytes()

Supported language code, generally consisting of its ISO 639-1 identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes including language and region identifiers are returned (for example, 'zh-TW' and 'zh-CN')

string language_code = 1;

Returns
TypeDescription
ByteString

The bytes for languageCode.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSupportSource()

public boolean getSupportSource()

Can be used as source language.

bool support_source = 3;

Returns
TypeDescription
boolean

The supportSource.

getSupportTarget()

public boolean getSupportTarget()

Can be used as target language.

bool support_target = 4;

Returns
TypeDescription
boolean

The supportTarget.

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 SupportedLanguage.Builder newBuilderForType()
Returns
TypeDescription
SupportedLanguage.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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