var __defProp = Object.defineProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
import { PackageService } from "./package_service.js";
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
class PackageServiceClient {
  constructor(_transport) {
    this._transport = _transport;
    __publicField(this, "typeName", PackageService.typeName);
    __publicField(this, "methods", PackageService.methods);
    __publicField(this, "options", PackageService.options);
  }
  /**
   * Returns the identifiers of all supported packages.
   *
   * @generated from protobuf rpc: ListPackages
   */
  listPackages(input, options) {
    const method = this.methods[0], opt = this._transport.mergeOptions(options);
    return stackIntercept(
      "unary",
      this._transport,
      method,
      opt,
      input
    );
  }
  /**
   * Returns the contents of a single package.
   *
   * @generated from protobuf rpc: GetPackage
   */
  getPackage(input, options) {
    const method = this.methods[1], opt = this._transport.mergeOptions(options);
    return stackIntercept(
      "unary",
      this._transport,
      method,
      opt,
      input
    );
  }
  /**
   * Returns the status of a single package.
   *
   * @generated from protobuf rpc: GetPackageStatus
   */
  getPackageStatus(input, options) {
    const method = this.methods[2], opt = this._transport.mergeOptions(options);
    return stackIntercept("unary", this._transport, method, opt, input);
  }
}
export {
  PackageServiceClient
};
//# sourceMappingURL=package_service.client.js.map