odds-crawler-proto/generated/cdp_grpc_pb.js

45 lines
1.4 KiB
JavaScript
Raw Normal View History

2019-05-08 17:05:39 +00:00
// GENERATED CODE -- DO NOT EDIT!
'use strict';
var grpc = require('grpc');
var cdp_pb = require('./cdp_pb.js');
function serialize_oddscrawler_NavigateReply(arg) {
if (!(arg instanceof cdp_pb.NavigateReply)) {
throw new Error('Expected argument of type oddscrawler.NavigateReply');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_oddscrawler_NavigateReply(buffer_arg) {
return cdp_pb.NavigateReply.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_oddscrawler_NavigateRequest(arg) {
if (!(arg instanceof cdp_pb.NavigateRequest)) {
throw new Error('Expected argument of type oddscrawler.NavigateRequest');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_oddscrawler_NavigateRequest(buffer_arg) {
return cdp_pb.NavigateRequest.deserializeBinary(new Uint8Array(buffer_arg));
}
var CDPServiceService = exports.CDPServiceService = {
navigate: {
2019-05-08 17:12:42 +00:00
path: '/oddscrawler.CDPService/Navigate',
2019-05-08 17:05:39 +00:00
requestStream: false,
responseStream: false,
requestType: cdp_pb.NavigateRequest,
responseType: cdp_pb.NavigateReply,
requestSerialize: serialize_oddscrawler_NavigateRequest,
requestDeserialize: deserialize_oddscrawler_NavigateRequest,
responseSerialize: serialize_oddscrawler_NavigateReply,
responseDeserialize: deserialize_oddscrawler_NavigateReply,
},
};
exports.CDPServiceClient = grpc.makeGenericClientConstructor(CDPServiceService);