private PriorityPBImpl convertFromProtoFormat(PriorityProto p) { return new PriorityPBImpl(p); }
private PriorityProto convertToProtoFormat(Priority p) { return ((PriorityPBImpl)p).getProto(); }
public PriorityPBImpl() { builder = PriorityProto.newBuilder(); }
public PriorityPBImpl(PriorityProto proto) { this.proto = proto; viaProto = true; }
public PriorityProto getProto() { proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
private void maybeInitBuilder() { if (viaProto || builder == null) { builder = PriorityProto.newBuilder(proto); } viaProto = false; }
private PriorityProto convertToProtoFormat(Priority t) { return ((PriorityPBImpl)t).getProto(); }
private PriorityProto convertToProtoFormat(Priority p) { return ((PriorityPBImpl) p).getProto(); }
private PriorityProto convertToProtoFormat(Priority priority) { return ((PriorityPBImpl) priority).getProto(); }
private PriorityPBImpl convertFromProtoFormat(PriorityProto priority) { return new PriorityPBImpl(priority); }
private PriorityProto convertToProtoFormat(Priority t) { return ((PriorityPBImpl) t).getProto(); }
@Test public void testPriorityPBImpl() throws Exception { validatePBImplRecord(PriorityPBImpl.class, PriorityProto.class); }