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
more...

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.

[View source]

5100
5101
5102
# File 'lib/google/apis/documentai_v1/classes.rb', line 5100

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)

5086
5087
5088
# File 'lib/google/apis/documentai_v1/classes.rb', line 5086

def content
  @content
end

#display_nameString

The display name of the document, it supports all Unicode characters except the following: *, ?, [, ], %, ,,', \", , ~, = and : are reserved. If not specified, a default ID is generated. Corresponds to the JSON property displayName

Returns:

  • (String)

5093
5094
5095
# File 'lib/google/apis/documentai_v1/classes.rb', line 5093

def display_name
  @display_name
end

#mime_typeString

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

Returns:

  • (String)

5098
5099
5100
# File 'lib/google/apis/documentai_v1/classes.rb', line 5098

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

5105
5106
5107
5108
5109
# File 'lib/google/apis/documentai_v1/classes.rb', line 5105

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