Reference documentation and code samples for the Google Chat V1 API class Google::Apps::Chat::V1::QuotedMessageMetadata.
Information about a message that another message quotes.
When you create a message, you can quote messages within the same thread, or quote a root message to create a new root message. However, you can't quote a message reply from a different thread.
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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#forwarded_metadata
def forwarded_metadata() -> ::Google::Apps::Chat::V1::ForwardedMetadata- (::Google::Apps::Chat::V1::ForwardedMetadata) — Output only. Metadata about the source space of the quoted message. Populated only for FORWARD quote type.
#last_update_time
def last_update_time() -> ::Google::Protobuf::Timestamp-
(::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, usecreate_time.If
last_update_timedoesn't match the latest version of the quoted message, the request fails.
#last_update_time=
def last_update_time=(value) -> ::Google::Protobuf::Timestamp-
value (::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, usecreate_time.If
last_update_timedoesn't match the latest version of the quoted message, the request fails.
-
(::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, usecreate_time.If
last_update_timedoesn't match the latest version of the quoted message, the request fails.
#name
def name() -> ::String-
(::String) — Required. Resource name of the message that is quoted.
Format:
spaces/{space}/messages/{message}
#name=
def name=(value) -> ::String-
value (::String) — Required. Resource name of the message that is quoted.
Format:
spaces/{space}/messages/{message}
-
(::String) — Required. Resource name of the message that is quoted.
Format:
spaces/{space}/messages/{message}
#quote_type
def quote_type() -> ::Google::Apps::Chat::V1::QuotedMessageMetadata::QuoteType- (::Google::Apps::Chat::V1::QuotedMessageMetadata::QuoteType) — Optional. Specifies the quote type. If not set, defaults to REPLY in the message read/write path for backward compatibility.
#quote_type=
def quote_type=(value) -> ::Google::Apps::Chat::V1::QuotedMessageMetadata::QuoteType- value (::Google::Apps::Chat::V1::QuotedMessageMetadata::QuoteType) — Optional. Specifies the quote type. If not set, defaults to REPLY in the message read/write path for backward compatibility.
- (::Google::Apps::Chat::V1::QuotedMessageMetadata::QuoteType) — Optional. Specifies the quote type. If not set, defaults to REPLY in the message read/write path for backward compatibility.
#quoted_message_snapshot
def quoted_message_snapshot() -> ::Google::Apps::Chat::V1::QuotedMessageSnapshot- (::Google::Apps::Chat::V1::QuotedMessageSnapshot) — Output only. A snapshot of the quoted message's content.