"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
    if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
    if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
    return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.opentelemetry = void 0;
/**
 * Generated by the protoc-gen-ts.  DO NOT EDIT!
 * compiler version: 5.27.0
 * source: opentelemetry/proto/common/v1/common.proto
 * git: https://github.com/thesayyn/protoc-gen-ts */
const pb_1 = __importStar(require("google-protobuf"));
var opentelemetry;
(function (opentelemetry) {
    var proto;
    (function (proto) {
        var common;
        (function (common) {
            var v1;
            (function (v1) {
                var _AnyValue_one_of_decls, _ArrayValue_one_of_decls, _KeyValueList_one_of_decls, _KeyValue_one_of_decls, _InstrumentationScope_one_of_decls, _EntityRef_one_of_decls;
                class AnyValue extends pb_1.Message {
                    constructor(data) {
                        super();
                        _AnyValue_one_of_decls.set(this, [[1, 2, 3, 4, 5, 6, 7]]);
                        pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __classPrivateFieldGet(this, _AnyValue_one_of_decls, "f"));
                        if (!Array.isArray(data) && typeof data == 'object') {
                            if ('string_value' in data && data.string_value != undefined) {
                                this.string_value = data.string_value;
                            }
                            if ('bool_value' in data && data.bool_value != undefined) {
                                this.bool_value = data.bool_value;
                            }
                            if ('int_value' in data && data.int_value != undefined) {
                                this.int_value = data.int_value;
                            }
                            if ('double_value' in data && data.double_value != undefined) {
                                this.double_value = data.double_value;
                            }
                            if ('array_value' in data && data.array_value != undefined) {
                                this.array_value = data.array_value;
                            }
                            if ('kvlist_value' in data && data.kvlist_value != undefined) {
                                this.kvlist_value = data.kvlist_value;
                            }
                            if ('bytes_value' in data && data.bytes_value != undefined) {
                                this.bytes_value = data.bytes_value;
                            }
                        }
                    }
                    get string_value() {
                        return pb_1.Message.getFieldWithDefault(this, 1, '');
                    }
                    set string_value(value) {
                        pb_1.Message.setOneofField(this, 1, __classPrivateFieldGet(this, _AnyValue_one_of_decls, "f")[0], value);
                    }
                    get has_string_value() {
                        return pb_1.Message.getField(this, 1) != null;
                    }
                    get bool_value() {
                        return pb_1.Message.getFieldWithDefault(this, 2, false);
                    }
                    set bool_value(value) {
                        pb_1.Message.setOneofField(this, 2, __classPrivateFieldGet(this, _AnyValue_one_of_decls, "f")[0], value);
                    }
                    get has_bool_value() {
                        return pb_1.Message.getField(this, 2) != null;
                    }
                    get int_value() {
                        return pb_1.Message.getFieldWithDefault(this, 3, 0);
                    }
                    set int_value(value) {
                        pb_1.Message.setOneofField(this, 3, __classPrivateFieldGet(this, _AnyValue_one_of_decls, "f")[0], value);
                    }
                    get has_int_value() {
                        return pb_1.Message.getField(this, 3) != null;
                    }
                    get double_value() {
                        return pb_1.Message.getFieldWithDefault(this, 4, 0);
                    }
                    set double_value(value) {
                        pb_1.Message.setOneofField(this, 4, __classPrivateFieldGet(this, _AnyValue_one_of_decls, "f")[0], value);
                    }
                    get has_double_value() {
                        return pb_1.Message.getField(this, 4) != null;
                    }
                    get array_value() {
                        return pb_1.Message.getWrapperField(this, ArrayValue, 5);
                    }
                    set array_value(value) {
                        pb_1.Message.setOneofWrapperField(this, 5, __classPrivateFieldGet(this, _AnyValue_one_of_decls, "f")[0], value);
                    }
                    get has_array_value() {
                        return pb_1.Message.getField(this, 5) != null;
                    }
                    get kvlist_value() {
                        return pb_1.Message.getWrapperField(this, KeyValueList, 6);
                    }
                    set kvlist_value(value) {
                        pb_1.Message.setOneofWrapperField(this, 6, __classPrivateFieldGet(this, _AnyValue_one_of_decls, "f")[0], value);
                    }
                    get has_kvlist_value() {
                        return pb_1.Message.getField(this, 6) != null;
                    }
                    get bytes_value() {
                        return pb_1.Message.getFieldWithDefault(this, 7, new Uint8Array(0));
                    }
                    set bytes_value(value) {
                        pb_1.Message.setOneofField(this, 7, __classPrivateFieldGet(this, _AnyValue_one_of_decls, "f")[0], value);
                    }
                    get has_bytes_value() {
                        return pb_1.Message.getField(this, 7) != null;
                    }
                    get value() {
                        const cases = {
                            0: 'none',
                            1: 'string_value',
                            2: 'bool_value',
                            3: 'int_value',
                            4: 'double_value',
                            5: 'array_value',
                            6: 'kvlist_value',
                            7: 'bytes_value',
                        };
                        return cases[pb_1.Message.computeOneofCase(this, [1, 2, 3, 4, 5, 6, 7])];
                    }
                    static fromObject(data) {
                        const message = new AnyValue({});
                        if (data.string_value != null) {
                            message.string_value = data.string_value;
                        }
                        if (data.bool_value != null) {
                            message.bool_value = data.bool_value;
                        }
                        if (data.int_value != null) {
                            message.int_value = data.int_value;
                        }
                        if (data.double_value != null) {
                            message.double_value = data.double_value;
                        }
                        if (data.array_value != null) {
                            message.array_value = ArrayValue.fromObject(data.array_value);
                        }
                        if (data.kvlist_value != null) {
                            message.kvlist_value = KeyValueList.fromObject(data.kvlist_value);
                        }
                        if (data.bytes_value != null) {
                            message.bytes_value = data.bytes_value;
                        }
                        return message;
                    }
                    toObject() {
                        const data = {};
                        if (this.string_value != null) {
                            data.string_value = this.string_value;
                        }
                        if (this.bool_value != null) {
                            data.bool_value = this.bool_value;
                        }
                        if (this.int_value != null) {
                            data.int_value = this.int_value;
                        }
                        if (this.double_value != null) {
                            data.double_value = this.double_value;
                        }
                        if (this.array_value != null) {
                            data.array_value = this.array_value.toObject();
                        }
                        if (this.kvlist_value != null) {
                            data.kvlist_value = this.kvlist_value.toObject();
                        }
                        if (this.bytes_value != null) {
                            data.bytes_value = this.bytes_value;
                        }
                        return data;
                    }
                    serialize(w) {
                        const writer = w || new pb_1.BinaryWriter();
                        if (this.has_string_value)
                            writer.writeString(1, this.string_value);
                        if (this.has_bool_value)
                            writer.writeBool(2, this.bool_value);
                        if (this.has_int_value)
                            writer.writeInt64(3, this.int_value);
                        if (this.has_double_value)
                            writer.writeDouble(4, this.double_value);
                        if (this.has_array_value)
                            writer.writeMessage(5, this.array_value, () => this.array_value.serialize(writer));
                        if (this.has_kvlist_value)
                            writer.writeMessage(6, this.kvlist_value, () => this.kvlist_value.serialize(writer));
                        if (this.has_bytes_value)
                            writer.writeBytes(7, this.bytes_value);
                        if (!w)
                            return writer.getResultBuffer();
                    }
                    static deserialize(bytes) {
                        const reader = bytes instanceof pb_1.BinaryReader
                            ? bytes
                            : new pb_1.BinaryReader(bytes), message = new AnyValue();
                        while (reader.nextField()) {
                            if (reader.isEndGroup())
                                break;
                            switch (reader.getFieldNumber()) {
                                case 1:
                                    message.string_value = reader.readString();
                                    break;
                                case 2:
                                    message.bool_value = reader.readBool();
                                    break;
                                case 3:
                                    message.int_value = reader.readInt64();
                                    break;
                                case 4:
                                    message.double_value = reader.readDouble();
                                    break;
                                case 5:
                                    reader.readMessage(message.array_value, () => (message.array_value =
                                        ArrayValue.deserialize(reader)));
                                    break;
                                case 6:
                                    reader.readMessage(message.kvlist_value, () => (message.kvlist_value =
                                        KeyValueList.deserialize(reader)));
                                    break;
                                case 7:
                                    message.bytes_value = reader.readBytes();
                                    break;
                                default:
                                    reader.skipField();
                            }
                        }
                        return message;
                    }
                    serializeBinary() {
                        return this.serialize();
                    }
                    static deserializeBinary(bytes) {
                        return AnyValue.deserialize(bytes);
                    }
                }
                _AnyValue_one_of_decls = new WeakMap();
                v1.AnyValue = AnyValue;
                class ArrayValue extends pb_1.Message {
                    constructor(data) {
                        super();
                        _ArrayValue_one_of_decls.set(this, []);
                        pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], __classPrivateFieldGet(this, _ArrayValue_one_of_decls, "f"));
                        if (!Array.isArray(data) && typeof data == 'object') {
                            if ('values' in data && data.values != undefined) {
                                this.values = data.values;
                            }
                        }
                    }
                    get values() {
                        return pb_1.Message.getRepeatedWrapperField(this, AnyValue, 1);
                    }
                    set values(value) {
                        pb_1.Message.setRepeatedWrapperField(this, 1, value);
                    }
                    static fromObject(data) {
                        const message = new ArrayValue({});
                        if (data.values != null) {
                            message.values = data.values.map((item) => AnyValue.fromObject(item));
                        }
                        return message;
                    }
                    toObject() {
                        const data = {};
                        if (this.values != null) {
                            data.values = this.values.map((item) => item.toObject());
                        }
                        return data;
                    }
                    serialize(w) {
                        const writer = w || new pb_1.BinaryWriter();
                        if (this.values.length)
                            writer.writeRepeatedMessage(1, this.values, (item) => item.serialize(writer));
                        if (!w)
                            return writer.getResultBuffer();
                    }
                    static deserialize(bytes) {
                        const reader = bytes instanceof pb_1.BinaryReader
                            ? bytes
                            : new pb_1.BinaryReader(bytes), message = new ArrayValue();
                        while (reader.nextField()) {
                            if (reader.isEndGroup())
                                break;
                            switch (reader.getFieldNumber()) {
                                case 1:
                                    reader.readMessage(message.values, () => pb_1.Message.addToRepeatedWrapperField(message, 1, AnyValue.deserialize(reader), AnyValue));
                                    break;
                                default:
                                    reader.skipField();
                            }
                        }
                        return message;
                    }
                    serializeBinary() {
                        return this.serialize();
                    }
                    static deserializeBinary(bytes) {
                        return ArrayValue.deserialize(bytes);
                    }
                }
                _ArrayValue_one_of_decls = new WeakMap();
                v1.ArrayValue = ArrayValue;
                class KeyValueList extends pb_1.Message {
                    constructor(data) {
                        super();
                        _KeyValueList_one_of_decls.set(this, []);
                        pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], __classPrivateFieldGet(this, _KeyValueList_one_of_decls, "f"));
                        if (!Array.isArray(data) && typeof data == 'object') {
                            if ('values' in data && data.values != undefined) {
                                this.values = data.values;
                            }
                        }
                    }
                    get values() {
                        return pb_1.Message.getRepeatedWrapperField(this, KeyValue, 1);
                    }
                    set values(value) {
                        pb_1.Message.setRepeatedWrapperField(this, 1, value);
                    }
                    static fromObject(data) {
                        const message = new KeyValueList({});
                        if (data.values != null) {
                            message.values = data.values.map((item) => KeyValue.fromObject(item));
                        }
                        return message;
                    }
                    toObject() {
                        const data = {};
                        if (this.values != null) {
                            data.values = this.values.map((item) => item.toObject());
                        }
                        return data;
                    }
                    serialize(w) {
                        const writer = w || new pb_1.BinaryWriter();
                        if (this.values.length)
                            writer.writeRepeatedMessage(1, this.values, (item) => item.serialize(writer));
                        if (!w)
                            return writer.getResultBuffer();
                    }
                    static deserialize(bytes) {
                        const reader = bytes instanceof pb_1.BinaryReader
                            ? bytes
                            : new pb_1.BinaryReader(bytes), message = new KeyValueList();
                        while (reader.nextField()) {
                            if (reader.isEndGroup())
                                break;
                            switch (reader.getFieldNumber()) {
                                case 1:
                                    reader.readMessage(message.values, () => pb_1.Message.addToRepeatedWrapperField(message, 1, KeyValue.deserialize(reader), KeyValue));
                                    break;
                                default:
                                    reader.skipField();
                            }
                        }
                        return message;
                    }
                    serializeBinary() {
                        return this.serialize();
                    }
                    static deserializeBinary(bytes) {
                        return KeyValueList.deserialize(bytes);
                    }
                }
                _KeyValueList_one_of_decls = new WeakMap();
                v1.KeyValueList = KeyValueList;
                class KeyValue extends pb_1.Message {
                    constructor(data) {
                        super();
                        _KeyValue_one_of_decls.set(this, []);
                        pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __classPrivateFieldGet(this, _KeyValue_one_of_decls, "f"));
                        if (!Array.isArray(data) && typeof data == 'object') {
                            if ('key' in data && data.key != undefined) {
                                this.key = data.key;
                            }
                            if ('value' in data && data.value != undefined) {
                                this.value = data.value;
                            }
                        }
                    }
                    get key() {
                        return pb_1.Message.getFieldWithDefault(this, 1, '');
                    }
                    set key(value) {
                        pb_1.Message.setField(this, 1, value);
                    }
                    get value() {
                        return pb_1.Message.getWrapperField(this, AnyValue, 2);
                    }
                    set value(value) {
                        pb_1.Message.setWrapperField(this, 2, value);
                    }
                    get has_value() {
                        return pb_1.Message.getField(this, 2) != null;
                    }
                    static fromObject(data) {
                        const message = new KeyValue({});
                        if (data.key != null) {
                            message.key = data.key;
                        }
                        if (data.value != null) {
                            message.value = AnyValue.fromObject(data.value);
                        }
                        return message;
                    }
                    toObject() {
                        const data = {};
                        if (this.key != null) {
                            data.key = this.key;
                        }
                        if (this.value != null) {
                            data.value = this.value.toObject();
                        }
                        return data;
                    }
                    serialize(w) {
                        const writer = w || new pb_1.BinaryWriter();
                        if (this.key.length)
                            writer.writeString(1, this.key);
                        if (this.has_value)
                            writer.writeMessage(2, this.value, () => this.value.serialize(writer));
                        if (!w)
                            return writer.getResultBuffer();
                    }
                    static deserialize(bytes) {
                        const reader = bytes instanceof pb_1.BinaryReader
                            ? bytes
                            : new pb_1.BinaryReader(bytes), message = new KeyValue();
                        while (reader.nextField()) {
                            if (reader.isEndGroup())
                                break;
                            switch (reader.getFieldNumber()) {
                                case 1:
                                    message.key = reader.readString();
                                    break;
                                case 2:
                                    reader.readMessage(message.value, () => (message.value = AnyValue.deserialize(reader)));
                                    break;
                                default:
                                    reader.skipField();
                            }
                        }
                        return message;
                    }
                    serializeBinary() {
                        return this.serialize();
                    }
                    static deserializeBinary(bytes) {
                        return KeyValue.deserialize(bytes);
                    }
                }
                _KeyValue_one_of_decls = new WeakMap();
                v1.KeyValue = KeyValue;
                class InstrumentationScope extends pb_1.Message {
                    constructor(data) {
                        super();
                        _InstrumentationScope_one_of_decls.set(this, []);
                        pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [3], __classPrivateFieldGet(this, _InstrumentationScope_one_of_decls, "f"));
                        if (!Array.isArray(data) && typeof data == 'object') {
                            if ('name' in data && data.name != undefined) {
                                this.name = data.name;
                            }
                            if ('version' in data && data.version != undefined) {
                                this.version = data.version;
                            }
                            if ('attributes' in data && data.attributes != undefined) {
                                this.attributes = data.attributes;
                            }
                            if ('dropped_attributes_count' in data &&
                                data.dropped_attributes_count != undefined) {
                                this.dropped_attributes_count =
                                    data.dropped_attributes_count;
                            }
                        }
                    }
                    get name() {
                        return pb_1.Message.getFieldWithDefault(this, 1, '');
                    }
                    set name(value) {
                        pb_1.Message.setField(this, 1, value);
                    }
                    get version() {
                        return pb_1.Message.getFieldWithDefault(this, 2, '');
                    }
                    set version(value) {
                        pb_1.Message.setField(this, 2, value);
                    }
                    get attributes() {
                        return pb_1.Message.getRepeatedWrapperField(this, KeyValue, 3);
                    }
                    set attributes(value) {
                        pb_1.Message.setRepeatedWrapperField(this, 3, value);
                    }
                    get dropped_attributes_count() {
                        return pb_1.Message.getFieldWithDefault(this, 4, 0);
                    }
                    set dropped_attributes_count(value) {
                        pb_1.Message.setField(this, 4, value);
                    }
                    static fromObject(data) {
                        const message = new InstrumentationScope({});
                        if (data.name != null) {
                            message.name = data.name;
                        }
                        if (data.version != null) {
                            message.version = data.version;
                        }
                        if (data.attributes != null) {
                            message.attributes = data.attributes.map((item) => KeyValue.fromObject(item));
                        }
                        if (data.dropped_attributes_count != null) {
                            message.dropped_attributes_count =
                                data.dropped_attributes_count;
                        }
                        return message;
                    }
                    toObject() {
                        const data = {};
                        if (this.name != null) {
                            data.name = this.name;
                        }
                        if (this.version != null) {
                            data.version = this.version;
                        }
                        if (this.attributes != null) {
                            data.attributes = this.attributes.map((item) => item.toObject());
                        }
                        if (this.dropped_attributes_count != null) {
                            data.dropped_attributes_count = this.dropped_attributes_count;
                        }
                        return data;
                    }
                    serialize(w) {
                        const writer = w || new pb_1.BinaryWriter();
                        if (this.name.length)
                            writer.writeString(1, this.name);
                        if (this.version.length)
                            writer.writeString(2, this.version);
                        if (this.attributes.length)
                            writer.writeRepeatedMessage(3, this.attributes, (item) => item.serialize(writer));
                        if (this.dropped_attributes_count != 0)
                            writer.writeUint32(4, this.dropped_attributes_count);
                        if (!w)
                            return writer.getResultBuffer();
                    }
                    static deserialize(bytes) {
                        const reader = bytes instanceof pb_1.BinaryReader
                            ? bytes
                            : new pb_1.BinaryReader(bytes), message = new InstrumentationScope();
                        while (reader.nextField()) {
                            if (reader.isEndGroup())
                                break;
                            switch (reader.getFieldNumber()) {
                                case 1:
                                    message.name = reader.readString();
                                    break;
                                case 2:
                                    message.version = reader.readString();
                                    break;
                                case 3:
                                    reader.readMessage(message.attributes, () => pb_1.Message.addToRepeatedWrapperField(message, 3, KeyValue.deserialize(reader), KeyValue));
                                    break;
                                case 4:
                                    message.dropped_attributes_count = reader.readUint32();
                                    break;
                                default:
                                    reader.skipField();
                            }
                        }
                        return message;
                    }
                    serializeBinary() {
                        return this.serialize();
                    }
                    static deserializeBinary(bytes) {
                        return InstrumentationScope.deserialize(bytes);
                    }
                }
                _InstrumentationScope_one_of_decls = new WeakMap();
                v1.InstrumentationScope = InstrumentationScope;
                class EntityRef extends pb_1.Message {
                    constructor(data) {
                        super();
                        _EntityRef_one_of_decls.set(this, []);
                        pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [3, 4], __classPrivateFieldGet(this, _EntityRef_one_of_decls, "f"));
                        if (!Array.isArray(data) && typeof data == 'object') {
                            if ('schema_url' in data && data.schema_url != undefined) {
                                this.schema_url = data.schema_url;
                            }
                            if ('type' in data && data.type != undefined) {
                                this.type = data.type;
                            }
                            if ('id_keys' in data && data.id_keys != undefined) {
                                this.id_keys = data.id_keys;
                            }
                            if ('description_keys' in data &&
                                data.description_keys != undefined) {
                                this.description_keys = data.description_keys;
                            }
                        }
                    }
                    get schema_url() {
                        return pb_1.Message.getFieldWithDefault(this, 1, '');
                    }
                    set schema_url(value) {
                        pb_1.Message.setField(this, 1, value);
                    }
                    get type() {
                        return pb_1.Message.getFieldWithDefault(this, 2, '');
                    }
                    set type(value) {
                        pb_1.Message.setField(this, 2, value);
                    }
                    get id_keys() {
                        return pb_1.Message.getFieldWithDefault(this, 3, []);
                    }
                    set id_keys(value) {
                        pb_1.Message.setField(this, 3, value);
                    }
                    get description_keys() {
                        return pb_1.Message.getFieldWithDefault(this, 4, []);
                    }
                    set description_keys(value) {
                        pb_1.Message.setField(this, 4, value);
                    }
                    static fromObject(data) {
                        const message = new EntityRef({});
                        if (data.schema_url != null) {
                            message.schema_url = data.schema_url;
                        }
                        if (data.type != null) {
                            message.type = data.type;
                        }
                        if (data.id_keys != null) {
                            message.id_keys = data.id_keys;
                        }
                        if (data.description_keys != null) {
                            message.description_keys = data.description_keys;
                        }
                        return message;
                    }
                    toObject() {
                        const data = {};
                        if (this.schema_url != null) {
                            data.schema_url = this.schema_url;
                        }
                        if (this.type != null) {
                            data.type = this.type;
                        }
                        if (this.id_keys != null) {
                            data.id_keys = this.id_keys;
                        }
                        if (this.description_keys != null) {
                            data.description_keys = this.description_keys;
                        }
                        return data;
                    }
                    serialize(w) {
                        const writer = w || new pb_1.BinaryWriter();
                        if (this.schema_url.length)
                            writer.writeString(1, this.schema_url);
                        if (this.type.length)
                            writer.writeString(2, this.type);
                        if (this.id_keys.length)
                            writer.writeRepeatedString(3, this.id_keys);
                        if (this.description_keys.length)
                            writer.writeRepeatedString(4, this.description_keys);
                        if (!w)
                            return writer.getResultBuffer();
                    }
                    static deserialize(bytes) {
                        const reader = bytes instanceof pb_1.BinaryReader
                            ? bytes
                            : new pb_1.BinaryReader(bytes), message = new EntityRef();
                        while (reader.nextField()) {
                            if (reader.isEndGroup())
                                break;
                            switch (reader.getFieldNumber()) {
                                case 1:
                                    message.schema_url = reader.readString();
                                    break;
                                case 2:
                                    message.type = reader.readString();
                                    break;
                                case 3:
                                    pb_1.Message.addToRepeatedField(message, 3, reader.readString());
                                    break;
                                case 4:
                                    pb_1.Message.addToRepeatedField(message, 4, reader.readString());
                                    break;
                                default:
                                    reader.skipField();
                            }
                        }
                        return message;
                    }
                    serializeBinary() {
                        return this.serialize();
                    }
                    static deserializeBinary(bytes) {
                        return EntityRef.deserialize(bytes);
                    }
                }
                _EntityRef_one_of_decls = new WeakMap();
                v1.EntityRef = EntityRef;
            })(v1 = common.v1 || (common.v1 = {}));
        })(common = proto.common || (proto.common = {}));
    })(proto = opentelemetry.proto || (opentelemetry.proto = {}));
})(opentelemetry || (exports.opentelemetry = opentelemetry = {}));
