Send feedback
Class DocumentInputConfig (3.5.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.5.0 keyboard_arrow_down
DocumentInputConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)
A document translation request input config.
Attributes Name Description content
bytes
Document's content represented as a stream of
bytes.
gcs_source
google.cloud.translate_v3beta1.types.GcsSource
Google Cloud Storage location. This must be a single file.
For example: gs://example_bucket/example_file.pdf
mime_type
str
Specifies the input document's mime_type.
If not specified it will be determined using the file
extension for gcs_source provided files. For a file provided
through bytes content the mime_type must be provided.
Currently supported mime types are:
- application/pdf
- application/vnd.openxmlformats-officedocument.wordprocessingml.document
- application/vnd.openxmlformats-officedocument.presentationml.presentation
- application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-30 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{
"lastModified": "Last updated 2024-08-30 UTC.",
"confidential": False
}