Class: Google::Cloud::Translate::V3::DocumentInputConfig

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/translate/v3/translation_service.rb

Overview

A document translation request input config.

Instance Attribute Summary collapse

Instance Attribute Details

#content::String

Returns Document's content represented as a stream of bytes.

Returns:

  • (::String)

    Document's content represented as a stream of bytes.



531
532
533
534
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 531

class DocumentInputConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#gcs_source::Google::Cloud::Translate::V3::GcsSource

Returns Google Cloud Storage location. This must be a single file. For example: gs://example_bucket/example_file.pdf.

Returns:



531
532
533
534
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 531

class DocumentInputConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#mime_type::String

Returns 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


531
532
533
534
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 531

class DocumentInputConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end