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 { TimeService } from "./time_service.js";
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
class TimeServiceClient {
  constructor(_transport) {
    this._transport = _transport;
    __publicField(this, "typeName", TimeService.typeName);
    __publicField(this, "methods", TimeService.methods);
    __publicField(this, "options", TimeService.options);
  }
  /**
   * Returns the current time according to the ledger server.
   *
   * @generated from protobuf rpc: GetTime
   */
  getTime(input, options) {
    const method = this.methods[0], opt = this._transport.mergeOptions(options);
    return stackIntercept(
      "unary",
      this._transport,
      method,
      opt,
      input
    );
  }
  /**
   * Allows clients to change the ledger's clock in an atomic get-and-set operation.
   *
   * @generated from protobuf rpc: SetTime
   */
  setTime(input, options) {
    const method = this.methods[1], opt = this._transport.mergeOptions(options);
    return stackIntercept(
      "unary",
      this._transport,
      method,
      opt,
      input
    );
  }
}
export {
  TimeServiceClient
};
//# sourceMappingURL=time_service.client.js.map