Package io.envoyproxy.pgv.validate
Class Validate.BytesRules.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<Validate.BytesRules.Builder>
-
- io.envoyproxy.pgv.validate.Validate.BytesRules.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Validate.BytesRulesOrBuilder
,java.lang.Cloneable
- Enclosing class:
- Validate.BytesRules
public static final class Validate.BytesRules.Builder extends com.google.protobuf.GeneratedMessage.Builder<Validate.BytesRules.Builder> implements Validate.BytesRulesOrBuilder
BytesRules describe the constraints applied to `bytes` values
Protobuf typevalidate.BytesRules
-
-
Field Summary
Fields Modifier and Type Field Description private int
bitField0_
private com.google.protobuf.ByteString
const_
private com.google.protobuf.ByteString
contains_
private boolean
ignoreEmpty_
private com.google.protobuf.Internal.ProtobufList<com.google.protobuf.ByteString>
in_
private long
len_
private long
maxLen_
private long
minLen_
private com.google.protobuf.Internal.ProtobufList<com.google.protobuf.ByteString>
notIn_
private java.lang.Object
pattern_
private com.google.protobuf.ByteString
prefix_
private com.google.protobuf.ByteString
suffix_
private java.lang.Object
wellKnown_
private int
wellKnownCase_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Validate.BytesRules.Builder
addAllIn(java.lang.Iterable<? extends com.google.protobuf.ByteString> values)
In specifies that this field must be equal to one of the specified valuesValidate.BytesRules.Builder
addAllNotIn(java.lang.Iterable<? extends com.google.protobuf.ByteString> values)
NotIn specifies that this field cannot be equal to one of the specified valuesValidate.BytesRules.Builder
addIn(com.google.protobuf.ByteString value)
In specifies that this field must be equal to one of the specified valuesValidate.BytesRules.Builder
addNotIn(com.google.protobuf.ByteString value)
NotIn specifies that this field cannot be equal to one of the specified valuesValidate.BytesRules
build()
Validate.BytesRules
buildPartial()
private void
buildPartial0(Validate.BytesRules result)
private void
buildPartialOneofs(Validate.BytesRules result)
Validate.BytesRules.Builder
clear()
Validate.BytesRules.Builder
clearConst()
Const specifies that this field must be exactly the specified valueValidate.BytesRules.Builder
clearContains()
Contains specifies that this field must have the specified bytes anywhere in the string.Validate.BytesRules.Builder
clearIgnoreEmpty()
IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptyValidate.BytesRules.Builder
clearIn()
In specifies that this field must be equal to one of the specified valuesValidate.BytesRules.Builder
clearIp()
Ip specifies that the field must be a valid IP (v4 or v6) address in byte formatValidate.BytesRules.Builder
clearIpv4()
Ipv4 specifies that the field must be a valid IPv4 address in byte formatValidate.BytesRules.Builder
clearIpv6()
Ipv6 specifies that the field must be a valid IPv6 address in byte formatValidate.BytesRules.Builder
clearLen()
Len specifies that this field must be the specified number of bytesValidate.BytesRules.Builder
clearMaxLen()
MaxLen specifies that this field must be the specified number of bytes at a maximumValidate.BytesRules.Builder
clearMinLen()
MinLen specifies that this field must be the specified number of bytes at a minimumValidate.BytesRules.Builder
clearNotIn()
NotIn specifies that this field cannot be equal to one of the specified valuesValidate.BytesRules.Builder
clearPattern()
Pattern specifes that this field must match against the specified regular expression (RE2 syntax).Validate.BytesRules.Builder
clearPrefix()
Prefix specifies that this field must have the specified bytes at the beginning of the string.Validate.BytesRules.Builder
clearSuffix()
Suffix specifies that this field must have the specified bytes at the end of the string.Validate.BytesRules.Builder
clearWellKnown()
private void
ensureInIsMutable()
private void
ensureNotInIsMutable()
com.google.protobuf.ByteString
getConst()
Const specifies that this field must be exactly the specified valuecom.google.protobuf.ByteString
getContains()
Contains specifies that this field must have the specified bytes anywhere in the string.Validate.BytesRules
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
boolean
getIgnoreEmpty()
IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptycom.google.protobuf.ByteString
getIn(int index)
In specifies that this field must be equal to one of the specified valuesint
getInCount()
In specifies that this field must be equal to one of the specified valuesjava.util.List<com.google.protobuf.ByteString>
getInList()
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 in byte formatboolean
getIpv4()
Ipv4 specifies that the field must be a valid IPv4 address in byte formatboolean
getIpv6()
Ipv6 specifies that the field must be a valid IPv6 address in byte formatlong
getLen()
Len specifies that this field must be the specified number of byteslong
getMaxLen()
MaxLen specifies that this field must be the specified number of bytes at a maximumlong
getMinLen()
MinLen specifies that this field must be the specified number of bytes at a minimumcom.google.protobuf.ByteString
getNotIn(int index)
NotIn specifies that this field cannot be equal to one of the specified valuesint
getNotInCount()
NotIn specifies that this field cannot be equal to one of the specified valuesjava.util.List<com.google.protobuf.ByteString>
getNotInList()
NotIn specifies that this field cannot be equal to one of the specified valuesjava.lang.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.com.google.protobuf.ByteString
getSuffix()
Suffix specifies that this field must have the specified bytes at the end of the string.Validate.BytesRules.WellKnownCase
getWellKnownCase()
boolean
hasConst()
Const specifies that this field must be exactly the specified valueboolean
hasContains()
Contains specifies that this field must have the specified bytes anywhere in the string.boolean
hasIgnoreEmpty()
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 in byte formatboolean
hasIpv4()
Ipv4 specifies that the field must be a valid IPv4 address in byte formatboolean
hasIpv6()
Ipv6 specifies that the field must be a valid IPv6 address in byte formatboolean
hasLen()
Len specifies that this field must be the specified number of bytesboolean
hasMaxLen()
MaxLen specifies that this field must be the specified number of bytes at a maximumboolean
hasMinLen()
MinLen specifies that this field must be the specified number of bytes at a minimumboolean
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.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Validate.BytesRules.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Validate.BytesRules.Builder
mergeFrom(com.google.protobuf.Message other)
Validate.BytesRules.Builder
mergeFrom(Validate.BytesRules other)
Validate.BytesRules.Builder
setConst(com.google.protobuf.ByteString value)
Const specifies that this field must be exactly the specified valueValidate.BytesRules.Builder
setContains(com.google.protobuf.ByteString value)
Contains specifies that this field must have the specified bytes anywhere in the string.Validate.BytesRules.Builder
setIgnoreEmpty(boolean value)
IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptyValidate.BytesRules.Builder
setIn(int index, com.google.protobuf.ByteString value)
In specifies that this field must be equal to one of the specified valuesValidate.BytesRules.Builder
setIp(boolean value)
Ip specifies that the field must be a valid IP (v4 or v6) address in byte formatValidate.BytesRules.Builder
setIpv4(boolean value)
Ipv4 specifies that the field must be a valid IPv4 address in byte formatValidate.BytesRules.Builder
setIpv6(boolean value)
Ipv6 specifies that the field must be a valid IPv6 address in byte formatValidate.BytesRules.Builder
setLen(long value)
Len specifies that this field must be the specified number of bytesValidate.BytesRules.Builder
setMaxLen(long value)
MaxLen specifies that this field must be the specified number of bytes at a maximumValidate.BytesRules.Builder
setMinLen(long value)
MinLen specifies that this field must be the specified number of bytes at a minimumValidate.BytesRules.Builder
setNotIn(int index, com.google.protobuf.ByteString value)
NotIn specifies that this field cannot be equal to one of the specified valuesValidate.BytesRules.Builder
setPattern(java.lang.String value)
Pattern specifes that this field must match against the specified regular expression (RE2 syntax).Validate.BytesRules.Builder
setPatternBytes(com.google.protobuf.ByteString value)
Pattern specifes that this field must match against the specified regular expression (RE2 syntax).Validate.BytesRules.Builder
setPrefix(com.google.protobuf.ByteString value)
Prefix specifies that this field must have the specified bytes at the beginning of the string.Validate.BytesRules.Builder
setSuffix(com.google.protobuf.ByteString value)
Suffix specifies that this field must have the specified bytes at the end of the string.-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
wellKnownCase_
private int wellKnownCase_
-
wellKnown_
private java.lang.Object wellKnown_
-
bitField0_
private int bitField0_
-
const_
private com.google.protobuf.ByteString const_
-
len_
private long len_
-
minLen_
private long minLen_
-
maxLen_
private long maxLen_
-
pattern_
private java.lang.Object pattern_
-
prefix_
private com.google.protobuf.ByteString prefix_
-
suffix_
private com.google.protobuf.ByteString suffix_
-
contains_
private com.google.protobuf.ByteString contains_
-
in_
private com.google.protobuf.Internal.ProtobufList<com.google.protobuf.ByteString> in_
-
notIn_
private com.google.protobuf.Internal.ProtobufList<com.google.protobuf.ByteString> notIn_
-
ignoreEmpty_
private boolean ignoreEmpty_
-
-
Method Detail
-
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.Builder<Validate.BytesRules.Builder>
-
clear
public Validate.BytesRules.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<Validate.BytesRules.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<Validate.BytesRules.Builder>
-
getDefaultInstanceForType
public Validate.BytesRules getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Validate.BytesRules build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Validate.BytesRules buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(Validate.BytesRules result)
-
buildPartialOneofs
private void buildPartialOneofs(Validate.BytesRules result)
-
mergeFrom
public Validate.BytesRules.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Validate.BytesRules.Builder>
-
mergeFrom
public Validate.BytesRules.Builder mergeFrom(Validate.BytesRules other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<Validate.BytesRules.Builder>
-
mergeFrom
public Validate.BytesRules.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Validate.BytesRules.Builder>
- Throws:
java.io.IOException
-
getWellKnownCase
public Validate.BytesRules.WellKnownCase getWellKnownCase()
- Specified by:
getWellKnownCase
in interfaceValidate.BytesRulesOrBuilder
-
clearWellKnown
public Validate.BytesRules.Builder clearWellKnown()
-
hasConst
public boolean hasConst()
Const specifies that this field must be exactly the specified value
optional bytes const = 1;
- Specified by:
hasConst
in interfaceValidate.BytesRulesOrBuilder
- Returns:
- Whether the const field is set.
-
getConst
public com.google.protobuf.ByteString getConst()
Const specifies that this field must be exactly the specified value
optional bytes const = 1;
- Specified by:
getConst
in interfaceValidate.BytesRulesOrBuilder
- Returns:
- The const.
-
setConst
public Validate.BytesRules.Builder setConst(com.google.protobuf.ByteString value)
Const specifies that this field must be exactly the specified value
optional bytes const = 1;
- Parameters:
value
- The const to set.- Returns:
- This builder for chaining.
-
clearConst
public Validate.BytesRules.Builder clearConst()
Const specifies that this field must be exactly the specified value
optional bytes const = 1;
- Returns:
- This builder for chaining.
-
hasLen
public boolean hasLen()
Len specifies that this field must be the specified number of bytes
optional uint64 len = 13;
- Specified by:
hasLen
in interfaceValidate.BytesRulesOrBuilder
- Returns:
- Whether the len field is set.
-
getLen
public long getLen()
Len specifies that this field must be the specified number of bytes
optional uint64 len = 13;
- Specified by:
getLen
in interfaceValidate.BytesRulesOrBuilder
- Returns:
- The len.
-
setLen
public Validate.BytesRules.Builder setLen(long value)
Len specifies that this field must be the specified number of bytes
optional uint64 len = 13;
- Parameters:
value
- The len to set.- Returns:
- This builder for chaining.
-
clearLen
public Validate.BytesRules.Builder clearLen()
Len specifies that this field must be the specified number of bytes
optional uint64 len = 13;
- Returns:
- This builder for chaining.
-
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:
hasMinLen
in interfaceValidate.BytesRulesOrBuilder
- Returns:
- Whether the minLen field is set.
-
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:
getMinLen
in interfaceValidate.BytesRulesOrBuilder
- Returns:
- The minLen.
-
setMinLen
public Validate.BytesRules.Builder setMinLen(long value)
MinLen specifies that this field must be the specified number of bytes at a minimum
optional uint64 min_len = 2;
- Parameters:
value
- The minLen to set.- Returns:
- This builder for chaining.
-
clearMinLen
public Validate.BytesRules.Builder clearMinLen()
MinLen specifies that this field must be the specified number of bytes at a minimum
optional uint64 min_len = 2;
- Returns:
- This builder for chaining.
-
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:
hasMaxLen
in interfaceValidate.BytesRulesOrBuilder
- Returns:
- Whether the maxLen field is set.
-
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:
getMaxLen
in interfaceValidate.BytesRulesOrBuilder
- Returns:
- The maxLen.
-
setMaxLen
public Validate.BytesRules.Builder setMaxLen(long value)
MaxLen specifies that this field must be the specified number of bytes at a maximum
optional uint64 max_len = 3;
- Parameters:
value
- The maxLen to set.- Returns:
- This builder for chaining.
-
clearMaxLen
public Validate.BytesRules.Builder clearMaxLen()
MaxLen specifies that this field must be the specified number of bytes at a maximum
optional uint64 max_len = 3;
- Returns:
- This builder for chaining.
-
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:
hasPattern
in interfaceValidate.BytesRulesOrBuilder
- Returns:
- Whether the pattern field is set.
-
getPattern
public java.lang.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;
- Specified by:
getPattern
in interfaceValidate.BytesRulesOrBuilder
- Returns:
- The pattern.
-
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:
getPatternBytes
in interfaceValidate.BytesRulesOrBuilder
- Returns:
- The bytes for pattern.
-
setPattern
public Validate.BytesRules.Builder setPattern(java.lang.String value)
Pattern specifes that this field must match against the specified regular expression (RE2 syntax). The included expression should elide any delimiters.
optional string pattern = 4;
- Parameters:
value
- The pattern to set.- Returns:
- This builder for chaining.
-
clearPattern
public Validate.BytesRules.Builder clearPattern()
Pattern specifes that this field must match against the specified regular expression (RE2 syntax). The included expression should elide any delimiters.
optional string pattern = 4;
- Returns:
- This builder for chaining.
-
setPatternBytes
public Validate.BytesRules.Builder setPatternBytes(com.google.protobuf.ByteString value)
Pattern specifes that this field must match against the specified regular expression (RE2 syntax). The included expression should elide any delimiters.
optional string pattern = 4;
- Parameters:
value
- The bytes for pattern to set.- Returns:
- This builder for chaining.
-
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:
hasPrefix
in interfaceValidate.BytesRulesOrBuilder
- Returns:
- Whether the prefix field is set.
-
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:
getPrefix
in interfaceValidate.BytesRulesOrBuilder
- Returns:
- The prefix.
-
setPrefix
public Validate.BytesRules.Builder setPrefix(com.google.protobuf.ByteString value)
Prefix specifies that this field must have the specified bytes at the beginning of the string.
optional bytes prefix = 5;
- Parameters:
value
- The prefix to set.- Returns:
- This builder for chaining.
-
clearPrefix
public Validate.BytesRules.Builder clearPrefix()
Prefix specifies that this field must have the specified bytes at the beginning of the string.
optional bytes prefix = 5;
- Returns:
- This builder for chaining.
-
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:
hasSuffix
in interfaceValidate.BytesRulesOrBuilder
- Returns:
- Whether the suffix field is set.
-
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:
getSuffix
in interfaceValidate.BytesRulesOrBuilder
- Returns:
- The suffix.
-
setSuffix
public Validate.BytesRules.Builder setSuffix(com.google.protobuf.ByteString value)
Suffix specifies that this field must have the specified bytes at the end of the string.
optional bytes suffix = 6;
- Parameters:
value
- The suffix to set.- Returns:
- This builder for chaining.
-
clearSuffix
public Validate.BytesRules.Builder clearSuffix()
Suffix specifies that this field must have the specified bytes at the end of the string.
optional bytes suffix = 6;
- Returns:
- This builder for chaining.
-
hasContains
public boolean hasContains()
Contains specifies that this field must have the specified bytes anywhere in the string.
optional bytes contains = 7;
- Specified by:
hasContains
in interfaceValidate.BytesRulesOrBuilder
- Returns:
- Whether the contains field is set.
-
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:
getContains
in interfaceValidate.BytesRulesOrBuilder
- Returns:
- The contains.
-
setContains
public Validate.BytesRules.Builder setContains(com.google.protobuf.ByteString value)
Contains specifies that this field must have the specified bytes anywhere in the string.
optional bytes contains = 7;
- Parameters:
value
- The contains to set.- Returns:
- This builder for chaining.
-
clearContains
public Validate.BytesRules.Builder clearContains()
Contains specifies that this field must have the specified bytes anywhere in the string.
optional bytes contains = 7;
- Returns:
- This builder for chaining.
-
ensureInIsMutable
private void ensureInIsMutable()
-
getInList
public java.util.List<com.google.protobuf.ByteString> getInList()
In specifies that this field must be equal to one of the specified values
repeated bytes in = 8;
- Specified by:
getInList
in interfaceValidate.BytesRulesOrBuilder
- 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 bytes in = 8;
- Specified by:
getInCount
in interfaceValidate.BytesRulesOrBuilder
- Returns:
- The count of in.
-
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:
getIn
in interfaceValidate.BytesRulesOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The in at the given index.
-
setIn
public Validate.BytesRules.Builder setIn(int index, com.google.protobuf.ByteString value)
In specifies that this field must be equal to one of the specified values
repeated bytes in = 8;
- Parameters:
index
- The index to set the value at.value
- The in to set.- Returns:
- This builder for chaining.
-
addIn
public Validate.BytesRules.Builder addIn(com.google.protobuf.ByteString value)
In specifies that this field must be equal to one of the specified values
repeated bytes in = 8;
- Parameters:
value
- The in to add.- Returns:
- This builder for chaining.
-
addAllIn
public Validate.BytesRules.Builder addAllIn(java.lang.Iterable<? extends com.google.protobuf.ByteString> values)
In specifies that this field must be equal to one of the specified values
repeated bytes in = 8;
- Parameters:
values
- The in to add.- Returns:
- This builder for chaining.
-
clearIn
public Validate.BytesRules.Builder clearIn()
In specifies that this field must be equal to one of the specified values
repeated bytes in = 8;
- Returns:
- This builder for chaining.
-
ensureNotInIsMutable
private void ensureNotInIsMutable()
-
getNotInList
public java.util.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;
- Specified by:
getNotInList
in interfaceValidate.BytesRulesOrBuilder
- 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 bytes not_in = 9;
- Specified by:
getNotInCount
in interfaceValidate.BytesRulesOrBuilder
- Returns:
- The count of notIn.
-
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:
getNotIn
in interfaceValidate.BytesRulesOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The notIn at the given index.
-
setNotIn
public Validate.BytesRules.Builder setNotIn(int index, com.google.protobuf.ByteString value)
NotIn specifies that this field cannot be equal to one of the specified values
repeated bytes not_in = 9;
- Parameters:
index
- The index to set the value at.value
- The notIn to set.- Returns:
- This builder for chaining.
-
addNotIn
public Validate.BytesRules.Builder addNotIn(com.google.protobuf.ByteString value)
NotIn specifies that this field cannot be equal to one of the specified values
repeated bytes not_in = 9;
- Parameters:
value
- The notIn to add.- Returns:
- This builder for chaining.
-
addAllNotIn
public Validate.BytesRules.Builder addAllNotIn(java.lang.Iterable<? extends com.google.protobuf.ByteString> values)
NotIn specifies that this field cannot be equal to one of the specified values
repeated bytes not_in = 9;
- Parameters:
values
- The notIn to add.- Returns:
- This builder for chaining.
-
clearNotIn
public Validate.BytesRules.Builder clearNotIn()
NotIn specifies that this field cannot be equal to one of the specified values
repeated bytes not_in = 9;
- Returns:
- This builder for chaining.
-
hasIp
public boolean hasIp()
Ip specifies that the field must be a valid IP (v4 or v6) address in byte format
bool ip = 10;
- Specified by:
hasIp
in interfaceValidate.BytesRulesOrBuilder
- 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 in byte format
bool ip = 10;
- Specified by:
getIp
in interfaceValidate.BytesRulesOrBuilder
- Returns:
- The ip.
-
setIp
public Validate.BytesRules.Builder setIp(boolean value)
Ip specifies that the field must be a valid IP (v4 or v6) address in byte format
bool ip = 10;
- Parameters:
value
- The ip to set.- Returns:
- This builder for chaining.
-
clearIp
public Validate.BytesRules.Builder clearIp()
Ip specifies that the field must be a valid IP (v4 or v6) address in byte format
bool ip = 10;
- Returns:
- This builder for chaining.
-
hasIpv4
public boolean hasIpv4()
Ipv4 specifies that the field must be a valid IPv4 address in byte format
bool ipv4 = 11;
- Specified by:
hasIpv4
in interfaceValidate.BytesRulesOrBuilder
- Returns:
- Whether the ipv4 field is set.
-
getIpv4
public boolean getIpv4()
Ipv4 specifies that the field must be a valid IPv4 address in byte format
bool ipv4 = 11;
- Specified by:
getIpv4
in interfaceValidate.BytesRulesOrBuilder
- Returns:
- The ipv4.
-
setIpv4
public Validate.BytesRules.Builder setIpv4(boolean value)
Ipv4 specifies that the field must be a valid IPv4 address in byte format
bool ipv4 = 11;
- Parameters:
value
- The ipv4 to set.- Returns:
- This builder for chaining.
-
clearIpv4
public Validate.BytesRules.Builder clearIpv4()
Ipv4 specifies that the field must be a valid IPv4 address in byte format
bool ipv4 = 11;
- Returns:
- This builder for chaining.
-
hasIpv6
public boolean hasIpv6()
Ipv6 specifies that the field must be a valid IPv6 address in byte format
bool ipv6 = 12;
- Specified by:
hasIpv6
in interfaceValidate.BytesRulesOrBuilder
- Returns:
- Whether the ipv6 field is set.
-
getIpv6
public boolean getIpv6()
Ipv6 specifies that the field must be a valid IPv6 address in byte format
bool ipv6 = 12;
- Specified by:
getIpv6
in interfaceValidate.BytesRulesOrBuilder
- Returns:
- The ipv6.
-
setIpv6
public Validate.BytesRules.Builder setIpv6(boolean value)
Ipv6 specifies that the field must be a valid IPv6 address in byte format
bool ipv6 = 12;
- Parameters:
value
- The ipv6 to set.- Returns:
- This builder for chaining.
-
clearIpv6
public Validate.BytesRules.Builder clearIpv6()
Ipv6 specifies that the field must be a valid IPv6 address in byte format
bool ipv6 = 12;
- Returns:
- This builder for chaining.
-
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 = 14;
- Specified by:
hasIgnoreEmpty
in interfaceValidate.BytesRulesOrBuilder
- 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 = 14;
- Specified by:
getIgnoreEmpty
in interfaceValidate.BytesRulesOrBuilder
- Returns:
- The ignoreEmpty.
-
setIgnoreEmpty
public Validate.BytesRules.Builder setIgnoreEmpty(boolean value)
IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
optional bool ignore_empty = 14;
- Parameters:
value
- The ignoreEmpty to set.- Returns:
- This builder for chaining.
-
clearIgnoreEmpty
public Validate.BytesRules.Builder clearIgnoreEmpty()
IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not empty
optional bool ignore_empty = 14;
- Returns:
- This builder for chaining.
-
-