Enum ImageConfig.PersonGeneration (3.86.0)

public enum ImageConfig.PersonGeneration extends Enum<ImageConfig.PersonGeneration> implements ProtocolMessageEnum

Enum for controlling the generation of people in images.

Protobuf enum google.cloud.aiplatform.v1.ImageConfig.PersonGeneration

Implements

ProtocolMessageEnum

Static Fields

Name Description
ALLOW_ADULT

Allows the model to generate images of adults, but not children.

ALLOW_ADULT = 2;

ALLOW_ADULT_VALUE

Allows the model to generate images of adults, but not children.

ALLOW_ADULT = 2;

ALLOW_ALL

Allows the model to generate images of people, including adults and children.

ALLOW_ALL = 1;

ALLOW_ALL_VALUE

Allows the model to generate images of people, including adults and children.

ALLOW_ALL = 1;

ALLOW_NONE

Prevents the model from generating images of people.

ALLOW_NONE = 3;

ALLOW_NONE_VALUE

Prevents the model from generating images of people.

ALLOW_NONE = 3;

PERSON_GENERATION_UNSPECIFIED

The default behavior is unspecified. The model will decide whether to generate images of people.

PERSON_GENERATION_UNSPECIFIED = 0;

PERSON_GENERATION_UNSPECIFIED_VALUE

The default behavior is unspecified. The model will decide whether to generate images of people.

PERSON_GENERATION_UNSPECIFIED = 0;

UNRECOGNIZED

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()