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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean getIgnoreEmpty()
      IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
      Validate.FieldRules getItems()
      Items specifies the contraints to be applied to each item in the field.
      Validate.FieldRulesOrBuilder getItemsOrBuilder()
      Items specifies the contraints to be applied to each item in the field.
      long getMaxItems()
      MaxItems specifies that this field must have the specified number of items at a maximum
      long getMinItems()
      MinItems specifies that this field must have the specified number of items at a minimum
      boolean getUnique()
      Unique specifies that all elements in this field must be unique.
      boolean hasIgnoreEmpty()
      IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
      boolean hasItems()
      Items specifies the contraints to be applied to each item in the field.
      boolean hasMaxItems()
      MaxItems specifies that this field must have the specified number of items at a maximum
      boolean hasMinItems()
      MinItems specifies that this field must have the specified number of items at a minimum
      boolean hasUnique()
      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 Detail

      • 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
         contraint 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
         contraint 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 contraints 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

        Validate.FieldRules getItems()
         Items specifies the contraints 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 contraints 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.