"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 (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;
};
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.org = void 0;
/**
 * Generated by the protoc-gen-ts.  DO NOT EDIT!
 * compiler version: 3.19.1
 * source: models/memory_usage_pb.proto
 * git: https://github.com/thesayyn/protoc-gen-ts */
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) {
                var _MemoryUsagePB_one_of_decls;
                class MemoryUsagePB extends pb_1.Message {
                    constructor(data) {
                        super();
                        _MemoryUsagePB_one_of_decls.set(this, []);
                        pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __classPrivateFieldGet(this, _MemoryUsagePB_one_of_decls, "f"));
                        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.getFieldWithDefault(this, 113234, 0);
                    }
                    set rss(value) {
                        pb_1.Message.setField(this, 113234, value);
                    }
                    get heapTotal() {
                        return pb_1.Message.getFieldWithDefault(this, 114487480, 0);
                    }
                    set heapTotal(value) {
                        pb_1.Message.setField(this, 114487480, value);
                    }
                    get heapUsed() {
                        return pb_1.Message.getFieldWithDefault(this, 30910521, 0);
                    }
                    set heapUsed(value) {
                        pb_1.Message.setField(this, 30910521, value);
                    }
                    get external() {
                        return pb_1.Message.getFieldWithDefault(this, 210148408, 0);
                    }
                    set external(value) {
                        pb_1.Message.setField(this, 210148408, value);
                    }
                    get arrayBuffers() {
                        return pb_1.Message.getFieldWithDefault(this, 116952168, 0);
                    }
                    set arrayBuffers(value) {
                        pb_1.Message.setField(this, 116952168, value);
                    }
                    static fromObject(data) {
                        const message = new MemoryUsagePB({});
                        if (data.rss != null) {
                            message.rss = data.rss;
                        }
                        if (data.heapTotal != null) {
                            message.heapTotal = data.heapTotal;
                        }
                        if (data.heapUsed != null) {
                            message.heapUsed = data.heapUsed;
                        }
                        if (data.external != null) {
                            message.external = data.external;
                        }
                        if (data.arrayBuffers != null) {
                            message.arrayBuffers = data.arrayBuffers;
                        }
                        return message;
                    }
                    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 != 0)
                            writer.writeFloat(113234, this.rss);
                        if (this.heapTotal != 0)
                            writer.writeFloat(114487480, this.heapTotal);
                        if (this.heapUsed != 0)
                            writer.writeFloat(30910521, this.heapUsed);
                        if (this.external != 0)
                            writer.writeFloat(210148408, this.external);
                        if (this.arrayBuffers != 0)
                            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);
                    }
                }
                _MemoryUsagePB_one_of_decls = new WeakMap();
                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 = org = {}));
//# sourceMappingURL=data:application/json;base64, 