public static final class Validate.BytesRules extends com.google.protobuf.GeneratedMessageV3 implements Validate.BytesRulesOrBuilder
BytesRules describe the constraints applied to `bytes` valuesProtobuf type
validate.BytesRules| Modifier and Type | Class and Description |
|---|---|
static class |
Validate.BytesRules.Builder
BytesRules describe the constraints applied to `bytes` values
Protobuf type
validate.BytesRules |
static class |
Validate.BytesRules.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 |
CONST_FIELD_NUMBER |
static int |
CONTAINS_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_FIELD_NUMBER |
static int |
MAX_LEN_FIELD_NUMBER |
static int |
MIN_LEN_FIELD_NUMBER |
static int |
NOT_IN_FIELD_NUMBER |
static com.google.protobuf.Parser<Validate.BytesRules> |
PARSER
Deprecated.
|
static int |
PATTERN_FIELD_NUMBER |
static int |
PREFIX_FIELD_NUMBER |
static int |
SUFFIX_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
com.google.protobuf.ByteString |
getConst()
Const specifies that this field must be exactly the specified value
optional bytes const = 1; |
com.google.protobuf.ByteString |
getContains()
Contains specifies that this field must have the specified bytes
anywhere in the string.
|
static Validate.BytesRules |
getDefaultInstance() |
Validate.BytesRules |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.ByteString |
getIn(int index)
In specifies that this field must be equal to one of the specified
values
repeated bytes in = 8; |
int |
getInCount()
In specifies that this field must be equal to one of the specified
values
repeated bytes in = 8; |
List<com.google.protobuf.ByteString> |
getInList()
In specifies that this field must be equal to one of the specified
values
repeated bytes in = 8; |
boolean |
getIp()
Ip specifies that the field must be a valid IP (v4 or v6) address in
byte format
optional bool ip = 10; |
boolean |
getIpv4()
Ipv4 specifies that the field must be a valid IPv4 address in byte
format
optional bool ipv4 = 11; |
boolean |
getIpv6()
Ipv6 specifies that the field must be a valid IPv6 address in byte
format
optional bool ipv6 = 12; |
long |
getLen()
Len specifies that this field must be the specified number of bytes
optional uint64 len = 13; |
long |
getMaxLen()
MaxLen specifies that this field must be the specified number of bytes
at a maximum
optional uint64 max_len = 3; |
long |
getMinLen()
MinLen specifies that this field must be the specified number of bytes
at a minimum
optional uint64 min_len = 2; |
com.google.protobuf.ByteString |
getNotIn(int index)
NotIn specifies that this field cannot be equal to one of the specified
values
repeated bytes not_in = 9; |
int |
getNotInCount()
NotIn specifies that this field cannot be equal to one of the specified
values
repeated bytes not_in = 9; |
List<com.google.protobuf.ByteString> |
getNotInList()
NotIn specifies that this field cannot be equal to one of the specified
values
repeated bytes not_in = 9; |
com.google.protobuf.Parser<Validate.BytesRules> |
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).
|
com.google.protobuf.ByteString |
getPrefix()
Prefix specifies that this field must have the specified bytes at the
beginning of the string.
|
int |
getSerializedSize() |
com.google.protobuf.ByteString |
getSuffix()
Suffix specifies that this field must have the specified bytes at the
end of the string.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
Validate.BytesRules.WellKnownCase |
getWellKnownCase() |
boolean |
hasConst()
Const specifies that this field must be exactly the specified value
optional bytes const = 1; |
boolean |
hasContains()
Contains specifies that this field must have the specified bytes
anywhere in the string.
|
int |
hashCode() |
boolean |
hasIp()
Ip specifies that the field must be a valid IP (v4 or v6) address in
byte format
optional bool ip = 10; |
boolean |
hasIpv4()
Ipv4 specifies that the field must be a valid IPv4 address in byte
format
optional bool ipv4 = 11; |
boolean |
hasIpv6()
Ipv6 specifies that the field must be a valid IPv6 address in byte
format
optional bool ipv6 = 12; |
boolean |
hasLen()
Len specifies that this field must be the specified number of bytes
optional uint64 len = 13; |
boolean |
hasMaxLen()
MaxLen specifies that this field must be the specified number of bytes
at a maximum
optional uint64 max_len = 3; |
boolean |
hasMinLen()
MinLen specifies that this field must be the specified number of bytes
at a minimum
optional uint64 min_len = 2; |
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 bytes at the
beginning of the string.
|
boolean |
hasSuffix()
Suffix specifies that this field must have the specified bytes at the
end of the string.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Validate.BytesRules.Builder |
newBuilder() |
static Validate.BytesRules.Builder |
newBuilder(Validate.BytesRules prototype) |
Validate.BytesRules.Builder |
newBuilderForType() |
protected Validate.BytesRules.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Validate.BytesRules |
parseDelimitedFrom(InputStream input) |
static Validate.BytesRules |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Validate.BytesRules |
parseFrom(byte[] data) |
static Validate.BytesRules |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Validate.BytesRules |
parseFrom(ByteBuffer data) |
static Validate.BytesRules |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Validate.BytesRules |
parseFrom(com.google.protobuf.ByteString data) |
static Validate.BytesRules |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Validate.BytesRules |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Validate.BytesRules |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Validate.BytesRules |
parseFrom(InputStream input) |
static Validate.BytesRules |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Validate.BytesRules> |
parser() |
Validate.BytesRules.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 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 IN_FIELD_NUMBER
public static final int NOT_IN_FIELD_NUMBER
public static final int IP_FIELD_NUMBER
public static final int IPV4_FIELD_NUMBER
public static final int IPV6_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<Validate.BytesRules> 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.BytesRules.WellKnownCase getWellKnownCase()
getWellKnownCase in interface Validate.BytesRulesOrBuilderpublic boolean hasConst()
Const specifies that this field must be exactly the specified value
optional bytes const = 1;hasConst in interface Validate.BytesRulesOrBuilderpublic com.google.protobuf.ByteString getConst()
Const specifies that this field must be exactly the specified value
optional bytes const = 1;getConst in interface Validate.BytesRulesOrBuilderpublic boolean hasLen()
Len specifies that this field must be the specified number of bytes
optional uint64 len = 13;hasLen in interface Validate.BytesRulesOrBuilderpublic long getLen()
Len specifies that this field must be the specified number of bytes
optional uint64 len = 13;getLen in interface Validate.BytesRulesOrBuilderpublic boolean hasMinLen()
MinLen specifies that this field must be the specified number of bytes at a minimum
optional uint64 min_len = 2;hasMinLen in interface Validate.BytesRulesOrBuilderpublic long getMinLen()
MinLen specifies that this field must be the specified number of bytes at a minimum
optional uint64 min_len = 2;getMinLen in interface Validate.BytesRulesOrBuilderpublic boolean hasMaxLen()
MaxLen specifies that this field must be the specified number of bytes at a maximum
optional uint64 max_len = 3;hasMaxLen in interface Validate.BytesRulesOrBuilderpublic long getMaxLen()
MaxLen specifies that this field must be the specified number of bytes at a maximum
optional uint64 max_len = 3;getMaxLen in interface Validate.BytesRulesOrBuilderpublic 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 = 4;hasPattern in interface Validate.BytesRulesOrBuilderpublic 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 = 4;getPattern in interface Validate.BytesRulesOrBuilderpublic 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 = 4;getPatternBytes in interface Validate.BytesRulesOrBuilderpublic boolean hasPrefix()
Prefix specifies that this field must have the specified bytes at the beginning of the string.
optional bytes prefix = 5;hasPrefix in interface Validate.BytesRulesOrBuilderpublic com.google.protobuf.ByteString getPrefix()
Prefix specifies that this field must have the specified bytes at the beginning of the string.
optional bytes prefix = 5;getPrefix in interface Validate.BytesRulesOrBuilderpublic boolean hasSuffix()
Suffix specifies that this field must have the specified bytes at the end of the string.
optional bytes suffix = 6;hasSuffix in interface Validate.BytesRulesOrBuilderpublic com.google.protobuf.ByteString getSuffix()
Suffix specifies that this field must have the specified bytes at the end of the string.
optional bytes suffix = 6;getSuffix in interface Validate.BytesRulesOrBuilderpublic boolean hasContains()
Contains specifies that this field must have the specified bytes anywhere in the string.
optional bytes contains = 7;hasContains in interface Validate.BytesRulesOrBuilderpublic com.google.protobuf.ByteString getContains()
Contains specifies that this field must have the specified bytes anywhere in the string.
optional bytes contains = 7;getContains in interface Validate.BytesRulesOrBuilderpublic List<com.google.protobuf.ByteString> getInList()
In specifies that this field must be equal to one of the specified values
repeated bytes in = 8;getInList in interface Validate.BytesRulesOrBuilderpublic int getInCount()
In specifies that this field must be equal to one of the specified values
repeated bytes in = 8;getInCount in interface Validate.BytesRulesOrBuilderpublic com.google.protobuf.ByteString getIn(int index)
In specifies that this field must be equal to one of the specified values
repeated bytes in = 8;getIn in interface Validate.BytesRulesOrBuilderpublic List<com.google.protobuf.ByteString> getNotInList()
NotIn specifies that this field cannot be equal to one of the specified values
repeated bytes not_in = 9;getNotInList in interface Validate.BytesRulesOrBuilderpublic int getNotInCount()
NotIn specifies that this field cannot be equal to one of the specified values
repeated bytes not_in = 9;getNotInCount in interface Validate.BytesRulesOrBuilderpublic com.google.protobuf.ByteString getNotIn(int index)
NotIn specifies that this field cannot be equal to one of the specified values
repeated bytes not_in = 9;getNotIn in interface Validate.BytesRulesOrBuilderpublic boolean hasIp()
Ip specifies that the field must be a valid IP (v4 or v6) address in byte format
optional bool ip = 10;hasIp in interface Validate.BytesRulesOrBuilderpublic boolean getIp()
Ip specifies that the field must be a valid IP (v4 or v6) address in byte format
optional bool ip = 10;getIp in interface Validate.BytesRulesOrBuilderpublic boolean hasIpv4()
Ipv4 specifies that the field must be a valid IPv4 address in byte format
optional bool ipv4 = 11;hasIpv4 in interface Validate.BytesRulesOrBuilderpublic boolean getIpv4()
Ipv4 specifies that the field must be a valid IPv4 address in byte format
optional bool ipv4 = 11;getIpv4 in interface Validate.BytesRulesOrBuilderpublic boolean hasIpv6()
Ipv6 specifies that the field must be a valid IPv6 address in byte format
optional bool ipv6 = 12;hasIpv6 in interface Validate.BytesRulesOrBuilderpublic boolean getIpv6()
Ipv6 specifies that the field must be a valid IPv6 address in byte format
optional bool ipv6 = 12;getIpv6 in interface Validate.BytesRulesOrBuilderpublic 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.BytesRules parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Validate.BytesRules parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Validate.BytesRules parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Validate.BytesRules parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Validate.BytesRules parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Validate.BytesRules parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Validate.BytesRules parseFrom(InputStream input) throws IOException
IOExceptionpublic static Validate.BytesRules parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Validate.BytesRules parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Validate.BytesRules parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Validate.BytesRules parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Validate.BytesRules parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Validate.BytesRules.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Validate.BytesRules.Builder newBuilder()
public static Validate.BytesRules.Builder newBuilder(Validate.BytesRules prototype)
public Validate.BytesRules.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Validate.BytesRules.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Validate.BytesRules getDefaultInstance()
public static com.google.protobuf.Parser<Validate.BytesRules> parser()
public com.google.protobuf.Parser<Validate.BytesRules> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Validate.BytesRules getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.