Google Apps Chat V1 Client - Class QuotedMessageSnapshot (0.20.0)

Reference documentation and code samples for the Google Apps Chat V1 Client class QuotedMessageSnapshot.

Provides a snapshot of the content of the quoted message at the time of quoting or forwarding

Generated from protobuf message google.chat.v1.QuotedMessageSnapshot

Namespace

Google \ Apps \ Chat \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ sender
string

Output only. The quoted message's author name. Populated for both REPLY & FORWARD quote types.

↳ text
string

Output only. Snapshot of the quoted message's text content.

↳ formatted_text
string

Output only. Contains the quoted message text with markups added to support rich formatting like hyperlinks,custom emojis, markup, etc. Populated only for FORWARD quote type.

↳ annotations
array< Annotation >

Output only. Annotations parsed from the text body of the quoted message. Populated only for FORWARD quote type.

↳ attachments
array< Attachment >

Output only. Attachments that were part of the quoted message. These are copies of the quoted message's attachment metadata. Populated only for FORWARD quote type.

getSender

Output only. The quoted message's author name.

Populated for both REPLY & FORWARD quote types.

Returns
Type
Description
string

setSender

Output only. The quoted message's author name.

Populated for both REPLY & FORWARD quote types.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getText

Output only. Snapshot of the quoted message's text content.

Returns
Type
Description
string

setText

Output only. Snapshot of the quoted message's text content.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getFormattedText

Output only. Contains the quoted message text with markups added to support rich formatting like hyperlinks,custom emojis, markup, etc.

Populated only for FORWARD quote type.

Returns
Type
Description
string

setFormattedText

Output only. Contains the quoted message text with markups added to support rich formatting like hyperlinks,custom emojis, markup, etc.

Populated only for FORWARD quote type.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getAnnotations

Output only. Annotations parsed from the text body of the quoted message.

Populated only for FORWARD quote type.

Returns
Type
Description

setAnnotations

Output only. Annotations parsed from the text body of the quoted message.

Populated only for FORWARD quote type.

Parameter
Name
Description
var
array< Annotation >
Returns
Type
Description
$this

getAttachments

Output only. Attachments that were part of the quoted message. These are copies of the quoted message's attachment metadata. Populated only for FORWARD quote type.

Returns
Type
Description

setAttachments

Output only. Attachments that were part of the quoted message. These are copies of the quoted message's attachment metadata. Populated only for FORWARD quote type.

Parameter
Name
Description
var
array< Attachment >
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: