// @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 type { SwapTracksRequest } from "./library"; import type { RemoveTrackFromPlaylistRequest } from "./library"; import type { AddTrackToPlaylistRequest } from "./library"; import type { DeletePlaylistRequest } from "./library"; import type { CreatePlaylistResponse } from "./library"; import type { CreatePlaylistRequest } from "./library"; import type { ListPlaylistsResponse } 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; /** * @generated from protobuf rpc: ListPlaylists(google.protobuf.Empty) returns (library.ListPlaylistsResponse); */ listPlaylists(input: Empty, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: CreatePlaylist(library.CreatePlaylistRequest) returns (library.CreatePlaylistResponse); */ createPlaylist(input: CreatePlaylistRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: DeletePlaylist(library.DeletePlaylistRequest) returns (google.protobuf.Empty); */ deletePlaylist(input: DeletePlaylistRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: AddTrackToPlaylist(library.AddTrackToPlaylistRequest) returns (google.protobuf.Empty); */ addTrackToPlaylist(input: AddTrackToPlaylistRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: RemoveTrackFromPlaylist(library.RemoveTrackFromPlaylistRequest) returns (google.protobuf.Empty); */ removeTrackFromPlaylist(input: RemoveTrackFromPlaylistRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: SwapTracks(library.SwapTracksRequest) returns (library.TrackList); */ swapTracks(input: SwapTracksRequest, options?: RpcOptions): UnaryCall; } /** * @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 { const method = this.methods[0], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: ListPlaylists(google.protobuf.Empty) returns (library.ListPlaylistsResponse); */ listPlaylists(input: Empty, 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: CreatePlaylist(library.CreatePlaylistRequest) returns (library.CreatePlaylistResponse); */ createPlaylist(input: CreatePlaylistRequest, 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: DeletePlaylist(library.DeletePlaylistRequest) returns (google.protobuf.Empty); */ deletePlaylist(input: DeletePlaylistRequest, options?: RpcOptions): UnaryCall { const method = this.methods[3], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: AddTrackToPlaylist(library.AddTrackToPlaylistRequest) returns (google.protobuf.Empty); */ addTrackToPlaylist(input: AddTrackToPlaylistRequest, options?: RpcOptions): UnaryCall { const method = this.methods[4], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: RemoveTrackFromPlaylist(library.RemoveTrackFromPlaylistRequest) returns (google.protobuf.Empty); */ removeTrackFromPlaylist(input: RemoveTrackFromPlaylistRequest, options?: RpcOptions): UnaryCall { const method = this.methods[5], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: SwapTracks(library.SwapTracksRequest) returns (library.TrackList); */ swapTracks(input: SwapTracksRequest, options?: RpcOptions): UnaryCall { const method = this.methods[6], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } }