odds-crawler-proto/pkg/api/v1/cdp-service_grpc_pb.js
2019-05-11 13:06:16 +09:00

46 lines
1.5 KiB
JavaScript

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