Class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3RawDocument

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

Payload message of raw document content (bytes).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3RawDocument

Returns a new instance of GoogleCloudDocumentaiV1beta3RawDocument.



7061
7062
7063
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7061

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)


7054
7055
7056
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7054

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)


7059
7060
7061
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7059

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7066
7067
7068
7069
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7066

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