hash = (53 * hash) + getErrorMessage().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; }
result = result && getErrorMessage() .equals(other.getErrorMessage());
/** * <code>optional string error_message = 4;</code> */ public Builder clearErrorMessage() { bitField0_ = (bitField0_ & ~0x00000008); errorMessage_ = getDefaultInstance().getErrorMessage(); onChanged(); return this; } /**