@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); } }
public GetTaskReportsRequestPBImpl() { builder = GetTaskReportsRequestProto.newBuilder(); }
public GetTaskReportsRequestPBImpl(GetTaskReportsRequestProto proto) { this.proto = proto; viaProto = true; }
public GetTaskReportsRequestProto getProto() { mergeLocalToProto(); proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
private void maybeInitBuilder() { if (viaProto || builder == null) { builder = GetTaskReportsRequestProto.newBuilder(proto); } viaProto = false; }