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