- 2.54.0 (latest)
- 2.53.0
- 2.52.0
- 2.51.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.5
- 2.2.0
- 2.1.13
public static final class DocumentTranslation.Builder extends GeneratedMessageV3.Builder<DocumentTranslation.Builder> implements DocumentTranslationOrBuilder
A translated document message.
Protobuf type google.cloud.translation.v3.DocumentTranslation
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > DocumentTranslation.BuilderImplements
DocumentTranslationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllByteStreamOutputs(Iterable<? extends ByteString> values)
public DocumentTranslation.Builder addAllByteStreamOutputs(Iterable<? extends ByteString> values)
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;
Name | Description |
values | Iterable<? extends com.google.protobuf.ByteString> The byteStreamOutputs to add. |
Type | Description |
DocumentTranslation.Builder | This builder for chaining. |
addByteStreamOutputs(ByteString value)
public DocumentTranslation.Builder addByteStreamOutputs(ByteString value)
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;
Name | Description |
value | ByteString The byteStreamOutputs to add. |
Type | Description |
DocumentTranslation.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DocumentTranslation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
DocumentTranslation.Builder |
build()
public DocumentTranslation build()
Type | Description |
DocumentTranslation |
buildPartial()
public DocumentTranslation buildPartial()
Type | Description |
DocumentTranslation |
clear()
public DocumentTranslation.Builder clear()
Type | Description |
DocumentTranslation.Builder |
clearByteStreamOutputs()
public DocumentTranslation.Builder clearByteStreamOutputs()
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;
Type | Description |
DocumentTranslation.Builder | This builder for chaining. |
clearDetectedLanguageCode()
public DocumentTranslation.Builder clearDetectedLanguageCode()
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;
Type | Description |
DocumentTranslation.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public DocumentTranslation.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
DocumentTranslation.Builder |
clearMimeType()
public DocumentTranslation.Builder clearMimeType()
The translated document's mime type.
string mime_type = 2;
Type | Description |
DocumentTranslation.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public DocumentTranslation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
DocumentTranslation.Builder |
clone()
public DocumentTranslation.Builder clone()
Type | Description |
DocumentTranslation.Builder |
getByteStreamOutputs(int index)
public 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;
Name | Description |
index | int The index of the element to return. |
Type | Description |
ByteString | The byteStreamOutputs at the given index. |
getByteStreamOutputsCount()
public 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;
Type | Description |
int | The count of byteStreamOutputs. |
getByteStreamOutputsList()
public 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;
Type | Description |
List<ByteString> | A list containing the byteStreamOutputs. |
getDefaultInstanceForType()
public DocumentTranslation getDefaultInstanceForType()
Type | Description |
DocumentTranslation |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getDetectedLanguageCode()
public 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;
Type | Description |
String | The detectedLanguageCode. |
getDetectedLanguageCodeBytes()
public 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;
Type | Description |
ByteString | The bytes for detectedLanguageCode. |
getMimeType()
public String getMimeType()
The translated document's mime type.
string mime_type = 2;
Type | Description |
String | The mimeType. |
getMimeTypeBytes()
public ByteString getMimeTypeBytes()
The translated document's mime type.
string mime_type = 2;
Type | Description |
ByteString | The bytes for mimeType. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(DocumentTranslation other)
public DocumentTranslation.Builder mergeFrom(DocumentTranslation other)
Name | Description |
other | DocumentTranslation |
Type | Description |
DocumentTranslation.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DocumentTranslation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
DocumentTranslation.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public DocumentTranslation.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
DocumentTranslation.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DocumentTranslation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
DocumentTranslation.Builder |
setByteStreamOutputs(int index, ByteString value)
public DocumentTranslation.Builder setByteStreamOutputs(int index, ByteString value)
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;
Name | Description |
index | int The index to set the value at. |
value | ByteString The byteStreamOutputs to set. |
Type | Description |
DocumentTranslation.Builder | This builder for chaining. |
setDetectedLanguageCode(String value)
public DocumentTranslation.Builder setDetectedLanguageCode(String value)
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;
Name | Description |
value | String The detectedLanguageCode to set. |
Type | Description |
DocumentTranslation.Builder | This builder for chaining. |
setDetectedLanguageCodeBytes(ByteString value)
public DocumentTranslation.Builder setDetectedLanguageCodeBytes(ByteString value)
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;
Name | Description |
value | ByteString The bytes for detectedLanguageCode to set. |
Type | Description |
DocumentTranslation.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public DocumentTranslation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
DocumentTranslation.Builder |
setMimeType(String value)
public DocumentTranslation.Builder setMimeType(String value)
The translated document's mime type.
string mime_type = 2;
Name | Description |
value | String The mimeType to set. |
Type | Description |
DocumentTranslation.Builder | This builder for chaining. |
setMimeTypeBytes(ByteString value)
public DocumentTranslation.Builder setMimeTypeBytes(ByteString value)
The translated document's mime type.
string mime_type = 2;
Name | Description |
value | ByteString The bytes for mimeType to set. |
Type | Description |
DocumentTranslation.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DocumentTranslation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
DocumentTranslation.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final DocumentTranslation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
DocumentTranslation.Builder |