Package dev.cerbos.api.v1.policy
Enum PolicyOuterClass.TestResults.Result
- java.lang.Object
-
- java.lang.Enum<PolicyOuterClass.TestResults.Result>
-
- dev.cerbos.api.v1.policy.PolicyOuterClass.TestResults.Result
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,java.io.Serializable,java.lang.Comparable<PolicyOuterClass.TestResults.Result>
- Enclosing class:
- PolicyOuterClass.TestResults
public static enum PolicyOuterClass.TestResults.Result extends java.lang.Enum<PolicyOuterClass.TestResults.Result> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enumcerbos.policy.v1.TestResults.Result
-
-
Enum Constant Summary
Enum Constants Enum Constant Description RESULT_ERROREDRESULT_ERRORED = 4;RESULT_FAILEDRESULT_FAILED = 3;RESULT_PASSEDRESULT_PASSED = 2;RESULT_SKIPPEDRESULT_SKIPPED = 1;RESULT_UNSPECIFIEDRESULT_UNSPECIFIED = 0;UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intRESULT_ERRORED_VALUERESULT_ERRORED = 4;static intRESULT_FAILED_VALUERESULT_FAILED = 3;static intRESULT_PASSED_VALUERESULT_PASSED = 2;static intRESULT_SKIPPED_VALUERESULT_SKIPPED = 1;static intRESULT_UNSPECIFIED_VALUERESULT_UNSPECIFIED = 0;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static PolicyOuterClass.TestResults.ResultforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<PolicyOuterClass.TestResults.Result>internalGetValueMap()static PolicyOuterClass.TestResults.ResultvalueOf(int value)Deprecated.static PolicyOuterClass.TestResults.ResultvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static PolicyOuterClass.TestResults.ResultvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static PolicyOuterClass.TestResults.Result[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RESULT_UNSPECIFIED
public static final PolicyOuterClass.TestResults.Result RESULT_UNSPECIFIED
RESULT_UNSPECIFIED = 0;
-
RESULT_SKIPPED
public static final PolicyOuterClass.TestResults.Result RESULT_SKIPPED
RESULT_SKIPPED = 1;
-
RESULT_PASSED
public static final PolicyOuterClass.TestResults.Result RESULT_PASSED
RESULT_PASSED = 2;
-
RESULT_FAILED
public static final PolicyOuterClass.TestResults.Result RESULT_FAILED
RESULT_FAILED = 3;
-
RESULT_ERRORED
public static final PolicyOuterClass.TestResults.Result RESULT_ERRORED
RESULT_ERRORED = 4;
-
UNRECOGNIZED
public static final PolicyOuterClass.TestResults.Result UNRECOGNIZED
-
-
Field Detail
-
RESULT_UNSPECIFIED_VALUE
public static final int RESULT_UNSPECIFIED_VALUE
RESULT_UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
RESULT_SKIPPED_VALUE
public static final int RESULT_SKIPPED_VALUE
RESULT_SKIPPED = 1;- See Also:
- Constant Field Values
-
RESULT_PASSED_VALUE
public static final int RESULT_PASSED_VALUE
RESULT_PASSED = 2;- See Also:
- Constant Field Values
-
RESULT_FAILED_VALUE
public static final int RESULT_FAILED_VALUE
RESULT_FAILED = 3;- See Also:
- Constant Field Values
-
RESULT_ERRORED_VALUE
public static final int RESULT_ERRORED_VALUE
RESULT_ERRORED = 4;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static PolicyOuterClass.TestResults.Result[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PolicyOuterClass.TestResults.Result c : PolicyOuterClass.TestResults.Result.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PolicyOuterClass.TestResults.Result valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static PolicyOuterClass.TestResults.Result valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
forNumber
public static PolicyOuterClass.TestResults.Result forNumber(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<PolicyOuterClass.TestResults.Result> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static PolicyOuterClass.TestResults.Result valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-