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