Interface QuotedMessageMetadataOrBuilder (0.49.0)

public interface QuotedMessageMetadataOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

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
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
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
Timestamp

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
TimestampOrBuilder

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
String

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
ByteString

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
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
int

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
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
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
boolean

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
boolean

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
boolean

Whether the quotedMessageSnapshot field is set.