|
| 1 | +import * as $protobuf from "../.."; |
| 2 | + |
| 3 | +export class MyService extends $protobuf.rpc.Service { |
| 4 | + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); |
| 5 | + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): MyService; |
| 6 | + public delete(request: IMyRequest, callback: MyService.DeleteCallback): void; |
| 7 | + public delete(request: IMyRequest): Promise<MyResponse>; |
| 8 | +} |
| 9 | + |
| 10 | +export namespace MyService { |
| 11 | + |
| 12 | + type DeleteCallback = (error: (Error|null), response?: MyResponse) => void; |
| 13 | +} |
| 14 | + |
| 15 | +export interface IMyRequest { |
| 16 | + path?: (string|null); |
| 17 | +} |
| 18 | + |
| 19 | +export class MyRequest implements IMyRequest { |
| 20 | + constructor(properties?: IMyRequest); |
| 21 | + public path: string; |
| 22 | + public static create(properties?: IMyRequest): MyRequest; |
| 23 | + public static encode(message: IMyRequest, writer?: $protobuf.Writer): $protobuf.Writer; |
| 24 | + public static encodeDelimited(message: IMyRequest, writer?: $protobuf.Writer): $protobuf.Writer; |
| 25 | + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): MyRequest; |
| 26 | + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): MyRequest; |
| 27 | + public static verify(message: { [k: string]: any }): (string|null); |
| 28 | + public static fromObject(object: { [k: string]: any }): MyRequest; |
| 29 | + public static toObject(message: MyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; |
| 30 | + public toJSON(): { [k: string]: any }; |
| 31 | +} |
| 32 | + |
| 33 | +export interface IMyResponse { |
| 34 | + status?: (number|null); |
| 35 | +} |
| 36 | + |
| 37 | +export class MyResponse implements IMyResponse { |
| 38 | + constructor(properties?: IMyResponse); |
| 39 | + public status: number; |
| 40 | + public static create(properties?: IMyResponse): MyResponse; |
| 41 | + public static encode(message: IMyResponse, writer?: $protobuf.Writer): $protobuf.Writer; |
| 42 | + public static encodeDelimited(message: IMyResponse, writer?: $protobuf.Writer): $protobuf.Writer; |
| 43 | + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): MyResponse; |
| 44 | + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): MyResponse; |
| 45 | + public static verify(message: { [k: string]: any }): (string|null); |
| 46 | + public static fromObject(object: { [k: string]: any }): MyResponse; |
| 47 | + public static toObject(message: MyResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; |
| 48 | + public toJSON(): { [k: string]: any }; |
| 49 | +} |
0 commit comments