public interface DocumentTranslationOrBuilder extends MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
ByteString |
getByteStreamOutputs(int index)
The array of translated documents.
|
int |
getByteStreamOutputsCount()
The array of translated documents.
|
List<ByteString> |
getByteStreamOutputsList()
The array of translated documents.
|
String |
getDetectedLanguageCode()
The detected language for the input document.
|
ByteString |
getDetectedLanguageCodeBytes()
The detected language for the input document.
|
String |
getMimeType()
The translated document's mime type.
|
ByteString |
getMimeTypeBytes()
The translated document's mime type.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
isInitialized
List<ByteString> getByteStreamOutputsList()
The array of translated documents. It is expected to be size 1 for now. We may produce multiple translated documents in the future for other type of file formats.
repeated bytes byte_stream_outputs = 1;
int getByteStreamOutputsCount()
The array of translated documents. It is expected to be size 1 for now. We may produce multiple translated documents in the future for other type of file formats.
repeated bytes byte_stream_outputs = 1;
ByteString getByteStreamOutputs(int index)
The array of translated documents. It is expected to be size 1 for now. We may produce multiple translated documents in the future for other type of file formats.
repeated bytes byte_stream_outputs = 1;
index
- The index of the element to return.String getMimeType()
The translated document's mime type.
string mime_type = 2;
ByteString getMimeTypeBytes()
The translated document's mime type.
string mime_type = 2;
String getDetectedLanguageCode()
The detected language for the input document. If the user did not provide the source language for the input document, this field will have the language code automatically detected. If the source language was passed, auto-detection of the language does not occur and this field is empty.
string detected_language_code = 3;
ByteString getDetectedLanguageCodeBytes()
The detected language for the input document. If the user did not provide the source language for the input document, this field will have the language code automatically detected. If the source language was passed, auto-detection of the language does not occur and this field is empty.
string detected_language_code = 3;
Copyright © 2022 Google LLC. All rights reserved.