Class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3GcsDocument

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

Overview

Specifies a document stored on Cloud Storage.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3GcsDocument

Returns a new instance of GoogleCloudDocumentaiV1beta3GcsDocument.



7793
7794
7795
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7793

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

Instance Attribute Details

#gcs_uriString

The Cloud Storage object uri. Corresponds to the JSON property gcsUri

Returns:

  • (String)


7786
7787
7788
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7786

def gcs_uri
  @gcs_uri
end

#mime_typeString

An IANA MIME type (RFC6838) of the content. Corresponds to the JSON property mimeType

Returns:

  • (String)


7791
7792
7793
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7791

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7798
7799
7800
7801
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7798

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