public static final class Validate.StringRules.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Validate.StringRules.Builder> implements Validate.StringRulesOrBuilder
StringRules describe the constraints applied to `string` valuesProtobuf type
validate.StringRules| Modifier and Type | Method and Description |
|---|---|
Validate.StringRules.Builder |
addAllIn(Iterable<String> values)
In specifies that this field must be equal to one of the specified
values
repeated string in = 10; |
Validate.StringRules.Builder |
addAllNotIn(Iterable<String> values)
NotIn specifies that this field cannot be equal to one of the specified
values
repeated string not_in = 11; |
Validate.StringRules.Builder |
addIn(String value)
In specifies that this field must be equal to one of the specified
values
repeated string in = 10; |
Validate.StringRules.Builder |
addInBytes(com.google.protobuf.ByteString value)
In specifies that this field must be equal to one of the specified
values
repeated string in = 10; |
Validate.StringRules.Builder |
addNotIn(String value)
NotIn specifies that this field cannot be equal to one of the specified
values
repeated string not_in = 11; |
Validate.StringRules.Builder |
addNotInBytes(com.google.protobuf.ByteString value)
NotIn specifies that this field cannot be equal to one of the specified
values
repeated string not_in = 11; |
Validate.StringRules.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Validate.StringRules |
build() |
Validate.StringRules |
buildPartial() |
Validate.StringRules.Builder |
clear() |
Validate.StringRules.Builder |
clearAddress()
Address specifies that the field must be either a valid hostname as
defined by RFC 1034 (which does not support internationalized domain
names or IDNs), or it can be a valid IP (v4 or v6).
|
Validate.StringRules.Builder |
clearConst()
Const specifies that this field must be exactly the specified value
optional string const = 1; |
Validate.StringRules.Builder |
clearContains()
Contains specifies that this field must have the specified substring
anywhere in the string.
|
Validate.StringRules.Builder |
clearEmail()
Email specifies that the field must be a valid email address as
defined by RFC 5322
optional bool email = 12; |
Validate.StringRules.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Validate.StringRules.Builder |
clearHostname()
Hostname specifies that the field must be a valid hostname as
defined by RFC 1034.
|
Validate.StringRules.Builder |
clearIn()
In specifies that this field must be equal to one of the specified
values
repeated string in = 10; |
Validate.StringRules.Builder |
clearIp()
Ip specifies that the field must be a valid IP (v4 or v6) address.
|
Validate.StringRules.Builder |
clearIpv4()
Ipv4 specifies that the field must be a valid IPv4 address.
|
Validate.StringRules.Builder |
clearIpv6()
Ipv6 specifies that the field must be a valid IPv6 address.
|
Validate.StringRules.Builder |
clearLen()
Len specifies that this field must be the specified number of
characters (Unicode code points).
|
Validate.StringRules.Builder |
clearLenBytes()
LenBytes specifies that this field must be the specified number of bytes
at a minimum
optional uint64 len_bytes = 20; |
Validate.StringRules.Builder |
clearMaxBytes()
MaxBytes specifies that this field must be the specified number of bytes
at a maximum
optional uint64 max_bytes = 5; |
Validate.StringRules.Builder |
clearMaxLen()
MaxLen specifies that this field must be the specified number of
characters (Unicode code points) at a maximum.
|
Validate.StringRules.Builder |
clearMinBytes()
MinBytes specifies that this field must be the specified number of bytes
at a minimum
optional uint64 min_bytes = 4; |
Validate.StringRules.Builder |
clearMinLen()
MinLen specifies that this field must be the specified number of
characters (Unicode code points) at a minimum.
|
Validate.StringRules.Builder |
clearNotContains()
NotContains specifies that this field cannot have the specified substring
anywhere in the string.
|
Validate.StringRules.Builder |
clearNotIn()
NotIn specifies that this field cannot be equal to one of the specified
values
repeated string not_in = 11; |
Validate.StringRules.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Validate.StringRules.Builder |
clearPattern()
Pattern specifes that this field must match against the specified
regular expression (RE2 syntax).
|
Validate.StringRules.Builder |
clearPrefix()
Prefix specifies that this field must have the specified substring at
the beginning of the string.
|
Validate.StringRules.Builder |
clearStrict()
This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable
strict header validation.
|
Validate.StringRules.Builder |
clearSuffix()
Suffix specifies that this field must have the specified substring at
the end of the string.
|
Validate.StringRules.Builder |
clearUri()
Uri specifies that the field must be a valid, absolute URI as defined
by RFC 3986
optional bool uri = 17; |
Validate.StringRules.Builder |
clearUriRef()
UriRef specifies that the field must be a valid URI as defined by RFC
3986 and may be relative or absolute.
|
Validate.StringRules.Builder |
clearUuid()
Uuid specifies that the field must be a valid UUID as defined by
RFC 4122
optional bool uuid = 22; |
Validate.StringRules.Builder |
clearWellKnown() |
Validate.StringRules.Builder |
clearWellKnownRegex()
WellKnownRegex specifies a common well known pattern defined as a regex.
|
Validate.StringRules.Builder |
clone() |
boolean |
getAddress()
Address specifies that the field must be either a valid hostname as
defined by RFC 1034 (which does not support internationalized domain
names or IDNs), or it can be a valid IP (v4 or v6).
|
String |
getConst()
Const specifies that this field must be exactly the specified value
optional string const = 1; |
com.google.protobuf.ByteString |
getConstBytes()
Const specifies that this field must be exactly the specified value
optional string const = 1; |
String |
getContains()
Contains specifies that this field must have the specified substring
anywhere in the string.
|
com.google.protobuf.ByteString |
getContainsBytes()
Contains specifies that this field must have the specified substring
anywhere in the string.
|
Validate.StringRules |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getEmail()
Email specifies that the field must be a valid email address as
defined by RFC 5322
optional bool email = 12; |
boolean |
getHostname()
Hostname specifies that the field must be a valid hostname as
defined by RFC 1034.
|
String |
getIn(int index)
In specifies that this field must be equal to one of the specified
values
repeated string in = 10; |
com.google.protobuf.ByteString |
getInBytes(int index)
In specifies that this field must be equal to one of the specified
values
repeated string in = 10; |
int |
getInCount()
In specifies that this field must be equal to one of the specified
values
repeated string in = 10; |
com.google.protobuf.ProtocolStringList |
getInList()
In specifies that this field must be equal to one of the specified
values
repeated string in = 10; |
boolean |
getIp()
Ip specifies that the field must be a valid IP (v4 or v6) address.
|
boolean |
getIpv4()
Ipv4 specifies that the field must be a valid IPv4 address.
|
boolean |
getIpv6()
Ipv6 specifies that the field must be a valid IPv6 address.
|
long |
getLen()
Len specifies that this field must be the specified number of
characters (Unicode code points).
|
long |
getLenBytes()
LenBytes specifies that this field must be the specified number of bytes
at a minimum
optional uint64 len_bytes = 20; |
long |
getMaxBytes()
MaxBytes specifies that this field must be the specified number of bytes
at a maximum
optional uint64 max_bytes = 5; |
long |
getMaxLen()
MaxLen specifies that this field must be the specified number of
characters (Unicode code points) at a maximum.
|
long |
getMinBytes()
MinBytes specifies that this field must be the specified number of bytes
at a minimum
optional uint64 min_bytes = 4; |
long |
getMinLen()
MinLen specifies that this field must be the specified number of
characters (Unicode code points) at a minimum.
|
String |
getNotContains()
NotContains specifies that this field cannot have the specified substring
anywhere in the string.
|
com.google.protobuf.ByteString |
getNotContainsBytes()
NotContains specifies that this field cannot have the specified substring
anywhere in the string.
|
String |
getNotIn(int index)
NotIn specifies that this field cannot be equal to one of the specified
values
repeated string not_in = 11; |
com.google.protobuf.ByteString |
getNotInBytes(int index)
NotIn specifies that this field cannot be equal to one of the specified
values
repeated string not_in = 11; |
int |
getNotInCount()
NotIn specifies that this field cannot be equal to one of the specified
values
repeated string not_in = 11; |
com.google.protobuf.ProtocolStringList |
getNotInList()
NotIn specifies that this field cannot be equal to one of the specified
values
repeated string not_in = 11; |
String |
getPattern()
Pattern specifes that this field must match against the specified
regular expression (RE2 syntax).
|
com.google.protobuf.ByteString |
getPatternBytes()
Pattern specifes that this field must match against the specified
regular expression (RE2 syntax).
|
String |
getPrefix()
Prefix specifies that this field must have the specified substring at
the beginning of the string.
|
com.google.protobuf.ByteString |
getPrefixBytes()
Prefix specifies that this field must have the specified substring at
the beginning of the string.
|
boolean |
getStrict()
This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable
strict header validation.
|
String |
getSuffix()
Suffix specifies that this field must have the specified substring at
the end of the string.
|
com.google.protobuf.ByteString |
getSuffixBytes()
Suffix specifies that this field must have the specified substring at
the end of the string.
|
boolean |
getUri()
Uri specifies that the field must be a valid, absolute URI as defined
by RFC 3986
optional bool uri = 17; |
boolean |
getUriRef()
UriRef specifies that the field must be a valid URI as defined by RFC
3986 and may be relative or absolute.
|
boolean |
getUuid()
Uuid specifies that the field must be a valid UUID as defined by
RFC 4122
optional bool uuid = 22; |
Validate.StringRules.WellKnownCase |
getWellKnownCase() |
Validate.KnownRegex |
getWellKnownRegex()
WellKnownRegex specifies a common well known pattern defined as a regex.
|
boolean |
hasAddress()
Address specifies that the field must be either a valid hostname as
defined by RFC 1034 (which does not support internationalized domain
names or IDNs), or it can be a valid IP (v4 or v6).
|
boolean |
hasConst()
Const specifies that this field must be exactly the specified value
optional string const = 1; |
boolean |
hasContains()
Contains specifies that this field must have the specified substring
anywhere in the string.
|
boolean |
hasEmail()
Email specifies that the field must be a valid email address as
defined by RFC 5322
optional bool email = 12; |
boolean |
hasHostname()
Hostname specifies that the field must be a valid hostname as
defined by RFC 1034.
|
boolean |
hasIp()
Ip specifies that the field must be a valid IP (v4 or v6) address.
|
boolean |
hasIpv4()
Ipv4 specifies that the field must be a valid IPv4 address.
|
boolean |
hasIpv6()
Ipv6 specifies that the field must be a valid IPv6 address.
|
boolean |
hasLen()
Len specifies that this field must be the specified number of
characters (Unicode code points).
|
boolean |
hasLenBytes()
LenBytes specifies that this field must be the specified number of bytes
at a minimum
optional uint64 len_bytes = 20; |
boolean |
hasMaxBytes()
MaxBytes specifies that this field must be the specified number of bytes
at a maximum
optional uint64 max_bytes = 5; |
boolean |
hasMaxLen()
MaxLen specifies that this field must be the specified number of
characters (Unicode code points) at a maximum.
|
boolean |
hasMinBytes()
MinBytes specifies that this field must be the specified number of bytes
at a minimum
optional uint64 min_bytes = 4; |
boolean |
hasMinLen()
MinLen specifies that this field must be the specified number of
characters (Unicode code points) at a minimum.
|
boolean |
hasNotContains()
NotContains specifies that this field cannot have the specified substring
anywhere in the string.
|
boolean |
hasPattern()
Pattern specifes that this field must match against the specified
regular expression (RE2 syntax).
|
boolean |
hasPrefix()
Prefix specifies that this field must have the specified substring at
the beginning of the string.
|
boolean |
hasStrict()
This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable
strict header validation.
|
boolean |
hasSuffix()
Suffix specifies that this field must have the specified substring at
the end of the string.
|
boolean |
hasUri()
Uri specifies that the field must be a valid, absolute URI as defined
by RFC 3986
optional bool uri = 17; |
boolean |
hasUriRef()
UriRef specifies that the field must be a valid URI as defined by RFC
3986 and may be relative or absolute.
|
boolean |
hasUuid()
Uuid specifies that the field must be a valid UUID as defined by
RFC 4122
optional bool uuid = 22; |
boolean |
hasWellKnownRegex()
WellKnownRegex specifies a common well known pattern defined as a regex.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Validate.StringRules.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Validate.StringRules.Builder |
mergeFrom(com.google.protobuf.Message other) |
Validate.StringRules.Builder |
mergeFrom(Validate.StringRules other) |
Validate.StringRules.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Validate.StringRules.Builder |
setAddress(boolean value)
Address specifies that the field must be either a valid hostname as
defined by RFC 1034 (which does not support internationalized domain
names or IDNs), or it can be a valid IP (v4 or v6).
|
Validate.StringRules.Builder |
setConst(String value)
Const specifies that this field must be exactly the specified value
optional string const = 1; |
Validate.StringRules.Builder |
setConstBytes(com.google.protobuf.ByteString value)
Const specifies that this field must be exactly the specified value
optional string const = 1; |
Validate.StringRules.Builder |
setContains(String value)
Contains specifies that this field must have the specified substring
anywhere in the string.
|
Validate.StringRules.Builder |
setContainsBytes(com.google.protobuf.ByteString value)
Contains specifies that this field must have the specified substring
anywhere in the string.
|
Validate.StringRules.Builder |
setEmail(boolean value)
Email specifies that the field must be a valid email address as
defined by RFC 5322
optional bool email = 12; |
Validate.StringRules.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Validate.StringRules.Builder |
setHostname(boolean value)
Hostname specifies that the field must be a valid hostname as
defined by RFC 1034.
|
Validate.StringRules.Builder |
setIn(int index,
String value)
In specifies that this field must be equal to one of the specified
values
repeated string in = 10; |
Validate.StringRules.Builder |
setIp(boolean value)
Ip specifies that the field must be a valid IP (v4 or v6) address.
|
Validate.StringRules.Builder |
setIpv4(boolean value)
Ipv4 specifies that the field must be a valid IPv4 address.
|
Validate.StringRules.Builder |
setIpv6(boolean value)
Ipv6 specifies that the field must be a valid IPv6 address.
|
Validate.StringRules.Builder |
setLen(long value)
Len specifies that this field must be the specified number of
characters (Unicode code points).
|
Validate.StringRules.Builder |
setLenBytes(long value)
LenBytes specifies that this field must be the specified number of bytes
at a minimum
optional uint64 len_bytes = 20; |
Validate.StringRules.Builder |
setMaxBytes(long value)
MaxBytes specifies that this field must be the specified number of bytes
at a maximum
optional uint64 max_bytes = 5; |
Validate.StringRules.Builder |
setMaxLen(long value)
MaxLen specifies that this field must be the specified number of
characters (Unicode code points) at a maximum.
|
Validate.StringRules.Builder |
setMinBytes(long value)
MinBytes specifies that this field must be the specified number of bytes
at a minimum
optional uint64 min_bytes = 4; |
Validate.StringRules.Builder |
setMinLen(long value)
MinLen specifies that this field must be the specified number of
characters (Unicode code points) at a minimum.
|
Validate.StringRules.Builder |
setNotContains(String value)
NotContains specifies that this field cannot have the specified substring
anywhere in the string.
|
Validate.StringRules.Builder |
setNotContainsBytes(com.google.protobuf.ByteString value)
NotContains specifies that this field cannot have the specified substring
anywhere in the string.
|
Validate.StringRules.Builder |
setNotIn(int index,
String value)
NotIn specifies that this field cannot be equal to one of the specified
values
repeated string not_in = 11; |
Validate.StringRules.Builder |
setPattern(String value)
Pattern specifes that this field must match against the specified
regular expression (RE2 syntax).
|
Validate.StringRules.Builder |
setPatternBytes(com.google.protobuf.ByteString value)
Pattern specifes that this field must match against the specified
regular expression (RE2 syntax).
|
Validate.StringRules.Builder |
setPrefix(String value)
Prefix specifies that this field must have the specified substring at
the beginning of the string.
|
Validate.StringRules.Builder |
setPrefixBytes(com.google.protobuf.ByteString value)
Prefix specifies that this field must have the specified substring at
the beginning of the string.
|
Validate.StringRules.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Validate.StringRules.Builder |
setStrict(boolean value)
This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable
strict header validation.
|
Validate.StringRules.Builder |
setSuffix(String value)
Suffix specifies that this field must have the specified substring at
the end of the string.
|
Validate.StringRules.Builder |
setSuffixBytes(com.google.protobuf.ByteString value)
Suffix specifies that this field must have the specified substring at
the end of the string.
|
Validate.StringRules.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Validate.StringRules.Builder |
setUri(boolean value)
Uri specifies that the field must be a valid, absolute URI as defined
by RFC 3986
optional bool uri = 17; |
Validate.StringRules.Builder |
setUriRef(boolean value)
UriRef specifies that the field must be a valid URI as defined by RFC
3986 and may be relative or absolute.
|
Validate.StringRules.Builder |
setUuid(boolean value)
Uuid specifies that the field must be a valid UUID as defined by
RFC 4122
optional bool uuid = 22; |
Validate.StringRules.Builder |
setWellKnownRegex(Validate.KnownRegex value)
WellKnownRegex specifies a common well known pattern defined as a regex.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.StringRules.Builder>public Validate.StringRules.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.StringRules.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.StringRules.Builder>public Validate.StringRules getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Validate.StringRules build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Validate.StringRules buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Validate.StringRules.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.StringRules.Builder>public Validate.StringRules.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.StringRules.Builder>public Validate.StringRules.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.StringRules.Builder>public Validate.StringRules.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.StringRules.Builder>public Validate.StringRules.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.StringRules.Builder>public Validate.StringRules.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.StringRules.Builder>public Validate.StringRules.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Validate.StringRules.Builder>public Validate.StringRules.Builder mergeFrom(Validate.StringRules other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.StringRules.Builder>public Validate.StringRules.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Validate.StringRules.Builder>IOExceptionpublic Validate.StringRules.WellKnownCase getWellKnownCase()
getWellKnownCase in interface Validate.StringRulesOrBuilderpublic Validate.StringRules.Builder clearWellKnown()
public boolean hasConst()
Const specifies that this field must be exactly the specified value
optional string const = 1;hasConst in interface Validate.StringRulesOrBuilderpublic String getConst()
Const specifies that this field must be exactly the specified value
optional string const = 1;getConst in interface Validate.StringRulesOrBuilderpublic com.google.protobuf.ByteString getConstBytes()
Const specifies that this field must be exactly the specified value
optional string const = 1;getConstBytes in interface Validate.StringRulesOrBuilderpublic Validate.StringRules.Builder setConst(String value)
Const specifies that this field must be exactly the specified value
optional string const = 1;public Validate.StringRules.Builder clearConst()
Const specifies that this field must be exactly the specified value
optional string const = 1;public Validate.StringRules.Builder setConstBytes(com.google.protobuf.ByteString value)
Const specifies that this field must be exactly the specified value
optional string const = 1;public boolean hasLen()
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.
optional uint64 len = 19;hasLen in interface Validate.StringRulesOrBuilderpublic long getLen()
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.
optional uint64 len = 19;getLen in interface Validate.StringRulesOrBuilderpublic Validate.StringRules.Builder setLen(long value)
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.
optional uint64 len = 19;public Validate.StringRules.Builder clearLen()
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.
optional uint64 len = 19;public boolean hasMinLen()
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.
optional uint64 min_len = 2;hasMinLen in interface Validate.StringRulesOrBuilderpublic long getMinLen()
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.
optional uint64 min_len = 2;getMinLen in interface Validate.StringRulesOrBuilderpublic Validate.StringRules.Builder setMinLen(long value)
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.
optional uint64 min_len = 2;public Validate.StringRules.Builder clearMinLen()
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.
optional uint64 min_len = 2;public boolean hasMaxLen()
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.
optional uint64 max_len = 3;hasMaxLen in interface Validate.StringRulesOrBuilderpublic long getMaxLen()
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.
optional uint64 max_len = 3;getMaxLen in interface Validate.StringRulesOrBuilderpublic Validate.StringRules.Builder setMaxLen(long value)
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.
optional uint64 max_len = 3;public Validate.StringRules.Builder clearMaxLen()
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.
optional uint64 max_len = 3;public boolean hasLenBytes()
LenBytes specifies that this field must be the specified number of bytes at a minimum
optional uint64 len_bytes = 20;hasLenBytes in interface Validate.StringRulesOrBuilderpublic long getLenBytes()
LenBytes specifies that this field must be the specified number of bytes at a minimum
optional uint64 len_bytes = 20;getLenBytes in interface Validate.StringRulesOrBuilderpublic Validate.StringRules.Builder setLenBytes(long value)
LenBytes specifies that this field must be the specified number of bytes at a minimum
optional uint64 len_bytes = 20;public Validate.StringRules.Builder clearLenBytes()
LenBytes specifies that this field must be the specified number of bytes at a minimum
optional uint64 len_bytes = 20;public boolean hasMinBytes()
MinBytes specifies that this field must be the specified number of bytes at a minimum
optional uint64 min_bytes = 4;hasMinBytes in interface Validate.StringRulesOrBuilderpublic long getMinBytes()
MinBytes specifies that this field must be the specified number of bytes at a minimum
optional uint64 min_bytes = 4;getMinBytes in interface Validate.StringRulesOrBuilderpublic Validate.StringRules.Builder setMinBytes(long value)
MinBytes specifies that this field must be the specified number of bytes at a minimum
optional uint64 min_bytes = 4;public Validate.StringRules.Builder clearMinBytes()
MinBytes specifies that this field must be the specified number of bytes at a minimum
optional uint64 min_bytes = 4;public boolean hasMaxBytes()
MaxBytes specifies that this field must be the specified number of bytes at a maximum
optional uint64 max_bytes = 5;hasMaxBytes in interface Validate.StringRulesOrBuilderpublic long getMaxBytes()
MaxBytes specifies that this field must be the specified number of bytes at a maximum
optional uint64 max_bytes = 5;getMaxBytes in interface Validate.StringRulesOrBuilderpublic Validate.StringRules.Builder setMaxBytes(long value)
MaxBytes specifies that this field must be the specified number of bytes at a maximum
optional uint64 max_bytes = 5;public Validate.StringRules.Builder clearMaxBytes()
MaxBytes specifies that this field must be the specified number of bytes at a maximum
optional uint64 max_bytes = 5;public boolean hasPattern()
Pattern specifes that this field must match against the specified regular expression (RE2 syntax). The included expression should elide any delimiters.
optional string pattern = 6;hasPattern in interface Validate.StringRulesOrBuilderpublic String getPattern()
Pattern specifes that this field must match against the specified regular expression (RE2 syntax). The included expression should elide any delimiters.
optional string pattern = 6;getPattern in interface Validate.StringRulesOrBuilderpublic com.google.protobuf.ByteString getPatternBytes()
Pattern specifes that this field must match against the specified regular expression (RE2 syntax). The included expression should elide any delimiters.
optional string pattern = 6;getPatternBytes in interface Validate.StringRulesOrBuilderpublic Validate.StringRules.Builder setPattern(String value)
Pattern specifes that this field must match against the specified regular expression (RE2 syntax). The included expression should elide any delimiters.
optional string pattern = 6;public Validate.StringRules.Builder clearPattern()
Pattern specifes that this field must match against the specified regular expression (RE2 syntax). The included expression should elide any delimiters.
optional string pattern = 6;public Validate.StringRules.Builder setPatternBytes(com.google.protobuf.ByteString value)
Pattern specifes that this field must match against the specified regular expression (RE2 syntax). The included expression should elide any delimiters.
optional string pattern = 6;public boolean hasPrefix()
Prefix specifies that this field must have the specified substring at the beginning of the string.
optional string prefix = 7;hasPrefix in interface Validate.StringRulesOrBuilderpublic String getPrefix()
Prefix specifies that this field must have the specified substring at the beginning of the string.
optional string prefix = 7;getPrefix in interface Validate.StringRulesOrBuilderpublic com.google.protobuf.ByteString getPrefixBytes()
Prefix specifies that this field must have the specified substring at the beginning of the string.
optional string prefix = 7;getPrefixBytes in interface Validate.StringRulesOrBuilderpublic Validate.StringRules.Builder setPrefix(String value)
Prefix specifies that this field must have the specified substring at the beginning of the string.
optional string prefix = 7;public Validate.StringRules.Builder clearPrefix()
Prefix specifies that this field must have the specified substring at the beginning of the string.
optional string prefix = 7;public Validate.StringRules.Builder setPrefixBytes(com.google.protobuf.ByteString value)
Prefix specifies that this field must have the specified substring at the beginning of the string.
optional string prefix = 7;public boolean hasSuffix()
Suffix specifies that this field must have the specified substring at the end of the string.
optional string suffix = 8;hasSuffix in interface Validate.StringRulesOrBuilderpublic String getSuffix()
Suffix specifies that this field must have the specified substring at the end of the string.
optional string suffix = 8;getSuffix in interface Validate.StringRulesOrBuilderpublic com.google.protobuf.ByteString getSuffixBytes()
Suffix specifies that this field must have the specified substring at the end of the string.
optional string suffix = 8;getSuffixBytes in interface Validate.StringRulesOrBuilderpublic Validate.StringRules.Builder setSuffix(String value)
Suffix specifies that this field must have the specified substring at the end of the string.
optional string suffix = 8;public Validate.StringRules.Builder clearSuffix()
Suffix specifies that this field must have the specified substring at the end of the string.
optional string suffix = 8;public Validate.StringRules.Builder setSuffixBytes(com.google.protobuf.ByteString value)
Suffix specifies that this field must have the specified substring at the end of the string.
optional string suffix = 8;public boolean hasContains()
Contains specifies that this field must have the specified substring anywhere in the string.
optional string contains = 9;hasContains in interface Validate.StringRulesOrBuilderpublic String getContains()
Contains specifies that this field must have the specified substring anywhere in the string.
optional string contains = 9;getContains in interface Validate.StringRulesOrBuilderpublic com.google.protobuf.ByteString getContainsBytes()
Contains specifies that this field must have the specified substring anywhere in the string.
optional string contains = 9;getContainsBytes in interface Validate.StringRulesOrBuilderpublic Validate.StringRules.Builder setContains(String value)
Contains specifies that this field must have the specified substring anywhere in the string.
optional string contains = 9;public Validate.StringRules.Builder clearContains()
Contains specifies that this field must have the specified substring anywhere in the string.
optional string contains = 9;public Validate.StringRules.Builder setContainsBytes(com.google.protobuf.ByteString value)
Contains specifies that this field must have the specified substring anywhere in the string.
optional string contains = 9;public boolean hasNotContains()
NotContains specifies that this field cannot have the specified substring anywhere in the string.
optional string not_contains = 23;hasNotContains in interface Validate.StringRulesOrBuilderpublic String getNotContains()
NotContains specifies that this field cannot have the specified substring anywhere in the string.
optional string not_contains = 23;getNotContains in interface Validate.StringRulesOrBuilderpublic com.google.protobuf.ByteString getNotContainsBytes()
NotContains specifies that this field cannot have the specified substring anywhere in the string.
optional string not_contains = 23;getNotContainsBytes in interface Validate.StringRulesOrBuilderpublic Validate.StringRules.Builder setNotContains(String value)
NotContains specifies that this field cannot have the specified substring anywhere in the string.
optional string not_contains = 23;public Validate.StringRules.Builder clearNotContains()
NotContains specifies that this field cannot have the specified substring anywhere in the string.
optional string not_contains = 23;public Validate.StringRules.Builder setNotContainsBytes(com.google.protobuf.ByteString value)
NotContains specifies that this field cannot have the specified substring anywhere in the string.
optional string not_contains = 23;public com.google.protobuf.ProtocolStringList getInList()
In specifies that this field must be equal to one of the specified values
repeated string in = 10;getInList in interface Validate.StringRulesOrBuilderpublic int getInCount()
In specifies that this field must be equal to one of the specified values
repeated string in = 10;getInCount in interface Validate.StringRulesOrBuilderpublic String getIn(int index)
In specifies that this field must be equal to one of the specified values
repeated string in = 10;getIn in interface Validate.StringRulesOrBuilderpublic com.google.protobuf.ByteString getInBytes(int index)
In specifies that this field must be equal to one of the specified values
repeated string in = 10;getInBytes in interface Validate.StringRulesOrBuilderpublic Validate.StringRules.Builder setIn(int index, String value)
In specifies that this field must be equal to one of the specified values
repeated string in = 10;public Validate.StringRules.Builder addIn(String value)
In specifies that this field must be equal to one of the specified values
repeated string in = 10;public Validate.StringRules.Builder addAllIn(Iterable<String> values)
In specifies that this field must be equal to one of the specified values
repeated string in = 10;public Validate.StringRules.Builder clearIn()
In specifies that this field must be equal to one of the specified values
repeated string in = 10;public Validate.StringRules.Builder addInBytes(com.google.protobuf.ByteString value)
In specifies that this field must be equal to one of the specified values
repeated string in = 10;public com.google.protobuf.ProtocolStringList getNotInList()
NotIn specifies that this field cannot be equal to one of the specified values
repeated string not_in = 11;getNotInList in interface Validate.StringRulesOrBuilderpublic int getNotInCount()
NotIn specifies that this field cannot be equal to one of the specified values
repeated string not_in = 11;getNotInCount in interface Validate.StringRulesOrBuilderpublic String getNotIn(int index)
NotIn specifies that this field cannot be equal to one of the specified values
repeated string not_in = 11;getNotIn in interface Validate.StringRulesOrBuilderpublic com.google.protobuf.ByteString getNotInBytes(int index)
NotIn specifies that this field cannot be equal to one of the specified values
repeated string not_in = 11;getNotInBytes in interface Validate.StringRulesOrBuilderpublic Validate.StringRules.Builder setNotIn(int index, String value)
NotIn specifies that this field cannot be equal to one of the specified values
repeated string not_in = 11;public Validate.StringRules.Builder addNotIn(String value)
NotIn specifies that this field cannot be equal to one of the specified values
repeated string not_in = 11;public Validate.StringRules.Builder addAllNotIn(Iterable<String> values)
NotIn specifies that this field cannot be equal to one of the specified values
repeated string not_in = 11;public Validate.StringRules.Builder clearNotIn()
NotIn specifies that this field cannot be equal to one of the specified values
repeated string not_in = 11;public Validate.StringRules.Builder addNotInBytes(com.google.protobuf.ByteString value)
NotIn specifies that this field cannot be equal to one of the specified values
repeated string not_in = 11;public boolean hasEmail()
Email specifies that the field must be a valid email address as defined by RFC 5322
optional bool email = 12;hasEmail in interface Validate.StringRulesOrBuilderpublic boolean getEmail()
Email specifies that the field must be a valid email address as defined by RFC 5322
optional bool email = 12;getEmail in interface Validate.StringRulesOrBuilderpublic Validate.StringRules.Builder setEmail(boolean value)
Email specifies that the field must be a valid email address as defined by RFC 5322
optional bool email = 12;public Validate.StringRules.Builder clearEmail()
Email specifies that the field must be a valid email address as defined by RFC 5322
optional bool email = 12;public boolean hasHostname()
Hostname specifies that the field must be a valid hostname as defined by RFC 1034. This constraint does not support internationalized domain names (IDNs).
optional bool hostname = 13;hasHostname in interface Validate.StringRulesOrBuilderpublic boolean getHostname()
Hostname specifies that the field must be a valid hostname as defined by RFC 1034. This constraint does not support internationalized domain names (IDNs).
optional bool hostname = 13;getHostname in interface Validate.StringRulesOrBuilderpublic Validate.StringRules.Builder setHostname(boolean value)
Hostname specifies that the field must be a valid hostname as defined by RFC 1034. This constraint does not support internationalized domain names (IDNs).
optional bool hostname = 13;public Validate.StringRules.Builder clearHostname()
Hostname specifies that the field must be a valid hostname as defined by RFC 1034. This constraint does not support internationalized domain names (IDNs).
optional bool hostname = 13;public boolean hasIp()
Ip specifies that the field must be a valid IP (v4 or v6) address. Valid IPv6 addresses should not include surrounding square brackets.
optional bool ip = 14;hasIp in interface Validate.StringRulesOrBuilderpublic boolean getIp()
Ip specifies that the field must be a valid IP (v4 or v6) address. Valid IPv6 addresses should not include surrounding square brackets.
optional bool ip = 14;getIp in interface Validate.StringRulesOrBuilderpublic Validate.StringRules.Builder setIp(boolean value)
Ip specifies that the field must be a valid IP (v4 or v6) address. Valid IPv6 addresses should not include surrounding square brackets.
optional bool ip = 14;public Validate.StringRules.Builder clearIp()
Ip specifies that the field must be a valid IP (v4 or v6) address. Valid IPv6 addresses should not include surrounding square brackets.
optional bool ip = 14;public boolean hasIpv4()
Ipv4 specifies that the field must be a valid IPv4 address.
optional bool ipv4 = 15;hasIpv4 in interface Validate.StringRulesOrBuilderpublic boolean getIpv4()
Ipv4 specifies that the field must be a valid IPv4 address.
optional bool ipv4 = 15;getIpv4 in interface Validate.StringRulesOrBuilderpublic Validate.StringRules.Builder setIpv4(boolean value)
Ipv4 specifies that the field must be a valid IPv4 address.
optional bool ipv4 = 15;public Validate.StringRules.Builder clearIpv4()
Ipv4 specifies that the field must be a valid IPv4 address.
optional bool ipv4 = 15;public boolean hasIpv6()
Ipv6 specifies that the field must be a valid IPv6 address. Valid IPv6 addresses should not include surrounding square brackets.
optional bool ipv6 = 16;hasIpv6 in interface Validate.StringRulesOrBuilderpublic boolean getIpv6()
Ipv6 specifies that the field must be a valid IPv6 address. Valid IPv6 addresses should not include surrounding square brackets.
optional bool ipv6 = 16;getIpv6 in interface Validate.StringRulesOrBuilderpublic Validate.StringRules.Builder setIpv6(boolean value)
Ipv6 specifies that the field must be a valid IPv6 address. Valid IPv6 addresses should not include surrounding square brackets.
optional bool ipv6 = 16;public Validate.StringRules.Builder clearIpv6()
Ipv6 specifies that the field must be a valid IPv6 address. Valid IPv6 addresses should not include surrounding square brackets.
optional bool ipv6 = 16;public boolean hasUri()
Uri specifies that the field must be a valid, absolute URI as defined by RFC 3986
optional bool uri = 17;hasUri in interface Validate.StringRulesOrBuilderpublic boolean getUri()
Uri specifies that the field must be a valid, absolute URI as defined by RFC 3986
optional bool uri = 17;getUri in interface Validate.StringRulesOrBuilderpublic Validate.StringRules.Builder setUri(boolean value)
Uri specifies that the field must be a valid, absolute URI as defined by RFC 3986
optional bool uri = 17;public Validate.StringRules.Builder clearUri()
Uri specifies that the field must be a valid, absolute URI as defined by RFC 3986
optional bool uri = 17;public boolean hasUriRef()
UriRef specifies that the field must be a valid URI as defined by RFC 3986 and may be relative or absolute.
optional bool uri_ref = 18;hasUriRef in interface Validate.StringRulesOrBuilderpublic boolean getUriRef()
UriRef specifies that the field must be a valid URI as defined by RFC 3986 and may be relative or absolute.
optional bool uri_ref = 18;getUriRef in interface Validate.StringRulesOrBuilderpublic Validate.StringRules.Builder setUriRef(boolean value)
UriRef specifies that the field must be a valid URI as defined by RFC 3986 and may be relative or absolute.
optional bool uri_ref = 18;public Validate.StringRules.Builder clearUriRef()
UriRef specifies that the field must be a valid URI as defined by RFC 3986 and may be relative or absolute.
optional bool uri_ref = 18;public boolean hasAddress()
Address specifies that the field must be either a valid hostname as defined by RFC 1034 (which does not support internationalized domain names or IDNs), or it can be a valid IP (v4 or v6).
optional bool address = 21;hasAddress in interface Validate.StringRulesOrBuilderpublic boolean getAddress()
Address specifies that the field must be either a valid hostname as defined by RFC 1034 (which does not support internationalized domain names or IDNs), or it can be a valid IP (v4 or v6).
optional bool address = 21;getAddress in interface Validate.StringRulesOrBuilderpublic Validate.StringRules.Builder setAddress(boolean value)
Address specifies that the field must be either a valid hostname as defined by RFC 1034 (which does not support internationalized domain names or IDNs), or it can be a valid IP (v4 or v6).
optional bool address = 21;public Validate.StringRules.Builder clearAddress()
Address specifies that the field must be either a valid hostname as defined by RFC 1034 (which does not support internationalized domain names or IDNs), or it can be a valid IP (v4 or v6).
optional bool address = 21;public boolean hasUuid()
Uuid specifies that the field must be a valid UUID as defined by RFC 4122
optional bool uuid = 22;hasUuid in interface Validate.StringRulesOrBuilderpublic boolean getUuid()
Uuid specifies that the field must be a valid UUID as defined by RFC 4122
optional bool uuid = 22;getUuid in interface Validate.StringRulesOrBuilderpublic Validate.StringRules.Builder setUuid(boolean value)
Uuid specifies that the field must be a valid UUID as defined by RFC 4122
optional bool uuid = 22;public Validate.StringRules.Builder clearUuid()
Uuid specifies that the field must be a valid UUID as defined by RFC 4122
optional bool uuid = 22;public boolean hasWellKnownRegex()
WellKnownRegex specifies a common well known pattern defined as a regex.
optional .validate.KnownRegex well_known_regex = 24;hasWellKnownRegex in interface Validate.StringRulesOrBuilderpublic Validate.KnownRegex getWellKnownRegex()
WellKnownRegex specifies a common well known pattern defined as a regex.
optional .validate.KnownRegex well_known_regex = 24;getWellKnownRegex in interface Validate.StringRulesOrBuilderpublic Validate.StringRules.Builder setWellKnownRegex(Validate.KnownRegex value)
WellKnownRegex specifies a common well known pattern defined as a regex.
optional .validate.KnownRegex well_known_regex = 24;public Validate.StringRules.Builder clearWellKnownRegex()
WellKnownRegex specifies a common well known pattern defined as a regex.
optional .validate.KnownRegex well_known_regex = 24;public boolean hasStrict()
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 \r\n\0 characters, which can be used to bypass header matching rules.
optional bool strict = 25 [default = true];hasStrict in interface Validate.StringRulesOrBuilderpublic boolean getStrict()
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 \r\n\0 characters, which can be used to bypass header matching rules.
optional bool strict = 25 [default = true];getStrict in interface Validate.StringRulesOrBuilderpublic Validate.StringRules.Builder setStrict(boolean value)
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 \r\n\0 characters, which can be used to bypass header matching rules.
optional bool strict = 25 [default = true];public Validate.StringRules.Builder clearStrict()
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 \r\n\0 characters, which can be used to bypass header matching rules.
optional bool strict = 25 [default = true];public final Validate.StringRules.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.StringRules.Builder>public final Validate.StringRules.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.StringRules.Builder>Copyright © 2018–2021 The Envoy Project. All rights reserved.