@lansweeper/blocking-rules-grpc 0.0.2

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,1586 @@
1
+ // source: blocking_rules.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.blockingrules.v1.BlockingRule', null, global);
19
+ goog.exportSymbol('proto.lansweeper.blockingrules.v1.BlockingRuleResponse', null, global);
20
+ goog.exportSymbol('proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest', null, global);
21
+ goog.exportSymbol('proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse', null, global);
22
+ goog.exportSymbol('proto.lansweeper.blockingrules.v1.GetBlockingRulesRequest', null, global);
23
+ goog.exportSymbol('proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse', null, global);
24
+ goog.exportSymbol('proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest', null, global);
25
+ goog.exportSymbol('proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse', null, global);
26
+ /**
27
+ * Generated by JsPbCodeGenerator.
28
+ * @param {Array=} opt_data Optional initial data array, typically from a
29
+ * server response, or constructed directly in Javascript. The array is used
30
+ * in place and becomes part of the constructed object. It is not cloned.
31
+ * If no data is provided, the constructed object will be empty, but still
32
+ * valid.
33
+ * @extends {jspb.Message}
34
+ * @constructor
35
+ */
36
+ proto.lansweeper.blockingrules.v1.BlockingRule = function(opt_data) {
37
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
38
+ };
39
+ goog.inherits(proto.lansweeper.blockingrules.v1.BlockingRule, jspb.Message);
40
+ if (goog.DEBUG && !COMPILED) {
41
+ /**
42
+ * @public
43
+ * @override
44
+ */
45
+ proto.lansweeper.blockingrules.v1.BlockingRule.displayName = 'proto.lansweeper.blockingrules.v1.BlockingRule';
46
+ }
47
+ /**
48
+ * Generated by JsPbCodeGenerator.
49
+ * @param {Array=} opt_data Optional initial data array, typically from a
50
+ * server response, or constructed directly in Javascript. The array is used
51
+ * in place and becomes part of the constructed object. It is not cloned.
52
+ * If no data is provided, the constructed object will be empty, but still
53
+ * valid.
54
+ * @extends {jspb.Message}
55
+ * @constructor
56
+ */
57
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesRequest = function(opt_data) {
58
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
59
+ };
60
+ goog.inherits(proto.lansweeper.blockingrules.v1.GetBlockingRulesRequest, jspb.Message);
61
+ if (goog.DEBUG && !COMPILED) {
62
+ /**
63
+ * @public
64
+ * @override
65
+ */
66
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesRequest.displayName = 'proto.lansweeper.blockingrules.v1.GetBlockingRulesRequest';
67
+ }
68
+ /**
69
+ * Generated by JsPbCodeGenerator.
70
+ * @param {Array=} opt_data Optional initial data array, typically from a
71
+ * server response, or constructed directly in Javascript. The array is used
72
+ * in place and becomes part of the constructed object. It is not cloned.
73
+ * If no data is provided, the constructed object will be empty, but still
74
+ * valid.
75
+ * @extends {jspb.Message}
76
+ * @constructor
77
+ */
78
+ proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest = function(opt_data) {
79
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
80
+ };
81
+ goog.inherits(proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest, jspb.Message);
82
+ if (goog.DEBUG && !COMPILED) {
83
+ /**
84
+ * @public
85
+ * @override
86
+ */
87
+ proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.displayName = 'proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest';
88
+ }
89
+ /**
90
+ * Generated by JsPbCodeGenerator.
91
+ * @param {Array=} opt_data Optional initial data array, typically from a
92
+ * server response, or constructed directly in Javascript. The array is used
93
+ * in place and becomes part of the constructed object. It is not cloned.
94
+ * If no data is provided, the constructed object will be empty, but still
95
+ * valid.
96
+ * @extends {jspb.Message}
97
+ * @constructor
98
+ */
99
+ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest = function(opt_data) {
100
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
101
+ };
102
+ goog.inherits(proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest, jspb.Message);
103
+ if (goog.DEBUG && !COMPILED) {
104
+ /**
105
+ * @public
106
+ * @override
107
+ */
108
+ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.displayName = 'proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest';
109
+ }
110
+ /**
111
+ * Generated by JsPbCodeGenerator.
112
+ * @param {Array=} opt_data Optional initial data array, typically from a
113
+ * server response, or constructed directly in Javascript. The array is used
114
+ * in place and becomes part of the constructed object. It is not cloned.
115
+ * If no data is provided, the constructed object will be empty, but still
116
+ * valid.
117
+ * @extends {jspb.Message}
118
+ * @constructor
119
+ */
120
+ proto.lansweeper.blockingrules.v1.BlockingRuleResponse = function(opt_data) {
121
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
122
+ };
123
+ goog.inherits(proto.lansweeper.blockingrules.v1.BlockingRuleResponse, jspb.Message);
124
+ if (goog.DEBUG && !COMPILED) {
125
+ /**
126
+ * @public
127
+ * @override
128
+ */
129
+ proto.lansweeper.blockingrules.v1.BlockingRuleResponse.displayName = 'proto.lansweeper.blockingrules.v1.BlockingRuleResponse';
130
+ }
131
+ /**
132
+ * Generated by JsPbCodeGenerator.
133
+ * @param {Array=} opt_data Optional initial data array, typically from a
134
+ * server response, or constructed directly in Javascript. The array is used
135
+ * in place and becomes part of the constructed object. It is not cloned.
136
+ * If no data is provided, the constructed object will be empty, but still
137
+ * valid.
138
+ * @extends {jspb.Message}
139
+ * @constructor
140
+ */
141
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse = function(opt_data) {
142
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse.repeatedFields_, null);
143
+ };
144
+ goog.inherits(proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse, jspb.Message);
145
+ if (goog.DEBUG && !COMPILED) {
146
+ /**
147
+ * @public
148
+ * @override
149
+ */
150
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse.displayName = 'proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse';
151
+ }
152
+ /**
153
+ * Generated by JsPbCodeGenerator.
154
+ * @param {Array=} opt_data Optional initial data array, typically from a
155
+ * server response, or constructed directly in Javascript. The array is used
156
+ * in place and becomes part of the constructed object. It is not cloned.
157
+ * If no data is provided, the constructed object will be empty, but still
158
+ * valid.
159
+ * @extends {jspb.Message}
160
+ * @constructor
161
+ */
162
+ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse = function(opt_data) {
163
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.repeatedFields_, null);
164
+ };
165
+ goog.inherits(proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse, jspb.Message);
166
+ if (goog.DEBUG && !COMPILED) {
167
+ /**
168
+ * @public
169
+ * @override
170
+ */
171
+ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.displayName = 'proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse';
172
+ }
173
+ /**
174
+ * Generated by JsPbCodeGenerator.
175
+ * @param {Array=} opt_data Optional initial data array, typically from a
176
+ * server response, or constructed directly in Javascript. The array is used
177
+ * in place and becomes part of the constructed object. It is not cloned.
178
+ * If no data is provided, the constructed object will be empty, but still
179
+ * valid.
180
+ * @extends {jspb.Message}
181
+ * @constructor
182
+ */
183
+ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse = function(opt_data) {
184
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
185
+ };
186
+ goog.inherits(proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse, jspb.Message);
187
+ if (goog.DEBUG && !COMPILED) {
188
+ /**
189
+ * @public
190
+ * @override
191
+ */
192
+ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.displayName = 'proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse';
193
+ }
194
+
195
+
196
+
197
+ if (jspb.Message.GENERATE_TO_OBJECT) {
198
+ /**
199
+ * Creates an object representation of this proto.
200
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
201
+ * Optional fields that are not set will be set to undefined.
202
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
203
+ * For the list of reserved names please see:
204
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
205
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
206
+ * JSPB instance for transitional soy proto support:
207
+ * http://goto/soy-param-migration
208
+ * @return {!Object}
209
+ */
210
+ proto.lansweeper.blockingrules.v1.BlockingRule.prototype.toObject = function(opt_includeInstance) {
211
+ return proto.lansweeper.blockingrules.v1.BlockingRule.toObject(opt_includeInstance, this);
212
+ };
213
+
214
+
215
+ /**
216
+ * Static version of the {@see toObject} method.
217
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
218
+ * the JSPB instance for transitional soy proto support:
219
+ * http://goto/soy-param-migration
220
+ * @param {!proto.lansweeper.blockingrules.v1.BlockingRule} msg The msg instance to transform.
221
+ * @return {!Object}
222
+ * @suppress {unusedLocalVariables} f is only used for nested messages
223
+ */
224
+ proto.lansweeper.blockingrules.v1.BlockingRule.toObject = function(includeInstance, msg) {
225
+ var f, obj = {
226
+ installKey: jspb.Message.getFieldWithDefault(msg, 1, ""),
227
+ siteId: jspb.Message.getFieldWithDefault(msg, 2, ""),
228
+ entity: jspb.Message.getFieldWithDefault(msg, 3, ""),
229
+ createdDate: jspb.Message.getFieldWithDefault(msg, 4, "")
230
+ };
231
+
232
+ if (includeInstance) {
233
+ obj.$jspbMessageInstance = msg;
234
+ }
235
+ return obj;
236
+ };
237
+ }
238
+
239
+
240
+ /**
241
+ * Deserializes binary data (in protobuf wire format).
242
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
243
+ * @return {!proto.lansweeper.blockingrules.v1.BlockingRule}
244
+ */
245
+ proto.lansweeper.blockingrules.v1.BlockingRule.deserializeBinary = function(bytes) {
246
+ var reader = new jspb.BinaryReader(bytes);
247
+ var msg = new proto.lansweeper.blockingrules.v1.BlockingRule;
248
+ return proto.lansweeper.blockingrules.v1.BlockingRule.deserializeBinaryFromReader(msg, reader);
249
+ };
250
+
251
+
252
+ /**
253
+ * Deserializes binary data (in protobuf wire format) from the
254
+ * given reader into the given message object.
255
+ * @param {!proto.lansweeper.blockingrules.v1.BlockingRule} msg The message object to deserialize into.
256
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
257
+ * @return {!proto.lansweeper.blockingrules.v1.BlockingRule}
258
+ */
259
+ proto.lansweeper.blockingrules.v1.BlockingRule.deserializeBinaryFromReader = function(msg, reader) {
260
+ while (reader.nextField()) {
261
+ if (reader.isEndGroup()) {
262
+ break;
263
+ }
264
+ var field = reader.getFieldNumber();
265
+ switch (field) {
266
+ case 1:
267
+ var value = /** @type {string} */ (reader.readString());
268
+ msg.setInstallKey(value);
269
+ break;
270
+ case 2:
271
+ var value = /** @type {string} */ (reader.readString());
272
+ msg.setSiteId(value);
273
+ break;
274
+ case 3:
275
+ var value = /** @type {string} */ (reader.readString());
276
+ msg.setEntity(value);
277
+ break;
278
+ case 4:
279
+ var value = /** @type {string} */ (reader.readString());
280
+ msg.setCreatedDate(value);
281
+ break;
282
+ default:
283
+ reader.skipField();
284
+ break;
285
+ }
286
+ }
287
+ return msg;
288
+ };
289
+
290
+
291
+ /**
292
+ * Serializes the message to binary data (in protobuf wire format).
293
+ * @return {!Uint8Array}
294
+ */
295
+ proto.lansweeper.blockingrules.v1.BlockingRule.prototype.serializeBinary = function() {
296
+ var writer = new jspb.BinaryWriter();
297
+ proto.lansweeper.blockingrules.v1.BlockingRule.serializeBinaryToWriter(this, writer);
298
+ return writer.getResultBuffer();
299
+ };
300
+
301
+
302
+ /**
303
+ * Serializes the given message to binary data (in protobuf wire
304
+ * format), writing to the given BinaryWriter.
305
+ * @param {!proto.lansweeper.blockingrules.v1.BlockingRule} message
306
+ * @param {!jspb.BinaryWriter} writer
307
+ * @suppress {unusedLocalVariables} f is only used for nested messages
308
+ */
309
+ proto.lansweeper.blockingrules.v1.BlockingRule.serializeBinaryToWriter = function(message, writer) {
310
+ var f = undefined;
311
+ f = message.getInstallKey();
312
+ if (f.length > 0) {
313
+ writer.writeString(
314
+ 1,
315
+ f
316
+ );
317
+ }
318
+ f = message.getSiteId();
319
+ if (f.length > 0) {
320
+ writer.writeString(
321
+ 2,
322
+ f
323
+ );
324
+ }
325
+ f = message.getEntity();
326
+ if (f.length > 0) {
327
+ writer.writeString(
328
+ 3,
329
+ f
330
+ );
331
+ }
332
+ f = message.getCreatedDate();
333
+ if (f.length > 0) {
334
+ writer.writeString(
335
+ 4,
336
+ f
337
+ );
338
+ }
339
+ };
340
+
341
+
342
+ /**
343
+ * optional string install_key = 1;
344
+ * @return {string}
345
+ */
346
+ proto.lansweeper.blockingrules.v1.BlockingRule.prototype.getInstallKey = function() {
347
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
348
+ };
349
+
350
+
351
+ /**
352
+ * @param {string} value
353
+ * @return {!proto.lansweeper.blockingrules.v1.BlockingRule} returns this
354
+ */
355
+ proto.lansweeper.blockingrules.v1.BlockingRule.prototype.setInstallKey = function(value) {
356
+ return jspb.Message.setProto3StringField(this, 1, value);
357
+ };
358
+
359
+
360
+ /**
361
+ * optional string site_id = 2;
362
+ * @return {string}
363
+ */
364
+ proto.lansweeper.blockingrules.v1.BlockingRule.prototype.getSiteId = function() {
365
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
366
+ };
367
+
368
+
369
+ /**
370
+ * @param {string} value
371
+ * @return {!proto.lansweeper.blockingrules.v1.BlockingRule} returns this
372
+ */
373
+ proto.lansweeper.blockingrules.v1.BlockingRule.prototype.setSiteId = function(value) {
374
+ return jspb.Message.setProto3StringField(this, 2, value);
375
+ };
376
+
377
+
378
+ /**
379
+ * optional string entity = 3;
380
+ * @return {string}
381
+ */
382
+ proto.lansweeper.blockingrules.v1.BlockingRule.prototype.getEntity = function() {
383
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
384
+ };
385
+
386
+
387
+ /**
388
+ * @param {string} value
389
+ * @return {!proto.lansweeper.blockingrules.v1.BlockingRule} returns this
390
+ */
391
+ proto.lansweeper.blockingrules.v1.BlockingRule.prototype.setEntity = function(value) {
392
+ return jspb.Message.setProto3StringField(this, 3, value);
393
+ };
394
+
395
+
396
+ /**
397
+ * optional string created_date = 4;
398
+ * @return {string}
399
+ */
400
+ proto.lansweeper.blockingrules.v1.BlockingRule.prototype.getCreatedDate = function() {
401
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
402
+ };
403
+
404
+
405
+ /**
406
+ * @param {string} value
407
+ * @return {!proto.lansweeper.blockingrules.v1.BlockingRule} returns this
408
+ */
409
+ proto.lansweeper.blockingrules.v1.BlockingRule.prototype.setCreatedDate = function(value) {
410
+ return jspb.Message.setProto3StringField(this, 4, value);
411
+ };
412
+
413
+
414
+
415
+
416
+
417
+ if (jspb.Message.GENERATE_TO_OBJECT) {
418
+ /**
419
+ * Creates an object representation of this proto.
420
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
421
+ * Optional fields that are not set will be set to undefined.
422
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
423
+ * For the list of reserved names please see:
424
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
425
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
426
+ * JSPB instance for transitional soy proto support:
427
+ * http://goto/soy-param-migration
428
+ * @return {!Object}
429
+ */
430
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesRequest.prototype.toObject = function(opt_includeInstance) {
431
+ return proto.lansweeper.blockingrules.v1.GetBlockingRulesRequest.toObject(opt_includeInstance, this);
432
+ };
433
+
434
+
435
+ /**
436
+ * Static version of the {@see toObject} method.
437
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
438
+ * the JSPB instance for transitional soy proto support:
439
+ * http://goto/soy-param-migration
440
+ * @param {!proto.lansweeper.blockingrules.v1.GetBlockingRulesRequest} msg The msg instance to transform.
441
+ * @return {!Object}
442
+ * @suppress {unusedLocalVariables} f is only used for nested messages
443
+ */
444
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesRequest.toObject = function(includeInstance, msg) {
445
+ var f, obj = {
446
+
447
+ };
448
+
449
+ if (includeInstance) {
450
+ obj.$jspbMessageInstance = msg;
451
+ }
452
+ return obj;
453
+ };
454
+ }
455
+
456
+
457
+ /**
458
+ * Deserializes binary data (in protobuf wire format).
459
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
460
+ * @return {!proto.lansweeper.blockingrules.v1.GetBlockingRulesRequest}
461
+ */
462
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesRequest.deserializeBinary = function(bytes) {
463
+ var reader = new jspb.BinaryReader(bytes);
464
+ var msg = new proto.lansweeper.blockingrules.v1.GetBlockingRulesRequest;
465
+ return proto.lansweeper.blockingrules.v1.GetBlockingRulesRequest.deserializeBinaryFromReader(msg, reader);
466
+ };
467
+
468
+
469
+ /**
470
+ * Deserializes binary data (in protobuf wire format) from the
471
+ * given reader into the given message object.
472
+ * @param {!proto.lansweeper.blockingrules.v1.GetBlockingRulesRequest} msg The message object to deserialize into.
473
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
474
+ * @return {!proto.lansweeper.blockingrules.v1.GetBlockingRulesRequest}
475
+ */
476
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesRequest.deserializeBinaryFromReader = function(msg, reader) {
477
+ while (reader.nextField()) {
478
+ if (reader.isEndGroup()) {
479
+ break;
480
+ }
481
+ var field = reader.getFieldNumber();
482
+ switch (field) {
483
+ default:
484
+ reader.skipField();
485
+ break;
486
+ }
487
+ }
488
+ return msg;
489
+ };
490
+
491
+
492
+ /**
493
+ * Serializes the message to binary data (in protobuf wire format).
494
+ * @return {!Uint8Array}
495
+ */
496
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesRequest.prototype.serializeBinary = function() {
497
+ var writer = new jspb.BinaryWriter();
498
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesRequest.serializeBinaryToWriter(this, writer);
499
+ return writer.getResultBuffer();
500
+ };
501
+
502
+
503
+ /**
504
+ * Serializes the given message to binary data (in protobuf wire
505
+ * format), writing to the given BinaryWriter.
506
+ * @param {!proto.lansweeper.blockingrules.v1.GetBlockingRulesRequest} message
507
+ * @param {!jspb.BinaryWriter} writer
508
+ * @suppress {unusedLocalVariables} f is only used for nested messages
509
+ */
510
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesRequest.serializeBinaryToWriter = function(message, writer) {
511
+ var f = undefined;
512
+ };
513
+
514
+
515
+
516
+
517
+
518
+ if (jspb.Message.GENERATE_TO_OBJECT) {
519
+ /**
520
+ * Creates an object representation of this proto.
521
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
522
+ * Optional fields that are not set will be set to undefined.
523
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
524
+ * For the list of reserved names please see:
525
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
526
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
527
+ * JSPB instance for transitional soy proto support:
528
+ * http://goto/soy-param-migration
529
+ * @return {!Object}
530
+ */
531
+ proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.prototype.toObject = function(opt_includeInstance) {
532
+ return proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.toObject(opt_includeInstance, this);
533
+ };
534
+
535
+
536
+ /**
537
+ * Static version of the {@see toObject} method.
538
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
539
+ * the JSPB instance for transitional soy proto support:
540
+ * http://goto/soy-param-migration
541
+ * @param {!proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest} msg The msg instance to transform.
542
+ * @return {!Object}
543
+ * @suppress {unusedLocalVariables} f is only used for nested messages
544
+ */
545
+ proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.toObject = function(includeInstance, msg) {
546
+ var f, obj = {
547
+ siteId: jspb.Message.getFieldWithDefault(msg, 1, ""),
548
+ installKey: jspb.Message.getFieldWithDefault(msg, 2, ""),
549
+ entity: jspb.Message.getFieldWithDefault(msg, 3, "")
550
+ };
551
+
552
+ if (includeInstance) {
553
+ obj.$jspbMessageInstance = msg;
554
+ }
555
+ return obj;
556
+ };
557
+ }
558
+
559
+
560
+ /**
561
+ * Deserializes binary data (in protobuf wire format).
562
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
563
+ * @return {!proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest}
564
+ */
565
+ proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.deserializeBinary = function(bytes) {
566
+ var reader = new jspb.BinaryReader(bytes);
567
+ var msg = new proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest;
568
+ return proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.deserializeBinaryFromReader(msg, reader);
569
+ };
570
+
571
+
572
+ /**
573
+ * Deserializes binary data (in protobuf wire format) from the
574
+ * given reader into the given message object.
575
+ * @param {!proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest} msg The message object to deserialize into.
576
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
577
+ * @return {!proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest}
578
+ */
579
+ proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.deserializeBinaryFromReader = function(msg, reader) {
580
+ while (reader.nextField()) {
581
+ if (reader.isEndGroup()) {
582
+ break;
583
+ }
584
+ var field = reader.getFieldNumber();
585
+ switch (field) {
586
+ case 1:
587
+ var value = /** @type {string} */ (reader.readString());
588
+ msg.setSiteId(value);
589
+ break;
590
+ case 2:
591
+ var value = /** @type {string} */ (reader.readString());
592
+ msg.setInstallKey(value);
593
+ break;
594
+ case 3:
595
+ var value = /** @type {string} */ (reader.readString());
596
+ msg.setEntity(value);
597
+ break;
598
+ default:
599
+ reader.skipField();
600
+ break;
601
+ }
602
+ }
603
+ return msg;
604
+ };
605
+
606
+
607
+ /**
608
+ * Serializes the message to binary data (in protobuf wire format).
609
+ * @return {!Uint8Array}
610
+ */
611
+ proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.prototype.serializeBinary = function() {
612
+ var writer = new jspb.BinaryWriter();
613
+ proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.serializeBinaryToWriter(this, writer);
614
+ return writer.getResultBuffer();
615
+ };
616
+
617
+
618
+ /**
619
+ * Serializes the given message to binary data (in protobuf wire
620
+ * format), writing to the given BinaryWriter.
621
+ * @param {!proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest} message
622
+ * @param {!jspb.BinaryWriter} writer
623
+ * @suppress {unusedLocalVariables} f is only used for nested messages
624
+ */
625
+ proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.serializeBinaryToWriter = function(message, writer) {
626
+ var f = undefined;
627
+ f = message.getSiteId();
628
+ if (f.length > 0) {
629
+ writer.writeString(
630
+ 1,
631
+ f
632
+ );
633
+ }
634
+ f = message.getInstallKey();
635
+ if (f.length > 0) {
636
+ writer.writeString(
637
+ 2,
638
+ f
639
+ );
640
+ }
641
+ f = message.getEntity();
642
+ if (f.length > 0) {
643
+ writer.writeString(
644
+ 3,
645
+ f
646
+ );
647
+ }
648
+ };
649
+
650
+
651
+ /**
652
+ * optional string site_id = 1;
653
+ * @return {string}
654
+ */
655
+ proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.prototype.getSiteId = function() {
656
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
657
+ };
658
+
659
+
660
+ /**
661
+ * @param {string} value
662
+ * @return {!proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest} returns this
663
+ */
664
+ proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.prototype.setSiteId = function(value) {
665
+ return jspb.Message.setProto3StringField(this, 1, value);
666
+ };
667
+
668
+
669
+ /**
670
+ * optional string install_key = 2;
671
+ * @return {string}
672
+ */
673
+ proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.prototype.getInstallKey = function() {
674
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
675
+ };
676
+
677
+
678
+ /**
679
+ * @param {string} value
680
+ * @return {!proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest} returns this
681
+ */
682
+ proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.prototype.setInstallKey = function(value) {
683
+ return jspb.Message.setProto3StringField(this, 2, value);
684
+ };
685
+
686
+
687
+ /**
688
+ * optional string entity = 3;
689
+ * @return {string}
690
+ */
691
+ proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.prototype.getEntity = function() {
692
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
693
+ };
694
+
695
+
696
+ /**
697
+ * @param {string} value
698
+ * @return {!proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest} returns this
699
+ */
700
+ proto.lansweeper.blockingrules.v1.SetBlockingRuleRequest.prototype.setEntity = function(value) {
701
+ return jspb.Message.setProto3StringField(this, 3, value);
702
+ };
703
+
704
+
705
+
706
+
707
+
708
+ if (jspb.Message.GENERATE_TO_OBJECT) {
709
+ /**
710
+ * Creates an object representation of this proto.
711
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
712
+ * Optional fields that are not set will be set to undefined.
713
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
714
+ * For the list of reserved names please see:
715
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
716
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
717
+ * JSPB instance for transitional soy proto support:
718
+ * http://goto/soy-param-migration
719
+ * @return {!Object}
720
+ */
721
+ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.prototype.toObject = function(opt_includeInstance) {
722
+ return proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.toObject(opt_includeInstance, this);
723
+ };
724
+
725
+
726
+ /**
727
+ * Static version of the {@see toObject} method.
728
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
729
+ * the JSPB instance for transitional soy proto support:
730
+ * http://goto/soy-param-migration
731
+ * @param {!proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest} msg The msg instance to transform.
732
+ * @return {!Object}
733
+ * @suppress {unusedLocalVariables} f is only used for nested messages
734
+ */
735
+ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.toObject = function(includeInstance, msg) {
736
+ var f, obj = {
737
+ siteId: jspb.Message.getFieldWithDefault(msg, 1, ""),
738
+ installKey: jspb.Message.getFieldWithDefault(msg, 2, ""),
739
+ entity: jspb.Message.getFieldWithDefault(msg, 3, "")
740
+ };
741
+
742
+ if (includeInstance) {
743
+ obj.$jspbMessageInstance = msg;
744
+ }
745
+ return obj;
746
+ };
747
+ }
748
+
749
+
750
+ /**
751
+ * Deserializes binary data (in protobuf wire format).
752
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
753
+ * @return {!proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest}
754
+ */
755
+ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.deserializeBinary = function(bytes) {
756
+ var reader = new jspb.BinaryReader(bytes);
757
+ var msg = new proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest;
758
+ return proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.deserializeBinaryFromReader(msg, reader);
759
+ };
760
+
761
+
762
+ /**
763
+ * Deserializes binary data (in protobuf wire format) from the
764
+ * given reader into the given message object.
765
+ * @param {!proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest} msg The message object to deserialize into.
766
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
767
+ * @return {!proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest}
768
+ */
769
+ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.deserializeBinaryFromReader = function(msg, reader) {
770
+ while (reader.nextField()) {
771
+ if (reader.isEndGroup()) {
772
+ break;
773
+ }
774
+ var field = reader.getFieldNumber();
775
+ switch (field) {
776
+ case 1:
777
+ var value = /** @type {string} */ (reader.readString());
778
+ msg.setSiteId(value);
779
+ break;
780
+ case 2:
781
+ var value = /** @type {string} */ (reader.readString());
782
+ msg.setInstallKey(value);
783
+ break;
784
+ case 3:
785
+ var value = /** @type {string} */ (reader.readString());
786
+ msg.setEntity(value);
787
+ break;
788
+ default:
789
+ reader.skipField();
790
+ break;
791
+ }
792
+ }
793
+ return msg;
794
+ };
795
+
796
+
797
+ /**
798
+ * Serializes the message to binary data (in protobuf wire format).
799
+ * @return {!Uint8Array}
800
+ */
801
+ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.prototype.serializeBinary = function() {
802
+ var writer = new jspb.BinaryWriter();
803
+ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.serializeBinaryToWriter(this, writer);
804
+ return writer.getResultBuffer();
805
+ };
806
+
807
+
808
+ /**
809
+ * Serializes the given message to binary data (in protobuf wire
810
+ * format), writing to the given BinaryWriter.
811
+ * @param {!proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest} message
812
+ * @param {!jspb.BinaryWriter} writer
813
+ * @suppress {unusedLocalVariables} f is only used for nested messages
814
+ */
815
+ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.serializeBinaryToWriter = function(message, writer) {
816
+ var f = undefined;
817
+ f = message.getSiteId();
818
+ if (f.length > 0) {
819
+ writer.writeString(
820
+ 1,
821
+ f
822
+ );
823
+ }
824
+ f = message.getInstallKey();
825
+ if (f.length > 0) {
826
+ writer.writeString(
827
+ 2,
828
+ f
829
+ );
830
+ }
831
+ f = message.getEntity();
832
+ if (f.length > 0) {
833
+ writer.writeString(
834
+ 3,
835
+ f
836
+ );
837
+ }
838
+ };
839
+
840
+
841
+ /**
842
+ * optional string site_id = 1;
843
+ * @return {string}
844
+ */
845
+ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.prototype.getSiteId = function() {
846
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
847
+ };
848
+
849
+
850
+ /**
851
+ * @param {string} value
852
+ * @return {!proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest} returns this
853
+ */
854
+ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.prototype.setSiteId = function(value) {
855
+ return jspb.Message.setProto3StringField(this, 1, value);
856
+ };
857
+
858
+
859
+ /**
860
+ * optional string install_key = 2;
861
+ * @return {string}
862
+ */
863
+ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.prototype.getInstallKey = function() {
864
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
865
+ };
866
+
867
+
868
+ /**
869
+ * @param {string} value
870
+ * @return {!proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest} returns this
871
+ */
872
+ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.prototype.setInstallKey = function(value) {
873
+ return jspb.Message.setProto3StringField(this, 2, value);
874
+ };
875
+
876
+
877
+ /**
878
+ * optional string entity = 3;
879
+ * @return {string}
880
+ */
881
+ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.prototype.getEntity = function() {
882
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
883
+ };
884
+
885
+
886
+ /**
887
+ * @param {string} value
888
+ * @return {!proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest} returns this
889
+ */
890
+ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleRequest.prototype.setEntity = function(value) {
891
+ return jspb.Message.setProto3StringField(this, 3, value);
892
+ };
893
+
894
+
895
+
896
+
897
+
898
+ if (jspb.Message.GENERATE_TO_OBJECT) {
899
+ /**
900
+ * Creates an object representation of this proto.
901
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
902
+ * Optional fields that are not set will be set to undefined.
903
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
904
+ * For the list of reserved names please see:
905
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
906
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
907
+ * JSPB instance for transitional soy proto support:
908
+ * http://goto/soy-param-migration
909
+ * @return {!Object}
910
+ */
911
+ proto.lansweeper.blockingrules.v1.BlockingRuleResponse.prototype.toObject = function(opt_includeInstance) {
912
+ return proto.lansweeper.blockingrules.v1.BlockingRuleResponse.toObject(opt_includeInstance, this);
913
+ };
914
+
915
+
916
+ /**
917
+ * Static version of the {@see toObject} method.
918
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
919
+ * the JSPB instance for transitional soy proto support:
920
+ * http://goto/soy-param-migration
921
+ * @param {!proto.lansweeper.blockingrules.v1.BlockingRuleResponse} msg The msg instance to transform.
922
+ * @return {!Object}
923
+ * @suppress {unusedLocalVariables} f is only used for nested messages
924
+ */
925
+ proto.lansweeper.blockingrules.v1.BlockingRuleResponse.toObject = function(includeInstance, msg) {
926
+ var f, obj = {
927
+ blockingRule: (f = msg.getBlockingRule()) && proto.lansweeper.blockingrules.v1.BlockingRule.toObject(includeInstance, f)
928
+ };
929
+
930
+ if (includeInstance) {
931
+ obj.$jspbMessageInstance = msg;
932
+ }
933
+ return obj;
934
+ };
935
+ }
936
+
937
+
938
+ /**
939
+ * Deserializes binary data (in protobuf wire format).
940
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
941
+ * @return {!proto.lansweeper.blockingrules.v1.BlockingRuleResponse}
942
+ */
943
+ proto.lansweeper.blockingrules.v1.BlockingRuleResponse.deserializeBinary = function(bytes) {
944
+ var reader = new jspb.BinaryReader(bytes);
945
+ var msg = new proto.lansweeper.blockingrules.v1.BlockingRuleResponse;
946
+ return proto.lansweeper.blockingrules.v1.BlockingRuleResponse.deserializeBinaryFromReader(msg, reader);
947
+ };
948
+
949
+
950
+ /**
951
+ * Deserializes binary data (in protobuf wire format) from the
952
+ * given reader into the given message object.
953
+ * @param {!proto.lansweeper.blockingrules.v1.BlockingRuleResponse} msg The message object to deserialize into.
954
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
955
+ * @return {!proto.lansweeper.blockingrules.v1.BlockingRuleResponse}
956
+ */
957
+ proto.lansweeper.blockingrules.v1.BlockingRuleResponse.deserializeBinaryFromReader = function(msg, reader) {
958
+ while (reader.nextField()) {
959
+ if (reader.isEndGroup()) {
960
+ break;
961
+ }
962
+ var field = reader.getFieldNumber();
963
+ switch (field) {
964
+ case 1:
965
+ var value = new proto.lansweeper.blockingrules.v1.BlockingRule;
966
+ reader.readMessage(value,proto.lansweeper.blockingrules.v1.BlockingRule.deserializeBinaryFromReader);
967
+ msg.setBlockingRule(value);
968
+ break;
969
+ default:
970
+ reader.skipField();
971
+ break;
972
+ }
973
+ }
974
+ return msg;
975
+ };
976
+
977
+
978
+ /**
979
+ * Serializes the message to binary data (in protobuf wire format).
980
+ * @return {!Uint8Array}
981
+ */
982
+ proto.lansweeper.blockingrules.v1.BlockingRuleResponse.prototype.serializeBinary = function() {
983
+ var writer = new jspb.BinaryWriter();
984
+ proto.lansweeper.blockingrules.v1.BlockingRuleResponse.serializeBinaryToWriter(this, writer);
985
+ return writer.getResultBuffer();
986
+ };
987
+
988
+
989
+ /**
990
+ * Serializes the given message to binary data (in protobuf wire
991
+ * format), writing to the given BinaryWriter.
992
+ * @param {!proto.lansweeper.blockingrules.v1.BlockingRuleResponse} message
993
+ * @param {!jspb.BinaryWriter} writer
994
+ * @suppress {unusedLocalVariables} f is only used for nested messages
995
+ */
996
+ proto.lansweeper.blockingrules.v1.BlockingRuleResponse.serializeBinaryToWriter = function(message, writer) {
997
+ var f = undefined;
998
+ f = message.getBlockingRule();
999
+ if (f != null) {
1000
+ writer.writeMessage(
1001
+ 1,
1002
+ f,
1003
+ proto.lansweeper.blockingrules.v1.BlockingRule.serializeBinaryToWriter
1004
+ );
1005
+ }
1006
+ };
1007
+
1008
+
1009
+ /**
1010
+ * optional BlockingRule blocking_rule = 1;
1011
+ * @return {?proto.lansweeper.blockingrules.v1.BlockingRule}
1012
+ */
1013
+ proto.lansweeper.blockingrules.v1.BlockingRuleResponse.prototype.getBlockingRule = function() {
1014
+ return /** @type{?proto.lansweeper.blockingrules.v1.BlockingRule} */ (
1015
+ jspb.Message.getWrapperField(this, proto.lansweeper.blockingrules.v1.BlockingRule, 1));
1016
+ };
1017
+
1018
+
1019
+ /**
1020
+ * @param {?proto.lansweeper.blockingrules.v1.BlockingRule|undefined} value
1021
+ * @return {!proto.lansweeper.blockingrules.v1.BlockingRuleResponse} returns this
1022
+ */
1023
+ proto.lansweeper.blockingrules.v1.BlockingRuleResponse.prototype.setBlockingRule = function(value) {
1024
+ return jspb.Message.setWrapperField(this, 1, value);
1025
+ };
1026
+
1027
+
1028
+ /**
1029
+ * Clears the message field making it undefined.
1030
+ * @return {!proto.lansweeper.blockingrules.v1.BlockingRuleResponse} returns this
1031
+ */
1032
+ proto.lansweeper.blockingrules.v1.BlockingRuleResponse.prototype.clearBlockingRule = function() {
1033
+ return this.setBlockingRule(undefined);
1034
+ };
1035
+
1036
+
1037
+ /**
1038
+ * Returns whether this field is set.
1039
+ * @return {boolean}
1040
+ */
1041
+ proto.lansweeper.blockingrules.v1.BlockingRuleResponse.prototype.hasBlockingRule = function() {
1042
+ return jspb.Message.getField(this, 1) != null;
1043
+ };
1044
+
1045
+
1046
+
1047
+ /**
1048
+ * List of repeated fields within this message type.
1049
+ * @private {!Array<number>}
1050
+ * @const
1051
+ */
1052
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse.repeatedFields_ = [1];
1053
+
1054
+
1055
+
1056
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1057
+ /**
1058
+ * Creates an object representation of this proto.
1059
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1060
+ * Optional fields that are not set will be set to undefined.
1061
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1062
+ * For the list of reserved names please see:
1063
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1064
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1065
+ * JSPB instance for transitional soy proto support:
1066
+ * http://goto/soy-param-migration
1067
+ * @return {!Object}
1068
+ */
1069
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse.prototype.toObject = function(opt_includeInstance) {
1070
+ return proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse.toObject(opt_includeInstance, this);
1071
+ };
1072
+
1073
+
1074
+ /**
1075
+ * Static version of the {@see toObject} method.
1076
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1077
+ * the JSPB instance for transitional soy proto support:
1078
+ * http://goto/soy-param-migration
1079
+ * @param {!proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse} msg The msg instance to transform.
1080
+ * @return {!Object}
1081
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1082
+ */
1083
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse.toObject = function(includeInstance, msg) {
1084
+ var f, obj = {
1085
+ blockingRulesList: jspb.Message.toObjectList(msg.getBlockingRulesList(),
1086
+ proto.lansweeper.blockingrules.v1.BlockingRuleResponse.toObject, includeInstance)
1087
+ };
1088
+
1089
+ if (includeInstance) {
1090
+ obj.$jspbMessageInstance = msg;
1091
+ }
1092
+ return obj;
1093
+ };
1094
+ }
1095
+
1096
+
1097
+ /**
1098
+ * Deserializes binary data (in protobuf wire format).
1099
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1100
+ * @return {!proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse}
1101
+ */
1102
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse.deserializeBinary = function(bytes) {
1103
+ var reader = new jspb.BinaryReader(bytes);
1104
+ var msg = new proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse;
1105
+ return proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse.deserializeBinaryFromReader(msg, reader);
1106
+ };
1107
+
1108
+
1109
+ /**
1110
+ * Deserializes binary data (in protobuf wire format) from the
1111
+ * given reader into the given message object.
1112
+ * @param {!proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse} msg The message object to deserialize into.
1113
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1114
+ * @return {!proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse}
1115
+ */
1116
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse.deserializeBinaryFromReader = function(msg, reader) {
1117
+ while (reader.nextField()) {
1118
+ if (reader.isEndGroup()) {
1119
+ break;
1120
+ }
1121
+ var field = reader.getFieldNumber();
1122
+ switch (field) {
1123
+ case 1:
1124
+ var value = new proto.lansweeper.blockingrules.v1.BlockingRuleResponse;
1125
+ reader.readMessage(value,proto.lansweeper.blockingrules.v1.BlockingRuleResponse.deserializeBinaryFromReader);
1126
+ msg.addBlockingRules(value);
1127
+ break;
1128
+ default:
1129
+ reader.skipField();
1130
+ break;
1131
+ }
1132
+ }
1133
+ return msg;
1134
+ };
1135
+
1136
+
1137
+ /**
1138
+ * Serializes the message to binary data (in protobuf wire format).
1139
+ * @return {!Uint8Array}
1140
+ */
1141
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse.prototype.serializeBinary = function() {
1142
+ var writer = new jspb.BinaryWriter();
1143
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse.serializeBinaryToWriter(this, writer);
1144
+ return writer.getResultBuffer();
1145
+ };
1146
+
1147
+
1148
+ /**
1149
+ * Serializes the given message to binary data (in protobuf wire
1150
+ * format), writing to the given BinaryWriter.
1151
+ * @param {!proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse} message
1152
+ * @param {!jspb.BinaryWriter} writer
1153
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1154
+ */
1155
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse.serializeBinaryToWriter = function(message, writer) {
1156
+ var f = undefined;
1157
+ f = message.getBlockingRulesList();
1158
+ if (f.length > 0) {
1159
+ writer.writeRepeatedMessage(
1160
+ 1,
1161
+ f,
1162
+ proto.lansweeper.blockingrules.v1.BlockingRuleResponse.serializeBinaryToWriter
1163
+ );
1164
+ }
1165
+ };
1166
+
1167
+
1168
+ /**
1169
+ * repeated BlockingRuleResponse blocking_rules = 1;
1170
+ * @return {!Array<!proto.lansweeper.blockingrules.v1.BlockingRuleResponse>}
1171
+ */
1172
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse.prototype.getBlockingRulesList = function() {
1173
+ return /** @type{!Array<!proto.lansweeper.blockingrules.v1.BlockingRuleResponse>} */ (
1174
+ jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.blockingrules.v1.BlockingRuleResponse, 1));
1175
+ };
1176
+
1177
+
1178
+ /**
1179
+ * @param {!Array<!proto.lansweeper.blockingrules.v1.BlockingRuleResponse>} value
1180
+ * @return {!proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse} returns this
1181
+ */
1182
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse.prototype.setBlockingRulesList = function(value) {
1183
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1184
+ };
1185
+
1186
+
1187
+ /**
1188
+ * @param {!proto.lansweeper.blockingrules.v1.BlockingRuleResponse=} opt_value
1189
+ * @param {number=} opt_index
1190
+ * @return {!proto.lansweeper.blockingrules.v1.BlockingRuleResponse}
1191
+ */
1192
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse.prototype.addBlockingRules = function(opt_value, opt_index) {
1193
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.lansweeper.blockingrules.v1.BlockingRuleResponse, opt_index);
1194
+ };
1195
+
1196
+
1197
+ /**
1198
+ * Clears the list making it empty but non-null.
1199
+ * @return {!proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse} returns this
1200
+ */
1201
+ proto.lansweeper.blockingrules.v1.GetBlockingRulesResponse.prototype.clearBlockingRulesList = function() {
1202
+ return this.setBlockingRulesList([]);
1203
+ };
1204
+
1205
+
1206
+
1207
+ /**
1208
+ * List of repeated fields within this message type.
1209
+ * @private {!Array<number>}
1210
+ * @const
1211
+ */
1212
+ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.repeatedFields_ = [1];
1213
+
1214
+
1215
+
1216
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1217
+ /**
1218
+ * Creates an object representation of this proto.
1219
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1220
+ * Optional fields that are not set will be set to undefined.
1221
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1222
+ * For the list of reserved names please see:
1223
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1224
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1225
+ * JSPB instance for transitional soy proto support:
1226
+ * http://goto/soy-param-migration
1227
+ * @return {!Object}
1228
+ */
1229
+ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.toObject = function(opt_includeInstance) {
1230
+ return proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.toObject(opt_includeInstance, this);
1231
+ };
1232
+
1233
+
1234
+ /**
1235
+ * Static version of the {@see toObject} method.
1236
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1237
+ * the JSPB instance for transitional soy proto support:
1238
+ * http://goto/soy-param-migration
1239
+ * @param {!proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse} msg The msg instance to transform.
1240
+ * @return {!Object}
1241
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1242
+ */
1243
+ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.toObject = function(includeInstance, msg) {
1244
+ var f, obj = {
1245
+ blockingRulesList: jspb.Message.toObjectList(msg.getBlockingRulesList(),
1246
+ proto.lansweeper.blockingrules.v1.BlockingRuleResponse.toObject, includeInstance)
1247
+ };
1248
+
1249
+ if (includeInstance) {
1250
+ obj.$jspbMessageInstance = msg;
1251
+ }
1252
+ return obj;
1253
+ };
1254
+ }
1255
+
1256
+
1257
+ /**
1258
+ * Deserializes binary data (in protobuf wire format).
1259
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1260
+ * @return {!proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse}
1261
+ */
1262
+ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.deserializeBinary = function(bytes) {
1263
+ var reader = new jspb.BinaryReader(bytes);
1264
+ var msg = new proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse;
1265
+ return proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.deserializeBinaryFromReader(msg, reader);
1266
+ };
1267
+
1268
+
1269
+ /**
1270
+ * Deserializes binary data (in protobuf wire format) from the
1271
+ * given reader into the given message object.
1272
+ * @param {!proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse} msg The message object to deserialize into.
1273
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1274
+ * @return {!proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse}
1275
+ */
1276
+ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.deserializeBinaryFromReader = function(msg, reader) {
1277
+ while (reader.nextField()) {
1278
+ if (reader.isEndGroup()) {
1279
+ break;
1280
+ }
1281
+ var field = reader.getFieldNumber();
1282
+ switch (field) {
1283
+ case 1:
1284
+ var value = new proto.lansweeper.blockingrules.v1.BlockingRuleResponse;
1285
+ reader.readMessage(value,proto.lansweeper.blockingrules.v1.BlockingRuleResponse.deserializeBinaryFromReader);
1286
+ msg.addBlockingRules(value);
1287
+ break;
1288
+ default:
1289
+ reader.skipField();
1290
+ break;
1291
+ }
1292
+ }
1293
+ return msg;
1294
+ };
1295
+
1296
+
1297
+ /**
1298
+ * Serializes the message to binary data (in protobuf wire format).
1299
+ * @return {!Uint8Array}
1300
+ */
1301
+ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.serializeBinary = function() {
1302
+ var writer = new jspb.BinaryWriter();
1303
+ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.serializeBinaryToWriter(this, writer);
1304
+ return writer.getResultBuffer();
1305
+ };
1306
+
1307
+
1308
+ /**
1309
+ * Serializes the given message to binary data (in protobuf wire
1310
+ * format), writing to the given BinaryWriter.
1311
+ * @param {!proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse} message
1312
+ * @param {!jspb.BinaryWriter} writer
1313
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1314
+ */
1315
+ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.serializeBinaryToWriter = function(message, writer) {
1316
+ var f = undefined;
1317
+ f = message.getBlockingRulesList();
1318
+ if (f.length > 0) {
1319
+ writer.writeRepeatedMessage(
1320
+ 1,
1321
+ f,
1322
+ proto.lansweeper.blockingrules.v1.BlockingRuleResponse.serializeBinaryToWriter
1323
+ );
1324
+ }
1325
+ };
1326
+
1327
+
1328
+ /**
1329
+ * repeated BlockingRuleResponse blocking_rules = 1;
1330
+ * @return {!Array<!proto.lansweeper.blockingrules.v1.BlockingRuleResponse>}
1331
+ */
1332
+ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.getBlockingRulesList = function() {
1333
+ return /** @type{!Array<!proto.lansweeper.blockingrules.v1.BlockingRuleResponse>} */ (
1334
+ jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.blockingrules.v1.BlockingRuleResponse, 1));
1335
+ };
1336
+
1337
+
1338
+ /**
1339
+ * @param {!Array<!proto.lansweeper.blockingrules.v1.BlockingRuleResponse>} value
1340
+ * @return {!proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse} returns this
1341
+ */
1342
+ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.setBlockingRulesList = function(value) {
1343
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1344
+ };
1345
+
1346
+
1347
+ /**
1348
+ * @param {!proto.lansweeper.blockingrules.v1.BlockingRuleResponse=} opt_value
1349
+ * @param {number=} opt_index
1350
+ * @return {!proto.lansweeper.blockingrules.v1.BlockingRuleResponse}
1351
+ */
1352
+ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.addBlockingRules = function(opt_value, opt_index) {
1353
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.lansweeper.blockingrules.v1.BlockingRuleResponse, opt_index);
1354
+ };
1355
+
1356
+
1357
+ /**
1358
+ * Clears the list making it empty but non-null.
1359
+ * @return {!proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse} returns this
1360
+ */
1361
+ proto.lansweeper.blockingrules.v1.SetBlockingRuleResponse.prototype.clearBlockingRulesList = function() {
1362
+ return this.setBlockingRulesList([]);
1363
+ };
1364
+
1365
+
1366
+
1367
+
1368
+
1369
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1370
+ /**
1371
+ * Creates an object representation of this proto.
1372
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1373
+ * Optional fields that are not set will be set to undefined.
1374
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1375
+ * For the list of reserved names please see:
1376
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1377
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1378
+ * JSPB instance for transitional soy proto support:
1379
+ * http://goto/soy-param-migration
1380
+ * @return {!Object}
1381
+ */
1382
+ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.prototype.toObject = function(opt_includeInstance) {
1383
+ return proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.toObject(opt_includeInstance, this);
1384
+ };
1385
+
1386
+
1387
+ /**
1388
+ * Static version of the {@see toObject} method.
1389
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1390
+ * the JSPB instance for transitional soy proto support:
1391
+ * http://goto/soy-param-migration
1392
+ * @param {!proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse} msg The msg instance to transform.
1393
+ * @return {!Object}
1394
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1395
+ */
1396
+ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.toObject = function(includeInstance, msg) {
1397
+ var f, obj = {
1398
+ siteId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1399
+ installKey: jspb.Message.getFieldWithDefault(msg, 2, ""),
1400
+ entity: jspb.Message.getFieldWithDefault(msg, 3, ""),
1401
+ deleted: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
1402
+ };
1403
+
1404
+ if (includeInstance) {
1405
+ obj.$jspbMessageInstance = msg;
1406
+ }
1407
+ return obj;
1408
+ };
1409
+ }
1410
+
1411
+
1412
+ /**
1413
+ * Deserializes binary data (in protobuf wire format).
1414
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1415
+ * @return {!proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse}
1416
+ */
1417
+ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.deserializeBinary = function(bytes) {
1418
+ var reader = new jspb.BinaryReader(bytes);
1419
+ var msg = new proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse;
1420
+ return proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.deserializeBinaryFromReader(msg, reader);
1421
+ };
1422
+
1423
+
1424
+ /**
1425
+ * Deserializes binary data (in protobuf wire format) from the
1426
+ * given reader into the given message object.
1427
+ * @param {!proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse} msg The message object to deserialize into.
1428
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1429
+ * @return {!proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse}
1430
+ */
1431
+ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.deserializeBinaryFromReader = function(msg, reader) {
1432
+ while (reader.nextField()) {
1433
+ if (reader.isEndGroup()) {
1434
+ break;
1435
+ }
1436
+ var field = reader.getFieldNumber();
1437
+ switch (field) {
1438
+ case 1:
1439
+ var value = /** @type {string} */ (reader.readString());
1440
+ msg.setSiteId(value);
1441
+ break;
1442
+ case 2:
1443
+ var value = /** @type {string} */ (reader.readString());
1444
+ msg.setInstallKey(value);
1445
+ break;
1446
+ case 3:
1447
+ var value = /** @type {string} */ (reader.readString());
1448
+ msg.setEntity(value);
1449
+ break;
1450
+ case 4:
1451
+ var value = /** @type {boolean} */ (reader.readBool());
1452
+ msg.setDeleted(value);
1453
+ break;
1454
+ default:
1455
+ reader.skipField();
1456
+ break;
1457
+ }
1458
+ }
1459
+ return msg;
1460
+ };
1461
+
1462
+
1463
+ /**
1464
+ * Serializes the message to binary data (in protobuf wire format).
1465
+ * @return {!Uint8Array}
1466
+ */
1467
+ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.prototype.serializeBinary = function() {
1468
+ var writer = new jspb.BinaryWriter();
1469
+ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.serializeBinaryToWriter(this, writer);
1470
+ return writer.getResultBuffer();
1471
+ };
1472
+
1473
+
1474
+ /**
1475
+ * Serializes the given message to binary data (in protobuf wire
1476
+ * format), writing to the given BinaryWriter.
1477
+ * @param {!proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse} message
1478
+ * @param {!jspb.BinaryWriter} writer
1479
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1480
+ */
1481
+ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.serializeBinaryToWriter = function(message, writer) {
1482
+ var f = undefined;
1483
+ f = message.getSiteId();
1484
+ if (f.length > 0) {
1485
+ writer.writeString(
1486
+ 1,
1487
+ f
1488
+ );
1489
+ }
1490
+ f = message.getInstallKey();
1491
+ if (f.length > 0) {
1492
+ writer.writeString(
1493
+ 2,
1494
+ f
1495
+ );
1496
+ }
1497
+ f = message.getEntity();
1498
+ if (f.length > 0) {
1499
+ writer.writeString(
1500
+ 3,
1501
+ f
1502
+ );
1503
+ }
1504
+ f = message.getDeleted();
1505
+ if (f) {
1506
+ writer.writeBool(
1507
+ 4,
1508
+ f
1509
+ );
1510
+ }
1511
+ };
1512
+
1513
+
1514
+ /**
1515
+ * optional string site_id = 1;
1516
+ * @return {string}
1517
+ */
1518
+ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.prototype.getSiteId = function() {
1519
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1520
+ };
1521
+
1522
+
1523
+ /**
1524
+ * @param {string} value
1525
+ * @return {!proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse} returns this
1526
+ */
1527
+ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.prototype.setSiteId = function(value) {
1528
+ return jspb.Message.setProto3StringField(this, 1, value);
1529
+ };
1530
+
1531
+
1532
+ /**
1533
+ * optional string install_key = 2;
1534
+ * @return {string}
1535
+ */
1536
+ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.prototype.getInstallKey = function() {
1537
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1538
+ };
1539
+
1540
+
1541
+ /**
1542
+ * @param {string} value
1543
+ * @return {!proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse} returns this
1544
+ */
1545
+ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.prototype.setInstallKey = function(value) {
1546
+ return jspb.Message.setProto3StringField(this, 2, value);
1547
+ };
1548
+
1549
+
1550
+ /**
1551
+ * optional string entity = 3;
1552
+ * @return {string}
1553
+ */
1554
+ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.prototype.getEntity = function() {
1555
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1556
+ };
1557
+
1558
+
1559
+ /**
1560
+ * @param {string} value
1561
+ * @return {!proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse} returns this
1562
+ */
1563
+ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.prototype.setEntity = function(value) {
1564
+ return jspb.Message.setProto3StringField(this, 3, value);
1565
+ };
1566
+
1567
+
1568
+ /**
1569
+ * optional bool deleted = 4;
1570
+ * @return {boolean}
1571
+ */
1572
+ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.prototype.getDeleted = function() {
1573
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
1574
+ };
1575
+
1576
+
1577
+ /**
1578
+ * @param {boolean} value
1579
+ * @return {!proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse} returns this
1580
+ */
1581
+ proto.lansweeper.blockingrules.v1.DeleteBlockingRuleResponse.prototype.setDeleted = function(value) {
1582
+ return jspb.Message.setProto3BooleanField(this, 4, value);
1583
+ };
1584
+
1585
+
1586
+ goog.object.extend(exports, proto.lansweeper.blockingrules.v1);