HarmBlockThreshold enum

Probability of harm which causes content to be blocked.

When provided in SafetySetting.threshold, a predicted harm probability at or above this level will block content from being returned.

Inheritance
Available extensions

Values

low → const HarmBlockThreshold

Block when medium or high probability of unsafe content.

const HarmBlockThreshold('BLOCK_LOW_AND_ABOVE')
medium → const HarmBlockThreshold

Block when medium or high probability of unsafe content.

const HarmBlockThreshold('BLOCK_MEDIUM_AND_ABOVE')
high → const HarmBlockThreshold

Block when high probability of unsafe content.

const HarmBlockThreshold('BLOCK_ONLY_HIGH')
none → const HarmBlockThreshold

Always show regardless of probability of unsafe content.

const HarmBlockThreshold('BLOCK_NONE')
off → const HarmBlockThreshold

All content is allowed regardless of harm.

metadata will not be included in the response.

const HarmBlockThreshold('OFF')

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Object
Convert to json format.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

values → const List<HarmBlockThreshold>
A constant List of the values in this enum, in order of their declaration.