public static final class TranslateDocumentRequest.Builder extends GeneratedMessageV3.Builder<TranslateDocumentRequest.Builder> implements TranslateDocumentRequestOrBuilder
A document translation request.
Protobuf type google.cloud.translation.v3.TranslateDocumentRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TranslateDocumentRequest.BuilderImplements
TranslateDocumentRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TranslateDocumentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
TranslateDocumentRequest.Builder |
build()
public TranslateDocumentRequest build()
Returns | |
---|---|
Type | Description |
TranslateDocumentRequest |
buildPartial()
public TranslateDocumentRequest buildPartial()
Returns | |
---|---|
Type | Description |
TranslateDocumentRequest |
clear()
public TranslateDocumentRequest.Builder clear()
Returns | |
---|---|
Type | Description |
TranslateDocumentRequest.Builder |
clearCustomizedAttribution()
public TranslateDocumentRequest.Builder clearCustomizedAttribution()
Optional. This flag is to support user customized attribution.
If not provided, the default is Machine Translated by Google
.
Customized attribution should follow rules in
https://cloud.google.com/translate/attribution#attribution_and_logos
string customized_attribution = 10 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
TranslateDocumentRequest.Builder | This builder for chaining. |
clearDocumentInputConfig()
public TranslateDocumentRequest.Builder clearDocumentInputConfig()
Required. Input configurations.
.google.cloud.translation.v3.DocumentInputConfig document_input_config = 4 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
TranslateDocumentRequest.Builder |
clearDocumentOutputConfig()
public TranslateDocumentRequest.Builder clearDocumentOutputConfig()
Optional. Output configurations. Defines if the output file should be stored within Cloud Storage as well as the desired output format. If not provided the translated file will only be returned through a byte-stream and its output mime type will be the same as the input file's mime type.
.google.cloud.translation.v3.DocumentOutputConfig document_output_config = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
TranslateDocumentRequest.Builder |
clearEnableRotationCorrection()
public TranslateDocumentRequest.Builder clearEnableRotationCorrection()
Optional. If true, enable auto rotation correction in DVS.
bool enable_rotation_correction = 13 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
TranslateDocumentRequest.Builder | This builder for chaining. |
clearEnableShadowRemovalNativePdf()
public TranslateDocumentRequest.Builder clearEnableShadowRemovalNativePdf()
Optional. If true, use the text removal server to remove the shadow text on background image for native pdf translation. Shadow removal feature can only be enabled when is_translate_native_pdf_only: false && pdf_native_only: false
bool enable_shadow_removal_native_pdf = 12 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
TranslateDocumentRequest.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public TranslateDocumentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
TranslateDocumentRequest.Builder |
clearGlossaryConfig()
public TranslateDocumentRequest.Builder clearGlossaryConfig()
Optional. Glossary to be applied. The glossary must be within the same region (have the same location-id) as the model, otherwise an INVALID_ARGUMENT (400) error is returned.
.google.cloud.translation.v3.TranslateTextGlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
TranslateDocumentRequest.Builder |
clearIsTranslateNativePdfOnly()
public TranslateDocumentRequest.Builder clearIsTranslateNativePdfOnly()
Optional. is_translate_native_pdf_only field for external customers. If true, the page limit of online native pdf translation is 300 and only native pdf pages will be translated.
bool is_translate_native_pdf_only = 11 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
TranslateDocumentRequest.Builder | This builder for chaining. |
clearLabels()
public TranslateDocumentRequest.Builder clearLabels()
Returns | |
---|---|
Type | Description |
TranslateDocumentRequest.Builder |
clearModel()
public TranslateDocumentRequest.Builder clearModel()