HarmCategory

public final class HarmCategory


Category for a given harm rating.

Summary

Nested types

public static class HarmCategory.Companion

Public fields

static final @NonNull HarmCategory

Represents the harm category for content that is classified as content that may be used to harm civic integrity.

static final @NonNull HarmCategory

Represents the harm category for content that is classified as dangerous content.

static final @NonNull HarmCategory

Represents the harm category for content that is classified as harassment.

static final @NonNull HarmCategory

Represents the harm category for content that is classified as hate speech.

static final @NonNull HarmCategory

Represents the harm category for image content that is classified as dangerous.

static final @NonNull HarmCategory

Represents the harm category for image content that is classified as harassment.

static final @NonNull HarmCategory

Represents the harm category for image content that is classified as hateful.

static final @NonNull HarmCategory

Represents the harm category for image content that is classified as sexually explicit.

static final @NonNull HarmCategory

Represents the harm category for content that is classified as sexually explicit content.

static final @NonNull HarmCategory

A new and not yet supported value.

final int

Public fields

CIVIC_INTEGRITY

public static final @NonNull HarmCategory CIVIC_INTEGRITY

Represents the harm category for content that is classified as content that may be used to harm civic integrity.

DANGEROUS_CONTENT

public static final @NonNull HarmCategory DANGEROUS_CONTENT

Represents the harm category for content that is classified as dangerous content.

HARASSMENT

public static final @NonNull HarmCategory HARASSMENT

Represents the harm category for content that is classified as harassment.

HATE_SPEECH

public static final @NonNull HarmCategory HATE_SPEECH

Represents the harm category for content that is classified as hate speech.

IMAGE_DANGEROUS_CONTENT

public static final @NonNull HarmCategory IMAGE_DANGEROUS_CONTENT

Represents the harm category for image content that is classified as dangerous.

IMAGE_HARASSMENT

public static final @NonNull HarmCategory IMAGE_HARASSMENT

Represents the harm category for image content that is classified as harassment.

IMAGE_HATE

public static final @NonNull HarmCategory IMAGE_HATE

Represents the harm category for image content that is classified as hateful.

IMAGE_SEXUALLY_EXPLICIT

public static final @NonNull HarmCategory IMAGE_SEXUALLY_EXPLICIT

Represents the harm category for image content that is classified as sexually explicit.

SEXUALLY_EXPLICIT

public static final @NonNull HarmCategory SEXUALLY_EXPLICIT

Represents the harm category for content that is classified as sexually explicit content.

UNKNOWN

public static final @NonNull HarmCategory UNKNOWN

A new and not yet supported value.

ordinal

public final int ordinal