77 lines
3.9 KiB
TypeScript
77 lines
3.9 KiB
TypeScript
// @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<Empty, SettingsData>;
|
|
/**
|
|
* @generated from protobuf rpc: AddPath(settings.AddPathRequest) returns (settings.AddPathResponse);
|
|
*/
|
|
addPath(input: AddPathRequest, options?: RpcOptions): UnaryCall<AddPathRequest, AddPathResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: DeletePath(settings.DeletePathRequest) returns (settings.DeletePathResponse);
|
|
*/
|
|
deletePath(input: DeletePathRequest, options?: RpcOptions): UnaryCall<DeletePathRequest, DeletePathResponse>;
|
|
/**
|
|
* @generated from protobuf rpc: RefreshPath(settings.RefreshPathRequest) returns (settings.RefreshPathResponse);
|
|
*/
|
|
refreshPath(input: RefreshPathRequest, options?: RpcOptions): UnaryCall<RefreshPathRequest, RefreshPathResponse>;
|
|
}
|
|
/**
|
|
* @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<Empty, SettingsData> {
|
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<Empty, SettingsData>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: AddPath(settings.AddPathRequest) returns (settings.AddPathResponse);
|
|
*/
|
|
addPath(input: AddPathRequest, options?: RpcOptions): UnaryCall<AddPathRequest, AddPathResponse> {
|
|
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<AddPathRequest, AddPathResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: DeletePath(settings.DeletePathRequest) returns (settings.DeletePathResponse);
|
|
*/
|
|
deletePath(input: DeletePathRequest, options?: RpcOptions): UnaryCall<DeletePathRequest, DeletePathResponse> {
|
|
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<DeletePathRequest, DeletePathResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: RefreshPath(settings.RefreshPathRequest) returns (settings.RefreshPathResponse);
|
|
*/
|
|
refreshPath(input: RefreshPathRequest, options?: RpcOptions): UnaryCall<RefreshPathRequest, RefreshPathResponse> {
|
|
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<RefreshPathRequest, RefreshPathResponse>("unary", this._transport, method, opt, input);
|
|
}
|
|
}
|