"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.GrpcServerApiServer = void 0;
const health_check_response_pb = __importStar(require("../../generated/proto/protoc-gen-ts/models/health_check_response_pb"));
const memory_usage_pb = __importStar(require("../../generated/proto/protoc-gen-ts/models/memory_usage_pb"));
const default_service = __importStar(require("../../generated/proto/protoc-gen-ts/services/default_service"));
class GrpcServerApiServer extends default_service.org.hyperledger.cactus
    .cmd_api_server.UnimplementedDefaultServiceService {
    GetHealthCheckV1(call, callback) {
        const memoryUsage = new memory_usage_pb.org.hyperledger.cactus.cmd_api_server.MemoryUsagePB(process.memoryUsage());
        const healthCheckResponse = new health_check_response_pb.org.hyperledger.cactus.cmd_api_server.HealthCheckResponsePB({
            success: true,
            createdAt: new Date().toJSON(),
            memoryUsage,
        });
        callback(null, healthCheckResponse);
    }
    GetPrometheusMetricsV1(call, callback) {
        const res = new default_service.org.hyperledger.cactus.cmd_api_server.GetPrometheusMetricsV1Response();
        callback(null, res);
    }
}
exports.GrpcServerApiServer = GrpcServerApiServer;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3JwYy1zZXJ2ZXItYXBpLXNlcnZlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIj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