Link

The link object from a third-party resource which gets converted it to a smart chip in the host
application.

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

```javascript
const link =
    AddOnsResponseService.newLink()
        .setUrl("www.clickme.com");
```

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/add-ons-response-service/link#setTitle(String)` | `https://developers.google.com/apps-script/reference/add-ons-response-service/link#` | Sets the title of the link. |
| `https://developers.google.com/apps-script/reference/add-ons-response-service/link#setUrl(String)` | `https://developers.google.com/apps-script/reference/add-ons-response-service/link#` | Sets the URL of the link. |

## Detailed documentation

### `setTitle(title)`

Sets the title of the link.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `title` | `String` | The displayed title of this link object. |

#### Return


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

*** ** * ** ***

### `setUrl(url)`

Sets the URL of the link.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `url` | `String` | The destination URL of the link object. |

#### Return


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