Literal
class Literal extends Message
Represents a primitive literal.
This is similar to the primitives supported in the well-known type
google.protobuf.Value
, but richer so it can represent CEL's full range of
primitives.
Lists and structs are not included as constants as these aggregate types may
contain [Expr][google.api.expr.v1beta1.Expr] elements which require evaluation and are thus not constant.
Examples of literals include: "hello"
, b'bytes'
, 1u
, 4.2
, -2
,
true
, null
.
Generated from protobuf message google.api.expr.v1beta1.Literal
Properties
protected | $constant_kind |
Methods
Constructor.
null value.
null value.
boolean value.
boolean value.
int64 value.
int64 value.
uint64 value.
uint64 value.
double value.
double value.
string value.
string value.
bytes value.
bytes value.
No description
Details
at line 49
__construct(array $data = NULL)
Constructor.
at line 60
int
getNullValue()
null value.
Generated from protobuf field .google.protobuf.NullValue null_value = 1;
at line 72
$this
setNullValue(int $var)
null value.
Generated from protobuf field .google.protobuf.NullValue null_value = 1;
at line 86
bool
getBoolValue()
boolean value.
Generated from protobuf field bool bool_value = 2;
at line 98
$this
setBoolValue(bool $var)
boolean value.
Generated from protobuf field bool bool_value = 2;
at line 112
int|string
getInt64Value()
int64 value.
Generated from protobuf field int64 int64_value = 3;
at line 124
$this
setInt64Value(int|string $var)
int64 value.
Generated from protobuf field int64 int64_value = 3;
at line 138
int|string
getUint64Value()
uint64 value.
Generated from protobuf field uint64 uint64_value = 4;
at line 150
$this
setUint64Value(int|string $var)
uint64 value.
Generated from protobuf field uint64 uint64_value = 4;
at line 164
float
getDoubleValue()
double value.
Generated from protobuf field double double_value = 5;
at line 176
$this
setDoubleValue(float $var)
double value.
Generated from protobuf field double double_value = 5;
at line 190
string
getStringValue()
string value.
Generated from protobuf field string string_value = 6;
at line 202
$this
setStringValue(string $var)
string value.
Generated from protobuf field string string_value = 6;
at line 216
string
getBytesValue()
bytes value.
Generated from protobuf field bytes bytes_value = 7;
at line 228
$this
setBytesValue(string $var)
bytes value.
Generated from protobuf field bytes bytes_value = 7;