public static enum ImageConfig.PersonGeneration extends Enum<ImageConfig.PersonGeneration> implements com.google.protobuf.ProtocolMessageEnum
Enum for controlling the generation of people in images.Protobuf enum
google.cloud.aiplatform.v1.ImageConfig.PersonGeneration| Enum Constant and Description |
|---|
ALLOW_ADULT
Allows the model to generate images of adults, but not children.
|
ALLOW_ALL
Allows the model to generate images of people, including adults and
children.
|
ALLOW_NONE
Prevents the model from generating images of people.
|
PERSON_GENERATION_UNSPECIFIED
The default behavior is unspecified.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALLOW_ADULT_VALUE
Allows the model to generate images of adults, but not children.
|
static int |
ALLOW_ALL_VALUE
Allows the model to generate images of people, including adults and
children.
|
static int |
ALLOW_NONE_VALUE
Prevents the model from generating images of people.
|
static int |
PERSON_GENERATION_UNSPECIFIED_VALUE
The default behavior is unspecified.
|
| Modifier and Type | Method and Description |
|---|---|
static ImageConfig.PersonGeneration |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<ImageConfig.PersonGeneration> |
internalGetValueMap() |
static ImageConfig.PersonGeneration |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ImageConfig.PersonGeneration |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ImageConfig.PersonGeneration |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ImageConfig.PersonGeneration[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ImageConfig.PersonGeneration PERSON_GENERATION_UNSPECIFIED
The default behavior is unspecified. The model will decide whether to generate images of people.
PERSON_GENERATION_UNSPECIFIED = 0;public static final ImageConfig.PersonGeneration ALLOW_ALL
Allows the model to generate images of people, including adults and children.
ALLOW_ALL = 1;public static final ImageConfig.PersonGeneration ALLOW_ADULT
Allows the model to generate images of adults, but not children.
ALLOW_ADULT = 2;public static final ImageConfig.PersonGeneration ALLOW_NONE
Prevents the model from generating images of people.
ALLOW_NONE = 3;public static final ImageConfig.PersonGeneration UNRECOGNIZED
public static final int PERSON_GENERATION_UNSPECIFIED_VALUE
The default behavior is unspecified. The model will decide whether to generate images of people.
PERSON_GENERATION_UNSPECIFIED = 0;public static final int ALLOW_ALL_VALUE
Allows the model to generate images of people, including adults and children.
ALLOW_ALL = 1;public static final int ALLOW_ADULT_VALUE
Allows the model to generate images of adults, but not children.
ALLOW_ADULT = 2;public static final int ALLOW_NONE_VALUE
Prevents the model from generating images of people.
ALLOW_NONE = 3;public static ImageConfig.PersonGeneration[] values()
for (ImageConfig.PersonGeneration c : ImageConfig.PersonGeneration.values()) System.out.println(c);
public static ImageConfig.PersonGeneration valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static ImageConfig.PersonGeneration valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static ImageConfig.PersonGeneration forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<ImageConfig.PersonGeneration> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static ImageConfig.PersonGeneration valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2026 Google LLC. All rights reserved.