"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExternalApiRpcClient = exports.ConnectionLockRpcClient = exports.WebrtcConnectorRpcClient = exports.WebsocketClientConnectorRpcClient = exports.RecursiveOperationSessionRpcClient = exports.StoreRpcClient = exports.RecursiveOperationRpcClient = exports.RouterRpcClient = exports.DhtNodeRpcClient = void 0;
// @generated by protobuf-ts 2.9.4 with parameter server_generic,generate_dependencies,long_type_number
// @generated from protobuf file "packages/dht/protos/DhtRpc.proto" (package "dht", syntax proto3)
// tslint:disable
const DhtRpc_1 = require("./DhtRpc");
const DhtRpc_2 = require("./DhtRpc");
const DhtRpc_3 = require("./DhtRpc");
const DhtRpc_4 = require("./DhtRpc");
const DhtRpc_5 = require("./DhtRpc");
const DhtRpc_6 = require("./DhtRpc");
const DhtRpc_7 = require("./DhtRpc");
const DhtRpc_8 = require("./DhtRpc");
const DhtRpc_9 = require("./DhtRpc");
const runtime_rpc_1 = require("@protobuf-ts/runtime-rpc");
/**
 * @generated from protobuf service dht.DhtNodeRpc
 */
class DhtNodeRpcClient {
    _transport;
    typeName = DhtRpc_9.DhtNodeRpc.typeName;
    methods = DhtRpc_9.DhtNodeRpc.methods;
    options = DhtRpc_9.DhtNodeRpc.options;
    constructor(_transport) {
        this._transport = _transport;
    }
    /**
     * TODO rename to getClosestNeighbors (breaking change)
     *
     * @generated from protobuf rpc: getClosestPeers(dht.ClosestPeersRequest) returns (dht.ClosestPeersResponse);
     */
    getClosestPeers(input, options) {
        const method = this.methods[0], opt = this._transport.mergeOptions(options);
        return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
    }
    /**
     * TODO rename to getClosestRingContacts (breaking change)
     *
     * @generated from protobuf rpc: getClosestRingPeers(dht.ClosestRingPeersRequest) returns (dht.ClosestRingPeersResponse);
     */
    getClosestRingPeers(input, options) {
        const method = this.methods[1], opt = this._transport.mergeOptions(options);
        return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
    }
    /**
     * @generated from protobuf rpc: ping(dht.PingRequest) returns (dht.PingResponse);
     */
    ping(input, options) {
        const method = this.methods[2], opt = this._transport.mergeOptions(options);
        return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
    }
    /**
     * @generated from protobuf rpc: leaveNotice(dht.LeaveNotice) returns (google.protobuf.Empty);
     */
    leaveNotice(input, options) {
        const method = this.methods[3], opt = this._transport.mergeOptions(options);
        return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
    }
}
exports.DhtNodeRpcClient = DhtNodeRpcClient;
/**
 * @generated from protobuf service dht.RouterRpc
 */
class RouterRpcClient {
    _transport;
    typeName = DhtRpc_8.RouterRpc.typeName;
    methods = DhtRpc_8.RouterRpc.methods;
    options = DhtRpc_8.RouterRpc.options;
    constructor(_transport) {
        this._transport = _transport;
    }
    /**
     * @generated from protobuf rpc: routeMessage(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
     */
    routeMessage(input, options) {
        const method = this.methods[0], opt = this._transport.mergeOptions(options);
        return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
    }
    /**
     * @generated from protobuf rpc: forwardMessage(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
     */
    forwardMessage(input, options) {
        const method = this.methods[1], opt = this._transport.mergeOptions(options);
        return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
    }
}
exports.RouterRpcClient = RouterRpcClient;
/**
 * @generated from protobuf service dht.RecursiveOperationRpc
 */
class RecursiveOperationRpcClient {
    _transport;
    typeName = DhtRpc_7.RecursiveOperationRpc.typeName;
    methods = DhtRpc_7.RecursiveOperationRpc.methods;
    options = DhtRpc_7.RecursiveOperationRpc.options;
    constructor(_transport) {
        this._transport = _transport;
    }
    /**
     * @generated from protobuf rpc: routeRequest(dht.RouteMessageWrapper) returns (dht.RouteMessageAck);
     */
    routeRequest(input, options) {
        const method = this.methods[0], opt = this._transport.mergeOptions(options);
        return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
    }
}
exports.RecursiveOperationRpcClient = RecursiveOperationRpcClient;
/**
 * @generated from protobuf service dht.StoreRpc
 */
class StoreRpcClient {
    _transport;
    typeName = DhtRpc_6.StoreRpc.typeName;
    methods = DhtRpc_6.StoreRpc.methods;
    options = DhtRpc_6.StoreRpc.options;
    constructor(_transport) {
        this._transport = _transport;
    }
    /**
     * @generated from protobuf rpc: storeData(dht.StoreDataRequest) returns (dht.StoreDataResponse);
     */
    storeData(input, options) {
        const method = this.methods[0], opt = this._transport.mergeOptions(options);
        return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
    }
    /**
     * @generated from protobuf rpc: replicateData(dht.ReplicateDataRequest) returns (google.protobuf.Empty);
     */
    replicateData(input, options) {
        const method = this.methods[1], opt = this._transport.mergeOptions(options);
        return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
    }
}
exports.StoreRpcClient = StoreRpcClient;
/**
 * @generated from protobuf service dht.RecursiveOperationSessionRpc
 */
