Package com.google.cloud.aiplatform.v1
Enum ImageConfig.PersonGeneration
java.lang.Object
java.lang.Enum<ImageConfig.PersonGeneration>
com.google.cloud.aiplatform.v1.ImageConfig.PersonGeneration
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<ImageConfig.PersonGeneration>
- Enclosing class:
- ImageConfig
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 Summary
Enum ConstantsEnum ConstantDescriptionAllows the model to generate images of adults, but not children.Allows the model to generate images of people, including adults and children.Prevents the model from generating images of people.The default behavior is unspecified. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAllows the model to generate images of adults, but not children.static final intAllows the model to generate images of people, including adults and children.static final intPrevents the model from generating images of people.static final intThe default behavior is unspecified. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageConfig.PersonGenerationforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<ImageConfig.PersonGeneration>static ImageConfig.PersonGenerationvalueOf(int value) Deprecated.static ImageConfig.PersonGenerationvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static ImageConfig.PersonGenerationReturns 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.
-
Enum Constant Details
-
PERSON_GENERATION_UNSPECIFIED
The default behavior is unspecified. The model will decide whether to generate images of people.
PERSON_GENERATION_UNSPECIFIED = 0; -
ALLOW_ALL
Allows the model to generate images of people, including adults and children.
ALLOW_ALL = 1; -
ALLOW_ADULT
Allows the model to generate images of adults, but not children.
ALLOW_ADULT = 2; -
ALLOW_NONE
Prevents the model from generating images of people.
ALLOW_NONE = 3; -
UNRECOGNIZED
-
-
Field Details
-
PERSON_GENERATION_UNSPECIFIED_VALUE
public static final int PERSON_GENERATION_UNSPECIFIED_VALUEThe default behavior is unspecified. The model will decide whether to generate images of people.
PERSON_GENERATION_UNSPECIFIED = 0;- See Also:
-
ALLOW_ALL_VALUE
public static final int ALLOW_ALL_VALUEAllows the model to generate images of people, including adults and children.
ALLOW_ALL = 1;- See Also:
-
ALLOW_ADULT_VALUE
public static final int ALLOW_ADULT_VALUEAllows the model to generate images of adults, but not children.
ALLOW_ADULT = 2;- See Also:
-
ALLOW_NONE_VALUE
public static final int ALLOW_NONE_VALUEPrevents the model from generating images of people.
ALLOW_NONE = 3;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<ImageConfig.PersonGeneration> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static ImageConfig.PersonGeneration valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-