@Override public ReservationUpdateResponse updateReservation(ReservationUpdateRequest request) throws YarnException, IOException { ReservationUpdateRequestProto requestProto = ((ReservationUpdateRequestPBImpl) request).getProto(); try { return new ReservationUpdateResponsePBImpl(proxy.updateReservation(null, requestProto)); } catch (ServiceException e) { RPCUtil.unwrapAndThrowException(e); return null; } }
public ReservationUpdateRequestPBImpl() { builder = ReservationUpdateRequestProto.newBuilder(); }
public ReservationUpdateRequestPBImpl(ReservationUpdateRequestProto proto) { this.proto = proto; viaProto = true; }
public ReservationUpdateRequestProto getProto() { mergeLocalToProto(); proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
private void maybeInitBuilder() { if (viaProto || builder == null) { builder = ReservationUpdateRequestProto.newBuilder(proto); } viaProto = false; }
@Test public void testReservationUpdateRequestPBImpl() throws Exception { validatePBImplRecord(ReservationUpdateRequestPBImpl.class, ReservationUpdateRequestProto.class); }