blob: 3d070d7de08e5bf6096e447dbc25dbea9e97d5ec [file] [log] [blame]
murgatroid994c8f8d82016-02-26 11:43:05 -08001// GENERATED CODE -- DO NOT EDIT!
2
3var grpc = require('grpc');
4var helloworld_pb = require('./helloworld_pb.js');
5
6function serialize_HelloReply(arg) {
7 if (!(arg instanceof helloworld_pb.HelloReply)) {
8 throw new Error('Expected argument of type HelloReply');
9 }
10 return new Buffer(arg.serializeBinary());
11}
12function deserialize_HelloReply(buffer_arg) {
13 return helloworld_pb.HelloReply.deserializeBinary(new Uint8Array(buffer_arg));
14}
15function serialize_HelloRequest(arg) {
16 if (!(arg instanceof helloworld_pb.HelloRequest)) {
17 throw new Error('Expected argument of type HelloRequest');
18 }
19 return new Buffer(arg.serializeBinary());
20}
21function deserialize_HelloRequest(buffer_arg) {
22 return helloworld_pb.HelloRequest.deserializeBinary(new Uint8Array(buffer_arg));
23}
24
25var GreeterService = exports.GreeterService = {
26 sayHello: {
27 path: '/helloworld.Greeter/SayHello',
28 requestStream: false,
29 responseStream: false,
30 requestType: helloworld_pb.HelloRequest,
31 responseType: helloworld_pb.HelloReply,
32 requestSerialize: serialize_HelloRequest,
33 requestDeserialize: deserialize_HelloRequest,
34 responseSerialize: serialize_HelloReply,
35 responseDeserialize: deserialize_HelloReply,
36 },
37};
38
39exports.GreeterClient = grpc.makeGenericClientConstructor(GreeterService);