1package sudoku; 2 3import sudoku.Sudoku.SudokuRequest; 4import sudoku.Sudoku.SudokuResponse; 5import sudoku.Sudoku.SudokuService.Interface; 6 7import com.google.protobuf.RpcCallback; 8import com.google.protobuf.RpcController; 9 10public class SudokuImpl implements Interface { 11 12 @Override 13 public void solve(RpcController controller, SudokuRequest request, 14 RpcCallback<SudokuResponse> done) { 15 SudokuResponse resp = SudokuResponse.newBuilder() 16 .setSolved(true).setCheckerboard("12345").build(); 17 done.run(resp); 18 } 19} 20