public long sizeInBytes() {
    long size = HostName_Field_Size_In_Bytes + hostName.getBytes().length + ReplicaPath_Field_Size_In_Bytes
        + replicaPath.getBytes().length + +partitionId.getBytes().length + token.toBytes().length;
    if (requestVersion == ReplicaMetadataRequest.Replica_Metadata_Request_Version_V2) {
      size += ReplicaType_Size_In_Bytes;
    }
    return size;
  }
Contains the token, hostname, replica path for a local partition. This is used
by replica metadata request to specify token in a partition
ambry-protocol/src/main/java/com/github/ambry/protocol/ReplicaMetadataRequestInfo.java