AnyValue
extends Message
in package
AnyValue is used to represent any type of attribute value. AnyValue may contain a primitive value such as a string or integer or it may contain an arbitrary nested object containing arrays, key-value lists and primitives.
Generated from protobuf message opentelemetry.proto.common.v1.AnyValue
Table of Contents
Properties
- $value : mixed
Methods
- __construct() : mixed
- Constructor.
- getArrayValue() : ArrayValue|null
- Generated from protobuf field <code>.opentelemetry.proto.common.v1.ArrayValue array_value = 5;</code>
- getBoolValue() : bool
- Generated from protobuf field <code>bool bool_value = 2;</code>
- getBytesValue() : string
- Generated from protobuf field <code>bytes bytes_value = 7;</code>
- getDoubleValue() : float
- Generated from protobuf field <code>double double_value = 4;</code>
- getIntValue() : int|string
- Generated from protobuf field <code>int64 int_value = 3;</code>
- getKvlistValue() : KeyValueList|null
- Generated from protobuf field <code>.opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6;</code>
- getStringValue() : string
- Generated from protobuf field <code>string string_value = 1;</code>
- getValue() : string
- hasArrayValue() : mixed
- hasBoolValue() : mixed
- hasBytesValue() : mixed
- hasDoubleValue() : mixed
- hasIntValue() : mixed
- hasKvlistValue() : mixed
- hasStringValue() : mixed
- setArrayValue() : $this
- Generated from protobuf field <code>.opentelemetry.proto.common.v1.ArrayValue array_value = 5;</code>
- setBoolValue() : $this
- Generated from protobuf field <code>bool bool_value = 2;</code>
- setBytesValue() : $this
- Generated from protobuf field <code>bytes bytes_value = 7;</code>
- setDoubleValue() : $this
- Generated from protobuf field <code>double double_value = 4;</code>
- setIntValue() : $this
- Generated from protobuf field <code>int64 int_value = 3;</code>
- setKvlistValue() : $this
- Generated from protobuf field <code>.opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6;</code>
- setStringValue() : $this
- Generated from protobuf field <code>string string_value = 1;</code>
Properties
$value
protected
mixed
$value
Methods
__construct()
Constructor.
public
__construct([array<string|int, mixed> $data = NULL ]) : mixed
Parameters
- $data : array<string|int, mixed> = NULL
-
{ Optional. Data for populating the Message object.
@type string $string_value @type bool $bool_value @type int|string $int_value @type float $double_value @type \Opentelemetry\Proto\Common\V1\ArrayValue $array_value @type \Opentelemetry\Proto\Common\V1\KeyValueList $kvlist_value @type string $bytes_value
}
getArrayValue()
Generated from protobuf field <code>.opentelemetry.proto.common.v1.ArrayValue array_value = 5;</code>
public
getArrayValue() : ArrayValue|null
Return values
ArrayValue|nullgetBoolValue()
Generated from protobuf field <code>bool bool_value = 2;</code>
public
getBoolValue() : bool
Return values
boolgetBytesValue()
Generated from protobuf field <code>bytes bytes_value = 7;</code>
public
getBytesValue() : string
Return values
stringgetDoubleValue()
Generated from protobuf field <code>double double_value = 4;</code>
public
getDoubleValue() : float
Return values
floatgetIntValue()
Generated from protobuf field <code>int64 int_value = 3;</code>
public
getIntValue() : int|string
Return values
int|stringgetKvlistValue()
Generated from protobuf field <code>.opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6;</code>
public
getKvlistValue() : KeyValueList|null
Return values
KeyValueList|nullgetStringValue()
Generated from protobuf field <code>string string_value = 1;</code>
public
getStringValue() : string
Return values
stringgetValue()
public
getValue() : string
Return values
stringhasArrayValue()
public
hasArrayValue() : mixed
hasBoolValue()
public
hasBoolValue() : mixed
hasBytesValue()
public
hasBytesValue() : mixed
hasDoubleValue()
public
hasDoubleValue() : mixed
hasIntValue()
public
hasIntValue() : mixed
hasKvlistValue()
public
hasKvlistValue() : mixed
hasStringValue()
public
hasStringValue() : mixed
setArrayValue()
Generated from protobuf field <code>.opentelemetry.proto.common.v1.ArrayValue array_value = 5;</code>
public
setArrayValue(ArrayValue $var) : $this
Parameters
- $var : ArrayValue
Return values
$thissetBoolValue()
Generated from protobuf field <code>bool bool_value = 2;</code>
public
setBoolValue(bool $var) : $this
Parameters
- $var : bool
Return values
$thissetBytesValue()
Generated from protobuf field <code>bytes bytes_value = 7;</code>
public
setBytesValue(string $var) : $this
Parameters
- $var : string
Return values
$thissetDoubleValue()
Generated from protobuf field <code>double double_value = 4;</code>
public
setDoubleValue(float $var) : $this
Parameters
- $var : float
Return values
$thissetIntValue()
Generated from protobuf field <code>int64 int_value = 3;</code>
public
setIntValue(int|string $var) : $this
Parameters
- $var : int|string
Return values
$thissetKvlistValue()
Generated from protobuf field <code>.opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6;</code>
public
setKvlistValue(KeyValueList $var) : $this
Parameters
- $var : KeyValueList
Return values
$thissetStringValue()
Generated from protobuf field <code>string string_value = 1;</code>
public
setStringValue(string $var) : $this
Parameters
- $var : string