SafetySetting class final
Safety setting, affecting the safety-blocking behavior.
Passing a safety setting for a category changes the allowed probability that content is blocked.
- Inheritance
-
- Object
- ProtoMessage
- SafetySetting
Constructors
- SafetySetting({required HarmCategory category, required SafetySetting_HarmBlockThreshold threshold})
- SafetySetting.fromJson(Object? j)
-
factory
Properties
- category → HarmCategory
-
Required. The category for this setting.
final
- 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 - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- threshold → SafetySetting_HarmBlockThreshold
-
Required. Controls the probability threshold at which harm is blocked.
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