| Package | Description |
|---|---|
| com.buf.validate |
| Modifier and Type | Method and Description |
|---|---|
StringRules.Builder |
StringRules.Builder.addAllIn(Iterable<String> values)
`in` specifies that the field value must be equal to one of the specified
values.
|
StringRules.Builder |
StringRules.Builder.addAllNotIn(Iterable<String> values)
`not_in` specifies that the field value cannot be equal to any
of the specified values.
|
StringRules.Builder |
StringRules.Builder.addIn(String value)
`in` specifies that the field value must be equal to one of the specified
values.
|
StringRules.Builder |
StringRules.Builder.addInBytes(com.google.protobuf.ByteString value)
`in` specifies that the field value must be equal to one of the specified
values.
|
StringRules.Builder |
StringRules.Builder.addNotIn(String value)
`not_in` specifies that the field value cannot be equal to any
of the specified values.
|
StringRules.Builder |
StringRules.Builder.addNotInBytes(com.google.protobuf.ByteString value)
`not_in` specifies that the field value cannot be equal to any
of the specified values.
|
StringRules.Builder |
StringRules.Builder.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
StringRules.Builder |
StringRules.Builder.clear() |
StringRules.Builder |
StringRules.Builder.clearAddress()
`address` specifies that the field value must be either a valid hostname
as defined by [RFC 1034](https://tools.ietf.org/html/rfc1034#section-3.5)
(which doesn't support internationalized domain names or IDNs) or a valid
IP (v4 or v6).
|
StringRules.Builder |
StringRules.Builder.clearConst()
`const` requires the field value to exactly match the specified value.
|
StringRules.Builder |
StringRules.Builder.clearContains()
`contains` specifies that the field value must have the
specified substring anywhere in the string.
|
StringRules.Builder |
StringRules.Builder.clearEmail()
`email` specifies that the field value must be a valid email address
(addr-spec only) as defined by [RFC 5322](https://tools.ietf.org/html/rfc5322#section-3.4.1).
|
StringRules.Builder |
StringRules.Builder.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
StringRules.Builder |
StringRules.Builder.clearHostAndPort()
`host_and_port` specifies the field value must be a valid host and port
pair.
|
StringRules.Builder |
StringRules.Builder.clearHostname()
`hostname` specifies that the field value must be a valid
hostname as defined by [RFC 1034](https://tools.ietf.org/html/rfc1034#section-3.5).
|
StringRules.Builder |
StringRules.Builder.clearIn()
`in` specifies that the field value must be equal to one of the specified
values.
|
StringRules.Builder |
StringRules.Builder.clearIp()
`ip` specifies that the field value must be a valid IP
(v4 or v6) address, without surrounding square brackets for IPv6 addresses.
|
StringRules.Builder |
StringRules.Builder.clearIpPrefix()
`ip_prefix` specifies that the field value must be a valid IP (v4 or v6) prefix.
|
StringRules.Builder |
StringRules.Builder.clearIpv4()
`ipv4` specifies that the field value must be a valid IPv4
address.
|
StringRules.Builder |
StringRules.Builder.clearIpv4Prefix()
`ipv4_prefix` specifies that the field value must be a valid IPv4
prefix.
|
StringRules.Builder |
StringRules.Builder.clearIpv4WithPrefixlen()
`ipv4_with_prefixlen` specifies that the field value must be a valid
IPv4 address with prefix.
|
StringRules.Builder |
StringRules.Builder.clearIpv6()
`ipv6` specifies that the field value must be a valid
IPv6 address, without surrounding square brackets.
|
StringRules.Builder |
StringRules.Builder.clearIpv6Prefix()
`ipv6_prefix` specifies that the field value must be a valid IPv6 prefix.
|
StringRules.Builder |
StringRules.Builder.clearIpv6WithPrefixlen()
`ipv6_with_prefixlen` specifies that the field value must be a valid
IPv6 address with prefix length.
|
StringRules.Builder |
StringRules.Builder.clearIpWithPrefixlen()
`ip_with_prefixlen` specifies that the field value must be a valid IP (v4 or v6)
address with prefix length.
|
StringRules.Builder |
StringRules.Builder.clearLen()
`len` dictates that the field value must have the specified
number of characters (Unicode code points), which may differ from the number
of bytes in the string.
|
StringRules.Builder |
StringRules.Builder.clearLenBytes()
`len_bytes` dictates that the field value must have the specified number of
bytes.
|
StringRules.Builder |
StringRules.Builder.clearMaxBytes()
`max_bytes` specifies that the field value must have no more than the
specified number of bytes.
|
StringRules.Builder |
StringRules.Builder.clearMaxLen()
`max_len` specifies that the field value must have no more than the specified
number of characters (Unicode code points), which may differ from the
number of bytes in the string.
|
StringRules.Builder |
StringRules.Builder.clearMinBytes()
`min_bytes` specifies that the field value must have at least the specified
number of bytes.
|
StringRules.Builder |
StringRules.Builder.clearMinLen()
`min_len` specifies that the field value must have at least the specified
number of characters (Unicode code points), which may differ from the number
of bytes in the string.
|
StringRules.Builder |
StringRules.Builder.clearNotContains()
`not_contains` specifies that the field value must not have the
specified substring anywhere in the string.
|
StringRules.Builder |
StringRules.Builder.clearNotIn()
`not_in` specifies that the field value cannot be equal to any
of the specified values.
|
StringRules.Builder |
StringRules.Builder.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
StringRules.Builder |
StringRules.Builder.clearPattern()
`pattern` specifies that the field value must match the specified
regular expression (RE2 syntax), with the expression provided without any
delimiters.
|
StringRules.Builder |
StringRules.Builder.clearPrefix()
`prefix` specifies that the field value must have the
specified substring at the beginning of the string.
|
StringRules.Builder |
StringRules.Builder.clearStrict()
This applies to regexes `HTTP_HEADER_NAME` and `HTTP_HEADER_VALUE` to
enable strict header validation.
|
StringRules.Builder |
StringRules.Builder.clearSuffix()
`suffix` specifies that the field value must have the
specified substring at the end of the string.
|
StringRules.Builder |
StringRules.Builder.clearUri()
`uri` specifies that the field value must be a valid,
absolute URI as defined by [RFC 3986](https://tools.ietf.org/html/rfc3986#section-3).
|
StringRules.Builder |
StringRules.Builder.clearUriRef()
`uri_ref` specifies that the field value must be a valid URI
as defined by [RFC 3986](https://tools.ietf.org/html/rfc3986#section-3) and may be either relative or absolute.
|
StringRules.Builder |
StringRules.Builder.clearUuid()
`uuid` specifies that the field value must be a valid UUID as defined by
[RFC 4122](https://tools.ietf.org/html/rfc4122#section-4.1.2).
|
StringRules.Builder |
StringRules.Builder.clearWellKnown() |
StringRules.Builder |
StringRules.Builder.clearWellKnownRegex()
`well_known_regex` specifies a common well-known pattern
defined as a regex.
|
StringRules.Builder |
StringRules.Builder.clone() |
StringRules.Builder |
FieldConstraints.Builder.getStringBuilder()
.buf.validate.StringRules string = 14 [json_name = "string"]; |
StringRules.Builder |
StringRules.Builder.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
static StringRules.Builder |
StringRules.newBuilder() |
static StringRules.Builder |
StringRules.newBuilder(StringRules prototype) |
StringRules.Builder |
StringRules.newBuilderForType() |
protected StringRules.Builder |
StringRules.newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
StringRules.Builder |
StringRules.Builder.setAddress(boolean value)
`address` specifies that the field value must be either a valid hostname
as defined by [RFC 1034](https://tools.ietf.org/html/rfc1034#section-3.5)
(which doesn't support internationalized domain names or IDNs) or a valid
IP (v4 or v6).
|
StringRules.Builder |
StringRules.Builder.setConst(String value)
`const` requires the field value to exactly match the specified value.
|
StringRules.Builder |
StringRules.Builder.setConstBytes(com.google.protobuf.ByteString value)
`const` requires the field value to exactly match the specified value.
|
StringRules.Builder |
StringRules.Builder.setContains(String value)
`contains` specifies that the field value must have the
specified substring anywhere in the string.
|
StringRules.Builder |
StringRules.Builder.setContainsBytes(com.google.protobuf.ByteString value)
`contains` specifies that the field value must have the
specified substring anywhere in the string.
|
StringRules.Builder |
StringRules.Builder.setEmail(boolean value)
`email` specifies that the field value must be a valid email address
(addr-spec only) as defined by [RFC 5322](https://tools.ietf.org/html/rfc5322#section-3.4.1).
|
StringRules.Builder |
StringRules.Builder.setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
StringRules.Builder |
StringRules.Builder.setHostAndPort(boolean value)
`host_and_port` specifies the field value must be a valid host and port
pair.
|
StringRules.Builder |
StringRules.Builder.setHostname(boolean value)
`hostname` specifies that the field value must be a valid
hostname as defined by [RFC 1034](https://tools.ietf.org/html/rfc1034#section-3.5).
|
StringRules.Builder |
StringRules.Builder.setIn(int index,
String value)
`in` specifies that the field value must be equal to one of the specified
values.
|
StringRules.Builder |
StringRules.Builder.setIp(boolean value)
`ip` specifies that the field value must be a valid IP
(v4 or v6) address, without surrounding square brackets for IPv6 addresses.
|
StringRules.Builder |
StringRules.Builder.setIpPrefix(boolean value)
`ip_prefix` specifies that the field value must be a valid IP (v4 or v6) prefix.
|
StringRules.Builder |
StringRules.Builder.setIpv4(boolean value)
`ipv4` specifies that the field value must be a valid IPv4
address.
|
StringRules.Builder |
StringRules.Builder.setIpv4Prefix(boolean value)
`ipv4_prefix` specifies that the field value must be a valid IPv4
prefix.
|
StringRules.Builder |
StringRules.Builder.setIpv4WithPrefixlen(boolean value)
`ipv4_with_prefixlen` specifies that the field value must be a valid
IPv4 address with prefix.
|
StringRules.Builder |
StringRules.Builder.setIpv6(boolean value)
`ipv6` specifies that the field value must be a valid
IPv6 address, without surrounding square brackets.
|
StringRules.Builder |
StringRules.Builder.setIpv6Prefix(boolean value)
`ipv6_prefix` specifies that the field value must be a valid IPv6 prefix.
|
StringRules.Builder |
StringRules.Builder.setIpv6WithPrefixlen(boolean value)
`ipv6_with_prefixlen` specifies that the field value must be a valid
IPv6 address with prefix length.
|
StringRules.Builder |
StringRules.Builder.setIpWithPrefixlen(boolean value)
`ip_with_prefixlen` specifies that the field value must be a valid IP (v4 or v6)
address with prefix length.
|
StringRules.Builder |
StringRules.Builder.setLen(long value)
`len` dictates that the field value must have the specified
number of characters (Unicode code points), which may differ from the number
of bytes in the string.
|
StringRules.Builder |
StringRules.Builder.setLenBytes(long value)
`len_bytes` dictates that the field value must have the specified number of
bytes.
|
StringRules.Builder |
StringRules.Builder.setMaxBytes(long value)
`max_bytes` specifies that the field value must have no more than the
specified number of bytes.
|
StringRules.Builder |
StringRules.Builder.setMaxLen(long value)
`max_len` specifies that the field value must have no more than the specified
number of characters (Unicode code points), which may differ from the
number of bytes in the string.
|
StringRules.Builder |
StringRules.Builder.setMinBytes(long value)
`min_bytes` specifies that the field value must have at least the specified
number of bytes.
|
StringRules.Builder |
StringRules.Builder.setMinLen(long value)
`min_len` specifies that the field value must have at least the specified
number of characters (Unicode code points), which may differ from the number
of bytes in the string.
|
StringRules.Builder |
StringRules.Builder.setNotContains(String value)
`not_contains` specifies that the field value must not have the
specified substring anywhere in the string.
|
StringRules.Builder |
StringRules.Builder.setNotContainsBytes(com.google.protobuf.ByteString value)
`not_contains` specifies that the field value must not have the
specified substring anywhere in the string.
|
StringRules.Builder |
StringRules.Builder.setNotIn(int index,
String value)
`not_in` specifies that the field value cannot be equal to any
of the specified values.
|
StringRules.Builder |
StringRules.Builder.setPattern(String value)
`pattern` specifies that the field value must match the specified
regular expression (RE2 syntax), with the expression provided without any
delimiters.
|
StringRules.Builder |
StringRules.Builder.setPatternBytes(com.google.protobuf.ByteString value)
`pattern` specifies that the field value must match the specified
regular expression (RE2 syntax), with the expression provided without any
delimiters.
|
StringRules.Builder |
StringRules.Builder.setPrefix(String value)
`prefix` specifies that the field value must have the
specified substring at the beginning of the string.
|
StringRules.Builder |
StringRules.Builder.setPrefixBytes(com.google.protobuf.ByteString value)
`prefix` specifies that the field value must have the
specified substring at the beginning of the string.
|
StringRules.Builder |
StringRules.Builder.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
StringRules.Builder |
StringRules.Builder.setStrict(boolean value)
This applies to regexes `HTTP_HEADER_NAME` and `HTTP_HEADER_VALUE` to
enable strict header validation.
|
StringRules.Builder |
StringRules.Builder.setSuffix(String value)
`suffix` specifies that the field value must have the
specified substring at the end of the string.
|
StringRules.Builder |
StringRules.Builder.setSuffixBytes(com.google.protobuf.ByteString value)
`suffix` specifies that the field value must have the
specified substring at the end of the string.
|
StringRules.Builder |
StringRules.Builder.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
StringRules.Builder |
StringRules.Builder.setUri(boolean value)
`uri` specifies that the field value must be a valid,
absolute URI as defined by [RFC 3986](https://tools.ietf.org/html/rfc3986#section-3).
|
StringRules.Builder |
StringRules.Builder.setUriRef(boolean value)
`uri_ref` specifies that the field value must be a valid URI
as defined by [RFC 3986](https://tools.ietf.org/html/rfc3986#section-3) and may be either relative or absolute.
|
StringRules.Builder |
StringRules.Builder.setUuid(boolean value)
`uuid` specifies that the field value must be a valid UUID as defined by
[RFC 4122](https://tools.ietf.org/html/rfc4122#section-4.1.2).
|
StringRules.Builder |
StringRules.Builder.setWellKnownRegex(KnownRegex value)
`well_known_regex` specifies a common well-known pattern
defined as a regex.
|
StringRules.Builder |
StringRules.Builder.setWellKnownRegexValue(int value)
`well_known_regex` specifies a common well-known pattern
defined as a regex.
|
StringRules.Builder |
StringRules.toBuilder() |
| Modifier and Type | Method and Description |
|---|---|
FieldConstraints.Builder |
FieldConstraints.Builder.setString(StringRules.Builder builderForValue)
.buf.validate.StringRules string = 14 [json_name = "string"]; |
Copyright © 2024. All rights reserved.