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

Information about a message that another message quotes.

When you update a message, you can't add or replace the
`quotedMessageMetadata` field, but you can remove it.
For example usage, see [Quote another
message](https://developers.google.com/workspace/chat/create-messages#quote-a-message).

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

## Namespace

Google \\ Apps \\ Chat \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. Resource name of the message that is quoted. Format: `spaces/{space}/messages/{message}` |
| `↳ last_update_time` | `Google\Protobuf\Timestamp` Required. The timestamp when the quoted message was created or when the quoted message was last updated. If the message was edited, use this field, `last_update_time`. If the message was never edited, use `create_time`. If `last_update_time` doesn't match the latest version of the quoted message, the request fails. |
| `↳ quote_type` | `int` Optional. Specifies the quote type. If not set, defaults to REPLY in the message read/write path for backward compatibility. |
| `↳ quoted_message_snapshot` | `QuotedMessageSnapshot` Output only. A snapshot of the quoted message's content. |
| `↳ forwarded_metadata` | `ForwardedMetadata` Output only. Metadata about the source space of the quoted message. Populated only for FORWARD quote type. |

### getName

Required. Resource name of the message that is quoted.

Format: `spaces/{space}/messages/{message}`

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

### setName

Required. Resource name of the message that is quoted.

Format: `spaces/{space}/messages/{message}`

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

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

### getLastUpdateTime

Required. The timestamp when the quoted message was created or when the
quoted message was last updated.

If the message was edited, use this field, `last_update_time`.
If the message was never edited, use `create_time`.
If `last_update_time` doesn't match the latest version of the quoted
message, the request fails.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasLastUpdateTime

### clearLastUpdateTime

### setLastUpdateTime

Required. The timestamp when the quoted message was created or when the
quoted message was last updated.

If the message was edited, use this field, `last_update_time`.
If the message was never edited, use `create_time`.
If `last_update_time` doesn't match the latest version of the quoted
message, the request fails.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getQuoteType

Optional. Specifies the quote type. If not set, defaults to REPLY in the
message read/write path for backward compatibility.

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

### setQuoteType

Optional. Specifies the quote type. If not set, defaults to REPLY in the
message read/write path for backward compatibility.

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

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

### getQuotedMessageSnapshot

Output only. A snapshot of the quoted message's content.

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

### hasQuotedMessageSnapshot

### clearQuotedMessageSnapshot

### setQuotedMessageSnapshot

Output only. A snapshot of the quoted message's content.

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

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

### getForwardedMetadata

Output only. Metadata about the source space of the quoted message.

Populated only for FORWARD quote type.

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

### hasForwardedMetadata

### clearForwardedMetadata

### setForwardedMetadata

Output only. Metadata about the source space of the quoted message.

Populated only for FORWARD quote type.

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

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