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, 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

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, 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

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

    Permalink
  23. def clearWellKnown: StringRules

    Permalink
  24. def clone(): AnyRef

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

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

    Permalink

    Const specifies that this field must be exactly the specified value

  27. val contains: Option[String]

    Permalink

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

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

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

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

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

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

    Permalink
  33. def getContains: String

    Permalink
  34. def getEmail: Boolean

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

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

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

    Permalink
  38. def getIp: Boolean

    Permalink
  39. def getIpv4: Boolean

    Permalink
  40. def getIpv6: Boolean

    Permalink
  41. def getLen: Long

    Permalink
  42. def getLenBytes: Long

    Permalink
  43. def getMaxBytes: Long

    Permalink
  44. def getMaxLen: Long

    Permalink
  45. def getMinBytes: Long

    Permalink
  46. def getMinLen: Long

    Permalink
  47. def getNotContains: String

    Permalink
  48. def getPattern: String

    Permalink
  49. def getPrefix: String

    Permalink
  50. def getSuffix: String

    Permalink
  51. def getUri: Boolean

    Permalink
  52. def getUriRef: Boolean

    Permalink
  53. def getUuid: Boolean

    Permalink
  54. def getWellKnownRegex: KnownRegex

    Permalink
  55. val in: Seq[String]

    Permalink

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

  56. final def isInstanceOf[T0]: Boolean

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

  58. val lenBytes: Option[Long]

    Permalink

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

  59. val maxBytes: Option[Long]

    Permalink

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

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

  61. def mergeFrom(_input__: CodedInputStream): StringRules

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

    Permalink

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

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

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

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

    Permalink

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

  66. val notIn: Seq[String]

    Permalink

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

  67. final def notify(): Unit

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

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

  70. val prefix: Option[String]

    Permalink

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

  71. final def serializedSize: Int

    Permalink
    Definition Classes
    StringRules → GeneratedMessage
  72. val suffix: Option[String]

    Permalink

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

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

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

    Permalink
    Definition Classes
    GeneratedMessage
  75. def toByteString: ByteString

    Permalink
    Definition Classes
    GeneratedMessage
  76. def toPMessage: PMessage

    Permalink
    Definition Classes
    GeneratedMessage
  77. def toProtoString: String

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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