private void ensureDiscoveryEndpointsIsMutable() {
      if (!((bitField0_ & 0x00002000) != 0)) {
        discoveryEndpoints_ =
            new java.util.ArrayList<com.google.cloud.memorystore.v1.DiscoveryEndpoint>(
                discoveryEndpoints_);
        bitField0_ |= 0x00002000;
      }
    }
<pre>
Optional. Number of shards for the instance.
</pre>

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

@return This builder for chaining.
java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/Instance.java