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