Package io.envoyproxy.pgv.validate
Interface Validate.EnumRulesOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Validate.EnumRules
,Validate.EnumRules.Builder
- Enclosing class:
- Validate
public static interface Validate.EnumRulesOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionint
getConst()
Const specifies that this field must be exactly the specified valueboolean
DefinedOnly specifies that this field must be only one of the defined values for this enum, failing on any undefined value.int
getIn
(int index) In specifies that this field must be equal to one of the specified valuesint
In specifies that this field must be equal to one of the specified valuesIn specifies that this field must be equal to one of the specified valuesint
getNotIn
(int index) NotIn specifies that this field cannot be equal to one of the specified valuesint
NotIn specifies that this field cannot be equal to one of the specified valuesNotIn specifies that this field cannot be equal to one of the specified valuesboolean
hasConst()
Const specifies that this field must be exactly the specified valueboolean
DefinedOnly specifies that this field must be only one of the defined values for this enum, failing on any undefined value.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasConst
boolean hasConst()Const specifies that this field must be exactly the specified value
optional int32 const = 1;
- Returns:
- Whether the const field is set.
-
getConst
int getConst()Const specifies that this field must be exactly the specified value
optional int32 const = 1;
- Returns:
- The const.
-
hasDefinedOnly
boolean hasDefinedOnly()DefinedOnly specifies that this field must be only one of the defined values for this enum, failing on any undefined value.
optional bool defined_only = 2;
- Returns:
- Whether the definedOnly field is set.
-
getDefinedOnly
boolean getDefinedOnly()DefinedOnly specifies that this field must be only one of the defined values for this enum, failing on any undefined value.
optional bool defined_only = 2;
- Returns:
- The definedOnly.
-
getInList
In specifies that this field must be equal to one of the specified values
repeated int32 in = 3;
- Returns:
- A list containing the in.
-
getInCount
int getInCount()In specifies that this field must be equal to one of the specified values
repeated int32 in = 3;
- Returns:
- The count of in.
-
getIn
int getIn(int index) In specifies that this field must be equal to one of the specified values
repeated int32 in = 3;
- Parameters:
index
- The index of the element to return.- Returns:
- The in at the given index.
-
getNotInList
NotIn specifies that this field cannot be equal to one of the specified values
repeated int32 not_in = 4;
- Returns:
- A list containing the notIn.
-
getNotInCount
int getNotInCount()NotIn specifies that this field cannot be equal to one of the specified values
repeated int32 not_in = 4;
- Returns:
- The count of notIn.
-
getNotIn
int getNotIn(int index) NotIn specifies that this field cannot be equal to one of the specified values
repeated int32 not_in = 4;
- Parameters:
index
- The index of the element to return.- Returns:
- The notIn at the given index.
-