private synchronized PreemptionMessagePBImpl convertFromProtoFormat(PreemptionMessageProto p) { return new PreemptionMessagePBImpl(p); }
private synchronized PreemptionMessageProto convertToProtoFormat(PreemptionMessage r) { return ((PreemptionMessagePBImpl)r).getProto(); }
public PreemptionMessagePBImpl() { builder = PreemptionMessageProto.newBuilder(); }
public PreemptionMessagePBImpl(PreemptionMessageProto proto) { this.proto = proto; viaProto = true; }
public synchronized PreemptionMessageProto getProto() { mergeLocalToProto(); proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
private void maybeInitBuilder() { if (viaProto || builder == null) { builder = PreemptionMessageProto.newBuilder(proto); } viaProto = false; }
@Test public void testPreemptionMessagePBImpl() throws Exception { validatePBImplRecord(PreemptionMessagePBImpl.class, PreemptionMessageProto.class); }