# Google Workspace Events V1BETA API - Class Google::Apps::Events::Subscriptions::V1beta::NotificationEndpoint (v0.5.0)

0.5.0 (latest) 0.4.0 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Google Workspace Events V1BETA API class Google::Apps::Events::Subscriptions::V1beta::NotificationEndpoint.

The endpoint where the subscription delivers events.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #pubsub_topic

    def pubsub_topic() -> ::String

**Returns**

- (::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).

### #pubsub_topic=

    def pubsub_topic=(value) -> ::String

**Parameter**

- **value** (::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).
**Returns**

- (::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).