Table of Contents

Struct HarmSeverity

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

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

IReadOnlyList<HarmSeverity>

HarmSeverityHigh

The harm severity is high.

public static HarmSeverity HarmSeverityHigh { get; }

Property Value

HarmSeverity

HarmSeverityLow

The harm severity is low.

public static HarmSeverity HarmSeverityLow { get; }

Property Value

HarmSeverity

HarmSeverityMedium

The harm severity is medium.

public static HarmSeverity HarmSeverityMedium { get; }

Property Value

HarmSeverity

HarmSeverityNegligible

The harm severity is negligible.

public static HarmSeverity HarmSeverityNegligible { get; }

Property Value

HarmSeverity

HarmSeverityUnspecified

The harm severity is unspecified.

public static HarmSeverity HarmSeverityUnspecified { get; }

Property Value

HarmSeverity

Value

public string Value { get; }

Property Value

string

Methods

Equals(HarmSeverity)

public bool Equals(HarmSeverity other)

Parameters

other HarmSeverity

Returns

bool

FromString(string)

public static HarmSeverity FromString(string value)

Parameters

value string

Returns

HarmSeverity

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

implicit operator HarmSeverity(string)

public static implicit operator HarmSeverity(string value)

Parameters

value string

Returns

HarmSeverity