DecisionBlockReason enum

Reasons a decision input was blocked by content filters.

Inheritance
Available extensions

Values

SAFETY → const DecisionBlockReason

Blocked due to safety policies ('safety').

const DecisionBlockReason('safety')
OTHER → const DecisionBlockReason

Blocked for an unspecified reason ('other').

const DecisionBlockReason('other')
BLOCKLIST → const DecisionBlockReason

Blocked due to a configured blocklist ('blocklist').

const DecisionBlockReason('blocklist')
PROHIBITED_CONTENT → const DecisionBlockReason

Blocked due to prohibited content ('prohibited_content').

const DecisionBlockReason('prohibited_content')
IMAGE_SAFETY → const DecisionBlockReason

Blocked due to image safety policies ('image_safety').

const DecisionBlockReason('image_safety')

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
value → String
Lowercase wire representation of this DecisionBlockReason.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → String
Returns the lowercase wire representation.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(String raw) → DecisionBlockReason
Parses a DecisionBlockReason from a wire string (case-insensitive).

Constants

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