Reference
extends Message
in package
Describes a resolved reference to a declaration.
Generated from protobuf message google.api.expr.v1alpha1.Reference
Table of Contents
Properties
- $name : mixed
- The fully qualified name of the declaration.
- $value : mixed
- For references to constants, this may contain the value of the constant if known at compile time.
- $overload_id : mixed
- For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules.
Methods
- __construct() : mixed
- Constructor.
- clearValue() : mixed
- getName() : string
- The fully qualified name of the declaration.
- getOverloadId() : RepeatedField
- For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules.
- getValue() : Constant|null
- For references to constants, this may contain the value of the constant if known at compile time.
- hasValue() : mixed
- setName() : $this
- The fully qualified name of the declaration.
- setOverloadId() : $this
- For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules.
- setValue() : $this
- For references to constants, this may contain the value of the constant if known at compile time.
Properties
$name
The fully qualified name of the declaration.
protected
mixed
$name
= ''
Generated from protobuf field string name = 1 [json_name = "name"];
$value
For references to constants, this may contain the value of the constant if known at compile time.
protected
mixed
$value
= null
Generated from protobuf field .google.api.expr.v1alpha1.Constant value = 4 [json_name = "value"];
$overload_id
For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules.
private
mixed
$overload_id
If the list has more than one element, overload resolution among the presented candidates must happen at runtime because of dynamic types. The type checker attempts to narrow down this list as much as possible. Empty if this is not a reference to a [Decl.FunctionDecl][google.api.expr.v1alpha1.Decl.FunctionDecl].
Generated from protobuf field repeated string overload_id = 3 [json_name = "overloadId"];
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. @type array<string>|\Google\Protobuf\Internal\RepeatedField $overload_id For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules. If the list has more than one element, overload resolution among the presented candidates must happen at runtime because of dynamic types. The type checker attempts to narrow down this list as much as possible. Empty if this is not a reference to a [Decl.FunctionDecl][google.api.expr.v1alpha1.Decl.FunctionDecl]. @type \Google\Api\Expr\V1alpha1\Constant $value For references to constants, this may contain the value of the constant if known at compile time.}
clearValue()
public
clearValue() : mixed
getName()
The fully qualified name of the declaration.
public
getName() : string
Generated from protobuf field string name = 1 [json_name = "name"];
Return values
stringgetOverloadId()
For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules.
public
getOverloadId() : RepeatedField
If the list has more than one element, overload resolution among the presented candidates must happen at runtime because of dynamic types. The type checker attempts to narrow down this list as much as possible. Empty if this is not a reference to a [Decl.FunctionDecl][google.api.expr.v1alpha1.Decl.FunctionDecl].
Generated from protobuf field repeated string overload_id = 3 [json_name = "overloadId"];
Return values
RepeatedFieldgetValue()
For references to constants, this may contain the value of the constant if known at compile time.
public
getValue() : Constant|null
Generated from protobuf field .google.api.expr.v1alpha1.Constant value = 4 [json_name = "value"];
Return values
Constant|nullhasValue()
public
hasValue() : mixed
setName()
The fully qualified name of the declaration.
public
setName(string $var) : $this
Generated from protobuf field string name = 1 [json_name = "name"];
Parameters
- $var : string
Return values
$thissetOverloadId()
For references to functions, this is a list of `Overload.overload_id` values which match according to typing rules.
public
setOverloadId(array<string|int, string>|RepeatedField $var) : $this
If the list has more than one element, overload resolution among the presented candidates must happen at runtime because of dynamic types. The type checker attempts to narrow down this list as much as possible. Empty if this is not a reference to a [Decl.FunctionDecl][google.api.expr.v1alpha1.Decl.FunctionDecl].
Generated from protobuf field repeated string overload_id = 3 [json_name = "overloadId"];
Parameters
- $var : array<string|int, string>|RepeatedField
Return values
$thissetValue()
For references to constants, this may contain the value of the constant if known at compile time.
public
setValue(Constant $var) : $this
Generated from protobuf field .google.api.expr.v1alpha1.Constant value = 4 [json_name = "value"];
Parameters
- $var : Constant