public Builder setPort(int value) {

      portsCase_ = 9;
      ports_ = value;
      onChanged();
      return this;
    }
<pre>
Optional. port will only be set for Primary/Reader or Discovery endpoint.
</pre>

<code>int32 port = 9 [(.google.api.field_behavior) = OPTIONAL];</code>

@param value The port to set.
@return This builder for chaining.
java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/PscConnection.java