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 RichLinkMetadata.

A rich link to a resource. Rich links can be associated with the plain-text
body of the message or represent chips that link to Google Workspace
resources like Google Docs or Sheets with `start_index` and `length`
of 0.

Generated from protobuf message `google.chat.v1.RichLinkMetadata`

## Namespace

Google \\ Apps \\ Chat \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ uri` | `string` The URI of this link. |
| `↳ rich_link_type` | `int` The rich link type. |
| `↳ drive_link_data` | `DriveLinkData` Data for a drive link. |
| `↳ chat_space_link_data` | `ChatSpaceLinkData` Data for a chat space link. |
| `↳ meet_space_link_data` | `MeetSpaceLinkData` Data for a Meet space link. |
| `↳ calendar_event_link_data` | `CalendarEventLinkData` Data for a Calendar event link. |

### getUri

The URI of this link.

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

### setUri

The URI of this link.

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

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

### getRichLinkType

The rich link type.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [RichLinkType](https://docs.cloud.google.com/php/docs/reference/apps-chat/latest/Chat.V1.RichLinkMetadata.RichLinkType.md.txt). |

### setRichLinkType

The rich link type.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [RichLinkType](https://docs.cloud.google.com/php/docs/reference/apps-chat/latest/Chat.V1.RichLinkMetadata.RichLinkType.md.txt). |

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

### getDriveLinkData

Data for a drive link.

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

### hasDriveLinkData

### setDriveLinkData

Data for a drive link.

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

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

### getChatSpaceLinkData

Data for a chat space link.

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

### hasChatSpaceLinkData

### setChatSpaceLinkData

Data for a chat space link.

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

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

### getMeetSpaceLinkData

Data for a Meet space link.

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

### hasMeetSpaceLinkData

### setMeetSpaceLinkData

Data for a Meet space link.

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

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

### getCalendarEventLinkData

Data for a Calendar event link.

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

### hasCalendarEventLinkData

### setCalendarEventLinkData

Data for a Calendar event link.

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

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

### getData

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