"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
var topology_manager_write_service_client_exports = {};
__export(topology_manager_write_service_client_exports, {
  TopologyManagerWriteServiceClient: () => TopologyManagerWriteServiceClient
});
module.exports = __toCommonJS(topology_manager_write_service_client_exports);
var import_topology_manager_write_service = require("./topology_manager_write_service.cjs");
var import_runtime_rpc = require("@protobuf-ts/runtime-rpc");
class TopologyManagerWriteServiceClient {
  constructor(_transport) {
    this._transport = _transport;
    __publicField(this, "typeName", import_topology_manager_write_service.TopologyManagerWriteService.typeName);
    __publicField(this, "methods", import_topology_manager_write_service.TopologyManagerWriteService.methods);
    __publicField(this, "options", import_topology_manager_write_service.TopologyManagerWriteService.options);
  }
  /**
   * @generated from protobuf rpc: Authorize
   */
  authorize(input, options) {
    const method = this.methods[0], opt = this._transport.mergeOptions(options);
    return (0, import_runtime_rpc.stackIntercept)(
      "unary",
      this._transport,
      method,
      opt,
      input
    );
  }
  /**
   * @generated from protobuf rpc: AddTransactions
   */
  addTransactions(input, options) {
    const method = this.methods[1], opt = this._transport.mergeOptions(options);
    return (0, import_runtime_rpc.stackIntercept)(
      "unary",
      this._transport,
      method,
      opt,
      input
    );
  }
  /**
   * @generated from protobuf rpc: ImportTopologySnapshot
   */
  importTopologySnapshot(options) {
    const method = this.methods[2], opt = this._transport.mergeOptions(options);
    return (0, import_runtime_rpc.stackIntercept)("clientStreaming", this._transport, method, opt);
  }
  /**
   * @generated from protobuf rpc: SignTransactions
   */
  signTransactions(input, options) {
    const method = this.methods[3], opt = this._transport.mergeOptions(options);
    return (0, import_runtime_rpc.stackIntercept)("unary", this._transport, method, opt, input);
  }
  /**
   * * RPC to generate topology transactions that can be signed
   *
   * @generated from protobuf rpc: GenerateTransactions
   */
  generateTransactions(input, options) {
    const method = this.methods[4], opt = this._transport.mergeOptions(options);
    return (0, import_runtime_rpc.stackIntercept)("unary", this._transport, method, opt, input);
  }
  /**
   * * Creates a temporary topology store.
   * Trying to create a store with the same name results in an error.
   *
   * @generated from protobuf rpc: CreateTemporaryTopologyStore
   */
  createTemporaryTopologyStore(input, options) {
    const method = this.methods[5], opt = this._transport.mergeOptions(options);
    return (0, import_runtime_rpc.stackIntercept)("unary", this._transport, method, opt, input);
  }
  /**
   * * Drops a temporary topology store.
   * Trying to drop a temporary store that does not exist results in an error.
   *
   * @generated from protobuf rpc: DropTemporaryTopologyStore
   */
  dropTemporaryTopologyStore(input, options) {
    const method = this.methods[6], opt = this._transport.mergeOptions(options);
    return (0, import_runtime_rpc.stackIntercept)("unary", this._transport, method, opt, input);
  }
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  TopologyManagerWriteServiceClient
});
//# sourceMappingURL=topology_manager_write_service.client.cjs.map