@java.lang.Override
      public int hashCode() {
        if (memoizedHashCode != 0) {
          return memoizedHashCode;
        }
        int hash = 41;
        hash = (19 * hash) + getDescriptor().hashCode();
        if (hasTargetShardCount()) {
          hash = (37 * hash) + TARGET_SHARD_COUNT_FIELD_NUMBER;
          hash = (53 * hash) + getTargetShardCount();
        }
        if (hasTargetReplicaCount()) {
          hash = (37 * hash) + TARGET_REPLICA_COUNT_FIELD_NUMBER;
          hash = (53 * hash) + getTargetReplicaCount();
        }
        hash = (29 * hash) + getUnknownFields().hashCode();
        memoizedHashCode = hash;
        return hash;
      }
<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