code: public static alluxio.grpc.WorkerInfo toProto(WorkerInfo workerInfo) {
      return alluxio.grpc.WorkerInfo.newBuilder().setId(workerInfo.getId())
          .setAddress(toProto(workerInfo.getAddress()))
          .setLastContactSec(workerInfo.getLastContactSec()).setState(workerInfo.getState())
          .setCapacityBytes(workerInfo.getCapacityBytes()).setUsedBytes(workerInfo.getUsedBytes())
          .setStartTimeMs(workerInfo.getStartTimeMs())
          .putAllCapacityBytesOnTiers(workerInfo.getCapacityBytesOnTiers())
          .putAllUsedBytesOnTiers(workerInfo.getUsedBytesOnTiers()).build();
    }
docs: Converts wire type to proto type.
  
  @param workerInfo the wire representation to convert
  @return the converted proto representation