public void writeTo(ByteBuf buf) {
    Utils.serializeString(buf, hostName, Charset.defaultCharset());
    Utils.serializeString(buf, replicaPath, Charset.defaultCharset());
    if (requestVersion == ReplicaMetadataRequest.Replica_Metadata_Request_Version_V2) {
      buf.writeShort((short) replicaType.ordinal());
    }
    buf.writeBytes(partitionId.getBytes());
    buf.writeBytes(token.toBytes());
  }
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