public interface DetectLanguageRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
String |
getContent()
The content of the input stored as a string.
|
com.google.protobuf.ByteString |
getContentBytes()
The content of the input stored as a string.
|
String |
getMimeType()
Optional.
|
com.google.protobuf.ByteString |
getMimeTypeBytes()
Optional.
|
String |
getModel()
Optional.
|
com.google.protobuf.ByteString |
getModelBytes()
Optional.
|
String |
getParent()
Required.
|
com.google.protobuf.ByteString |
getParentBytes()
Required.
|
DetectLanguageRequest.SourceCase |
getSourceCase() |
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString getParent()
Required. Location to make a regional or global call.
Format: `projects/{project-id}/locations/{location-id}`.
For global calls, use `projects/{project-id}/locations/global`.
Only models within the same region (has same location-id) can be used.
Otherwise an INVALID_ARGUMENT (400) error is returned.
string parent = 5;com.google.protobuf.ByteString getParentBytes()
Required. Location to make a regional or global call.
Format: `projects/{project-id}/locations/{location-id}`.
For global calls, use `projects/{project-id}/locations/global`.
Only models within the same region (has same location-id) can be used.
Otherwise an INVALID_ARGUMENT (400) error is returned.
string parent = 5;String getModel()
Optional. The language detection model to be used.
Format:
`projects/{project-id}/locations/{location-id}/models/language-detection/{model-id}`
Only one language detection model is currently supported:
`projects/{project-id}/locations/{location-id}/models/language-detection/default`.
If not specified, the default model is used.
string model = 4;com.google.protobuf.ByteString getModelBytes()
Optional. The language detection model to be used.
Format:
`projects/{project-id}/locations/{location-id}/models/language-detection/{model-id}`
Only one language detection model is currently supported:
`projects/{project-id}/locations/{location-id}/models/language-detection/default`.
If not specified, the default model is used.
string model = 4;String getContent()
The content of the input stored as a string.
string content = 1;com.google.protobuf.ByteString getContentBytes()
The content of the input stored as a string.
string content = 1;String getMimeType()
Optional. The format of the source text, for example, "text/html", "text/plain". If left blank, the MIME type defaults to "text/html".
string mime_type = 3;com.google.protobuf.ByteString getMimeTypeBytes()
Optional. The format of the source text, for example, "text/html", "text/plain". If left blank, the MIME type defaults to "text/html".
string mime_type = 3;DetectLanguageRequest.SourceCase getSourceCase()
Copyright © 2019 Google LLC. All rights reserved.