class DeclType extends Message

The declared type of a variable.

Extends runtime type values with extra information used for type checking and dispatching.

Generated from protobuf message google.api.expr.v1beta1.DeclType

Methods

__construct(array $data = NULL)

Constructor.

int
getId()

The expression id of the declared type, if applicable.

$this
setId(int $var)

The expression id of the declared type, if applicable.

string
getType()

The type name, e.g. 'int', 'my.type.Type' or 'T'

$this
setType(string $var)

The type name, e.g. 'int', 'my.type.Type' or 'T'

RepeatedField
getTypeParams()

An ordered list of type parameters, e.g. <string, int>.

$this
setTypeParams(DeclType[]|RepeatedField $var)

An ordered list of type parameters, e.g. <string, int>.

Details

at line 55
__construct(array $data = NULL)

Constructor.

Parameters

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

@type int $id
      The expression id of the declared type, if applicable.
@type string $type
      The type name, e.g. 'int', 'my.type.Type' or 'T'
@type \Google\Api\Expr\V1beta1\DeclType[]|\Google\Protobuf\Internal\RepeatedField $type_params
      An ordered list of type parameters, e.g. `<string, int>`.
      Only applies to a subset of types, e.g. `map`, `list`.

}

at line 66
int getId()

The expression id of the declared type, if applicable.

Generated from protobuf field int32 id = 1;

Return Value

int

at line 78
$this setId(int $var)

The expression id of the declared type, if applicable.

Generated from protobuf field int32 id = 1;

Parameters

int $var

Return Value

$this

at line 92
string getType()

The type name, e.g. 'int', 'my.type.Type' or 'T'

Generated from protobuf field string type = 2;

Return Value

string

at line 104
$this setType(string $var)

The type name, e.g. 'int', 'my.type.Type' or 'T'

Generated from protobuf field string type = 2;

Parameters

string $var

Return Value

$this

at line 119
RepeatedField getTypeParams()

An ordered list of type parameters, e.g. <string, int>.

Only applies to a subset of types, e.g. map, list.

Generated from protobuf field repeated .google.api.expr.v1beta1.DeclType type_params = 4;

Return Value

RepeatedField

at line 132
$this setTypeParams(DeclType[]|RepeatedField $var)

An ordered list of type parameters, e.g. <string, int>.

Only applies to a subset of types, e.g. map, list.

Generated from protobuf field repeated .google.api.expr.v1beta1.DeclType type_params = 4;

Parameters

DeclType[]|RepeatedField $var

Return Value

$this