BlockReason

enum BlockReason : Enum


Describes why content was blocked.

Summary

Enum Values

OTHER

Content was blocked for another reason.

SAFETY

Content was blocked for violating provided SafetySetting.

UNKNOWN

A new and not yet supported value.

UNSPECIFIED

Content was blocked for an unspecified reason.

Public functions

BlockReason
valueOf(value: String)

Returns the enum constant of this type with the specified name.

Array<BlockReason>

Returns an array containing the constants of this enum type, in the order they're declared.

Enum Values

OTHER

val BlockReason.OTHERBlockReason

Content was blocked for another reason.

SAFETY

val BlockReason.SAFETYBlockReason

Content was blocked for violating provided SafetySetting.

UNKNOWN

val BlockReason.UNKNOWNBlockReason

A new and not yet supported value.

UNSPECIFIED

val BlockReason.UNSPECIFIEDBlockReason

Content was blocked for an unspecified reason.

Public functions

valueOf

fun valueOf(value: String): BlockReason

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.)

Throws
kotlin.IllegalArgumentException: kotlin.IllegalArgumentException

if this enum type has no constant with the specified name

values

fun values(): Array<BlockReason>

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.