BlockReason

public final class BlockReason


Describes why content was blocked.

Summary

Nested types

public static class BlockReason.Companion

Public fields

static final @NonNull BlockReason

Content was blocked for another reason.

static final @NonNull BlockReason

Content was blocked for another reason.

static final @NonNull BlockReason

Candidates blocked due to the terms which are included from the terminology blocklist.

static final @NonNull BlockReason

Content was blocked for violating provided SafetySetting.

static final @NonNull BlockReason

A new and not yet supported value.

final @NonNull String
final int

Public fields

BLOCKLIST

public static final @NonNull BlockReason BLOCKLIST

Content was blocked for another reason.

OTHER

public static final @NonNull BlockReason OTHER

Content was blocked for another reason.

PROHIBITED_CONTENT

public static final @NonNull BlockReason PROHIBITED_CONTENT

Candidates blocked due to the terms which are included from the terminology blocklist.

SAFETY

public static final @NonNull BlockReason SAFETY

Content was blocked for violating provided SafetySetting.

UNKNOWN

public static final @NonNull BlockReason UNKNOWN

A new and not yet supported value.

name

public final @NonNull String name

ordinal

public final int ordinal