Class/Object

io.envoyproxy.pgv.validate.validate

StringRules

Related Docs: object StringRules | package validate

Permalink

final case class StringRules(const: Option[String] = _root_.scala.None, len: Option[Long] = _root_.scala.None, minLen: Option[Long] = _root_.scala.None, maxLen: Option[Long] = _root_.scala.None, lenBytes: Option[Long] = _root_.scala.None, minBytes: Option[Long] = _root_.scala.None, maxBytes: Option[Long] = _root_.scala.None, pattern: Option[String] = _root_.scala.None, prefix: Option[String] = _root_.scala.None, suffix: Option[String] = _root_.scala.None, contains: Option[String] = _root_.scala.None, notContains: Option[String] = _root_.scala.None, in: Seq[String] = _root_.scala.Seq.empty, notIn: Seq[String] = _root_.scala.Seq.empty, strict: Option[Boolean] = _root_.scala.None, ignoreEmpty: Option[Boolean] = _root_.scala.None, wellKnown: WellKnown = ...) extends GeneratedMessage with Message[StringRules] with Updatable[StringRules] with Product with Serializable

StringRules describe the constraints applied to string values

const

Const specifies that this field must be exactly the specified value

len

Len specifies that this field must be the specified number of characters (Unicode code points). Note that the number of characters may differ from the number of bytes in the string.

minLen

MinLen specifies that this field must be the specified number of characters (Unicode code points) at a minimum. Note that the number of characters may differ from the number of bytes in the string.

maxLen

MaxLen specifies that this field must be the specified number of characters (Unicode code points) at a maximum. Note that the number of characters may differ from the number of bytes in the string.

lenBytes

LenBytes specifies that this field must be the specified number of bytes

minBytes

MinBytes specifies that this field must be the specified number of bytes at a minimum

maxBytes

MaxBytes specifies that this field must be the specified number of bytes at a maximum

pattern

Pattern specifes that this field must match against the specified regular expression (RE2 syntax). The included expression should elide any delimiters.

prefix

Prefix specifies that this field must have the specified substring at the beginning of the string.

suffix

Suffix specifies that this field must have the specified substring at the end of the string.

contains

Contains specifies that this field must have the specified substring anywhere in the string.

notContains

NotContains specifies that this field cannot have the specified substring anywhere in the string.

in

In specifies that this field must be equal to one of the specified values

notIn

NotIn specifies that this field cannot be equal to one of the specified values

strict

