Google Cloud Document Ai V1 Client - Class BlobAsset (2.7.0)

Reference documentation and code samples for the Google Cloud Document Ai V1 Client class BlobAsset.

Represents a blob asset. It's used to store the content of the inline blob in this document, for example, image bytes, such that it can be referenced by other fields in the document via asset ID.

Generated from protobuf message google.cloud.documentai.v1.Document.BlobAsset

Namespace

Google \ Cloud \ DocumentAI \ V1 \ Document

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ asset_id string

Optional. The id of the blob asset.

↳ content string

Optional. The content of the blob asset, for example, image bytes.

↳ mime_type string

The mime type of the blob asset. An IANA published media type (MIME type).

getAssetId

Optional. The id of the blob asset.

Returns
Type Description
string

setAssetId

Optional. The id of the blob asset.

Parameter
Name Description
var string
Returns
Type Description
$this

getContent

Optional. The content of the blob asset, for example, image bytes.

Returns
Type Description
string

setContent

Optional. The content of the blob asset, for example, image bytes.

Parameter
Name Description
var string
Returns
Type Description
$this

getMimeType

The mime type of the blob asset.

An IANA published media type (MIME type).

Returns
Type Description
string

setMimeType

The mime type of the blob asset.

An IANA published media type (MIME type).

Parameter
Name Description
var string
Returns
Type Description
$this