"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (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 (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.org = void 0;
/**
 * Generated by the protoc-gen-ts.  DO NOT EDIT!
 * compiler version: 3.15.6
 * source: models/memory_usage_pb.proto
 * git: https://github.com/thesayyn/protoc-gen-ts
 * buymeacoffee: https://www.buymeacoffee.com/thesayyn
 *  */
const pb_1 = __importStar(require("google-protobuf"));
var org;
(function (org) {
    var hyperledger;
    (function (hyperledger) {
        var cactus;
        (function (cactus) {
            var cmd_api_server;
            (function (cmd_api_server) {
                class MemoryUsagePB extends pb_1.Message {
                    constructor(data) {
                        super();
                        pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []);
                        if (!Array.isArray(data) && typeof data == "object") {
                            if ("rss" in data && data.rss != undefined) {
                                this.rss = data.rss;
                            }
                            if ("heapTotal" in data && data.heapTotal != undefined) {
                                this.heapTotal = data.heapTotal;
                            }
                            if ("heapUsed" in data && data.heapUsed != undefined) {
                                this.heapUsed = data.heapUsed;
                            }
                            if ("external" in data && data.external != undefined) {
                                this.external = data.external;
                            }
                            if ("arrayBuffers" in data && data.arrayBuffers != undefined) {
                                this.arrayBuffers = data.arrayBuffers;
                            }
                        }
                    }
                    get rss() {
                        return pb_1.Message.getField(this, 113234);
                    }
                    set rss(value) {
                        pb_1.Message.setField(this, 113234, value);
                    }
                    get heapTotal() {
                        return pb_1.Message.getField(this, 114487480);
                    }
                    set heapTotal(value) {
                        pb_1.Message.setField(this, 114487480, value);
                    }
                    get heapUsed() {
                        return pb_1.Message.getField(this, 30910521);
                    }
                    set heapUsed(value) {
                        pb_1.Message.setField(this, 30910521, value);
                    }
                    get external() {
                        return pb_1.Message.getField(this, 210148408);
                    }
                    set external(value) {
                        pb_1.Message.setField(this, 210148408, value);
                    }
                    get arrayBuffers() {
                        return pb_1.Message.getField(this, 116952168);
                    }
                    set arrayBuffers(value) {
                        pb_1.Message.setField(this, 116952168, value);
                    }
                    toObject() {
                        const data = {};
                        if (this.rss != null) {
                            data.rss = this.rss;
                        }
                        if (this.heapTotal != null) {
                            data.heapTotal = this.heapTotal;
                        }
                        if (this.heapUsed != null) {
                            data.heapUsed = this.heapUsed;
                        }
                        if (this.external != null) {
                            data.external = this.external;
                        }
                        if (this.arrayBuffers != null) {
                            data.arrayBuffers = this.arrayBuffers;
                        }
                        return data;
                    }
                    serialize(w) {
                        const writer = w || new pb_1.BinaryWriter();
                        if (this.rss !== undefined)
                            writer.writeFloat(113234, this.rss);
                        if (this.heapTotal !== undefined)
                            writer.writeFloat(114487480, this.heapTotal);
                        if (this.heapUsed !== undefined)
                            writer.writeFloat(30910521, this.heapUsed);
                        if (this.external !== undefined)
                            writer.writeFloat(210148408, this.external);
                        if (this.arrayBuffers !== undefined)
                            writer.writeFloat(116952168, this.arrayBuffers);
                        if (!w)
                            return writer.getResultBuffer();
                    }
                    static deserialize(bytes) {
                        const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MemoryUsagePB();
                        while (reader.nextField()) {
                            if (reader.isEndGroup())
                                break;
                            switch (reader.getFieldNumber()) {
                                case 113234:
                                    message.rss = reader.readFloat();
                                    break;
                                case 114487480:
                                    message.heapTotal = reader.readFloat();
                                    break;
                                case 30910521:
                                    message.heapUsed = reader.readFloat();
                                    break;
                                case 210148408:
                                    message.external = reader.readFloat();
                                    break;
                                case 116952168:
                                    message.arrayBuffers = reader.readFloat();
                                    break;
                                default: reader.skipField();
                            }
                        }
                        return message;
                    }
                    serializeBinary() {
                        return this.serialize();
                    }
                    static deserializeBinary(bytes) {
                        return MemoryUsagePB.deserialize(bytes);
                    }
                }
                cmd_api_server.MemoryUsagePB = MemoryUsagePB;
            })(cmd_api_server = cactus.cmd_api_server || (cactus.cmd_api_server = {}));
        })(cactus = hyperledger.cactus || (hyperledger.cactus = {}));
    })(hyperledger = org.hyperledger || (org.hyperledger = {}));
})(org = exports.org || (exports.org = {}));
//# sourceMappingURL=data:application/json;base64, 