Class GetSupportedLanguagesRequest (2.48.0)

public final class GetSupportedLanguagesRequest extends GeneratedMessageV3 implements GetSupportedLanguagesRequestOrBuilder

The request message for discovering supported languages.

Protobuf type google.cloud.translation.v3beta1.GetSupportedLanguagesRequest

Static Fields

DISPLAY_LANGUAGE_CODE_FIELD_NUMBER

public static final int DISPLAY_LANGUAGE_CODE_FIELD_NUMBER
Field Value
Type Description
int

MODEL_FIELD_NUMBER

public static final int MODEL_FIELD_NUMBER
Field Value
Type Description
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static GetSupportedLanguagesRequest getDefaultInstance()
Returns
Type Description
GetSupportedLanguagesRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static GetSupportedLanguagesRequest.Builder newBuilder()
Returns
Type Description
GetSupportedLanguagesRequest.Builder

newBuilder(GetSupportedLanguagesRequest prototype)

public static GetSupportedLanguagesRequest.Builder newBuilder(GetSupportedLanguagesRequest prototype)
Parameter
Name Description
prototype GetSupportedLanguagesRequest
Returns
Type Description
GetSupportedLanguagesRequest.Builder

parseDelimitedFrom(InputStream input)

public static GetSupportedLanguagesRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GetSupportedLanguagesRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GetSupportedLanguagesRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GetSupportedLanguagesRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static GetSupportedLanguagesRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
GetSupportedLanguagesRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GetSupportedLanguagesRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GetSupportedLanguagesRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GetSupportedLanguagesRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
GetSupportedLanguagesRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GetSupportedLanguagesRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GetSupportedLanguagesRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GetSupportedLanguagesRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
GetSupportedLanguagesRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GetSupportedLanguagesRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GetSupportedLanguagesRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static GetSupportedLanguagesRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GetSupportedLanguagesRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GetSupportedLanguagesRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GetSupportedLanguagesRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static GetSupportedLanguagesRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
GetSupportedLanguagesRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GetSupportedLanguagesRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GetSupportedLanguagesRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<GetSupportedLanguagesRequest> parser()
Returns
Type Description
Parser<GetSupportedLanguagesRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public GetSupportedLanguagesRequest getDefaultInstanceForType()
Returns
Type Description
GetSupportedLanguagesRequest

getDisplayLanguageCode()

public String getDisplayLanguageCode()

Optional. The language to use to return localized, human readable names of supported languages. If missing, then display names are not returned in a response.

string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The displayLanguageCode.

getDisplayLanguageCodeBytes()

public ByteString getDisplayLanguageCodeBytes()

Optional. The language to use to return localized, human readable names of supported languages. If missing, then display names are not returned in a response.

string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for displayLanguageCode.

getModel()

public String getModel()

Optional. Get supported languages of this model.

The format depends on model type:

  • AutoML Translation models: projects/{project-number-or-id}/locations/{location-id}/models/{model-id}

  • General (built-in) models: projects/{project-number-or-id}/locations/{location-id}/models/general/nmt,

Returns languages supported by the specified model. If missing, we get supported languages of Google general NMT model.

string model = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The model.

getModelBytes()

public ByteString getModelBytes()

Optional. Get supported languages of this model.

The format depends on model type:

  • AutoML Translation models: projects/{project-number-or-id}/locations/{location-id}/models/{model-id}

  • General (built-in) models: projects/{project-number-or-id}/locations/{location-id}/models/general/nmt,

Returns languages supported by the specified model. If missing, we get supported languages of Google general NMT model.

string model = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for model.

getParent()

public String getParent()

Required. Project or location to make a call. Must refer to a caller's project.

Format: projects/{project-number-or-id} or projects/{project-number-or-id}/locations/{location-id}.

For global calls, use projects/{project-number-or-id}/locations/global or projects/{project-number-or-id}.

Non-global location is required for AutoML models.

Only models within the same region (have same location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned.

string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Project or location to make a call. Must refer to a caller's project.

Format: projects/{project-number-or-id} or projects/{project-number-or-id}/locations/{location-id}.

For global calls, use projects/{project-number-or-id}/locations/global or projects/{project-number-or-id}.

Non-global location is required for AutoML models.

Only models within the same region (have same location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned.

string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getParserForType()

public Parser<GetSupportedLanguagesRequest> getParserForType()
Returns
Type Description
Parser<GetSupportedLanguagesRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public GetSupportedLanguagesRequest.Builder newBuilderForType()
Returns
Type Description
GetSupportedLanguagesRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GetSupportedLanguagesRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
GetSupportedLanguagesRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public GetSupportedLanguagesRequest.Builder toBuilder()
Returns
Type Description
GetSupportedLanguagesRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException