- 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 TranslateDocumentResponse.Builder extends GeneratedMessageV3.Builder<TranslateDocumentResponse.Builder> implements TranslateDocumentResponseOrBuilder
A translated document response message.
Protobuf type google.cloud.translation.v3.TranslateDocumentResponse
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TranslateDocumentResponse.BuilderImplements
TranslateDocumentResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TranslateDocumentResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
TranslateDocumentResponse.Builder |
build()
public TranslateDocumentResponse build()
Type | Description |
TranslateDocumentResponse |
buildPartial()
public TranslateDocumentResponse buildPartial()
Type | Description |
TranslateDocumentResponse |
clear()
public TranslateDocumentResponse.Builder clear()
Type | Description |
TranslateDocumentResponse.Builder |
clearDocumentTranslation()
public TranslateDocumentResponse.Builder clearDocumentTranslation()
Translated document.
.google.cloud.translation.v3.DocumentTranslation document_translation = 1;
Type | Description |
TranslateDocumentResponse.Builder |
clearField(Descriptors.FieldDescriptor field)
public TranslateDocumentResponse.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
TranslateDocumentResponse.Builder |
clearGlossaryConfig()
public TranslateDocumentResponse.Builder clearGlossaryConfig()
The glossary_config
used for this translation.
.google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4;
Type | Description |
TranslateDocumentResponse.Builder |
clearGlossaryDocumentTranslation()
public TranslateDocumentResponse.Builder clearGlossaryDocumentTranslation()
The document's translation output if a glossary is provided in the request. This can be the same as [TranslateDocumentResponse.document_translation] if no glossary terms apply.
.google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2;
Type | Description |
TranslateDocumentResponse.Builder |
clearModel()
public TranslateDocumentResponse.Builder clearModel()
Only present when 'model' is present in the request.
'model' is normalized to have a project number.
For example:
If the 'model' field in TranslateDocumentRequest is:
projects/{project-id}/locations/{location-id}/models/general/nmt
then
model
here would be normalized to
projects/{project-number}/locations/{location-id}/models/general/nmt
.
string model = 3;
Type | Description |
TranslateDocumentResponse.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public TranslateDocumentResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
TranslateDocumentResponse.Builder |
clone()
public TranslateDocumentResponse.Builder clone()
Type | Description |
TranslateDocumentResponse.Builder |
getDefaultInstanceForType()
public TranslateDocumentResponse getDefaultInstanceForType()
Type | Description |
TranslateDocumentResponse |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getDocumentTranslation()
public DocumentTranslation getDocumentTranslation()
Translated document.
.google.cloud.translation.v3.DocumentTranslation document_translation = 1;
Type | Description |
DocumentTranslation | The documentTranslation. |
getDocumentTranslationBuilder()
public DocumentTranslation.Builder getDocumentTranslationBuilder()
Translated document.
.google.cloud.translation.v3.DocumentTranslation document_translation = 1;
Type | Description |
DocumentTranslation.Builder |
getDocumentTranslationOrBuilder()
public DocumentTranslationOrBuilder getDocumentTranslationOrBuilder()
Translated document.
.google.cloud.translation.v3.DocumentTranslation document_translation = 1;
Type | Description |
DocumentTranslationOrBuilder |
getGlossaryConfig()
public TranslateTextGlossaryConfig getGlossaryConfig()
The glossary_config
used for this translation.
.google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4;
Type | Description |
TranslateTextGlossaryConfig | The glossaryConfig. |
getGlossaryConfigBuilder()
public TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder()
The glossary_config
used for this translation.
.google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4;
Type | Description |
TranslateTextGlossaryConfig.Builder |
getGlossaryConfigOrBuilder()
public TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder()
The glossary_config
used for this translation.
.google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4;
Type | Description |
TranslateTextGlossaryConfigOrBuilder |
getGlossaryDocumentTranslation()
public DocumentTranslation getGlossaryDocumentTranslation()
The document's translation output if a glossary is provided in the request. This can be the same as [TranslateDocumentResponse.document_translation] if no glossary terms apply.
.google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2;
Type | Description |
DocumentTranslation | The glossaryDocumentTranslation. |
getGlossaryDocumentTranslationBuilder()
public DocumentTranslation.Builder getGlossaryDocumentTranslationBuilder()
The document's translation output if a glossary is provided in the request. This can be the same as [TranslateDocumentResponse.document_translation] if no glossary terms apply.
.google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2;
Type | Description |
DocumentTranslation.Builder |
getGlossaryDocumentTranslationOrBuilder()
public DocumentTranslationOrBuilder getGlossaryDocumentTranslationOrBuilder()
The document's translation output if a glossary is provided in the request. This can be the same as [TranslateDocumentResponse.document_translation] if no glossary terms apply.
.google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2;
Type | Description |
DocumentTranslationOrBuilder |
getModel()
public String getModel()
Only present when 'model' is present in the request.
'model' is normalized to have a project number.
For example:
If the 'model' field in TranslateDocumentRequest is:
projects/{project-id}/locations/{location-id}/models/general/nmt
then
model
here would be normalized to
projects/{project-number}/locations/{location-id}/models/general/nmt
.
string model = 3;
Type | Description |
String | The model. |
getModelBytes()
public ByteString getModelBytes()
Only present when 'model' is present in the request.
'model' is normalized to have a project number.
For example:
If the 'model' field in TranslateDocumentRequest is:
projects/{project-id}/locations/{location-id}/models/general/nmt
then
model
here would be normalized to
projects/{project-number}/locations/{location-id}/models/general/nmt
.
string model = 3;
Type | Description |
ByteString | The bytes for model. |
hasDocumentTranslation()
public boolean hasDocumentTranslation()
Translated document.
.google.cloud.translation.v3.DocumentTranslation document_translation = 1;
Type | Description |
boolean | Whether the documentTranslation field is set. |
hasGlossaryConfig()
public boolean hasGlossaryConfig()
The glossary_config
used for this translation.
.google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4;
Type | Description |
boolean | Whether the glossaryConfig field is set. |
hasGlossaryDocumentTranslation()
public boolean hasGlossaryDocumentTranslation()
The document's translation output if a glossary is provided in the request. This can be the same as [TranslateDocumentResponse.document_translation] if no glossary terms apply.
.google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2;
Type | Description |
boolean | Whether the glossaryDocumentTranslation field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeDocumentTranslation(DocumentTranslation value)
public TranslateDocumentResponse.Builder mergeDocumentTranslation(DocumentTranslation value)
Translated document.
.google.cloud.translation.v3.DocumentTranslation document_translation = 1;
Name | Description |
value | DocumentTranslation |
Type | Description |
TranslateDocumentResponse.Builder |
mergeFrom(TranslateDocumentResponse other)
public TranslateDocumentResponse.Builder mergeFrom(TranslateDocumentResponse other)
Name | Description |
other | TranslateDocumentResponse |
Type | Description |
TranslateDocumentResponse.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TranslateDocumentResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
TranslateDocumentResponse.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public TranslateDocumentResponse.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
TranslateDocumentResponse.Builder |
mergeGlossaryConfig(TranslateTextGlossaryConfig value)
public TranslateDocumentResponse.Builder mergeGlossaryConfig(TranslateTextGlossaryConfig value)
The glossary_config
used for this translation.
.google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4;
Name | Description |
value | TranslateTextGlossaryConfig |
Type | Description |
TranslateDocumentResponse.Builder |
mergeGlossaryDocumentTranslation(DocumentTranslation value)
public TranslateDocumentResponse.Builder mergeGlossaryDocumentTranslation(DocumentTranslation value)
The document's translation output if a glossary is provided in the request. This can be the same as [TranslateDocumentResponse.document_translation] if no glossary terms apply.
.google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2;
Name | Description |
value | DocumentTranslation |
Type | Description |
TranslateDocumentResponse.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TranslateDocumentResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
TranslateDocumentResponse.Builder |
setDocumentTranslation(DocumentTranslation value)
public TranslateDocumentResponse.Builder setDocumentTranslation(DocumentTranslation value)
Translated document.
.google.cloud.translation.v3.DocumentTranslation document_translation = 1;
Name | Description |
value | DocumentTranslation |
Type | Description |
TranslateDocumentResponse.Builder |
setDocumentTranslation(DocumentTranslation.Builder builderForValue)
public TranslateDocumentResponse.Builder setDocumentTranslation(DocumentTranslation.Builder builderForValue)
Translated document.
.google.cloud.translation.v3.DocumentTranslation document_translation = 1;
Name | Description |
builderForValue | DocumentTranslation.Builder |
Type | Description |
TranslateDocumentResponse.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public TranslateDocumentResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
TranslateDocumentResponse.Builder |
setGlossaryConfig(TranslateTextGlossaryConfig value)
public TranslateDocumentResponse.Builder setGlossaryConfig(TranslateTextGlossaryConfig value)
The glossary_config
used for this translation.
.google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4;
Name | Description |
value | TranslateTextGlossaryConfig |
Type | Description |
TranslateDocumentResponse.Builder |
setGlossaryConfig(TranslateTextGlossaryConfig.Builder builderForValue)
public TranslateDocumentResponse.Builder setGlossaryConfig(TranslateTextGlossaryConfig.Builder builderForValue)
The glossary_config
used for this translation.
.google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4;
Name | Description |
builderForValue | TranslateTextGlossaryConfig.Builder |
Type | Description |
TranslateDocumentResponse.Builder |
setGlossaryDocumentTranslation(DocumentTranslation value)
public TranslateDocumentResponse.Builder setGlossaryDocumentTranslation(DocumentTranslation value)
The document's translation output if a glossary is provided in the request. This can be the same as [TranslateDocumentResponse.document_translation] if no glossary terms apply.
.google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2;
Name | Description |
value | DocumentTranslation |
Type | Description |
TranslateDocumentResponse.Builder |
setGlossaryDocumentTranslation(DocumentTranslation.Builder builderForValue)
public TranslateDocumentResponse.Builder setGlossaryDocumentTranslation(DocumentTranslation.Builder builderForValue)
The document's translation output if a glossary is provided in the request. This can be the same as [TranslateDocumentResponse.document_translation] if no glossary terms apply.
.google.cloud.translation.v3.DocumentTranslation glossary_document_translation = 2;
Name | Description |
builderForValue | DocumentTranslation.Builder |
Type | Description |
TranslateDocumentResponse.Builder |
setModel(String value)
public TranslateDocumentResponse.Builder setModel(String value)
Only present when 'model' is present in the request.
'model' is normalized to have a project number.
For example:
If the 'model' field in TranslateDocumentRequest is:
projects/{project-id}/locations/{location-id}/models/general/nmt
then
model
here would be normalized to
projects/{project-number}/locations/{location-id}/models/general/nmt
.
string model = 3;
Name | Description |
value | String The model to set. |
Type | Description |
TranslateDocumentResponse.Builder | This builder for chaining. |
setModelBytes(ByteString value)
public TranslateDocumentResponse.Builder setModelBytes(ByteString value)
Only present when 'model' is present in the request.
'model' is normalized to have a project number.
For example:
If the 'model' field in TranslateDocumentRequest is:
projects/{project-id}/locations/{location-id}/models/general/nmt
then
model
here would be normalized to
projects/{project-number}/locations/{location-id}/models/general/nmt
.
string model = 3;
Name | Description |
value | ByteString The bytes for model to set. |
Type | Description |
TranslateDocumentResponse.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TranslateDocumentResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
TranslateDocumentResponse.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final TranslateDocumentResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
TranslateDocumentResponse.Builder |