Threshold

enum Threshold : Enum<Threshold>

Enumerates the possible thresholds for content blocking or filtering based on safety assessments.

This enumeration defines different levels of sensitivity for content filtering mechanisms, allowing for a range of responses from no action to blocking content that meets or exceeds a certain probability of being harmful. The thresholds are used in conjunction with HarmCategory settings to determine how content should be handled based on its assessed risk of harm.

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
val entries: EnumEntries<Threshold>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
val name: String
Link copied to clipboard
val ordinal: Int

Functions

Link copied to clipboard
fun valueOf(value: String): Threshold

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.)

Link copied to clipboard
fun values(): Array<Threshold>

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