Package io.envoyproxy.pgv.validate
Class Validate.StringRules
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.envoyproxy.pgv.validate.Validate.StringRules
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Validate.StringRulesOrBuilder
,Serializable
- Enclosing class:
- Validate
public static final class Validate.StringRules
extends com.google.protobuf.GeneratedMessage
implements Validate.StringRulesOrBuilder
StringRules describe the constraints applied to `string` valuesProtobuf type
validate.StringRules
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
StringRules describe the constraints applied to `string` valuesstatic enum
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,
BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParent
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFields
Fields inherited from class com.google.protobuf.AbstractMessage
memoizedSize
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
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).getConst()
Const specifies that this field must be exactly the specified valuecom.google.protobuf.ByteString
Const specifies that this field must be exactly the specified valueContains specifies that this field must have the specified substring anywhere in the string.com.google.protobuf.ByteString
Contains specifies that this field must have the specified substring anywhere in the string.static Validate.StringRules
static final com.google.protobuf.Descriptors.Descriptor
boolean
getEmail()
Email specifies that the field must be a valid email address as defined by RFC 5322boolean
Hostname specifies that the field must be a valid hostname as defined by RFC 1034.boolean
IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptygetIn
(int index) In specifies that this field must be equal to one of the specified valuescom.google.protobuf.ByteString
getInBytes
(int index) In specifies that this field must be equal to one of the specified valuesint
In specifies that this field must be equal to one of the specified valuescom.google.protobuf.ProtocolStringList
In specifies that this field must be equal to one of the specified valuesboolean
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
LenBytes specifies that this field must be the specified number of byteslong
MaxBytes specifies that this field must be the specified number of bytes at a maximumlong
MaxLen specifies that this field must be the specified number of characters (Unicode code points) at a maximum.long
MinBytes specifies that this field must be the specified number of bytes at a minimumlong
MinLen specifies that this field must be the specified number of characters (Unicode code points) at a minimum.NotContains specifies that this field cannot have the specified substring anywhere in the string.com.google.protobuf.ByteString
NotContains specifies that this field cannot have the specified substring anywhere in the string.getNotIn
(int index) NotIn specifies that this field cannot be equal to one of the specified valuescom.google.protobuf.ByteString
getNotInBytes
(int index) NotIn specifies that this field cannot be equal to one of the specified valuesint
NotIn specifies that this field cannot be equal to one of the specified valuescom.google.protobuf.ProtocolStringList
NotIn specifies that this field cannot be equal to one of the specified valuescom.google.protobuf.Parser<Validate.StringRules>
Pattern specifies that this field must match against the specified regular expression (RE2 syntax).com.google.protobuf.ByteString
Pattern specifies that this field must match against the specified regular expression (RE2 syntax).Prefix specifies that this field must have the specified substring at the beginning of the string.com.google.protobuf.ByteString
Prefix specifies that this field must have the specified substring at the beginning of the string.int
boolean
This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable strict header validation.Suffix specifies that this field must have the specified substring at the end of the string.com.google.protobuf.ByteString
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 3986boolean
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 4122WellKnownRegex specifies a common well known pattern defined as a regex.boolean
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 valueboolean
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 5322int
hashCode()
boolean
Hostname specifies that the field must be a valid hostname as defined by RFC 1034.boolean
IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptyboolean
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
LenBytes specifies that this field must be the specified number of bytesboolean
MaxBytes specifies that this field must be the specified number of bytes at a maximumboolean
MaxLen specifies that this field must be the specified number of characters (Unicode code points) at a maximum.boolean
MinBytes specifies that this field must be the specified number of bytes at a minimumboolean
MinLen specifies that this field must be the specified number of characters (Unicode code points) at a minimum.boolean
NotContains specifies that this field cannot have the specified substring anywhere in the string.boolean
Pattern specifies that this field must match against the specified regular expression (RE2 syntax).boolean
Prefix specifies that this field must have the specified substring at the beginning of the string.boolean
This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable strict header validation.boolean
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 3986boolean
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 4122boolean
WellKnownRegex specifies a common well known pattern defined as a regex.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
static Validate.StringRules.Builder
static Validate.StringRules.Builder
newBuilder
(Validate.StringRules prototype) protected Validate.StringRules.Builder
newBuilderForType
(com.google.protobuf.AbstractMessage.BuilderParent parent) static Validate.StringRules
parseDelimitedFrom
(InputStream input) static Validate.StringRules
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Validate.StringRules
parseFrom
(byte[] data) static Validate.StringRules
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Validate.StringRules
parseFrom
(com.google.protobuf.ByteString data) static Validate.StringRules
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Validate.StringRules
parseFrom
(com.google.protobuf.CodedInputStream input) static Validate.StringRules
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Validate.StringRules
parseFrom
(InputStream input) static Validate.StringRules
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Validate.StringRules
parseFrom
(ByteBuffer data) static Validate.StringRules
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Validate.StringRules>
parser()
void
writeTo
(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
CONST_FIELD_NUMBER
public static final int CONST_FIELD_NUMBER- See Also:
-
LEN_FIELD_NUMBER
public static final int LEN_FIELD_NUMBER- See Also:
-
MIN_LEN_FIELD_NUMBER
public static final int MIN_LEN_FIELD_NUMBER- See Also:
-
MAX_LEN_FIELD_NUMBER
public static final int MAX_LEN_FIELD_NUMBER- See Also:
-
LEN_BYTES_FIELD_NUMBER
public static final int LEN_BYTES_FIELD_NUMBER- See Also:
-
MIN_BYTES_FIELD_NUMBER
public static final int MIN_BYTES_FIELD_NUMBER- See Also:
-
MAX_BYTES_FIELD_NUMBER
public static final int MAX_BYTES_FIELD_NUMBER- See Also:
-
PATTERN_FIELD_NUMBER
public static final int PATTERN_FIELD_NUMBER- See Also:
-
PREFIX_FIELD_NUMBER
public static final int PREFIX_FIELD_NUMBER- See Also:
-
SUFFIX_FIELD_NUMBER
public static final int SUFFIX_FIELD_NUMBER- See Also:
-
CONTAINS_FIELD_NUMBER
public static final int CONTAINS_FIELD_NUMBER- See Also:
-
NOT_CONTAINS_FIELD_NUMBER
public static final int NOT_CONTAINS_FIELD_NUMBER- See Also:
-
IN_FIELD_NUMBER
public static final int IN_FIELD_NUMBER- See Also:
-
NOT_IN_FIELD_NUMBER
public static final int NOT_IN_FIELD_NUMBER- See Also:
-
EMAIL_FIELD_NUMBER
public static final int EMAIL_FIELD_NUMBER- See Also:
-
HOSTNAME_FIELD_NUMBER
public static final int HOSTNAME_FIELD_NUMBER- See Also:
-
IP_FIELD_NUMBER
public static final int IP_FIELD_NUMBER- See Also:
-
IPV4_FIELD_NUMBER
public static final int IPV4_FIELD_NUMBER- See Also:
-
IPV6_FIELD_NUMBER
public static final int IPV6_FIELD_NUMBER- See Also:
-
URI_FIELD_NUMBER
public static final int URI_FIELD_NUMBER- See Also:
-
URI_REF_FIELD_NUMBER
public static final int URI_REF_FIELD_NUMBER- See Also:
-
ADDRESS_FIELD_NUMBER
public static final int ADDRESS_FIELD_NUMBER- See Also:
-
UUID_FIELD_NUMBER
public static final int UUID_FIELD_NUMBER- See Also:
-
WELL_KNOWN_REGEX_FIELD_NUMBER
public static final int WELL_KNOWN_REGEX_FIELD_NUMBER- See Also:
-
STRICT_FIELD_NUMBER
public static final int STRICT_FIELD_NUMBER- See Also:
-
IGNORE_EMPTY_FIELD_NUMBER
public static final int IGNORE_EMPTY_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage
-
getWellKnownCase
- Specified by:
getWellKnownCase
in interfaceValidate.StringRulesOrBuilder
-
hasConst
public boolean hasConst()Const specifies that this field must be exactly the specified value
optional string const = 1;
- Specified by:
hasConst
in interfaceValidate.StringRulesOrBuilder
- Returns:
- Whether the const field is set.
-
getConst
Const specifies that this field must be exactly the specified value
optional string const = 1;
- Specified by:
getConst
in interfaceValidate.StringRulesOrBuilder
- Returns:
- The const.
-
getConstBytes
public com.google.protobuf.ByteString getConstBytes()Const specifies that this field must be exactly the specified value
optional string const = 1;
- Specified by:
getConstBytes
in interfaceValidate.StringRulesOrBuilder
- Returns:
- The bytes for const.
-
hasLen
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;
- Specified by:
hasLen
in interfaceValidate.StringRulesOrBuilder
- Returns:
- Whether the len field is set.
-
getLen
public 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;
- Specified by:
getLen
in interfaceValidate.StringRulesOrBuilder
- Returns:
- The len.
-
hasMinLen
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;
- Specified by:
hasMinLen
in interfaceValidate.StringRulesOrBuilder
- Returns:
- Whether the minLen field is set.
-
getMinLen
public 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;
- Specified by:
getMinLen
in interfaceValidate.StringRulesOrBuilder
- Returns:
- The minLen.
-
hasMaxLen
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;
- Specified by:
hasMaxLen
in interfaceValidate.StringRulesOrBuilder
- Returns:
- Whether the maxLen field is set.
-
getMaxLen
public 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;
- Specified by:
getMaxLen
in interfaceValidate.StringRulesOrBuilder
- Returns:
- The maxLen.
-
hasLenBytes
public boolean hasLenBytes()LenBytes specifies that this field must be the specified number of bytes
optional uint64 len_bytes = 20;
- Specified by:
hasLenBytes
in interfaceValidate.StringRulesOrBuilder
- Returns:
- Whether the lenBytes field is set.
-
getLenBytes
public long getLenBytes()LenBytes specifies that this field must be the specified number of bytes
optional uint64 len_bytes = 20;
- Specified by:
getLenBytes
in interfaceValidate.StringRulesOrBuilder
- Returns:
- The lenBytes.
-
hasMinBytes
public boolean hasMinBytes()MinBytes specifies that this field must be the specified number of bytes at a minimum
optional uint64 min_bytes = 4;
- Specified by:
hasMinBytes
in interfaceValidate.StringRulesOrBuilder
- Returns:
- Whether the minBytes field is set.
-
getMinBytes
public long getMinBytes()MinBytes specifies that this field must be the specified number of bytes at a minimum
optional uint64 min_bytes = 4;
- Specified by:
getMinBytes
in interfaceValidate.StringRulesOrBuilder
- Returns:
- The minBytes.
-
hasMaxBytes
public boolean hasMaxBytes()MaxBytes specifies that this field must be the specified number of bytes at a maximum
optional uint64 max_bytes = 5;
- Specified by:
hasMaxBytes
in interfaceValidate.StringRulesOrBuilder
- Returns:
- Whether the maxBytes field is set.
-
getMaxBytes
public long getMaxBytes()MaxBytes specifies that this field must be the specified number of bytes at a maximum
optional uint64 max_bytes = 5;
- Specified by:
getMaxBytes
in interfaceValidate.StringRulesOrBuilder
- Returns:
- The maxBytes.
-
hasPattern
public boolean hasPattern()Pattern specifies that this field must match against the specified regular expression (RE2 syntax). The included expression should elide any delimiters.
optional string pattern = 6;
- Specified by:
hasPattern
in interfaceValidate.StringRulesOrBuilder
- Returns:
- Whether the pattern field is set.
-
getPattern
Pattern specifies that this field must match against the specified regular expression (RE2 syntax). The included expression should elide any delimiters.
optional string pattern = 6;
- Specified by:
getPattern
in interfaceValidate.StringRulesOrBuilder
- Returns:
- The pattern.
-
getPatternBytes
public com.google.protobuf.ByteString getPatternBytes()Pattern specifies that this field must match against the specified regular expression (RE2 syntax). The included expression should elide any delimiters.
optional string pattern = 6;
- Specified by:
getPatternBytes
in interfaceValidate.StringRulesOrBuilder
- Returns:
- The bytes for pattern.
-
hasPrefix
public boolean hasPrefix()Prefix specifies that this field must have the specified substring at the beginning of the string.
optional string prefix = 7;
- Specified by:
hasPrefix
in interfaceValidate.StringRulesOrBuilder
- Returns:
- Whether the prefix field is set.
-
getPrefix
Prefix specifies that this field must have the specified substring at the beginning of the string.
optional string prefix = 7;
- Specified by:
getPrefix
in interfaceValidate.StringRulesOrBuilder
- Returns:
- The prefix.
-
getPrefixBytes
public 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;
- Specified by:
getPrefixBytes
in interfaceValidate.StringRulesOrBuilder
- Returns:
- The bytes for prefix.
-
hasSuffix
public boolean hasSuffix()Suffix specifies that this field must have the specified substring at the end of the string.
optional string suffix = 8;
- Specified by:
hasSuffix
in interfaceValidate.StringRulesOrBuilder
- Returns:
- Whether the suffix field is set.
-
getSuffix
Suffix specifies that this field must have the specified substring at the end of the string.
optional string suffix = 8;
- Specified by:
getSuffix
in interfaceValidate.StringRulesOrBuilder
- Returns:
- The suffix.
-
getSuffixBytes
public 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;
- Specified by:
getSuffixBytes
in interfaceValidate.StringRulesOrBuilder
- Returns:
- The bytes for suffix.
-
hasContains
public boolean hasContains()Contains specifies that this field must have the specified substring anywhere in the string.
optional string contains = 9;
- Specified by:
hasContains
in interfaceValidate.StringRulesOrBuilder
- Returns:
- Whether the contains field is set.
-
getContains
Contains specifies that this field must have the specified substring anywhere in the string.
optional string contains = 9;
- Specified by:
getContains
in interfaceValidate.StringRulesOrBuilder
- Returns:
- The contains.
-
getContainsBytes
public com.google.protobuf.ByteString getContainsBytes()Contains specifies that this field must have the specified substring anywhere in the string.
optional string contains = 9;
- Specified by:
getContainsBytes
in interfaceValidate.StringRulesOrBuilder
- Returns:
- The bytes for contains.
-
hasNotContains
public boolean hasNotContains()NotContains specifies that this field cannot have the specified substring anywhere in the string.
optional string not_contains = 23;
- Specified by:
hasNotContains
in interfaceValidate.StringRulesOrBuilder
- Returns:
- Whether the notContains field is set.
-
getNotContains
NotContains specifies that this field cannot have the specified substring anywhere in the string.
optional string not_contains = 23;
- Specified by:
getNotContains
in interfaceValidate.StringRulesOrBuilder
- Returns:
- The notContains.
-
getNotContainsBytes
public com.google.protobuf.ByteString getNotContainsBytes()NotContains specifies that this field cannot have the specified substring anywhere in the string.
optional string not_contains = 23;
- Specified by:
getNotContainsBytes
in interfaceValidate.StringRulesOrBuilder
- Returns:
- The bytes for notContains.
-
getInList
public com.google.protobuf.ProtocolStringList getInList()In specifies that this field must be equal to one of the specified values
repeated string in = 10;
- Specified by:
getInList
in interfaceValidate.StringRulesOrBuilder
- Returns:
- A list containing the in.
-
getInCount
public int getInCount()In specifies that this field must be equal to one of the specified values
repeated string in = 10;
- Specified by:
getInCount
in interfaceValidate.StringRulesOrBuilder
- Returns:
- The count of in.
-
getIn
In specifies that this field must be equal to one of the specified values
repeated string in = 10;
- Specified by:
getIn
in interfaceValidate.StringRulesOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The in at the given index.
-
getInBytes
public 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;
- Specified by:
getInBytes
in interfaceValidate.StringRulesOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the in at the given index.
-
getNotInList
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;
- Specified by:
getNotInList
in interfaceValidate.StringRulesOrBuilder
- Returns:
- A list containing the notIn.
-
getNotInCount
public int getNotInCount()NotIn specifies that this field cannot be equal to one of the specified values
repeated string not_in = 11;
- Specified by:
getNotInCount
in interfaceValidate.StringRulesOrBuilder
- Returns:
- The count of notIn.
-
getNotIn
NotIn specifies that this field cannot be equal to one of the specified values
repeated string not_in = 11;
- Specified by:
getNotIn
in interfaceValidate.StringRulesOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The notIn at the given index.
-
getNotInBytes
public 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;
- Specified by:
getNotInBytes
in interfaceValidate.StringRulesOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the notIn at the given index.
-
hasEmail
public boolean hasEmail()Email specifies that the field must be a valid email address as defined by RFC 5322
bool email = 12;
- Specified by:
hasEmail
in interfaceValidate.StringRulesOrBuilder
- Returns:
- Whether the email field is set.
-
getEmail
public boolean getEmail()Email specifies that the field must be a valid email address as defined by RFC 5322
bool email = 12;
- Specified by:
getEmail
in interfaceValidate.StringRulesOrBuilder
- Returns:
- The email.
-
hasHostname
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).
bool hostname = 13;
- Specified by:
hasHostname
in interfaceValidate.StringRulesOrBuilder
- Returns:
- Whether the hostname field is set.
-
getHostname
public 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).
bool hostname = 13;
- Specified by:
getHostname
in interfaceValidate.StringRulesOrBuilder
- Returns:
- The hostname.
-
hasIp
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.
bool ip = 14;
- Specified by:
hasIp
in interfaceValidate.StringRulesOrBuilder
- Returns:
- Whether the ip field is set.
-
getIp
public 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.
bool ip = 14;
- Specified by:
getIp
in interfaceValidate.StringRulesOrBuilder
- Returns:
- The ip.
-
hasIpv4
public boolean hasIpv4()Ipv4 specifies that the field must be a valid IPv4 address.
bool ipv4 = 15;
- Specified by:
hasIpv4
in interfaceValidate.StringRulesOrBuilder
- Returns:
- Whether the ipv4 field is set.
-
getIpv4
public boolean getIpv4()Ipv4 specifies that the field must be a valid IPv4 address.
bool ipv4 = 15;
- Specified by:
getIpv4
in interfaceValidate.StringRulesOrBuilder
- Returns:
- The ipv4.
-
hasIpv6
public boolean hasIpv6()Ipv6 specifies that the field must be a valid IPv6 address. Valid IPv6 addresses should not include surrounding square brackets.
bool ipv6 = 16;
- Specified by:
hasIpv6
in interfaceValidate.StringRulesOrBuilder
- Returns:
- Whether the ipv6 field is set.
-
getIpv6
public boolean getIpv6()Ipv6 specifies that the field must be a valid IPv6 address. Valid IPv6 addresses should not include surrounding square brackets.
bool ipv6 = 16;
- Specified by:
getIpv6
in interfaceValidate.StringRulesOrBuilder
- Returns:
- The ipv6.
-
hasUri
public boolean hasUri()Uri specifies that the field must be a valid, absolute URI as defined by RFC 3986
bool uri = 17;
- Specified by:
hasUri
in interfaceValidate.StringRulesOrBuilder
- Returns:
- Whether the uri field is set.
-
getUri
public boolean getUri()Uri specifies that the field must be a valid, absolute URI as defined by RFC 3986
bool uri = 17;
- Specified by:
getUri
in interfaceValidate.StringRulesOrBuilder
- Returns:
- The uri.
-
hasUriRef
public boolean hasUriRef()UriRef specifies that the field must be a valid URI as defined by RFC 3986 and may be relative or absolute.
bool uri_ref = 18;
- Specified by:
hasUriRef
in interfaceValidate.StringRulesOrBuilder
- Returns:
- Whether the uriRef field is set.
-
getUriRef
public boolean getUriRef()UriRef specifies that the field must be a valid URI as defined by RFC 3986 and may be relative or absolute.
bool uri_ref = 18;
- Specified by:
getUriRef
in interfaceValidate.StringRulesOrBuilder
- Returns:
- The uriRef.
-
hasAddress
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).
bool address = 21;
- Specified by:
hasAddress
in interfaceValidate.StringRulesOrBuilder
- Returns:
- Whether the address field is set.
-
getAddress
public 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).
bool address = 21;
- Specified by:
getAddress
in interfaceValidate.StringRulesOrBuilder
- Returns:
- The address.
-
hasUuid
public boolean hasUuid()Uuid specifies that the field must be a valid UUID as defined by RFC 4122
bool uuid = 22;
- Specified by:
hasUuid
in interfaceValidate.StringRulesOrBuilder
- Returns:
- Whether the uuid field is set.
-
getUuid
public boolean getUuid()Uuid specifies that the field must be a valid UUID as defined by RFC 4122
bool uuid = 22;
- Specified by:
getUuid
in interfaceValidate.StringRulesOrBuilder
- Returns:
- The uuid.
-
hasWellKnownRegex
public boolean hasWellKnownRegex()WellKnownRegex specifies a common well known pattern defined as a regex.
.validate.KnownRegex well_known_regex = 24;
- Specified by:
hasWellKnownRegex
in interfaceValidate.StringRulesOrBuilder
- Returns:
- Whether the wellKnownRegex field is set.
-
getWellKnownRegex
WellKnownRegex specifies a common well known pattern defined as a regex.
.validate.KnownRegex well_known_regex = 24;
- Specified by:
getWellKnownRegex
in interfaceValidate.StringRulesOrBuilder
- Returns:
- The wellKnownRegex.
-
hasStrict
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];
- Specified by:
hasStrict
in interfaceValidate.StringRulesOrBuilder
- Returns:
- Whether the strict field is set.
-
getStrict
public 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];
- Specified by:
getStrict
in interfaceValidate.StringRulesOrBuilder
- Returns:
- The strict.
-
hasIgnoreEmpty
public boolean hasIgnoreEmpty()IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
optional bool ignore_empty = 26;
- Specified by:
hasIgnoreEmpty
in interfaceValidate.StringRulesOrBuilder
- Returns:
- Whether the ignoreEmpty field is set.
-
getIgnoreEmpty
public boolean getIgnoreEmpty()IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
optional bool ignore_empty = 26;
- Specified by:
getIgnoreEmpty
in interfaceValidate.StringRulesOrBuilder
- Returns:
- The ignoreEmpty.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessage
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Validate.StringRules parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Validate.StringRules parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Validate.StringRules parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Validate.StringRules parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Validate.StringRules parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Validate.StringRules parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Validate.StringRules parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Validate.StringRules parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Validate.StringRules parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Validate.StringRules parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Validate.StringRules.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForType
in classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-