Decl
extends Message
in package
Represents a declaration of a named value or function.
A declaration is part of the contract between the expression, the agent evaluating that expression, and the caller requesting evaluation.
Generated from protobuf message google.api.expr.v1alpha1.Decl
Table of Contents
Properties
- $decl_kind : mixed
- $name : mixed
- The fully qualified name of the declaration.
Methods
- __construct() : mixed
- Constructor.
- getDeclKind() : string
- getFunction() : FunctionDecl|null
- Function declaration.
- getIdent() : IdentDecl|null
- Identifier declaration.
- getName() : string
- The fully qualified name of the declaration.
- hasFunction() : mixed
- hasIdent() : mixed
- setFunction() : $this
- Function declaration.
- setIdent() : $this
- Identifier declaration.
- setName() : $this
- The fully qualified name of the declaration.
Properties
$decl_kind
protected
mixed
$decl_kind
$name
The fully qualified name of the declaration.
protected
mixed
$name
= ''
Declarations are organized in containers and this represents the full path
to the declaration in its container, as in google.api.expr.Decl.
Declarations used as
[FunctionDecl.Overload][google.api.expr.v1alpha1.Decl.FunctionDecl.Overload]
parameters may or may not have a name depending on whether the overload is
function declaration or a function definition containing a result
[Expr][google.api.expr.v1alpha1.Expr].
Generated from protobuf field string name = 1 [json_name = "name"];
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 string $name The fully qualified name of the declaration. Declarations are organized in containers and this represents the full path to the declaration in its container, as in `google.api.expr.Decl`. Declarations used as [FunctionDecl.Overload][google.api.expr.v1alpha1.Decl.FunctionDecl.Overload] parameters may or may not have a name depending on whether the overload is function declaration or a function definition containing a result [Expr][google.api.expr.v1alpha1.Expr]. @type \Google\Api\Expr\V1alpha1\Decl\IdentDecl $ident Identifier declaration. @type \Google\Api\Expr\V1alpha1\Decl\FunctionDecl $function Function declaration.}
getDeclKind()
public
getDeclKind() : string
Return values
stringgetFunction()
Function declaration.
public
getFunction() : FunctionDecl|null
Generated from protobuf field .google.api.expr.v1alpha1.Decl.FunctionDecl function = 3 [json_name = "function"];
Return values
FunctionDecl|nullgetIdent()
Identifier declaration.
public
getIdent() : IdentDecl|null
Generated from protobuf field .google.api.expr.v1alpha1.Decl.IdentDecl ident = 2 [json_name = "ident"];
Return values
IdentDecl|nullgetName()
The fully qualified name of the declaration.
public
getName() : string
Declarations are organized in containers and this represents the full path
to the declaration in its container, as in google.api.expr.Decl.
Declarations used as
[FunctionDecl.Overload][google.api.expr.v1alpha1.Decl.FunctionDecl.Overload]
parameters may or may not have a name depending on whether the overload is
function declaration or a function definition containing a result
[Expr][google.api.expr.v1alpha1.Expr].
Generated from protobuf field string name = 1 [json_name = "name"];
Return values
stringhasFunction()
public
hasFunction() : mixed
hasIdent()
public
hasIdent() : mixed
setFunction()
Function declaration.
public
setFunction(FunctionDecl $var) : $this
Generated from protobuf field .google.api.expr.v1alpha1.Decl.FunctionDecl function = 3 [json_name = "function"];
Parameters
- $var : FunctionDecl
Return values
$thissetIdent()
Identifier declaration.
public
setIdent(IdentDecl $var) : $this
Generated from protobuf field .google.api.expr.v1alpha1.Decl.IdentDecl ident = 2 [json_name = "ident"];
Parameters
- $var : IdentDecl
Return values
$thissetName()
The fully qualified name of the declaration.
public
setName(string $var) : $this
Declarations are organized in containers and this represents the full path
to the declaration in its container, as in google.api.expr.Decl.
Declarations used as
[FunctionDecl.Overload][google.api.expr.v1alpha1.Decl.FunctionDecl.Overload]
parameters may or may not have a name depending on whether the overload is
function declaration or a function definition containing a result
[Expr][google.api.expr.v1alpha1.Expr].
Generated from protobuf field string name = 1 [json_name = "name"];
Parameters
- $var : string