# Google Workspace Events V1 API - Class Google::Apps::Events::Subscriptions::V1::NotificationEndpoint (v0.8.0)

0.8.0 (latest) 0.7.0 0.6.1 0.5.0 0.4.0 0.3.1 0.2.0 0.1.1 Reference documentation and code samples for the Google Workspace Events V1 API class Google::Apps::Events::Subscriptions::V1::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 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 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 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 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 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 the [Google Cloud Pub/Sub Protocol Binding for
  CloudEvents](https://github.com/googleapis/google-cloudevents/blob/main/docs/spec/pubsub.md).