# Interface QuotedMessageMetadataOrBuilder (0.57.0)

0.57.0 (latest) 0.55.0 0.52.0 0.51.0 0.49.0 0.47.0 0.46.0 0.45.0 0.44.0 0.42.0 0.40.0 0.39.0 0.38.0 0.37.0 0.36.0 0.34.0 0.32.0 0.31.0 0.28.0 0.27.0 0.26.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.1.0

    public interface QuotedMessageMetadataOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getForwardedMetadata()

    public abstract ForwardedMetadata getForwardedMetadata()

Output only. Metadata about the source space of the quoted message.
Populated only for FORWARD quote type.

`
.google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-chat/latest/com.google.chat.v1.ForwardedMetadata` | The forwardedMetadata. |

### getForwardedMetadataOrBuilder()

    public abstract ForwardedMetadataOrBuilder getForwardedMetadataOrBuilder()

Output only. Metadata about the source space of the quoted message.
Populated only for FORWARD quote type.

`
.google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-chat/latest/com.google.chat.v1.ForwardedMetadataOrBuilder` |   |

### getLastUpdateTime()

    public abstract Timestamp 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.

`
.google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The lastUpdateTime. |

### getLastUpdateTimeOrBuilder()

    public abstract TimestampOrBuilder getLastUpdateTimeOrBuilder()

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.

`
.google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getName()

    public abstract String getName()

Required. Resource name of the message that is quoted.

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

`
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The name. |

### getNameBytes()

    public abstract ByteString getNameBytes()

Required. Resource name of the message that is quoted.

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

`
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for name. |

### getQuoteType()

    public abstract QuotedMessageMetadata.QuoteType getQuoteType()

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

`
.google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-chat/latest/com.google.chat.v1.QuotedMessageMetadata.QuoteType` | The quoteType. |

### getQuoteTypeValue()

    public abstract int getQuoteTypeValue()

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

`
.google.chat.v1.QuotedMessageMetadata.QuoteType quote_type = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for quoteType. |

### getQuotedMessageSnapshot()

    public abstract QuotedMessageSnapshot getQuotedMessageSnapshot()

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

`
.google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-chat/latest/com.google.chat.v1.QuotedMessageSnapshot` | The quotedMessageSnapshot. |

### getQuotedMessageSnapshotOrBuilder()

    public abstract QuotedMessageSnapshotOrBuilder getQuotedMessageSnapshotOrBuilder()

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

`
.google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-chat/latest/com.google.chat.v1.QuotedMessageSnapshotOrBuilder` |   |

### hasForwardedMetadata()

    public abstract boolean hasForwardedMetadata()

Output only. Metadata about the source space of the quoted message.
Populated only for FORWARD quote type.

`
.google.chat.v1.ForwardedMetadata forwarded_metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the forwardedMetadata field is set. |

### hasLastUpdateTime()

    public abstract boolean hasLastUpdateTime()

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.

`
.google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the lastUpdateTime field is set. |

### hasQuotedMessageSnapshot()

    public abstract boolean hasQuotedMessageSnapshot()

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

`
.google.chat.v1.QuotedMessageSnapshot quoted_message_snapshot = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the quotedMessageSnapshot field is set. |