0.31.0 (latest) 0.30.0 0.29.0 0.28.0 0.27.0 0.23.0 0.20.0 0.19.0 0.18.0 0.17.1 0.16.1 0.15.0 0.14.0 0.13.1 0.12.1 0.11.2 0.10.0 0.9.0 0.8.1 0.7.2 0.6.1 0.5.0 0.4.0 0.3.0 0.2.0 0.1.4 Reference documentation and code samples for the Google Apps Chat V1 Client class ImageComponent.

Represents an image.

[Google Workspace add-ons and Chat
apps](https://developers.google.com/workspace/extend):

Generated from protobuf message `google.apps.card.v1.ImageComponent`

## Namespace

Google \\ Apps \\ Card \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ image_uri` | `string` The image URL. |
| `↳ alt_text` | `string` The accessibility label for the image. |
| `↳ crop_style` | `ImageCropStyle` The crop style to apply to the image. |
| `↳ border_style` | `BorderStyle` The border style to apply to the image. |

### getImageUri

The image URL.

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

### setImageUri

The image URL.

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

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

### getAltText

The accessibility label for the image.

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

### setAltText

The accessibility label for the image.

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

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

### getCropStyle

The crop style to apply to the image.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ImageCropStyle|null` |   |

### hasCropStyle

### clearCropStyle

### setCropStyle

The crop style to apply to the image.

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

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

### getBorderStyle

The border style to apply to the image.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `BorderStyle|null` |   |

### hasBorderStyle

### clearBorderStyle

### setBorderStyle

The border style to apply to the image.

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

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