Package io.envoyproxy.pgv.validate
Class Validate.BytesRules.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.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,Cloneable
- Enclosing class:
- Validate.BytesRules
public static final class Validate.BytesRules.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Validate.BytesRules.Builder>
implements Validate.BytesRulesOrBuilder
BytesRules describe the constraints applied to `bytes` valuesProtobuf type
validate.BytesRules-
Method Summary
Modifier and TypeMethodDescriptionIn specifies that this field must be equal to one of the specified valuesaddAllNotIn(Iterable<? extends com.google.protobuf.ByteString> values) NotIn specifies that this field cannot be equal to one of the specified valuesaddIn(com.google.protobuf.ByteString value) In specifies that this field must be equal to one of the specified valuesaddNotIn(com.google.protobuf.ByteString value) NotIn specifies that this field cannot be equal to one of the specified valuesaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Const specifies that this field must be exactly the specified valueContains specifies that this field must have the specified bytes anywhere in the string.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptyclearIn()In specifies that this field must be equal to one of the specified valuesclearIp()Ip specifies that the field must be a valid IP (v4 or v6) address in byte formatIpv4 specifies that the field must be a valid IPv4 address in byte formatIpv6 specifies that the field must be a valid IPv6 address in byte formatclearLen()Len specifies that this field must be the specified number of bytesMaxLen specifies that this field must be the specified number of bytes at a maximumMinLen specifies that this field must be the specified number of bytes at a minimumNotIn specifies that this field cannot be equal to one of the specified valuesclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Pattern specifes that this field must match against the specified regular expression (RE2 syntax).Prefix specifies that this field must have the specified bytes at the beginning of the string.Suffix specifies that this field must have the specified bytes at the end of the string.clone()com.google.protobuf.ByteStringgetConst()Const specifies that this field must be exactly the specified valuecom.google.protobuf.ByteStringContains specifies that this field must have the specified bytes anywhere in the string.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanIgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptycom.google.protobuf.ByteStringgetIn(int index) In specifies that this field must be equal to one of the specified valuesintIn specifies that this field must be equal to one of the specified valuesList<com.google.protobuf.ByteString>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 byteslongMaxLen specifies that this field must be the specified number of bytes at a maximumlongMinLen 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 valuesintNotIn specifies that this field cannot be equal to one of the specified valuesList<com.google.protobuf.ByteString>NotIn specifies that this field cannot be equal to one of the specified valuesPattern specifes that this field must match against the specified regular expression (RE2 syntax).com.google.protobuf.ByteStringPattern specifes that this field must match against the specified regular expression (RE2 syntax).com.google.protobuf.ByteStringPrefix specifies that this field must have the specified bytes at the beginning of the string.com.google.protobuf.ByteStringSuffix specifies that this field must have the specified bytes at the end of the string.booleanhasConst()Const specifies that this field must be exactly the specified valuebooleanContains specifies that this field must have the specified bytes anywhere in the string.booleanIgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptybooleanhasIp()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 bytesbooleanMaxLen specifies that this field must be the specified number of bytes at a maximumbooleanMinLen specifies that this field must be the specified number of bytes at a minimumbooleanPattern specifes that this field must match against the specified regular expression (RE2 syntax).booleanPrefix specifies that this field must have the specified bytes at the beginning of the string.booleanSuffix specifies that this field must have the specified bytes at the end of the string.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Validate.BytesRules other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setConst(com.google.protobuf.ByteString value) Const specifies that this field must be exactly the specified valuesetContains(com.google.protobuf.ByteString value) Contains specifies that this field must have the specified bytes anywhere in the string.setIgnoreEmpty(boolean value) IgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptysetIn(int index, com.google.protobuf.ByteString value) In specifies that this field must be equal to one of the specified valuessetIp(boolean value) Ip specifies that the field must be a valid IP (v4 or v6) address in byte formatsetIpv4(boolean value) Ipv4 specifies that the field must be a valid IPv4 address in byte formatsetIpv6(boolean value) Ipv6 specifies that the field must be a valid IPv6 address in byte formatsetLen(long value) Len specifies that this field must be the specified number of bytessetMaxLen(long value) MaxLen specifies that this field must be the specified number of bytes at a maximumsetMinLen(long value) MinLen specifies that this field must be the specified number of bytes at a minimumsetNotIn(int index, com.google.protobuf.ByteString value) NotIn specifies that this field cannot be equal to one of the specified valuessetPattern(String value) Pattern specifes that this field must match against the specified regular expression (RE2 syntax).setPatternBytes(com.google.protobuf.ByteString value) Pattern specifes that this field must match against the specified regular expression (RE2 syntax).setPrefix(com.google.protobuf.ByteString value) Prefix specifies that this field must have the specified bytes at the beginning of the string.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSuffix(com.google.protobuf.ByteString value) Suffix specifies that this field must have the specified bytes at the end of the string.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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.Builder<Validate.BytesRules.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.BytesRules.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.BytesRules.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.BytesRules.Builder>
-
setField
public Validate.BytesRules.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.BytesRules.Builder>
-
clearField
public Validate.BytesRules.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.BytesRules.Builder>
-
clearOneof
public Validate.BytesRules.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.BytesRules.Builder>
-
setRepeatedField
public Validate.BytesRules.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.BytesRules.Builder>
-
addRepeatedField
public Validate.BytesRules.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.BytesRules.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Validate.BytesRules.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.BytesRules.Builder>
-
mergeFrom
public Validate.BytesRules.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Validate.BytesRules.Builder>- Throws:
IOException
-
getWellKnownCase
- Specified by:
getWellKnownCasein interfaceValidate.BytesRulesOrBuilder
-
clearWellKnown
-
hasConst
public boolean hasConst()Const specifies that this field must be exactly the specified value
optional bytes const = 1;- Specified by:
hasConstin 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:
getConstin interfaceValidate.BytesRulesOrBuilder- Returns:
- The const.
-
setConst
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
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:
hasLenin 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:
getLenin interfaceValidate.BytesRulesOrBuilder- Returns:
- The len.
-
setLen
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
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:
hasMinLenin 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:
getMinLenin interfaceValidate.BytesRulesOrBuilder- Returns:
- The minLen.
-
setMinLen
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
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:
hasMaxLenin 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:
getMaxLenin interfaceValidate.BytesRulesOrBuilder- Returns:
- The maxLen.
-
setMaxLen
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
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:
hasPatternin interfaceValidate.BytesRulesOrBuilder- Returns:
- Whether the pattern field is set.
-
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- 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:
getPatternBytesin interfaceValidate.BytesRulesOrBuilder- Returns:
- The bytes for pattern.
-
setPattern
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
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
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:
hasPrefixin 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:
getPrefixin interfaceValidate.BytesRulesOrBuilder- Returns:
- The prefix.
-
setPrefix
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
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:
hasSuffixin 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:
getSuffixin interfaceValidate.BytesRulesOrBuilder- Returns:
- The suffix.
-
setSuffix
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
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:
hasContainsin 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:
getContainsin interfaceValidate.BytesRulesOrBuilder- Returns:
- The contains.
-
setContains
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
Contains specifies that this field must have the specified bytes anywhere in the string.
optional bytes contains = 7;- Returns:
- This builder for chaining.
-
getInList
In specifies that this field must be equal to one of the specified values
repeated bytes in = 8;- Specified by:
getInListin 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:
getInCountin 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:
getInin interfaceValidate.BytesRulesOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The in at the given index.
-
setIn
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
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(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
In specifies that this field must be equal to one of the specified values
repeated bytes in = 8;- Returns:
- This builder for chaining.
-
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- 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:
getNotInCountin 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:
getNotInin interfaceValidate.BytesRulesOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The notIn at the given index.
-
setNotIn
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
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(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
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:
hasIpin 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:
getIpin interfaceValidate.BytesRulesOrBuilder- Returns:
- The ip.
-
setIp
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
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:
hasIpv4in 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:
getIpv4in interfaceValidate.BytesRulesOrBuilder- Returns:
- The ipv4.
-
setIpv4
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
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:
hasIpv6in 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:
getIpv6in interfaceValidate.BytesRulesOrBuilder- Returns:
- The ipv6.
-
setIpv6
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
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:
hasIgnoreEmptyin 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:
getIgnoreEmptyin interfaceValidate.BytesRulesOrBuilder- Returns:
- The ignoreEmpty.
-
setIgnoreEmpty
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
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.
-
setUnknownFields
public final Validate.BytesRules.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.BytesRules.Builder>
-
mergeUnknownFields
public final Validate.BytesRules.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Validate.BytesRules.Builder>
-