Stackdriver Trace V2 Client - Class AttributeValue (1.5.3)

Reference documentation and code samples for the Stackdriver Trace V2 Client class AttributeValue.

The allowed types for [VALUE] in a [KEY]:[VALUE] attribute.

Generated from protobuf message google.devtools.cloudtrace.v2.AttributeValue

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ string_value Google\Cloud\Trace\V2\TruncatableString

A string up to 256 bytes long.

↳ int_value int|string

A 64-bit signed integer.

↳ bool_value bool

A Boolean value represented by true or false.

getStringValue

A string up to 256 bytes long.

Returns
TypeDescription
Google\Cloud\Trace\V2\TruncatableString|null

hasStringValue

setStringValue

A string up to 256 bytes long.

Parameter
NameDescription
var Google\Cloud\Trace\V2\TruncatableString
Returns
TypeDescription
$this

getIntValue

A 64-bit signed integer.

Returns
TypeDescription
int|string

hasIntValue

setIntValue

A 64-bit signed integer.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getBoolValue

A Boolean value represented by true or false.

Returns
TypeDescription
bool

hasBoolValue

setBoolValue

A Boolean value represented by true or false.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getValue

Returns
TypeDescription
string