@Override public ReservationDeleteResponse deleteReservation(ReservationDeleteRequest request) throws YarnException, IOException { ReservationDeleteRequestProto requestProto = ((ReservationDeleteRequestPBImpl) request).getProto(); try { return new ReservationDeleteResponsePBImpl(proxy.deleteReservation(null, requestProto)); } catch (ServiceException e) { RPCUtil.unwrapAndThrowException(e); return null; } }
public ReservationDeleteRequestPBImpl() { builder = ReservationDeleteRequestProto.newBuilder(); }
public ReservationDeleteRequestPBImpl(ReservationDeleteRequestProto proto) { this.proto = proto; viaProto = true; }
public ReservationDeleteRequestProto getProto() { mergeLocalToProto(); proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
private void maybeInitBuilder() { if (viaProto || builder == null) { builder = ReservationDeleteRequestProto.newBuilder(proto); } viaProto = false; }
@Test public void testReservationDeleteRequestPBImpl() throws Exception { validatePBImplRecord(ReservationDeleteRequestPBImpl.class, ReservationDeleteRequestProto.class); }