HarmSeverity

enum HarmSeverity : Enum


Represents the severity of a HarmCategory being applicable in a SafetyRating.

Summary

Enum Values

HIGH

High level of harm severity.

LOW

Low level of harm severity.

MEDIUM

Medium level of harm severity.

NEGLIGIBLE

Severity for harm is negligible.

UNKNOWN

A new and not yet supported value.

UNSPECIFIED

Severity for harm is unspecified.

Public functions

HarmSeverity
valueOf(value: String)

Returns the enum constant of this type with the specified name.

Array<HarmSeverity>

Returns an array containing the constants of this enum type, in the order they're declared.

Enum Values

HIGH

val HarmSeverity.HIGHHarmSeverity

High level of harm severity.

LOW

val HarmSeverity.LOWHarmSeverity

Low level of harm severity.

MEDIUM

val HarmSeverity.MEDIUMHarmSeverity

Medium level of harm severity.

NEGLIGIBLE

val HarmSeverity.NEGLIGIBLEHarmSeverity

Severity for harm is negligible.

UNKNOWN

val HarmSeverity.UNKNOWNHarmSeverity

A new and not yet supported value.

UNSPECIFIED

val HarmSeverity.UNSPECIFIEDHarmSeverity

Severity for harm is unspecified.

Public functions

valueOf

fun valueOf(value: String): HarmSeverity

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Throws
kotlin.IllegalArgumentException: kotlin.IllegalArgumentException

if this enum type has no constant with the specified name

values

fun values(): Array<HarmSeverity>

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.