/** * Converts wire type to proto type. * * @param blockLocation the wire type to convert * @return the converted proto type */ public static alluxio.grpc.BlockLocation toProto(BlockLocation blockLocation) { return alluxio.grpc.BlockLocation.newBuilder().setWorkerId(blockLocation.getWorkerId()) .setWorkerAddress(toProto(blockLocation.getWorkerAddress())) .setTierAlias(blockLocation.getTierAlias()).build(); }