Austin Schuh | 272c613 | 2020-11-14 16:37:52 -0800 | [diff] [blame^] | 1 | // Generated GRPC code for FlatBuffers TS *** DO NOT EDIT *** |
| 2 | import { flatbuffers } from 'flatbuffers'; |
| 3 | import * as MonsterStorage_fbs from './monster_test_generated'; |
| 4 | |
| 5 | import * as grpc from 'grpc'; |
| 6 | |
| 7 | interface IMonsterStorageService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> { |
| 8 | Store: IMonsterStorageService_IStore; |
| 9 | Retrieve: IMonsterStorageService_IRetrieve; |
| 10 | GetMaxHitPoint: IMonsterStorageService_IGetMaxHitPoint; |
| 11 | GetMinMaxHitPoints: IMonsterStorageService_IGetMinMaxHitPoints; |
| 12 | } |
| 13 | interface IMonsterStorageService_IStore extends grpc.MethodDefinition<MonsterStorage_fbs.Monster, MonsterStorage_fbs.Stat> { |
| 14 | path: string; // /MyGame.Example.MonsterStorage/Store |
| 15 | requestStream: boolean; // false |
| 16 | responseStream: boolean; // false |
| 17 | requestSerialize: grpc.serialize<MonsterStorage_fbs.Monster>; |
| 18 | requestDeserialize: grpc.deserialize<MonsterStorage_fbs.Monster>; |
| 19 | responseSerialize: grpc.serialize<MonsterStorage_fbs.Stat>; |
| 20 | responseDeserialize: grpc.deserialize<MonsterStorage_fbs.Stat>; |
| 21 | } |
| 22 | |
| 23 | interface IMonsterStorageService_IRetrieve extends grpc.MethodDefinition<MonsterStorage_fbs.Stat, MonsterStorage_fbs.Monster> { |
| 24 | path: string; // /MyGame.Example.MonsterStorage/Retrieve |
| 25 | requestStream: boolean; // false |
| 26 | responseStream: boolean; // true |
| 27 | requestSerialize: grpc.serialize<MonsterStorage_fbs.Stat>; |
| 28 | requestDeserialize: grpc.deserialize<MonsterStorage_fbs.Stat>; |
| 29 | responseSerialize: grpc.serialize<MonsterStorage_fbs.Monster>; |
| 30 | responseDeserialize: grpc.deserialize<MonsterStorage_fbs.Monster>; |
| 31 | } |
| 32 | |
| 33 | interface IMonsterStorageService_IGetMaxHitPoint extends grpc.MethodDefinition<MonsterStorage_fbs.Monster, MonsterStorage_fbs.Stat> { |
| 34 | path: string; // /MyGame.Example.MonsterStorage/GetMaxHitPoint |
| 35 | requestStream: boolean; // true |
| 36 | responseStream: boolean; // false |
| 37 | requestSerialize: grpc.serialize<MonsterStorage_fbs.Monster>; |
| 38 | requestDeserialize: grpc.deserialize<MonsterStorage_fbs.Monster>; |
| 39 | responseSerialize: grpc.serialize<MonsterStorage_fbs.Stat>; |
| 40 | responseDeserialize: grpc.deserialize<MonsterStorage_fbs.Stat>; |
| 41 | } |
| 42 | |
| 43 | interface IMonsterStorageService_IGetMinMaxHitPoints extends grpc.MethodDefinition<MonsterStorage_fbs.Monster, MonsterStorage_fbs.Stat> { |
| 44 | path: string; // /MyGame.Example.MonsterStorage/GetMinMaxHitPoints |
| 45 | requestStream: boolean; // true |
| 46 | responseStream: boolean; // true |
| 47 | requestSerialize: grpc.serialize<MonsterStorage_fbs.Monster>; |
| 48 | requestDeserialize: grpc.deserialize<MonsterStorage_fbs.Monster>; |
| 49 | responseSerialize: grpc.serialize<MonsterStorage_fbs.Stat>; |
| 50 | responseDeserialize: grpc.deserialize<MonsterStorage_fbs.Stat>; |
| 51 | } |
| 52 | |
| 53 | |
| 54 | export const MonsterStorageService: IMonsterStorageService; |
| 55 | |
| 56 | export interface IMonsterStorageServer { |
| 57 | Store: grpc.handleUnaryCall<MonsterStorage_fbs.Monster, MonsterStorage_fbs.Stat>; |
| 58 | Retrieve: grpc.handleServerStreamingCall<MonsterStorage_fbs.Stat, MonsterStorage_fbs.Monster>; |
| 59 | GetMaxHitPoint: grpc.handleClientStreamingCall<MonsterStorage_fbs.Monster, MonsterStorage_fbs.Stat>; |
| 60 | GetMinMaxHitPoints: grpc.handleBidiStreamingCall<MonsterStorage_fbs.Monster, MonsterStorage_fbs.Stat>; |
| 61 | } |
| 62 | |
| 63 | export interface IMonsterStorageClient { |
| 64 | Store(request: MonsterStorage_fbs.Monster, callback: (error: grpc.ServiceError | null, response: MonsterStorage_fbs.Stat) => void): grpc.ClientUnaryCall; |
| 65 | Store(request: MonsterStorage_fbs.Monster, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: MonsterStorage_fbs.Stat) => void): grpc.ClientUnaryCall; |
| 66 | Store(request: MonsterStorage_fbs.Monster, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: MonsterStorage_fbs.Stat) => void): grpc.ClientUnaryCall; |
| 67 | Retrieve(request: MonsterStorage_fbs.Stat, metadata: grpc.Metadata): grpc.ClientReadableStream<MonsterStorage_fbs.Monster>; |
| 68 | Retrieve(request: MonsterStorage_fbs.Stat, options: Partial<grpc.CallOptions>): grpc.ClientReadableStream<MonsterStorage_fbs.Monster>; |
| 69 | GetMaxHitPoint(callback: (error: grpc.ServiceError | null, response: MonsterStorage_fbs.Monster) => void): grpc.ClientWritableStream<MonsterStorage_fbs.Stat>; |
| 70 | GetMaxHitPoint(metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: MonsterStorage_fbs.Monster) => void): grpc.ClientWritableStream<MonsterStorage_fbs.Stat>; |
| 71 | GetMaxHitPoint(options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: MonsterStorage_fbs.Monster) => void): grpc.ClientWritableStream<MonsterStorage_fbs.Stat>; |
| 72 | GetMaxHitPoint(metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: MonsterStorage_fbs.Monster) => void): grpc.ClientWritableStream<MonsterStorage_fbs.Stat>; |
| 73 | GetMinMaxHitPoints(): grpc.ClientDuplexStream<MonsterStorage_fbs.Monster, MonsterStorage_fbs.Stat>; |
| 74 | GetMinMaxHitPoints(options: Partial<grpc.CallOptions>): grpc.ClientDuplexStream<MonsterStorage_fbs.Monster, MonsterStorage_fbs.Stat>; |
| 75 | GetMinMaxHitPoints(metadata: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientDuplexStream<MonsterStorage_fbs.Monster, MonsterStorage_fbs.Stat>; |
| 76 | } |
| 77 | |
| 78 | export class MonsterStorageClient extends grpc.Client implements IMonsterStorageClient { |
| 79 | constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); public Store(request: MonsterStorage_fbs.Monster, callback: (error: grpc.ServiceError | null, response: MonsterStorage_fbs.Stat) => void): grpc.ClientUnaryCall; |
| 80 | public Store(request: MonsterStorage_fbs.Monster, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: MonsterStorage_fbs.Stat) => void): grpc.ClientUnaryCall; |
| 81 | public Store(request: MonsterStorage_fbs.Monster, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: MonsterStorage_fbs.Stat) => void): grpc.ClientUnaryCall; |
| 82 | public Retrieve(request: MonsterStorage_fbs.Stat, metadata: grpc.Metadata): grpc.ClientReadableStream<MonsterStorage_fbs.Monster>; |
| 83 | public Retrieve(request: MonsterStorage_fbs.Stat, options: Partial<grpc.CallOptions>): grpc.ClientReadableStream<MonsterStorage_fbs.Monster>; |
| 84 | public GetMaxHitPoint(callback: (error: grpc.ServiceError | null, response: MonsterStorage_fbs.Monster) => void): grpc.ClientWritableStream<MonsterStorage_fbs.Stat>; |
| 85 | public GetMaxHitPoint(metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: MonsterStorage_fbs.Monster) => void): grpc.ClientWritableStream<MonsterStorage_fbs.Stat>; |
| 86 | public GetMaxHitPoint(options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: MonsterStorage_fbs.Monster) => void): grpc.ClientWritableStream<MonsterStorage_fbs.Stat>; |
| 87 | public GetMaxHitPoint(metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: MonsterStorage_fbs.Monster) => void): grpc.ClientWritableStream<MonsterStorage_fbs.Stat>; |
| 88 | public GetMinMaxHitPoints(): grpc.ClientDuplexStream<MonsterStorage_fbs.Monster, MonsterStorage_fbs.Stat>; |
| 89 | public GetMinMaxHitPoints(options: Partial<grpc.CallOptions>): grpc.ClientDuplexStream<MonsterStorage_fbs.Monster, MonsterStorage_fbs.Stat>; |
| 90 | public GetMinMaxHitPoints(metadata: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientDuplexStream<MonsterStorage_fbs.Monster, MonsterStorage_fbs.Stat>; |
| 91 | } |
| 92 | |