Value
extends Message
in package
Represents a CEL value.
This is similar to google.protobuf.Value, but can represent CEL's full
range of values.
Generated from protobuf message google.api.expr.v1alpha1.Value
Table of Contents
Properties
- $kind : mixed
Methods
- __construct() : mixed
- Constructor.
- getBoolValue() : bool
- Boolean value.
- getBytesValue() : string
- Byte string value.
- getDoubleValue() : float
- Floating point value.
- getEnumValue() : EnumValue|null
- An enum value.
- getInt64Value() : int|string
- Signed integer value.
- getKind() : string
- getListValue() : ListValue|null
- List value.
- getMapValue() : MapValue|null
- Map value.
- getNullValue() : int
- Null value.
- getObjectValue() : Any|null
- The proto message backing an object value.
- getStringValue() : string
- UTF-8 string value.
- getTypeValue() : string
- Type value.
- getUint64Value() : int|string
- Unsigned integer value.
- hasBoolValue() : mixed
- hasBytesValue() : mixed
- hasDoubleValue() : mixed
- hasEnumValue() : mixed
- hasInt64Value() : mixed
- hasListValue() : mixed
- hasMapValue() : mixed
- hasNullValue() : mixed
- hasObjectValue() : mixed
- hasStringValue() : mixed
- hasTypeValue() : mixed
- hasUint64Value() : mixed
- setBoolValue() : $this
- Boolean value.
- setBytesValue() : $this
- Byte string value.
- setDoubleValue() : $this
- Floating point value.
- setEnumValue() : $this
- An enum value.
- setInt64Value() : $this
- Signed integer value.
- setListValue() : $this
- List value.
- setMapValue() : $this
- Map value.
- setNullValue() : $this
- Null value.
- setObjectValue() : $this
- The proto message backing an object value.
- setStringValue() : $this
- UTF-8 string value.
- setTypeValue() : $this
- Type value.
- setUint64Value() : $this
- Unsigned integer value.
Properties
$kind
protected
mixed
$kind
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 $null_value Null value. @type bool $bool_value Boolean value. @type int|string $int64_value Signed integer value. @type int|string $uint64_value Unsigned integer value. @type float $double_value Floating point value. @type string $string_value UTF-8 string value. @type string $bytes_value Byte string value. @type \Google\Api\Expr\V1alpha1\EnumValue $enum_value An enum value. @type \Google\Protobuf\Any $object_value The proto message backing an object value. @type \Google\Api\Expr\V1alpha1\MapValue $map_value Map value. @type \Google\Api\Expr\V1alpha1\ListValue $list_value List value. @type string $type_value Type value.}
getBoolValue()
Boolean value.
public
getBoolValue() : bool
Generated from protobuf field bool bool_value = 2 [json_name = "boolValue"];
Return values
boolgetBytesValue()
Byte string value.
public
getBytesValue() : string
Generated from protobuf field bytes bytes_value = 7 [json_name = "bytesValue"];
Return values
stringgetDoubleValue()
Floating point value.
public
getDoubleValue() : float
Generated from protobuf field double double_value = 5 [json_name = "doubleValue"];
Return values
floatgetEnumValue()
An enum value.
public
getEnumValue() : EnumValue|null
Generated from protobuf field .google.api.expr.v1alpha1.EnumValue enum_value = 9 [json_name = "enumValue"];
Return values
EnumValue|nullgetInt64Value()
Signed integer value.
public
getInt64Value() : int|string
Generated from protobuf field int64 int64_value = 3 [json_name = "int64Value"];
Return values
int|stringgetKind()
public
getKind() : string
Return values
stringgetListValue()
List value.
public
getListValue() : ListValue|null
Generated from protobuf field .google.api.expr.v1alpha1.ListValue list_value = 12 [json_name = "listValue"];
Return values
ListValue|nullgetMapValue()
Map value.
public
getMapValue() : MapValue|null
Generated from protobuf field .google.api.expr.v1alpha1.MapValue map_value = 11 [json_name = "mapValue"];
Return values
MapValue|nullgetNullValue()
Null value.
public
getNullValue() : int
Generated from protobuf field .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"];
Return values
intgetObjectValue()
The proto message backing an object value.
public
getObjectValue() : Any|null
Generated from protobuf field .google.protobuf.Any object_value = 10 [json_name = "objectValue"];
Return values
Any|nullgetStringValue()
UTF-8 string value.
public
getStringValue() : string
Generated from protobuf field string string_value = 6 [json_name = "stringValue"];
Return values
stringgetTypeValue()
Type value.
public
getTypeValue() : string
Generated from protobuf field string type_value = 15 [json_name = "typeValue"];
Return values
stringgetUint64Value()
Unsigned integer value.
public
getUint64Value() : int|string
Generated from protobuf field uint64 uint64_value = 4 [json_name = "uint64Value"];
Return values
int|stringhasBoolValue()
public
hasBoolValue() : mixed
hasBytesValue()
public
hasBytesValue() : mixed
hasDoubleValue()
public
hasDoubleValue() : mixed
hasEnumValue()
public
hasEnumValue() : mixed
hasInt64Value()
public
hasInt64Value() : mixed
hasListValue()
public
hasListValue() : mixed
hasMapValue()
public
hasMapValue() : mixed
hasNullValue()
public
hasNullValue() : mixed
hasObjectValue()
public
hasObjectValue() : mixed
hasStringValue()
public
hasStringValue() : mixed
hasTypeValue()
public
hasTypeValue() : mixed
hasUint64Value()
public
hasUint64Value() : mixed
setBoolValue()
Boolean value.
public
setBoolValue(bool $var) : $this
Generated from protobuf field bool bool_value = 2 [json_name = "boolValue"];
Parameters
- $var : bool
Return values
$thissetBytesValue()
Byte string value.
public
setBytesValue(string $var) : $this
Generated from protobuf field bytes bytes_value = 7 [json_name = "bytesValue"];
Parameters
- $var : string
Return values
$thissetDoubleValue()
Floating point value.
public
setDoubleValue(float $var) : $this
Generated from protobuf field double double_value = 5 [json_name = "doubleValue"];
Parameters
- $var : float
Return values
$thissetEnumValue()
An enum value.
public
setEnumValue(EnumValue $var) : $this
Generated from protobuf field .google.api.expr.v1alpha1.EnumValue enum_value = 9 [json_name = "enumValue"];
Parameters
- $var : EnumValue
Return values
$thissetInt64Value()
Signed integer value.
public
setInt64Value(int|string $var) : $this
Generated from protobuf field int64 int64_value = 3 [json_name = "int64Value"];
Parameters
- $var : int|string
Return values
$thissetListValue()
List value.
public
setListValue(ListValue $var) : $this
Generated from protobuf field .google.api.expr.v1alpha1.ListValue list_value = 12 [json_name = "listValue"];
Parameters
- $var : ListValue
Return values
$thissetMapValue()
Map value.
public
setMapValue(MapValue $var) : $this
Generated from protobuf field .google.api.expr.v1alpha1.MapValue map_value = 11 [json_name = "mapValue"];
Parameters
- $var : MapValue
Return values
$thissetNullValue()
Null value.
public
setNullValue(int $var) : $this
Generated from protobuf field .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"];
Parameters
- $var : int
Return values
$thissetObjectValue()
The proto message backing an object value.
public
setObjectValue(Any $var) : $this
Generated from protobuf field .google.protobuf.Any object_value = 10 [json_name = "objectValue"];
Parameters
- $var : Any
Return values
$thissetStringValue()
UTF-8 string value.
public
setStringValue(string $var) : $this
Generated from protobuf field string string_value = 6 [json_name = "stringValue"];
Parameters
- $var : string
Return values
$thissetTypeValue()
Type value.
public
setTypeValue(string $var) : $this
Generated from protobuf field string type_value = 15 [json_name = "typeValue"];
Parameters
- $var : string
Return values
$thissetUint64Value()
Unsigned integer value.
public
setUint64Value(int|string $var) : $this
Generated from protobuf field uint64 uint64_value = 4 [json_name = "uint64Value"];
Parameters
- $var : int|string