GoogleApi.Translate.V3.Model.DocumentInputConfig (google_api_translate v0.13.0) View Source

A document translation request input config.

Attributes

  • content (type: String.t, default: nil) - Document's content represented as a stream of bytes.
  • gcsSource (type: GoogleApi.Translate.V3.Model.GcsSource.t, default: nil) - Google Cloud Storage location. This must be a single file. For example: gs://example_bucket/example_file.pdf
  • mimeType (type: String.t, default: nil) - 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

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.Translate.V3.Model.DocumentInputConfig{
  content: String.t() | nil,
  gcsSource: GoogleApi.Translate.V3.Model.GcsSource.t() | nil,
  mimeType: String.t() | nil
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.