public Builder addDiscoveryEndpoints(
        int index, com.google.cloud.memorystore.v1beta.DiscoveryEndpoint value) {
      if (discoveryEndpointsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDiscoveryEndpointsIsMutable();
        discoveryEndpoints_.add(index, value);
        onChanged();
      } else {
        discoveryEndpointsBuilder_.addMessage(index, value);
      }
      return this;
    }
<pre>
Output only. Endpoints clients can connect to the instance through.
Currently only one discovery endpoint is supported.
</pre>

<code>
repeated .google.cloud.memorystore.v1beta.DiscoveryEndpoint discovery_endpoints = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
</code>
java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/Instance.java