View Source GoogleApi.DocumentAI.V1beta2.Model.GoogleCloudDocumentaiV1beta1InputConfig (google_api_document_ai v0.39.0)

The desired input location and metadata.

Attributes

  • gcsSource (type: GoogleApi.DocumentAI.V1beta2.Model.GoogleCloudDocumentaiV1beta1GcsSource.t, default: nil) - The Google Cloud Storage location to read the input from. This must be a single file.
  • mimeType (type: String.t, default: nil) - Required. Mimetype of the input. Current supported mimetypes are application/pdf, image/tiff, and image/gif. In addition, application/json type is supported for requests with ProcessDocumentRequest.automl_params field set. The JSON file needs to be in Document format.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.DocumentAI.V1beta2.Model.GoogleCloudDocumentaiV1beta1InputConfig{
    gcsSource:
      GoogleApi.DocumentAI.V1beta2.Model.GoogleCloudDocumentaiV1beta1GcsSource.t()
      | nil,
    mimeType: String.t() | nil
  }

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.