@Override public GetTaskReportResponseProto getTaskReport(RpcController controller, GetTaskReportRequestProto proto) throws ServiceException { GetTaskReportRequest request = new GetTaskReportRequestPBImpl(proto); try { GetTaskReportResponse response = real.getTaskReport(request); return ((GetTaskReportResponsePBImpl)response).getProto(); } catch (IOException e) { throw new ServiceException(e); } }
public GetTaskReportResponsePBImpl() { builder = GetTaskReportResponseProto.newBuilder(); }
public GetTaskReportResponsePBImpl(GetTaskReportResponseProto proto) { this.proto = proto; viaProto = true; }
public GetTaskReportResponseProto getProto() { mergeLocalToProto(); proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
private void maybeInitBuilder() { if (viaProto || builder == null) { builder = GetTaskReportResponseProto.newBuilder(proto); } viaProto = false; }