@chatie/grpc
Version:
gRPC for Chatie
43 lines (35 loc) • 1.28 kB
TypeScript
// package: wechaty.puppet
// file: puppet/file_box.proto
import * as jspb from "google-protobuf";
export class FileBoxChunk extends jspb.Message {
hasData(): boolean;
clearData(): void;
getData(): Uint8Array | string;
getData_asU8(): Uint8Array;
getData_asB64(): string;
setData(value: Uint8Array | string): void;
hasName(): boolean;
clearName(): void;
getName(): string;
setName(value: string): void;
getPayloadCase(): FileBoxChunk.PayloadCase;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): FileBoxChunk.AsObject;
static toObject(includeInstance: boolean, msg: FileBoxChunk): FileBoxChunk.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: FileBoxChunk, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): FileBoxChunk;
static deserializeBinaryFromReader(message: FileBoxChunk, reader: jspb.BinaryReader): FileBoxChunk;
}
export namespace FileBoxChunk {
export type AsObject = {
data: Uint8Array | string,
name: string,
}
export enum PayloadCase {
PAYLOAD_NOT_SET = 0,
DATA = 1,
NAME = 2,
}
}