# Google Cloud Document Ai V1 Client - Class LayoutImageBlock (2.7.0)

2.7.0 (latest) 2.6.1 2.5.1 2.4.1 2.3.0 2.2.2 2.1.3 2.0.0 1.14.0 1.13.1 1.12.2 1.9.0 1.8.2 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.2 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Document Ai V1 Client class LayoutImageBlock.

Represents an image type block.

Generated from protobuf message `google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutImageBlock`

## Namespace

Google \\ Cloud \\ DocumentAI \\ V1 \\ Document \\ DocumentLayout \\ DocumentLayoutBlock

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ blob_asset_id` | `string` Optional. Asset id of the inline image. If set, find the image content in the blob_assets field. |
| `↳ gcs_uri` | `string` Optional. Google Cloud Storage uri of the image. |
| `↳ data_uri` | `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:\[ |
| `↳ mime_type` | `string` Mime type of the image. An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml). |
| `↳ image_text` | `string` Text extracted from the image using OCR or alt text describing the image. |
| `↳ annotations` | `https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.Document.Annotations` Annotation of the image block. |

### getBlobAssetId

Optional. Asset id of the inline image. If set, find the image
content in the blob_assets field.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasBlobAssetId

### setBlobAssetId

Optional. Asset id of the inline image. If set, find the image
content in the blob_assets field.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getGcsUri

Optional. Google Cloud Storage uri of the image.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasGcsUri

### setGcsUri

Optional. Google Cloud Storage uri of the image.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDataUri

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** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasDataUri

### setDataUri

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:\[


| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMimeType

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setMimeType

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getImageText

Text extracted from the image using OCR or alt text describing the
image.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setImageText

Text extracted from the image using OCR or alt text describing the
image.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAnnotations

Annotation of the image block.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.Document.Annotations|null` |   |

### hasAnnotations

### clearAnnotations

### setAnnotations

Annotation of the image block.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.Document.Annotations` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getImageSource

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |