function KeyValueList::__construct
Constructor.
Parameters
array $data {: Optional. Data for populating the Message object.
@type \Opentelemetry\Proto\Common\V1\KeyValue[]|\Google\Protobuf\Internal\RepeatedField $values A collection of key/value pairs of key-value pairs. The list may be empty (may contain 0 elements). The keys MUST be unique (it is not allowed to have more than one value with the same key). }
Overrides Message::__construct
File
-
vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Common/ V1/ KeyValueList.php, line 45
Class
- KeyValueList
- KeyValueList is a list of KeyValue messages. We need KeyValueList as a message since `oneof` in AnyValue does not allow repeated fields. Everywhere else where we need a list of KeyValue messages (e.g. in Span) we use `repeated KeyValue` directly…
Namespace
Opentelemetry\Proto\Common\V1Code
public function __construct($data = NULL) {
\GPBMetadata\Opentelemetry\Proto\Common\V1\Common::initOnce();
parent::__construct($data);
}