StringRules

@SerialVersionUID(0L) final case class StringRules(const: Option[String], len: Option[Long], minLen: Option[Long], maxLen: Option[Long], lenBytes: Option[Long], minBytes: Option[Long], maxBytes: Option[Long], pattern: Option[String], prefix: Option[String], suffix: Option[String], contains: Option[String], notContains: Option[String], in: Seq[String], notIn: Seq[String], wellKnown: WellKnown, strict: Option[Boolean], unknownFields: UnknownFieldSet) extends GeneratedMessage with Updatable[StringRules]

StringRules describe the constraints applied to string values

StringRules describe the constraints applied to string values

Value Params
const

Const specifies that this field must be exactly the specified value

contains

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

in

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

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.

lenBytes

LenBytes 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

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.

minBytes

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

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.

notContains

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

notIn

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

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.

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.

suffix

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

Companion
object
trait Updatable[StringRules]
trait GeneratedMessage
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def addAllIn(__vs: Iterable[String]): StringRules
def addAllNotIn(__vs: Iterable[String]): StringRules
def addIn(__vs: String*): StringRules
def addNotIn(__vs: String*): StringRules
def companion: GeneratedMessageCompanion[_]
def getAddress: Boolean
def getConst: String
def getContains: String
def getEmail: Boolean
def getField(__field: FieldDescriptor): PValue
def getFieldByNumber(__fieldNumber: Int): Any
def getHostname: Boolean
def getIp: Boolean
def getIpv4: Boolean
def getIpv6: Boolean
def getLen: Long
def getLenBytes: Long
def getMaxBytes: Long
def getMaxLen: Long
def getMinBytes: Long
def getMinLen: Long
def getNotContains: String
def getPattern: String
def getPrefix: String
def getStrict: Boolean
def getSuffix: String
def getUri: Boolean
def getUriRef: Boolean
def getUuid: Boolean
override def serializedSize: Int
Definition Classes
GeneratedMessage
def toProtoString: String
def withAddress(__v: Boolean): StringRules
def withConst(__v: String): StringRules
def withContains(__v: String): StringRules
def withEmail(__v: Boolean): StringRules
def withHostname(__v: Boolean): StringRules
def withIn(__v: Seq[String]): StringRules
def withIp(__v: Boolean): StringRules
def withIpv4(__v: Boolean): StringRules
def withIpv6(__v: Boolean): StringRules
def withLen(__v: Long): StringRules
def withLenBytes(__v: Long): StringRules
def withMaxBytes(__v: Long): StringRules
def withMaxLen(__v: Long): StringRules
def withMinBytes(__v: Long): StringRules
def withMinLen(__v: Long): StringRules
def withNotContains(__v: String): StringRules
def withNotIn(__v: Seq[String]): StringRules
def withPattern(__v: String): StringRules
def withPrefix(__v: String): StringRules
def withStrict(__v: Boolean): StringRules
def withSuffix(__v: String): StringRules
def withUnknownFields(__v: UnknownFieldSet): StringRules
def withUri(__v: Boolean): StringRules
def withUriRef(__v: Boolean): StringRules
def withUuid(__v: Boolean): StringRules
def writeTo(_output__: CodedOutputStream): Unit

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
final def toByteArray: Array[Byte]

Serializes the messgae and returns a byte array containing its raw bytes

Serializes the messgae and returns a byte array containing its raw bytes

Inherited from
GeneratedMessage
final def toByteString: ByteString

Serializes the messgae and returns a ByteString containing its raw bytes

Serializes the messgae and returns a ByteString containing its raw bytes

Inherited from
GeneratedMessage
final def toPMessage: PMessage
Inherited from
GeneratedMessage
Inherited from
Updatable
final def writeDelimitedTo(output: OutputStream): Unit
Inherited from
GeneratedMessage
final def writeTo(output: OutputStream): Unit

Serializes the message into the given output stream

Serializes the message into the given output stream

Inherited from
GeneratedMessage