@java.lang.Override
        public int getTargetShardCount() {
          return targetShardCount_;
        }
<pre>
Output only. Target number of shards for the instance.
</pre>

<code>optional int32 target_shard_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
</code>

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