private PreemptionContractPBImpl convertFromProtoFormat( PreemptionContractProto p) { return new PreemptionContractPBImpl(p); }
private PreemptionContractProto convertToProtoFormat( PreemptionContract t) { return ((PreemptionContractPBImpl)t).getProto(); }
public PreemptionContractPBImpl() { builder = PreemptionContractProto.newBuilder(); }
public PreemptionContractPBImpl(PreemptionContractProto proto) { this.proto = proto; viaProto = true; }
public synchronized PreemptionContractProto getProto() { mergeLocalToProto(); proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
private void maybeInitBuilder() { if (viaProto || builder == null) { builder = PreemptionContractProto.newBuilder(proto); } viaProto = false; }
@Test public void testPreemptionContractPBImpl() throws Exception { validatePBImplRecord(PreemptionContractPBImpl.class, PreemptionContractProto.class); }