@lansweeper/install-api-grpc 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.
@@ -0,0 +1 @@
1
+ {"file":[{"name":"proto/install.proto","package":"lansweeper.install.v1","messageType":[{"name":"SetPublicKeyRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"public_key","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"publicKey"}]},{"name":"SetPublicKeyResponse"}],"service":[{"name":"InstallService","method":[{"name":"SetPublicKey","inputType":".lansweeper.install.v1.SetPublicKeyRequest","outputType":".lansweeper.install.v1.SetPublicKeyResponse","options":{}}]}],"sourceCodeInfo":{"location":[{"span":[0,0,15,1]},{"path":[12],"span":[0,0,18]},{"path":[2],"span":[2,0,30]},{"path":[4,0],"span":[4,0,8,1]},{"path":[4,0,1],"span":[4,8,27]},{"path":[4,0,2,0],"span":[5,2,21]},{"path":[4,0,2,0,5],"span":[5,2,8]},{"path":[4,0,2,0,1],"span":[5,9,16]},{"path":[4,0,2,0,3],"span":[5,19,20]},{"path":[4,0,2,1],"span":[6,2,25]},{"path":[4,0,2,1,5],"span":[6,2,8]},{"path":[4,0,2,1,1],"span":[6,9,20]},{"path":[4,0,2,1,3],"span":[6,23,24]},{"path":[4,0,2,2],"span":[7,2,24]},{"path":[4,0,2,2,5],"span":[7,2,8]},{"path":[4,0,2,2,1],"span":[7,9,19]},{"path":[4,0,2,2,3],"span":[7,22,23]},{"path":[4,1],"span":[10,0,11,1]},{"path":[4,1,1],"span":[10,8,28]},{"path":[6,0],"span":[13,0,15,1]},{"path":[6,0,1],"span":[13,8,22]},{"path":[6,0,2,0],"span":[14,2,73]},{"path":[6,0,2,0,1],"span":[14,6,18]},{"path":[6,0,2,0,2],"span":[14,19,38]},{"path":[6,0,2,0,3],"span":[14,49,69]}]},"syntax":"proto3","bufExtension":{"isImport":false,"isSyntaxUnspecified":false}}]}
@@ -0,0 +1,2 @@
1
+ export * from "./install_grpc_pb.d";
2
+ export * from "./install_pb.d";
@@ -0,0 +1,3 @@
1
+ const install_grpc_pb = require("./install_grpc_pb");
2
+ const install_pb = require("./install_pb");
3
+ Object.assign(exports, install_grpc_pb, install_pb)
@@ -0,0 +1,41 @@
1
+ // package: lansweeper.install.v1
2
+ // file: install.proto
3
+
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+
7
+ import * as grpc from "@grpc/grpc-js";
8
+ import * as install_pb from "./install_pb";
9
+
10
+ interface IInstallServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
11
+ setPublicKey: IInstallServiceService_ISetPublicKey;
12
+ }
13
+
14
+ interface IInstallServiceService_ISetPublicKey extends grpc.MethodDefinition<install_pb.SetPublicKeyRequest, install_pb.SetPublicKeyResponse> {
15
+ path: "/lansweeper.install.v1.InstallService/SetPublicKey";
16
+ requestStream: false;
17
+ responseStream: false;
18
+ requestSerialize: grpc.serialize<install_pb.SetPublicKeyRequest>;
19
+ requestDeserialize: grpc.deserialize<install_pb.SetPublicKeyRequest>;
20
+ responseSerialize: grpc.serialize<install_pb.SetPublicKeyResponse>;
21
+ responseDeserialize: grpc.deserialize<install_pb.SetPublicKeyResponse>;
22
+ }
23
+
24
+ export const InstallServiceService: IInstallServiceService;
25
+
26
+ export interface IInstallServiceServer extends grpc.UntypedServiceImplementation {
27
+ setPublicKey: grpc.handleUnaryCall<install_pb.SetPublicKeyRequest, install_pb.SetPublicKeyResponse>;
28
+ }
29
+
30
+ export interface IInstallServiceClient {
31
+ setPublicKey(request: install_pb.SetPublicKeyRequest, callback: (error: grpc.ServiceError | null, response: install_pb.SetPublicKeyResponse) => void): grpc.ClientUnaryCall;
32
+ setPublicKey(request: install_pb.SetPublicKeyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: install_pb.SetPublicKeyResponse) => void): grpc.ClientUnaryCall;
33
+ setPublicKey(request: install_pb.SetPublicKeyRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: install_pb.SetPublicKeyResponse) => void): grpc.ClientUnaryCall;
34
+ }
35
+
36
+ export class InstallServiceClient extends grpc.Client implements IInstallServiceClient {
37
+ constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
38
+ public setPublicKey(request: install_pb.SetPublicKeyRequest, callback: (error: grpc.ServiceError | null, response: install_pb.SetPublicKeyResponse) => void): grpc.ClientUnaryCall;
39
+ public setPublicKey(request: install_pb.SetPublicKeyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: install_pb.SetPublicKeyResponse) => void): grpc.ClientUnaryCall;
40
+ public setPublicKey(request: install_pb.SetPublicKeyRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: install_pb.SetPublicKeyResponse) => void): grpc.ClientUnaryCall;
41
+ }
@@ -0,0 +1,44 @@
1
+ // GENERATED CODE -- DO NOT EDIT!
2
+
3
+ 'use strict';
4
+ var grpc = require('@grpc/grpc-js');
5
+ var install_pb = require('./install_pb.js');
6
+
7
+ function serialize_lansweeper_install_v1_SetPublicKeyRequest(arg) {
8
+ if (!(arg instanceof install_pb.SetPublicKeyRequest)) {
9
+ throw new Error('Expected argument of type lansweeper.install.v1.SetPublicKeyRequest');
10
+ }
11
+ return Buffer.from(arg.serializeBinary());
12
+ }
13
+
14
+ function deserialize_lansweeper_install_v1_SetPublicKeyRequest(buffer_arg) {
15
+ return install_pb.SetPublicKeyRequest.deserializeBinary(new Uint8Array(buffer_arg));
16
+ }
17
+
18
+ function serialize_lansweeper_install_v1_SetPublicKeyResponse(arg) {
19
+ if (!(arg instanceof install_pb.SetPublicKeyResponse)) {
20
+ throw new Error('Expected argument of type lansweeper.install.v1.SetPublicKeyResponse');
21
+ }
22
+ return Buffer.from(arg.serializeBinary());
23
+ }
24
+
25
+ function deserialize_lansweeper_install_v1_SetPublicKeyResponse(buffer_arg) {
26
+ return install_pb.SetPublicKeyResponse.deserializeBinary(new Uint8Array(buffer_arg));
27
+ }
28
+
29
+
30
+ var InstallServiceService = exports.InstallServiceService = {
31
+ setPublicKey: {
32
+ path: '/lansweeper.install.v1.InstallService/SetPublicKey',
33
+ requestStream: false,
34
+ responseStream: false,
35
+ requestType: install_pb.SetPublicKeyRequest,
36
+ responseType: install_pb.SetPublicKeyResponse,
37
+ requestSerialize: serialize_lansweeper_install_v1_SetPublicKeyRequest,
38
+ requestDeserialize: deserialize_lansweeper_install_v1_SetPublicKeyRequest,
39
+ responseSerialize: serialize_lansweeper_install_v1_SetPublicKeyResponse,
40
+ responseDeserialize: deserialize_lansweeper_install_v1_SetPublicKeyResponse,
41
+ },
42
+ };
43
+
44
+ exports.InstallServiceClient = grpc.makeGenericClientConstructor(InstallServiceService);
@@ -0,0 +1,50 @@
1
+ // package: lansweeper.install.v1
2
+ // file: install.proto
3
+
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+
7
+ import * as jspb from "google-protobuf";
8
+
9
+ export class SetPublicKeyRequest extends jspb.Message {
10
+ getSiteId(): string;
11
+ setSiteId(value: string): SetPublicKeyRequest;
12
+ getInstallKey(): string;
13
+ setInstallKey(value: string): SetPublicKeyRequest;
14
+ getPublicKey(): string;
15
+ setPublicKey(value: string): SetPublicKeyRequest;
16
+
17
+ serializeBinary(): Uint8Array;
18
+ toObject(includeInstance?: boolean): SetPublicKeyRequest.AsObject;
19
+ static toObject(includeInstance: boolean, msg: SetPublicKeyRequest): SetPublicKeyRequest.AsObject;
20
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
21
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
22
+ static serializeBinaryToWriter(message: SetPublicKeyRequest, writer: jspb.BinaryWriter): void;
23
+ static deserializeBinary(bytes: Uint8Array): SetPublicKeyRequest;
24
+ static deserializeBinaryFromReader(message: SetPublicKeyRequest, reader: jspb.BinaryReader): SetPublicKeyRequest;
25
+ }
26
+
27
+ export namespace SetPublicKeyRequest {
28
+ export type AsObject = {
29
+ siteId: string,
30
+ installKey: string,
31
+ publicKey: string,
32
+ }
33
+ }
34
+
35
+ export class SetPublicKeyResponse extends jspb.Message {
36
+
37
+ serializeBinary(): Uint8Array;
38
+ toObject(includeInstance?: boolean): SetPublicKeyResponse.AsObject;
39
+ static toObject(includeInstance: boolean, msg: SetPublicKeyResponse): SetPublicKeyResponse.AsObject;
40
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
41
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
42
+ static serializeBinaryToWriter(message: SetPublicKeyResponse, writer: jspb.BinaryWriter): void;
43
+ static deserializeBinary(bytes: Uint8Array): SetPublicKeyResponse;
44
+ static deserializeBinaryFromReader(message: SetPublicKeyResponse, reader: jspb.BinaryReader): SetPublicKeyResponse;
45
+ }
46
+
47
+ export namespace SetPublicKeyResponse {
48
+ export type AsObject = {
49
+ }
50
+ }
@@ -0,0 +1,353 @@
1
+ // source: install.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = Function('return this')();
17
+
18
+ goog.exportSymbol('proto.lansweeper.install.v1.SetPublicKeyRequest', null, global);
19
+ goog.exportSymbol('proto.lansweeper.install.v1.SetPublicKeyResponse', null, global);
20
+ /**
21
+ * Generated by JsPbCodeGenerator.
22
+ * @param {Array=} opt_data Optional initial data array, typically from a
23
+ * server response, or constructed directly in Javascript. The array is used
24
+ * in place and becomes part of the constructed object. It is not cloned.
25
+ * If no data is provided, the constructed object will be empty, but still
26
+ * valid.
27
+ * @extends {jspb.Message}
28
+ * @constructor
29
+ */
30
+ proto.lansweeper.install.v1.SetPublicKeyRequest = function(opt_data) {
31
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
32
+ };
33
+ goog.inherits(proto.lansweeper.install.v1.SetPublicKeyRequest, jspb.Message);
34
+ if (goog.DEBUG && !COMPILED) {
35
+ /**
36
+ * @public
37
+ * @override
38
+ */
39
+ proto.lansweeper.install.v1.SetPublicKeyRequest.displayName = 'proto.lansweeper.install.v1.SetPublicKeyRequest';
40
+ }
41
+ /**
42
+ * Generated by JsPbCodeGenerator.
43
+ * @param {Array=} opt_data Optional initial data array, typically from a
44
+ * server response, or constructed directly in Javascript. The array is used
45
+ * in place and becomes part of the constructed object. It is not cloned.
46
+ * If no data is provided, the constructed object will be empty, but still
47
+ * valid.
48
+ * @extends {jspb.Message}
49
+ * @constructor
50
+ */
51
+ proto.lansweeper.install.v1.SetPublicKeyResponse = function(opt_data) {
52
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
53
+ };
54
+ goog.inherits(proto.lansweeper.install.v1.SetPublicKeyResponse, jspb.Message);
55
+ if (goog.DEBUG && !COMPILED) {
56
+ /**
57
+ * @public
58
+ * @override
59
+ */
60
+ proto.lansweeper.install.v1.SetPublicKeyResponse.displayName = 'proto.lansweeper.install.v1.SetPublicKeyResponse';
61
+ }
62
+
63
+
64
+
65
+ if (jspb.Message.GENERATE_TO_OBJECT) {
66
+ /**
67
+ * Creates an object representation of this proto.
68
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
69
+ * Optional fields that are not set will be set to undefined.
70
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
71
+ * For the list of reserved names please see:
72
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
73
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
74
+ * JSPB instance for transitional soy proto support:
75
+ * http://goto/soy-param-migration
76
+ * @return {!Object}
77
+ */
78
+ proto.lansweeper.install.v1.SetPublicKeyRequest.prototype.toObject = function(opt_includeInstance) {
79
+ return proto.lansweeper.install.v1.SetPublicKeyRequest.toObject(opt_includeInstance, this);
80
+ };
81
+
82
+
83
+ /**
84
+ * Static version of the {@see toObject} method.
85
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
86
+ * the JSPB instance for transitional soy proto support:
87
+ * http://goto/soy-param-migration
88
+ * @param {!proto.lansweeper.install.v1.SetPublicKeyRequest} msg The msg instance to transform.
89
+ * @return {!Object}
90
+ * @suppress {unusedLocalVariables} f is only used for nested messages
91
+ */
92
+ proto.lansweeper.install.v1.SetPublicKeyRequest.toObject = function(includeInstance, msg) {
93
+ var f, obj = {
94
+ siteId: jspb.Message.getFieldWithDefault(msg, 1, ""),
95
+ installKey: jspb.Message.getFieldWithDefault(msg, 2, ""),
96
+ publicKey: jspb.Message.getFieldWithDefault(msg, 3, "")
97
+ };
98
+
99
+ if (includeInstance) {
100
+ obj.$jspbMessageInstance = msg;
101
+ }
102
+ return obj;
103
+ };
104
+ }
105
+
106
+
107
+ /**
108
+ * Deserializes binary data (in protobuf wire format).
109
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
110
+ * @return {!proto.lansweeper.install.v1.SetPublicKeyRequest}
111
+ */
112
+ proto.lansweeper.install.v1.SetPublicKeyRequest.deserializeBinary = function(bytes) {
113
+ var reader = new jspb.BinaryReader(bytes);
114
+ var msg = new proto.lansweeper.install.v1.SetPublicKeyRequest;
115
+ return proto.lansweeper.install.v1.SetPublicKeyRequest.deserializeBinaryFromReader(msg, reader);
116
+ };
117
+
118
+
119
+ /**
120
+ * Deserializes binary data (in protobuf wire format) from the
121
+ * given reader into the given message object.
122
+ * @param {!proto.lansweeper.install.v1.SetPublicKeyRequest} msg The message object to deserialize into.
123
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
124
+ * @return {!proto.lansweeper.install.v1.SetPublicKeyRequest}
125
+ */
126
+ proto.lansweeper.install.v1.SetPublicKeyRequest.deserializeBinaryFromReader = function(msg, reader) {
127
+ while (reader.nextField()) {
128
+ if (reader.isEndGroup()) {
129
+ break;
130
+ }
131
+ var field = reader.getFieldNumber();
132
+ switch (field) {
133
+ case 1:
134
+ var value = /** @type {string} */ (reader.readString());
135
+ msg.setSiteId(value);
136
+ break;
137
+ case 2:
138
+ var value = /** @type {string} */ (reader.readString());
139
+ msg.setInstallKey(value);
140
+ break;
141
+ case 3:
142
+ var value = /** @type {string} */ (reader.readString());
143
+ msg.setPublicKey(value);
144
+ break;
145
+ default:
146
+ reader.skipField();
147
+ break;
148
+ }
149
+ }
150
+ return msg;
151
+ };
152
+
153
+
154
+ /**
155
+ * Serializes the message to binary data (in protobuf wire format).
156
+ * @return {!Uint8Array}
157
+ */
158
+ proto.lansweeper.install.v1.SetPublicKeyRequest.prototype.serializeBinary = function() {
159
+ var writer = new jspb.BinaryWriter();
160
+ proto.lansweeper.install.v1.SetPublicKeyRequest.serializeBinaryToWriter(this, writer);
161
+ return writer.getResultBuffer();
162
+ };
163
+
164
+
165
+ /**
166
+ * Serializes the given message to binary data (in protobuf wire
167
+ * format), writing to the given BinaryWriter.
168
+ * @param {!proto.lansweeper.install.v1.SetPublicKeyRequest} message
169
+ * @param {!jspb.BinaryWriter} writer
170
+ * @suppress {unusedLocalVariables} f is only used for nested messages
171
+ */
172
+ proto.lansweeper.install.v1.SetPublicKeyRequest.serializeBinaryToWriter = function(message, writer) {
173
+ var f = undefined;
174
+ f = message.getSiteId();
175
+ if (f.length > 0) {
176
+ writer.writeString(
177
+ 1,
178
+ f
179
+ );
180
+ }
181
+ f = message.getInstallKey();
182
+ if (f.length > 0) {
183
+ writer.writeString(
184
+ 2,
185
+ f
186
+ );
187
+ }
188
+ f = message.getPublicKey();
189
+ if (f.length > 0) {
190
+ writer.writeString(
191
+ 3,
192
+ f
193
+ );
194
+ }
195
+ };
196
+
197
+
198
+ /**
199
+ * optional string site_id = 1;
200
+ * @return {string}
201
+ */
202
+ proto.lansweeper.install.v1.SetPublicKeyRequest.prototype.getSiteId = function() {
203
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
204
+ };
205
+
206
+
207
+ /**
208
+ * @param {string} value
209
+ * @return {!proto.lansweeper.install.v1.SetPublicKeyRequest} returns this
210
+ */
211
+ proto.lansweeper.install.v1.SetPublicKeyRequest.prototype.setSiteId = function(value) {
212
+ return jspb.Message.setProto3StringField(this, 1, value);
213
+ };
214
+
215
+
216
+ /**
217
+ * optional string install_key = 2;
218
+ * @return {string}
219
+ */
220
+ proto.lansweeper.install.v1.SetPublicKeyRequest.prototype.getInstallKey = function() {
221
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
222
+ };
223
+
224
+
225
+ /**
226
+ * @param {string} value
227
+ * @return {!proto.lansweeper.install.v1.SetPublicKeyRequest} returns this
228
+ */
229
+ proto.lansweeper.install.v1.SetPublicKeyRequest.prototype.setInstallKey = function(value) {
230
+ return jspb.Message.setProto3StringField(this, 2, value);
231
+ };
232
+
233
+
234
+ /**
235
+ * optional string public_key = 3;
236
+ * @return {string}
237
+ */
238
+ proto.lansweeper.install.v1.SetPublicKeyRequest.prototype.getPublicKey = function() {
239
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
240
+ };
241
+
242
+
243
+ /**
244
+ * @param {string} value
245
+ * @return {!proto.lansweeper.install.v1.SetPublicKeyRequest} returns this
246
+ */
247
+ proto.lansweeper.install.v1.SetPublicKeyRequest.prototype.setPublicKey = function(value) {
248
+ return jspb.Message.setProto3StringField(this, 3, value);
249
+ };
250
+
251
+
252
+
253
+
254
+
255
+ if (jspb.Message.GENERATE_TO_OBJECT) {
256
+ /**
257
+ * Creates an object representation of this proto.
258
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
259
+ * Optional fields that are not set will be set to undefined.
260
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
261
+ * For the list of reserved names please see:
262
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
263
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
264
+ * JSPB instance for transitional soy proto support:
265
+ * http://goto/soy-param-migration
266
+ * @return {!Object}
267
+ */
268
+ proto.lansweeper.install.v1.SetPublicKeyResponse.prototype.toObject = function(opt_includeInstance) {
269
+ return proto.lansweeper.install.v1.SetPublicKeyResponse.toObject(opt_includeInstance, this);
270
+ };
271
+
272
+
273
+ /**
274
+ * Static version of the {@see toObject} method.
275
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
276
+ * the JSPB instance for transitional soy proto support:
277
+ * http://goto/soy-param-migration
278
+ * @param {!proto.lansweeper.install.v1.SetPublicKeyResponse} msg The msg instance to transform.
279
+ * @return {!Object}
280
+ * @suppress {unusedLocalVariables} f is only used for nested messages
281
+ */
282
+ proto.lansweeper.install.v1.SetPublicKeyResponse.toObject = function(includeInstance, msg) {
283
+ var f, obj = {
284
+
285
+ };
286
+
287
+ if (includeInstance) {
288
+ obj.$jspbMessageInstance = msg;
289
+ }
290
+ return obj;
291
+ };
292
+ }
293
+
294
+
295
+ /**
296
+ * Deserializes binary data (in protobuf wire format).
297
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
298
+ * @return {!proto.lansweeper.install.v1.SetPublicKeyResponse}
299
+ */
300
+ proto.lansweeper.install.v1.SetPublicKeyResponse.deserializeBinary = function(bytes) {
301
+ var reader = new jspb.BinaryReader(bytes);
302
+ var msg = new proto.lansweeper.install.v1.SetPublicKeyResponse;
303
+ return proto.lansweeper.install.v1.SetPublicKeyResponse.deserializeBinaryFromReader(msg, reader);
304
+ };
305
+
306
+
307
+ /**
308
+ * Deserializes binary data (in protobuf wire format) from the
309
+ * given reader into the given message object.
310
+ * @param {!proto.lansweeper.install.v1.SetPublicKeyResponse} msg The message object to deserialize into.
311
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
312
+ * @return {!proto.lansweeper.install.v1.SetPublicKeyResponse}
313
+ */
314
+ proto.lansweeper.install.v1.SetPublicKeyResponse.deserializeBinaryFromReader = function(msg, reader) {
315
+ while (reader.nextField()) {
316
+ if (reader.isEndGroup()) {
317
+ break;
318
+ }
319
+ var field = reader.getFieldNumber();
320
+ switch (field) {
321
+ default:
322
+ reader.skipField();
323
+ break;
324
+ }
325
+ }
326
+ return msg;
327
+ };
328
+
329
+
330
+ /**
331
+ * Serializes the message to binary data (in protobuf wire format).
332
+ * @return {!Uint8Array}
333
+ */
334
+ proto.lansweeper.install.v1.SetPublicKeyResponse.prototype.serializeBinary = function() {
335
+ var writer = new jspb.BinaryWriter();
336
+ proto.lansweeper.install.v1.SetPublicKeyResponse.serializeBinaryToWriter(this, writer);
337
+ return writer.getResultBuffer();
338
+ };
339
+
340
+
341
+ /**
342
+ * Serializes the given message to binary data (in protobuf wire
343
+ * format), writing to the given BinaryWriter.
344
+ * @param {!proto.lansweeper.install.v1.SetPublicKeyResponse} message
345
+ * @param {!jspb.BinaryWriter} writer
346
+ * @suppress {unusedLocalVariables} f is only used for nested messages
347
+ */
348
+ proto.lansweeper.install.v1.SetPublicKeyResponse.serializeBinaryToWriter = function(message, writer) {
349
+ var f = undefined;
350
+ };
351
+
352
+
353
+ goog.object.extend(exports, proto.lansweeper.install.v1);
package/package.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "@lansweeper/install-api-grpc",
3
+ "version": "0.0.1",
4
+ "description": "install api grpc",
5
+ "main": "gen-proto/index.js",
6
+ "types": "gen-proto/index.d.ts",
7
+ "license": "MIT",
8
+ "files": [
9
+ "gen-proto",
10
+ "proto"
11
+ ],
12
+ "dependencies": {
13
+ "@grpc/grpc-js": "^1.5.1",
14
+ "google-protobuf": "^3.17.0"
15
+ },
16
+ "devDependencies": {
17
+ "@types/google-protobuf": "^3.15.5"
18
+ },
19
+ "gitHead": "ec9a5635906904215d3711c18b24ebedc99551c3"
20
+ }
@@ -0,0 +1,16 @@
1
+ syntax = "proto3";
2
+
3
+ package lansweeper.install.v1;
4
+
5
+ message SetPublicKeyRequest {
6
+ string site_id = 1;
7
+ string install_key = 2;
8
+ string public_key = 3;
9
+ }
10
+
11
+ message SetPublicKeyResponse {
12
+ }
13
+
14
+ service InstallService {
15
+ rpc SetPublicKey(SetPublicKeyRequest) returns (SetPublicKeyResponse) {}
16
+ }