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