ImagenSubjectReferenceType

public final class ImagenSubjectReferenceType


Represents a type for a subject reference, specifying how it should be interpreted.

Deprecation Notice: All Imagen models are deprecated and will shut down as early as June 2026. As a replacement, you can migrate your apps to use Gemini Image models (the 'Nano Banana' models)

Summary

Nested types

Public fields

static final @NonNull ImagenSubjectReferenceType

Marks the reference type as being of a animal

static final @NonNull ImagenSubjectReferenceType

Marks the reference type as being of a person

static final @NonNull ImagenSubjectReferenceType

Marks the reference type as being of a product

Public fields

ANIMAL

public static final @NonNull ImagenSubjectReferenceType ANIMAL

Marks the reference type as being of a animal

PERSON

public static final @NonNull ImagenSubjectReferenceType PERSON

Marks the reference type as being of a person

PRODUCT

public static final @NonNull ImagenSubjectReferenceType PRODUCT

Marks the reference type as being of a product