public long sizeInBytes() {
    long size = (token == null ? 0 : (token.toBytes().length + Remote_Replica_Lag_Size_In_Bytes + messageInfoListSize))
        + +partitionId.getBytes().length + Error_Size_InBytes;
    if (responseVersion == ReplicaMetadataResponse.REPLICA_METADATA_RESPONSE_VERSION_V_6) {
      size += ReplicaType_Size_In_Bytes;
    }
    return size;
  }
Contains the token, messageInfoList, remoteReplicaLag for a local partition. This is used
by replica metadata response to specify information for a partition
ambry-protocol/src/main/java/com/github/ambry/protocol/ReplicaMetadataResponseInfo.java