code: public static alluxio.grpc.WorkerNetAddress toProto(WorkerNetAddress workerNetAddress) {
      alluxio.grpc.WorkerNetAddress.Builder address = alluxio.grpc.WorkerNetAddress.newBuilder()
          .setHost(workerNetAddress.getHost()).setRpcPort(workerNetAddress.getRpcPort())
          .setDataPort(workerNetAddress.getDataPort()).setWebPort(workerNetAddress.getWebPort())
          .setDomainSocketPath(workerNetAddress.getDomainSocketPath());
      if (workerNetAddress.getTieredIdentity() != null) {
        address.setTieredIdentity(toProto(workerNetAddress.getTieredIdentity()));
      }
      return address.build();
    }
docs: Converts wire type to proto type.
  
  @param workerNetAddress the wire representation to convert
  @return the converted proto representation