private void mergeLocalToBuilder() { if (this.jobId != null) { builder.setJobId(convertToProtoFormat(this.jobId)); } }
private void mergeLocalToProto() { if (viaProto) maybeInitBuilder(); mergeLocalToBuilder(); proto = builder.build(); viaProto = true; }
public GetCountersRequestProto getProto() { mergeLocalToProto(); proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
@Override public GetCountersResponseProto getCounters(RpcController controller, GetCountersRequestProto proto) throws ServiceException { GetCountersRequest request = new GetCountersRequestPBImpl(proto); try { GetCountersResponse response = real.getCounters(request); return ((GetCountersResponsePBImpl)response).getProto(); } catch (IOException e) { throw new ServiceException(e); } }
@Override public GetCountersResponse getCounters(GetCountersRequest request) throws IOException { GetCountersRequestProto requestProto = ((GetCountersRequestPBImpl)request).getProto(); try { return new GetCountersResponsePBImpl(proxy.getCounters(null, requestProto)); } catch (ServiceException e) { throw unwrapAndThrowException(e); } }
@Override public JobId getJobId() { GetCountersRequestProtoOrBuilder p = viaProto ? proto : builder; if (this.jobId != null) { return this.jobId; } if (!p.hasJobId()) { return null; } this.jobId = convertFromProtoFormat(p.getJobId()); return this.jobId; }
@Override public void setJobId(JobId jobId) { maybeInitBuilder(); if (jobId == null) builder.clearJobId(); this.jobId = jobId; }
@Override public GetCountersResponseProto getCounters(RpcController controller, GetCountersRequestProto proto) throws ServiceException { GetCountersRequest request = new GetCountersRequestPBImpl(proto); try { GetCountersResponse response = real.getCounters(request); return ((GetCountersResponsePBImpl)response).getProto(); } catch (IOException e) { throw new ServiceException(e); } }
@Override public GetCountersResponse getCounters(GetCountersRequest request) throws IOException { GetCountersRequestProto requestProto = ((GetCountersRequestPBImpl)request).getProto(); try { return new GetCountersResponsePBImpl(proxy.getCounters(null, requestProto)); } catch (ServiceException e) { throw unwrapAndThrowException(e); } }
@Override public JobId getJobId() { GetCountersRequestProtoOrBuilder p = viaProto ? proto : builder; if (this.jobId != null) { return this.jobId; } if (!p.hasJobId()) { return null; } this.jobId = convertFromProtoFormat(p.getJobId()); return this.jobId; }
@Override public void setJobId(JobId jobId) { maybeInitBuilder(); if (jobId == null) builder.clearJobId(); this.jobId = jobId; }
private void mergeLocalToProto() { if (viaProto) maybeInitBuilder(); mergeLocalToBuilder(); proto = builder.build(); viaProto = true; }
private void mergeLocalToBuilder() { if (this.jobId != null) { builder.setJobId(convertToProtoFormat(this.jobId)); } }
@Override public GetCountersResponseProto getCounters(RpcController controller, GetCountersRequestProto proto) throws ServiceException { GetCountersRequest request = new GetCountersRequestPBImpl(proto); try { GetCountersResponse response = real.getCounters(request); return ((GetCountersResponsePBImpl)response).getProto(); } catch (IOException e) { throw new ServiceException(e); } }
@Override public GetCountersResponse getCounters(GetCountersRequest request) throws IOException { GetCountersRequestProto requestProto = ((GetCountersRequestPBImpl)request).getProto(); try { return new GetCountersResponsePBImpl(proxy.getCounters(null, requestProto)); } catch (ServiceException e) { throw unwrapAndThrowException(e); } }
public GetCountersRequestProto getProto() { mergeLocalToProto(); proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
@Override public JobId getJobId() { GetCountersRequestProtoOrBuilder p = viaProto ? proto : builder; if (this.jobId != null) { return this.jobId; } if (!p.hasJobId()) { return null; } this.jobId = convertFromProtoFormat(p.getJobId()); return this.jobId; }
@Override public void setJobId(JobId jobId) { maybeInitBuilder(); if (jobId == null) builder.clearJobId(); this.jobId = jobId; }
private void mergeLocalToProto() { if (viaProto) maybeInitBuilder(); mergeLocalToBuilder(); proto = builder.build(); viaProto = true; }
private void mergeLocalToBuilder() { if (this.jobId != null) { builder.setJobId(convertToProtoFormat(this.jobId)); } }