Package io.envoyproxy.pgv.validate
Class Validate
java.lang.Object
io.envoyproxy.pgv.validate.Validate
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAnyRules describe constraints applied exclusively to the `google.protobuf.Any` well-known typestatic interfacestatic final classBoolRules describes the constraints applied to `bool` valuesstatic interfacestatic final classBytesRules describe the constraints applied to `bytes` valuesstatic interfacestatic final classDoubleRules describes the constraints applied to `double` valuesstatic interfacestatic final classDurationRules describe the constraints applied exclusively to the `google.protobuf.Duration` well-known typestatic interfacestatic final classEnumRules describe the constraints applied to enum valuesstatic interfacestatic final classFieldRules encapsulates the rules for each type of field.static interfacestatic final classFixed32Rules describes the constraints applied to `fixed32` valuesstatic interfacestatic final classFixed64Rules describes the constraints applied to `fixed64` valuesstatic interfacestatic final classFloatRules describes the constraints applied to `float` valuesstatic interfacestatic final classInt32Rules describes the constraints applied to `int32` valuesstatic interfacestatic final classInt64Rules describes the constraints applied to `int64` valuesstatic interfacestatic enumWellKnownRegex contain some well-known patterns.static final classMapRules describe the constraints applied to `map` valuesstatic interfacestatic final classMessageRules describe the constraints applied to embedded message values.static interfacestatic final classRepeatedRules describe the constraints applied to `repeated` valuesstatic interfacestatic final classSFixed32Rules describes the constraints applied to `sfixed32` valuesstatic interfacestatic final classSFixed64Rules describes the constraints applied to `sfixed64` valuesstatic interfacestatic final classSInt32Rules describes the constraints applied to `sint32` valuesstatic interfacestatic final classSInt64Rules describes the constraints applied to `sint64` valuesstatic interfacestatic final classStringRules describe the constraints applied to `string` valuesstatic interfacestatic final classTimestampRules describe the constraints applied exclusively to the `google.protobuf.Timestamp` well-known typestatic interfacestatic final classUInt32Rules describes the constraints applied to `uint32` valuesstatic interfacestatic final classUInt64Rules describes the constraints applied to `uint64` valuesstatic interface -
Field Summary
FieldsModifier 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 intstatic final com.google.protobuf.GeneratedMessage.GeneratedExtension<com.google.protobuf.DescriptorProtos.MessageOptions,Boolean> Ignore skips generation of validation methods for this message.static final intstatic 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 intstatic 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.FileDescriptorstatic voidregisterAllExtensions(com.google.protobuf.ExtensionRegistry registry) static voidregisterAllExtensions(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()
-