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 |
---|
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static GetSupportedLanguagesRequest.Builder newBuilder()
newBuilder(GetSupportedLanguagesRequest prototype)
public static GetSupportedLanguagesRequest.Builder newBuilder(GetSupportedLanguagesRequest prototype)
public static GetSupportedLanguagesRequest parseDelimitedFrom(InputStream input)
public static GetSupportedLanguagesRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static GetSupportedLanguagesRequest parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static GetSupportedLanguagesRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static GetSupportedLanguagesRequest parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static GetSupportedLanguagesRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static GetSupportedLanguagesRequest parseFrom(CodedInputStream input)
public static GetSupportedLanguagesRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static GetSupportedLanguagesRequest parseFrom(InputStream input)
public static GetSupportedLanguagesRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static GetSupportedLanguagesRequest parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static GetSupportedLanguagesRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<GetSupportedLanguagesRequest> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public GetSupportedLanguagesRequest getDefaultInstanceForType()
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 |
---|
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()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public GetSupportedLanguagesRequest.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected GetSupportedLanguagesRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public GetSupportedLanguagesRequest.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides