Package com.google.cloud.translate.v3
Class BatchTranslateDocumentRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.translate.v3.BatchTranslateDocumentRequest
- All Implemented Interfaces:
BatchTranslateDocumentRequestOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class BatchTranslateDocumentRequest
extends com.google.protobuf.GeneratedMessage
implements BatchTranslateDocumentRequestOrBuilder
The BatchTranslateDocument request.Protobuf type
google.cloud.translation.v3.BatchTranslateDocumentRequest- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe BatchTranslateDocument request.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanOptional.booleancontainsGlossaries(String key) Optional.booleancontainsModels(String key) Optional.booleanOptional.com.google.protobuf.ByteStringOptional.static final com.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.intRequired.Required.getInputConfigsOrBuilder(int index) Required.List<? extends BatchDocumentInputConfigOrBuilder>Required.Deprecated.intOptional.Optional.getModelsOrDefault(String key, String defaultValue) Optional.getModelsOrThrow(String key) Optional.Required.Required.Required.com.google.protobuf.ByteStringRequired.com.google.protobuf.Parser<BatchTranslateDocumentRequest>intRequired.com.google.protobuf.ByteStringRequired.getTargetLanguageCodes(int index) Required.com.google.protobuf.ByteStringgetTargetLanguageCodesBytes(int index) Required.intRequired.com.google.protobuf.ProtocolStringListRequired.inthashCode()booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleannewBuilder(BatchTranslateDocumentRequest prototype) protected BatchTranslateDocumentRequest.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<BatchTranslateDocumentRequest>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
PARENT_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER- See Also:
-
SOURCE_LANGUAGE_CODE_FIELD_NUMBER
public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER- See Also:
-
TARGET_LANGUAGE_CODES_FIELD_NUMBER
public static final int TARGET_LANGUAGE_CODES_FIELD_NUMBER- See Also:
-
INPUT_CONFIGS_FIELD_NUMBER
public static final int INPUT_CONFIGS_FIELD_NUMBER- See Also:
-
OUTPUT_CONFIG_FIELD_NUMBER
public static final int OUTPUT_CONFIG_FIELD_NUMBER- See Also:
-
MODELS_FIELD_NUMBER
public static final int MODELS_FIELD_NUMBER- See Also:
-
GLOSSARIES_FIELD_NUMBER
public static final int GLOSSARIES_FIELD_NUMBER- See Also:
-
FORMAT_CONVERSIONS_FIELD_NUMBER
public static final int FORMAT_CONVERSIONS_FIELD_NUMBER- See Also:
-
CUSTOMIZED_ATTRIBUTION_FIELD_NUMBER
public static final int CUSTOMIZED_ATTRIBUTION_FIELD_NUMBER- See Also:
-
ENABLE_SHADOW_REMOVAL_NATIVE_PDF_FIELD_NUMBER
public static final int ENABLE_SHADOW_REMOVAL_NATIVE_PDF_FIELD_NUMBER- See Also:
-
ENABLE_ROTATION_CORRECTION_FIELD_NUMBER
public static final int ENABLE_ROTATION_CORRECTION_FIELD_NUMBER- See Also:
-
-
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
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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.
-
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.
-
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.
-
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
-
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
-
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
-
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
-
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.
-
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
-
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
-
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
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static BatchTranslateDocumentRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BatchTranslateDocumentRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BatchTranslateDocumentRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BatchTranslateDocumentRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BatchTranslateDocumentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BatchTranslateDocumentRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static BatchTranslateDocumentRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static BatchTranslateDocumentRequest parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static BatchTranslateDocumentRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static BatchTranslateDocumentRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static BatchTranslateDocumentRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static BatchTranslateDocumentRequest.Builder newBuilder(BatchTranslateDocumentRequest prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected BatchTranslateDocumentRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-