public final class GetSupportedLanguagesRequest extends GeneratedMessageV3 implements GetSupportedLanguagesRequestOrBuilder
The request message for discovering supported languages.
Protobuf type google.cloud.translation.v3.GetSupportedLanguagesRequest
Static Fields
DISPLAY_LANGUAGE_CODE_FIELD_NUMBER
public static final int DISPLAY_LANGUAGE_CODE_FIELD_NUMBER
Field Value
MODEL_FIELD_NUMBER
public static final int MODEL_FIELD_NUMBER
Field Value
PARENT_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static GetSupportedLanguagesRequest getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static GetSupportedLanguagesRequest.Builder newBuilder()
Returns
newBuilder(GetSupportedLanguagesRequest prototype)
public static GetSupportedLanguagesRequest.Builder newBuilder(GetSupportedLanguagesRequest prototype)
Parameter
Returns
public static GetSupportedLanguagesRequest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static GetSupportedLanguagesRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static GetSupportedLanguagesRequest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static GetSupportedLanguagesRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static GetSupportedLanguagesRequest parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static GetSupportedLanguagesRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static GetSupportedLanguagesRequest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static GetSupportedLanguagesRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static GetSupportedLanguagesRequest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static GetSupportedLanguagesRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static GetSupportedLanguagesRequest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static GetSupportedLanguagesRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<GetSupportedLanguagesRequest> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public GetSupportedLanguagesRequest getDefaultInstanceForType()
Returns
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()
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
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
getParserForType()
public Parser<GetSupportedLanguagesRequest> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public GetSupportedLanguagesRequest.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected GetSupportedLanguagesRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public GetSupportedLanguagesRequest.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions