Class BatchTranslateDocumentRequest
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest
-
- All Implemented Interfaces:
BatchTranslateDocumentRequestOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class BatchTranslateDocumentRequest extends com.google.protobuf.GeneratedMessageV3 implements BatchTranslateDocumentRequestOrBuilder
The BatchTranslateDocument request.
Protobuf typegoogle.cloud.translation.v3beta1.BatchTranslateDocumentRequest- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBatchTranslateDocumentRequest.BuilderThe BatchTranslateDocument request.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCUSTOMIZED_ATTRIBUTION_FIELD_NUMBERstatic intENABLE_ROTATION_CORRECTION_FIELD_NUMBERstatic intENABLE_SHADOW_REMOVAL_NATIVE_PDF_FIELD_NUMBERstatic intFORMAT_CONVERSIONS_FIELD_NUMBERstatic intGLOSSARIES_FIELD_NUMBERstatic intINPUT_CONFIGS_FIELD_NUMBERstatic intMODELS_FIELD_NUMBERstatic intOUTPUT_CONFIG_FIELD_NUMBERstatic intPARENT_FIELD_NUMBERstatic intSOURCE_LANGUAGE_CODE_FIELD_NUMBERstatic intTARGET_LANGUAGE_CODES_FIELD_NUMBER
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
PARENT_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_LANGUAGE_CODE_FIELD_NUMBER
public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TARGET_LANGUAGE_CODES_FIELD_NUMBER
public static final int TARGET_LANGUAGE_CODES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INPUT_CONFIGS_FIELD_NUMBER
public static final int INPUT_CONFIGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OUTPUT_CONFIG_FIELD_NUMBER
public static final int OUTPUT_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MODELS_FIELD_NUMBER
public static final int MODELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GLOSSARIES_FIELD_NUMBER
public static final int GLOSSARIES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FORMAT_CONVERSIONS_FIELD_NUMBER
public static final int FORMAT_CONVERSIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CUSTOMIZED_ATTRIBUTION_FIELD_NUMBER
public static final int CUSTOMIZED_ATTRIBUTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENABLE_SHADOW_REMOVAL_NATIVE_PDF_FIELD_NUMBER
public static final int ENABLE_SHADOW_REMOVAL_NATIVE_PDF_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENABLE_ROTATION_CORRECTION_FIELD_NUMBER
public static final int ENABLE_ROTATION_CORRECTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getParent
public String 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
public String getSourceLanguageCode()
Required. The BCP-47 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 BCP-47 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 BCP-47 language code to use for translation of the input document. Specify up to 10 language codes here.
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 BCP-47 language code to use for translation of the input document. Specify up to 10 language codes here.
repeated string target_language_codes = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTargetLanguageCodesCountin interfaceBatchTranslateDocumentRequestOrBuilder- Returns:
- The count of targetLanguageCodes.
-
getTargetLanguageCodes
public String getTargetLanguageCodes(int index)
Required. The BCP-47 language code to use for translation of the input document. Specify up to 10 language codes here.
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 BCP-47 language code to use for translation of the input document. Specify up to 10 language codes here.
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
public List<BatchDocumentInputConfig> 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.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getInputConfigsListin interfaceBatchTranslateDocumentRequestOrBuilder
-
getInputConfigsOrBuilderList
public List<? extends BatchDocumentInputConfigOrBuilder> 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.v3beta1.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.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getInputConfigsCountin interfaceBatchTranslateDocumentRequestOrBuilder
-
getInputConfigs
public BatchDocumentInputConfig getInputConfigs(int index)
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.v3beta1.BatchDocumentInputConfig input_configs = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getInputConfigsin interfaceBatchTranslateDocumentRequestOrBuilder
-
getInputConfigsOrBuilder
public BatchDocumentInputConfigOrBuilder getInputConfigsOrBuilder(int index)
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.v3beta1.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.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasOutputConfigin interfaceBatchTranslateDocumentRequestOrBuilder- Returns:
- Whether the outputConfig field is set.
-
getOutputConfig
public BatchDocumentOutputConfig 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.v3beta1.BatchDocumentOutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getOutputConfigin interfaceBatchTranslateDocumentRequestOrBuilder- Returns:
- The outputConfig.
-
getOutputConfigOrBuilder
public BatchDocumentOutputConfigOrBuilder 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.v3beta1.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
public boolean containsModels(String key)
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 public Map<String,String> getModels()
Deprecated.UsegetModelsMap()instead.- Specified by:
getModelsin interfaceBatchTranslateDocumentRequestOrBuilder
-
getModelsMap
public Map<String,String> 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
public String getModelsOrDefault(String key, String defaultValue)
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
public String getModelsOrThrow(String key)
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.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getGlossariesCountin interfaceBatchTranslateDocumentRequestOrBuilder
-
containsGlossaries
public boolean containsGlossaries(String key)
Optional. Glossaries to be applied. It's keyed by target language code.
map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsGlossariesin interfaceBatchTranslateDocumentRequestOrBuilder
-
getGlossaries
@Deprecated public Map<String,TranslateTextGlossaryConfig> getGlossaries()
Deprecated.UsegetGlossariesMap()instead.- Specified by:
getGlossariesin interfaceBatchTranslateDocumentRequestOrBuilder
-
getGlossariesMap
public Map<String,TranslateTextGlossaryConfig> getGlossariesMap()
Optional. Glossaries to be applied. It's keyed by target language code.
map<string, .google.cloud.translation.v3beta1.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.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getGlossariesOrDefaultin interfaceBatchTranslateDocumentRequestOrBuilder
-
getGlossariesOrThrow
public TranslateTextGlossaryConfig getGlossariesOrThrow(String key)
Optional. Glossaries to be applied. It's keyed by target language code.
map<string, .google.cloud.translation.v3beta1.TranslateTextGlossaryConfig> glossaries = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getGlossariesOrThrowin interfaceBatchTranslateDocumentRequestOrBuilder
-
getFormatConversionsCount
public int getFormatConversionsCount()
Description copied from interface:BatchTranslateDocumentRequestOrBuilderOptional. File format conversion map to be applied to all input files. Map's key is the original mime_type. Map's 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
public boolean containsFormatConversions(String key)
Optional. File format conversion map to be applied to all input files. Map's key is the original mime_type. Map's 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 public Map<String,String> getFormatConversions()
Deprecated.UsegetFormatConversionsMap()instead.- Specified by:
getFormatConversionsin interfaceBatchTranslateDocumentRequestOrBuilder
-
getFormatConversionsMap
public Map<String,String> getFormatConversionsMap()
Optional. File format conversion map to be applied to all input files. Map's key is the original mime_type. Map's 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
public String getFormatConversionsOrDefault(String key, String defaultValue)
Optional. File format conversion map to be applied to all input files. Map's key is the original mime_type. Map's 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
public String getFormatConversionsOrThrow(String key)
Optional. File format conversion map to be applied to all input files. Map's key is the original mime_type. Map's 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
public String 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.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- 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
public static BatchTranslateDocumentRequest parseFrom(InputStream input) throws IOException
- 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
public BatchTranslateDocumentRequest.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static BatchTranslateDocumentRequest.Builder newBuilder()
-
newBuilder
public static BatchTranslateDocumentRequest.Builder newBuilder(BatchTranslateDocumentRequest prototype)
-
toBuilder
public BatchTranslateDocumentRequest.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected BatchTranslateDocumentRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static BatchTranslateDocumentRequest getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<BatchTranslateDocumentRequest> parser()
-
getParserForType
public com.google.protobuf.Parser<BatchTranslateDocumentRequest> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public BatchTranslateDocumentRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-