// @generated by protobuf-ts 2.9.4 // @generated from protobuf file "settings.proto" (package "settings", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; import { Settings } from "./settings"; import type { RefreshPathResponse } from "./settings"; import type { RefreshPathRequest } from "./settings"; import type { DeletePathResponse } from "./settings"; import type { DeletePathRequest } from "./settings"; import type { AddPathResponse } from "./settings"; import type { AddPathRequest } from "./settings"; import { stackIntercept } from "@protobuf-ts/runtime-rpc"; import type { SettingsData } from "./settings"; import type { Empty } from "./google/protobuf/empty"; import type { UnaryCall } from "@protobuf-ts/runtime-rpc"; import type { RpcOptions } from "@protobuf-ts/runtime-rpc"; /** * @generated from protobuf service settings.Settings */ export interface ISettingsClient { /** * @generated from protobuf rpc: ListPaths(google.protobuf.Empty) returns (settings.SettingsData); */ listPaths(input: Empty, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: AddPath(settings.AddPathRequest) returns (settings.AddPathResponse); */ addPath(input: AddPathRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: DeletePath(settings.DeletePathRequest) returns (settings.DeletePathResponse); */ deletePath(input: DeletePathRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: RefreshPath(settings.RefreshPathRequest) returns (settings.RefreshPathResponse); */ refreshPath(input: RefreshPathRequest, options?: RpcOptions): UnaryCall; } /** * @generated from protobuf service settings.Settings */ export class SettingsClient implements ISettingsClient, ServiceInfo { typeName = Settings.typeName; methods = Settings.methods; options = Settings.options; constructor(private readonly _transport: RpcTransport) { } /** * @generated from protobuf rpc: ListPaths(google.protobuf.Empty) returns (settings.SettingsData); */ listPaths(input: Empty, options?: RpcOptions): UnaryCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: AddPath(settings.AddPathRequest) returns (settings.AddPathResponse); */ addPath(input: AddPathRequest, options?: RpcOptions): UnaryCall { const method = this.methods[1], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: DeletePath(settings.DeletePathRequest) returns (settings.DeletePathResponse); */ deletePath(input: DeletePathRequest, options?: RpcOptions): UnaryCall { const method = this.methods[2], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: RefreshPath(settings.RefreshPathRequest) returns (settings.RefreshPathResponse); */ refreshPath(input: RefreshPathRequest, options?: RpcOptions): UnaryCall { const method = this.methods[3], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } }