Document AI V1beta3 API - Class Google::Cloud::DocumentAI::V1beta3::Document::DocumentLayout::DocumentLayoutBlock::LayoutImageBlock (v0.43.0)

Reference documentation and code samples for the Document AI V1beta3 API class Google::Cloud::DocumentAI::V1beta3::Document::DocumentLayout::DocumentLayoutBlock::LayoutImageBlock.

Represents an image type block.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#annotations

def annotations() -> ::Google::Cloud::DocumentAI::V1beta3::Document::Annotations
Returns

#annotations=

def annotations=(value) -> ::Google::Cloud::DocumentAI::V1beta3::Document::Annotations
Parameter
Returns

#blob_asset_id

def blob_asset_id() -> ::String
Returns
  • (::String) — Optional. Asset id of the inline image. If set, find the image content in the blob_assets field.

    Note: The following fields are mutually exclusive: blob_asset_id, gcs_uri, data_uri. If a field in that set is populated, all other fields in the set will automatically be cleared.

#blob_asset_id=

def blob_asset_id=(value) -> ::String
Parameter
  • value (::String) — Optional. Asset id of the inline image. If set, find the image content in the blob_assets field.

    Note: The following fields are mutually exclusive: blob_asset_id, gcs_uri, data_uri. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::String) — Optional. Asset id of the inline image. If set, find the image content in the blob_assets field.

    Note: The following fields are mutually exclusive: blob_asset_id, gcs_uri, data_uri. If a field in that set is populated, all other fields in the set will automatically be cleared.

#data_uri

def data_uri() -> ::String
Returns
  • (::String) — Optional. Data uri of the image. It is composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:[

#data_uri=

def data_uri=(value) -> ::String
Parameter
  • value (::String) — Optional. Data uri of the image. It is composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:[
Returns
  • (::String) — Optional. Data uri of the image. It is composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:[

#gcs_uri

def gcs_uri() -> ::String
Returns
  • (::String) — Optional. Google Cloud Storage uri of the image.

    Note: The following fields are mutually exclusive: gcs_uri, blob_asset_id, data_uri. If a field in that set is populated, all other fields in the set will automatically be cleared.

#gcs_uri=

def gcs_uri=(value) -> ::String
Parameter
  • value (::String) — Optional. Google Cloud Storage uri of the image.

    Note: The following fields are mutually exclusive: gcs_uri, blob_asset_id, data_uri. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::String) — Optional. Google Cloud Storage uri of the image.

    Note: The following fields are mutually exclusive: gcs_uri, blob_asset_id, data_uri. If a field in that set is populated, all other fields in the set will automatically be cleared.

#image_text

def image_text() -> ::String
Returns
  • (::String) — Text extracted from the image using OCR or alt text describing the image.

#image_text=

def image_text=(value) -> ::String
Parameter
  • value (::String) — Text extracted from the image using OCR or alt text describing the image.
Returns
  • (::String) — Text extracted from the image using OCR or alt text describing the image.

#mime_type

def mime_type() -> ::String
Returns

#mime_type=

def mime_type=(value) -> ::String
Parameter
Returns