public alluxio.grpc.WorkerIdentity toProto() {
    return Parsers.toProto(this);
  }
@Test
  public void legacyConvertToProto() throws Exception {
    WorkerIdentity identity = new WorkerIdentity(Longs.toByteArray(1L), 0);
    alluxio.grpc.WorkerIdentity identityProto = identity.toProto();
    assertEquals(alluxio.grpc.WorkerIdentity.newBuilder()
            .setVersion(0)
            .setIdentifier(ByteString.copyFrom(Longs.toByteArray(1L)))
            .build(),
        identityProto);
  }