Class Threshold
java.lang.Object
com.google.genai.gaos.models.interactions.Threshold
Threshold
Required. The threshold for blocking content. If the harm probability exceeds this threshold, the content will be blocked.
-
Field Details
-
BLOCK_LOW_AND_ABOVE
-
BLOCK_MEDIUM_AND_ABOVE
-
BLOCK_ONLY_HIGH
-
BLOCK_NONE
-
OFF
-
-
Method Details
-
of
Returns a Threshold with the given value. For a specific value the returned object will always be a singleton so reference equality is satisfied when the values are the same.- Parameters:
value- value to be wrapped as Threshold
-
value
-
asEnum
-
isKnown
public boolean isKnown() -
hashCode
public int hashCode() -
equals
-
toString
-
values
-