Class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1InputConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/documentai_v1beta3/classes.rb,
generated/google/apis/documentai_v1beta3/representations.rb,
generated/google/apis/documentai_v1beta3/representations.rb

Overview

The desired input location and metadata.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta1InputConfig

Returns a new instance of GoogleCloudDocumentaiV1beta1InputConfig.



1858
1859
1860
# File 'generated/google/apis/documentai_v1beta3/classes.rb', line 1858

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#gcs_sourceGoogle::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1GcsSource

The Google Cloud Storage location where the input file will be read from. Corresponds to the JSON property gcsSource



1848
1849
1850
# File 'generated/google/apis/documentai_v1beta3/classes.rb', line 1848

def gcs_source
  @gcs_source
end

#mime_typeString

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

Returns:

  • (String)


1856
1857
1858
# File 'generated/google/apis/documentai_v1beta3/classes.rb', line 1856

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1863
1864
1865
1866
# File 'generated/google/apis/documentai_v1beta3/classes.rb', line 1863

def update!(**args)
  @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
  @mime_type = args[:mime_type] if args.key?(:mime_type)
end