@java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.apps.events.subscriptions.v1.NotificationEndpoint)) {
      return super.equals(obj);
    }
    com.google.apps.events.subscriptions.v1.NotificationEndpoint other =
        (com.google.apps.events.subscriptions.v1.NotificationEndpoint) obj;

    if (!getEndpointCase().equals(other.getEndpointCase())) return false;
    switch (endpointCase_) {
      case 1:
        if (!getPubsubTopic().equals(other.getPubsubTopic())) return false;
        break;
      case 0:
      default:
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
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).
</pre>

<code>
string pubsub_topic = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
</code>

@return The bytes for pubsubTopic.
java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/java/com/google/apps/events/subscriptions/v1/NotificationEndpoint.java