public static final class Validate.StringRules extends com.google.protobuf.GeneratedMessageV3 implements Validate.StringRulesOrBuilder
StringRules describe the constraints applied to `string` valuesProtobuf type
validate.StringRules| Modifier and Type | Class and Description |
|---|---|
static class |
Validate.StringRules.Builder
StringRules describe the constraints applied to `string` values
Protobuf type
validate.StringRules |
static class |
Validate.StringRules.WellKnownCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ADDRESS_FIELD_NUMBER |
static int |
CONST_FIELD_NUMBER |
static int |
CONTAINS_FIELD_NUMBER |
static int |
EMAIL_FIELD_NUMBER |
static int |
HOSTNAME_FIELD_NUMBER |
static int |
IN_FIELD_NUMBER |
static int |
IP_FIELD_NUMBER |
static int |
IPV4_FIELD_NUMBER |
static int |
IPV6_FIELD_NUMBER |
static int |
LEN_BYTES_FIELD_NUMBER |
static int |
LEN_FIELD_NUMBER |
static int |
MAX_BYTES_FIELD_NUMBER |
static int |
MAX_LEN_FIELD_NUMBER |
static int |
MIN_BYTES_FIELD_NUMBER |
static int |
MIN_LEN_FIELD_NUMBER |
static int |
NOT_CONTAINS_FIELD_NUMBER |
static int |
NOT_IN_FIELD_NUMBER |
static com.google.protobuf.Parser<Validate.StringRules> |
PARSER
Deprecated.
|
static int |
PATTERN_FIELD_NUMBER |
static int |
PREFIX_FIELD_NUMBER |
static int |
STRICT_FIELD_NUMBER |
static int |
SUFFIX_FIELD_NUMBER |
static int |
URI_FIELD_NUMBER |
static int |
URI_REF_FIELD_NUMBER |
static int |
UUID_FIELD_NUMBER |
static int |
WELL_KNOWN_REGEX_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
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.
|
static Validate.StringRules |
getDefaultInstance() |
Validate.StringRules |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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; |
com.google.protobuf.Parser<Validate.StringRules> |
getParserForType() |
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.
|
int |
getSerializedSize() |
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.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
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; |
int |
hashCode() |
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() |
static Validate.StringRules.Builder |
newBuilder() |
static Validate.StringRules.Builder |
newBuilder(Validate.StringRules prototype) |
Validate.StringRules.Builder |
newBuilderForType() |
protected Validate.StringRules.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
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(ByteBuffer data) |
static Validate.StringRules |
parseFrom(ByteBuffer 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 com.google.protobuf.Parser<Validate.StringRules> |
parser() |
Validate.StringRules.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int CONST_FIELD_NUMBER
public static final int LEN_FIELD_NUMBER
public static final int MIN_LEN_FIELD_NUMBER
public static final int MAX_LEN_FIELD_NUMBER
public static final int LEN_BYTES_FIELD_NUMBER
public static final int MIN_BYTES_FIELD_NUMBER
public static final int MAX_BYTES_FIELD_NUMBER
public static final int PATTERN_FIELD_NUMBER
public static final int PREFIX_FIELD_NUMBER
public static final int SUFFIX_FIELD_NUMBER
public static final int CONTAINS_FIELD_NUMBER
public static final int NOT_CONTAINS_FIELD_NUMBER
public static final int IN_FIELD_NUMBER
public static final int NOT_IN_FIELD_NUMBER
public static final int EMAIL_FIELD_NUMBER
public static final int HOSTNAME_FIELD_NUMBER
public static final int IP_FIELD_NUMBER
public static final int IPV4_FIELD_NUMBER
public static final int IPV6_FIELD_NUMBER
public static final int URI_FIELD_NUMBER
public static final int URI_REF_FIELD_NUMBER
public static final int ADDRESS_FIELD_NUMBER
public static final int UUID_FIELD_NUMBER
public static final int WELL_KNOWN_REGEX_FIELD_NUMBER
public static final int STRICT_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<Validate.StringRules> PARSER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public Validate.StringRules.WellKnownCase getWellKnownCase()
getWellKnownCase in interface Validate.StringRulesOrBuilderpublic 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Validate.StringRules parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Validate.StringRules parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Validate.StringRules parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Validate.StringRules parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Validate.StringRules parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Validate.StringRules parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Validate.StringRules parseFrom(InputStream input) throws IOException
IOExceptionpublic static Validate.StringRules parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Validate.StringRules parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Validate.StringRules parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Validate.StringRules parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Validate.StringRules parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Validate.StringRules.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Validate.StringRules.Builder newBuilder()
public static Validate.StringRules.Builder newBuilder(Validate.StringRules prototype)
public Validate.StringRules.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Validate.StringRules.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Validate.StringRules getDefaultInstance()
public static com.google.protobuf.Parser<Validate.StringRules> parser()
public com.google.protobuf.Parser<Validate.StringRules> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Validate.StringRules getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.