Class/Object

io.envoyproxy.pgv.validate.validate

MapRules

Related Docs: object MapRules | package validate

Permalink

final case class MapRules(minPairs: Option[Long] = _root_.scala.None, maxPairs: Option[Long] = _root_.scala.None, noSparse: Option[Boolean] = _root_.scala.None, keys: Option[FieldRules] = _root_.scala.None, values: Option[FieldRules] = _root_.scala.None, ignoreEmpty: Option[Boolean] = _root_.scala.None) extends GeneratedMessage with Message[MapRules] with Updatable[MapRules] with Product with Serializable

MapRules describe the constraints applied to map values

minPairs

MinPairs specifies that this field must have the specified number of KVs at a minimum

maxPairs

MaxPairs specifies that this field must have the specified number of KVs at a maximum

noSparse

NoSparse specifies values in this field cannot be unset. This only applies to map's with message value types.

keys

Keys specifies the constraints to be applied to each key in the field.

values

Values specifies the constraints to be applied to the value of each key in the field. Message values will still have their validations evaluated unless skip is specified here.

ignoreEmpty

IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty

Annotations
@SerialVersionUID()
Linear Supertypes
Product, Equals, Updatable[MapRules], Message[MapRules], GeneratedMessage, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MapRules
  2. Product
  3. Equals
  4. Updatable
  5. Message
  6. GeneratedMessage
  7. Serializable
  8. Serializable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MapRules(minPairs: Option[Long] = _root_.scala.None, maxPairs: Option[Long] = _root_.scala.None, noSparse: Option[Boolean] = _root_.scala.None, keys: Option[FieldRules] = _root_.scala.None, values: Option[FieldRules] = _root_.scala.None, ignoreEmpty: Option[Boolean] = _root_.scala.None)

    Permalink

    minPairs

    MinPairs specifies that this field must have the specified number of KVs at a minimum

    maxPairs

    MaxPairs specifies that this field must have the specified number of KVs at a maximum

    noSparse

    NoSparse specifies values in this field cannot be unset. This only applies to map's with message value types.

    keys

    Keys specifies the constraints to be applied to each key in the field.

    values

    Values specifies the constraints to be applied to the value of each key in the field. Message values will still have their validations evaluated unless skip is specified here.

    ignoreEmpty

    IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clearIgnoreEmpty: MapRules

    Permalink
  6. def clearKeys: MapRules

    Permalink
  7. def clearMaxPairs: MapRules

    Permalink
  8. def clearMinPairs: MapRules

    Permalink
  9. def clearNoSparse: MapRules

    Permalink
  10. def clearValues: MapRules

    Permalink
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def companion: MapRules.type

    Permalink
    Definition Classes
    MapRules → GeneratedMessage
  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def getField(__field: FieldDescriptor): PValue

    Permalink
    Definition Classes
    MapRules → GeneratedMessage
  17. def getFieldByNumber(__fieldNumber: Int): Any

    Permalink
    Definition Classes
    MapRules → GeneratedMessage
  18. def getIgnoreEmpty: Boolean

    Permalink
  19. def getKeys: FieldRules

    Permalink
  20. def getMaxPairs: Long

    Permalink
  21. def getMinPairs: Long

    Permalink
  22. def getNoSparse: Boolean

    Permalink
  23. def getValues: FieldRules

    Permalink
  24. val ignoreEmpty: Option[Boolean]

    Permalink

    IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty

  25. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  26. val keys: Option[FieldRules]

    Permalink

    Keys specifies the constraints to be applied to each key in the field.

  27. val maxPairs: Option[Long]

    Permalink

    MaxPairs specifies that this field must have the specified number of KVs at a maximum

  28. def mergeFrom(_input__: CodedInputStream): MapRules

    Permalink
    Definition Classes
    MapRules → Message
  29. val minPairs: Option[Long]

    Permalink

    MinPairs specifies that this field must have the specified number of KVs at a minimum

  30. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  31. val noSparse: Option[Boolean]

    Permalink

    NoSparse specifies values in this field cannot be unset.

    NoSparse specifies values in this field cannot be unset. This only applies to map's with message value types.

  32. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  33. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  34. final def serializedSize: Int

    Permalink
    Definition Classes
    MapRules → GeneratedMessage
  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  36. def toByteArray: Array[Byte]

    Permalink
    Definition Classes
    GeneratedMessage
  37. def toByteString: ByteString

    Permalink
    Definition Classes
    GeneratedMessage
  38. def toPMessage: PMessage

    Permalink
    Definition Classes
    GeneratedMessage
  39. def toProtoString: String

    Permalink
    Definition Classes
    MapRules → GeneratedMessage
  40. def update(ms: (Lens[MapRules, MapRules]) ⇒ Mutation[MapRules]*): MapRules

    Permalink
    Definition Classes
    Updatable
  41. val values: Option[FieldRules]

    Permalink

    Values specifies the constraints to be applied to the value of each key in the field.

    Values specifies the constraints to be applied to the value of each key in the field. Message values will still have their validations evaluated unless skip is specified here.

  42. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. def withIgnoreEmpty(__v: Boolean): MapRules

    Permalink
  46. def withKeys(__v: FieldRules): MapRules

    Permalink
  47. def withMaxPairs(__v: Long): MapRules

    Permalink
  48. def withMinPairs(__v: Long): MapRules

    Permalink
  49. def withNoSparse(__v: Boolean): MapRules

    Permalink
  50. def withValues(__v: FieldRules): MapRules

    Permalink
  51. def writeDelimitedTo(output: OutputStream): Unit

    Permalink
    Definition Classes
    GeneratedMessage
  52. def writeTo(_output__: CodedOutputStream): Unit

    Permalink
    Definition Classes
    MapRules → GeneratedMessage
  53. def writeTo(output: OutputStream): Unit

    Permalink
    Definition Classes
    GeneratedMessage

Deprecated Value Members

  1. def getAllFields: Map[FieldDescriptor, Any]

    Permalink
    Definition Classes
    GeneratedMessage
    Annotations
    @deprecated
    Deprecated

    (Since version 0.6.0) Use toPMessage

  2. def getField(field: FieldDescriptor): Any

    Permalink
    Definition Classes
    GeneratedMessage
    Annotations
    @deprecated
    Deprecated

    (Since version 0.6.0) Use getField that accepts a ScalaPB descriptor and returns PValue

Inherited from Product

Inherited from Equals

Inherited from Updatable[MapRules]

Inherited from Message[MapRules]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped