public Builder setTargetShardCount(int value) {

          targetShardCount_ = value;
          bitField0_ |= 0x00000001;
          onChanged();
          return this;
        }
<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>

@param value The targetShardCount to set.
@return This builder for chaining.
java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/Instance.java