예제 #1
0
 public static DataExistsReply fromSerializable(Object serializable) {
   ShardTransactionMessages.DataExistsReply o =
       (ShardTransactionMessages.DataExistsReply) serializable;
   return new DataExistsReply(o.getExists());
 }
예제 #2
0
 @Override
 public Object toSerializable() {
   return ShardTransactionMessages.DataExistsReply.newBuilder().setExists(exists).build();
 }