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
Namespace
Google \ Cloud \ Iot \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
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
Type
Description
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
Name
Description
var
string
Returns
Type
Description
$this
getPubsubTopicName
A Cloud Pub/Sub topic name. For example,
projects/myProject/topics/deviceEvents.
Returns
Type
Description
string
setPubsubTopicName
A Cloud Pub/Sub topic name. For example,
projects/myProject/topics/deviceEvents.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Google Cloud IoT Core V1 Client - Class EventNotificationConfig (1.7.5)\n\nVersion latestkeyboard_arrow_down\n\n- [1.7.5 (latest)](/php/docs/reference/cloud-iot/latest/V1.EventNotificationConfig)\n- [1.7.4](/php/docs/reference/cloud-iot/1.7.4/V1.EventNotificationConfig)\n- [1.6.4](/php/docs/reference/cloud-iot/1.6.4/V1.EventNotificationConfig)\n- [1.5.12](/php/docs/reference/cloud-iot/1.5.12/V1.EventNotificationConfig) \nReference documentation and code samples for the Google Cloud IoT Core V1 Client class EventNotificationConfig.\n\nThe configuration for forwarding telemetry events.\n\nGenerated from protobuf message `google.cloud.iot.v1.EventNotificationConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Iot \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getSubfolderMatches\n\nIf the subfolder name matches this string exactly, this configuration will\nbe used. The string must not include the leading '/' character. If empty,\nall strings are matched. This field is used only for telemetry events;\nsubfolders are not supported for state changes.\n\n### setSubfolderMatches\n\nIf the subfolder name matches this string exactly, this configuration will\nbe used. The string must not include the leading '/' character. If empty,\nall strings are matched. This field is used only for telemetry events;\nsubfolders are not supported for state changes.\n\n### getPubsubTopicName\n\nA Cloud Pub/Sub topic name. For example,\n`projects/myProject/topics/deviceEvents`.\n\n### setPubsubTopicName\n\nA Cloud Pub/Sub topic name. For example,\n`projects/myProject/topics/deviceEvents`."]]