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