public override int GetId() { lock (this) { MRProtos.TaskAttemptIdProtoOrBuilder p = viaProto ? proto : builder; return(p.GetId()); } }
public override TaskId GetTaskId() { lock (this) { MRProtos.TaskAttemptIdProtoOrBuilder p = viaProto ? proto : builder; if (this.taskId != null) { return(this.taskId); } if (!p.HasTaskId()) { return(null); } taskId = ConvertFromProtoFormat(p.GetTaskId()); return(taskId); } }