45 lines
1.4 KiB
JavaScript
45 lines
1.4 KiB
JavaScript
|
// 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: {
|
||
|
path: '/oddscrawler.CDPService/navigate',
|
||
|
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);
|