class Reference extends Message

Describes a resolved reference to a declaration.

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

Methods

__construct(array $data = NULL)

Constructor.

string
getName()

The fully qualified name of the declaration.

$this
setName(string $var)

The fully qualified name of the declaration.

RepeatedField
getOverloadId()

For references to functions, this is a list of Overload.overload_id values which match according to typing rules.

$this
setOverloadId(string[]|RepeatedField $var)

For references to functions, this is a list of Overload.overload_id values which match according to typing rules.

getValue()

For references to constants, this may contain the value of the constant if known at compile time.

$this
setValue(Constant $var)

For references to constants, this may contain the value of the constant if known at compile time.

Details

at line 63
__construct(array $data = NULL)

Constructor.

Parameters

array $data { Optional. Data for populating the Message object.

@type string $name
      The fully qualified name of the declaration.
@type 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.

}

at line 74
string getName()

The fully qualified name of the declaration.

Generated from protobuf field string name = 1;

Return Value

string

at line 86
$this setName(string $var)

The fully qualified name of the declaration.

Generated from protobuf field string name = 1;

Parameters

string $var

Return Value

$this

at line 105
RepeatedField getOverloadId()

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].

Generated from protobuf field repeated string overload_id = 3;

Return Value

RepeatedField

at line 122
$this setOverloadId(string[]|RepeatedField $var)

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].

Generated from protobuf field repeated string overload_id = 3;

Parameters

string[]|RepeatedField $var

Return Value

$this

at line 137
Constant getValue()

For references to constants, this may contain the value of the constant if known at compile time.

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

Return Value

Constant

at line 150
$this setValue(Constant $var)

For references to constants, this may contain the value of the constant if known at compile time.

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

Parameters

Constant $var

Return Value

$this