// package: test // file: protos/test.proto /* tslint:disable */ import * as grpc from "grpc"; import * as protos_test_pb from "../protos/test_pb"; interface ITestServiceService extends grpc.ServiceDefinition { unary: ITestServiceService_IUnary; clientStream: ITestServiceService_IClientStream; serverStream: ITestServiceService_IServerStream; bidiStream: ITestServiceService_IBidiStream; } interface ITestServiceService_IUnary extends grpc.MethodDefinition { path: string; // "/test.TestService/Unary" requestStream: boolean; // false responseStream: boolean; // false requestSerialize: grpc.serialize; requestDeserialize: grpc.deserialize; responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } interface ITestServiceService_IClientStream extends grpc.MethodDefinition { path: string; // "/test.TestService/ClientStream" requestStream: boolean; // true responseStream: boolean; // false requestSerialize: grpc.serialize; requestDeserialize: grpc.deserialize; responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } interface ITestServiceService_IServerStream extends grpc.MethodDefinition { path: string; // "/test.TestService/ServerStream" requestStream: boolean; // false responseStream: boolean; // true requestSerialize: grpc.serialize; requestDeserialize: grpc.deserialize; responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } interface ITestServiceService_IBidiStream extends grpc.MethodDefinition { path: string; // "/test.TestService/BidiStream" requestStream: boolean; // true responseStream: boolean; // true requestSerialize: grpc.serialize; requestDeserialize: grpc.deserialize; responseSerialize: grpc.serialize; responseDeserialize: grpc.deserialize; } export const TestServiceService: ITestServiceService; export interface ITestServiceServer { unary: grpc.handleUnaryCall; clientStream: grpc.handleClientStreamingCall; serverStream: grpc.handleServerStreamingCall; bidiStream: grpc.handleBidiStreamingCall; } export interface ITestServiceClient { unary(request: protos_test_pb.TestMessage, callback: (error: grpc.ServiceError | null, response: protos_test_pb.TestMessage) => void): grpc.ClientUnaryCall; unary(request: protos_test_pb.TestMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: protos_test_pb.TestMessage) => void): grpc.ClientUnaryCall; unary(request: protos_test_pb.TestMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: protos_test_pb.TestMessage) => void): grpc.ClientUnaryCall; clientStream(callback: (error: grpc.ServiceError | null, response: protos_test_pb.TestMessage) => void): grpc.ClientWritableStream; clientStream(metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: protos_test_pb.TestMessage) => void): grpc.ClientWritableStream; clientStream(options: Partial, callback: (error: grpc.ServiceError | null, response: protos_test_pb.TestMessage) => void): grpc.ClientWritableStream; clientStream(metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: protos_test_pb.TestMessage) => void): grpc.ClientWritableStream; serverStream(request: protos_test_pb.TestMessage, options?: Partial): grpc.ClientReadableStream; serverStream(request: protos_test_pb.TestMessage, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; bidiStream(): grpc.ClientDuplexStream; bidiStream(options: Partial): grpc.ClientDuplexStream; bidiStream(metadata: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; } export class TestServiceClient extends grpc.Client implements ITestServiceClient { constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); public unary(request: protos_test_pb.TestMessage, callback: (error: grpc.ServiceError | null, response: protos_test_pb.TestMessage) => void): grpc.ClientUnaryCall; public unary(request: protos_test_pb.TestMessage, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: protos_test_pb.TestMessage) => void): grpc.ClientUnaryCall; public unary(request: protos_test_pb.TestMessage, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: protos_test_pb.TestMessage) => void): grpc.ClientUnaryCall; public clientStream(callback: (error: grpc.ServiceError | null, response: protos_test_pb.TestMessage) => void): grpc.ClientWritableStream; public clientStream(metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: protos_test_pb.TestMessage) => void): grpc.ClientWritableStream; public clientStream(options: Partial, callback: (error: grpc.ServiceError | null, response: protos_test_pb.TestMessage) => void): grpc.ClientWritableStream; public clientStream(metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: protos_test_pb.TestMessage) => void): grpc.ClientWritableStream; public serverStream(request: protos_test_pb.TestMessage, options?: Partial): grpc.ClientReadableStream; public serverStream(request: protos_test_pb.TestMessage, metadata?: grpc.Metadata, options?: Partial): grpc.ClientReadableStream; public bidiStream(options?: Partial): grpc.ClientDuplexStream; public bidiStream(metadata?: grpc.Metadata, options?: Partial): grpc.ClientDuplexStream; }