Google Cloud Advisory Notifications V1 Client - Class Message (0.6.0)

Reference documentation and code samples for the Google Cloud Advisory Notifications V1 Client class Message.

A message which contains notification details.

Generated from protobuf message google.cloud.advisorynotifications.v1.Message

Namespace

Google \ Cloud \ AdvisoryNotifications \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ body Google\Cloud\AdvisoryNotifications\V1\Message\Body

The message content.

↳ attachments array<Google\Cloud\AdvisoryNotifications\V1\Attachment>

The attachments to download.

↳ create_time Google\Protobuf\Timestamp

The Message creation timestamp.

↳ localization_time Google\Protobuf\Timestamp

Time when Message was localized

getBody

The message content.

Returns
TypeDescription
Google\Cloud\AdvisoryNotifications\V1\Message\Body|null

hasBody

clearBody

setBody

The message content.

Parameter
NameDescription
var Google\Cloud\AdvisoryNotifications\V1\Message\Body
Returns
TypeDescription
$this

getAttachments

The attachments to download.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAttachments

The attachments to download.

Parameter
NameDescription
var array<Google\Cloud\AdvisoryNotifications\V1\Attachment>
Returns
TypeDescription
$this

getCreateTime

The Message creation timestamp.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

The Message creation timestamp.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getLocalizationTime

Time when Message was localized

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasLocalizationTime

clearLocalizationTime

setLocalizationTime

Time when Message was localized

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this