class RecursiveOperationSessionRpcClient {
    _transport;
    typeName = DhtRpc_5.RecursiveOperationSessionRpc.typeName;
    methods = DhtRpc_5.RecursiveOperationSessionRpc.methods;
    options = DhtRpc_5.RecursiveOperationSessionRpc.options;
    constructor(_transport) {
        this._transport = _transport;
    }
    /**
     * @generated from protobuf rpc: sendResponse(dht.RecursiveOperationResponse) returns (google.protobuf.Empty);
     */
    sendResponse(input, options) {
        const method = this.methods[0], opt = this._transport.mergeOptions(options);
        return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
    }
}
exports.RecursiveOperationSessionRpcClient = RecursiveOperationSessionRpcClient;
/**
 * @generated from protobuf service dht.WebsocketClientConnectorRpc
 */
class WebsocketClientConnectorRpcClient {
    _transport;
    typeName = DhtRpc_4.WebsocketClientConnectorRpc.typeName;
    methods = DhtRpc_4.WebsocketClientConnectorRpc.methods;
    options = DhtRpc_4.WebsocketClientConnectorRpc.options;
    constructor(_transport) {
        this._transport = _transport;
    }
    /**
     * @generated from protobuf rpc: requestConnection(dht.WebsocketConnectionRequest) returns (google.protobuf.Empty);
     */
    requestConnection(input, options) {
        const method = this.methods[0], opt = this._transport.mergeOptions(options);
        return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
    }
}
exports.WebsocketClientConnectorRpcClient = WebsocketClientConnectorRpcClient;
/**
 * @generated from protobuf service dht.WebrtcConnectorRpc
 */
class WebrtcConnectorRpcClient {
    _transport;
    typeName = DhtRpc_3.WebrtcConnectorRpc.typeName;
    methods = DhtRpc_3.WebrtcConnectorRpc.methods;
    options = DhtRpc_3.WebrtcConnectorRpc.options;
    constructor(_transport) {
        this._transport = _transport;
    }
    /**
     * @generated from protobuf rpc: requestConnection(dht.WebrtcConnectionRequest) returns (google.protobuf.Empty);
     */
    requestConnection(input, options) {
        const method = this.methods[0], opt = this._transport.mergeOptions(options);
        return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
    }
    /**
     * @generated from protobuf rpc: rtcOffer(dht.RtcOffer) returns (google.protobuf.Empty);
     */
    rtcOffer(input, options) {
        const method = this.methods[1], opt = this._transport.mergeOptions(options);
        return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
    }
    /**
     * @generated from protobuf rpc: rtcAnswer(dht.RtcAnswer) returns (google.protobuf.Empty);
     */
    rtcAnswer(input, options) {
        const method = this.methods[2], opt = this._transport.mergeOptions(options);
        return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
    }
    /**
     * @generated from protobuf rpc: iceCandidate(dht.IceCandidate) returns (google.protobuf.Empty);
     */
    iceCandidate(input, options) {
        const method = this.methods[3], opt = this._transport.mergeOptions(options);
        return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
    }
}
exports.WebrtcConnectorRpcClient = WebrtcConnectorRpcClient;
/**
 * @generated from protobuf service dht.ConnectionLockRpc
 */
class ConnectionLockRpcClient {
    _transport;
    typeName = DhtRpc_2.ConnectionLockRpc.typeName;
    methods = DhtRpc_2.ConnectionLockRpc.methods;
    options = DhtRpc_2.ConnectionLockRpc.options;
    constructor(_transport) {
        this._transport = _transport;
    }
    /**
     * @generated from protobuf rpc: lockRequest(dht.LockRequest) returns (dht.LockResponse);
     */
    lockRequest(input, options) {
        const method = this.methods[0], opt = this._transport.mergeOptions(options);
        return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
    }
    /**
     * @generated from protobuf rpc: unlockRequest(dht.UnlockRequest) returns (google.protobuf.Empty);
     */
    unlockRequest(input, options) {
        const method = this.methods[1], opt = this._transport.mergeOptions(options);
        return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
    }
    /**
     * @generated from protobuf rpc: gracefulDisconnect(dht.DisconnectNotice) returns (google.protobuf.Empty);
     */
    gracefulDisconnect(input, options) {
        const method = this.methods[2], opt = this._transport.mergeOptions(options);
        return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
    }
    /**
     * @generated from protobuf rpc: setPrivate(dht.SetPrivateRequest) returns (google.protobuf.Empty);
     */
    setPrivate(input, options) {
        const method = this.methods[3], opt = this._transport.mergeOptions(options);
        return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
    }
}
exports.ConnectionLockRpcClient = ConnectionLockRpcClient;
/**
 * @generated from protobuf service dht.ExternalApiRpc
 */
class ExternalApiRpcClient {
    _transport;
    typeName = DhtRpc_1.ExternalApiRpc.typeName;
    methods = DhtRpc_1.ExternalApiRpc.methods;
    options = DhtRpc_1.ExternalApiRpc.options;
    constructor(_transport) {
        this._transport = _transport;
    }
    /**
     * @generated from protobuf rpc: externalFetchData(dht.ExternalFetchDataRequest) returns (dht.ExternalFetchDataResponse);
     */
    externalFetchData(input, options) {
        const method = this.methods[0], opt = this._transport.mergeOptions(options);
        return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
    }
    /**
     * @generated from protobuf rpc: externalStoreData(dht.ExternalStoreDataRequest) returns (dht.ExternalStoreDataResponse);
     */
    externalStoreData(input, options) {
        const method = this.methods[1], opt = this._transport.mergeOptions(options);
        return (0, runtime_rpc_1.stackIntercept)("unary", this._transport, method, opt, input);
    }
}
exports.ExternalApiRpcClient = ExternalApiRpcClient;
//# sourceMappingURL=DhtRpc.client.js.map