Package dev.cel.expr
Interface ExprOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Expr
,Expr.Builder
public interface ExprOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Expr.Call
getCallExpr()
A call expression, including calls to predefined functions and operators.Expr.CallOrBuilder
getCallExprOrBuilder()
A call expression, including calls to predefined functions and operators.Expr.Comprehension
getComprehensionExpr()
A comprehension expression.Expr.ComprehensionOrBuilder
getComprehensionExprOrBuilder()
A comprehension expression.Constant
getConstExpr()
A constant expression.ConstantOrBuilder
getConstExprOrBuilder()
A constant expression.Expr.ExprKindCase
getExprKindCase()
long
getId()
Required.Expr.Ident
getIdentExpr()
An identifier expression.Expr.IdentOrBuilder
getIdentExprOrBuilder()
An identifier expression.Expr.CreateList
getListExpr()
A list creation expression.Expr.CreateListOrBuilder
getListExprOrBuilder()
A list creation expression.Expr.Select
getSelectExpr()
A field selection expression, e.g.Expr.SelectOrBuilder
getSelectExprOrBuilder()
A field selection expression, e.g.Expr.CreateStruct
getStructExpr()
A map or message creation expression.Expr.CreateStructOrBuilder
getStructExprOrBuilder()
A map or message creation expression.boolean
hasCallExpr()
A call expression, including calls to predefined functions and operators.boolean
hasComprehensionExpr()
A comprehension expression.boolean
hasConstExpr()
A constant expression.boolean
hasIdentExpr()
An identifier expression.boolean
hasListExpr()
A list creation expression.boolean
hasSelectExpr()
A field selection expression, e.g.boolean
hasStructExpr()
A map or message creation expression.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getId
long getId()
Required. An id assigned to this node by the parser which is unique in a given expression tree. This is used to associate type information and other attributes to a node in the parse tree.
int64 id = 2;
- Returns:
- The id.
-
hasConstExpr
boolean hasConstExpr()
A constant expression.
.cel.expr.Constant const_expr = 3;
- Returns:
- Whether the constExpr field is set.
-
getConstExpr
Constant getConstExpr()
A constant expression.
.cel.expr.Constant const_expr = 3;
- Returns:
- The constExpr.
-
getConstExprOrBuilder
ConstantOrBuilder getConstExprOrBuilder()
A constant expression.
.cel.expr.Constant const_expr = 3;
-
hasIdentExpr
boolean hasIdentExpr()
An identifier expression.
.cel.expr.Expr.Ident ident_expr = 4;
- Returns:
- Whether the identExpr field is set.
-
getIdentExpr
Expr.Ident getIdentExpr()
An identifier expression.
.cel.expr.Expr.Ident ident_expr = 4;
- Returns:
- The identExpr.
-
getIdentExprOrBuilder
Expr.IdentOrBuilder getIdentExprOrBuilder()
An identifier expression.
.cel.expr.Expr.Ident ident_expr = 4;
-
hasSelectExpr
boolean hasSelectExpr()
A field selection expression, e.g. `request.auth`.
.cel.expr.Expr.Select select_expr = 5;
- Returns:
- Whether the selectExpr field is set.
-
getSelectExpr
Expr.Select getSelectExpr()
A field selection expression, e.g. `request.auth`.
.cel.expr.Expr.Select select_expr = 5;
- Returns:
- The selectExpr.
-
getSelectExprOrBuilder
Expr.SelectOrBuilder getSelectExprOrBuilder()
A field selection expression, e.g. `request.auth`.
.cel.expr.Expr.Select select_expr = 5;
-
hasCallExpr
boolean hasCallExpr()
A call expression, including calls to predefined functions and operators.
.cel.expr.Expr.Call call_expr = 6;
- Returns:
- Whether the callExpr field is set.
-
getCallExpr
Expr.Call getCallExpr()
A call expression, including calls to predefined functions and operators.
.cel.expr.Expr.Call call_expr = 6;
- Returns:
- The callExpr.
-
getCallExprOrBuilder
Expr.CallOrBuilder getCallExprOrBuilder()
A call expression, including calls to predefined functions and operators.
.cel.expr.Expr.Call call_expr = 6;
-
hasListExpr
boolean hasListExpr()
A list creation expression.
.cel.expr.Expr.CreateList list_expr = 7;
- Returns:
- Whether the listExpr field is set.
-
getListExpr
Expr.CreateList getListExpr()
A list creation expression.
.cel.expr.Expr.CreateList list_expr = 7;
- Returns:
- The listExpr.
-
getListExprOrBuilder
Expr.CreateListOrBuilder getListExprOrBuilder()
A list creation expression.
.cel.expr.Expr.CreateList list_expr = 7;
-
hasStructExpr
boolean hasStructExpr()
A map or message creation expression.
.cel.expr.Expr.CreateStruct struct_expr = 8;
- Returns:
- Whether the structExpr field is set.
-
getStructExpr
Expr.CreateStruct getStructExpr()
A map or message creation expression.
.cel.expr.Expr.CreateStruct struct_expr = 8;
- Returns:
- The structExpr.
-
getStructExprOrBuilder
Expr.CreateStructOrBuilder getStructExprOrBuilder()
A map or message creation expression.
.cel.expr.Expr.CreateStruct struct_expr = 8;
-
hasComprehensionExpr
boolean hasComprehensionExpr()
A comprehension expression.
.cel.expr.Expr.Comprehension comprehension_expr = 9;
- Returns:
- Whether the comprehensionExpr field is set.
-
getComprehensionExpr
Expr.Comprehension getComprehensionExpr()
A comprehension expression.
.cel.expr.Expr.Comprehension comprehension_expr = 9;
- Returns:
- The comprehensionExpr.
-
getComprehensionExprOrBuilder
Expr.ComprehensionOrBuilder getComprehensionExprOrBuilder()
A comprehension expression.
.cel.expr.Expr.Comprehension comprehension_expr = 9;
-
getExprKindCase
Expr.ExprKindCase getExprKindCase()
-
-