Class GetSupportedLanguagesRequest (2.3.1)

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
TypeDescription
int

MODEL_FIELD_NUMBER

public static final int MODEL_FIELD_NUMBER
Field Value
TypeDescription
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static GetSupportedLanguagesRequest getDefaultInstance()
Returns
TypeDescription
GetSupportedLanguagesRequest

getDescriptor()

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

newBuilder()

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

newBuilder(GetSupportedLanguagesRequest prototype)

public static GetSupportedLanguagesRequest.Builder newBuilder(GetSupportedLanguagesRequest prototype)
Parameter
NameDescription
prototypeGetSupportedLanguagesRequest
Returns
TypeDescription
GetSupportedLanguagesRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public GetSupportedLanguagesRequest getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for parent.

getParserForType()

public Parser<GetSupportedLanguagesRequest> getParserForType()
Returns
TypeDescription
Parser<GetSupportedLanguagesRequest>
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 GetSupportedLanguagesRequest.Builder newBuilderForType()
Returns
TypeDescription
GetSupportedLanguagesRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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