Class DocumentInputConfig

A document translation request input config.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes
NameDescription
bytescontent
Document's content represented as a stream of bytes. This field is a member of `oneof`_ ``source``.
google.cloud.translate_v3.types.GcsSourcegcs_source
Google Cloud Storage location. This must be a single file. For example: gs://example_bucket/example_file.pdf This field is a member of `oneof`_ ``source``.
strmime_type
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

Inheritance

builtins.object > proto.message.Message > DocumentInputConfig