Package io.envoyproxy.pgv.validate
Class Validate
- java.lang.Object
-
- io.envoyproxy.pgv.validate.Validate
-
public final class Validate extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Validate.AnyRules
AnyRules describe constraints applied exclusively to the `google.protobuf.Any` well-known typestatic interface
Validate.AnyRulesOrBuilder
static class
Validate.BoolRules
BoolRules describes the constraints applied to `bool` valuesstatic interface
Validate.BoolRulesOrBuilder
static class
Validate.BytesRules
BytesRules describe the constraints applied to `bytes` valuesstatic interface
Validate.BytesRulesOrBuilder
static class
Validate.DoubleRules
DoubleRules describes the constraints applied to `double` valuesstatic interface
Validate.DoubleRulesOrBuilder
static class
Validate.DurationRules
DurationRules describe the constraints applied exclusively to the `google.protobuf.Duration` well-known typestatic interface
Validate.DurationRulesOrBuilder
static class
Validate.EnumRules
EnumRules describe the constraints applied to enum valuesstatic interface
Validate.EnumRulesOrBuilder
static class
Validate.FieldRules
FieldRules encapsulates the rules for each type of field.static interface
Validate.FieldRulesOrBuilder
static class
Validate.Fixed32Rules
Fixed32Rules describes the constraints applied to `fixed32` valuesstatic interface
Validate.Fixed32RulesOrBuilder
static class
Validate.Fixed64Rules
Fixed64Rules describes the constraints applied to `fixed64` valuesstatic interface
Validate.Fixed64RulesOrBuilder
static class
Validate.FloatRules
FloatRules describes the constraints applied to `float` valuesstatic interface
Validate.FloatRulesOrBuilder
static class
Validate.Int32Rules
Int32Rules describes the constraints applied to `int32` valuesstatic interface
Validate.Int32RulesOrBuilder
static class
Validate.Int64Rules
Int64Rules describes the constraints applied to `int64` valuesstatic interface
Validate.Int64RulesOrBuilder
static class
Validate.KnownRegex
WellKnownRegex contain some well-known patterns.static class
Validate.MapRules
MapRules describe the constraints applied to `map` valuesstatic interface
Validate.MapRulesOrBuilder
static class
Validate.MessageRules
MessageRules describe the constraints applied to embedded message values.static interface
Validate.MessageRulesOrBuilder
static class
Validate.RepeatedRules
RepeatedRules describe the constraints applied to `repeated` valuesstatic interface
Validate.RepeatedRulesOrBuilder
static class
Validate.SFixed32Rules
SFixed32Rules describes the constraints applied to `sfixed32` valuesstatic interface
Validate.SFixed32RulesOrBuilder
static class
Validate.SFixed64Rules
SFixed64Rules describes the constraints applied to `sfixed64` valuesstatic interface
Validate.SFixed64RulesOrBuilder
static class
Validate.SInt32Rules
SInt32Rules describes the constraints applied to `sint32` valuesstatic interface
Validate.SInt32RulesOrBuilder
static class
Validate.SInt64Rules
SInt64Rules describes the constraints applied to `sint64` valuesstatic interface
Validate.SInt64RulesOrBuilder
static class
Validate.StringRules
StringRules describe the constraints applied to `string` valuesstatic interface
Validate.StringRulesOrBuilder
static class
Validate.TimestampRules
TimestampRules describe the constraints applied exclusively to the `google.protobuf.Timestamp` well-known typestatic interface
Validate.TimestampRulesOrBuilder
static class
Validate.UInt32Rules
UInt32Rules describes the constraints applied to `uint32` valuesstatic interface
Validate.UInt32RulesOrBuilder
static class
Validate.UInt64Rules
UInt64Rules describes the constraints applied to `uint64` valuesstatic interface
Validate.UInt64RulesOrBuilder
-
Field Summary
Fields Modifier and Type Field Description static com.google.protobuf.GeneratedMessage.GeneratedExtension<com.google.protobuf.DescriptorProtos.MessageOptions,Boolean>
disabled
Disabled nullifies any validation rules for this message, including any message fields associated with it that do support validation.static int
DISABLED_FIELD_NUMBER
static com.google.protobuf.GeneratedMessage.GeneratedExtension<com.google.protobuf.DescriptorProtos.MessageOptions,Boolean>
ignored
Ignore skips generation of validation methods for this message.static int
IGNORED_FIELD_NUMBER
static com.google.protobuf.GeneratedMessage.GeneratedExtension<com.google.protobuf.DescriptorProtos.OneofOptions,Boolean>
required
Required ensures that exactly one the field options in a oneof is set; validation fails if no fields in the oneof are set.static int
REQUIRED_FIELD_NUMBER
static com.google.protobuf.GeneratedMessage.GeneratedExtension<com.google.protobuf.DescriptorProtos.FieldOptions,Validate.FieldRules>
rules
Rules specify the validations to be performed on this field.static int
RULES_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor()
static void
registerAllExtensions(com.google.protobuf.ExtensionRegistry registry)
static void
registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry)
-
-
-
Field Detail
-
DISABLED_FIELD_NUMBER
public static final int DISABLED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
disabled
public static final com.google.protobuf.GeneratedMessage.GeneratedExtension<com.google.protobuf.DescriptorProtos.MessageOptions,Boolean> disabled
Disabled 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:
- Constant Field Values
-
ignored
public static final com.google.protobuf.GeneratedMessage.GeneratedExtension<com.google.protobuf.DescriptorProtos.MessageOptions,Boolean> ignored
Ignore skips generation of validation methods for this message.
extend .google.protobuf.MessageOptions { ... }
-
REQUIRED_FIELD_NUMBER
public static final int REQUIRED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
required
public static final com.google.protobuf.GeneratedMessage.GeneratedExtension<com.google.protobuf.DescriptorProtos.OneofOptions,Boolean> required
Required 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:
- Constant Field Values
-
rules
public static final com.google.protobuf.GeneratedMessage.GeneratedExtension<com.google.protobuf.DescriptorProtos.FieldOptions,Validate.FieldRules> rules
Rules specify the validations to be performed on this field. By default, no validation is performed against a field.
extend .google.protobuf.FieldOptions { ... }
-
-
Method Detail
-
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()
-
-