Package io.envoyproxy.pgv.validate
Class Validate
- java.lang.Object
-
- io.envoyproxy.pgv.validate.Validate
-
public final class Validate extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classValidate.AnyRulesAnyRules describe constraints applied exclusively to the `google.protobuf.Any` well-known typestatic interfaceValidate.AnyRulesOrBuilderstatic classValidate.BoolRulesBoolRules describes the constraints applied to `bool` valuesstatic interfaceValidate.BoolRulesOrBuilderstatic classValidate.BytesRulesBytesRules describe the constraints applied to `bytes` valuesstatic interfaceValidate.BytesRulesOrBuilderstatic classValidate.DoubleRulesDoubleRules describes the constraints applied to `double` valuesstatic interfaceValidate.DoubleRulesOrBuilderstatic classValidate.DurationRulesDurationRules describe the constraints applied exclusively to the `google.protobuf.Duration` well-known typestatic interfaceValidate.DurationRulesOrBuilderstatic classValidate.EnumRulesEnumRules describe the constraints applied to enum valuesstatic interfaceValidate.EnumRulesOrBuilderstatic classValidate.FieldRulesFieldRules encapsulates the rules for each type of field.static interfaceValidate.FieldRulesOrBuilderstatic classValidate.Fixed32RulesFixed32Rules describes the constraints applied to `fixed32` valuesstatic interfaceValidate.Fixed32RulesOrBuilderstatic classValidate.Fixed64RulesFixed64Rules describes the constraints applied to `fixed64` valuesstatic interfaceValidate.Fixed64RulesOrBuilderstatic classValidate.FloatRulesFloatRules describes the constraints applied to `float` valuesstatic interfaceValidate.FloatRulesOrBuilderstatic classValidate.Int32RulesInt32Rules describes the constraints applied to `int32` valuesstatic interfaceValidate.Int32RulesOrBuilderstatic classValidate.Int64RulesInt64Rules describes the constraints applied to `int64` valuesstatic interfaceValidate.Int64RulesOrBuilderstatic classValidate.KnownRegexWellKnownRegex contain some well-known patterns.static classValidate.MapRulesMapRules describe the constraints applied to `map` valuesstatic interfaceValidate.MapRulesOrBuilderstatic classValidate.MessageRulesMessageRules describe the constraints applied to embedded message values.static interfaceValidate.MessageRulesOrBuilderstatic classValidate.RepeatedRulesRepeatedRules describe the constraints applied to `repeated` valuesstatic interfaceValidate.RepeatedRulesOrBuilderstatic classValidate.SFixed32RulesSFixed32Rules describes the constraints applied to `sfixed32` valuesstatic interfaceValidate.SFixed32RulesOrBuilderstatic classValidate.SFixed64RulesSFixed64Rules describes the constraints applied to `sfixed64` valuesstatic interfaceValidate.SFixed64RulesOrBuilderstatic classValidate.SInt32RulesSInt32Rules describes the constraints applied to `sint32` valuesstatic interfaceValidate.SInt32RulesOrBuilderstatic classValidate.SInt64RulesSInt64Rules describes the constraints applied to `sint64` valuesstatic interfaceValidate.SInt64RulesOrBuilderstatic classValidate.StringRulesStringRules describe the constraints applied to `string` valuesstatic interfaceValidate.StringRulesOrBuilderstatic classValidate.TimestampRulesTimestampRules describe the constraints applied exclusively to the `google.protobuf.Timestamp` well-known typestatic interfaceValidate.TimestampRulesOrBuilderstatic classValidate.UInt32RulesUInt32Rules describes the constraints applied to `uint32` valuesstatic interfaceValidate.UInt32RulesOrBuilderstatic classValidate.UInt64RulesUInt64Rules describes the constraints applied to `uint64` valuesstatic interfaceValidate.UInt64RulesOrBuilder
-
Field Summary
Fields Modifier and Type Field Description static com.google.protobuf.GeneratedMessage.GeneratedExtension<com.google.protobuf.DescriptorProtos.MessageOptions,java.lang.Boolean>disabledDisabled nullifies any validation rules for this message, including any message fields associated with it that do support validation.static intDISABLED_FIELD_NUMBERstatic com.google.protobuf.GeneratedMessage.GeneratedExtension<com.google.protobuf.DescriptorProtos.MessageOptions,java.lang.Boolean>ignoredIgnore skips generation of validation methods for this message.static intIGNORED_FIELD_NUMBERstatic com.google.protobuf.GeneratedMessage.GeneratedExtension<com.google.protobuf.DescriptorProtos.OneofOptions,java.lang.Boolean>requiredRequired ensures that exactly one the field options in a oneof is set; validation fails if no fields in the oneof are set.static intREQUIRED_FIELD_NUMBERstatic com.google.protobuf.GeneratedMessage.GeneratedExtension<com.google.protobuf.DescriptorProtos.FieldOptions,Validate.FieldRules>rulesRules specify the validations to be performed on this field.static intRULES_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.google.protobuf.Descriptors.FileDescriptorgetDescriptor()static voidregisterAllExtensions(com.google.protobuf.ExtensionRegistry registry)static voidregisterAllExtensions(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,java.lang.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,java.lang.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,java.lang.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()
-
-