Google Cloud Advisory Notifications V1 Client - Class Notification (0.4.0)

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

A notification object for notifying customers about security and privacy issues.

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

Namespace

Google \ Cloud \ AdvisoryNotifications \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The resource name of the notification. Format: organizations/{organization}/locations/{location}/notifications/{notification}.

↳ subject Google\Cloud\AdvisoryNotifications\V1\Subject

The subject line of the notification.

↳ messages array<Google\Cloud\AdvisoryNotifications\V1\Message>

A list of messages in the notification.

↳ create_time Google\Protobuf\Timestamp

Output only. Time the notification was created.

↳ notification_type int

Type of notification

getName

The resource name of the notification.

Format: organizations/{organization}/locations/{location}/notifications/{notification}.

Returns
TypeDescription
string

setName

The resource name of the notification.

Format: organizations/{organization}/locations/{location}/notifications/{notification}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSubject

The subject line of the notification.

Returns
TypeDescription
Google\Cloud\AdvisoryNotifications\V1\Subject|null

hasSubject

clearSubject

setSubject

The subject line of the notification.

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

getMessages

A list of messages in the notification.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setMessages

A list of messages in the notification.

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

getCreateTime

Output only. Time the notification was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Time the notification was created.

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

getNotificationType

Type of notification

Returns
TypeDescription
int

setNotificationType

Type of notification

Parameter
NameDescription
var int
Returns
TypeDescription
$this