public override int GetHashCode() { int hash = 1; if (ResourceName.Length != 0) { hash ^= ResourceName.GetHashCode(); } if (HasName) { hash ^= Name.GetHashCode(); } if (Category != global::Google.Ads.GoogleAds.V10.Enums.GoogleAdsFieldCategoryEnum.Types.GoogleAdsFieldCategory.Unspecified) { hash ^= Category.GetHashCode(); } if (HasSelectable) { hash ^= Selectable.GetHashCode(); } if (HasFilterable) { hash ^= Filterable.GetHashCode(); } if (HasSortable) { hash ^= Sortable.GetHashCode(); } hash ^= selectableWith_.GetHashCode(); hash ^= attributeResources_.GetHashCode(); hash ^= metrics_.GetHashCode(); hash ^= segments_.GetHashCode(); hash ^= enumValues_.GetHashCode(); if (DataType != global::Google.Ads.GoogleAds.V10.Enums.GoogleAdsFieldDataTypeEnum.Types.GoogleAdsFieldDataType.Unspecified) { hash ^= DataType.GetHashCode(); } if (HasTypeUrl) { hash ^= TypeUrl.GetHashCode(); } if (HasIsRepeated) { hash ^= IsRepeated.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
/// <summary> /// The method creates a unique hash code for the object. /// </summary> /// <returns>Returns the hash code of the object</returns> public override int GetHashCode() { int hashCode = -1678590704; hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Title); hashCode = hashCode * -1521134295 + time.GetHashCode(); hashCode = hashCode * -1521134295 + start.GetHashCode(); hashCode = hashCode * -1521134295 + end.GetHashCode(); hashCode = hashCode * -1521134295 + interval.GetHashCode(); hashCode = hashCode * -1521134295 + IsRepeated.GetHashCode(); hashCode = hashCode * -1521134295 + IsActive.GetHashCode(); return(hashCode); }