InputConfig

The desired input location and metadata.

JSON representation
{
  "mimeType": string,

  // Union field source can be only one of the following:
  "gcsSource": {
    object (GcsSource)
  },
  "contents": string
  // End of list of possible types for union field source.
}
Fields
mimeType

string

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.

Union field source. Required. source can be only one of the following:
gcsSource

object (GcsSource)

The Google Cloud Storage location to read the input from. This must be a single file.

contents

string (bytes format)

Content in bytes, represented as a stream of bytes. Note: As with all bytes fields, proto buffer messages use a pure binary representation, whereas JSON representations use base64.

This field only works for synchronous documents.process method.

A base64-encoded string.

GcsSource

The Google Cloud Storage location where the input file will be read from.

JSON representation
{
  "uri": string
}
Fields
uri

string