Reference documentation and code samples for the Google Apps Events Subscriptions V1 Client class NotificationEndpoint.
The endpoint where the subscription delivers events.
Generated from protobuf messagegoogle.apps.events.subscriptions.v1.NotificationEndpoint
Namespace
Google \ Apps \ Events \ Subscriptions \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ pubsub_topic
string
Immutable. The Cloud Pub/Sub topic that receives events for the subscription. Format:projects/{project}/topics/{topic}You must create the topic in the same Google Cloud project where you create this subscription. When the topic receives events, the events are encoded as Cloud Pub/Sub messages. For details, see theGoogle Cloud Pub/Sub Protocol Binding for CloudEvents.
getPubsubTopic
Immutable. The Cloud Pub/Sub topic that receives events for the
subscription.
Format:projects/{project}/topics/{topic}You must create the topic in the same Google Cloud project where
you create this subscription.
When the topic receives events, the events are encoded as Cloud Pub/Sub
messages. For details, see theGoogle Cloud Pub/Sub Protocol Binding for
CloudEvents.
Returns
Type
Description
string
hasPubsubTopic
setPubsubTopic
Immutable. The Cloud Pub/Sub topic that receives events for the
subscription.
Format:projects/{project}/topics/{topic}You must create the topic in the same Google Cloud project where
you create this subscription.
When the topic receives events, the events are encoded as Cloud Pub/Sub
messages. For details, see theGoogle Cloud Pub/Sub Protocol Binding for
CloudEvents.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Apps Events Subscriptions V1 Client - Class NotificationEndpoint (0.3.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.3.1 (latest)](/php/docs/reference/apps-events-subscriptions/latest/V1.NotificationEndpoint)\n- [0.3.0](/php/docs/reference/apps-events-subscriptions/0.3.0/V1.NotificationEndpoint)\n- [0.2.1](/php/docs/reference/apps-events-subscriptions/0.2.1/V1.NotificationEndpoint)\n- [0.1.6](/php/docs/reference/apps-events-subscriptions/0.1.6/V1.NotificationEndpoint) \nReference documentation and code samples for the Google Apps Events Subscriptions V1 Client class NotificationEndpoint.\n\nThe endpoint where the subscription delivers events.\n\nGenerated from protobuf message `google.apps.events.subscriptions.v1.NotificationEndpoint`\n\nNamespace\n---------\n\nGoogle \\\\ Apps \\\\ Events \\\\ Subscriptions \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getPubsubTopic\n\nImmutable. The Cloud Pub/Sub topic that receives events for the\nsubscription.\n\nFormat: `projects/{project}/topics/{topic}`\nYou must create the topic in the same Google Cloud project where\nyou create this subscription.\nWhen the topic receives events, the events are encoded as Cloud Pub/Sub\nmessages. For details, see the [Google Cloud Pub/Sub Protocol Binding for\nCloudEvents](https://github.com/googleapis/google-cloudevents/blob/main/docs/spec/pubsub.md).\n\n### hasPubsubTopic\n\n### setPubsubTopic\n\nImmutable. The Cloud Pub/Sub topic that receives events for the\nsubscription.\n\nFormat: `projects/{project}/topics/{topic}`\nYou must create the topic in the same Google Cloud project where\nyou create this subscription.\nWhen the topic receives events, the events are encoded as Cloud Pub/Sub\nmessages. For details, see the [Google Cloud Pub/Sub Protocol Binding for\nCloudEvents](https://github.com/googleapis/google-cloudevents/blob/main/docs/spec/pubsub.md).\n\n### getEndpoint"]]