public override int GetHashCode() { int hash = 1; if (Level != 0) { hash ^= Level.GetHashCode(); } if (Severity != 0) { hash ^= Severity.GetHashCode(); } if (Format != 0) { hash ^= Format.GetHashCode(); } if (Body.Length != 0) { hash ^= Body.GetHashCode(); } if (Tags.Length != 0) { hash ^= Tags.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public virtual int _GetUniqueIdentifier() { var hashCode = 399326290; hashCode = hashCode * -1521134295 + (WayPointVisibilityID?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (Waypoint?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (From?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (To?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (ConveyanceId?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (ConveyanceRef?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (ShippingAgent?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (TotalConsignments?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (DirectConsignments?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (TransshipmentConsignments?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (TotalCargos?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (FullCargos?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (EmptyCargos?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (TotalRiskDetected?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (Consignment?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (CargoId?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (RiskType?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (RiskScore?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (Severity?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (Details?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (Suggestions?.GetHashCode() ?? 0); return(hashCode); }
public override int GetHashCode() { int hash = 1; if (Severity != 0) { hash ^= Severity.GetHashCode(); } if (Code != 0) { hash ^= Code.GetHashCode(); } if (SqlState.Length != 0) { hash ^= SqlState.GetHashCode(); } if (Msg.Length != 0) { hash ^= Msg.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { if (!_HashCode.HasValue) { const int multiplier = 17; int hash = Severity.GetHashCode(); hash = hash * multiplier + Channel.GetHashCode(); hash = hash * multiplier + IsTraced.GetHashCode(); // go through payload list to get hashcode // maybe it's better to get hashcode from the generated message instead foreach (object obj in Payload) { if (obj != null) { hash = hash * multiplier + obj.GetHashCode(); } else { hash *= multiplier; } } _HashCode = hash; } return(_HashCode.Value); }
/// <inheritdoc/> public override int GetHashCode() { int hashCode = 1638003424; hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ProjectName !); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(FileName !); hashCode = hashCode * -1521134295 + Line.GetHashCode(); hashCode = hashCode * -1521134295 + Column.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Message !); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ErrorCode !); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ErrorCodeToolTip !); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ErrorCategory !); hashCode = hashCode * -1521134295 + Severity.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(HelpLink !); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(BuildTool !); return(hashCode); }
public override int GetHashCode() { unchecked { var hashCode = AlertID; hashCode = (hashCode * 397) ^ Code; hashCode = (hashCode * 397) ^ (Source != null ? Source.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Title != null ? Title.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Severity != null ? Severity.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Created.GetHashCode(); hashCode = (hashCode * 397) ^ SnoozedEndDate.GetHashCode(); hashCode = (hashCode * 397) ^ (ThresholdValue1 != null ? ThresholdValue1.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ThresholdValue2 != null ? ThresholdValue2.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ThresholdValue3 != null ? ThresholdValue3.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ThresholdValue4 != null ? ThresholdValue4.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ThresholdValue5 != null ? ThresholdValue5.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (DeviceGuid != null ? DeviceGuid.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (AdditionalInfo != null ? AdditionalInfo.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (AlertCategoryID != null ? AlertCategoryID.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Archived.GetHashCode(); hashCode = (hashCode * 397) ^ ArchivedDate.GetHashCode(); hashCode = (hashCode * 397) ^ TicketID.GetHashCode(); hashCode = (hashCode * 397) ^ (AlertMessage != null ? AlertMessage.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (DeviceName != null ? DeviceName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ CustomerID; hashCode = (hashCode * 397) ^ (CustomerName != null ? CustomerName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (MessageTemplate != null ? MessageTemplate.GetHashCode() : 0); hashCode = (hashCode * 397) ^ FolderID.GetHashCode(); hashCode = (hashCode * 397) ^ PollingCyclesCount.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (ResourceUri.Length != 0) { hash ^= ResourceUri.GetHashCode(); } if (Severity != global::Grafeas.V1.Severity.Unspecified) { hash ^= Severity.GetHashCode(); } if (FixableCount != 0L) { hash ^= FixableCount.GetHashCode(); } if (TotalCount != 0L) { hash ^= TotalCount.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (GameplayerWeather.Length != 0) { hash ^= GameplayerWeather.GetHashCode(); } if (AlertActive != false) { hash ^= AlertActive.GetHashCode(); } if (Severity != 0) { hash ^= Severity.GetHashCode(); } if (UserReport != 0) { hash ^= UserReport.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 (Id != null) { hashCode = hashCode * 59 + Id.GetHashCode(); } hashCode = hashCode * 59 + Severity.GetHashCode(); hashCode = hashCode * 59 + Passed.GetHashCode(); hashCode = hashCode * 59 + Override.GetHashCode(); if (ActualValue != null) { hashCode = hashCode * 59 + ActualValue.GetHashCode(); } if (ExpectedValue != null) { hashCode = hashCode * 59 + ExpectedValue.GetHashCode(); } hashCode = hashCode * 59 + Comparator.GetHashCode(); if (Kpi != null) { hashCode = hashCode * 59 + Kpi.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { return(InvalidItem.GetHashCode() + PropertyName.GetHashCode() + Severity.GetHashCode() + ValidationCode.GetHashCode() + Message.GetHashCode() + Recommendation.GetHashCode()); }
public override int GetHashCode() { int hash = 1; if (LogName.Length != 0) { hash ^= LogName.GetHashCode(); } if (resource_ != null) { hash ^= Resource.GetHashCode(); } if (payloadCase_ == PayloadOneofCase.ProtoPayload) { hash ^= ProtoPayload.GetHashCode(); } if (payloadCase_ == PayloadOneofCase.TextPayload) { hash ^= TextPayload.GetHashCode(); } if (payloadCase_ == PayloadOneofCase.JsonPayload) { hash ^= JsonPayload.GetHashCode(); } if (timestamp_ != null) { hash ^= Timestamp.GetHashCode(); } if (Severity != 0) { hash ^= Severity.GetHashCode(); } if (InsertId.Length != 0) { hash ^= InsertId.GetHashCode(); } if (httpRequest_ != null) { hash ^= HttpRequest.GetHashCode(); } hash ^= Labels.GetHashCode(); if (operation_ != null) { hash ^= Operation.GetHashCode(); } if (Trace.Length != 0) { hash ^= Trace.GetHashCode(); } if (sourceLocation_ != null) { hash ^= SourceLocation.GetHashCode(); } hash ^= (int)payloadCase_; return(hash); }
public override int GetHashCode() { unchecked { int result = Severity.GetHashCode(); result = (result * 397) ^ Code; result = (result * 397) ^ Region.GetHashCode(); result = (result * 397) ^ (Format != null ? Format.GetHashCode() : 0); return(result); } }
public override int GetHashCode() { int hash = 1; if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (Parent.Length != 0) { hash ^= Parent.GetHashCode(); } if (ResourceName.Length != 0) { hash ^= ResourceName.GetHashCode(); } if (State != global::Google.Cloud.SecurityCenter.V1P1Beta1.Finding.Types.State.Unspecified) { hash ^= State.GetHashCode(); } if (Category.Length != 0) { hash ^= Category.GetHashCode(); } if (ExternalUri.Length != 0) { hash ^= ExternalUri.GetHashCode(); } hash ^= SourceProperties.GetHashCode(); if (securityMarks_ != null) { hash ^= SecurityMarks.GetHashCode(); } if (eventTime_ != null) { hash ^= EventTime.GetHashCode(); } if (createTime_ != null) { hash ^= CreateTime.GetHashCode(); } if (Severity != global::Google.Cloud.SecurityCenter.V1P1Beta1.Finding.Types.Severity.Unspecified) { hash ^= Severity.GetHashCode(); } if (CanonicalName.Length != 0) { hash ^= CanonicalName.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { unchecked { var hash = 17; hash = hash * 23 + id.GetHashCode(); hash = hash * 23 + filter.GetHashCode(); hash = hash * 23 + severity.GetHashCode(); return(hash); } }
public override int GetHashCode() { unchecked { const int hashingBase = (int)2166136261; const int hashingMultiplier = 16777619; var hash = hashingBase; hash = (hash * hashingMultiplier) ^ Severity.GetHashCode(); return((hash * hashingMultiplier) ^ (Message != null ? Message.GetHashCode() : 0)); } }
public override int GetHashCode() { int hash = 1; if (Severity != 0) { hash ^= Severity.GetHashCode(); } if (WarnWeather != false) { hash ^= WarnWeather.GetHashCode(); } return(hash); }
public virtual int _GetUniqueIdentifier() { var hashCode = 399326290; hashCode = hashCode * -1521134295 + (WaypointriskID?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (Consignment?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (CargoId?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (RiskTypeId?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (RiskScore?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (Severity?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (Details?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (Suggestions?.GetHashCode() ?? 0); return(hashCode); }
public override int GetHashCode() { unchecked { // Large primes to avoid hashing collisions const int hashingBase = (int)2166136261; const int hashingMultiplier = 16777619; int hash = hashingBase; hash = (hash * hashingMultiplier) ^ (!Object.ReferenceEquals(null, Severity) ? Severity.GetHashCode() : 0); hash = (hash * hashingMultiplier) ^ (!Object.ReferenceEquals(null, Message) ? Message.GetHashCode() : 0); return(hash); } }
public override int GetHashCode() { int hashCode = Severity.GetHashCode() ^ Message.GetHashCode(); if (Description != null) { hashCode ^= Description.GetHashCode(); } if (Exception != null) { hashCode ^= Exception.GetHashCode(); } return(hashCode); }
public override int GetHashCode() { int hash = 1; if (Severity != 0) { hash ^= Severity.GetHashCode(); } if (WarnWeather != false) { hash ^= WarnWeather.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { var hashCode = 68217818; hashCode = hashCode * -1521134295 + Type.GetHashCode(); hashCode = hashCode * -1521134295 + Severity.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Title); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Message); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Attribution); hashCode = hashCode * -1521134295 + EqualityComparer <DateTimeOffset> .Default.GetHashCode(Date); hashCode = hashCode * -1521134295 + EqualityComparer <DateTimeOffset> .Default.GetHashCode(ExpiresDate); return(hashCode); }
/// <inheritdoc/> public override int GetHashCode() { int hashCode = 1054991603; hashCode = (hashCode * -1521134295) + EqualityComparer <IList <DiagnosticResultLocation> > .Default.GetHashCode(_locations); hashCode = (hashCode * -1521134295) + EqualityComparer <IList <DiagnosticResultLocation> > .Default.GetHashCode(Locations); hashCode = (hashCode * -1521134295) + Severity.GetHashCode(); hashCode = (hashCode * -1521134295) + EqualityComparer <string> .Default.GetHashCode(Id); hashCode = (hashCode * -1521134295) + EqualityComparer <string> .Default.GetHashCode(Message); hashCode = (hashCode * -1521134295) + EqualityComparer <string> .Default.GetHashCode(Path); hashCode = (hashCode * -1521134295) + Line.GetHashCode(); hashCode = (hashCode * -1521134295) + Column.GetHashCode(); return(hashCode); }
public override int GetHashCode() { int hash = 1; if (Severity != global::Google.Cloud.Dialogflow.V2.ValidationError.Types.Severity.Unspecified) { hash ^= Severity.GetHashCode(); } hash ^= entries_.GetHashCode(); if (ErrorMessage.Length != 0) { hash ^= ErrorMessage.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (ResourceType != global::Google.Cloud.Dialogflow.Cx.V3.ValidationMessage.Types.ResourceType.Unspecified) { hash ^= ResourceType.GetHashCode(); } hash ^= resources_.GetHashCode(); hash ^= resourceNames_.GetHashCode(); if (Severity != global::Google.Cloud.Dialogflow.Cx.V3.ValidationMessage.Types.Severity.Unspecified) { hash ^= Severity.GetHashCode(); } if (Detail.Length != 0) { hash ^= Detail.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { return(Severity.GetHashCode() ^ Message.GetHashCode()); }
public override int GetHashCode() { unchecked { const int HashingBase = (int)2166136261; const int HashingMultiplier = 16777619; var hash = HashingBase; hash = (hash * HashingMultiplier) ^ (!ReferenceEquals(null, Severity) ? Severity.GetHashCode() : 0); hash = (hash * HashingMultiplier) ^ (!ReferenceEquals(null, Message) ? Message.GetHashCode() : 0); return(hash); } }
public override int GetHashCode() { int hash = 1; if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (FindingType.Length != 0) { hash ^= FindingType.GetHashCode(); } if (Severity != global::Google.Cloud.WebSecurityScanner.V1.Finding.Types.Severity.Unspecified) { hash ^= Severity.GetHashCode(); } if (HttpMethod.Length != 0) { hash ^= HttpMethod.GetHashCode(); } if (FuzzedUrl.Length != 0) { hash ^= FuzzedUrl.GetHashCode(); } if (Body.Length != 0) { hash ^= Body.GetHashCode(); } if (Description.Length != 0) { hash ^= Description.GetHashCode(); } if (ReproductionUrl.Length != 0) { hash ^= ReproductionUrl.GetHashCode(); } if (FrameUrl.Length != 0) { hash ^= FrameUrl.GetHashCode(); } if (FinalUrl.Length != 0) { hash ^= FinalUrl.GetHashCode(); } if (TrackingId.Length != 0) { hash ^= TrackingId.GetHashCode(); } if (form_ != null) { hash ^= Form.GetHashCode(); } if (outdatedLibrary_ != null) { hash ^= OutdatedLibrary.GetHashCode(); } if (violatingResource_ != null) { hash ^= ViolatingResource.GetHashCode(); } if (vulnerableHeaders_ != null) { hash ^= VulnerableHeaders.GetHashCode(); } if (vulnerableParameters_ != null) { hash ^= VulnerableParameters.GetHashCode(); } if (xss_ != null) { hash ^= Xss.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { return((152123 * 221 + Severity.GetHashCode()) * -15211347 + EqualityComparer <string> .Default.GetHashCode(Message)); }