@iglesys/techvulns-proto 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/gen/js/.keep ADDED
File without changes
@@ -0,0 +1,44 @@
1
+ // GENERATED CODE -- DO NOT EDIT!
2
+
3
+ 'use strict';
4
+ var grpc = require('@grpc/grpc-js');
5
+ var techvulns_v1_tech_pb = require('../../techvulns/v1/tech_pb.js');
6
+
7
+ function serialize_techvulns_v1_AnalyzeRequest(arg) {
8
+ if (!(arg instanceof techvulns_v1_tech_pb.AnalyzeRequest)) {
9
+ throw new Error('Expected argument of type techvulns.v1.AnalyzeRequest');
10
+ }
11
+ return Buffer.from(arg.serializeBinary());
12
+ }
13
+
14
+ function deserialize_techvulns_v1_AnalyzeRequest(buffer_arg) {
15
+ return techvulns_v1_tech_pb.AnalyzeRequest.deserializeBinary(new Uint8Array(buffer_arg));
16
+ }
17
+
18
+ function serialize_techvulns_v1_AnalyzeResponse(arg) {
19
+ if (!(arg instanceof techvulns_v1_tech_pb.AnalyzeResponse)) {
20
+ throw new Error('Expected argument of type techvulns.v1.AnalyzeResponse');
21
+ }
22
+ return Buffer.from(arg.serializeBinary());
23
+ }
24
+
25
+ function deserialize_techvulns_v1_AnalyzeResponse(buffer_arg) {
26
+ return techvulns_v1_tech_pb.AnalyzeResponse.deserializeBinary(new Uint8Array(buffer_arg));
27
+ }
28
+
29
+
30
+ var TechnologyServiceService = exports.TechnologyServiceService = {
31
+ analyze: {
32
+ path: '/techvulns.v1.TechnologyService/Analyze',
33
+ requestStream: false,
34
+ responseStream: false,
35
+ requestType: techvulns_v1_tech_pb.AnalyzeRequest,
36
+ responseType: techvulns_v1_tech_pb.AnalyzeResponse,
37
+ requestSerialize: serialize_techvulns_v1_AnalyzeRequest,
38
+ requestDeserialize: deserialize_techvulns_v1_AnalyzeRequest,
39
+ responseSerialize: serialize_techvulns_v1_AnalyzeResponse,
40
+ responseDeserialize: deserialize_techvulns_v1_AnalyzeResponse,
41
+ },
42
+ };
43
+
44
+ exports.TechnologyServiceClient = grpc.makeGenericClientConstructor(TechnologyServiceService, 'TechnologyService');