Reference documentation and code samples for the Google Apps Chat V1 Client class 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
.
Generated from protobuf message google.chat.v1.QuotedMessageMetadata
Namespace
Google \ Apps \ Chat \ V1Methods
__construct
Constructor.
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
↳ 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}
string
setName
Required. Resource name of the message that is quoted.
Format: spaces/{space}/messages/{message}
var
string
$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.
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.
$this
getQuoteType
Optional. Specifies the quote type. If not set, defaults to REPLY in the message read/write path for backward compatibility.
setQuoteType
Optional. Specifies the quote type. If not set, defaults to REPLY in the message read/write path for backward compatibility.
$this
getQuotedMessageSnapshot
Output only. A snapshot of the quoted message's content.
hasQuotedMessageSnapshot
clearQuotedMessageSnapshot
setQuotedMessageSnapshot
Output only. A snapshot of the quoted message's content.
$this
getForwardedMetadata
Output only. Metadata about the source space of the quoted message.
Populated only for FORWARD quote type.
hasForwardedMetadata
clearForwardedMetadata
setForwardedMetadata
Output only. Metadata about the source space of the quoted message.
Populated only for FORWARD quote type.
$this

