Cloud Translation V3 API - Class Google::Cloud::Translate::V3::DocumentInputConfig (v0.11.2)

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
Returns
  • (::String) — Document's content represented as a stream of bytes.

#content=

def content=(value) -> ::String
Parameter
  • value (::String) — Document's content represented as a stream of bytes.
Returns
  • (::String) — Document's content represented as a stream of bytes.

#gcs_source

def gcs_source() -> ::Google::Cloud::Translate::V3::GcsSource
Returns

#gcs_source=

def gcs_source=(value) -> ::Google::Cloud::Translate::V3::GcsSource
Parameter
Returns

#mime_type

def mime_type() -> ::String
Returns
  • (::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
Parameter
  • 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
Returns
  • (::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