UNPKG

wechaty-grpc

Version:
90 lines (75 loc) 3.56 kB
// package: wechaty.puppet // file: wechaty/puppet/download-upload.proto import * as jspb from "google-protobuf"; export class UploadRequest extends jspb.Message { getChunk(): Uint8Array | string; getChunk_asU8(): Uint8Array; getChunk_asB64(): string; setChunk(value: Uint8Array | string): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): UploadRequest.AsObject; static toObject(includeInstance: boolean, msg: UploadRequest): UploadRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static serializeBinaryToWriter(message: UploadRequest, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): UploadRequest; static deserializeBinaryFromReader(message: UploadRequest, reader: jspb.BinaryReader): UploadRequest; } export namespace UploadRequest { export type AsObject = { chunk: Uint8Array | string, } } export class UploadResponse extends jspb.Message { getId(): string; setId(value: string): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): UploadResponse.AsObject; static toObject(includeInstance: boolean, msg: UploadResponse): UploadResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static serializeBinaryToWriter(message: UploadResponse, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): UploadResponse; static deserializeBinaryFromReader(message: UploadResponse, reader: jspb.BinaryReader): UploadResponse; } export namespace UploadResponse { export type AsObject = { id: string, } } export class DownloadRequest extends jspb.Message { getId(): string; setId(value: string): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): DownloadRequest.AsObject; static toObject(includeInstance: boolean, msg: DownloadRequest): DownloadRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static serializeBinaryToWriter(message: DownloadRequest, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): DownloadRequest; static deserializeBinaryFromReader(message: DownloadRequest, reader: jspb.BinaryReader): DownloadRequest; } export namespace DownloadRequest { export type AsObject = { id: string, } } export class DownloadResponse extends jspb.Message { getChunk(): Uint8Array | string; getChunk_asU8(): Uint8Array; getChunk_asB64(): string; setChunk(value: Uint8Array | string): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): DownloadResponse.AsObject; static toObject(includeInstance: boolean, msg: DownloadResponse): DownloadResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; static serializeBinaryToWriter(message: DownloadResponse, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): DownloadResponse; static deserializeBinaryFromReader(message: DownloadResponse, reader: jspb.BinaryReader): DownloadResponse; } export namespace DownloadResponse { export type AsObject = { chunk: Uint8Array | string, } }