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