Class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2InputConfig

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) ⇒ GoogleCloudDocumentaiV1beta2InputConfig

Returns a new instance of GoogleCloudDocumentaiV1beta2InputConfig.



3600
3601
3602
# File 'generated/google/apis/documentai_v1beta3/classes.rb', line 3600

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

Instance Attribute Details

#contentsString

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.

Returns:

  • (String)


3585
3586
3587
# File 'generated/google/apis/documentai_v1beta3/classes.rb', line 3585

def contents
  @contents
end

#gcs_sourceGoogle::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2GcsSource

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



3590
3591
3592
# File 'generated/google/apis/documentai_v1beta3/classes.rb', line 3590

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)


3598
3599
3600
# File 'generated/google/apis/documentai_v1beta3/classes.rb', line 3598

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3605
3606
3607
3608
3609
# File 'generated/google/apis/documentai_v1beta3/classes.rb', line 3605

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