"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/health_check_response_pb.proto
 * git: https://github.com/thesayyn/protoc-gen-ts */
const dependency_1 = __importStar(require("./memory_usage_pb"));
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 _HealthCheckResponsePB_one_of_decls;
                class HealthCheckResponsePB extends pb_1.Message {
                    constructor(data) {
                        super();
                        _HealthCheckResponsePB_one_of_decls.set(this, []);
                        pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __classPrivateFieldGet(this, _HealthCheckResponsePB_one_of_decls, "f"));
                        if (!Array.isArray(data) && typeof data == "object") {
                            if ("success" in data && data.success != undefined) {
                                this.success = data.success;
                            }
                            if ("createdAt" in data && data.createdAt != undefined) {
                                this.createdAt = data.createdAt;
                            }
                            if ("memoryUsage" in data && data.memoryUsage != undefined) {
                                this.memoryUsage = data.memoryUsage;
                            }
                        }
                    }
                    get success() {
                        return pb_1.Message.getFieldWithDefault(this, 256557056, false);
                    }
                    set success(value) {
                        pb_1.Message.setField(this, 256557056, value);
                    }
                    get createdAt() {
                        return pb_1.Message.getFieldWithDefault(this, 61500732, "");
                    }
                    set createdAt(value) {
                        pb_1.Message.setField(this, 61500732, value);
                    }
                    get memoryUsage() {
                        return pb_1.Message.getWrapperField(this, dependency_1.org.hyperledger.cactus.cmd_api_server.MemoryUsagePB, 335792418);
                    }
                    set memoryUsage(value) {
                        pb_1.Message.setWrapperField(this, 335792418, value);
                    }
                    get has_memoryUsage() {
                        return pb_1.Message.getField(this, 335792418) != null;
                    }
                    static fromObject(data) {
                        const message = new HealthCheckResponsePB({});
                        if (data.success != null) {
                            message.success = data.success;
                        }
                        if (data.createdAt != null) {
                            message.createdAt = data.createdAt;
                        }
                        if (data.memoryUsage != null) {
                            message.memoryUsage = dependency_1.org.hyperledger.cactus.cmd_api_server.MemoryUsagePB.fromObject(data.memoryUsage);
                        }
                        return message;
                    }
                    toObject() {
                        const data = {};
                        if (this.success != null) {
                            data.success = this.success;
                        }
                        if (this.createdAt != null) {
                            data.createdAt = this.createdAt;
                        }
                        if (this.memoryUsage != null) {
                            data.memoryUsage = this.memoryUsage.toObject();
                        }
                        return data;
                    }
                    serialize(w) {
                        const writer = w || new pb_1.BinaryWriter();
                        if (this.success != false)
                            writer.writeBool(256557056, this.success);
                        if (this.createdAt.length)
                            writer.writeString(61500732, this.createdAt);
                        if (this.has_memoryUsage)
                            writer.writeMessage(335792418, this.memoryUsage, () => this.memoryUsage.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 HealthCheckResponsePB();
                        while (reader.nextField()) {
                            if (reader.isEndGroup())
                                break;
                            switch (reader.getFieldNumber()) {
                                case 256557056:
                                    message.success = reader.readBool();
                                    break;
                                case 61500732:
                                    message.createdAt = reader.readString();
                                    break;
                                case 335792418:
                                    reader.readMessage(message.memoryUsage, () => message.memoryUsage = dependency_1.org.hyperledger.cactus.cmd_api_server.MemoryUsagePB.deserialize(reader));
                                    break;
                                default: reader.skipField();
                            }
                        }
                        return message;
                    }
                    serializeBinary() {
                        return this.serialize();
                    }
                    static deserializeBinary(bytes) {
                        return HealthCheckResponsePB.deserialize(bytes);
                    }
                }
                _HealthCheckResponsePB_one_of_decls = new WeakMap();
                cmd_api_server.HealthCheckResponsePB = HealthCheckResponsePB;
            })(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, 