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