EnumValue
extends Message
in package
An enum value.
Generated from protobuf message google.api.expr.v1beta1.EnumValue
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructor.
- getType() : string
- The fully qualified name of the enum type.
- getValue() : int
- The value of the enum.
- setType() : $this
- The fully qualified name of the enum type.
- setValue() : $this
- The value of the enum.
Properties
$type
The fully qualified name of the enum type.
protected
mixed
$type
= ''
Generated from protobuf field string type = 1 [json_name = "type"];
$value
The value of the enum.
protected
mixed
$value
= 0
Generated from protobuf field int32 value = 2 [json_name = "value"];
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 $type The fully qualified name of the enum type. @type int $value The value of the enum.}
getType()
The fully qualified name of the enum type.
public
getType() : string
Generated from protobuf field string type = 1 [json_name = "type"];
Return values
stringgetValue()
The value of the enum.
public
getValue() : int
Generated from protobuf field int32 value = 2 [json_name = "value"];
Return values
intsetType()
The fully qualified name of the enum type.
public
setType(string $var) : $this
Generated from protobuf field string type = 1 [json_name = "type"];
Parameters
- $var : string
Return values
$thissetValue()
The value of the enum.
public
setValue(int $var) : $this
Generated from protobuf field int32 value = 2 [json_name = "value"];
Parameters
- $var : int