hash = (53 * hash) + getResult().hashCode();
/** * @param taskInfo the protocol buffer task information to convert * @return the {@link TaskInfo} version of the given protocol buffer task info */ public static TaskInfo fromProto(Job.TaskInfo taskInfo) { Preconditions.checkState(taskInfo.hasJobId(), "Deserializing protocol task info with unset jobId"); Preconditions.checkState(taskInfo.hasTaskId(), "Deserializing protocol task info with unset taskId"); Preconditions.checkState(taskInfo.hasStatus(), "Deserializing protocol task info with unset status"); TaskInfo info = new TaskInfo() .setJobId(taskInfo.getJobId()) .setTaskId(taskInfo.getTaskId()) .setStatus(fromProto(taskInfo.getStatus())) .setErrorMessage(taskInfo.getErrorMessage()); if (taskInfo.hasResult()) { info.setResult(taskInfo.getResult().toByteArray()); } return info; }
public Builder mergeFrom(alluxio.proto.journal.Job.TaskInfo other) { if (other == alluxio.proto.journal.Job.TaskInfo.getDefaultInstance()) return this; if (other.hasJobId()) { setJobId(other.getJobId()); } if (other.hasTaskId()) { setTaskId(other.getTaskId()); } if (other.hasStatus()) { setStatus(other.getStatus()); } if (other.hasErrorMessage()) { bitField0_ |= 0x00000008; errorMessage_ = other.errorMessage_; onChanged(); } if (other.hasResult()) { setResult(other.getResult()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * <code>optional bytes result = 5;</code> */ public Builder clearResult() { bitField0_ = (bitField0_ & ~0x00000010); result_ = getDefaultInstance().getResult(); onChanged(); return this; } public final Builder setUnknownFields(