// 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_cdp_NavigateReply(arg) { if (!(arg instanceof cdp_cdp_service_pb.NavigateReply)) { throw new Error('Expected argument of type cdp.NavigateReply'); } return Buffer.from(arg.serializeBinary()); } function deserialize_cdp_NavigateReply(buffer_arg) { return cdp_cdp_service_pb.NavigateReply.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_cdp_NavigateRequest(arg) { if (!(arg instanceof cdp_cdp_service_pb.NavigateRequest)) { throw new Error('Expected argument of type cdp.NavigateRequest'); } return Buffer.from(arg.serializeBinary()); } function deserialize_cdp_NavigateRequest(buffer_arg) { return cdp_cdp_service_pb.NavigateRequest.deserializeBinary(new Uint8Array(buffer_arg)); } var CDPServiceService = exports.CDPServiceService = { navigate: { path: '/cdp.CDPService/Navigate', requestStream: false, responseStream: false, requestType: cdp_cdp_service_pb.NavigateRequest, responseType: cdp_cdp_service_pb.NavigateReply, requestSerialize: serialize_cdp_NavigateRequest, requestDeserialize: deserialize_cdp_NavigateRequest, responseSerialize: serialize_cdp_NavigateReply, responseDeserialize: deserialize_cdp_NavigateReply, }, }; exports.CDPServiceClient = grpc.makeGenericClientConstructor(CDPServiceService);