@java.lang.Override
      public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
        if (((bitField0_ & 0x00000001) != 0)) {
          output.writeInt32(1, targetShardCount_);
        }
        if (((bitField0_ & 0x00000002) != 0)) {
          output.writeInt32(2, targetReplicaCount_);
        }
        getUnknownFields().writeTo(output);
      }
<pre>
Output only. Target number of replica nodes per shard for the instance.
</pre>

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

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