Google Cloud Support V2beta Client - Class EmailMessage (1.4.0)

Reference documentation and code samples for the Google Cloud Support V2beta Client class EmailMessage.

An email associated with a support case.

Generated from protobuf message google.cloud.support.v2beta.EmailMessage

Namespace

Google \ Cloud \ Support \ V2beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Identifier. Resource name for the email message.

↳ create_time Google\Protobuf\Timestamp

Output only. Time when this email message object was created.

↳ actor Actor

Output only. The user or Google Support agent that created this email message. This is inferred from the headers on the email message.

↳ subject string

Output only. Subject of the email.

↳ recipient_email_addresses array

Output only. Email addresses the email was sent to.

↳ cc_email_addresses array

Output only. Email addresses CCed on the email.

↳ body_content TextContent

Output only. The full email message body. A best-effort attempt is made to remove extraneous reply threads.

getName

Identifier. Resource name for the email message.

Returns
Type Description
string

setName

Identifier. Resource name for the email message.

Parameter
Name Description
var string
Returns
Type Description
$this

getCreateTime

Output only. Time when this email message object was created.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Time when this email message object was created.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getActor

Output only. The user or Google Support agent that created this email message. This is inferred from the headers on the email message.

Returns
Type Description
Actor|null

hasActor

clearActor

setActor

Output only. The user or Google Support agent that created this email message. This is inferred from the headers on the email message.

Parameter
Name Description
var Actor
Returns
Type Description
$this

getSubject

Output only. Subject of the email.

Returns
Type Description
string

setSubject

Output only. Subject of the email.

Parameter
Name Description
var string
Returns
Type Description
$this

getRecipientEmailAddresses

Output only. Email addresses the email was sent to.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setRecipientEmailAddresses

Output only. Email addresses the email was sent to.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getCcEmailAddresses

Output only. Email addresses CCed on the email.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setCcEmailAddresses

Output only. Email addresses CCed on the email.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getBodyContent

Output only. The full email message body. A best-effort attempt is made to remove extraneous reply threads.

Returns
Type Description
TextContent|null

hasBodyContent

clearBodyContent

setBodyContent

Output only. The full email message body. A best-effort attempt is made to remove extraneous reply threads.

Parameter
Name Description
var TextContent
Returns
Type Description
$this