CheckedExpr
extends Message
in package
A CEL expression which has been successfully type checked.
Generated from protobuf message google.api.expr.v1alpha1.CheckedExpr
Table of Contents
Properties
- $expr : mixed
- The checked expression. Semantically equivalent to the parsed `expr`, but may have structural differences.
- $expr_version : mixed
- The expr version indicates the major / minor version number of the `expr` representation.
- $source_info : mixed
- The source info derived from input that generated the parsed `expr` and any optimizations made during the type-checking pass.
- $reference_map : mixed
- A map from expression ids to resolved references.
- $type_map : mixed
- A map from expression ids to types.
Methods
- __construct() : mixed
- Constructor.
- clearExpr() : mixed
- clearSourceInfo() : mixed
- getExpr() : Expr|null
- The checked expression. Semantically equivalent to the parsed `expr`, but may have structural differences.
- getExprVersion() : string
- The expr version indicates the major / minor version number of the `expr` representation.
- getReferenceMap() : MapField
- A map from expression ids to resolved references.
- getSourceInfo() : SourceInfo|null
- The source info derived from input that generated the parsed `expr` and any optimizations made during the type-checking pass.
- getTypeMap() : MapField
- A map from expression ids to types.
- hasExpr() : mixed
- hasSourceInfo() : mixed
- setExpr() : $this
- The checked expression. Semantically equivalent to the parsed `expr`, but may have structural differences.
- setExprVersion() : $this
- The expr version indicates the major / minor version number of the `expr` representation.
- setReferenceMap() : $this
- A map from expression ids to resolved references.
- setSourceInfo() : $this
- The source info derived from input that generated the parsed `expr` and any optimizations made during the type-checking pass.
- setTypeMap() : $this
- A map from expression ids to types.
Properties
$expr
The checked expression. Semantically equivalent to the parsed `expr`, but may have structural differences.
protected
mixed
$expr
= null
Generated from protobuf field .google.api.expr.v1alpha1.Expr expr = 4 [json_name = "expr"];
$expr_version
The expr version indicates the major / minor version number of the `expr` representation.
protected
mixed
$expr_version
= ''
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.
Generated from protobuf field string expr_version = 6 [json_name = "exprVersion"];
$source_info
The source info derived from input that generated the parsed `expr` and any optimizations made during the type-checking pass.
protected
mixed
$source_info
= null
Generated from protobuf field .google.api.expr.v1alpha1.SourceInfo source_info = 5 [json_name = "sourceInfo"];
$reference_map
A map from expression ids to resolved references.
private
mixed
$reference_map
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.cis represented byselect(select(id(a), b), c), anda.bresolves to a declaration, whilecis 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, ifaresolves to a declaration andb.care 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.
Generated from protobuf field map<int64, .google.api.expr.v1alpha1.Reference> reference_map = 2 [json_name = "referenceMap"];
$type_map
A map from expression ids to types.
private
mixed
$type_map
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.
Generated from protobuf field map<int64, .google.api.expr.v1alpha1.Type> type_map = 3 [json_name = "typeMap"];
Methods
__construct()
Constructor.
public
__construct([array<string|int, mixed> $data = NULL ]) : mixed
Parameters
- $data : array<string|int, mixed> = NULL
-
{ Optional. Data for populating the Message object.
@type array|\Google\Protobuf\Internal\MapField $reference_map 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. @type array|\Google\Protobuf\Internal\MapField $type_map 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. @type \Google\Api\Expr\V1alpha1\SourceInfo $source_info The source info derived from input that generated the parsed `expr` and any optimizations made during the type-checking pass. @type string $expr_version 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. @type \Google\Api\Expr\V1alpha1\Expr $expr The checked expression. Semantically equivalent to the parsed `expr`, but may have structural differences.}
clearExpr()
public
clearExpr() : mixed
clearSourceInfo()
public
clearSourceInfo() : mixed
getExpr()
The checked expression. Semantically equivalent to the parsed `expr`, but may have structural differences.
public
getExpr() : Expr|null
Generated from protobuf field .google.api.expr.v1alpha1.Expr expr = 4 [json_name = "expr"];
Return values
Expr|nullgetExprVersion()
The expr version indicates the major / minor version number of the `expr` representation.
public
getExprVersion() : string
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.
Generated from protobuf field string expr_version = 6 [json_name = "exprVersion"];
Return values
stringgetReferenceMap()
A map from expression ids to resolved references.
public
getReferenceMap() : MapField
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.cis represented byselect(select(id(a), b), c), anda.bresolves to a declaration, whilecis 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, ifaresolves to a declaration andb.care 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.
Generated from protobuf field map<int64, .google.api.expr.v1alpha1.Reference> reference_map = 2 [json_name = "referenceMap"];
Return values
MapFieldgetSourceInfo()
The source info derived from input that generated the parsed `expr` and any optimizations made during the type-checking pass.
public
getSourceInfo() : SourceInfo|null
Generated from protobuf field .google.api.expr.v1alpha1.SourceInfo source_info = 5 [json_name = "sourceInfo"];
Return values
SourceInfo|nullgetTypeMap()
A map from expression ids to types.
public
getTypeMap() : MapField
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.
Generated from protobuf field map<int64, .google.api.expr.v1alpha1.Type> type_map = 3 [json_name = "typeMap"];
Return values
MapFieldhasExpr()
public
hasExpr() : mixed
hasSourceInfo()
public
hasSourceInfo() : mixed
setExpr()
The checked expression. Semantically equivalent to the parsed `expr`, but may have structural differences.
public
setExpr(Expr $var) : $this
Generated from protobuf field .google.api.expr.v1alpha1.Expr expr = 4 [json_name = "expr"];
Parameters
- $var : Expr
Return values
$thissetExprVersion()
The expr version indicates the major / minor version number of the `expr` representation.
public
setExprVersion(string $var) : $this
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.
Generated from protobuf field string expr_version = 6 [json_name = "exprVersion"];
Parameters
- $var : string
Return values
$thissetReferenceMap()
A map from expression ids to resolved references.
public
setReferenceMap(array<string|int, mixed>|MapField $var) : $this
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.cis represented byselect(select(id(a), b), c), anda.bresolves to a declaration, whilecis 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, ifaresolves to a declaration andb.care 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.
Generated from protobuf field map<int64, .google.api.expr.v1alpha1.Reference> reference_map = 2 [json_name = "referenceMap"];
Parameters
- $var : array<string|int, mixed>|MapField
Return values
$thissetSourceInfo()
The source info derived from input that generated the parsed `expr` and any optimizations made during the type-checking pass.
public
setSourceInfo(SourceInfo $var) : $this
Generated from protobuf field .google.api.expr.v1alpha1.SourceInfo source_info = 5 [json_name = "sourceInfo"];
Parameters
- $var : SourceInfo
Return values
$thissetTypeMap()
A map from expression ids to types.
public
setTypeMap(array<string|int, mixed>|MapField $var) : $this
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.
Generated from protobuf field map<int64, .google.api.expr.v1alpha1.Type> type_map = 3 [json_name = "typeMap"];
Parameters
- $var : array<string|int, mixed>|MapField