Class BlockReason
java.lang.Object
com.google.genai.gaos.models.decisions.BlockReason
BlockReason
Optional. If set, the input was blocked and no answers are returned.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BlockReasonstatic final BlockReasonstatic final BlockReasonstatic final BlockReasonstatic final BlockReason -
Method Summary
-
Field Details
-
SAFETY
-
OTHER
-
BLOCKLIST
-
PROHIBITED_CONTENT
-
IMAGE_SAFETY
-
-
Method Details
-
of
Returns a BlockReason 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 BlockReason
-
value
-
asEnum
-
isKnown
public boolean isKnown() -
hashCode
public int hashCode() -
equals
-
toString
-
values
-