Package dev.cel.expr
Interface CheckedExprOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
CheckedExpr
,CheckedExpr.Builder
public interface CheckedExprOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
containsReferenceMap(long key)
A map from expression ids to resolved references.boolean
containsTypeMap(long key)
A map from expression ids to types.Expr
getExpr()
The checked expression.ExprOrBuilder
getExprOrBuilder()
The checked expression.java.lang.String
getExprVersion()
The expr version indicates the major / minor version number of the `expr` representation.com.google.protobuf.ByteString
getExprVersionBytes()
The expr version indicates the major / minor version number of the `expr` representation.java.util.Map<java.lang.Long,Reference>
getReferenceMap()
Deprecated.int
getReferenceMapCount()
A map from expression ids to resolved references.java.util.Map<java.lang.Long,Reference>
getReferenceMapMap()
A map from expression ids to resolved references.Reference
getReferenceMapOrDefault(long key, Reference defaultValue)
A map from expression ids to resolved references.Reference
getReferenceMapOrThrow(long key)
A map from expression ids to resolved references.SourceInfo
getSourceInfo()
The source info derived from input that generated the parsed `expr` and any optimizations made during the type-checking pass.SourceInfoOrBuilder
getSourceInfoOrBuilder()
The source info derived from input that generated the parsed `expr` and any optimizations made during the type-checking pass.java.util.Map<java.lang.Long,Type>
getTypeMap()
Deprecated.int
getTypeMapCount()
A map from expression ids to types.java.util.Map<java.lang.Long,Type>
getTypeMapMap()
A map from expression ids to types.Type
getTypeMapOrDefault(long key, Type defaultValue)
A map from expression ids to types.Type
getTypeMapOrThrow(long key)
A map from expression ids to types.boolean
hasExpr()
The checked expression.boolean
hasSourceInfo()
The source info derived from input that generated the parsed `expr` and any optimizations made during the type-checking pass.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getReferenceMapCount
int getReferenceMapCount()
A map from expression ids to resolved references. The following entries are in this table: - An Ident or Select expression is represented here if it resolves to a declaration. For instance, if `a.b.c` is represented by `select(select(id(a), b), c)`, and `a.b` resolves to a declaration, while `c` is a field selection, then the reference is attached to the nested select expression (but not to the id or or the outer select). In turn, if `a` resolves to a declaration and `b.c` are field selections, the reference is attached to the ident expression. - Every Call expression has an entry here, identifying the function being called. - Every CreateStruct expression for a message has an entry, identifying the message.
map<int64, .cel.expr.Reference> reference_map = 2;
-
containsReferenceMap
boolean containsReferenceMap(long key)
A map from expression ids to resolved references. The following entries are in this table: - An Ident or Select expression is represented here if it resolves to a declaration. For instance, if `a.b.c` is represented by `select(select(id(a), b), c)`, and `a.b` resolves to a declaration, while `c` is a field selection, then the reference is attached to the nested select expression (but not to the id or or the outer select). In turn, if `a` resolves to a declaration and `b.c` are field selections, the reference is attached to the ident expression. - Every Call expression has an entry here, identifying the function being called. - Every CreateStruct expression for a message has an entry, identifying the message.
map<int64, .cel.expr.Reference> reference_map = 2;
-
getReferenceMap
@Deprecated java.util.Map<java.lang.Long,Reference> getReferenceMap()
Deprecated.UsegetReferenceMapMap()
instead.
-
getReferenceMapMap
java.util.Map<java.lang.Long,Reference> getReferenceMapMap()
A map from expression ids to resolved references. The following entries are in this table: - An Ident or Select expression is represented here if it resolves to a declaration. For instance, if `a.b.c` is represented by `select(select(id(a), b), c)`, and `a.b` resolves to a declaration, while `c` is a field selection, then the reference is attached to the nested select expression (but not to the id or or the outer select). In turn, if `a` resolves to a declaration and `b.c` are field selections, the reference is attached to the ident expression. - Every Call expression has an entry here, identifying the function being called. - Every CreateStruct expression for a message has an entry, identifying the message.
map<int64, .cel.expr.Reference> reference_map = 2;
-
getReferenceMapOrDefault
Reference getReferenceMapOrDefault(long key, Reference defaultValue)
A map from expression ids to resolved references. The following entries are in this table: - An Ident or Select expression is represented here if it resolves to a declaration. For instance, if `a.b.c` is represented by `select(select(id(a), b), c)`, and `a.b` resolves to a declaration, while `c` is a field selection, then the reference is attached to the nested select expression (but not to the id or or the outer select). In turn, if `a` resolves to a declaration and `b.c` are field selections, the reference is attached to the ident expression. - Every Call expression has an entry here, identifying the function being called. - Every CreateStruct expression for a message has an entry, identifying the message.
map<int64, .cel.expr.Reference> reference_map = 2;
-
getReferenceMapOrThrow
Reference getReferenceMapOrThrow(long key)
A map from expression ids to resolved references. The following entries are in this table: - An Ident or Select expression is represented here if it resolves to a declaration. For instance, if `a.b.c` is represented by `select(select(id(a), b), c)`, and `a.b` resolves to a declaration, while `c` is a field selection, then the reference is attached to the nested select expression (but not to the id or or the outer select). In turn, if `a` resolves to a declaration and `b.c` are field selections, the reference is attached to the ident expression. - Every Call expression has an entry here, identifying the function being called. - Every CreateStruct expression for a message has an entry, identifying the message.
map<int64, .cel.expr.Reference> reference_map = 2;
-
getTypeMapCount
int getTypeMapCount()
A map from expression ids to types. Every expression node which has a type different than DYN has a mapping here. If an expression has type DYN, it is omitted from this map to save space.
map<int64, .cel.expr.Type> type_map = 3;
-
containsTypeMap
boolean containsTypeMap(long key)
A map from expression ids to types. Every expression node which has a type different than DYN has a mapping here. If an expression has type DYN, it is omitted from this map to save space.
map<int64, .cel.expr.Type> type_map = 3;
-
getTypeMap
@Deprecated java.util.Map<java.lang.Long,Type> getTypeMap()
Deprecated.UsegetTypeMapMap()
instead.
-
getTypeMapMap
java.util.Map<java.lang.Long,Type> getTypeMapMap()
A map from expression ids to types. Every expression node which has a type different than DYN has a mapping here. If an expression has type DYN, it is omitted from this map to save space.
map<int64, .cel.expr.Type> type_map = 3;
-
getTypeMapOrDefault
Type getTypeMapOrDefault(long key, Type defaultValue)
A map from expression ids to types. Every expression node which has a type different than DYN has a mapping here. If an expression has type DYN, it is omitted from this map to save space.
map<int64, .cel.expr.Type> type_map = 3;
-
getTypeMapOrThrow
Type getTypeMapOrThrow(long key)
A map from expression ids to types. Every expression node which has a type different than DYN has a mapping here. If an expression has type DYN, it is omitted from this map to save space.
map<int64, .cel.expr.Type> type_map = 3;
-
hasSourceInfo
boolean hasSourceInfo()
The source info derived from input that generated the parsed `expr` and any optimizations made during the type-checking pass.
.cel.expr.SourceInfo source_info = 5;
- Returns:
- Whether the sourceInfo field is set.
-
getSourceInfo
SourceInfo getSourceInfo()
The source info derived from input that generated the parsed `expr` and any optimizations made during the type-checking pass.
.cel.expr.SourceInfo source_info = 5;
- Returns:
- The sourceInfo.
-
getSourceInfoOrBuilder
SourceInfoOrBuilder getSourceInfoOrBuilder()
The source info derived from input that generated the parsed `expr` and any optimizations made during the type-checking pass.
.cel.expr.SourceInfo source_info = 5;
-
getExprVersion
java.lang.String getExprVersion()
The expr version indicates the major / minor version number of the `expr` representation. The most common reason for a version change will be to indicate to the CEL runtimes that transformations have been performed on the expr during static analysis. In some cases, this will save the runtime the work of applying the same or similar transformations prior to evaluation.
string expr_version = 6;
- Returns:
- The exprVersion.
-
getExprVersionBytes
com.google.protobuf.ByteString getExprVersionBytes()
The expr version indicates the major / minor version number of the `expr` representation. The most common reason for a version change will be to indicate to the CEL runtimes that transformations have been performed on the expr during static analysis. In some cases, this will save the runtime the work of applying the same or similar transformations prior to evaluation.
string expr_version = 6;
- Returns:
- The bytes for exprVersion.
-
hasExpr
boolean hasExpr()
The checked expression. Semantically equivalent to the parsed `expr`, but may have structural differences.
.cel.expr.Expr expr = 4;
- Returns:
- Whether the expr field is set.
-
getExpr
Expr getExpr()
The checked expression. Semantically equivalent to the parsed `expr`, but may have structural differences.
.cel.expr.Expr expr = 4;
- Returns:
- The expr.
-
getExprOrBuilder
ExprOrBuilder getExprOrBuilder()
The checked expression. Semantically equivalent to the parsed `expr`, but may have structural differences.
.cel.expr.Expr expr = 4;
-
-