Share via


ImageCategory Class

public final class ImageCategory
extends ExpandableStringEnum<ImageCategory>

Image analyze category.

Field Summary

Modifier and Type Field and Description
static final ImageCategory HATE

Static value Hate for ImageCategory.

static final ImageCategory SELF_HARM

Static value SelfHarm for ImageCategory.

static final ImageCategory SEXUAL

Static value Sexual for ImageCategory.

static final ImageCategory VIOLENCE

Static value Violence for ImageCategory.

Constructor Summary

Constructor Description
ImageCategory()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ImageCategory value.

Method Summary

Modifier and Type Method and Description
static ImageCategory fromString(String name)

Creates or finds a ImageCategory from its string representation.

static Collection<ImageCategory> values()

Gets known ImageCategory values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

HATE

public static final ImageCategory HATE

Static value Hate for ImageCategory.

SELF_HARM

public static final ImageCategory SELF_HARM

Static value SelfHarm for ImageCategory.

SEXUAL

public static final ImageCategory SEXUAL

Static value Sexual for ImageCategory.

VIOLENCE

public static final ImageCategory VIOLENCE

Static value Violence for ImageCategory.

Constructor Details

ImageCategory

@Deprecated
public ImageCategory()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ImageCategory value.

Method Details

fromString

public static ImageCategory fromString(String name)

Creates or finds a ImageCategory from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding ImageCategory.

values

public static Collection<ImageCategory> values()

Gets known ImageCategory values.

Returns:

known ImageCategory values.

Applies to