@java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    switch (endpointCase_) {
      case 1:
        hash = (37 * hash) + PUBSUB_TOPIC_FIELD_NUMBER;
        hash = (53 * hash) + getPubsubTopic().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }
<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