public static final class TranslateDocumentResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TranslateDocumentResponse.Builder> implements TranslateDocumentResponseOrBuilder
A translated document response message.Protobuf type
google.cloud.translation.v3.TranslateDocumentResponse| Modifier and Type | Method and Description |
|---|---|
TranslateDocumentResponse.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TranslateDocumentResponse |
build() |
TranslateDocumentResponse |
buildPartial() |
TranslateDocumentResponse.Builder |
clear() |
TranslateDocumentResponse.Builder |
clearDocumentTranslation()
Translated document.
|
TranslateDocumentResponse.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TranslateDocumentResponse.Builder |
clearGlossaryConfig()
The `glossary_config` used for this translation.
|
TranslateDocumentResponse.Builder |
clearGlossaryDocumentTranslation()
The document's translation output if a glossary is provided in the request.
|
TranslateDocumentResponse.Builder |
clearModel()
Only present when 'model' is present in the request.
|
TranslateDocumentResponse.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TranslateDocumentResponse.Builder |
clone() |
TranslateDocumentResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
DocumentTranslation |
getDocumentTranslation()
Translated document.
|
DocumentTranslation.Builder |
getDocumentTranslationBuilder()
Translated document.
|
DocumentTranslationOrBuilder |
getDocumentTranslationOrBuilder()
Translated document.
|
TranslateTextGlossaryConfig |
getGlossaryConfig()
The `glossary_config` used for this translation.
|
TranslateTextGlossaryConfig.Builder |
getGlossaryConfigBuilder()
The `glossary_config` used for this translation.
|
TranslateTextGlossaryConfigOrBuilder |
getGlossaryConfigOrBuilder()
The `glossary_config` used for this translation.
|
DocumentTranslation |
getGlossaryDocumentTranslation()
The document's translation output if a glossary is provided in the request.
|
DocumentTranslation.Builder |
getGlossaryDocumentTranslationBuilder()
The document's translation output if a glossary is provided in the request.
|
DocumentTranslationOrBuilder |
getGlossaryDocumentTranslationOrBuilder()
The document's translation output if a glossary is provided in the request.
|
String |
getModel()
Only present when 'model' is present in the request.
|
com.google.protobuf.ByteString |
getModelBytes()
Only present when 'model' is present in the request.
|
boolean |
hasDocumentTranslation()
Translated document.
|
boolean |
hasGlossaryConfig()
The `glossary_config` used for this translation.
|
boolean |
hasGlossaryDocumentTranslation()
The document's translation output if a glossary is provided in the request.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TranslateDocumentResponse.Builder |
mergeDocumentTranslation(DocumentTranslation value)
Translated document.
|
TranslateDocumentResponse.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TranslateDocumentResponse.Builder |
mergeFrom(com.google.protobuf.Message other) |
TranslateDocumentResponse.Builder |
mergeFrom(TranslateDocumentResponse other) |
TranslateDocumentResponse.Builder |
mergeGlossaryConfig(TranslateTextGlossaryConfig value)
The `glossary_config` used for this translation.
|
TranslateDocumentResponse.Builder |
mergeGlossaryDocumentTranslation(DocumentTranslation value)
The document's translation output if a glossary is provided in the request.
|
TranslateDocumentResponse.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TranslateDocumentResponse.Builder |
setDocumentTranslation(DocumentTranslation.Builder builderForValue)
Translated document.
|
TranslateDocumentResponse.Builder |
setDocumentTranslation(DocumentTranslation value)
Translated document.
|
TranslateDocumentResponse.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TranslateDocumentResponse.Builder |
setGlossaryConfig(TranslateTextGlossaryConfig.Builder builderForValue)
The `glossary_config` used for this translation.
|
TranslateDocumentResponse.Builder |
setGlossaryConfig(TranslateTextGlossaryConfig value)
The `glossary_config` used for this translation.
|
TranslateDocumentResponse.Builder |
setGlossaryDocumentTranslation(DocumentTranslation.Builder builderForValue)
The document's translation output if a glossary is provided in the request.
|
TranslateDocumentResponse.Builder |
setGlossaryDocumentTranslation(DocumentTranslation value)
The document's translation output if a glossary is provided in the request.
|
TranslateDocumentResponse.Builder |
setModel(String value)
Only present when 'model' is present in the request.
|
TranslateDocumentResponse.Builder |
setModelBytes(com.google.protobuf.ByteString value)
Only present when 'model' is present in the request.
|
TranslateDocumentResponse.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TranslateDocumentResponse.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TranslateDocumentResponse.Builder>public TranslateDocumentResponse.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TranslateDocumentResponse.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TranslateDocumentResponse.Builder>public TranslateDocumentResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TranslateDocumentResponse build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TranslateDocumentResponse buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TranslateDocumentResponse.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TranslateDocumentResponse.Builder>public TranslateDocumentResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<TranslateDocumentResponse.Builder>public TranslateDocumentResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TranslateDocumentResponse.Builder>public TranslateDocumentResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TranslateDocumentResponse.Builder>public TranslateDocumentResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TranslateDocumentResponse.Builder>public TranslateDocumentResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TranslateDocumentResponse.Builder>public TranslateDocumentResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TranslateDocumentResponse.Builder>public TranslateDocumentResponse.Builder mergeFrom(TranslateDocumentResponse other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TranslateDocumentResponse.Builder>public TranslateDocumentResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TranslateDocumentResponse.Builder>IOExceptionpublic boolean hasDocumentTranslation()
Translated document.
.google.cloud.translation.v3.DocumentTranslation document_translation = 1;hasDocumentTranslation in interface TranslateDocumentResponseOrBuilderpublic DocumentTranslation getDocumentTranslation()
Translated document.
.google.cloud.translation.v3.DocumentTranslation document_translation = 1;getDocumentTranslation in interface TranslateDocumentResponseOrBuilderpublic TranslateDocumentResponse.Builder setDocumentTranslation(DocumentTranslation value)
Translated document.
.google.cloud.translation.v3.DocumentTranslation document_translation = 1;public TranslateDocumentResponse.Builder setDocumentTranslation(DocumentTranslation.Builder builderForValue)
Translated document.
.google.cloud.translation.v3.DocumentTranslation document_translation = 1;public TranslateDocumentResponse.Builder mergeDocumentTranslation(DocumentTranslation value)
Translated document.
.google.cloud.translation.v3.DocumentTranslation document_translation = 1;public TranslateDocumentResponse.Builder clearDocumentTranslation()
Translated document.
.google.cloud.translation.v3.DocumentTranslation document_translation = 1;public DocumentTranslation.Builder getDocumentTranslationBuilder()
Translated document.
.google.cloud.translation.v3.DocumentTranslation document_translation = 1;public DocumentTranslationOrBuilder getDocumentTranslationOrBuilder()
Translated document.
.google.cloud.translation.v3.DocumentTranslation document_translation = 1;getDocumentTranslationOrBuilder in interface TranslateDocumentResponseOrBuilderpublic 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;
hasGlossaryDocumentTranslation in interface TranslateDocumentResponseOrBuilderpublic 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;
getGlossaryDocumentTranslation in interface TranslateDocumentResponseOrBuilderpublic 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;
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;
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;
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;
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;
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;
getGlossaryDocumentTranslationOrBuilder in interface TranslateDocumentResponseOrBuilderpublic 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;getModel in interface TranslateDocumentResponseOrBuilderpublic com.google.protobuf.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;getModelBytes in interface TranslateDocumentResponseOrBuilderpublic 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;value - The model to set.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;public TranslateDocumentResponse.Builder setModelBytes(com.google.protobuf.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;value - The bytes for model to set.public boolean hasGlossaryConfig()
The `glossary_config` used for this translation.
.google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4;hasGlossaryConfig in interface TranslateDocumentResponseOrBuilderpublic TranslateTextGlossaryConfig getGlossaryConfig()
The `glossary_config` used for this translation.
.google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4;getGlossaryConfig in interface TranslateDocumentResponseOrBuilderpublic TranslateDocumentResponse.Builder setGlossaryConfig(TranslateTextGlossaryConfig value)
The `glossary_config` used for this translation.
.google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4;public TranslateDocumentResponse.Builder setGlossaryConfig(TranslateTextGlossaryConfig.Builder builderForValue)
The `glossary_config` used for this translation.
.google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4;public TranslateDocumentResponse.Builder mergeGlossaryConfig(TranslateTextGlossaryConfig value)
The `glossary_config` used for this translation.
.google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4;public TranslateDocumentResponse.Builder clearGlossaryConfig()
The `glossary_config` used for this translation.
.google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4;public TranslateTextGlossaryConfig.Builder getGlossaryConfigBuilder()
The `glossary_config` used for this translation.
.google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4;public TranslateTextGlossaryConfigOrBuilder getGlossaryConfigOrBuilder()
The `glossary_config` used for this translation.
.google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 4;getGlossaryConfigOrBuilder in interface TranslateDocumentResponseOrBuilderpublic final TranslateDocumentResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TranslateDocumentResponse.Builder>public final TranslateDocumentResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TranslateDocumentResponse.Builder>Copyright © 2022 Google LLC. All rights reserved.