Documentation

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.v1beta1.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
A Type value represented by the fully qualified name of the type.
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
A Type value represented by the fully qualified name of the type.
setUint64Value()  : $this
Unsigned integer value.

Properties

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\V1beta1\EnumValue $enum_value
      An enum value.
@type \Google\Protobuf\Any $object_value
      The proto message backing an object value.
@type \Google\Api\Expr\V1beta1\MapValue $map_value
      Map value.
@type \Google\Api\Expr\V1beta1\ListValue $list_value
      List value.
@type string $type_value
      A Type value represented by the fully qualified name of the type.

}

getBoolValue()

Boolean value.

public getBoolValue() : bool

Generated from protobuf field bool bool_value = 2 [json_name = "boolValue"];

Return values
bool

getBytesValue()

Byte string value.

public getBytesValue() : string

Generated from protobuf field bytes bytes_value = 7 [json_name = "bytesValue"];

Return values
string

getDoubleValue()

Floating point value.

public getDoubleValue() : float

Generated from protobuf field double double_value = 5 [json_name = "doubleValue"];

Return values
float

getEnumValue()

An enum value.

public getEnumValue() : EnumValue|null

Generated from protobuf field .google.api.expr.v1beta1.EnumValue enum_value = 9 [json_name = "enumValue"];

Return values
EnumValue|null

getInt64Value()

Signed integer value.

public getInt64Value() : int|string

Generated from protobuf field int64 int64_value = 3 [json_name = "int64Value"];

Return values
int|string

getKind()

public getKind() : string
Return values
string

getListValue()

List value.

public getListValue() : ListValue|null

Generated from protobuf field .google.api.expr.v1beta1.ListValue list_value = 12 [json_name = "listValue"];

Return values
ListValue|null

getMapValue()

Map value.

public getMapValue() : MapValue|null

Generated from protobuf field .google.api.expr.v1beta1.MapValue map_value = 11 [json_name = "mapValue"];

Return values
MapValue|null

getNullValue()

Null value.

public getNullValue() : int

Generated from protobuf field .google.protobuf.NullValue null_value = 1 [json_name = "nullValue"];

Return values
int

getObjectValue()

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|null

getStringValue()

UTF-8 string value.

public getStringValue() : string

Generated from protobuf field string string_value = 6 [json_name = "stringValue"];

Return values
string

getTypeValue()

A Type value represented by the fully qualified name of the type.

public getTypeValue() : string

Generated from protobuf field string type_value = 15 [json_name = "typeValue"];

Return values
string

getUint64Value()

Unsigned integer value.

public getUint64Value() : int|string

Generated from protobuf field uint64 uint64_value = 4 [json_name = "uint64Value"];

Return values
int|string

hasBoolValue()

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
$this

setBytesValue()

Byte string value.

public setBytesValue(string $var) : $this

Generated from protobuf field bytes bytes_value = 7 [json_name = "bytesValue"];

Parameters
$var : string
Return values
$this

setDoubleValue()

Floating point value.

public setDoubleValue(float $var) : $this

Generated from protobuf field double double_value = 5 [json_name = "doubleValue"];

Parameters
$var : float
Return values
$this

setEnumValue()

An enum value.

public setEnumValue(EnumValue $var) : $this

Generated from protobuf field .google.api.expr.v1beta1.EnumValue enum_value = 9 [json_name = "enumValue"];

Parameters
$var : EnumValue
Return values
$this

setInt64Value()

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
$this

setListValue()

List value.

public setListValue(ListValue $var) : $this

Generated from protobuf field .google.api.expr.v1beta1.ListValue list_value = 12 [json_name = "listValue"];

Parameters
$var : ListValue
Return values
$this

setMapValue()

Map value.

public setMapValue(MapValue $var) : $this

Generated from protobuf field .google.api.expr.v1beta1.MapValue map_value = 11 [json_name = "mapValue"];

Parameters
$var : MapValue
Return values
$this

setNullValue()

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
$this

setObjectValue()

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
$this

setStringValue()

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
$this

setTypeValue()

A Type value represented by the fully qualified name of the type.

public setTypeValue(string $var) : $this

Generated from protobuf field string type_value = 15 [json_name = "typeValue"];

Parameters
$var : string
Return values
$this

setUint64Value()

Unsigned integer value.

public setUint64Value(int|string $var) : $this

Generated from protobuf field uint64 uint64_value = 4 [json_name = "uint64Value"];

Parameters
$var : int|string
Return values
$this

        
On this page

Search results