import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; import type { IBinaryWriter } from "@protobuf-ts/runtime"; import type { BinaryReadOptions } from "@protobuf-ts/runtime"; import type { IBinaryReader } from "@protobuf-ts/runtime"; import type { PartialMessage } from "@protobuf-ts/runtime"; import { MessageType } from "@protobuf-ts/runtime"; /** * 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 */ export interface AnyValue { /** * @generated from protobuf oneof: value */ value: { oneofKind: "stringValue"; /** * @generated from protobuf field: string string_value = 1; */ stringValue: string; } | { oneofKind: "boolValue"; /** * @generated from protobuf field: bool bool_value = 2; */ boolValue: boolean; } | { oneofKind: "intValue"; /** * @generated from protobuf field: int64 int_value = 3; */ intValue: bigint; } | { oneofKind: "doubleValue"; /** * @generated from protobuf field: double double_value = 4; */ doubleValue: number; } | { oneofKind: "arrayValue"; /** * @generated from protobuf field: opentelemetry.proto.common.v1.ArrayValue array_value = 5; */ arrayValue: ArrayValue; } | { oneofKind: "kvlistValue"; /** * @generated from protobuf field: opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6; */ kvlistValue: KeyValueList; } | { oneofKind: "bytesValue"; /** * @generated from protobuf field: bytes bytes_value = 7; */ bytesValue: Uint8Array; } | { oneofKind: undefined; }; } /** * ArrayValue is a list of AnyValue messages. We need ArrayValue as a message * since oneof in AnyValue does not allow repeated fields. * * @generated from protobuf message opentelemetry.proto.common.v1.ArrayValue */ export interface ArrayValue { /** * Array of values. The array may be empty (contain 0 elements). * * @generated from protobuf field: repeated opentelemetry.proto.common.v1.AnyValue values = 1; */ values: AnyValue[]; } /** * 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 to * avoid unnecessary extra wrapping (which slows down the protocol). The 2 approaches * are semantically equivalent. * * @generated from protobuf message opentelemetry.proto.common.v1.KeyValueList */ export interface KeyValueList { /** * 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). * * @generated from protobuf field: repeated opentelemetry.proto.common.v1.KeyValue values = 1; */ values: KeyValue[]; } /** * KeyValue is a key-value pair that is used to store Span attributes, Link * attributes, etc. * * @generated from protobuf message opentelemetry.proto.common.v1.KeyValue */ export interface KeyValue { /** * @generated from protobuf field: string key = 1; */ key: string; /** * @generated from protobuf field: opentelemetry.proto.common.v1.AnyValue value = 2; */ value?: AnyValue; } /** * InstrumentationScope is a message representing the instrumentation scope information * such as the fully qualified name and version. * * @generated from protobuf message opentelemetry.proto.common.v1.InstrumentationScope */ export interface InstrumentationScope { /** * An empty instrumentation scope name means the name is unknown. * * @generated from protobuf field: string name = 1; */ name: string; /** * @generated from protobuf field: string version = 2; */ version: string; /** * Additional attributes that describe the scope. [Optional]. * Attribute keys MUST be unique (it is not allowed to have more than one * attribute with the same key). * * @generated from protobuf field: repeated opentelemetry.proto.common.v1.KeyValue attributes = 3; */ attributes: KeyValue[]; /** * @generated from protobuf field: uint32 dropped_attributes_count = 4; */ droppedAttributesCount: number; } declare class AnyValue$Type extends MessageType { constructor(); create(value?: PartialMessage): AnyValue; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AnyValue): AnyValue; internalBinaryWrite(message: AnyValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message opentelemetry.proto.common.v1.AnyValue */ export declare const AnyValue: AnyValue$Type; declare class ArrayValue$Type extends MessageType { constructor(); create(value?: PartialMessage): ArrayValue; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ArrayValue): ArrayValue; internalBinaryWrite(message: ArrayValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message opentelemetry.proto.common.v1.ArrayValue */ export declare const ArrayValue: ArrayValue$Type; declare class KeyValueList$Type extends MessageType { constructor(); create(value?: PartialMessage): KeyValueList; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: KeyValueList): KeyValueList; internalBinaryWrite(message: KeyValueList, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message opentelemetry.proto.common.v1.KeyValueList */ export declare const KeyValueList: KeyValueList$Type; declare class KeyValue$Type extends MessageType { constructor(); create(value?: PartialMessage): KeyValue; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: KeyValue): KeyValue; internalBinaryWrite(message: KeyValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message opentelemetry.proto.common.v1.KeyValue */ export declare const KeyValue: KeyValue$Type; declare class InstrumentationScope$Type extends MessageType { constructor(); create(value?: PartialMessage): InstrumentationScope; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: InstrumentationScope): InstrumentationScope; internalBinaryWrite(message: InstrumentationScope, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message opentelemetry.proto.common.v1.InstrumentationScope */ export declare const InstrumentationScope: InstrumentationScope$Type; export {}; //# sourceMappingURL=common.d.ts.map