public override int GetHashCode() { int hash = 1; if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (TimeColumnSpecId.Length != 0) { hash ^= TimeColumnSpecId.GetHashCode(); } if (RowCount != 0L) { hash ^= RowCount.GetHashCode(); } if (ValidRowCount != 0L) { hash ^= ValidRowCount.GetHashCode(); } if (ColumnCount != 0L) { hash ^= ColumnCount.GetHashCode(); } hash ^= inputConfigs_.GetHashCode(); if (Etag.Length != 0) { hash ^= Etag.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (Page != 0) { hash ^= Page.GetHashCode(); } if (PageSize != 0) { hash ^= PageSize.GetHashCode(); } if (PageCount != 0) { hash ^= PageCount.GetHashCode(); } if (RowCount != 0) { hash ^= RowCount.GetHashCode(); } if (FirstRow != 0) { hash ^= FirstRow.GetHashCode(); } if (LastRow != 0) { hash ^= LastRow.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (Results != null) { hashCode = hashCode * 59 + Results.GetHashCode(); } if (CurrentPage != null) { hashCode = hashCode * 59 + CurrentPage.GetHashCode(); } if (PageCount != null) { hashCode = hashCode * 59 + PageCount.GetHashCode(); } if (PageSize != null) { hashCode = hashCode * 59 + PageSize.GetHashCode(); } if (RowCount != null) { hashCode = hashCode * 59 + RowCount.GetHashCode(); } if (FirstRowOnPage != null) { hashCode = hashCode * 59 + FirstRowOnPage.GetHashCode(); } if (LastRowOnPage != null) { hashCode = hashCode * 59 + LastRowOnPage.GetHashCode(); } return(hashCode); } }