public override int GetHashCode() { unchecked { var hashCode = TimeRemaining.GetHashCode(); hashCode = (hashCode * 397) ^ (int)State; hashCode = (hashCode * 397) ^ (Status != null ? Status.GetHashCode() : 0); hashCode = (hashCode * 397) ^ PercentComplete.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (Code != global::Clarifai.Api.Status.StatusCode.Zero) { hash ^= Code.GetHashCode(); } if (Description.Length != 0) { hash ^= Description.GetHashCode(); } if (Details.Length != 0) { hash ^= Details.GetHashCode(); } hash ^= stackTrace_.GetHashCode(); if (PercentCompleted != 0) { hash ^= PercentCompleted.GetHashCode(); } if (TimeRemaining != 0) { hash ^= TimeRemaining.GetHashCode(); } if (ReqId.Length != 0) { hash ^= ReqId.GetHashCode(); } if (InternalDetails.Length != 0) { hash ^= InternalDetails.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }