Hyperlink

A Hyperlink element used in `https://developers.google.com/apps-script/reference/add-ons-response-service/text-format-element`.

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

```javascript
const hyperLink = AddOnsResponseService.newHyperlink()
      .setText("Hyperlink_text")
      .setLink("https://www.google.com");
```

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/add-ons-response-service/hyperlink#setLink(String)` | `https://developers.google.com/apps-script/reference/add-ons-response-service/hyperlink#` | Sets the destination URL of the hyperlink. |
| `https://developers.google.com/apps-script/reference/add-ons-response-service/hyperlink#setText(String)` | `https://developers.google.com/apps-script/reference/add-ons-response-service/hyperlink#` | Sets the text of the hyperlink. |

## Detailed documentation

### `setLink(link)`

Sets the destination URL of the hyperlink.

#### Parameters

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

#### Return


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

*** ** * ** ***

### `setText(text)`

Sets the text of the hyperlink.

#### Parameters

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

#### Return


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