Class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3RawDocument
- Inherits:
-
Object
- Object
- Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3RawDocument
- 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
-
#content ⇒ String
Inline document content.
-
#display_name ⇒ String
The display name of the document, it supports all Unicode characters except the following:
*,?,[,],%,,,',\",,~,=and:are reserved. -
#mime_type ⇒ String
An IANA MIME type (RFC6838) indicating the nature and format of the content.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3RawDocument
constructor
A new instance of GoogleCloudDocumentaiV1beta3RawDocument.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3RawDocument
Returns a new instance of GoogleCloudDocumentaiV1beta3RawDocument.
11419 11420 11421 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 11419 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content ⇒ String
Inline document content.
Corresponds to the JSON property content
NOTE: Values are automatically base64 encoded/decoded in the client library.
11405 11406 11407 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 11405 def content @content end |
#display_name ⇒ String
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
11412 11413 11414 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 11412 def display_name @display_name end |
#mime_type ⇒ String
An IANA MIME type (RFC6838) indicating the nature and format of the content.
Corresponds to the JSON property mimeType
11417 11418 11419 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 11417 def mime_type @mime_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11424 11425 11426 11427 11428 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 11424 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 |