UNPKG

@animeapis/library

Version:
979 lines (816 loc) 359 kB
// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. import * as Long from "long"; import {protobuf as $protobuf} from "google-gax"; /** Namespace animeshon. */ export namespace animeshon { /** Namespace library. */ namespace library { /** Namespace v1alpha1. */ namespace v1alpha1 { /** Represents a Library */ class Library extends $protobuf.rpc.Service { /** * Constructs a new Library service. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited */ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** * Creates new Library service using the specified rpc implementation. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited * @returns RPC service. Useful where requests and/or responses are streamed. */ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Library; /** * Calls GetPlaylist. * @param request GetPlaylistRequest message or plain object * @param callback Node-style callback called with the error, if any, and Playlist */ public getPlaylist(request: animeshon.library.v1alpha1.IGetPlaylistRequest, callback: animeshon.library.v1alpha1.Library.GetPlaylistCallback): void; /** * Calls GetPlaylist. * @param request GetPlaylistRequest message or plain object * @returns Promise */ public getPlaylist(request: animeshon.library.v1alpha1.IGetPlaylistRequest): Promise<animeshon.library.v1alpha1.Playlist>; /** * Calls ListPlaylists. * @param request ListPlaylistsRequest message or plain object * @param callback Node-style callback called with the error, if any, and ListPlaylistsResponse */ public listPlaylists(request: animeshon.library.v1alpha1.IListPlaylistsRequest, callback: animeshon.library.v1alpha1.Library.ListPlaylistsCallback): void; /** * Calls ListPlaylists. * @param request ListPlaylistsRequest message or plain object * @returns Promise */ public listPlaylists(request: animeshon.library.v1alpha1.IListPlaylistsRequest): Promise<animeshon.library.v1alpha1.ListPlaylistsResponse>; /** * Calls CreatePlaylist. * @param request CreatePlaylistRequest message or plain object * @param callback Node-style callback called with the error, if any, and Playlist */ public createPlaylist(request: animeshon.library.v1alpha1.ICreatePlaylistRequest, callback: animeshon.library.v1alpha1.Library.CreatePlaylistCallback): void; /** * Calls CreatePlaylist. * @param request CreatePlaylistRequest message or plain object * @returns Promise */ public createPlaylist(request: animeshon.library.v1alpha1.ICreatePlaylistRequest): Promise<animeshon.library.v1alpha1.Playlist>; /** * Calls UpdatePlaylist. * @param request UpdatePlaylistRequest message or plain object * @param callback Node-style callback called with the error, if any, and Playlist */ public updatePlaylist(request: animeshon.library.v1alpha1.IUpdatePlaylistRequest, callback: animeshon.library.v1alpha1.Library.UpdatePlaylistCallback): void; /** * Calls UpdatePlaylist. * @param request UpdatePlaylistRequest message or plain object * @returns Promise */ public updatePlaylist(request: animeshon.library.v1alpha1.IUpdatePlaylistRequest): Promise<animeshon.library.v1alpha1.Playlist>; /** * Calls DeletePlaylist. * @param request DeletePlaylistRequest message or plain object * @param callback Node-style callback called with the error, if any, and Empty */ public deletePlaylist(request: animeshon.library.v1alpha1.IDeletePlaylistRequest, callback: animeshon.library.v1alpha1.Library.DeletePlaylistCallback): void; /** * Calls DeletePlaylist. * @param request DeletePlaylistRequest message or plain object * @returns Promise */ public deletePlaylist(request: animeshon.library.v1alpha1.IDeletePlaylistRequest): Promise<google.protobuf.Empty>; /** * Calls ListPlaylistItems. * @param request ListPlaylistItemsRequest message or plain object * @param callback Node-style callback called with the error, if any, and ListPlaylistItemsResponse */ public listPlaylistItems(request: animeshon.library.v1alpha1.IListPlaylistItemsRequest, callback: animeshon.library.v1alpha1.Library.ListPlaylistItemsCallback): void; /** * Calls ListPlaylistItems. * @param request ListPlaylistItemsRequest message or plain object * @returns Promise */ public listPlaylistItems(request: animeshon.library.v1alpha1.IListPlaylistItemsRequest): Promise<animeshon.library.v1alpha1.ListPlaylistItemsResponse>; /** * Calls CreatePlaylistItem. * @param request CreatePlaylistItemRequest message or plain object * @param callback Node-style callback called with the error, if any, and PlaylistItem */ public createPlaylistItem(request: animeshon.library.v1alpha1.ICreatePlaylistItemRequest, callback: animeshon.library.v1alpha1.Library.CreatePlaylistItemCallback): void; /** * Calls CreatePlaylistItem. * @param request CreatePlaylistItemRequest message or plain object * @returns Promise */ public createPlaylistItem(request: animeshon.library.v1alpha1.ICreatePlaylistItemRequest): Promise<animeshon.library.v1alpha1.PlaylistItem>; /** * Calls BatchCreatePlaylistItems. * @param request BatchCreatePlaylistItemsRequest message or plain object * @param callback Node-style callback called with the error, if any, and BatchCreatePlaylistItemsResponse */ public batchCreatePlaylistItems(request: animeshon.library.v1alpha1.IBatchCreatePlaylistItemsRequest, callback: animeshon.library.v1alpha1.Library.BatchCreatePlaylistItemsCallback): void; /** * Calls BatchCreatePlaylistItems. * @param request BatchCreatePlaylistItemsRequest message or plain object * @returns Promise */ public batchCreatePlaylistItems(request: animeshon.library.v1alpha1.IBatchCreatePlaylistItemsRequest): Promise<animeshon.library.v1alpha1.BatchCreatePlaylistItemsResponse>; /** * Calls DeletePlaylistItem. * @param request DeletePlaylistItemRequest message or plain object * @param callback Node-style callback called with the error, if any, and Empty */ public deletePlaylistItem(request: animeshon.library.v1alpha1.IDeletePlaylistItemRequest, callback: animeshon.library.v1alpha1.Library.DeletePlaylistItemCallback): void; /** * Calls DeletePlaylistItem. * @param request DeletePlaylistItemRequest message or plain object * @returns Promise */ public deletePlaylistItem(request: animeshon.library.v1alpha1.IDeletePlaylistItemRequest): Promise<google.protobuf.Empty>; } namespace Library { /** * Callback as used by {@link animeshon.library.v1alpha1.Library#getPlaylist}. * @param error Error, if any * @param [response] Playlist */ type GetPlaylistCallback = (error: (Error|null), response?: animeshon.library.v1alpha1.Playlist) => void; /** * Callback as used by {@link animeshon.library.v1alpha1.Library#listPlaylists}. * @param error Error, if any * @param [response] ListPlaylistsResponse */ type ListPlaylistsCallback = (error: (Error|null), response?: animeshon.library.v1alpha1.ListPlaylistsResponse) => void; /** * Callback as used by {@link animeshon.library.v1alpha1.Library#createPlaylist}. * @param error Error, if any * @param [response] Playlist */ type CreatePlaylistCallback = (error: (Error|null), response?: animeshon.library.v1alpha1.Playlist) => void; /** * Callback as used by {@link animeshon.library.v1alpha1.Library#updatePlaylist}. * @param error Error, if any * @param [response] Playlist */ type UpdatePlaylistCallback = (error: (Error|null), response?: animeshon.library.v1alpha1.Playlist) => void; /** * Callback as used by {@link animeshon.library.v1alpha1.Library#deletePlaylist}. * @param error Error, if any * @param [response] Empty */ type DeletePlaylistCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** * Callback as used by {@link animeshon.library.v1alpha1.Library#listPlaylistItems}. * @param error Error, if any * @param [response] ListPlaylistItemsResponse */ type ListPlaylistItemsCallback = (error: (Error|null), response?: animeshon.library.v1alpha1.ListPlaylistItemsResponse) => void; /** * Callback as used by {@link animeshon.library.v1alpha1.Library#createPlaylistItem}. * @param error Error, if any * @param [response] PlaylistItem */ type CreatePlaylistItemCallback = (error: (Error|null), response?: animeshon.library.v1alpha1.PlaylistItem) => void; /** * Callback as used by {@link animeshon.library.v1alpha1.Library#batchCreatePlaylistItems}. * @param error Error, if any * @param [response] BatchCreatePlaylistItemsResponse */ type BatchCreatePlaylistItemsCallback = (error: (Error|null), response?: animeshon.library.v1alpha1.BatchCreatePlaylistItemsResponse) => void; /** * Callback as used by {@link animeshon.library.v1alpha1.Library#deletePlaylistItem}. * @param error Error, if any * @param [response] Empty */ type DeletePlaylistItemCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } /** Type enum. */ enum Type { TYPE_UNSPECIFIED = 0, LATER = 1, LIKED = 2, CUSTOM = 3 } /** Properties of a Playlist. */ interface IPlaylist { /** Playlist name */ name?: (string|null); /** Playlist displayName */ displayName?: (string|null); /** Playlist type */ type?: (animeshon.library.v1alpha1.Type|keyof typeof animeshon.library.v1alpha1.Type|null); } /** Represents a Playlist. */ class Playlist implements IPlaylist { /** * Constructs a new Playlist. * @param [properties] Properties to set */ constructor(properties?: animeshon.library.v1alpha1.IPlaylist); /** Playlist name. */ public name: string; /** Playlist displayName. */ public displayName: string; /** Playlist type. */ public type: (animeshon.library.v1alpha1.Type|keyof typeof animeshon.library.v1alpha1.Type); /** * Creates a new Playlist instance using the specified properties. * @param [properties] Properties to set * @returns Playlist instance */ public static create(properties?: animeshon.library.v1alpha1.IPlaylist): animeshon.library.v1alpha1.Playlist; /** * Encodes the specified Playlist message. Does not implicitly {@link animeshon.library.v1alpha1.Playlist.verify|verify} messages. * @param message Playlist message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: animeshon.library.v1alpha1.IPlaylist, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Playlist message, length delimited. Does not implicitly {@link animeshon.library.v1alpha1.Playlist.verify|verify} messages. * @param message Playlist message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: animeshon.library.v1alpha1.IPlaylist, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Playlist message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Playlist * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): animeshon.library.v1alpha1.Playlist; /** * Decodes a Playlist message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Playlist * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): animeshon.library.v1alpha1.Playlist; /** * Verifies a Playlist message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a Playlist message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Playlist */ public static fromObject(object: { [k: string]: any }): animeshon.library.v1alpha1.Playlist; /** * Creates a plain object from a Playlist message. Also converts values to other types if specified. * @param message Playlist * @param [options] Conversion options * @returns Plain object */ public static toObject(message: animeshon.library.v1alpha1.Playlist, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Playlist to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a BatchCreatePlaylistItemsResponse. */ interface IBatchCreatePlaylistItemsResponse { /** BatchCreatePlaylistItemsResponse items */ items?: (animeshon.library.v1alpha1.IPlaylistItem[]|null); } /** Represents a BatchCreatePlaylistItemsResponse. */ class BatchCreatePlaylistItemsResponse implements IBatchCreatePlaylistItemsResponse { /** * Constructs a new BatchCreatePlaylistItemsResponse. * @param [properties] Properties to set */ constructor(properties?: animeshon.library.v1alpha1.IBatchCreatePlaylistItemsResponse); /** BatchCreatePlaylistItemsResponse items. */ public items: animeshon.library.v1alpha1.IPlaylistItem[]; /** * Creates a new BatchCreatePlaylistItemsResponse instance using the specified properties. * @param [properties] Properties to set * @returns BatchCreatePlaylistItemsResponse instance */ public static create(properties?: animeshon.library.v1alpha1.IBatchCreatePlaylistItemsResponse): animeshon.library.v1alpha1.BatchCreatePlaylistItemsResponse; /** * Encodes the specified BatchCreatePlaylistItemsResponse message. Does not implicitly {@link animeshon.library.v1alpha1.BatchCreatePlaylistItemsResponse.verify|verify} messages. * @param message BatchCreatePlaylistItemsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: animeshon.library.v1alpha1.IBatchCreatePlaylistItemsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified BatchCreatePlaylistItemsResponse message, length delimited. Does not implicitly {@link animeshon.library.v1alpha1.BatchCreatePlaylistItemsResponse.verify|verify} messages. * @param message BatchCreatePlaylistItemsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: animeshon.library.v1alpha1.IBatchCreatePlaylistItemsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a BatchCreatePlaylistItemsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns BatchCreatePlaylistItemsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): animeshon.library.v1alpha1.BatchCreatePlaylistItemsResponse; /** * Decodes a BatchCreatePlaylistItemsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns BatchCreatePlaylistItemsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): animeshon.library.v1alpha1.BatchCreatePlaylistItemsResponse; /** * Verifies a BatchCreatePlaylistItemsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a BatchCreatePlaylistItemsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns BatchCreatePlaylistItemsResponse */ public static fromObject(object: { [k: string]: any }): animeshon.library.v1alpha1.BatchCreatePlaylistItemsResponse; /** * Creates a plain object from a BatchCreatePlaylistItemsResponse message. Also converts values to other types if specified. * @param message BatchCreatePlaylistItemsResponse * @param [options] Conversion options * @returns Plain object */ public static toObject(message: animeshon.library.v1alpha1.BatchCreatePlaylistItemsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this BatchCreatePlaylistItemsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a PlaylistItem. */ interface IPlaylistItem { /** PlaylistItem name */ name?: (string|null); /** PlaylistItem resource */ resource?: (string|null); /** PlaylistItem createTime */ createTime?: (google.protobuf.ITimestamp|null); } /** Represents a PlaylistItem. */ class PlaylistItem implements IPlaylistItem { /** * Constructs a new PlaylistItem. * @param [properties] Properties to set */ constructor(properties?: animeshon.library.v1alpha1.IPlaylistItem); /** PlaylistItem name. */ public name: string; /** PlaylistItem resource. */ public resource: string; /** PlaylistItem createTime. */ public createTime?: (google.protobuf.ITimestamp|null); /** * Creates a new PlaylistItem instance using the specified properties. * @param [properties] Properties to set * @returns PlaylistItem instance */ public static create(properties?: animeshon.library.v1alpha1.IPlaylistItem): animeshon.library.v1alpha1.PlaylistItem; /** * Encodes the specified PlaylistItem message. Does not implicitly {@link animeshon.library.v1alpha1.PlaylistItem.verify|verify} messages. * @param message PlaylistItem message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: animeshon.library.v1alpha1.IPlaylistItem, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified PlaylistItem message, length delimited. Does not implicitly {@link animeshon.library.v1alpha1.PlaylistItem.verify|verify} messages. * @param message PlaylistItem message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: animeshon.library.v1alpha1.IPlaylistItem, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a PlaylistItem message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns PlaylistItem * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): animeshon.library.v1alpha1.PlaylistItem; /** * Decodes a PlaylistItem message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns PlaylistItem * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): animeshon.library.v1alpha1.PlaylistItem; /** * Verifies a PlaylistItem message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a PlaylistItem message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns PlaylistItem */ public static fromObject(object: { [k: string]: any }): animeshon.library.v1alpha1.PlaylistItem; /** * Creates a plain object from a PlaylistItem message. Also converts values to other types if specified. * @param message PlaylistItem * @param [options] Conversion options * @returns Plain object */ public static toObject(message: animeshon.library.v1alpha1.PlaylistItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this PlaylistItem to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of an Audience. */ interface IAudience { /** Audience name */ name?: (string|null); /** Audience members */ members?: (string[]|null); } /** Represents an Audience. */ class Audience implements IAudience { /** * Constructs a new Audience. * @param [properties] Properties to set */ constructor(properties?: animeshon.library.v1alpha1.IAudience); /** Audience name. */ public name: string; /** Audience members. */ public members: string[]; /** * Creates a new Audience instance using the specified properties. * @param [properties] Properties to set * @returns Audience instance */ public static create(properties?: animeshon.library.v1alpha1.IAudience): animeshon.library.v1alpha1.Audience; /** * Encodes the specified Audience message. Does not implicitly {@link animeshon.library.v1alpha1.Audience.verify|verify} messages. * @param message Audience message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: animeshon.library.v1alpha1.IAudience, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Audience message, length delimited. Does not implicitly {@link animeshon.library.v1alpha1.Audience.verify|verify} messages. * @param message Audience message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: animeshon.library.v1alpha1.IAudience, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an Audience message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Audience * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): animeshon.library.v1alpha1.Audience; /** * Decodes an Audience message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Audience * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): animeshon.library.v1alpha1.Audience; /** * Verifies an Audience message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates an Audience message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Audience */ public static fromObject(object: { [k: string]: any }): animeshon.library.v1alpha1.Audience; /** * Creates a plain object from an Audience message. Also converts values to other types if specified. * @param message Audience * @param [options] Conversion options * @returns Plain object */ public static toObject(message: animeshon.library.v1alpha1.Audience, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Audience to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a GetPlaylistRequest. */ interface IGetPlaylistRequest { /** GetPlaylistRequest name */ name?: (string|null); } /** Represents a GetPlaylistRequest. */ class GetPlaylistRequest implements IGetPlaylistRequest { /** * Constructs a new GetPlaylistRequest. * @param [properties] Properties to set */ constructor(properties?: animeshon.library.v1alpha1.IGetPlaylistRequest); /** GetPlaylistRequest name. */ public name: string; /** * Creates a new GetPlaylistRequest instance using the specified properties. * @param [properties] Properties to set * @returns GetPlaylistRequest instance */ public static create(properties?: animeshon.library.v1alpha1.IGetPlaylistRequest): animeshon.library.v1alpha1.GetPlaylistRequest; /** * Encodes the specified GetPlaylistRequest message. Does not implicitly {@link animeshon.library.v1alpha1.GetPlaylistRequest.verify|verify} messages. * @param message GetPlaylistRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: animeshon.library.v1alpha1.IGetPlaylistRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified GetPlaylistRequest message, length delimited. Does not implicitly {@link animeshon.library.v1alpha1.GetPlaylistRequest.verify|verify} messages. * @param message GetPlaylistRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: animeshon.library.v1alpha1.IGetPlaylistRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a GetPlaylistRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns GetPlaylistRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): animeshon.library.v1alpha1.GetPlaylistRequest; /** * Decodes a GetPlaylistRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns GetPlaylistRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): animeshon.library.v1alpha1.GetPlaylistRequest; /** * Verifies a GetPlaylistRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a GetPlaylistRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns GetPlaylistRequest */ public static fromObject(object: { [k: string]: any }): animeshon.library.v1alpha1.GetPlaylistRequest; /** * Creates a plain object from a GetPlaylistRequest message. Also converts values to other types if specified. * @param message GetPlaylistRequest * @param [options] Conversion options * @returns Plain object */ public static toObject(message: animeshon.library.v1alpha1.GetPlaylistRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this GetPlaylistRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a ListPlaylistsRequest. */ interface IListPlaylistsRequest { /** ListPlaylistsRequest parent */ parent?: (string|null); /** ListPlaylistsRequest pageSize */ pageSize?: (number|null); /** ListPlaylistsRequest pageToken */ pageToken?: (string|null); /** ListPlaylistsRequest filter */ filter?: (string|null); } /** Represents a ListPlaylistsRequest. */ class ListPlaylistsRequest implements IListPlaylistsRequest { /** * Constructs a new ListPlaylistsRequest. * @param [properties] Properties to set */ constructor(properties?: animeshon.library.v1alpha1.IListPlaylistsRequest); /** ListPlaylistsRequest parent. */ public parent: string; /** ListPlaylistsRequest pageSize. */ public pageSize: number; /** ListPlaylistsRequest pageToken. */ public pageToken: string; /** ListPlaylistsRequest filter. */ public filter: string; /** * Creates a new ListPlaylistsRequest instance using the specified properties. * @param [properties] Properties to set * @returns ListPlaylistsRequest instance */ public static create(properties?: animeshon.library.v1alpha1.IListPlaylistsRequest): animeshon.library.v1alpha1.ListPlaylistsRequest; /** * Encodes the specified ListPlaylistsRequest message. Does not implicitly {@link animeshon.library.v1alpha1.ListPlaylistsRequest.verify|verify} messages. * @param message ListPlaylistsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: animeshon.library.v1alpha1.IListPlaylistsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ListPlaylistsRequest message, length delimited. Does not implicitly {@link animeshon.library.v1alpha1.ListPlaylistsRequest.verify|verify} messages. * @param message ListPlaylistsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: animeshon.library.v1alpha1.IListPlaylistsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ListPlaylistsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns ListPlaylistsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): animeshon.library.v1alpha1.ListPlaylistsRequest; /** * Decodes a ListPlaylistsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns ListPlaylistsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): animeshon.library.v1alpha1.ListPlaylistsRequest; /** * Verifies a ListPlaylistsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a ListPlaylistsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns ListPlaylistsRequest */ public static fromObject(object: { [k: string]: any }): animeshon.library.v1alpha1.ListPlaylistsRequest; /** * Creates a plain object from a ListPlaylistsRequest message. Also converts values to other types if specified. * @param message ListPlaylistsRequest * @param [options] Conversion options * @returns Plain object */ public static toObject(message: animeshon.library.v1alpha1.ListPlaylistsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ListPlaylistsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a ListPlaylistsResponse. */ interface IListPlaylistsResponse { /** ListPlaylistsResponse playlists */ playlists?: (animeshon.library.v1alpha1.IPlaylist[]|null); /** ListPlaylistsResponse nextPageToken */ nextPageToken?: (string|null); } /** Represents a ListPlaylistsResponse. */ class ListPlaylistsResponse implements IListPlaylistsResponse { /** * Constructs a new ListPlaylistsResponse. * @param [properties] Properties to set */ constructor(properties?: animeshon.library.v1alpha1.IListPlaylistsResponse); /** ListPlaylistsResponse playlists. */ public playlists: animeshon.library.v1alpha1.IPlaylist[]; /** ListPlaylistsResponse nextPageToken. */ public nextPageToken: string; /** * Creates a new ListPlaylistsResponse instance using the specified properties. * @param [properties] Properties to set * @returns ListPlaylistsResponse instance */ public static create(properties?: animeshon.library.v1alpha1.IListPlaylistsResponse): animeshon.library.v1alpha1.ListPlaylistsResponse; /** * Encodes the specified ListPlaylistsResponse message. Does not implicitly {@link animeshon.library.v1alpha1.ListPlaylistsResponse.verify|verify} messages. * @param message ListPlaylistsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: animeshon.library.v1alpha1.IListPlaylistsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ListPlaylistsResponse message, length delimited. Does not implicitly {@link animeshon.library.v1alpha1.ListPlaylistsResponse.verify|verify} messages. * @param message ListPlaylistsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: animeshon.library.v1alpha1.IListPlaylistsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ListPlaylistsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns ListPlaylistsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): animeshon.library.v1alpha1.ListPlaylistsResponse; /** * Decodes a ListPlaylistsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns ListPlaylistsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): animeshon.library.v1alpha1.ListPlaylistsResponse; /** * Verifies a ListPlaylistsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a ListPlaylistsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns ListPlaylistsResponse */ public static fromObject(object: { [k: string]: any }): animeshon.library.v1alpha1.ListPlaylistsResponse; /** * Creates a plain object from a ListPlaylistsResponse message. Also converts values to other types if specified. * @param message ListPlaylistsResponse * @param [options] Conversion options * @returns Plain object */ public static toObject(message: animeshon.library.v1alpha1.ListPlaylistsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ListPlaylistsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a CreatePlaylistRequest. */ interface ICreatePlaylistRequest { /** CreatePlaylistRequest parent */ parent?: (string|null); /** CreatePlaylistRequest playlist */ playlist?: (animeshon.library.v1alpha1.IPlaylist|null); } /** Represents a CreatePlaylistRequest. */ class CreatePlaylistRequest implements ICreatePlaylistRequest { /** * Constructs a new CreatePlaylistRequest. * @param [properties] Properties to set */ constructor(properties?: animeshon.library.v1alpha1.ICreatePlaylistRequest); /** CreatePlaylistRequest parent. */ public parent: string; /** CreatePlaylistRequest playlist. */ public playlist?: (animeshon.library.v1alpha1.IPlaylist|null); /** * Creates a new CreatePlaylistRequest instance using the specified properties. * @param [properties] Properties to set * @returns CreatePlaylistRequest instance */ public static create(properties?: animeshon.library.v1alpha1.ICreatePlaylistRequest): animeshon.library.v1alpha1.CreatePlaylistRequest; /** * Encodes the specified CreatePlaylistRequest message. Does not implicitly {@link animeshon.library.v1alpha1.CreatePlaylistRequest.verify|verify} messages. * @param message CreatePlaylistRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: animeshon.library.v1alpha1.ICreatePlaylistRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified CreatePlaylistRequest message, length delimited. Does not implicitly {@link animeshon.library.v1alpha1.CreatePlaylistRequest.verify|verify} messages. * @param message CreatePlaylistRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: animeshon.library.v1alpha1.ICreatePlaylistRequest, writer?: $protobuf.Writer): $protobuf.Writer;