Google Cloud IoT Core V1 Client - Class EventNotificationConfig (1.5.12)

Reference documentation and code samples for the Google Cloud IoT Core V1 Client class EventNotificationConfig.

The configuration for forwarding telemetry events.

Generated from protobuf message google.cloud.iot.v1.EventNotificationConfig

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ subfolder_matches string

If the subfolder name matches this string exactly, this configuration will be used. The string must not include the leading '/' character. If empty, all strings are matched. This field is used only for telemetry events; subfolders are not supported for state changes.

↳ pubsub_topic_name string

A Cloud Pub/Sub topic name. For example, projects/myProject/topics/deviceEvents.

getSubfolderMatches

If the subfolder name matches this string exactly, this configuration will be used. The string must not include the leading '/' character. If empty, all strings are matched. This field is used only for telemetry events; subfolders are not supported for state changes.

Returns
TypeDescription
string

setSubfolderMatches

If the subfolder name matches this string exactly, this configuration will be used. The string must not include the leading '/' character. If empty, all strings are matched. This field is used only for telemetry events; subfolders are not supported for state changes.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPubsubTopicName

A Cloud Pub/Sub topic name. For example, projects/myProject/topics/deviceEvents.

Returns
TypeDescription
string

setPubsubTopicName

A Cloud Pub/Sub topic name. For example, projects/myProject/topics/deviceEvents.

Parameter
NameDescription
var string
Returns
TypeDescription
$this