"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: services/default_service.proto
 * git: https://github.com/thesayyn/protoc-gen-ts */
const dependency_1 = __importStar(require("./../google/protobuf/empty"));
const dependency_2 = __importStar(require("./../models/health_check_response_pb"));
const pb_1 = __importStar(require("google-protobuf"));
const grpc_1 = __importStar(require("@grpc/grpc-js"));
var org;
(function (org) {
    var hyperledger;
    (function (hyperledger) {
        var cactus;
        (function (cactus) {
            var cmd_api_server;
            (function (cmd_api_server) {
                var _GetOpenApiSpecV1Response_one_of_decls, _GetPrometheusMetricsV1Response_one_of_decls;
                class GetOpenApiSpecV1Response extends pb_1.Message {
                    constructor(data) {
                        super();
                        _GetOpenApiSpecV1Response_one_of_decls.set(this, []);
                        pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __classPrivateFieldGet(this, _GetOpenApiSpecV1Response_one_of_decls, "f"));
                        if (!Array.isArray(data) && typeof data == "object") {
                            if ("data" in data && data.data != undefined) {
                                this.data = data.data;
                            }
                        }
                    }
                    get data() {
                        return pb_1.Message.getFieldWithDefault(this, 1, "");
                    }
                    set data(value) {
                        pb_1.Message.setField(this, 1, value);
                    }
                    static fromObject(data) {
                        const message = new GetOpenApiSpecV1Response({});
                        if (data.data != null) {
                            message.data = data.data;
                        }
                        return message;
                    }
                    toObject() {
                        const data = {};
                        if (this.data != null) {
                            data.data = this.data;
                        }
                        return data;
                    }
                    serialize(w) {
                        const writer = w || new pb_1.BinaryWriter();
                        if (this.data.length)
                            writer.writeString(1, this.data);
                        if (!w)
                            return writer.getResultBuffer();
                    }
                    static deserialize(bytes) {
                        const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new GetOpenApiSpecV1Response();
                        while (reader.nextField()) {
                            if (reader.isEndGroup())
                                break;
                            switch (reader.getFieldNumber()) {
                                case 1:
                                    message.data = reader.readString();
                                    break;
                                default: reader.skipField();
                            }
                        }
                        return message;
                    }
                    serializeBinary() {
                        return this.serialize();
                    }
                    static deserializeBinary(bytes) {
                        return GetOpenApiSpecV1Response.deserialize(bytes);
                    }
                }
                _GetOpenApiSpecV1Response_one_of_decls = new WeakMap();
                cmd_api_server.GetOpenApiSpecV1Response = GetOpenApiSpecV1Response;
                class GetPrometheusMetricsV1Response extends pb_1.Message {
                    constructor(data) {
                        super();
                        _GetPrometheusMetricsV1Response_one_of_decls.set(this, []);
                        pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __classPrivateFieldGet(this, _GetPrometheusMetricsV1Response_one_of_decls, "f"));
                        if (!Array.isArray(data) && typeof data == "object") {
                            if ("data" in data && data.data != undefined) {
                                this.data = data.data;
                            }
                        }
                    }
                    get data() {
                        return pb_1.Message.getFieldWithDefault(this, 1, "");
                    }
                    set data(value) {
                        pb_1.Message.setField(this, 1, value);
                    }
                    static fromObject(data) {
                        const message = new GetPrometheusMetricsV1Response({});
                        if (data.data != null) {
                            message.data = data.data;
                        }
                        return message;
                    }
                    toObject() {
                        const data = {};
                        if (this.data != null) {
                            data.data = this.data;
                        }
                        return data;
                    }
                    serialize(w) {
                        const writer = w || new pb_1.BinaryWriter();
                        if (this.data.length)
                            writer.writeString(1, this.data);
                        if (!w)
                            return writer.getResultBuffer();
                    }
                    static deserialize(bytes) {
                        const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new GetPrometheusMetricsV1Response();
                        while (reader.nextField()) {
                            if (reader.isEndGroup())
                                break;
                            switch (reader.getFieldNumber()) {
                                case 1:
                                    message.data = reader.readString();
                                    break;
                                default: reader.skipField();
                            }
                        }
                        return message;
                    }
                    serializeBinary() {
                        return this.serialize();
                    }
                    static deserializeBinary(bytes) {
                        return GetPrometheusMetricsV1Response.deserialize(bytes);
                    }
                }
                _GetPrometheusMetricsV1Response_one_of_decls = new WeakMap();
                cmd_api_server.GetPrometheusMetricsV1Response = GetPrometheusMetricsV1Response;
                class UnimplementedDefaultServiceService {
                }
                UnimplementedDefaultServiceService.definition = {
                    GetHealthCheckV1: {
                        path: "/org.hyperledger.cactus.cmd_api_server.DefaultService/GetHealthCheckV1",
                        requestStream: false,
                        responseStream: false,
                        requestSerialize: (message) => Buffer.from(message.serialize()),
                        requestDeserialize: (bytes) => dependency_1.google.protobuf.Empty.deserialize(new Uint8Array(bytes)),
                        responseSerialize: (message) => Buffer.from(message.serialize()),
                        responseDeserialize: (bytes) => dependency_2.org.hyperledger.cactus.cmd_api_server.HealthCheckResponsePB.deserialize(new Uint8Array(bytes))
                    },
                    GetOpenApiSpecV1: {
                        path: "/org.hyperledger.cactus.cmd_api_server.DefaultService/GetOpenApiSpecV1",
                        requestStream: false,
                        responseStream: false,
                        requestSerialize: (message) => Buffer.from(message.serialize()),
                        requestDeserialize: (bytes) => dependency_1.google.protobuf.Empty.deserialize(new Uint8Array(bytes)),
                        responseSerialize: (message) => Buffer.from(message.serialize()),
                        responseDeserialize: (bytes) => GetOpenApiSpecV1Response.deserialize(new Uint8Array(bytes))
                    },
                    GetPrometheusMetricsV1: {
                        path: "/org.hyperledger.cactus.cmd_api_server.DefaultService/GetPrometheusMetricsV1",
                        requestStream: false,
                        responseStream: false,
                        requestSerialize: (message) => Buffer.from(message.serialize()),
                        requestDeserialize: (bytes) => dependency_1.google.protobuf.Empty.deserialize(new Uint8Array(bytes)),
                        responseSerialize: (message) => Buffer.from(message.serialize()),
                        responseDeserialize: (bytes) => GetPrometheusMetricsV1Response.deserialize(new Uint8Array(bytes))
                    }
                };
                cmd_api_server.UnimplementedDefaultServiceService = UnimplementedDefaultServiceService;
                class DefaultServiceClient extends grpc_1.makeGenericClientConstructor(UnimplementedDefaultServiceService.definition, "DefaultService", {}) {
                    constructor(address, credentials, options) {
                        super(address, credentials, options);
                        this.GetHealthCheckV1 = (message, metadata, options, callback) => {
                            return super.GetHealthCheckV1(message, metadata, options, callback);
                        };
                        this.GetOpenApiSpecV1 = (message, metadata, options, callback) => {
                            return super.GetOpenApiSpecV1(message, metadata, options, callback);
                        };
                        this.GetPrometheusMetricsV1 = (message, metadata, options, callback) => {
                            return super.GetPrometheusMetricsV1(message, metadata, options, callback);
                        };
                    }
                }
                cmd_api_server.DefaultServiceClient = DefaultServiceClient;
            })(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, 