Struct HarmSeverity
Output only. The severity of harm for this category. This enum is not supported in Gemini API.
[JsonConverter(typeof(HarmSeverityConverter))]
public readonly record struct HarmSeverity : IEquatable<HarmSeverity>
- Implements
- Inherited Members
Properties
AllValues
public static IReadOnlyList<HarmSeverity> AllValues { get; }
Property Value
HarmSeverityHigh
The harm severity is high.
public static HarmSeverity HarmSeverityHigh { get; }
Property Value
HarmSeverityLow
The harm severity is low.
public static HarmSeverity HarmSeverityLow { get; }
Property Value
HarmSeverityMedium
The harm severity is medium.
public static HarmSeverity HarmSeverityMedium { get; }
Property Value
HarmSeverityNegligible
The harm severity is negligible.
public static HarmSeverity HarmSeverityNegligible { get; }
Property Value
HarmSeverityUnspecified
The harm severity is unspecified.
public static HarmSeverity HarmSeverityUnspecified { get; }
Property Value
Value
public string Value { get; }
Property Value
Methods
Equals(HarmSeverity)
public bool Equals(HarmSeverity other)
Parameters
otherHarmSeverity
Returns
FromString(string)
public static HarmSeverity FromString(string value)
Parameters
valuestring
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
implicit operator HarmSeverity(string)
public static implicit operator HarmSeverity(string value)
Parameters
valuestring