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` values
Protobuf type validate.BytesRules
| Modifier and Type | Method and Description |
|---|---|
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
|
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
|
Validate.BytesRules.Builder |
addIn(com.google.protobuf.ByteString value)
In specifies that this field must be equal to one of the specified
values
|
Validate.BytesRules.Builder |
addNotIn(com.google.protobuf.ByteString value)
NotIn specifies that this field cannot be equal to one of the specified
values
|
Validate.BytesRules.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Validate.BytesRules |
build() |
Validate.BytesRules |
buildPartial() |
Validate.BytesRules.Builder |
clear() |
Validate.BytesRules.Builder |
clearConst()
Const specifies that this field must be exactly the specified value
|
Validate.BytesRules.Builder |
clearContains()
Contains specifies that this field must have the specified bytes
anywhere in the string.
|
Validate.BytesRules.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Validate.BytesRules.Builder |
clearIn()
In specifies that this field must be equal to one of the specified
values
|
Validate.BytesRules.Builder |
clearIp()
Ip specifies that the field must be a valid IP (v4 or v6) address in
byte format
|
Validate.BytesRules.Builder |
clearIpv4()
Ipv4 specifies that the field must be a valid IPv4 address in byte
format
|
Validate.BytesRules.Builder |
clearIpv6()
Ipv6 specifies that the field must be a valid IPv6 address in byte
format
|
Validate.BytesRules.Builder |
clearMaxLen()
MaxLen specifies that this field must be the specified number of bytes
at a maximum
|
Validate.BytesRules.Builder |
clearMinLen()
MinLen specifies that this field must be the specified number of bytes
at a minimum
|
Validate.BytesRules.Builder |
clearNotIn()
NotIn specifies that this field cannot be equal to one of the specified
values
|
Validate.BytesRules.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Validate.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() |
Validate.BytesRules.Builder |
clone() |
com.google.protobuf.ByteString |
getConst()
Const specifies that this field must be exactly the specified value
|
com.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() |
com.google.protobuf.ByteString |
getIn(int index)
In specifies that this field must be equal to one of the specified
values
|
int |
getInCount()
In specifies that this field must be equal to one of the specified
values
|
List<com.google.protobuf.ByteString> |
getInList()
In specifies that this field must be equal to one of the specified
values
|
boolean |
getIp()
Ip specifies that the field must be a valid IP (v4 or v6) address in
byte format
|
boolean |
getIpv4()
Ipv4 specifies that the field must be a valid IPv4 address in byte
format
|
boolean |
getIpv6()
Ipv6 specifies that the field must be a valid IPv6 address in byte
format
|
long |
getMaxLen()
MaxLen specifies that this field must be the specified number of bytes
at a maximum
|
long |
getMinLen()
MinLen specifies that this field must be the specified number of bytes
at a minimum
|
com.google.protobuf.ByteString |
getNotIn(int index)
NotIn specifies that this field cannot be equal to one of the specified
values
|
int |
getNotInCount()
NotIn specifies that this field cannot be equal to one of the specified
values
|
List<com.google.protobuf.ByteString> |
getNotInList()
NotIn specifies that this field cannot be equal to one of the specified
values
|
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 value
|
boolean |
hasContains()
Contains specifies that this field must have the specified bytes
anywhere in the string.
|
boolean |
hasIp()
Ip specifies that the field must be a valid IP (v4 or v6) address in
byte format
|
boolean |
hasIpv4()
Ipv4 specifies that the field must be a valid IPv4 address in byte
format
|
boolean |
hasIpv6()
Ipv6 specifies that the field must be a valid IPv6 address in byte
format
|
boolean |
hasMaxLen()
MaxLen specifies that this field must be the specified number of bytes
at a maximum
|
boolean |
hasMinLen()
MinLen specifies that this field must be the specified number of bytes
at a minimum
|
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() |
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 |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Validate.BytesRules.Builder |
setConst(com.google.protobuf.ByteString value)
Const specifies that this field must be exactly the specified value
|
Validate.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 |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
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
|
Validate.BytesRules.Builder |
setIp(boolean value)
Ip specifies that the field must be a valid IP (v4 or v6) address in
byte format
|
Validate.BytesRules.Builder |
setIpv4(boolean value)
Ipv4 specifies that the field must be a valid IPv4 address in byte
format
|
Validate.BytesRules.Builder |
setIpv6(boolean value)
Ipv6 specifies that the field must be a valid IPv6 address in byte
format
|
Validate.BytesRules.Builder |
setMaxLen(long value)
MaxLen specifies that this field must be the specified number of bytes
at a maximum
|
Validate.BytesRules.Builder |
setMinLen(long value)
MinLen specifies that this field must be the specified number of bytes
at a minimum
|
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
|
Validate.BytesRules.Builder |
setPattern(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 |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
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.
|
Validate.BytesRules.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.BytesRules.Builder>public Validate.BytesRules.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.BytesRules.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.BytesRules.Builder>public Validate.BytesRules getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Validate.BytesRules build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Validate.BytesRules buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Validate.BytesRules.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.BytesRules.Builder>public Validate.BytesRules.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.BytesRules.Builder>public Validate.BytesRules.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.BytesRules.Builder>public Validate.BytesRules.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.BytesRules.Builder>public Validate.BytesRules.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.BytesRules.Builder>public Validate.BytesRules.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.BytesRules.Builder>public Validate.BytesRules.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Validate.BytesRules.Builder>public Validate.BytesRules.Builder mergeFrom(Validate.BytesRules other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.BytesRules.Builder>public Validate.BytesRules.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Validate.BytesRules.Builder>IOExceptionpublic Validate.BytesRules.WellKnownCase getWellKnownCase()
getWellKnownCase in interface Validate.BytesRulesOrBuilderpublic Validate.BytesRules.Builder clearWellKnown()
public 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 Validate.BytesRules.Builder setConst(com.google.protobuf.ByteString value)
Const specifies that this field must be exactly the specified value
optional bytes const = 1;public Validate.BytesRules.Builder clearConst()
Const specifies that this field must be exactly the specified value
optional bytes const = 1;public 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 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;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;public 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 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;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;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;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 Validate.BytesRules.Builder setPattern(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;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;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;public 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 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;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;public 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 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;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;public 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 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;public Validate.BytesRules.Builder clearContains()
Contains specifies that this field must have the specified bytes anywhere in the string.
optional bytes contains = 7;public 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 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;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;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;public Validate.BytesRules.Builder clearIn()
In specifies that this field must be equal to one of the specified values
repeated bytes in = 8;public 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 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;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;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;public Validate.BytesRules.Builder clearNotIn()
NotIn specifies that this field cannot be equal to one of the specified values
repeated bytes not_in = 9;public 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 Validate.BytesRules.Builder setIp(boolean value)
Ip specifies that the field must be a valid IP (v4 or v6) address in byte format
optional bool ip = 10;public Validate.BytesRules.Builder clearIp()
Ip specifies that the field must be a valid IP (v4 or v6) address in byte format
optional bool ip = 10;public 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 Validate.BytesRules.Builder setIpv4(boolean value)
Ipv4 specifies that the field must be a valid IPv4 address in byte format
optional bool ipv4 = 11;public Validate.BytesRules.Builder clearIpv4()
Ipv4 specifies that the field must be a valid IPv4 address in byte format
optional bool ipv4 = 11;public 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 Validate.BytesRules.Builder setIpv6(boolean value)
Ipv6 specifies that the field must be a valid IPv6 address in byte format
optional bool ipv6 = 12;public Validate.BytesRules.Builder clearIpv6()
Ipv6 specifies that the field must be a valid IPv6 address in byte format
optional bool ipv6 = 12;public final Validate.BytesRules.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.BytesRules.Builder>public final Validate.BytesRules.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Validate.BytesRules.Builder>Copyright © 2019 WSO2. All rights reserved.