Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1RawDocument

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

Overview

Payload message of raw document content (bytes).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1RawDocument

Returns a new instance of GoogleCloudDocumentaiV1RawDocument.



2358
2359
2360
# File 'lib/google/apis/documentai_v1/classes.rb', line 2358

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

Instance Attribute Details

#contentString

Inline document content. Corresponds to the JSON property content NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


2351
2352
2353
# File 'lib/google/apis/documentai_v1/classes.rb', line 2351

def content
  @content
end

#mime_typeString

An IANA MIME type (RFC6838) indicating the nature and format of the [content]. Corresponds to the JSON property mimeType

Returns:

  • (String)


2356
2357
2358
# File 'lib/google/apis/documentai_v1/classes.rb', line 2356

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2363
2364
2365
2366
# File 'lib/google/apis/documentai_v1/classes.rb', line 2363

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