38 lines
1.5 KiB
TypeScript
38 lines
1.5 KiB
TypeScript
// @generated by protobuf-ts 2.9.4
|
|
// @generated from protobuf file "library.proto" (package "library", syntax proto3)
|
|
// tslint:disable
|
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
import { Library } from "./library";
|
|
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
import type { TrackList } from "./library";
|
|
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 library.Library
|
|
*/
|
|
export interface ILibraryClient {
|
|
/**
|
|
* @generated from protobuf rpc: ListTracks(google.protobuf.Empty) returns (library.TrackList);
|
|
*/
|
|
listTracks(input: Empty, options?: RpcOptions): UnaryCall<Empty, TrackList>;
|
|
}
|
|
/**
|
|
* @generated from protobuf service library.Library
|
|
*/
|
|
export class LibraryClient implements ILibraryClient, ServiceInfo {
|
|
typeName = Library.typeName;
|
|
methods = Library.methods;
|
|
options = Library.options;
|
|
constructor(private readonly _transport: RpcTransport) {
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: ListTracks(google.protobuf.Empty) returns (library.TrackList);
|
|
*/
|
|
listTracks(input: Empty, options?: RpcOptions): UnaryCall<Empty, TrackList> {
|
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<Empty, TrackList>("unary", this._transport, method, opt, input);
|
|
}
|
|
}
|