Reference documentation and code samples for the Google Apps Events Subscriptions V1beta Client class NotificationEndpoint.
The endpoint where the subscription delivers events.
Generated from protobuf message google.apps.events.subscriptions.v1beta.NotificationEndpoint
Namespace
Google \ Apps \ Events \ Subscriptions \ V1beta
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ pubsub_topic
string
Immutable. The 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. Note: The Workspace Events API uses ordering keys for the benefit of sequential events. If the Cloud Pub/Sub topic has a message storage policy configured to exclude the nearest Google Cloud region, publishing events with ordering keys will fail. When the topic receives events, the events are encoded as Pub/Sub messages. For details, see the Google Cloud Pub/Sub Protocol Binding for CloudEvents.
getPubsubTopic
Immutable. The 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.
Note: The Workspace Events API uses ordering
keys for the benefit of
sequential events. If the Cloud Pub/Sub topic has a message storage
policy
configured to exclude the nearest Google Cloud region, publishing events
with ordering keys will fail.
When the topic receives events, the events are encoded as Pub/Sub
messages. For details, see the Google Cloud Pub/Sub Protocol Binding for
CloudEvents.
Returns
Type
Description
string
hasPubsubTopic
setPubsubTopic
Immutable. The 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.
Note: The Workspace Events API uses ordering
keys for the benefit of
sequential events. If the Cloud Pub/Sub topic has a message storage
policy
configured to exclude the nearest Google Cloud region, publishing events
with ordering keys will fail.
When the topic receives events, the events are encoded as Pub/Sub
messages. For details, see the Google 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-09 UTC."],[],[],null,["# Google Apps Events Subscriptions V1beta Client - Class NotificationEndpoint (0.3.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.3.1 (latest)](/php/docs/reference/apps-events-subscriptions/latest/V1beta.NotificationEndpoint)\n- [0.3.0](/php/docs/reference/apps-events-subscriptions/0.3.0/V1beta.NotificationEndpoint)\n- [0.2.1](/php/docs/reference/apps-events-subscriptions/0.2.1/V1beta.NotificationEndpoint)\n- [0.1.6](/php/docs/reference/apps-events-subscriptions/0.1.6/V1beta.NotificationEndpoint) \n| **Beta**\n|\n|\n| This library is covered by the [Pre-GA Offerings Terms](/terms/service-terms#1)\n| of the Terms of Service. Pre-GA libraries might have limited support,\n| and changes to pre-GA libraries might not be compatible with other pre-GA versions.\n| For more information, see the\n[launch stage descriptions](/products#product-launch-stages). \nReference documentation and code samples for the Google Apps Events Subscriptions V1beta Client class NotificationEndpoint.\n\nThe endpoint where the subscription delivers events.\n\nGenerated from protobuf message `google.apps.events.subscriptions.v1beta.NotificationEndpoint`\n\nNamespace\n---------\n\nGoogle \\\\ Apps \\\\ Events \\\\ Subscriptions \\\\ V1beta\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getPubsubTopic\n\nImmutable. The Pub/Sub topic that receives events for the subscription.\n\nFormat: `projects/{project}/topics/{topic}`\nYou must create the topic in the same Google Cloud project where\nyou create this subscription.\nNote: The Workspace Events API uses [ordering\nkeys](https://cloud.google.com/pubsub/docs/ordering) for the benefit of\nsequential events. If the Cloud Pub/Sub topic has a [message storage\npolicy](https://cloud.google.com/pubsub/docs/resource-location-restriction#exceptions)\nconfigured to exclude the nearest Google Cloud region, publishing events\nwith ordering keys will fail.\nWhen the topic receives events, the events are encoded as 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 Pub/Sub topic that receives events for the subscription.\n\nFormat: `projects/{project}/topics/{topic}`\nYou must create the topic in the same Google Cloud project where\nyou create this subscription.\nNote: The Workspace Events API uses [ordering\nkeys](https://cloud.google.com/pubsub/docs/ordering) for the benefit of\nsequential events. If the Cloud Pub/Sub topic has a [message storage\npolicy](https://cloud.google.com/pubsub/docs/resource-location-restriction#exceptions)\nconfigured to exclude the nearest Google Cloud region, publishing events\nwith ordering keys will fail.\nWhen the topic receives events, the events are encoded as 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"]]