"use strict";
// automatically generated by the FlatBuffers compiler, do not modify
Object.defineProperty(exports, "__esModule", { value: true });
exports.TraceInfo = void 0;
exports.unionToTraceInfo = unionToTraceInfo;
exports.unionListToTraceInfo = unionListToTraceInfo;
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
const bwe_trace_info_1 = require("../../fbs/transport/bwe-trace-info");
var TraceInfo;
(function (TraceInfo) {
    TraceInfo[TraceInfo["NONE"] = 0] = "NONE";
    TraceInfo[TraceInfo["BweTraceInfo"] = 1] = "BweTraceInfo";
})(TraceInfo || (exports.TraceInfo = TraceInfo = {}));
function unionToTraceInfo(type, accessor) {
    switch (TraceInfo[type]) {
        case 'NONE': return null;
        case 'BweTraceInfo': return accessor(new bwe_trace_info_1.BweTraceInfo());
        default: return null;
    }
}
function unionListToTraceInfo(type, accessor, index) {
    switch (TraceInfo[type]) {
        case 'NONE': return null;
        case 'BweTraceInfo': return accessor(index, new bwe_trace_info_1.BweTraceInfo());
        default: return null;
    }
}
