# Google Apps Events Subscriptions V1beta Client - Class NotificationEndpoint (0.4.4)

0.4.4 (latest) 0.4.3 0.3.1 0.2.1 0.1.6

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

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](https://cloud.google.com/pubsub/docs/ordering) for the benefit of sequential events. If the Cloud Pub/Sub topic has a [message storage policy](https://cloud.google.com/pubsub/docs/resource-location-restriction#exceptions) 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](https://github.com/googleapis/google-cloudevents/blob/main/docs/spec/pubsub.md). |

### 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](https://cloud.google.com/pubsub/docs/ordering) for the benefit of
sequential events. If the Cloud Pub/Sub topic has a [message storage
policy](https://cloud.google.com/pubsub/docs/resource-location-restriction#exceptions)
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](https://github.com/googleapis/google-cloudevents/blob/main/docs/spec/pubsub.md).

| **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](https://cloud.google.com/pubsub/docs/ordering) for the benefit of
sequential events. If the Cloud Pub/Sub topic has a [message storage
policy](https://cloud.google.com/pubsub/docs/resource-location-restriction#exceptions)
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](https://github.com/googleapis/google-cloudevents/blob/main/docs/spec/pubsub.md).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEndpoint

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |