TextFormatChip

A clickable chip in the text format.

Only available for Google Workspace add-ons that extend Google Workspace Studio.

Sample usage:

```javascript
const chip = AddOnsResponseService.newChip()
    .setTextFormatIcon(AddOnsResponseService.newTextFormatIcon()
      .setIconUrl("https://www.google.com/icon.png"))
    .setLabel("test_label")
    .setUrl("https://www.google.com/chip.png");

}
```

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/add-ons-response-service/text-format-chip#setLabel(String)` | `https://developers.google.com/apps-script/reference/add-ons-response-service/text-format-chip#` | Sets the text displayed in the chip. |
| `https://developers.google.com/apps-script/reference/add-ons-response-service/text-format-chip#setTextFormatIcon(TextFormatIcon)` | `https://developers.google.com/apps-script/reference/add-ons-response-service/text-format-chip#` | Sets the icon displayed in the chip. |
| `https://developers.google.com/apps-script/reference/add-ons-response-service/text-format-chip#setUrl(String)` | `https://developers.google.com/apps-script/reference/add-ons-response-service/text-format-chip#` | Sets the URL to navigate to when the chip is clicked. |

## Detailed documentation

### `setLabel(label)`

Sets the text displayed in the chip.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `label` | `String` | The text label of the chip. |

#### Return


`https://developers.google.com/apps-script/reference/add-ons-response-service/text-format-chip#` --- This chip object, for chaining.

*** ** * ** ***

### `setTextFormatIcon(icon)`

Sets the icon displayed in the chip.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `icon` | `https://developers.google.com/apps-script/reference/add-ons-response-service/text-format-icon` | The `https://developers.google.com/apps-script/reference/add-ons-response-service/text-format-icon` to set in the chip. |

#### Return


`https://developers.google.com/apps-script/reference/add-ons-response-service/text-format-chip#` --- This chip object, for chaining.

*** ** * ** ***

### `setUrl(url)`

Sets the URL to navigate to when the chip is clicked.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `url` | `String` | The destination URL to the chip. |

#### Return


`https://developers.google.com/apps-script/reference/add-ons-response-service/text-format-chip#` --- This chip object, for chaining.