@Override public UseSharedCacheResourceResponse use( UseSharedCacheResourceRequest request) throws YarnException, IOException { UseSharedCacheResourceRequestProto requestProto = ((UseSharedCacheResourceRequestPBImpl) request).getProto(); try { return new UseSharedCacheResourceResponsePBImpl(proxy.use(null, requestProto)); } catch (ServiceException e) { RPCUtil.unwrapAndThrowException(e); return null; } }
public UseSharedCacheResourceRequestPBImpl() { builder = UseSharedCacheResourceRequestProto.newBuilder(); }
public UseSharedCacheResourceRequestPBImpl( UseSharedCacheResourceRequestProto proto) { this.proto = proto; viaProto = true; }
public UseSharedCacheResourceRequestProto getProto() { mergeLocalToProto(); proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
private void maybeInitBuilder() { if (viaProto || builder == null) { builder = UseSharedCacheResourceRequestProto.newBuilder(proto); } viaProto = false; }