Class InputConfig (0.5.1)

InputConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The desired input location and metadata. .. attribute:: gcs_source

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

:type: google.cloud.documentai_v1beta2.types.GcsSource

Attributes

NameDescription
contents bytes
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 ProcessDocument method.
mime_type str
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.

Inheritance

builtins.object > proto.message.Message > InputConfig