OpenTelemetry PHP

StringKeyValue extends Message
in package

StringKeyValue is a pair of key/value strings. This is the simpler (and faster) version of KeyValue that only supports string values.

Generated from protobuf message opentelemetry.proto.common.v1.StringKeyValue

Table of Contents

Properties

$key  : mixed
Generated from protobuf field <code>string key = 1;</code>
$value  : mixed
Generated from protobuf field <code>string value = 2;</code>

Methods

__construct()  : mixed
Constructor.
getKey()  : string
Generated from protobuf field <code>string key = 1;</code>
getValue()  : string
Generated from protobuf field <code>string value = 2;</code>
setKey()  : $this
Generated from protobuf field <code>string key = 1;</code>
setValue()  : $this
Generated from protobuf field <code>string value = 2;</code>

Properties

$key

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

protected mixed $key = ''

$value

Generated from protobuf field <code>string value = 2;</code>

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 $key
@type string $value

}

getKey()

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

public getKey() : string
Return values
string

getValue()

Generated from protobuf field <code>string value = 2;</code>

public getValue() : string
Return values
string

setKey()

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

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

setValue()

Generated from protobuf field <code>string value = 2;</code>

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

        
On this page

Search results