ContentFilterSeverity Class

public final class ContentFilterSeverity
extends ExpandableStringEnum<ContentFilterSeverity>

Ratings for the intensity and risk level of harmful content.

Field Summary

Modifier and Type Field and Description
static final ContentFilterSeverity HIGH

Content that displays explicit and severe harmful instructions, actions, damage, or abuse; includes endorsement, glorification, or promotion of severe harmful acts, extreme or illegal forms of harm, radicalization, or non-consensual power exchange or abuse.

static final ContentFilterSeverity LOW

Content that expresses prejudiced, judgmental, or opinionated views, includes offensive use of language, stereotyping, use cases exploring a fictional world (for example, gaming, literature) and depictions at low intensity.

static final ContentFilterSeverity MEDIUM

Content that uses offensive, insulting, mocking, intimidating, or demeaning language towards specific identity groups, includes depictions of seeking and executing harmful instructions, fantasies, glorification, promotion of harm at medium intensity.

static final ContentFilterSeverity SAFE

Content may be related to violence, self-harm, sexual, or hate categories but the terms are used in general, journalistic, scientific, medical, and similar professional contexts, which are appropriate for most audiences.

Constructor Summary

Constructor Description
ContentFilterSeverity()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ContentFilterSeverity value.

Method Summary

Modifier and Type Method and Description
static ContentFilterSeverity fromString(String name)

Creates or finds a ContentFilterSeverity from its string representation.

static Collection<ContentFilterSeverity> values()

Gets known ContentFilterSeverity values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

HIGH

public static final ContentFilterSeverity HIGH

Content that displays explicit and severe harmful instructions, actions, damage, or abuse; includes endorsement, glorification, or promotion of severe harmful acts, extreme or illegal forms of harm, radicalization, or non-consensual power exchange or abuse.

LOW

public static final ContentFilterSeverity LOW

Content that expresses prejudiced, judgmental, or opinionated views, includes offensive use of language, stereotyping, use cases exploring a fictional world (for example, gaming, literature) and depictions at low intensity.

MEDIUM

public static final ContentFilterSeverity MEDIUM

Content that uses offensive, insulting, mocking, intimidating, or demeaning language towards specific identity groups, includes depictions of seeking and executing harmful instructions, fantasies, glorification, promotion of harm at medium intensity.

SAFE

public static final ContentFilterSeverity SAFE

Content may be related to violence, self-harm, sexual, or hate categories but the terms are used in general, journalistic, scientific, medical, and similar professional contexts, which are appropriate for most audiences.

Constructor Details

ContentFilterSeverity

@Deprecated
public ContentFilterSeverity()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ContentFilterSeverity value.

Method Details

fromString

public static ContentFilterSeverity fromString(String name)

Creates or finds a ContentFilterSeverity from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding ContentFilterSeverity.

values

public static Collection values()

Gets known ContentFilterSeverity values.

Returns:

known ContentFilterSeverity values.

Applies to