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 KillJobRequestProto getProto() { mergeLocalToProto(); proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
@Override public void setJobId(JobId jobId) { maybeInitBuilder(); if (jobId == null) builder.clearJobId(); this.jobId = jobId; }
@Override public KillJobResponseProto killJob(RpcController controller, KillJobRequestProto proto) throws ServiceException { KillJobRequest request = new KillJobRequestPBImpl(proto); try { KillJobResponse response = real.killJob(request); return ((KillJobResponsePBImpl)response).getProto(); } catch (IOException e) { throw new ServiceException(e); } }
@Override public JobId getJobId() { KillJobRequestProtoOrBuilder 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 KillJobResponse killJob(KillJobRequest request) throws IOException { KillJobRequestProto requestProto = ((KillJobRequestPBImpl)request).getProto(); try { return new KillJobResponsePBImpl(proxy.killJob(null, requestProto)); } catch (ServiceException e) { throw unwrapAndThrowException(e); } }
@Override public void setJobId(JobId jobId) { maybeInitBuilder(); if (jobId == null) builder.clearJobId(); this.jobId = jobId; }
@Override public KillJobResponseProto killJob(RpcController controller, KillJobRequestProto proto) throws ServiceException { KillJobRequest request = new KillJobRequestPBImpl(proto); try { KillJobResponse response = real.killJob(request); return ((KillJobResponsePBImpl)response).getProto(); } catch (IOException e) { throw new ServiceException(e); } }
@Override public JobId getJobId() { KillJobRequestProtoOrBuilder 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 KillJobResponse killJob(KillJobRequest request) throws IOException { KillJobRequestProto requestProto = ((KillJobRequestPBImpl)request).getProto(); try { return new KillJobResponsePBImpl(proxy.killJob(null, requestProto)); } catch (ServiceException e) { throw unwrapAndThrowException(e); } }
private void mergeLocalToProto() { if (viaProto) maybeInitBuilder(); mergeLocalToBuilder(); proto = builder.build(); viaProto = true; }
@Override public void setJobId(JobId jobId) { maybeInitBuilder(); if (jobId == null) builder.clearJobId(); this.jobId = jobId; }
@Override public KillJobResponseProto killJob(RpcController controller, KillJobRequestProto proto) throws ServiceException { KillJobRequest request = new KillJobRequestPBImpl(proto); try { KillJobResponse response = real.killJob(request); return ((KillJobResponsePBImpl)response).getProto(); } catch (IOException e) { throw new ServiceException(e); } }
public KillJobRequestProto getProto() { mergeLocalToProto(); proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
@Override public JobId getJobId() { KillJobRequestProtoOrBuilder p = viaProto ? proto : builder; if (this.jobId != null) { return this.jobId; } if (!p.hasJobId()) { return null; } this.jobId = convertFromProtoFormat(p.getJobId()); return this.jobId; }
private void mergeLocalToBuilder() { if (this.jobId != null) { builder.setJobId(convertToProtoFormat(this.jobId)); } }
@Override public KillJobResponse killJob(KillJobRequest request) throws IOException { KillJobRequestProto requestProto = ((KillJobRequestPBImpl)request).getProto(); try { return new KillJobResponsePBImpl(proxy.killJob(null, requestProto)); } catch (ServiceException e) { throw unwrapAndThrowException(e); } }
private void mergeLocalToProto() { if (viaProto) maybeInitBuilder(); mergeLocalToBuilder(); proto = builder.build(); viaProto = true; }
@Override public void setJobId(JobId jobId) { maybeInitBuilder(); if (jobId == null) builder.clearJobId(); this.jobId = jobId; }