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