Class/Object

io.envoyproxy.pgv.validate.validate

BytesRules

Related Docs: object BytesRules | package validate

Permalink

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

BytesRules describe the constraints applied to bytes 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 bytes

minLen

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

maxLen

MaxLen 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 bytes at the beginning of the string.

suffix

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

contains

Contains specifies that this field must have the specified bytes 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

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[BytesRules], Message[BytesRules], GeneratedMessage, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BytesRules
  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 BytesRules(const: Option[ByteString] = _root_.scala.None, len: Option[Long] = _root_.scala.None, minLen: Option[Long] = _root_.scala.None, maxLen: Option[Long] = _root_.scala.None, pattern: Option[String] = _root_.scala.None, prefix: Option[ByteString] = _root_.scala.None, suffix: Option[ByteString] = _root_.scala.None, contains: Option[ByteString] = _root_.scala.None, in: Seq[ByteString] = _root_.scala.Seq.empty, notIn: Seq[ByteString] = _root_.scala.Seq.empty, 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 bytes

    minLen

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

    maxLen

    MaxLen 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 bytes at the beginning of the string.

    suffix

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

    contains

    Contains specifies that this field must have the specified bytes 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

    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[ByteString]): BytesRules

    Permalink
  5. def addAllNotIn(__vs: Iterable[ByteString]): BytesRules

    Permalink
  6. def addIn(__vs: ByteString*): BytesRules

    Permalink
  7. def addNotIn(__vs: ByteString*): BytesRules

    Permalink
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clearConst: BytesRules

    Permalink
  10. def clearContains: BytesRules

    Permalink
  11. def clearIgnoreEmpty: BytesRules

    Permalink
  12. def clearIn: BytesRules

    Permalink
  13. def clearLen: BytesRules

    Permalink
  14. def clearMaxLen: BytesRules

    Permalink
  15. def clearMinLen: BytesRules

    Permalink
  16. def clearNotIn: BytesRules

    Permalink
  17. def clearPattern: BytesRules

    Permalink
  18. def clearPrefix: BytesRules

    Permalink
  19. def clearSuffix: BytesRules

    Permalink
  20. def clearWellKnown: BytesRules

    Permalink
  21. def clone(): AnyRef

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

    Permalink
    Definition Classes
    BytesRules → GeneratedMessage
  23. val const: Option[ByteString]

    Permalink

    Const specifies that this field must be exactly the specified value

  24. val contains: Option[ByteString]

    Permalink

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  28. def getConst: ByteString

    Permalink
  29. def getContains: ByteString

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

    Permalink
    Definition Classes
    BytesRules → GeneratedMessage
  31. def getFieldByNumber(__fieldNumber: Int): Any

    Permalink
    Definition Classes
    BytesRules → GeneratedMessage
  32. def getIgnoreEmpty: Boolean

    Permalink
  33. def getIp: Boolean

    Permalink
  34. def getIpv4: Boolean

    Permalink
  35. def getIpv6: Boolean

    Permalink
  36. def getLen: Long

    Permalink
  37. def getMaxLen: Long

    Permalink
  38. def getMinLen: Long

    Permalink
  39. def getPattern: String

    Permalink
  40. def getPrefix: ByteString

    Permalink
  41. def getSuffix: ByteString

    Permalink
  42. val ignoreEmpty: Option[Boolean]

    Permalink

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

  43. val in: Seq[ByteString]

    Permalink

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

  44. final def isInstanceOf[T0]: Boolean

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

    Permalink

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

  46. val maxLen: Option[Long]

    Permalink

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

  47. def mergeFrom(_input__: CodedInputStream): BytesRules

    Permalink
    Definition Classes
    BytesRules → Message
  48. val minLen: Option[Long]

    Permalink

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

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

    Permalink
    Definition Classes
    AnyRef
  50. val notIn: Seq[ByteString]

    Permalink

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

  51. final def notify(): Unit

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

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

  54. val prefix: Option[ByteString]

    Permalink

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

  55. final def serializedSize: Int

    Permalink
    Definition Classes
    BytesRules → GeneratedMessage
  56. val suffix: Option[ByteString]

    Permalink

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

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

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

    Permalink
    Definition Classes
    GeneratedMessage
  59. def toByteString: ByteString

    Permalink
    Definition Classes
    GeneratedMessage
  60. def toPMessage: PMessage

    Permalink
    Definition Classes
    GeneratedMessage
  61. def toProtoString: String

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

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

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

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

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

    Permalink
  67. def withConst(__v: ByteString): BytesRules

    Permalink
  68. def withContains(__v: ByteString): BytesRules

    Permalink
  69. def withIgnoreEmpty(__v: Boolean): BytesRules

    Permalink
  70. def withIn(__v: Seq[ByteString]): BytesRules

    Permalink
  71. def withIp(__v: Boolean): BytesRules

    Permalink
  72. def withIpv4(__v: Boolean): BytesRules

    Permalink
  73. def withIpv6(__v: Boolean): BytesRules

    Permalink
  74. def withLen(__v: Long): BytesRules

    Permalink
  75. def withMaxLen(__v: Long): BytesRules

    Permalink
  76. def withMinLen(__v: Long): BytesRules

    Permalink
  77. def withNotIn(__v: Seq[ByteString]): BytesRules

    Permalink
  78. def withPattern(__v: String): BytesRules

    Permalink
  79. def withPrefix(__v: ByteString): BytesRules

    Permalink
  80. def withSuffix(__v: ByteString): BytesRules

    Permalink
  81. def withWellKnown(__v: WellKnown): BytesRules

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

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

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

Inherited from Message[BytesRules]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped