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

__construct()

No description

int
getNullValue()

Represents a null value.

setNullValue(int $var)

Represents a null value.

float
getNumberValue()

Represents a double value.

setNumberValue(float $var)

Represents a double value.

string
getStringValue()

Represents a string value.

setStringValue(string $var)

Represents a string value.

bool
getBoolValue()

Represents a boolean value.

setBoolValue(bool $var)

Represents a boolean value.

getStructValue()

Represents a structured value.

setStructValue(Struct $var)

Represents a structured value.

getListValue()

Represents a repeated Value.

setListValue(ListValue $var)

Represents a repeated Value.

string
getKind()

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;

Return Value

int

at line 46
setNullValue(int $var)

Represents a null value.

Generated from protobuf field .google.protobuf.NullValue null_value = 1;

Parameters

int $var

at line 58
float getNumberValue()

Represents a double value.

Generated from protobuf field double number_value = 2;

Return Value

float

at line 69
setNumberValue(float $var)

Represents a double value.

Generated from protobuf field double number_value = 2;

Parameters

float $var

at line 81
string getStringValue()

Represents a string value.

Generated from protobuf field string string_value = 3;

Return Value

string

at line 92
setStringValue(string $var)

Represents a string value.

Generated from protobuf field string string_value = 3;

Parameters

string $var

at line 104
bool getBoolValue()

Represents a boolean value.

Generated from protobuf field bool bool_value = 4;

Return Value

bool

at line 115
setBoolValue(bool $var)

Represents a boolean value.

Generated from protobuf field bool bool_value = 4;

Parameters

bool $var

at line 127
Struct getStructValue()

Represents a structured value.

Generated from protobuf field .google.protobuf.Struct struct_value = 5;

Return Value

Struct

at line 138
setStructValue(Struct $var)

Represents a structured value.

Generated from protobuf field .google.protobuf.Struct struct_value = 5;

Parameters

Struct $var

at line 150
ListValue getListValue()

Represents a repeated Value.

Generated from protobuf field .google.protobuf.ListValue list_value = 6;

Return Value

ListValue

at line 161
setListValue(ListValue $var)

Represents a repeated Value.

Generated from protobuf field .google.protobuf.ListValue list_value = 6;

Parameters

ListValue $var

at line 170
string getKind()

Return Value

string