// Generated GRPC code for FlatBuffers TS *** DO NOT EDIT *** import * as flatbuffers from 'flatbuffers'; import { HelloReply as models_HelloReply } from './models/hello-reply'; import { HelloRequest as models_HelloRequest } from './models/hello-request'; import * as grpc from 'grpc'; interface IGreeterService extends grpc.ServiceDefinition { SayHello: IGreeterService_ISayHello; SayManyHellos: IGreeterService_ISayManyHellos; } interface IGreeterService_ISayHello extends grpc.MethodDefinition { path: string; // /models.Greeter/SayHello requestStream: boolean; // false responseStream: boolean; // false requestSerialize: grpc.serialize; requestDeserialize: grpc.deserialize; responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } interface IGreeterService_ISayManyHellos extends grpc.MethodDefinition { path: string; // /models.Greeter/SayManyHellos requestStream: boolean; // false responseStream: boolean; // true requestSerialize: grpc.serialize; requestDeserialize: grpc.deserialize; responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } export const GreeterService: IGreeterService; export interface IGreeterServer { SayHello: grpc.handleUnaryCall; SayManyHellos: grpc.handleServerStreamingCall; } export interface IGreeterClient { SayHello(request: models_HelloRequest, callback: (error: grpc.ServiceError | null, response: models_HelloReply) => void): grpc.ClientUnaryCall; SayHello(request: models_HelloRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: models_HelloReply) => void): grpc.ClientUnaryCall; SayHello(request: models_HelloRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: models_HelloReply) => void): grpc.ClientUnaryCall; SayManyHellos(request: models_HelloRequest, metadata: grpc.Metadata): grpc.ClientReadableStream; SayManyHellos(request: models_HelloRequest, options: Partial): grpc.ClientReadableStream; } export class GreeterClient extends grpc.Client implements IGreeterClient { constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); public SayHello(request: models_HelloRequest, callback: (error: grpc.ServiceError | null, response: models_HelloReply) => void): grpc.ClientUnaryCall; public SayHello(request: models_HelloRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: models_HelloReply) => void): grpc.ClientUnaryCall; public SayHello(request: models_HelloRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: models_HelloReply) => void): grpc.ClientUnaryCall; public SayManyHellos(request: models_HelloRequest, metadata: grpc.Metadata): grpc.ClientReadableStream; public SayManyHellos(request: models_HelloRequest, options: Partial): grpc.ClientReadableStream; }