@java.lang.Override
    public int getShardCount() {
      return shardCount_;
    }
<pre>
Optional. Number of shards for the instance.
</pre>

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

@return The shardCount.
java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/Instance.java