Class Validate


  • public final class Validate
    extends Object
    • Field Detail

      • 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

        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

        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

        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()