Document AI V1 API - Class Google::Cloud::DocumentAI::V1::RawDocument (v0.20.0)

Reference documentation and code samples for the Document AI V1 API class Google::Cloud::DocumentAI::V1::RawDocument.

Payload message of raw document content (bytes).

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#content

def content() -> ::String
Returns
  • (::String) — Inline document content.

#content=

def content=(value) -> ::String
Parameter
  • value (::String) — Inline document content.
Returns
  • (::String) — Inline document content.

#display_name

def display_name() -> ::String
Returns
  • (::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.

#display_name=

def display_name=(value) -> ::String
Parameter
  • value (::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.
Returns
  • (::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.

#mime_type

def mime_type() -> ::String
Returns
  • (::String) — An IANA MIME type (RFC6838) indicating the nature and format of the content.

#mime_type=

def mime_type=(value) -> ::String
Parameter
  • value (::String) — An IANA MIME type (RFC6838) indicating the nature and format of the content.
Returns
  • (::String) — An IANA MIME type (RFC6838) indicating the nature and format of the content.