public ResourceOptionPBImpl() { builder = ResourceOptionProto.newBuilder(); }
public ResourceOptionPBImpl(ResourceOptionProto proto) { this.proto = proto; viaProto = true; }
public ResourceOptionProto getProto() { proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
private void maybeInitBuilder() { if (viaProto || builder == null) { builder = ResourceOptionProto.newBuilder(proto); } viaProto = false; }
private ResourceOptionPBImpl convertFromProtoFormat(ResourceOptionProto c) { return new ResourceOptionPBImpl(c); }
private ResourceOptionProto convertToProtoFormat(ResourceOption c) { return ((ResourceOptionPBImpl)c).getProto(); }
@Test @Ignore // ignore as ResourceOptionPBImpl is immutable public void testResourceOptionPBImpl() throws Exception { validatePBImplRecord(ResourceOptionPBImpl.class, ResourceOptionProto.class); }
public ResourceOptionPBImpl(ResourceOptionProto proto) { this.proto = proto; this.resource = convertFromProtoFormat(proto.getResource()); }
public ResourceOptionProto getProto() { return proto; }