Package com.google.cloud.translate.v3
Class BatchTranslateDocumentRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BatchTranslateDocumentRequest.Builder>
com.google.cloud.translate.v3.BatchTranslateDocumentRequest.Builder
- All Implemented Interfaces:
BatchTranslateDocumentRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BatchTranslateDocumentRequest
public static final class BatchTranslateDocumentRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<BatchTranslateDocumentRequest.Builder>
implements BatchTranslateDocumentRequestOrBuilder
The BatchTranslateDocument request.Protobuf type
google.cloud.translation.v3.BatchTranslateDocumentRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllInputConfigs(Iterable<? extends BatchDocumentInputConfig> values) Required.addAllTargetLanguageCodes(Iterable<String> values) Required.addInputConfigs(int index, BatchDocumentInputConfig value) Required.addInputConfigs(int index, BatchDocumentInputConfig.Builder builderForValue) Required.Required.addInputConfigs(BatchDocumentInputConfig.Builder builderForValue) Required.Required.addInputConfigsBuilder(int index) Required.addTargetLanguageCodes(String value) Required.addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) Required.build()clear()Optional.Optional.Optional.Required.Required.Required.Required.Required.booleanOptional.booleancontainsGlossaries(String key) Optional.booleancontainsModels(String key) Optional.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanOptional.booleanOptional.Deprecated.intOptional.Optional.getFormatConversionsOrDefault(String key, String defaultValue) Optional.Optional.Deprecated.intOptional.Optional.getGlossariesOrDefault(String key, TranslateTextGlossaryConfig defaultValue) Optional.Optional.getInputConfigs(int index) Required.getInputConfigsBuilder(int index) Required.Required.intRequired.Required.getInputConfigsOrBuilder(int index) Required.List<? extends BatchDocumentInputConfigOrBuilder>Required.Deprecated.intOptional.Optional.getModelsOrDefault(String key, String defaultValue) Optional.getModelsOrThrow(String key) Optional.Deprecated.Deprecated.Deprecated.Required.Required.Required.Required.com.google.protobuf.ByteStringRequired.Required.com.google.protobuf.ByteStringRequired.getTargetLanguageCodes(int index) Required.com.google.protobuf.ByteStringgetTargetLanguageCodesBytes(int index) Required.intRequired.com.google.protobuf.ProtocolStringListRequired.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Required.putAllFormatConversions(Map<String, String> values) Optional.Optional.putAllModels(Map<String, String> values) Optional.putFormatConversions(String key, String value) Optional.putGlossaries(String key, TranslateTextGlossaryConfig value) Optional.Optional.Optional.Optional.removeGlossaries(String key) Optional.removeInputConfigs(int index) Required.removeModels(String key) Optional.setCustomizedAttribution(String value) Optional.setCustomizedAttributionBytes(com.google.protobuf.ByteString value) Optional.setEnableRotationCorrection(boolean value) Optional.setEnableShadowRemovalNativePdf(boolean value) Optional.setInputConfigs(int index, BatchDocumentInputConfig value) Required.setInputConfigs(int index, BatchDocumentInputConfig.Builder builderForValue) Required.Required.setOutputConfig(BatchDocumentOutputConfig.Builder builderForValue) Required.Required.setParentBytes(com.google.protobuf.ByteString value) Required.setSourceLanguageCode(String value) Required.setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) Required.setTargetLanguageCodes(int index, String value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<BatchTranslateDocumentRequest.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<BatchTranslateDocumentRequest.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<BatchTranslateDocumentRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<BatchTranslateDocumentRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<BatchTranslateDocumentRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchTranslateDocumentRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<BatchTranslateDocumentRequest.Builder>
-
mergeFrom
public BatchTranslateDocumentRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchTranslateDocumentRequest.Builder>- Throws:
IOException
-
getParent
Required. Location to make a regional call. Format: `projects/{project-number-or-id}/locations/{location-id}`. The `global` location is not supported for batch translation. Only AutoML Translation models or glossaries within the same region (have the same location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned.string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentin interfaceBatchTranslateDocumentRequestOrBuilder- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()Required. Location to make a regional call. Format: `projects/{project-number-or-id}/locations/{location-id}`. The `global` location is not supported for batch translation. Only AutoML Translation models or glossaries within the same region (have the same location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned.string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentBytesin interfaceBatchTranslateDocumentRequestOrBuilder- Returns:
- The bytes for parent.
-
setParent
Required. Location to make a regional call. Format: `projects/{project-number-or-id}/locations/{location-id}`. The `global` location is not supported for batch translation. Only AutoML Translation models or glossaries within the same region (have the same location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned.string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
Required. Location to make a regional call. Format: `projects/{project-number-or-id}/locations/{location-id}`. The `global` location is not supported for batch translation. Only AutoML Translation models or glossaries within the same region (have the same location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned.string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setParentBytes
Required. Location to make a regional call. Format: `projects/{project-number-or-id}/locations/{location-id}`. The `global` location is not supported for batch translation. Only AutoML Translation models or glossaries within the same region (have the same location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned.string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for parent to set.- Returns:
- This builder for chaining.
-
getSourceLanguageCode
Required. The ISO-639 language code of the input document if known, for example, "en-US" or "sr-Latn". Supported language codes are listed in [Language Support](https://cloud.google.com/translate/docs/languages).
string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSourceLanguageCodein interfaceBatchTranslateDocumentRequestOrBuilder- Returns:
- The sourceLanguageCode.
-
getSourceLanguageCodeBytes
public com.google.protobuf.ByteString getSourceLanguageCodeBytes()Required. The ISO-639 language code of the input document if known, for example, "en-US" or "sr-Latn". Supported language codes are listed in [Language Support](https://cloud.google.com/translate/docs/languages).
string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSourceLanguageCodeBytesin interfaceBatchTranslateDocumentRequestOrBuilder- Returns:
- The bytes for sourceLanguageCode.
-
setSourceLanguageCode
Required. The ISO-639 language code of the input document if known, for example, "en-US" or "sr-Latn". Supported language codes are listed in [Language Support](https://cloud.google.com/translate/docs/languages).
string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The sourceLanguageCode to set.- Returns:
- This builder for chaining.
-
clearSourceLanguageCode
Required. The ISO-639 language code of the input document if known, for example, "en-US" or "sr-Latn". Supported language codes are listed in [Language Support](https://cloud.google.com/translate/docs/languages).
string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setSourceLanguageCodeBytes
public BatchTranslateDocumentRequest.Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) Required. The ISO-639 language code of the input document if known, for example, "en-US" or "sr-Latn". Supported language codes are listed in [Language Support](https://cloud.google.com/translate/docs/languages).
string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for sourceLanguageCode to set.- Returns:
- This builder for chaining.
-
getTargetLanguageCodesList
public com.google.protobuf.ProtocolStringList getTargetLanguageCodesList()Required. The ISO-639 language code to use for translation of the input document. Specify up to 10 language codes here. Supported language codes are listed in [Language Support](https://cloud.google.com/translate/docs/languages).
repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTargetLanguageCodesListin interfaceBatchTranslateDocumentRequestOrBuilder- Returns:
- A list containing the targetLanguageCodes.
-
getTargetLanguageCodesCount
public int getTargetLanguageCodesCount()Required. The ISO-639 language code to use for translation of the input document. Specify up to 10 language codes here. Supported language codes are listed in [Language Support](https://cloud.google.com/translate/docs/languages).
repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTargetLanguageCodesCountin interfaceBatchTranslateDocumentRequestOrBuilder- Returns:
- The count of targetLanguageCodes.
-
getTargetLanguageCodes
Required. The ISO-639 language code to use for translation of the input document. Specify up to 10 language codes here. Supported language codes are listed in [Language Support](https://cloud.google.com/translate/docs/languages).
repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTargetLanguageCodesin interfaceBatchTranslateDocumentRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The targetLanguageCodes at the given index.
-
getTargetLanguageCodesBytes
public com.google.protobuf.ByteString getTargetLanguageCodesBytes(int index) Required. The ISO-639 language code to use for translation of the input document. Specify up to 10 language codes here. Supported language codes are listed in [Language Support](https://cloud.google.com/translate/docs/languages).
repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTargetLanguageCodesBytesin interfaceBatchTranslateDocumentRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the targetLanguageCodes at the given index.
-
setTargetLanguageCodes
Required. The ISO-639 language code to use for translation of the input document. Specify up to 10 language codes here. Supported language codes are listed in [Language Support](https://cloud.google.com/translate/docs/languages).
repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
index- The index to set the value at.value- The targetLanguageCodes to set.- Returns:
- This builder for chaining.
-
addTargetLanguageCodes
Required. The ISO-639 language code to use for translation of the input document. Specify up to 10 language codes here. Supported language codes are listed in [Language Support](https://cloud.google.com/translate/docs/languages).
repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The targetLanguageCodes to add.- Returns:
- This builder for chaining.
-
addAllTargetLanguageCodes
Required. The ISO-639 language code to use for translation of the input document. Specify up to 10 language codes here. Supported language codes are listed in [Language Support](https://cloud.google.com/translate/docs/languages).
repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
values- The targetLanguageCodes to add.- Returns:
- This builder for chaining.
-
clearTargetLanguageCodes
Required. The ISO-639 language code to use for translation of the input document. Specify up to 10 language codes here. Supported language codes are listed in [Language Support](https://cloud.google.com/translate/docs/languages).
repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
addTargetLanguageCodesBytes
public BatchTranslateDocumentRequest.Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) Required. The ISO-639 language code to use for translation of the input document. Specify up to 10 language codes here. Supported language codes are listed in [Language Support](https://cloud.google.com/translate/docs/languages).
repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes of the targetLanguageCodes to add.- Returns:
- This builder for chaining.
-
getInputConfigsList
Required. Input configurations. The total number of files matched should be <= 100. The total content size to translate should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getInputConfigsListin interfaceBatchTranslateDocumentRequestOrBuilder
-
getInputConfigsCount
public int getInputConfigsCount()Required. Input configurations. The total number of files matched should be <= 100. The total content size to translate should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getInputConfigsCountin interfaceBatchTranslateDocumentRequestOrBuilder
-
getInputConfigs
Required. Input configurations. The total number of files matched should be <= 100. The total content size to translate should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getInputConfigsin interfaceBatchTranslateDocumentRequestOrBuilder
-
setInputConfigs
public BatchTranslateDocumentRequest.Builder setInputConfigs(int index, BatchDocumentInputConfig value) Required. Input configurations. The total number of files matched should be <= 100. The total content size to translate should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; -
setInputConfigs
public BatchTranslateDocumentRequest.Builder setInputConfigs(int index, BatchDocumentInputConfig.Builder builderForValue) Required. Input configurations. The total number of files matched should be <= 100. The total content size to translate should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; -
addInputConfigs
Required. Input configurations. The total number of files matched should be <= 100. The total content size to translate should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; -
addInputConfigs
public BatchTranslateDocumentRequest.Builder addInputConfigs(int index, BatchDocumentInputConfig value) Required. Input configurations. The total number of files matched should be <= 100. The total content size to translate should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; -
addInputConfigs
public BatchTranslateDocumentRequest.Builder addInputConfigs(BatchDocumentInputConfig.Builder builderForValue) Required. Input configurations. The total number of files matched should be <= 100. The total content size to translate should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; -
addInputConfigs
public BatchTranslateDocumentRequest.Builder addInputConfigs(int index, BatchDocumentInputConfig.Builder builderForValue) Required. Input configurations. The total number of files matched should be <= 100. The total content size to translate should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; -
addAllInputConfigs
public BatchTranslateDocumentRequest.Builder addAllInputConfigs(Iterable<? extends BatchDocumentInputConfig> values) Required. Input configurations. The total number of files matched should be <= 100. The total content size to translate should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; -
clearInputConfigs
Required. Input configurations. The total number of files matched should be <= 100. The total content size to translate should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; -
removeInputConfigs
Required. Input configurations. The total number of files matched should be <= 100. The total content size to translate should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; -
getInputConfigsBuilder
Required. Input configurations. The total number of files matched should be <= 100. The total content size to translate should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; -
getInputConfigsOrBuilder
Required. Input configurations. The total number of files matched should be <= 100. The total content size to translate should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getInputConfigsOrBuilderin interfaceBatchTranslateDocumentRequestOrBuilder
-
getInputConfigsOrBuilderList
Required. Input configurations. The total number of files matched should be <= 100. The total content size to translate should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getInputConfigsOrBuilderListin interfaceBatchTranslateDocumentRequestOrBuilder
-
addInputConfigsBuilder
Required. Input configurations. The total number of files matched should be <= 100. The total content size to translate should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; -
addInputConfigsBuilder
Required. Input configurations. The total number of files matched should be <= 100. The total content size to translate should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; -
getInputConfigsBuilderList
Required. Input configurations. The total number of files matched should be <= 100. The total content size to translate should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
repeated .google.cloud.translation.v3.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED]; -
hasOutputConfig
public boolean hasOutputConfig()Required. Output configuration. If 2 input configs match to the same file (that is, same input path), we don't generate output for duplicate inputs.
.google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasOutputConfigin interfaceBatchTranslateDocumentRequestOrBuilder- Returns:
- Whether the outputConfig field is set.
-
getOutputConfig
Required. Output configuration. If 2 input configs match to the same file (that is, same input path), we don't generate output for duplicate inputs.
.google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getOutputConfigin interfaceBatchTranslateDocumentRequestOrBuilder- Returns:
- The outputConfig.
-
setOutputConfig
Required. Output configuration. If 2 input configs match to the same file (that is, same input path), we don't generate output for duplicate inputs.
.google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; -
setOutputConfig
public BatchTranslateDocumentRequest.Builder setOutputConfig(BatchDocumentOutputConfig.Builder builderForValue) Required. Output configuration. If 2 input configs match to the same file (that is, same input path), we don't generate output for duplicate inputs.
.google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; -
mergeOutputConfig
Required. Output configuration. If 2 input configs match to the same file (that is, same input path), we don't generate output for duplicate inputs.
.google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; -
clearOutputConfig
Required. Output configuration. If 2 input configs match to the same file (that is, same input path), we don't generate output for duplicate inputs.
.google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; -
getOutputConfigBuilder
Required. Output configuration. If 2 input configs match to the same file (that is, same input path), we don't generate output for duplicate inputs.
.google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED]; -
getOutputConfigOrBuilder
Required. Output configuration. If 2 input configs match to the same file (that is, same input path), we don't generate output for duplicate inputs.
.google.cloud.translation.v3.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getOutputConfigOrBuilderin interfaceBatchTranslateDocumentRequestOrBuilder
-
getModelsCount
public int getModelsCount()Description copied from interface:BatchTranslateDocumentRequestOrBuilderOptional. The models to use for translation. Map's key is target language code. Map's value is the model name. Value can be a built-in general model, or an AutoML Translation model. The value format depends on model type: - AutoML Translation models: `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models: `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, If the map is empty or a specific model is not requested for a language pair, then default google model (nmt) is used.map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getModelsCountin interfaceBatchTranslateDocumentRequestOrBuilder
-
containsModels
Optional. The models to use for translation. Map's key is target language code. Map's value is the model name. Value can be a built-in general model, or an AutoML Translation model. The value format depends on model type: - AutoML Translation models: `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models: `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, If the map is empty or a specific model is not requested for a language pair, then default google model (nmt) is used.map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsModelsin interfaceBatchTranslateDocumentRequestOrBuilder
-
getModels
Deprecated.UsegetModelsMap()instead.- Specified by:
getModelsin interfaceBatchTranslateDocumentRequestOrBuilder
-
getModelsMap
Optional. The models to use for translation. Map's key is target language code. Map's value is the model name. Value can be a built-in general model, or an AutoML Translation model. The value format depends on model type: - AutoML Translation models: `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models: `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, If the map is empty or a specific model is not requested for a language pair, then default google model (nmt) is used.map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getModelsMapin interfaceBatchTranslateDocumentRequestOrBuilder
-
getModelsOrDefault
Optional. The models to use for translation. Map's key is target language code. Map's value is the model name. Value can be a built-in general model, or an AutoML Translation model. The value format depends on model type: - AutoML Translation models: `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models: `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, If the map is empty or a specific model is not requested for a language pair, then default google model (nmt) is used.map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getModelsOrDefaultin interfaceBatchTranslateDocumentRequestOrBuilder
-
getModelsOrThrow
Optional. The models to use for translation. Map's key is target language code. Map's value is the model name. Value can be a built-in general model, or an AutoML Translation model. The value format depends on model type: - AutoML Translation models: `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models: `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, If the map is empty or a specific model is not requested for a language pair, then default google model (nmt) is used.map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getModelsOrThrowin interfaceBatchTranslateDocumentRequestOrBuilder
-
clearModels
-
removeModels
Optional. The models to use for translation. Map's key is target language code. Map's value is the model name. Value can be a built-in general model, or an AutoML Translation model. The value format depends on model type: - AutoML Translation models: `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models: `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, If the map is empty or a specific model is not requested for a language pair, then default google model (nmt) is used.map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getMutableModels
Deprecated.Use alternate mutation accessors instead. -
putModels
Optional. The models to use for translation. Map's key is target language code. Map's value is the model name. Value can be a built-in general model, or an AutoML Translation model. The value format depends on model type: - AutoML Translation models: `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models: `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, If the map is empty or a specific model is not requested for a language pair, then default google model (nmt) is used.map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL]; -
putAllModels
Optional. The models to use for translation. Map's key is target language code. Map's value is the model name. Value can be a built-in general model, or an AutoML Translation model. The value format depends on model type: - AutoML Translation models: `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models: `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, If the map is empty or a specific model is not requested for a language pair, then default google model (nmt) is used.map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getGlossariesCount
public int getGlossariesCount()Description copied from interface:BatchTranslateDocumentRequestOrBuilderOptional. Glossaries to be applied. It's keyed by target language code.
map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getGlossariesCountin interfaceBatchTranslateDocumentRequestOrBuilder
-
containsGlossaries
Optional. Glossaries to be applied. It's keyed by target language code.
map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsGlossariesin interfaceBatchTranslateDocumentRequestOrBuilder
-
getGlossaries
Deprecated.UsegetGlossariesMap()instead.- Specified by:
getGlossariesin interfaceBatchTranslateDocumentRequestOrBuilder
-
getGlossariesMap
Optional. Glossaries to be applied. It's keyed by target language code.
map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getGlossariesMapin interfaceBatchTranslateDocumentRequestOrBuilder
-
getGlossariesOrDefault
public TranslateTextGlossaryConfig getGlossariesOrDefault(String key, TranslateTextGlossaryConfig defaultValue) Optional. Glossaries to be applied. It's keyed by target language code.
map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getGlossariesOrDefaultin interfaceBatchTranslateDocumentRequestOrBuilder
-
getGlossariesOrThrow
Optional. Glossaries to be applied. It's keyed by target language code.
map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getGlossariesOrThrowin interfaceBatchTranslateDocumentRequestOrBuilder
-
clearGlossaries
-
removeGlossaries
Optional. Glossaries to be applied. It's keyed by target language code.
map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; -
getMutableGlossaries
Deprecated.Use alternate mutation accessors instead. -
putGlossaries
public BatchTranslateDocumentRequest.Builder putGlossaries(String key, TranslateTextGlossaryConfig value) Optional. Glossaries to be applied. It's keyed by target language code.
map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; -
putAllGlossaries
public BatchTranslateDocumentRequest.Builder putAllGlossaries(Map<String, TranslateTextGlossaryConfig> values) Optional. Glossaries to be applied. It's keyed by target language code.
map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; -
putGlossariesBuilderIfAbsent
Optional. Glossaries to be applied. It's keyed by target language code.
map<string, .google.cloud.translation.v3.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL]; -
getFormatConversionsCount
public int getFormatConversionsCount()Description copied from interface:BatchTranslateDocumentRequestOrBuilderOptional. The file format conversion map that is applied to all input files. The map key is the original mime_type. The map value is the target mime_type of translated documents. Supported file format conversion includes: - `application/pdf` to `application/vnd.openxmlformats-officedocument.wordprocessingml.document` If nothing specified, output files will be in the same format as the original file.
map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFormatConversionsCountin interfaceBatchTranslateDocumentRequestOrBuilder
-
containsFormatConversions
Optional. The file format conversion map that is applied to all input files. The map key is the original mime_type. The map value is the target mime_type of translated documents. Supported file format conversion includes: - `application/pdf` to `application/vnd.openxmlformats-officedocument.wordprocessingml.document` If nothing specified, output files will be in the same format as the original file.
map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsFormatConversionsin interfaceBatchTranslateDocumentRequestOrBuilder
-
getFormatConversions
Deprecated.UsegetFormatConversionsMap()instead.- Specified by:
getFormatConversionsin interfaceBatchTranslateDocumentRequestOrBuilder
-
getFormatConversionsMap
Optional. The file format conversion map that is applied to all input files. The map key is the original mime_type. The map value is the target mime_type of translated documents. Supported file format conversion includes: - `application/pdf` to `application/vnd.openxmlformats-officedocument.wordprocessingml.document` If nothing specified, output files will be in the same format as the original file.
map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFormatConversionsMapin interfaceBatchTranslateDocumentRequestOrBuilder
-
getFormatConversionsOrDefault
Optional. The file format conversion map that is applied to all input files. The map key is the original mime_type. The map value is the target mime_type of translated documents. Supported file format conversion includes: - `application/pdf` to `application/vnd.openxmlformats-officedocument.wordprocessingml.document` If nothing specified, output files will be in the same format as the original file.
map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFormatConversionsOrDefaultin interfaceBatchTranslateDocumentRequestOrBuilder
-
getFormatConversionsOrThrow
Optional. The file format conversion map that is applied to all input files. The map key is the original mime_type. The map value is the target mime_type of translated documents. Supported file format conversion includes: - `application/pdf` to `application/vnd.openxmlformats-officedocument.wordprocessingml.document` If nothing specified, output files will be in the same format as the original file.
map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFormatConversionsOrThrowin interfaceBatchTranslateDocumentRequestOrBuilder
-
clearFormatConversions
-
removeFormatConversions
Optional. The file format conversion map that is applied to all input files. The map key is the original mime_type. The map value is the target mime_type of translated documents. Supported file format conversion includes: - `application/pdf` to `application/vnd.openxmlformats-officedocument.wordprocessingml.document` If nothing specified, output files will be in the same format as the original file.
map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; -
getMutableFormatConversions
Deprecated.Use alternate mutation accessors instead. -
putFormatConversions
Optional. The file format conversion map that is applied to all input files. The map key is the original mime_type. The map value is the target mime_type of translated documents. Supported file format conversion includes: - `application/pdf` to `application/vnd.openxmlformats-officedocument.wordprocessingml.document` If nothing specified, output files will be in the same format as the original file.
map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; -
putAllFormatConversions
Optional. The file format conversion map that is applied to all input files. The map key is the original mime_type. The map value is the target mime_type of translated documents. Supported file format conversion includes: - `application/pdf` to `application/vnd.openxmlformats-officedocument.wordprocessingml.document` If nothing specified, output files will be in the same format as the original file.
map<string, string> format_conversions = 8 [(.google.api.field_behavior) = OPTIONAL]; -
getCustomizedAttribution
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];- Specified by:
getCustomizedAttributionin interfaceBatchTranslateDocumentRequestOrBuilder- Returns:
- The customizedAttribution.
-
getCustomizedAttributionBytes
public com.google.protobuf.ByteString getCustomizedAttributionBytes()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];- Specified by:
getCustomizedAttributionBytesin interfaceBatchTranslateDocumentRequestOrBuilder- Returns:
- The bytes for customizedAttribution.
-
setCustomizedAttribution
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];- Parameters:
value- The customizedAttribution to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setCustomizedAttributionBytes
public BatchTranslateDocumentRequest.Builder setCustomizedAttributionBytes(com.google.protobuf.ByteString value) 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];- Parameters:
value- The bytes for customizedAttribution to set.- Returns:
- This builder for chaining.
-
getEnableShadowRemovalNativePdf
public boolean getEnableShadowRemovalNativePdf()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 = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEnableShadowRemovalNativePdfin interfaceBatchTranslateDocumentRequestOrBuilder- Returns:
- The enableShadowRemovalNativePdf.
-
setEnableShadowRemovalNativePdf
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 = 11 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enableShadowRemovalNativePdf to set.- Returns:
- This builder for chaining.
-
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 = 11 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getEnableRotationCorrection
public boolean getEnableRotationCorrection()Optional. If true, enable auto rotation correction in DVS.
bool enable_rotation_correction = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEnableRotationCorrectionin interfaceBatchTranslateDocumentRequestOrBuilder- Returns:
- The enableRotationCorrection.
-
setEnableRotationCorrection
Optional. If true, enable auto rotation correction in DVS.
bool enable_rotation_correction = 12 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enableRotationCorrection to set.- Returns:
- This builder for chaining.
-
clearEnableRotationCorrection
Optional. If true, enable auto rotation correction in DVS.
bool enable_rotation_correction = 12 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-