1420c9859SShuo Chenpackage sudoku; 2420c9859SShuo Chen 3420c9859SShuo Chenimport sudoku.Sudoku.SudokuRequest; 4420c9859SShuo Chenimport sudoku.Sudoku.SudokuResponse; 5420c9859SShuo Chenimport sudoku.Sudoku.SudokuService.Interface; 6420c9859SShuo Chen 7420c9859SShuo Chenimport com.google.protobuf.RpcCallback; 8420c9859SShuo Chenimport com.google.protobuf.RpcController; 9420c9859SShuo Chen 10420c9859SShuo Chenpublic class SudokuImpl implements Interface { 11420c9859SShuo Chen 12420c9859SShuo Chen @Override 13420c9859SShuo Chen public void solve(RpcController controller, SudokuRequest request, 14420c9859SShuo Chen RpcCallback<SudokuResponse> done) { 15420c9859SShuo Chen SudokuResponse resp = SudokuResponse.newBuilder() 16420c9859SShuo Chen .setSolved(true).setCheckerboard("12345").build(); 17420c9859SShuo Chen done.run(resp); 18420c9859SShuo Chen } 19420c9859SShuo Chen} 20