Google Cloud Channel V1 Client - Class Value (1.4.0)

Reference documentation and code samples for the Google Cloud Channel V1 Client class Value.

Data type and value of a parameter.

Generated from protobuf message google.cloud.channel.v1.Value

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ int64_value int|string

Represents an int64 value.

↳ string_value string

Represents a string value.

↳ double_value float

Represents a double value.

↳ proto_value Google\Protobuf\Any

Represents an 'Any' proto value.

↳ bool_value bool

Represents a boolean value.

getInt64Value

Represents an int64 value.

Returns
TypeDescription
int|string

hasInt64Value

setInt64Value

Represents an int64 value.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getStringValue

Represents a string value.

Returns
TypeDescription
string

hasStringValue

setStringValue

Represents a string value.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDoubleValue

Represents a double value.

Returns
TypeDescription
float

hasDoubleValue

setDoubleValue

Represents a double value.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getProtoValue

Represents an 'Any' proto value.

Returns
TypeDescription
Google\Protobuf\Any|null

hasProtoValue

setProtoValue

Represents an 'Any' proto value.

Parameter
NameDescription
var Google\Protobuf\Any
Returns
TypeDescription
$this

getBoolValue

Represents a boolean value.

Returns
TypeDescription
bool

hasBoolValue

setBoolValue

Represents a boolean value.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getKind

Returns
TypeDescription
string