HarmCategory

enum HarmCategory : Enum


Category for a given harm rating.

Summary

Enum Values

DANGEROUS_CONTENT

Dangerous content.

HARASSMENT

Harassment content.

HATE_SPEECH

Hate speech and content.

SEXUALLY_EXPLICIT

Sexually explicit content.

UNKNOWN

A new and not yet supported value.

Public functions

HarmCategory
valueOf(value: String)

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

Array<HarmCategory>

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

Enum Values

DANGEROUS_CONTENT

val HarmCategory.DANGEROUS_CONTENTHarmCategory

Dangerous content.

HARASSMENT

val HarmCategory.HARASSMENTHarmCategory

Harassment content.

HATE_SPEECH

val HarmCategory.HATE_SPEECHHarmCategory

Hate speech and content.

SEXUALLY_EXPLICIT

val HarmCategory.SEXUALLY_EXPLICITHarmCategory

Sexually explicit content.

UNKNOWN

val HarmCategory.UNKNOWNHarmCategory

A new and not yet supported value.

Public functions

valueOf

fun valueOf(value: String): HarmCategory

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<HarmCategory>

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.