Enum BlockedReason.Known
-
- All Implemented Interfaces:
public enum BlockedReason.KnownEnum representing the known values for BlockedReason.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLOCKED_REASON_UNSPECIFIEDThe blocked reason is unspecified.
SAFETYThe prompt was blocked for safety reasons.
OTHERThe prompt was blocked for other reasons. For example, it may be due to the prompt's language, or because it contains other harmful content.
BLOCKLISTThe prompt was blocked because it contains a term from the terminology blocklist.
PROHIBITED_CONTENTThe prompt was blocked because it contains prohibited content.
IMAGE_SAFETYThe prompt was blocked because it contains content that is unsafe for image generation.
MODEL_ARMORThe prompt was blocked by Model Armor. This enum value is not supported in Gemini API.
JAILBREAKThe prompt was blocked as a jailbreak attempt. This enum value is not supported in Gemini API.
-
Method Summary
Modifier and Type Method Description static Array<BlockedReason.Known>values()Returns an array containing the constants of this enum type, in the order they're declared. static BlockedReason.KnownvalueOf(String name)Returns the enum constant of this type with the specified name. -
-
Method Detail
-
values
static Array<BlockedReason.Known> values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
- Returns:
an array containing the constants of this enum type, in the order they're declared
-
valueOf
static BlockedReason.Known valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
- Returns:
the enum constant with the specified name
-
-
-
-