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, 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 at a minimum

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.

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, 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 at a minimum

    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.

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 clearIn: StringRules

    Permalink
  12. def clearLen: StringRules

    Permalink
  13. def clearLenBytes: StringRules

    Permalink
  14. def clearMaxBytes: StringRules

    Permalink
  15. def clearMaxLen: StringRules

    Permalink
  16. def clearMinBytes: StringRules

    Permalink
  17. def clearMinLen: StringRules

    Permalink
  18. def clearNotContains: StringRules

    Permalink
  19. def clearNotIn: StringRules

    Permalink
  20. def clearPattern: StringRules

    Permalink
  21. def clearPrefix: StringRules

    Permalink
  22. def clearStrict: StringRules

    Permalink
  23. def clearSuffix: StringRules

    Permalink
  24. def clearWellKnown: StringRules

    Permalink
  25. def clone(): AnyRef

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

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

    Permalink

    Const specifies that this field must be exactly the specified value

  28. val contains: Option[String]

    Permalink

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

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

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

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

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

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

    Permalink
  34. def getContains: String

    Permalink
  35. def getEmail: Boolean

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

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

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

    Permalink
  39. def getIp: Boolean

    Permalink
  40. def getIpv4: Boolean

    Permalink
  41. def getIpv6: Boolean

    Permalink
  42. def getLen: Long

    Permalink
  43. def getLenBytes: Long

    Permalink
  44. def getMaxBytes: Long

    Permalink
  45. def getMaxLen: Long

    Permalink
  46. def getMinBytes: Long

    Permalink
  47. def getMinLen: Long

    Permalink
  48. def getNotContains: String

    Permalink
  49. def getPattern: String

    Permalink
  50. def getPrefix: String

    Permalink
  51. def getStrict: Boolean

    Permalink
  52. def getSuffix: String

    Permalink
  53. def getUri: Boolean

    Permalink
  54. def getUriRef: Boolean

    Permalink
  55. def getUuid: Boolean

    Permalink
  56. def getWellKnownRegex: KnownRegex

    Permalink
  57. val in: Seq[String]

    Permalink

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

  58. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  59. 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.

  60. val lenBytes: Option[Long]

    Permalink

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

  61. val maxBytes: Option[Long]

    Permalink

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

  62. 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.

  63. def mergeFrom(_input__: CodedInputStream): StringRules

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

    Permalink

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

  65. 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.

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

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

    Permalink

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

  68. val notIn: Seq[String]

    Permalink

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

  69. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  71. 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.

  72. val prefix: Option[String]

    Permalink

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

  73. final def serializedSize: Int

    Permalink
    Definition Classes
    StringRules → GeneratedMessage
  74. 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.

  75. val suffix: Option[String]

    Permalink

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

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

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

    Permalink
    Definition Classes
    GeneratedMessage
  78. def toByteString: ByteString

    Permalink
    Definition Classes
    GeneratedMessage
  79. def toPMessage: PMessage

    Permalink
    Definition Classes
    GeneratedMessage
  80. def toProtoString: String

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    StringRules → GeneratedMessage
  114. 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