Interface Validate.RepeatedRulesOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Validate.RepeatedRules, Validate.RepeatedRules.Builder
Enclosing class:
Validate

public static interface Validate.RepeatedRulesOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
    Items specifies the constraints to be applied to each item in the field.
    Items specifies the constraints to be applied to each item in the field.
    long
    MaxItems specifies that this field must have the specified number of items at a maximum
    long
    MinItems specifies that this field must have the specified number of items at a minimum
    boolean
    Unique specifies that all elements in this field must be unique.
    boolean
    IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
    boolean
    Items specifies the constraints to be applied to each item in the field.
    boolean
    MaxItems specifies that this field must have the specified number of items at a maximum
    boolean
    MinItems specifies that this field must have the specified number of items at a minimum
    boolean
    Unique specifies that all elements in this field must be unique.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • hasMinItems

      boolean hasMinItems()
       MinItems specifies that this field must have the specified number of
       items at a minimum
       
      optional uint64 min_items = 1;
      Returns:
      Whether the minItems field is set.
    • getMinItems

      long getMinItems()
       MinItems specifies that this field must have the specified number of
       items at a minimum
       
      optional uint64 min_items = 1;
      Returns:
      The minItems.
    • hasMaxItems

      boolean hasMaxItems()
       MaxItems specifies that this field must have the specified number of
       items at a maximum
       
      optional uint64 max_items = 2;
      Returns:
      Whether the maxItems field is set.
    • getMaxItems

      long getMaxItems()
       MaxItems specifies that this field must have the specified number of
       items at a maximum
       
      optional uint64 max_items = 2;
      Returns:
      The maxItems.
    • hasUnique

      boolean hasUnique()
       Unique specifies that all elements in this field must be unique. This
       constraint is only applicable to scalar and enum types (messages are not
       supported).
       
      optional bool unique = 3;
      Returns:
      Whether the unique field is set.
    • getUnique

      boolean getUnique()
       Unique specifies that all elements in this field must be unique. This
       constraint is only applicable to scalar and enum types (messages are not
       supported).
       
      optional bool unique = 3;
      Returns:
      The unique.
    • hasItems

      boolean hasItems()
       Items specifies the constraints to be applied to each item in the field.
       Repeated message fields will still execute validation against each item
       unless skip is specified here.
       
      optional .validate.FieldRules items = 4;
      Returns:
      Whether the items field is set.
    • getItems

       Items specifies the constraints to be applied to each item in the field.
       Repeated message fields will still execute validation against each item
       unless skip is specified here.
       
      optional .validate.FieldRules items = 4;
      Returns:
      The items.
    • getItemsOrBuilder

      Validate.FieldRulesOrBuilder getItemsOrBuilder()
       Items specifies the constraints to be applied to each item in the field.
       Repeated message fields will still execute validation against each item
       unless skip is specified here.
       
      optional .validate.FieldRules items = 4;
    • hasIgnoreEmpty

      boolean hasIgnoreEmpty()
       IgnoreEmpty specifies that the validation rules of this field should be
       evaluated only if the field is not empty
       
      optional bool ignore_empty = 5;
      Returns:
      Whether the ignoreEmpty field is set.
    • getIgnoreEmpty

      boolean getIgnoreEmpty()
       IgnoreEmpty specifies that the validation rules of this field should be
       evaluated only if the field is not empty
       
      optional bool ignore_empty = 5;
      Returns:
      The ignoreEmpty.