MapType
extends Message
in package
Map type with parameterized key and value types, e.g. `map<string, int>`.
Generated from protobuf message google.api.expr.v1alpha1.Type.MapType
Table of Contents
Properties
- $key_type : mixed
- The type of the key.
- $value_type : mixed
- The type of the value.
Methods
- __construct() : mixed
- Constructor.
- clearKeyType() : mixed
- clearValueType() : mixed
- getKeyType() : Type|null
- The type of the key.
- getValueType() : Type|null
- The type of the value.
- hasKeyType() : mixed
- hasValueType() : mixed
- setKeyType() : $this
- The type of the key.
- setValueType() : $this
- The type of the value.
Properties
$key_type
The type of the key.
protected
mixed
$key_type
= null
Generated from protobuf field .google.api.expr.v1alpha1.Type key_type = 1 [json_name = "keyType"];
$value_type
The type of the value.
protected
mixed
$value_type
= null
Generated from protobuf field .google.api.expr.v1alpha1.Type value_type = 2 [json_name = "valueType"];
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 \Google\Api\Expr\V1alpha1\Type $key_type The type of the key. @type \Google\Api\Expr\V1alpha1\Type $value_type The type of the value.}
clearKeyType()
public
clearKeyType() : mixed
clearValueType()
public
clearValueType() : mixed
getKeyType()
The type of the key.
public
getKeyType() : Type|null
Generated from protobuf field .google.api.expr.v1alpha1.Type key_type = 1 [json_name = "keyType"];
Return values
Type|nullgetValueType()
The type of the value.
public
getValueType() : Type|null
Generated from protobuf field .google.api.expr.v1alpha1.Type value_type = 2 [json_name = "valueType"];
Return values
Type|nullhasKeyType()
public
hasKeyType() : mixed
hasValueType()
public
hasValueType() : mixed
setKeyType()
The type of the key.
public
setKeyType(Type $var) : $this
Generated from protobuf field .google.api.expr.v1alpha1.Type key_type = 1 [json_name = "keyType"];
Parameters
- $var : Type
Return values
$thissetValueType()
The type of the value.
public
setValueType(Type $var) : $this
Generated from protobuf field .google.api.expr.v1alpha1.Type value_type = 2 [json_name = "valueType"];
Parameters
- $var : Type