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 | |
---|---|
Name | Description |
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 |
getStringValue
A string up to 256 bytes long.
Generated from protobuf field .google.devtools.cloudtrace.v2.TruncatableString string_value = 1;
Returns | |
---|---|
Type | Description |
Google\Cloud\Trace\V2\TruncatableString|null |
hasStringValue
setStringValue
A string up to 256 bytes long.
Generated from protobuf field .google.devtools.cloudtrace.v2.TruncatableString string_value = 1;
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Trace\V2\TruncatableString
|
Returns | |
---|---|
Type | Description |
$this |
getIntValue
A 64-bit signed integer.
Generated from protobuf field int64 int_value = 2;
Returns | |
---|---|
Type | Description |
int|string |
hasIntValue
setIntValue
A 64-bit signed integer.
Generated from protobuf field int64 int_value = 2;
Parameter | |
---|---|
Name | Description |
var |
int|string
|
Returns | |
---|---|
Type | Description |
$this |
getBoolValue
A Boolean value represented by true
or false
.
Generated from protobuf field bool bool_value = 3;
Returns | |
---|---|
Type | Description |
bool |
hasBoolValue
setBoolValue
A Boolean value represented by true
or false
.
Generated from protobuf field bool bool_value = 3;
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |
getValue
Returns | |
---|---|
Type | Description |
string |