OpenTelemetry PHP

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

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|null

getBoolValue()

Generated from protobuf field <code>bool bool_value = 2;</code>

public getBoolValue() : bool
Return values
bool

getBytesValue()

Generated from protobuf field <code>bytes bytes_value = 7;</code>

public getBytesValue() : string
Return values
string

getDoubleValue()

Generated from protobuf field <code>double double_value = 4;</code>

public getDoubleValue() : float
Return values
float

getIntValue()

Generated from protobuf field <code>int64 int_value = 3;</code>

public getIntValue() : int|string
Return values
int|string

getKvlistValue()

Generated from protobuf field <code>.opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6;</code>

public getKvlistValue() : KeyValueList|null
Return values
KeyValueList|null

getStringValue()

Generated from protobuf field <code>string string_value = 1;</code>

public getStringValue() : string
Return values
string

getValue()

public getValue() : string
Return values
string

hasArrayValue()

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
$this

setBoolValue()

Generated from protobuf field <code>bool bool_value = 2;</code>

public setBoolValue(bool $var) : $this
Parameters
$var : bool
Return values
$this

setBytesValue()

Generated from protobuf field <code>bytes bytes_value = 7;</code>

public setBytesValue(string $var) : $this
Parameters
$var : string
Return values
$this

setDoubleValue()

Generated from protobuf field <code>double double_value = 4;</code>

public setDoubleValue(float $var) : $this
Parameters
$var : float
Return values
$this

setIntValue()

Generated from protobuf field <code>int64 int_value = 3;</code>

public setIntValue(int|string $var) : $this
Parameters
$var : int|string
Return values
$this

setKvlistValue()

Generated from protobuf field <code>.opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6;</code>

public setKvlistValue(KeyValueList $var) : $this
Parameters
$var : KeyValueList
Return values
$this

setStringValue()

Generated from protobuf field <code>string string_value = 1;</code>

public setStringValue(string $var) : $this
Parameters
$var : string
Return values
$this

        
On this page

Search results