| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364 |
- /**
- * @fileoverview gRPC-Web generated client stub for palm.lily.v1
- * @enhanceable
- * @public
- */
- // Code generated by protoc-gen-grpc-web. DO NOT EDIT.
- // versions:
- // protoc-gen-grpc-web v1.4.2
- // protoc v4.24.3
- // source: lily.proto
- /* eslint-disable */
- // @ts-nocheck
- import * as grpcWeb from 'grpc-web';
- import * as lily_pb from './lily_pb';
- export class ExcelClient {
- client_: grpcWeb.AbstractClientBase;
- hostname_: string;
- credentials_: null | { [index: string]: string; };
- options_: null | { [index: string]: any; };
- constructor (hostname: string,
- credentials?: null | { [index: string]: string; },
- options?: null | { [index: string]: any; }) {
- if (!options) options = {};
- if (!credentials) credentials = {};
- options['format'] = 'binary';
- this.client_ = new grpcWeb.GrpcWebClientBase(options);
- this.hostname_ = hostname.replace(/\/+$/, '');
- this.credentials_ = credentials;
- this.options_ = options;
- }
- methodDescriptorParse = new grpcWeb.MethodDescriptor(
- '/palm.lily.v1.Excel/Parse',
- grpcWeb.MethodType.UNARY,
- lily_pb.S3File,
- lily_pb.ExcelModel,
- (request: lily_pb.S3File) => {
- return request.serializeBinary();
- },
- lily_pb.ExcelModel.deserializeBinary
- );
- parse(
- request: lily_pb.S3File,
- metadata: grpcWeb.Metadata | null): Promise<lily_pb.ExcelModel>;
- parse(
- request: lily_pb.S3File,
- metadata: grpcWeb.Metadata | null,
- callback: (err: grpcWeb.RpcError,
- response: lily_pb.ExcelModel) => void): grpcWeb.ClientReadableStream<lily_pb.ExcelModel>;
- parse(
- request: lily_pb.S3File,
- metadata: grpcWeb.Metadata | null,
- callback?: (err: grpcWeb.RpcError,
- response: lily_pb.ExcelModel) => void) {
- if (callback !== undefined) {
- return this.client_.rpcCall(
- this.hostname_ +
- '/palm.lily.v1.Excel/Parse',
- request,
- metadata || {},
- this.methodDescriptorParse,
- callback);
- }
- return this.client_.unaryCall(
- this.hostname_ +
- '/palm.lily.v1.Excel/Parse',
- request,
- metadata || {},
- this.methodDescriptorParse);
- }
- methodDescriptorGenerate = new grpcWeb.MethodDescriptor(
- '/palm.lily.v1.Excel/Generate',
- grpcWeb.MethodType.UNARY,
- lily_pb.ExcelModel,
- lily_pb.S3File,
- (request: lily_pb.ExcelModel) => {
- return request.serializeBinary();
- },
- lily_pb.S3File.deserializeBinary
- );
- generate(
- request: lily_pb.ExcelModel,
- metadata: grpcWeb.Metadata | null): Promise<lily_pb.S3File>;
- generate(
- request: lily_pb.ExcelModel,
- metadata: grpcWeb.Metadata | null,
- callback: (err: grpcWeb.RpcError,
- response: lily_pb.S3File) => void): grpcWeb.ClientReadableStream<lily_pb.S3File>;
- generate(
- request: lily_pb.ExcelModel,
- metadata: grpcWeb.Metadata | null,
- callback?: (err: grpcWeb.RpcError,
- response: lily_pb.S3File) => void) {
- if (callback !== undefined) {
- return this.client_.rpcCall(
- this.hostname_ +
- '/palm.lily.v1.Excel/Generate',
- request,
- metadata || {},
- this.methodDescriptorGenerate,
- callback);
- }
- return this.client_.unaryCall(
- this.hostname_ +
- '/palm.lily.v1.Excel/Generate',
- request,
- metadata || {},
- this.methodDescriptorGenerate);
- }
- }
- export class S3Client {
- client_: grpcWeb.AbstractClientBase;
- hostname_: string;
- credentials_: null | { [index: string]: string; };
- options_: null | { [index: string]: any; };
- constructor (hostname: string,
- credentials?: null | { [index: string]: string; },
- options?: null | { [index: string]: any; }) {
- if (!options) options = {};
- if (!credentials) credentials = {};
- options['format'] = 'binary';
- this.client_ = new grpcWeb.GrpcWebClientBase(options);
- this.hostname_ = hostname.replace(/\/+$/, '');
- this.credentials_ = credentials;
- this.options_ = options;
- }
- methodDescriptorGetFile = new grpcWeb.MethodDescriptor(
- '/palm.lily.v1.S3/GetFile',
- grpcWeb.MethodType.UNARY,
- lily_pb.S3GetFileRequest,
- lily_pb.S3GetFileResponse,
- (request: lily_pb.S3GetFileRequest) => {
- return request.serializeBinary();
- },
- lily_pb.S3GetFileResponse.deserializeBinary
- );
- getFile(
- request: lily_pb.S3GetFileRequest,
- metadata: grpcWeb.Metadata | null): Promise<lily_pb.S3GetFileResponse>;
- getFile(
- request: lily_pb.S3GetFileRequest,
- metadata: grpcWeb.Metadata | null,
- callback: (err: grpcWeb.RpcError,
- response: lily_pb.S3GetFileResponse) => void): grpcWeb.ClientReadableStream<lily_pb.S3GetFileResponse>;
- getFile(
- request: lily_pb.S3GetFileRequest,
- metadata: grpcWeb.Metadata | null,
- callback?: (err: grpcWeb.RpcError,
- response: lily_pb.S3GetFileResponse) => void) {
- if (callback !== undefined) {
- return this.client_.rpcCall(
- this.hostname_ +
- '/palm.lily.v1.S3/GetFile',
- request,
- metadata || {},
- this.methodDescriptorGetFile,
- callback);
- }
- return this.client_.unaryCall(
- this.hostname_ +
- '/palm.lily.v1.S3/GetFile',
- request,
- metadata || {},
- this.methodDescriptorGetFile);
- }
- }
- export class TexClient {
- client_: grpcWeb.AbstractClientBase;
- hostname_: string;
- credentials_: null | { [index: string]: string; };
- options_: null | { [index: string]: any; };
- constructor (hostname: string,
- credentials?: null | { [index: string]: string; },
- options?: null | { [index: string]: any; }) {
- if (!options) options = {};
- if (!credentials) credentials = {};
- options['format'] = 'binary';
- this.client_ = new grpcWeb.GrpcWebClientBase(options);
- this.hostname_ = hostname.replace(/\/+$/, '');
- this.credentials_ = credentials;
- this.options_ = options;
- }
- methodDescriptorToPdf = new grpcWeb.MethodDescriptor(
- '/palm.lily.v1.Tex/ToPdf',
- grpcWeb.MethodType.UNARY,
- lily_pb.TexToRequest,
- lily_pb.S3File,
- (request: lily_pb.TexToRequest) => {
- return request.serializeBinary();
- },
- lily_pb.S3File.deserializeBinary
- );
- toPdf(
- request: lily_pb.TexToRequest,
- metadata: grpcWeb.Metadata | null): Promise<lily_pb.S3File>;
- toPdf(
- request: lily_pb.TexToRequest,
- metadata: grpcWeb.Metadata | null,
- callback: (err: grpcWeb.RpcError,
- response: lily_pb.S3File) => void): grpcWeb.ClientReadableStream<lily_pb.S3File>;
- toPdf(
- request: lily_pb.TexToRequest,
- metadata: grpcWeb.Metadata | null,
- callback?: (err: grpcWeb.RpcError,
- response: lily_pb.S3File) => void) {
- if (callback !== undefined) {
- return this.client_.rpcCall(
- this.hostname_ +
- '/palm.lily.v1.Tex/ToPdf',
- request,
- metadata || {},
- this.methodDescriptorToPdf,
- callback);
- }
- return this.client_.unaryCall(
- this.hostname_ +
- '/palm.lily.v1.Tex/ToPdf',
- request,
- metadata || {},
- this.methodDescriptorToPdf);
- }
- methodDescriptorToWord = new grpcWeb.MethodDescriptor(
- '/palm.lily.v1.Tex/ToWord',
- grpcWeb.MethodType.UNARY,
- lily_pb.TexToRequest,
- lily_pb.S3File,
- (request: lily_pb.TexToRequest) => {
- return request.serializeBinary();
- },
- lily_pb.S3File.deserializeBinary
- );
- toWord(
- request: lily_pb.TexToRequest,
- metadata: grpcWeb.Metadata | null): Promise<lily_pb.S3File>;
- toWord(
- request: lily_pb.TexToRequest,
- metadata: grpcWeb.Metadata | null,
- callback: (err: grpcWeb.RpcError,
- response: lily_pb.S3File) => void): grpcWeb.ClientReadableStream<lily_pb.S3File>;
- toWord(
- request: lily_pb.TexToRequest,
- metadata: grpcWeb.Metadata | null,
- callback?: (err: grpcWeb.RpcError,
- response: lily_pb.S3File) => void) {
- if (callback !== undefined) {
- return this.client_.rpcCall(
- this.hostname_ +
- '/palm.lily.v1.Tex/ToWord',
- request,
- metadata || {},
- this.methodDescriptorToWord,
- callback);
- }
- return this.client_.unaryCall(
- this.hostname_ +
- '/palm.lily.v1.Tex/ToWord',
- request,
- metadata || {},
- this.methodDescriptorToWord);
- }
- }
- export class EpubClient {
- client_: grpcWeb.AbstractClientBase;
- hostname_: string;
- credentials_: null | { [index: string]: string; };
- options_: null | { [index: string]: any; };
- constructor (hostname: string,
- credentials?: null | { [index: string]: string; },
- options?: null | { [index: string]: any; }) {
- if (!options) options = {};
- if (!credentials) credentials = {};
- options['format'] = 'binary';
- this.client_ = new grpcWeb.GrpcWebClientBase(options);
- this.hostname_ = hostname.replace(/\/+$/, '');
- this.credentials_ = credentials;
- this.options_ = options;
- }
- methodDescriptorBuild = new grpcWeb.MethodDescriptor(
- '/palm.lily.v1.Epub/Build',
- grpcWeb.MethodType.UNARY,
- lily_pb.EpubBuildRequest,
- lily_pb.S3File,
- (request: lily_pb.EpubBuildRequest) => {
- return request.serializeBinary();
- },
- lily_pb.S3File.deserializeBinary
- );
- build(
- request: lily_pb.EpubBuildRequest,
- metadata: grpcWeb.Metadata | null): Promise<lily_pb.S3File>;
- build(
- request: lily_pb.EpubBuildRequest,
- metadata: grpcWeb.Metadata | null,
- callback: (err: grpcWeb.RpcError,
- response: lily_pb.S3File) => void): grpcWeb.ClientReadableStream<lily_pb.S3File>;
- build(
- request: lily_pb.EpubBuildRequest,
- metadata: grpcWeb.Metadata | null,
- callback?: (err: grpcWeb.RpcError,
- response: lily_pb.S3File) => void) {
- if (callback !== undefined) {
- return this.client_.rpcCall(
- this.hostname_ +
- '/palm.lily.v1.Epub/Build',
- request,
- metadata || {},
- this.methodDescriptorBuild,
- callback);
- }
- return this.client_.unaryCall(
- this.hostname_ +
- '/palm.lily.v1.Epub/Build',
- request,
- metadata || {},
- this.methodDescriptorBuild);
- }
- }
|