GenaiVertexV1SafetySetting class

A safety setting that affects the safety-blocking behavior.

A SafetySetting consists of a harm category and a threshold for that category.

Constructors

GenaiVertexV1SafetySetting({String? method, String? threshold, String? type})
GenaiVertexV1SafetySetting.fromJson(Map json_)

Properties

hashCode → int
The hash code for this object.
no setterinherited
method ↔ String?
The method for blocking content.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
threshold ↔ String?
The threshold for blocking content.
getter/setter pair
type ↔ String?
The type of harm category to be blocked.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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