46 lines
1.7 KiB
JavaScript
46 lines
1.7 KiB
JavaScript
|
// GENERATED CODE -- DO NOT EDIT!
|
||
|
|
||
|
'use strict';
|
||
|
var grpc = require('grpc');
|
||
|
var cdp_cdp_service_pb = require('../cdp/cdp.service_pb.js');
|
||
|
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
||
|
|
||
|
function serialize_oddscrawler_v1_cdp_NavigateReply(arg) {
|
||
|
if (!(arg instanceof cdp_cdp_service_pb.NavigateReply)) {
|
||
|
throw new Error('Expected argument of type oddscrawler.v1.cdp.NavigateReply');
|
||
|
}
|
||
|
return Buffer.from(arg.serializeBinary());
|
||
|
}
|
||
|
|
||
|
function deserialize_oddscrawler_v1_cdp_NavigateReply(buffer_arg) {
|
||
|
return cdp_cdp_service_pb.NavigateReply.deserializeBinary(new Uint8Array(buffer_arg));
|
||
|
}
|
||
|
|
||
|
function serialize_oddscrawler_v1_cdp_NavigateRequest(arg) {
|
||
|
if (!(arg instanceof cdp_cdp_service_pb.NavigateRequest)) {
|
||
|
throw new Error('Expected argument of type oddscrawler.v1.cdp.NavigateRequest');
|
||
|
}
|
||
|
return Buffer.from(arg.serializeBinary());
|
||
|
}
|
||
|
|
||
|
function deserialize_oddscrawler_v1_cdp_NavigateRequest(buffer_arg) {
|
||
|
return cdp_cdp_service_pb.NavigateRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||
|
}
|
||
|
|
||
|
|
||
|
var CDPServiceService = exports.CDPServiceService = {
|
||
|
navigate: {
|
||
|
path: '/oddscrawler.v1.cdp.CDPService/Navigate',
|
||
|
requestStream: false,
|
||
|
responseStream: false,
|
||
|
requestType: cdp_cdp_service_pb.NavigateRequest,
|
||
|
responseType: cdp_cdp_service_pb.NavigateReply,
|
||
|
requestSerialize: serialize_oddscrawler_v1_cdp_NavigateRequest,
|
||
|
requestDeserialize: deserialize_oddscrawler_v1_cdp_NavigateRequest,
|
||
|
responseSerialize: serialize_oddscrawler_v1_cdp_NavigateReply,
|
||
|
responseDeserialize: deserialize_oddscrawler_v1_cdp_NavigateReply,
|
||
|
},
|
||
|
};
|
||
|
|
||
|
exports.CDPServiceClient = grpc.makeGenericClientConstructor(CDPServiceService);
|