public final class Validate extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Validate.AnyRules
AnyRules describe constraints applied exclusively to the
`google.protobuf.Any` well-known type
|
static interface |
Validate.AnyRulesOrBuilder |
static class |
Validate.BoolRules
BoolRules describes the constraints applied to `bool` values
|
static interface |
Validate.BoolRulesOrBuilder |
static class |
Validate.BytesRules
BytesRules describe the constraints applied to `bytes` values
|
static interface |
Validate.BytesRulesOrBuilder |
static class |
Validate.DoubleRules
DoubleRules describes the constraints applied to `double` values
|
static interface |
Validate.DoubleRulesOrBuilder |
static class |
Validate.DurationRules
DurationRules describe the constraints applied exclusively to the
`google.protobuf.Duration` well-known type
|
static interface |
Validate.DurationRulesOrBuilder |
static class |
Validate.EnumRules
EnumRules describe the constraints applied to enum values
|
static 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` values
|
static interface |
Validate.Fixed32RulesOrBuilder |
static class |
Validate.Fixed64Rules
Fixed64Rules describes the constraints applied to `fixed64` values
|
static interface |
Validate.Fixed64RulesOrBuilder |
static class |
Validate.FloatRules
FloatRules describes the constraints applied to `float` values
|
static interface |
Validate.FloatRulesOrBuilder |
static class |
Validate.Int32Rules
Int32Rules describes the constraints applied to `int32` values
|
static interface |
Validate.Int32RulesOrBuilder |
static class |
Validate.Int64Rules
Int64Rules describes the constraints applied to `int64` values
|
static interface |
Validate.Int64RulesOrBuilder |
static class |
Validate.MapRules
MapRules describe the constraints applied to `map` values
|
static 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` values
|
static interface |
Validate.RepeatedRulesOrBuilder |
static class |
Validate.SFixed32Rules
SFixed32Rules describes the constraints applied to `sfixed32` values
|
static interface |
Validate.SFixed32RulesOrBuilder |
static class |
Validate.SFixed64Rules
SFixed64Rules describes the constraints applied to `sfixed64` values
|
static interface |
Validate.SFixed64RulesOrBuilder |
static class |
Validate.SInt32Rules
SInt32Rules describes the constraints applied to `sint32` values
|
static interface |
Validate.SInt32RulesOrBuilder |
static class |
Validate.SInt64Rules
SInt64Rules describes the constraints applied to `sint64` values
|
static interface |
Validate.SInt64RulesOrBuilder |
static class |
Validate.StringRules
StringRules describe the constraints applied to `string` values
|
static interface |
Validate.StringRulesOrBuilder |
static class |
Validate.TimestampRules
TimestampRules describe the constraints applied exclusively to the
`google.protobuf.Timestamp` well-known type
|
static interface |
Validate.TimestampRulesOrBuilder |
static class |
Validate.UInt32Rules
UInt32Rules describes the constraints applied to `uint32` values
|
static interface |
Validate.UInt32RulesOrBuilder |
static class |
Validate.UInt64Rules
UInt64Rules describes the constraints applied to `uint64` values
|
static interface |
Validate.UInt64RulesOrBuilder |
| Modifier and Type | Field and 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.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 |
| Modifier and Type | Method and Description |
|---|---|
static com.google.protobuf.Descriptors.FileDescriptor |
getDescriptor() |
static void |
registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) |
static void |
registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) |
public static final int DISABLED_FIELD_NUMBER
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 { ... }public static final int REQUIRED_FIELD_NUMBER
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 { ... }public static final int RULES_FIELD_NUMBER
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 { ... }public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry)
public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry)
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor()
Copyright © 2019 WSO2. All rights reserved.