class CheckedExpr extends Message

A CEL expression which has been successfully type checked.

Generated from protobuf message google.api.expr.v1alpha1.CheckedExpr

Methods

__construct(array $data = NULL)

Constructor.

MapField
getReferenceMap()

A map from expression ids to resolved references.

$this
setReferenceMap(array|MapField $var)

A map from expression ids to resolved references.

MapField
getTypeMap()

A map from expression ids to types.

$this
setTypeMap(array|MapField $var)

A map from expression ids to types.

getSourceInfo()

The source info derived from input that generated the parsed expr and any optimizations made during the type-checking pass.

$this
setSourceInfo(SourceInfo $var)

The source info derived from input that generated the parsed expr and any optimizations made during the type-checking pass.

getExpr()

The checked expression. Semantically equivalent to the parsed expr, but may have structural differences.

$this
setExpr(Expr $var)

The checked expression. Semantically equivalent to the parsed expr, but may have structural differences.

Details

at line 93
__construct(array $data = NULL)

Constructor.

Parameters

array $data { 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 \Google\Api\Expr\V1alpha1\Expr $expr
      The checked expression. Semantically equivalent to the parsed `expr`, but
      may have structural differences.

}

at line 116
MapField getReferenceMap()

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.

Generated from protobuf field map<int64, .google.api.expr.v1alpha1.Reference> reference_map = 2;

Return Value

MapField

at line 140
$this setReferenceMap(array|MapField $var)

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.

Generated from protobuf field map<int64, .google.api.expr.v1alpha1.Reference> reference_map = 2;

Parameters

array|MapField $var

Return Value

$this

at line 157
MapField getTypeMap()

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.

Generated from protobuf field map<int64, .google.api.expr.v1alpha1.Type> type_map = 3;

Return Value

MapField

at line 172
$this setTypeMap(array|MapField $var)

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.

Generated from protobuf field map<int64, .google.api.expr.v1alpha1.Type> type_map = 3;

Parameters

array|MapField $var

Return Value

$this

at line 187
SourceInfo getSourceInfo()

The source info derived from input that generated the parsed expr and any optimizations made during the type-checking pass.

Generated from protobuf field .google.api.expr.v1alpha1.SourceInfo source_info = 5;

Return Value

SourceInfo

at line 200
$this setSourceInfo(SourceInfo $var)

The source info derived from input that generated the parsed expr and any optimizations made during the type-checking pass.

Generated from protobuf field .google.api.expr.v1alpha1.SourceInfo source_info = 5;

Parameters

SourceInfo $var

Return Value

$this

at line 215
Expr getExpr()

The checked expression. Semantically equivalent to the parsed expr, but may have structural differences.

Generated from protobuf field .google.api.expr.v1alpha1.Expr expr = 4;

Return Value

Expr

at line 228
$this setExpr(Expr $var)

The checked expression. Semantically equivalent to the parsed expr, but may have structural differences.

Generated from protobuf field .google.api.expr.v1alpha1.Expr expr = 4;

Parameters

Expr $var

Return Value

$this