This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable strict header validation. By default, this is true, and HTTP header validations are RFC-compliant. Setting to false will enable a looser validations that only disallows &92;r&92;n&92;0 characters, which can be used to bypass header matching rules.

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[StringRules], Message[StringRules], GeneratedMessage, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StringRules
  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 StringRules(const: Option[String] = _root_.scala.None, len: Option[Long] = _root_.scala.None, minLen: Option[Long] = _root_.scala.None, maxLen: Option[Long] = _root_.scala.None, lenBytes: Option[Long] = _root_.scala.None, minBytes: Option[Long] = _root_.scala.None, maxBytes: Option[Long] = _root_.scala.None, pattern: Option[String] = _root_.scala.None, prefix: Option[String] = _root_.scala.None, suffix: Option[String] = _root_.scala.None, contains: Option[String] = _root_.scala.None, notContains: Option[String] = _root_.scala.None, in: Seq[String] = _root_.scala.Seq.empty, notIn: Seq[String] = _root_.scala.Seq.empty, strict: Option[Boolean] = _root_.scala.None, ignoreEmpty: Option[Boolean] = _root_.scala.None, wellKnown: WellKnown = ...)

    Permalink

    const

    Const specifies that this field must be exactly the specified value

    len

    Len specifies that this field must be the specified number of characters (Unicode code points). Note that the number of characters may differ from the number of bytes in the string.

    minLen

    MinLen specifies that this field must be the specified number of characters (Unicode code points) at a minimum. Note that the number of characters may differ from the number of bytes in the string.

    maxLen

    MaxLen specifies that this field must be the specified number of characters (Unicode code points) at a maximum. Note that the number of characters may differ from the number of bytes in the string.

    lenBytes

    LenBytes specifies that this field must be the specified number of bytes

    minBytes

    MinBytes specifies that this field must be the specified number of bytes at a minimum

    maxBytes

    MaxBytes specifies that this field must be the specified number of bytes at a maximum

    pattern

    Pattern specifes that this field must match against the specified regular expression (RE2 syntax). The included expression should elide any delimiters.

    prefix

    Prefix specifies that this field must have the specified substring at the beginning of the string.

    suffix

    Suffix specifies that this field must have the specified substring at the end of the string.

    contains

    Contains specifies that this field must have the specified substring anywhere in the string.

    notContains

    NotContains specifies that this field cannot have the specified substring anywhere in the string.

    in

    In specifies that this field must be equal to one of the specified values

    notIn

    NotIn specifies that this field cannot be equal to one of the specified values

    strict

    This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable strict header validation. By default, this is true, and HTTP header validations are RFC-compliant. Setting to false will enable a looser validations that only disallows &92;r&92;n&92;0 characters, which can be used to bypass header matching rules.

    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. def addAllIn(__vs: Iterable[String]): StringRules

    Permalink
  5. def addAllNotIn(__vs: Iterable[String]): StringRules

    Permalink
  6. def addIn(__vs: String*): StringRules

    Permalink
  7. def addNotIn(__vs: String*): StringRules

    Permalink
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clearConst: StringRules

    Permalink
  10. def clearContains: StringRules

    Permalink
  11. def clearIgnoreEmpty: StringRules

    Permalink
  12. def clearIn: StringRules

    Permalink
  13. def clearLen: StringRules

    Permalink
  14. def clearLenBytes: StringRules

    Permalink
  15. def clearMaxBytes: StringRules

    Permalink
  16. def clearMaxLen: StringRules

    Permalink
  17. def clearMinBytes: StringRules

    Permalink
  18. def clearMinLen: StringRules

    Permalink
  19. def clearNotContains: StringRules

    Permalink
  20. def clearNotIn: StringRules

    Permalink
  21. def clearPattern: StringRules

    Permalink
  22. def clearPrefix: StringRules

    Permalink
  23. def clearStrict: StringRules

    Permalink
  24. def clearSuffix: StringRules

    Permalink
  25. def clearWellKnown: StringRules

    Permalink
  26. def clone(): AnyRef

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

    Permalink
    Definition Classes
    StringRules → GeneratedMessage
  28. val const: Option[String]

    Permalink

    Const specifies that this field must be exactly the specified value

  29. val contains: Option[String]

    Permalink

    Contains specifies that this field must have the specified substring anywhere in the string.

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  32. def getAddress: Boolean

    Permalink
  33. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  34. def getConst: String

    Permalink
  35. def getContains: String

    Permalink
  36. def getEmail: Boolean

    Permalink
  37. def getField(__field: FieldDescriptor): PValue

    Permalink
    Definition Classes
    StringRules → GeneratedMessage
  38. def getFieldByNumber(__fieldNumber: Int): Any

    Permalink
    Definition Classes
    StringRules → GeneratedMessage
  39. def getHostname: Boolean

    Permalink
  40. def getIgnoreEmpty: Boolean

    Permalink
  41. def getIp: Boolean

    Permalink
  42. def getIpv4: Boolean

    Permalink
  43. def getIpv6: Boolean

    Permalink
  44. def getLen: Long

    Permalink
  45. def getLenBytes: Long

    Permalink
  46. def getMaxBytes: Long

    Permalink
  47. def getMaxLen: Long

    Permalink
  48. def getMinBytes: Long

    Permalink
  49. def getMinLen: Long

    Permalink
  50. def getNotContains: String

    Permalink
  51. def getPattern: String

    Permalink
  52. def getPrefix: String

    Permalink
  53. def getStrict: Boolean

    Permalink
  54. def getSuffix: String

    Permalink
  55. def getUri: Boolean

    Permalink
  56. def getUriRef: Boolean

    Permalink
  57. def getUuid: Boolean

    Permalink
  58. def getWellKnownRegex: KnownRegex

    Permalink
  59. val ignoreEmpty: Option[Boolean]

    Permalink

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

  60. val in: Seq[String]

    Permalink

    In specifies that this field must be equal to one of the specified values

  61. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  62. val len: Option[Long]

    Permalink

    Len specifies that this field must be the specified number of characters (Unicode code points).

    Len specifies that this field must be the specified number of characters (Unicode code points). Note that the number of characters may differ from the number of bytes in the string.

  63. val lenBytes: Option[Long]

    Permalink

    LenBytes specifies that this field must be the specified number of bytes

  64. val maxBytes: Option[Long]

    Permalink

    MaxBytes specifies that this field must be the specified number of bytes at a maximum

  65. val maxLen: Option[Long]

    Permalink

    MaxLen specifies that this field must be the specified number of characters (Unicode code points) at a maximum.

    MaxLen specifies that this field must be the specified number of characters (Unicode code points) at a maximum. Note that the number of characters may differ from the number of bytes in the string.

  66. def mergeFrom(_input__: CodedInputStream): StringRules

    Permalink
    Definition Classes
    StringRules → Message
  67. val minBytes: Option[Long]

    Permalink

    MinBytes specifies that this field must be the specified number of bytes at a minimum

  68. val minLen: Option[Long]

    Permalink

    MinLen specifies that this field must be the specified number of characters (Unicode code points) at a minimum.

    MinLen specifies that this field must be the specified number of characters (Unicode code points) at a minimum. Note that the number of characters may differ from the number of bytes in the string.

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

    Permalink
    Definition Classes
    AnyRef
  70. val notContains: Option[String]

    Permalink

    NotContains specifies that this field cannot have the specified substring anywhere in the string.

  71. val notIn: Seq[String]

    Permalink

    NotIn specifies that this field cannot be equal to one of the specified values

  72. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  74. val pattern: Option[String]

    Permalink

    Pattern specifes that this field must match against the specified regular expression (RE2 syntax).

    Pattern specifes that this field must match against the specified regular expression (RE2 syntax). The included expression should elide any delimiters.

  75. val prefix: Option[String]

    Permalink

    Prefix specifies that this field must have the specified substring at the beginning of the string.

  76. final def serializedSize: Int

    Permalink
    Definition Classes
    StringRules → GeneratedMessage
  77. val strict: Option[Boolean]

    Permalink

    This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable strict header validation.

    This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable strict header validation. By default, this is true, and HTTP header validations are RFC-compliant. Setting to false will enable a looser validations that only disallows &92;r&92;n&92;0 characters, which can be used to bypass header matching rules.

  78. val suffix: Option[String]

    Permalink

    Suffix specifies that this field must have the specified substring at the end of the string.

  79. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    GeneratedMessage
  81. def toByteString: ByteString

    Permalink
    Definition Classes
    GeneratedMessage
  82. def toPMessage: PMessage

    Permalink
    Definition Classes
    GeneratedMessage
  83. def toProtoString: String

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

    Permalink
    Definition Classes
    Updatable
  85. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  88. val wellKnown: WellKnown

    Permalink
  89. def withAddress(__v: Boolean): StringRules

    Permalink
  90. def withConst(__v: String): StringRules

    Permalink
  91. def withContains(__v: String): StringRules

    Permalink
  92. def withEmail(__v: Boolean): StringRules

    Permalink
  93. def withHostname(__v: Boolean): StringRules

    Permalink
  94. def withIgnoreEmpty(__v: Boolean): StringRules

    Permalink
  95. def withIn(__v: Seq[String]): StringRules

    Permalink
  96. def withIp(__v: Boolean): StringRules

    Permalink
  97. def withIpv4(__v: Boolean): StringRules

    Permalink
  98. def withIpv6(__v: Boolean): StringRules

    Permalink
  99. def withLen(__v: Long): StringRules

    Permalink
  100. def withLenBytes(__v: Long): StringRules

    Permalink
  101. def withMaxBytes(__v: Long): StringRules

    Permalink
  102. def withMaxLen(__v: Long): StringRules

    Permalink
  103. def withMinBytes(__v: Long): StringRules

    Permalink
  104. def withMinLen(__v: Long): StringRules

    Permalink
  105. def withNotContains(__v: String): StringRules

    Permalink
  106. def withNotIn(__v: Seq[String]): StringRules

    Permalink
  107. def withPattern(__v: String): StringRules

    Permalink
  108. def withPrefix(__v: String): StringRules

    Permalink
  109. def withStrict(__v: Boolean): StringRules

    Permalink
  110. def withSuffix(__v: String): StringRules

    Permalink
  111. def withUri(__v: Boolean): StringRules

    Permalink
  112. def withUriRef(__v: Boolean): StringRules

    Permalink
  113. def withUuid(__v: Boolean): StringRules

    Permalink
  114. def withWellKnown(__v: WellKnown): StringRules

    Permalink
  115. def withWellKnownRegex(__v: KnownRegex): StringRules

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

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

    Permalink
    Definition Classes
    StringRules → GeneratedMessage
  118. 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[StringRules]

Inherited from Message[StringRules]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped