# Document AI V1 API - Class Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutImageBlock (v1.12.1)

1.12.1 (latest) 1.12.0 1.11.0 1.10.2 1.9.0 1.8.0 1.7.0 1.6.1 1.5.1 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.23.1 0.22.0 0.21.1 0.20.0 0.19.0 0.18.0 0.17.2 0.16.2 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.4 Reference documentation and code samples for the Document AI V1 API class Google::Cloud::DocumentAI::V1::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::V1::Document::Annotations

**Returns**

- ([::Google::Cloud::DocumentAI::V1::Document::Annotations](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1/latest/Google-Cloud-DocumentAI-V1-Document-Annotations)) --- Annotation of the image block.

### #annotations=

    def annotations=(value) -> ::Google::Cloud::DocumentAI::V1::Document::Annotations

**Parameter**

- **value** ([::Google::Cloud::DocumentAI::V1::Document::Annotations](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1/latest/Google-Cloud-DocumentAI-V1-Document-Annotations)) --- Annotation of the image block.
**Returns**

- ([::Google::Cloud::DocumentAI::V1::Document::Annotations](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1/latest/Google-Cloud-DocumentAI-V1-Document-Annotations)) --- Annotation of the image block.

### #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**

- (::String) --- Mime type of the image. An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml).

### #mime_type=

    def mime_type=(value) -> ::String

**Parameter**

- **value** (::String) --- Mime type of the image. An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml).
**Returns**

- (::String) --- Mime type of the image. An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml).