GenerateContentResponse_PromptFeedback_BlockReason class final
Specifies the reason why the prompt was blocked.
- Inheritance
-
- Object
- ProtoEnum
- GenerateContentResponse_PromptFeedback_BlockReason
Constructors
- GenerateContentResponse_PromptFeedback_BlockReason(String value)
-
const
- GenerateContentResponse_PromptFeedback_BlockReason.fromJson(Object? json)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isNotDefault → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → String
-
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String -
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- $default → const GenerateContentResponse_PromptFeedback_BlockReason
- The default value for GenerateContentResponse_PromptFeedback_BlockReason.
- blocklist → const GenerateContentResponse_PromptFeedback_BlockReason
- Prompt was blocked due to the terms which are included from the terminology blocklist.
- blockReasonUnspecified → const GenerateContentResponse_PromptFeedback_BlockReason
- Default value. This value is unused.
- imageSafety → const GenerateContentResponse_PromptFeedback_BlockReason
- Candidates blocked due to unsafe image generation content.
- other → const GenerateContentResponse_PromptFeedback_BlockReason
- Prompt was blocked due to unknown reasons.
- prohibitedContent → const GenerateContentResponse_PromptFeedback_BlockReason
- Prompt was blocked due to prohibited content.
- safety → const GenerateContentResponse_PromptFeedback_BlockReason
-
Prompt was blocked due to safety reasons. Inspect
safety_ratingsto understand which safety category blocked it.