Value
class Value extends Message
Value represents a dynamically typed value which can be either
null, a number, a string, a boolean, a recursive struct value, or a
list of values. A producer of value is expected to set one of that
variants, absence of any variant indicates an error.
The JSON representation for Value is JSON value.
Protobuf type Google\Protobuf\Value
Properties
| protected | $kind |
Methods
No description
Represents a null value.
Represents a null value.
Represents a double value.
Represents a double value.
Represents a string value.
Represents a string value.
Represents a boolean value.
Represents a boolean value.
Represents a structured value.
Represents a repeated Value.
No description
Details
at line 24
__construct()
at line 35
int
getNullValue()
Represents a null value.
Generated from protobuf field .google.protobuf.NullValue null_value = 1;
at line 46
setNullValue(int $var)
Represents a null value.
Generated from protobuf field .google.protobuf.NullValue null_value = 1;
at line 58
float
getNumberValue()
Represents a double value.
Generated from protobuf field double number_value = 2;
at line 69
setNumberValue(float $var)
Represents a double value.
Generated from protobuf field double number_value = 2;
at line 81
string
getStringValue()
Represents a string value.
Generated from protobuf field string string_value = 3;
at line 92
setStringValue(string $var)
Represents a string value.
Generated from protobuf field string string_value = 3;
at line 104
bool
getBoolValue()
Represents a boolean value.
Generated from protobuf field bool bool_value = 4;
at line 115
setBoolValue(bool $var)
Represents a boolean value.
Generated from protobuf field bool bool_value = 4;
at line 127
Struct
getStructValue()
Represents a structured value.
Generated from protobuf field .google.protobuf.Struct struct_value = 5;
at line 138
setStructValue(Struct $var)
Represents a structured value.
Generated from protobuf field .google.protobuf.Struct struct_value = 5;
at line 150
ListValue
getListValue()
Represents a repeated Value.
Generated from protobuf field .google.protobuf.ListValue list_value = 6;
at line 161
setListValue(ListValue $var)
Represents a repeated Value.
Generated from protobuf field .google.protobuf.ListValue list_value = 6;