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