Package io.envoyproxy.pgv.validate
Class Validate
java.lang.Object
io.envoyproxy.pgv.validate.Validate
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
AnyRules describe constraints applied exclusively to the `google.protobuf.Any` well-known typestatic interface
static final class
BoolRules describes the constraints applied to `bool` valuesstatic interface
static final class
BytesRules describe the constraints applied to `bytes` valuesstatic interface
static final class
DoubleRules describes the constraints applied to `double` valuesstatic interface
static final class
DurationRules describe the constraints applied exclusively to the `google.protobuf.Duration` well-known typestatic interface
static final class
EnumRules describe the constraints applied to enum valuesstatic interface
static final class
FieldRules encapsulates the rules for each type of field.static interface
static final class
Fixed32Rules describes the constraints applied to `fixed32` valuesstatic interface
static final class
Fixed64Rules describes the constraints applied to `fixed64` valuesstatic interface
static final class
FloatRules describes the constraints applied to `float` valuesstatic interface
static final class
Int32Rules describes the constraints applied to `int32` valuesstatic interface
static final class
Int64Rules describes the constraints applied to `int64` valuesstatic interface
static enum
WellKnownRegex contain some well-known patterns.static final class
MapRules describe the constraints applied to `map` valuesstatic interface
static final class
MessageRules describe the constraints applied to embedded message values.static interface
static final class
RepeatedRules describe the constraints applied to `repeated` valuesstatic interface
static final class
SFixed32Rules describes the constraints applied to `sfixed32` valuesstatic interface
static final class
SFixed64Rules describes the constraints applied to `sfixed64` valuesstatic interface
static final class
SInt32Rules describes the constraints applied to `sint32` valuesstatic interface
static final class
SInt64Rules describes the constraints applied to `sint64` valuesstatic interface
static final class
StringRules describe the constraints applied to `string` valuesstatic interface
static final class
TimestampRules describe the constraints applied exclusively to the `google.protobuf.Timestamp` well-known typestatic interface
static final class
UInt32Rules describes the constraints applied to `uint32` valuesstatic interface
static final class
UInt64Rules describes the constraints applied to `uint64` valuesstatic interface
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.google.protobuf.GeneratedMessage.GeneratedExtension<com.google.protobuf.DescriptorProtos.MessageOptions,
Boolean> Disabled nullifies any validation rules for this message, including any message fields associated with it that do support validation.static final int
static final com.google.protobuf.GeneratedMessage.GeneratedExtension<com.google.protobuf.DescriptorProtos.MessageOptions,
Boolean> Ignore skips generation of validation methods for this message.static final int
static final com.google.protobuf.GeneratedMessage.GeneratedExtension<com.google.protobuf.DescriptorProtos.OneofOptions,
Boolean> Required ensures that exactly one the field options in a oneof is set; validation fails if no fields in the oneof are set.static final int
static final com.google.protobuf.GeneratedMessage.GeneratedExtension<com.google.protobuf.DescriptorProtos.FieldOptions,
Validate.FieldRules> Rules specify the validations to be performed on this field.static final int
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.protobuf.Descriptors.FileDescriptor
static void
registerAllExtensions
(com.google.protobuf.ExtensionRegistry registry) static void
registerAllExtensions
(com.google.protobuf.ExtensionRegistryLite registry)
-
Field Details
-
DISABLED_FIELD_NUMBER
public static final int DISABLED_FIELD_NUMBER- See Also:
-
disabled
public static final com.google.protobuf.GeneratedMessage.GeneratedExtension<com.google.protobuf.DescriptorProtos.MessageOptions,Boolean> disabledDisabled nullifies any validation rules for this message, including any message fields associated with it that do support validation.
extend .google.protobuf.MessageOptions { ... }
-
IGNORED_FIELD_NUMBER
public static final int IGNORED_FIELD_NUMBER- See Also:
-
ignored
public static final com.google.protobuf.GeneratedMessage.GeneratedExtension<com.google.protobuf.DescriptorProtos.MessageOptions,Boolean> ignoredIgnore skips generation of validation methods for this message.
extend .google.protobuf.MessageOptions { ... }
-
REQUIRED_FIELD_NUMBER
public static final int REQUIRED_FIELD_NUMBER- See Also:
-
required
public static final com.google.protobuf.GeneratedMessage.GeneratedExtension<com.google.protobuf.DescriptorProtos.OneofOptions,Boolean> requiredRequired ensures that exactly one the field options in a oneof is set; validation fails if no fields in the oneof are set.
extend .google.protobuf.OneofOptions { ... }
-
RULES_FIELD_NUMBER
public static final int RULES_FIELD_NUMBER- See Also:
-
rules
public static final com.google.protobuf.GeneratedMessage.GeneratedExtension<com.google.protobuf.DescriptorProtos.FieldOptions,Validate.FieldRules> rulesRules specify the validations to be performed on this field. By default, no validation is performed against a field.
extend .google.protobuf.FieldOptions { ... }
-
-
Method Details
-
registerAllExtensions
public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) -
registerAllExtensions
public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) -
getDescriptor
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor()
-