class Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2InputConfig

The desired input location and metadata.

Attributes

contents[RW]

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. Corresponds to the JSON property `contents` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [String]

gcs_source[RW]

The Google Cloud Storage location where the input file will be read from. Corresponds to the JSON property `gcsSource` @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2GcsSource]

mime_type[RW]

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. Corresponds to the JSON property `mimeType` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/documentai_v1beta3/classes.rb, line 4355
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/documentai_v1beta3/classes.rb, line 4360
def update!(**args)
  @contents = args[:contents] if args.key?(:contents)
  @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
  @mime_type = args[:mime_type] if args.key?(:mime_type)
end