DeclType
extends Message
in package
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
Table of Contents
Properties
- $id : mixed
- The expression id of the declared type, if applicable.
- $type : mixed
- The type name, e.g. 'int', 'my.type.Type' or 'T'
- $type_params : mixed
- An ordered list of type parameters, e.g. `<string, int>`.
Methods
- __construct() : mixed
- Constructor.
- getId() : int
- The expression id of the declared type, if applicable.
- getType() : string
- The type name, e.g. 'int', 'my.type.Type' or 'T'
- getTypeParams() : RepeatedField
- An ordered list of type parameters, e.g. `<string, int>`.
- setId() : $this
- The expression id of the declared type, if applicable.
- setType() : $this
- The type name, e.g. 'int', 'my.type.Type' or 'T'
- setTypeParams() : $this
- An ordered list of type parameters, e.g. `<string, int>`.
Properties
$id
The expression id of the declared type, if applicable.
protected
mixed
$id
= 0
Generated from protobuf field int32 id = 1 [json_name = "id"];
$type
The type name, e.g. 'int', 'my.type.Type' or 'T'
protected
mixed
$type
= ''
Generated from protobuf field string type = 2 [json_name = "type"];
$type_params
An ordered list of type parameters, e.g. `<string, int>`.
private
mixed
$type_params
Only applies to a subset of types, e.g. map, list.
Generated from protobuf field repeated .google.api.expr.v1beta1.DeclType type_params = 4 [json_name = "typeParams"];
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 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 array<\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`.}
getId()
The expression id of the declared type, if applicable.
public
getId() : int
Generated from protobuf field int32 id = 1 [json_name = "id"];
Return values
intgetType()
The type name, e.g. 'int', 'my.type.Type' or 'T'
public
getType() : string
Generated from protobuf field string type = 2 [json_name = "type"];
Return values
stringgetTypeParams()
An ordered list of type parameters, e.g. `<string, int>`.
public
getTypeParams() : RepeatedField
Only applies to a subset of types, e.g. map, list.
Generated from protobuf field repeated .google.api.expr.v1beta1.DeclType type_params = 4 [json_name = "typeParams"];
Return values
RepeatedFieldsetId()
The expression id of the declared type, if applicable.
public
setId(int $var) : $this
Generated from protobuf field int32 id = 1 [json_name = "id"];
Parameters
- $var : int
Return values
$thissetType()
The type name, e.g. 'int', 'my.type.Type' or 'T'
public
setType(string $var) : $this
Generated from protobuf field string type = 2 [json_name = "type"];
Parameters
- $var : string
Return values
$thissetTypeParams()
An ordered list of type parameters, e.g. `<string, int>`.
public
setTypeParams(array<string|int, DeclType>|RepeatedField $var) : $this
Only applies to a subset of types, e.g. map, list.
Generated from protobuf field repeated .google.api.expr.v1beta1.DeclType type_params = 4 [json_name = "typeParams"];
Parameters
- $var : array<string|int, DeclType>|RepeatedField