Reference documentation and code samples for the Cloud Translation V3 API class Google::Cloud::Translate::V3::DocumentInputConfig.
A document translation request input config.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#content
def content() -> ::String
- (::String) — Document's content represented as a stream of bytes.
#content=
def content=(value) -> ::String
- value (::String) — Document's content represented as a stream of bytes.
- (::String) — Document's content represented as a stream of bytes.
#gcs_source
def gcs_source() -> ::Google::Cloud::Translate::V3::GcsSource
- (::Google::Cloud::Translate::V3::GcsSource) — Google Cloud Storage location. This must be a single file. For example: gs://example_bucket/example_file.pdf
#gcs_source=
def gcs_source=(value) -> ::Google::Cloud::Translate::V3::GcsSource
- value (::Google::Cloud::Translate::V3::GcsSource) — Google Cloud Storage location. This must be a single file. For example: gs://example_bucket/example_file.pdf
- (::Google::Cloud::Translate::V3::GcsSource) — Google Cloud Storage location. This must be a single file. For example: gs://example_bucket/example_file.pdf
#mime_type
def mime_type() -> ::String
-
(::String) —
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
#mime_type=
def mime_type=(value) -> ::String
-
value (::String) —
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
-
(::String) —
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