public enum Ignore extends Enum<Ignore> implements com.google.protobuf.ProtocolMessageEnum
Specifies how FieldConstraints.ignore behaves. See the documentation for FieldConstraints.required for definitions of "populated" and "nullable".Protobuf enum
buf.validate.Ignore| Enum Constant and Description |
|---|
IGNORE_DEFAULT
Validation is skipped if the field is unpopulated or if it is a nullable
field populated with its default value.
|
IGNORE_EMPTY
Validation is skipped if the field is unpopulated.
|
IGNORE_UNSPECIFIED
Validation is only skipped if it's an unpopulated nullable fields.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
IGNORE_DEFAULT_VALUE
Validation is skipped if the field is unpopulated or if it is a nullable
field populated with its default value.
|
static int |
IGNORE_EMPTY_VALUE
Validation is skipped if the field is unpopulated.
|
static int |
IGNORE_UNSPECIFIED_VALUE
Validation is only skipped if it's an unpopulated nullable fields.
|
| Modifier and Type | Method and Description |
|---|---|
static Ignore |
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<Ignore> |
internalGetValueMap() |
static Ignore |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Ignore |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Ignore |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Ignore[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Ignore IGNORE_UNSPECIFIED
Validation is only skipped if it's an unpopulated nullable fields.
IGNORE_UNSPECIFIED = 0;public static final Ignore IGNORE_EMPTY
Validation is skipped if the field is unpopulated.
IGNORE_EMPTY = 1;public static final Ignore IGNORE_DEFAULT
Validation is skipped if the field is unpopulated or if it is a nullable field populated with its default value.
IGNORE_DEFAULT = 2;public static final Ignore UNRECOGNIZED
public static final int IGNORE_UNSPECIFIED_VALUE
Validation is only skipped if it's an unpopulated nullable fields.
IGNORE_UNSPECIFIED = 0;public static final int IGNORE_EMPTY_VALUE
Validation is skipped if the field is unpopulated.
IGNORE_EMPTY = 1;public static final int IGNORE_DEFAULT_VALUE
Validation is skipped if the field is unpopulated or if it is a nullable field populated with its default value.
IGNORE_DEFAULT = 2;public static Ignore[] values()
for (Ignore c : Ignore.values()) System.out.println(c);
public static Ignore 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 Ignore valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Ignore forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Ignore> 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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Ignore valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024. All rights reserved.