public AllocateResponsePBImpl() { builder = AllocateResponseProto.newBuilder(); }
public AllocateResponsePBImpl(AllocateResponseProto proto) { this.proto = proto; viaProto = true; }
public synchronized AllocateResponseProto getProto() { mergeLocalToProto(); proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
private synchronized void maybeInitBuilder() { if (viaProto || builder == null) { builder = AllocateResponseProto.newBuilder(proto); } viaProto = false; }
@Test public void testAllocateResponsePBImpl() throws Exception { validatePBImplRecord(AllocateResponsePBImpl.class, AllocateResponseProto.class); }