@Override public GetTaskReportsResponseProto getTaskReports(RpcController controller, GetTaskReportsRequestProto proto) throws ServiceException { GetTaskReportsRequest request = new GetTaskReportsRequestPBImpl(proto); try { GetTaskReportsResponse response = real.getTaskReports(request); return ((GetTaskReportsResponsePBImpl)response).getProto(); } catch (IOException e) { throw new ServiceException(e); } }
@Override public GetTaskReportsResponse getTaskReports(GetTaskReportsRequest request) throws IOException { GetTaskReportsRequestProto requestProto = ((GetTaskReportsRequestPBImpl)request).getProto(); try { return new GetTaskReportsResponsePBImpl(proxy.getTaskReports(null, requestProto)); } catch (ServiceException e) { throw unwrapAndThrowException(e); } }