Package dev.cel.expr.conformance.test
Interface SimpleTestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SimpleTest,SimpleTest.Builder
public interface SimpleTestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsBindings(String key) Variable bindings to use for the eval phase.Matches one of several error results.Matches one of several error results.Matches one of several unknown results.Matches one of several unknown results.Deprecated.intVariable bindings to use for the eval phase.Variable bindings to use for the eval phase.getBindingsOrDefault(String key, ExprValue defaultValue) Variable bindings to use for the eval phase.getBindingsOrThrow(String key) Variable bindings to use for the eval phase.booleanDisables the evaluate phase.The container for name resolution.com.google.protobuf.ByteStringThe container for name resolution.A description of the test.com.google.protobuf.ByteStringA description of the test.booleanDisables the check phase.booleanDisables all macro expansion in parsing.Matches error evaluation results.Matches error evaluation results.getExpr()Required.com.google.protobuf.ByteStringRequired.The locale to use for the evaluation phase.com.google.protobuf.ByteStringThe locale to use for the evaluation phase.getName()Required.com.google.protobuf.ByteStringRequired.A result and deduced expression type.A result and deduced expression type.getTypeEnv(int index) The type environment to use for the check phase.intThe type environment to use for the check phase.The type environment to use for the check phase.getTypeEnvOrBuilder(int index) The type environment to use for the check phase.List<? extends DeclOrBuilder>The type environment to use for the check phase.Matches unknown evaluation results.Matches unknown evaluation results.getValue()A normal value, which must match the evaluation result exactly via value equality semantics.A normal value, which must match the evaluation result exactly via value equality semantics.booleanMatches one of several error results.booleanMatches one of several unknown results.booleanMatches error evaluation results.booleanA result and deduced expression type.booleanMatches unknown evaluation results.booleanhasValue()A normal value, which must match the evaluation result exactly via value equality semantics.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
String getName()Required. The name of the test, which should be unique in the test file.
string name = 1;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()Required. The name of the test, which should be unique in the test file.
string name = 1;- Returns:
- The bytes for name.
-
getDescription
String getDescription()A description of the test.
string description = 2;- Returns:
- The description.
-
getDescriptionBytes
com.google.protobuf.ByteString getDescriptionBytes()A description of the test.
string description = 2;- Returns:
- The bytes for description.
-
getExpr
String getExpr()Required. The text of the CEL expression.
string expr = 3;- Returns:
- The expr.
-
getExprBytes
com.google.protobuf.ByteString getExprBytes()Required. The text of the CEL expression.
string expr = 3;- Returns:
- The bytes for expr.
-
getDisableMacros
boolean getDisableMacros()Disables all macro expansion in parsing.
bool disable_macros = 4;- Returns:
- The disableMacros.
-
getDisableCheck
boolean getDisableCheck()Disables the check phase.
bool disable_check = 5;- Returns:
- The disableCheck.
-
getCheckOnly
boolean getCheckOnly()Disables the evaluate phase.
bool check_only = 15;- Returns:
- The checkOnly.
-
getTypeEnvList
The type environment to use for the check phase.
repeated .cel.expr.Decl type_env = 6; -
getTypeEnv
The type environment to use for the check phase.
repeated .cel.expr.Decl type_env = 6; -
getTypeEnvCount
int getTypeEnvCount()The type environment to use for the check phase.
repeated .cel.expr.Decl type_env = 6; -
getTypeEnvOrBuilderList
List<? extends DeclOrBuilder> getTypeEnvOrBuilderList()The type environment to use for the check phase.
repeated .cel.expr.Decl type_env = 6; -
getTypeEnvOrBuilder
The type environment to use for the check phase.
repeated .cel.expr.Decl type_env = 6; -
getContainer
String getContainer()The container for name resolution.
string container = 13;- Returns:
- The container.
-
getContainerBytes
com.google.protobuf.ByteString getContainerBytes()The container for name resolution.
string container = 13;- Returns:
- The bytes for container.
-
getLocale
String getLocale()The locale to use for the evaluation phase.
string locale = 14;- Returns:
- The locale.
-
getLocaleBytes
com.google.protobuf.ByteString getLocaleBytes()The locale to use for the evaluation phase.
string locale = 14;- Returns:
- The bytes for locale.
-
getBindingsCount
int getBindingsCount()Variable bindings to use for the eval phase.
map<string, .cel.expr.ExprValue> bindings = 7; -
containsBindings
Variable bindings to use for the eval phase.
map<string, .cel.expr.ExprValue> bindings = 7; -
getBindings
Deprecated.UsegetBindingsMap()instead. -
getBindingsMap
Variable bindings to use for the eval phase.
map<string, .cel.expr.ExprValue> bindings = 7; -
getBindingsOrDefault
Variable bindings to use for the eval phase.
map<string, .cel.expr.ExprValue> bindings = 7; -
getBindingsOrThrow
Variable bindings to use for the eval phase.
map<string, .cel.expr.ExprValue> bindings = 7; -
hasValue
boolean hasValue()A normal value, which must match the evaluation result exactly via value equality semantics. This coincides with proto equality, except for: * maps are order-agnostic. * a floating point NaN should match any NaN.
.cel.expr.Value value = 8;- Returns:
- Whether the value field is set.
-
getValue
Value getValue()A normal value, which must match the evaluation result exactly via value equality semantics. This coincides with proto equality, except for: * maps are order-agnostic. * a floating point NaN should match any NaN.
.cel.expr.Value value = 8;- Returns:
- The value.
-
getValueOrBuilder
ValueOrBuilder getValueOrBuilder()A normal value, which must match the evaluation result exactly via value equality semantics. This coincides with proto equality, except for: * maps are order-agnostic. * a floating point NaN should match any NaN.
.cel.expr.Value value = 8; -
hasTypedResult
boolean hasTypedResult()A result and deduced expression type.
.cel.expr.conformance.test.TypedResult typed_result = 16;- Returns:
- Whether the typedResult field is set.
-
getTypedResult
TypedResult getTypedResult()A result and deduced expression type.
.cel.expr.conformance.test.TypedResult typed_result = 16;- Returns:
- The typedResult.
-
getTypedResultOrBuilder
TypedResultOrBuilder getTypedResultOrBuilder()A result and deduced expression type.
.cel.expr.conformance.test.TypedResult typed_result = 16; -
hasEvalError
boolean hasEvalError()Matches error evaluation results.
.cel.expr.ErrorSet eval_error = 9;- Returns:
- Whether the evalError field is set.
-
getEvalError
ErrorSet getEvalError()Matches error evaluation results.
.cel.expr.ErrorSet eval_error = 9;- Returns:
- The evalError.
-
getEvalErrorOrBuilder
ErrorSetOrBuilder getEvalErrorOrBuilder()Matches error evaluation results.
.cel.expr.ErrorSet eval_error = 9; -
hasAnyEvalErrors
boolean hasAnyEvalErrors()Matches one of several error results. (Using explicit message since oneof can't handle repeated.)
.cel.expr.conformance.test.ErrorSetMatcher any_eval_errors = 10;- Returns:
- Whether the anyEvalErrors field is set.
-
getAnyEvalErrors
ErrorSetMatcher getAnyEvalErrors()Matches one of several error results. (Using explicit message since oneof can't handle repeated.)
.cel.expr.conformance.test.ErrorSetMatcher any_eval_errors = 10;- Returns:
- The anyEvalErrors.
-
getAnyEvalErrorsOrBuilder
ErrorSetMatcherOrBuilder getAnyEvalErrorsOrBuilder()Matches one of several error results. (Using explicit message since oneof can't handle repeated.)
.cel.expr.conformance.test.ErrorSetMatcher any_eval_errors = 10; -
hasUnknown
boolean hasUnknown()Matches unknown evaluation results.
.cel.expr.UnknownSet unknown = 11;- Returns:
- Whether the unknown field is set.
-
getUnknown
UnknownSet getUnknown()Matches unknown evaluation results.
.cel.expr.UnknownSet unknown = 11;- Returns:
- The unknown.
-
getUnknownOrBuilder
UnknownSetOrBuilder getUnknownOrBuilder()Matches unknown evaluation results.
.cel.expr.UnknownSet unknown = 11; -
hasAnyUnknowns
boolean hasAnyUnknowns()Matches one of several unknown results. (Using explicit message since oneof can't handle repeated.)
.cel.expr.conformance.test.UnknownSetMatcher any_unknowns = 12;- Returns:
- Whether the anyUnknowns field is set.
-
getAnyUnknowns
UnknownSetMatcher getAnyUnknowns()Matches one of several unknown results. (Using explicit message since oneof can't handle repeated.)
.cel.expr.conformance.test.UnknownSetMatcher any_unknowns = 12;- Returns:
- The anyUnknowns.
-
getAnyUnknownsOrBuilder
UnknownSetMatcherOrBuilder getAnyUnknownsOrBuilder()Matches one of several unknown results. (Using explicit message since oneof can't handle repeated.)
.cel.expr.conformance.test.UnknownSetMatcher any_unknowns = 12; -
getResultMatcherCase
SimpleTest.ResultMatcherCase getResultMatcherCase()
-