Package io.envoyproxy.pgv.validate
Class Validate.RepeatedRules
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.pgv.validate.Validate.RepeatedRules
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Validate.RepeatedRulesOrBuilder,Serializable
- Enclosing class:
- Validate
public static final class Validate.RepeatedRules
extends com.google.protobuf.GeneratedMessageV3
implements Validate.RepeatedRulesOrBuilder
RepeatedRules describe the constraints applied to `repeated` valuesProtobuf type
validate.RepeatedRules- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepeatedRules describe the constraints applied to `repeated` valuesNested 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, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final com.google.protobuf.Parser<Validate.RepeatedRules>Deprecated.static final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic Validate.RepeatedRulesstatic final com.google.protobuf.Descriptors.DescriptorbooleanIgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptygetItems()Items specifies the contraints to be applied to each item in the field.Items specifies the contraints to be applied to each item in the field.longMaxItems specifies that this field must have the specified number of items at a maximumlongMinItems specifies that this field must have the specified number of items at a minimumcom.google.protobuf.Parser<Validate.RepeatedRules>intbooleanUnique specifies that all elements in this field must be unique.final com.google.protobuf.UnknownFieldSetinthashCode()booleanIgnoreEmpty specifies that the validation rules of this field should be evaluated only if the field is not emptybooleanhasItems()Items specifies the contraints to be applied to each item in the field.booleanMaxItems specifies that this field must have the specified number of items at a maximumbooleanMinItems specifies that this field must have the specified number of items at a minimumbooleanUnique specifies that all elements in this field must be unique.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(Validate.RepeatedRules prototype) protected Validate.RepeatedRules.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static Validate.RepeatedRulesparseDelimitedFrom(InputStream input) static Validate.RepeatedRulesparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Validate.RepeatedRulesparseFrom(byte[] data) static Validate.RepeatedRulesparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Validate.RepeatedRulesparseFrom(com.google.protobuf.ByteString data) static Validate.RepeatedRulesparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Validate.RepeatedRulesparseFrom(com.google.protobuf.CodedInputStream input) static Validate.RepeatedRulesparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Validate.RepeatedRulesparseFrom(InputStream input) static Validate.RepeatedRulesparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Validate.RepeatedRulesparseFrom(ByteBuffer data) static Validate.RepeatedRulesparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Validate.RepeatedRules>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, 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, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
-
Field Details
-
MIN_ITEMS_FIELD_NUMBER
public static final int MIN_ITEMS_FIELD_NUMBER- See Also:
-
MAX_ITEMS_FIELD_NUMBER
public static final int MAX_ITEMS_FIELD_NUMBER- See Also:
-
UNIQUE_FIELD_NUMBER
public static final int UNIQUE_FIELD_NUMBER- See Also:
-
ITEMS_FIELD_NUMBER
public static final int ITEMS_FIELD_NUMBER- See Also:
-
IGNORE_EMPTY_FIELD_NUMBER
public static final int IGNORE_EMPTY_FIELD_NUMBER- See Also:
-
PARSER
Deprecated.
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
hasMinItems
public boolean hasMinItems()MinItems specifies that this field must have the specified number of items at a minimum
optional uint64 min_items = 1;- Specified by:
hasMinItemsin interfaceValidate.RepeatedRulesOrBuilder- Returns:
- Whether the minItems field is set.
-
getMinItems
public long getMinItems()MinItems specifies that this field must have the specified number of items at a minimum
optional uint64 min_items = 1;- Specified by:
getMinItemsin interfaceValidate.RepeatedRulesOrBuilder- Returns:
- The minItems.
-
hasMaxItems
public boolean hasMaxItems()MaxItems specifies that this field must have the specified number of items at a maximum
optional uint64 max_items = 2;- Specified by:
hasMaxItemsin interfaceValidate.RepeatedRulesOrBuilder- Returns:
- Whether the maxItems field is set.
-
getMaxItems
public long getMaxItems()MaxItems specifies that this field must have the specified number of items at a maximum
optional uint64 max_items = 2;- Specified by:
getMaxItemsin interfaceValidate.RepeatedRulesOrBuilder- Returns:
- The maxItems.
-
hasUnique
public boolean hasUnique()Unique specifies that all elements in this field must be unique. This contraint is only applicable to scalar and enum types (messages are not supported).
optional bool unique = 3;- Specified by:
hasUniquein interfaceValidate.RepeatedRulesOrBuilder- Returns:
- Whether the unique field is set.
-
getUnique
public boolean getUnique()Unique specifies that all elements in this field must be unique. This contraint is only applicable to scalar and enum types (messages are not supported).
optional bool unique = 3;- Specified by:
getUniquein interfaceValidate.RepeatedRulesOrBuilder- Returns:
- The unique.
-
hasItems
public boolean hasItems()Items specifies the contraints to be applied to each item in the field. Repeated message fields will still execute validation against each item unless skip is specified here.
optional .validate.FieldRules items = 4;- Specified by:
hasItemsin interfaceValidate.RepeatedRulesOrBuilder- Returns:
- Whether the items field is set.
-
getItems
Items specifies the contraints to be applied to each item in the field. Repeated message fields will still execute validation against each item unless skip is specified here.
optional .validate.FieldRules items = 4;- Specified by:
getItemsin interfaceValidate.RepeatedRulesOrBuilder- Returns:
- The items.
-
getItemsOrBuilder
Items specifies the contraints to be applied to each item in the field. Repeated message fields will still execute validation against each item unless skip is specified here.
optional .validate.FieldRules items = 4;- Specified by:
getItemsOrBuilderin interfaceValidate.RepeatedRulesOrBuilder
-
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 = 5;- Specified by:
hasIgnoreEmptyin interfaceValidate.RepeatedRulesOrBuilder- 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 = 5;- Specified by:
getIgnoreEmptyin interfaceValidate.RepeatedRulesOrBuilder- Returns:
- The ignoreEmpty.
-
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.RepeatedRules parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Validate.RepeatedRules parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Validate.RepeatedRules parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Validate.RepeatedRules 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.RepeatedRules parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Validate.RepeatedRules 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.RepeatedRules parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Validate.RepeatedRules parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Validate.RepeatedRules parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Validate.RepeatedRules 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.RepeatedRules.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
-