public enum KnownRegex extends Enum<KnownRegex> implements com.google.protobuf.ProtocolMessageEnum
WellKnownRegex contain some well-known patterns.Protobuf enum
buf.validate.KnownRegex| Enum Constant and Description |
|---|
KNOWN_REGEX_HTTP_HEADER_NAME
HTTP header name as defined by [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2).
|
KNOWN_REGEX_HTTP_HEADER_VALUE
HTTP header value as defined by [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2.4).
|
KNOWN_REGEX_UNSPECIFIED
KNOWN_REGEX_UNSPECIFIED = 0; |
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
KNOWN_REGEX_HTTP_HEADER_NAME_VALUE
HTTP header name as defined by [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2).
|
static int |
KNOWN_REGEX_HTTP_HEADER_VALUE_VALUE
HTTP header value as defined by [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2.4).
|
static int |
KNOWN_REGEX_UNSPECIFIED_VALUE
KNOWN_REGEX_UNSPECIFIED = 0; |
| Modifier and Type | Method and Description |
|---|---|
static KnownRegex |
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<KnownRegex> |
internalGetValueMap() |
static KnownRegex |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static KnownRegex |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static KnownRegex |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KnownRegex[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KnownRegex KNOWN_REGEX_UNSPECIFIED
KNOWN_REGEX_UNSPECIFIED = 0;public static final KnownRegex KNOWN_REGEX_HTTP_HEADER_NAME
HTTP header name as defined by [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2).
KNOWN_REGEX_HTTP_HEADER_NAME = 1;public static final KnownRegex KNOWN_REGEX_HTTP_HEADER_VALUE
HTTP header value as defined by [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2.4).
KNOWN_REGEX_HTTP_HEADER_VALUE = 2;public static final KnownRegex UNRECOGNIZED
public static final int KNOWN_REGEX_UNSPECIFIED_VALUE
KNOWN_REGEX_UNSPECIFIED = 0;public static final int KNOWN_REGEX_HTTP_HEADER_NAME_VALUE
HTTP header name as defined by [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2).
KNOWN_REGEX_HTTP_HEADER_NAME = 1;public static final int KNOWN_REGEX_HTTP_HEADER_VALUE_VALUE
HTTP header value as defined by [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2.4).
KNOWN_REGEX_HTTP_HEADER_VALUE = 2;public static KnownRegex[] values()
for (KnownRegex c : KnownRegex.values()) System.out.println(c);
public static KnownRegex 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 KnownRegex valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static KnownRegex forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<KnownRegex> 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 KnownRegex valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023. All rights reserved.