public override int GetId() { lock (this) { MRProtos.TaskIdProtoOrBuilder p = viaProto ? proto : builder; return(p.GetId()); } }
public override TaskType GetTaskType() { lock (this) { MRProtos.TaskIdProtoOrBuilder p = viaProto ? proto : builder; if (!p.HasTaskType()) { return(null); } return(ConvertFromProtoFormat(p.GetTaskType())); } }
public override JobId GetJobId() { lock (this) { MRProtos.TaskIdProtoOrBuilder p = viaProto ? proto : builder; if (this.jobId != null) { return(this.jobId); } if (!p.HasJobId()) { return(null); } jobId = ConvertFromProtoFormat(p.GetJobId()); return(jobId); } }