// GENERATED CODE -- DO NOT EDIT! 'use strict'; var grpc = require('grpc'); var network_pb = require('./network_pb.js'); function serialize_oddscrawler_NetworkReply(arg) { if (!(arg instanceof network_pb.NetworkReply)) { throw new Error('Expected argument of type oddscrawler.NetworkReply'); } return Buffer.from(arg.serializeBinary()); } function deserialize_oddscrawler_NetworkReply(buffer_arg) { return network_pb.NetworkReply.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_oddscrawler_NetworkRequest(arg) { if (!(arg instanceof network_pb.NetworkRequest)) { throw new Error('Expected argument of type oddscrawler.NetworkRequest'); } return Buffer.from(arg.serializeBinary()); } function deserialize_oddscrawler_NetworkRequest(buffer_arg) { return network_pb.NetworkRequest.deserializeBinary(new Uint8Array(buffer_arg)); } var NetworkerService = exports.NetworkerService = { // Sends a greeting sayHello: { path: '/oddscrawler.Networker/SayHello', requestStream: false, responseStream: false, requestType: network_pb.NetworkRequest, responseType: network_pb.NetworkReply, requestSerialize: serialize_oddscrawler_NetworkRequest, requestDeserialize: deserialize_oddscrawler_NetworkRequest, responseSerialize: serialize_oddscrawler_NetworkReply, responseDeserialize: deserialize_oddscrawler_NetworkReply, }, }; exports.NetworkerClient = grpc.makeGenericClientConstructor(NetworkerService);