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

Provides a snapshot of the content of the quoted message at the time of
quoting or forwarding

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

## Namespace

Google \\ Apps \\ Chat \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ sender` | `string` Output only. The quoted message's author name. Populated for both REPLY \& FORWARD quote types. |
| `↳ text` | `string` Output only. Snapshot of the quoted message's text content. |
| `↳ formatted_text` | `string` Output only. Contains the quoted message `text` with markups added to support rich formatting like hyperlinks,custom emojis, markup, etc. Populated only for FORWARD quote type. |
| `↳ annotations` | `array<Annotation>` Output only. Annotations parsed from the text body of the quoted message. Populated only for FORWARD quote type. |
| `↳ attachments` | `array<Attachment>` Output only. Attachments that were part of the quoted message. These are copies of the quoted message's attachment metadata. Populated only for FORWARD quote type. |

### getSender

Output only. The quoted message's author name.

Populated for both REPLY \& FORWARD quote types.

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

### setSender

Output only. The quoted message's author name.

Populated for both REPLY \& FORWARD quote types.

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

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

### getText

Output only. Snapshot of the quoted message's text content.

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

### setText

Output only. Snapshot of the quoted message's text content.

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

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

### getFormattedText

Output only. Contains the quoted message `text` with markups added to
support rich formatting like hyperlinks,custom emojis, markup, etc.

Populated only for FORWARD quote type.

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

### setFormattedText

Output only. Contains the quoted message `text` with markups added to
support rich formatting like hyperlinks,custom emojis, markup, etc.

Populated only for FORWARD quote type.

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

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

### getAnnotations

Output only. Annotations parsed from the text body of the quoted message.

Populated only for FORWARD quote type.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<Annotation>` |   |

### setAnnotations

Output only. Annotations parsed from the text body of the quoted message.

Populated only for FORWARD quote type.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<Annotation>` |

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

### getAttachments

Output only. Attachments that were part of the quoted message. These are
copies of the quoted message's attachment metadata. Populated only for
FORWARD quote type.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<Attachment>` |   |

### setAttachments

Output only. Attachments that were part of the quoted message. These are
copies of the quoted message's attachment metadata. Populated only for
FORWARD quote type.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<Attachment>` |

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