private CounterGroupPBImpl convertFromProtoFormat(CounterGroupProto p) { return new CounterGroupPBImpl(p); }
private CounterGroupProto convertToProtoFormat(CounterGroup t) { return ((CounterGroupPBImpl)t).getProto(); }
public CounterGroupPBImpl() { builder = CounterGroupProto.newBuilder(); }
public CounterGroupPBImpl(CounterGroupProto proto) { this.proto = proto; viaProto = true; }
public CounterGroupProto getProto() { mergeLocalToProto(); proto = viaProto ? proto : builder.build(); viaProto = true; return proto; }
private void maybeInitBuilder() { if (viaProto || builder == null) { builder = CounterGroupProto.newBuilder(proto); } viaProto = false; }