SafetyFeedback class final
Safety feedback for an entire request.
This field is populated if content in the input and/or response is blocked due to safety settings. SafetyFeedback may not exist for every HarmCategory. Each SafetyFeedback will return the safety settings used by the request as well as the lowest HarmProbability that should be allowed in order to return a result.
- Inheritance
-
- Object
- ProtoMessage
- SafetyFeedback
Constructors
- SafetyFeedback({SafetyRating? rating, SafetySetting? setting})
-
SafetyFeedback.fromJson(Map<
String, dynamic> json) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- qualifiedName → String
-
The fully qualified name of this message, i.e.,
google.protobuf.Durationorgoogle.rpc.ErrorInfo.finalinherited - rating → SafetyRating?
-
Safety rating evaluated from content.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- setting → SafetySetting?
-
Safety settings applied to the request.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Object -
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- fullyQualifiedName → const String