Package io.envoyproxy.pgv.validate
Class Validate.BytesRules
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.pgv.validate.Validate.BytesRules
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Validate.BytesRulesOrBuilder,Serializable
- Enclosing class:
- Validate
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- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classValidate.BytesRules.BuilderBytesRules describe the constraints applied to `bytes` valuesstatic classValidate.BytesRules.WellKnownCaseNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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 -
Field Summary
Fields Modifier and Type Field Description static intCONST_FIELD_NUMBERstatic intCONTAINS_FIELD_NUMBERstatic intIN_FIELD_NUMBERstatic intIP_FIELD_NUMBERstatic intIPV4_FIELD_NUMBERstatic intIPV6_FIELD_NUMBERstatic intLEN_FIELD_NUMBERstatic intMAX_LEN_FIELD_NUMBERstatic intMIN_LEN_FIELD_NUMBERstatic intNOT_IN_FIELD_NUMBERstatic com.google.protobuf.Parser<Validate.BytesRules>PARSERDeprecated.static intPATTERN_FIELD_NUMBERstatic intPREFIX_FIELD_NUMBERstatic intSUFFIX_FIELD_NUMBER -
Method Summary
Modifier and Type Method Description booleanequals(Object obj)com.google.protobuf.ByteStringgetConst()Const specifies that this field must be exactly the specified valuecom.google.protobuf.ByteStringgetContains()Contains specifies that this field must have the specified bytes anywhere in the string.static Validate.BytesRulesgetDefaultInstance()Validate.BytesRulesgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.ByteStringgetIn(int index)In specifies that this field must be equal to one of the specified valuesintgetInCount()In specifies that this field must be equal to one of the specified valuesList<com.google.protobuf.ByteString>getInList()In specifies that this field must be equal to one of the specified valuesbooleangetIp()Ip specifies that the field must be a valid IP (v4 or v6) address in byte formatbooleangetIpv4()Ipv4 specifies that the field must be a valid IPv4 address in byte formatbooleangetIpv6()Ipv6 specifies that the field must be a valid IPv6 address in byte formatlonggetLen()Len specifies that this field must be the specified number of byteslonggetMaxLen()MaxLen specifies that this field must be the specified number of bytes at a maximumlonggetMinLen()MinLen specifies that this field must be the specified number of bytes at a minimumcom.google.protobuf.ByteStringgetNotIn(int index)NotIn specifies that this field cannot be equal to one of the specified valuesintgetNotInCount()NotIn specifies that this field cannot be equal to one of the specified valuesList<com.google.protobuf.ByteString>getNotInList()NotIn specifies that this field cannot be equal to one of the specified valuescom.google.protobuf.Parser<Validate.BytesRules>getParserForType()StringgetPattern()Pattern specifes that this field must match against the specified regular expression (RE2 syntax).com.google.protobuf.ByteStringgetPatternBytes()Pattern specifes that this field must match against the specified regular expression (RE2 syntax).com.google.protobuf.ByteStringgetPrefix()Prefix specifies that this field must have the specified bytes at the beginning of the string.intgetSerializedSize()com.google.protobuf.ByteStringgetSuffix()Suffix specifies that this field must have the specified bytes at the end of the string.com.google.protobuf.UnknownFieldSetgetUnknownFields()Validate.BytesRules.WellKnownCasegetWellKnownCase()booleanhasConst()Const specifies that this field must be exactly the specified valuebooleanhasContains()Contains specifies that this field must have the specified bytes anywhere in the string.inthashCode()booleanhasIp()Ip specifies that the field must be a valid IP (v4 or v6) address in byte formatbooleanhasIpv4()Ipv4 specifies that the field must be a valid IPv4 address in byte formatbooleanhasIpv6()Ipv6 specifies that the field must be a valid IPv6 address in byte formatbooleanhasLen()Len specifies that this field must be the specified number of bytesbooleanhasMaxLen()MaxLen specifies that this field must be the specified number of bytes at a maximumbooleanhasMinLen()MinLen specifies that this field must be the specified number of bytes at a minimumbooleanhasPattern()Pattern specifes that this field must match against the specified regular expression (RE2 syntax).booleanhasPrefix()Prefix specifies that this field must have the specified bytes at the beginning of the string.booleanhasSuffix()Suffix specifies that this field must have the specified bytes at the end of the string.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Validate.BytesRules.BuildernewBuilder()static Validate.BytesRules.BuildernewBuilder(Validate.BytesRules prototype)Validate.BytesRules.BuildernewBuilderForType()protected Validate.BytesRules.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)static Validate.BytesRulesparseDelimitedFrom(InputStream input)static Validate.BytesRulesparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Validate.BytesRulesparseFrom(byte[] data)static Validate.BytesRulesparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Validate.BytesRulesparseFrom(com.google.protobuf.ByteString data)static Validate.BytesRulesparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Validate.BytesRulesparseFrom(com.google.protobuf.CodedInputStream input)static Validate.BytesRulesparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Validate.BytesRulesparseFrom(InputStream input)static Validate.BytesRulesparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Validate.BytesRules>parser()Validate.BytesRules.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
CONST_FIELD_NUMBER
public static final int CONST_FIELD_NUMBER- See Also:
- Constant Field Values
-
LEN_FIELD_NUMBER
public static final int LEN_FIELD_NUMBER- See Also:
- Constant Field Values
-
MIN_LEN_FIELD_NUMBER
public static final int MIN_LEN_FIELD_NUMBER- See Also:
- Constant Field Values
-
MAX_LEN_FIELD_NUMBER
public static final int MAX_LEN_FIELD_NUMBER- See Also:
- Constant Field Values
-
PATTERN_FIELD_NUMBER
public static final int PATTERN_FIELD_NUMBER- See Also:
- Constant Field Values
-
PREFIX_FIELD_NUMBER
public static final int PREFIX_FIELD_NUMBER- See Also:
- Constant Field Values
-
SUFFIX_FIELD_NUMBER
public static final int SUFFIX_FIELD_NUMBER- See Also:
- Constant Field Values
-
CONTAINS_FIELD_NUMBER
public static final int CONTAINS_FIELD_NUMBER- See Also:
- Constant Field Values
-
IN_FIELD_NUMBER
public static final int IN_FIELD_NUMBER- See Also:
- Constant Field Values
-
NOT_IN_FIELD_NUMBER
public static final int NOT_IN_FIELD_NUMBER- See Also:
- Constant Field Values
-
IP_FIELD_NUMBER
public static final int IP_FIELD_NUMBER- See Also:
- Constant Field Values
-
IPV4_FIELD_NUMBER
public static final int IPV4_FIELD_NUMBER- See Also:
- Constant Field Values
-
IPV6_FIELD_NUMBER
public static final int IPV6_FIELD_NUMBER- See Also:
- Constant Field Values
-
PARSER
Deprecated.
-
-
Method Details
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getWellKnownCase
- Specified by:
getWellKnownCasein interfaceValidate.BytesRulesOrBuilder
-
hasConst
public boolean hasConst()Const specifies that this field must be exactly the specified value
optional bytes const = 1;- Specified by:
hasConstin interfaceValidate.BytesRulesOrBuilder
-
getConst
public com.google.protobuf.ByteString getConst()Const specifies that this field must be exactly the specified value
optional bytes const = 1;- Specified by:
getConstin interfaceValidate.BytesRulesOrBuilder
-
hasLen
public boolean hasLen()Len specifies that this field must be the specified number of bytes
optional uint64 len = 13;- Specified by:
hasLenin interfaceValidate.BytesRulesOrBuilder
-
getLen
public long getLen()Len specifies that this field must be the specified number of bytes
optional uint64 len = 13;- Specified by:
getLenin interfaceValidate.BytesRulesOrBuilder
-
hasMinLen
public boolean hasMinLen()MinLen specifies that this field must be the specified number of bytes at a minimum
optional uint64 min_len = 2;- Specified by:
hasMinLenin interfaceValidate.BytesRulesOrBuilder
-
getMinLen
public long getMinLen()MinLen specifies that this field must be the specified number of bytes at a minimum
optional uint64 min_len = 2;- Specified by:
getMinLenin interfaceValidate.BytesRulesOrBuilder
-
hasMaxLen
public boolean hasMaxLen()MaxLen specifies that this field must be the specified number of bytes at a maximum
optional uint64 max_len = 3;- Specified by:
hasMaxLenin interfaceValidate.BytesRulesOrBuilder
-
getMaxLen
public long getMaxLen()MaxLen specifies that this field must be the specified number of bytes at a maximum
optional uint64 max_len = 3;- Specified by:
getMaxLenin interfaceValidate.BytesRulesOrBuilder
-
hasPattern
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 = 4;- Specified by:
hasPatternin interfaceValidate.BytesRulesOrBuilder
-
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;- Specified by:
getPatternin interfaceValidate.BytesRulesOrBuilder
-
getPatternBytes
public 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;- Specified by:
getPatternBytesin interfaceValidate.BytesRulesOrBuilder
-
hasPrefix
public boolean hasPrefix()Prefix specifies that this field must have the specified bytes at the beginning of the string.
optional bytes prefix = 5;- Specified by:
hasPrefixin interfaceValidate.BytesRulesOrBuilder
-
getPrefix
public 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;- Specified by:
getPrefixin interfaceValidate.BytesRulesOrBuilder
-
hasSuffix
public boolean hasSuffix()Suffix specifies that this field must have the specified bytes at the end of the string.
optional bytes suffix = 6;- Specified by:
hasSuffixin interfaceValidate.BytesRulesOrBuilder
-
getSuffix
public 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;- Specified by:
getSuffixin interfaceValidate.BytesRulesOrBuilder
-
hasContains
public boolean hasContains()Contains specifies that this field must have the specified bytes anywhere in the string.
optional bytes contains = 7;- Specified by:
hasContainsin interfaceValidate.BytesRulesOrBuilder
-
getContains
public com.google.protobuf.ByteString getContains()Contains specifies that this field must have the specified bytes anywhere in the string.
optional bytes contains = 7;- Specified by:
getContainsin interfaceValidate.BytesRulesOrBuilder
-
getInList
In specifies that this field must be equal to one of the specified values
repeated bytes in = 8;- Specified by:
getInListin interfaceValidate.BytesRulesOrBuilder
-
getInCount
public int getInCount()In specifies that this field must be equal to one of the specified values
repeated bytes in = 8;- Specified by:
getInCountin interfaceValidate.BytesRulesOrBuilder
-
getIn
public 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;- Specified by:
getInin interfaceValidate.BytesRulesOrBuilder
-
getNotInList
NotIn specifies that this field cannot be equal to one of the specified values
repeated bytes not_in = 9;- Specified by:
getNotInListin interfaceValidate.BytesRulesOrBuilder
-
getNotInCount
public int getNotInCount()NotIn specifies that this field cannot be equal to one of the specified values
repeated bytes not_in = 9;- Specified by:
getNotInCountin interfaceValidate.BytesRulesOrBuilder
-
getNotIn
public 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;- Specified by:
getNotInin interfaceValidate.BytesRulesOrBuilder
-
hasIp
public boolean hasIp()Ip specifies that the field must be a valid IP (v4 or v6) address in byte format
optional bool ip = 10;- Specified by:
hasIpin interfaceValidate.BytesRulesOrBuilder
-
getIp
public boolean getIp()Ip specifies that the field must be a valid IP (v4 or v6) address in byte format
optional bool ip = 10;- Specified by:
getIpin interfaceValidate.BytesRulesOrBuilder
-
hasIpv4
public boolean hasIpv4()Ipv4 specifies that the field must be a valid IPv4 address in byte format
optional bool ipv4 = 11;- Specified by:
hasIpv4in interfaceValidate.BytesRulesOrBuilder
-
getIpv4
public boolean getIpv4()Ipv4 specifies that the field must be a valid IPv4 address in byte format
optional bool ipv4 = 11;- Specified by:
getIpv4in interfaceValidate.BytesRulesOrBuilder
-
hasIpv6
public boolean hasIpv6()Ipv6 specifies that the field must be a valid IPv6 address in byte format
optional bool ipv6 = 12;- Specified by:
hasIpv6in interfaceValidate.BytesRulesOrBuilder
-
getIpv6
public boolean getIpv6()Ipv6 specifies that the field must be a valid IPv6 address in byte format
optional bool ipv6 = 12;- Specified by:
getIpv6in interfaceValidate.BytesRulesOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Validate.BytesRules parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Validate.BytesRules 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.BytesRules parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Validate.BytesRules 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.BytesRules parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException- Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Validate.BytesRules parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException- Throws:
IOException
-
parseFrom
public static Validate.BytesRules parseFrom(com.google.protobuf.CodedInputStream input) throws IOException- Throws:
IOException
-
parseFrom
public static Validate.BytesRules parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException- Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Validate.BytesRules.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-