Google Cloud Deploy V1 Client - Class TargetNotificationEvent (2.0.0)

Reference documentation and code samples for the Google Cloud Deploy V1 Client class TargetNotificationEvent.

Payload proto for "clouddeploy.googleapis.com/target_notification"Platform Log event that describes the failure to send target status changePub/Sub notification.

Generated from protobuf messagegoogle.cloud.deploy.v1.TargetNotificationEvent

Namespace

Google \ Cloud \ Deploy \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ messagestring

Debug message for when a notification fails to send.

↳ targetstring

The name of theTarget.

↳ typeint

Type of this notification, e.g. for a Pub/Sub failure.

getMessage

Debug message for when a notification fails to send.

Returns
TypeDescription
string

setMessage

Debug message for when a notification fails to send.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getTarget

The name of theTarget.

Returns
TypeDescription
string

setTarget

The name of theTarget.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getType

Type of this notification, e.g. for a Pub/Sub failure.

Returns
TypeDescription
int

setType

Type of this notification, e.g. for a Pub/Sub failure.

Parameter
NameDescription
varint
Returns
TypeDescription
$this

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-01-10 UTC.