@lansweeper/multitenant-api-grpc 0.4.39 → 0.4.41
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/CHANGELOG.md +16 -0
- package/gen-proto/image.json +1 -1
- package/gen-proto/limits/limits_pb.d.ts +83 -0
- package/gen-proto/limits/limits_pb.js +657 -1
- package/package.json +2 -2
- package/proto/limits/limits.proto +16 -1
- package/proto/multitenant.proto +1 -1
- package/.ignorecompat +0 -0
|
@@ -21,7 +21,10 @@ var global = (function() {
|
|
|
21
21
|
return Function('return this')();
|
|
22
22
|
}.call(null));
|
|
23
23
|
|
|
24
|
+
goog.exportSymbol('proto.lansweeper.shared.limits.v1.Assets', null, global);
|
|
25
|
+
goog.exportSymbol('proto.lansweeper.shared.limits.v1.BaseLimit', null, global);
|
|
24
26
|
goog.exportSymbol('proto.lansweeper.shared.limits.v1.CalculateRiskInsights', null, global);
|
|
27
|
+
goog.exportSymbol('proto.lansweeper.shared.limits.v1.RiskInsights', null, global);
|
|
25
28
|
goog.exportSymbol('proto.lansweeper.shared.limits.v1.RiskInsightsSeverity', null, global);
|
|
26
29
|
goog.exportSymbol('proto.lansweeper.shared.limits.v1.SiteLimits', null, global);
|
|
27
30
|
goog.exportSymbol('proto.lansweeper.shared.limits.v1.SiteLimitsTiers', null, global);
|
|
@@ -46,6 +49,69 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
46
49
|
*/
|
|
47
50
|
proto.lansweeper.shared.limits.v1.CalculateRiskInsights.displayName = 'proto.lansweeper.shared.limits.v1.CalculateRiskInsights';
|
|
48
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* Generated by JsPbCodeGenerator.
|
|
54
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
55
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
56
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
57
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
58
|
+
* valid.
|
|
59
|
+
* @extends {jspb.Message}
|
|
60
|
+
* @constructor
|
|
61
|
+
*/
|
|
62
|
+
proto.lansweeper.shared.limits.v1.BaseLimit = function(opt_data) {
|
|
63
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.shared.limits.v1.BaseLimit.repeatedFields_, null);
|
|
64
|
+
};
|
|
65
|
+
goog.inherits(proto.lansweeper.shared.limits.v1.BaseLimit, jspb.Message);
|
|
66
|
+
if (goog.DEBUG && !COMPILED) {
|
|
67
|
+
/**
|
|
68
|
+
* @public
|
|
69
|
+
* @override
|
|
70
|
+
*/
|
|
71
|
+
proto.lansweeper.shared.limits.v1.BaseLimit.displayName = 'proto.lansweeper.shared.limits.v1.BaseLimit';
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Generated by JsPbCodeGenerator.
|
|
75
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
76
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
77
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
78
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
79
|
+
* valid.
|
|
80
|
+
* @extends {jspb.Message}
|
|
81
|
+
* @constructor
|
|
82
|
+
*/
|
|
83
|
+
proto.lansweeper.shared.limits.v1.RiskInsights = function(opt_data) {
|
|
84
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
85
|
+
};
|
|
86
|
+
goog.inherits(proto.lansweeper.shared.limits.v1.RiskInsights, jspb.Message);
|
|
87
|
+
if (goog.DEBUG && !COMPILED) {
|
|
88
|
+
/**
|
|
89
|
+
* @public
|
|
90
|
+
* @override
|
|
91
|
+
*/
|
|
92
|
+
proto.lansweeper.shared.limits.v1.RiskInsights.displayName = 'proto.lansweeper.shared.limits.v1.RiskInsights';
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Generated by JsPbCodeGenerator.
|
|
96
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
97
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
98
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
99
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
100
|
+
* valid.
|
|
101
|
+
* @extends {jspb.Message}
|
|
102
|
+
* @constructor
|
|
103
|
+
*/
|
|
104
|
+
proto.lansweeper.shared.limits.v1.Assets = function(opt_data) {
|
|
105
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
106
|
+
};
|
|
107
|
+
goog.inherits(proto.lansweeper.shared.limits.v1.Assets, jspb.Message);
|
|
108
|
+
if (goog.DEBUG && !COMPILED) {
|
|
109
|
+
/**
|
|
110
|
+
* @public
|
|
111
|
+
* @override
|
|
112
|
+
*/
|
|
113
|
+
proto.lansweeper.shared.limits.v1.Assets.displayName = 'proto.lansweeper.shared.limits.v1.Assets';
|
|
114
|
+
}
|
|
49
115
|
/**
|
|
50
116
|
* Generated by JsPbCodeGenerator.
|
|
51
117
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -312,6 +378,494 @@ proto.lansweeper.shared.limits.v1.CalculateRiskInsights.prototype.hasMax = funct
|
|
|
312
378
|
|
|
313
379
|
|
|
314
380
|
|
|
381
|
+
/**
|
|
382
|
+
* List of repeated fields within this message type.
|
|
383
|
+
* @private {!Array<number>}
|
|
384
|
+
* @const
|
|
385
|
+
*/
|
|
386
|
+
proto.lansweeper.shared.limits.v1.BaseLimit.repeatedFields_ = [2];
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
391
|
+
/**
|
|
392
|
+
* Creates an object representation of this proto.
|
|
393
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
394
|
+
* Optional fields that are not set will be set to undefined.
|
|
395
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
396
|
+
* For the list of reserved names please see:
|
|
397
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
398
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
399
|
+
* JSPB instance for transitional soy proto support:
|
|
400
|
+
* http://goto/soy-param-migration
|
|
401
|
+
* @return {!Object}
|
|
402
|
+
*/
|
|
403
|
+
proto.lansweeper.shared.limits.v1.BaseLimit.prototype.toObject = function(opt_includeInstance) {
|
|
404
|
+
return proto.lansweeper.shared.limits.v1.BaseLimit.toObject(opt_includeInstance, this);
|
|
405
|
+
};
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* Static version of the {@see toObject} method.
|
|
410
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
411
|
+
* the JSPB instance for transitional soy proto support:
|
|
412
|
+
* http://goto/soy-param-migration
|
|
413
|
+
* @param {!proto.lansweeper.shared.limits.v1.BaseLimit} msg The msg instance to transform.
|
|
414
|
+
* @return {!Object}
|
|
415
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
416
|
+
*/
|
|
417
|
+
proto.lansweeper.shared.limits.v1.BaseLimit.toObject = function(includeInstance, msg) {
|
|
418
|
+
var f, obj = {
|
|
419
|
+
value: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
420
|
+
allowedList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
421
|
+
};
|
|
422
|
+
|
|
423
|
+
if (includeInstance) {
|
|
424
|
+
obj.$jspbMessageInstance = msg;
|
|
425
|
+
}
|
|
426
|
+
return obj;
|
|
427
|
+
};
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* Deserializes binary data (in protobuf wire format).
|
|
433
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
434
|
+
* @return {!proto.lansweeper.shared.limits.v1.BaseLimit}
|
|
435
|
+
*/
|
|
436
|
+
proto.lansweeper.shared.limits.v1.BaseLimit.deserializeBinary = function(bytes) {
|
|
437
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
438
|
+
var msg = new proto.lansweeper.shared.limits.v1.BaseLimit;
|
|
439
|
+
return proto.lansweeper.shared.limits.v1.BaseLimit.deserializeBinaryFromReader(msg, reader);
|
|
440
|
+
};
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
445
|
+
* given reader into the given message object.
|
|
446
|
+
* @param {!proto.lansweeper.shared.limits.v1.BaseLimit} msg The message object to deserialize into.
|
|
447
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
448
|
+
* @return {!proto.lansweeper.shared.limits.v1.BaseLimit}
|
|
449
|
+
*/
|
|
450
|
+
proto.lansweeper.shared.limits.v1.BaseLimit.deserializeBinaryFromReader = function(msg, reader) {
|
|
451
|
+
while (reader.nextField()) {
|
|
452
|
+
if (reader.isEndGroup()) {
|
|
453
|
+
break;
|
|
454
|
+
}
|
|
455
|
+
var field = reader.getFieldNumber();
|
|
456
|
+
switch (field) {
|
|
457
|
+
case 1:
|
|
458
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
459
|
+
msg.setValue(value);
|
|
460
|
+
break;
|
|
461
|
+
case 2:
|
|
462
|
+
var value = /** @type {string} */ (reader.readString());
|
|
463
|
+
msg.addAllowed(value);
|
|
464
|
+
break;
|
|
465
|
+
default:
|
|
466
|
+
reader.skipField();
|
|
467
|
+
break;
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
return msg;
|
|
471
|
+
};
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
476
|
+
* @return {!Uint8Array}
|
|
477
|
+
*/
|
|
478
|
+
proto.lansweeper.shared.limits.v1.BaseLimit.prototype.serializeBinary = function() {
|
|
479
|
+
var writer = new jspb.BinaryWriter();
|
|
480
|
+
proto.lansweeper.shared.limits.v1.BaseLimit.serializeBinaryToWriter(this, writer);
|
|
481
|
+
return writer.getResultBuffer();
|
|
482
|
+
};
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
487
|
+
* format), writing to the given BinaryWriter.
|
|
488
|
+
* @param {!proto.lansweeper.shared.limits.v1.BaseLimit} message
|
|
489
|
+
* @param {!jspb.BinaryWriter} writer
|
|
490
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
491
|
+
*/
|
|
492
|
+
proto.lansweeper.shared.limits.v1.BaseLimit.serializeBinaryToWriter = function(message, writer) {
|
|
493
|
+
var f = undefined;
|
|
494
|
+
f = message.getValue();
|
|
495
|
+
if (f) {
|
|
496
|
+
writer.writeBool(
|
|
497
|
+
1,
|
|
498
|
+
f
|
|
499
|
+
);
|
|
500
|
+
}
|
|
501
|
+
f = message.getAllowedList();
|
|
502
|
+
if (f.length > 0) {
|
|
503
|
+
writer.writeRepeatedString(
|
|
504
|
+
2,
|
|
505
|
+
f
|
|
506
|
+
);
|
|
507
|
+
}
|
|
508
|
+
};
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
/**
|
|
512
|
+
* optional bool value = 1;
|
|
513
|
+
* @return {boolean}
|
|
514
|
+
*/
|
|
515
|
+
proto.lansweeper.shared.limits.v1.BaseLimit.prototype.getValue = function() {
|
|
516
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
|
|
517
|
+
};
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* @param {boolean} value
|
|
522
|
+
* @return {!proto.lansweeper.shared.limits.v1.BaseLimit} returns this
|
|
523
|
+
*/
|
|
524
|
+
proto.lansweeper.shared.limits.v1.BaseLimit.prototype.setValue = function(value) {
|
|
525
|
+
return jspb.Message.setProto3BooleanField(this, 1, value);
|
|
526
|
+
};
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* repeated string allowed = 2;
|
|
531
|
+
* @return {!Array<string>}
|
|
532
|
+
*/
|
|
533
|
+
proto.lansweeper.shared.limits.v1.BaseLimit.prototype.getAllowedList = function() {
|
|
534
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
535
|
+
};
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* @param {!Array<string>} value
|
|
540
|
+
* @return {!proto.lansweeper.shared.limits.v1.BaseLimit} returns this
|
|
541
|
+
*/
|
|
542
|
+
proto.lansweeper.shared.limits.v1.BaseLimit.prototype.setAllowedList = function(value) {
|
|
543
|
+
return jspb.Message.setField(this, 2, value || []);
|
|
544
|
+
};
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* @param {string} value
|
|
549
|
+
* @param {number=} opt_index
|
|
550
|
+
* @return {!proto.lansweeper.shared.limits.v1.BaseLimit} returns this
|
|
551
|
+
*/
|
|
552
|
+
proto.lansweeper.shared.limits.v1.BaseLimit.prototype.addAllowed = function(value, opt_index) {
|
|
553
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
554
|
+
};
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* Clears the list making it empty but non-null.
|
|
559
|
+
* @return {!proto.lansweeper.shared.limits.v1.BaseLimit} returns this
|
|
560
|
+
*/
|
|
561
|
+
proto.lansweeper.shared.limits.v1.BaseLimit.prototype.clearAllowedList = function() {
|
|
562
|
+
return this.setAllowedList([]);
|
|
563
|
+
};
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
570
|
+
/**
|
|
571
|
+
* Creates an object representation of this proto.
|
|
572
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
573
|
+
* Optional fields that are not set will be set to undefined.
|
|
574
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
575
|
+
* For the list of reserved names please see:
|
|
576
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
577
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
578
|
+
* JSPB instance for transitional soy proto support:
|
|
579
|
+
* http://goto/soy-param-migration
|
|
580
|
+
* @return {!Object}
|
|
581
|
+
*/
|
|
582
|
+
proto.lansweeper.shared.limits.v1.RiskInsights.prototype.toObject = function(opt_includeInstance) {
|
|
583
|
+
return proto.lansweeper.shared.limits.v1.RiskInsights.toObject(opt_includeInstance, this);
|
|
584
|
+
};
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* Static version of the {@see toObject} method.
|
|
589
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
590
|
+
* the JSPB instance for transitional soy proto support:
|
|
591
|
+
* http://goto/soy-param-migration
|
|
592
|
+
* @param {!proto.lansweeper.shared.limits.v1.RiskInsights} msg The msg instance to transform.
|
|
593
|
+
* @return {!Object}
|
|
594
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
595
|
+
*/
|
|
596
|
+
proto.lansweeper.shared.limits.v1.RiskInsights.toObject = function(includeInstance, msg) {
|
|
597
|
+
var f, obj = {
|
|
598
|
+
viewAssets: (f = msg.getViewAssets()) && proto.lansweeper.shared.limits.v1.BaseLimit.toObject(includeInstance, f)
|
|
599
|
+
};
|
|
600
|
+
|
|
601
|
+
if (includeInstance) {
|
|
602
|
+
obj.$jspbMessageInstance = msg;
|
|
603
|
+
}
|
|
604
|
+
return obj;
|
|
605
|
+
};
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* Deserializes binary data (in protobuf wire format).
|
|
611
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
612
|
+
* @return {!proto.lansweeper.shared.limits.v1.RiskInsights}
|
|
613
|
+
*/
|
|
614
|
+
proto.lansweeper.shared.limits.v1.RiskInsights.deserializeBinary = function(bytes) {
|
|
615
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
616
|
+
var msg = new proto.lansweeper.shared.limits.v1.RiskInsights;
|
|
617
|
+
return proto.lansweeper.shared.limits.v1.RiskInsights.deserializeBinaryFromReader(msg, reader);
|
|
618
|
+
};
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
623
|
+
* given reader into the given message object.
|
|
624
|
+
* @param {!proto.lansweeper.shared.limits.v1.RiskInsights} msg The message object to deserialize into.
|
|
625
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
626
|
+
* @return {!proto.lansweeper.shared.limits.v1.RiskInsights}
|
|
627
|
+
*/
|
|
628
|
+
proto.lansweeper.shared.limits.v1.RiskInsights.deserializeBinaryFromReader = function(msg, reader) {
|
|
629
|
+
while (reader.nextField()) {
|
|
630
|
+
if (reader.isEndGroup()) {
|
|
631
|
+
break;
|
|
632
|
+
}
|
|
633
|
+
var field = reader.getFieldNumber();
|
|
634
|
+
switch (field) {
|
|
635
|
+
case 1:
|
|
636
|
+
var value = new proto.lansweeper.shared.limits.v1.BaseLimit;
|
|
637
|
+
reader.readMessage(value,proto.lansweeper.shared.limits.v1.BaseLimit.deserializeBinaryFromReader);
|
|
638
|
+
msg.setViewAssets(value);
|
|
639
|
+
break;
|
|
640
|
+
default:
|
|
641
|
+
reader.skipField();
|
|
642
|
+
break;
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
return msg;
|
|
646
|
+
};
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
/**
|
|
650
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
651
|
+
* @return {!Uint8Array}
|
|
652
|
+
*/
|
|
653
|
+
proto.lansweeper.shared.limits.v1.RiskInsights.prototype.serializeBinary = function() {
|
|
654
|
+
var writer = new jspb.BinaryWriter();
|
|
655
|
+
proto.lansweeper.shared.limits.v1.RiskInsights.serializeBinaryToWriter(this, writer);
|
|
656
|
+
return writer.getResultBuffer();
|
|
657
|
+
};
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
662
|
+
* format), writing to the given BinaryWriter.
|
|
663
|
+
* @param {!proto.lansweeper.shared.limits.v1.RiskInsights} message
|
|
664
|
+
* @param {!jspb.BinaryWriter} writer
|
|
665
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
666
|
+
*/
|
|
667
|
+
proto.lansweeper.shared.limits.v1.RiskInsights.serializeBinaryToWriter = function(message, writer) {
|
|
668
|
+
var f = undefined;
|
|
669
|
+
f = message.getViewAssets();
|
|
670
|
+
if (f != null) {
|
|
671
|
+
writer.writeMessage(
|
|
672
|
+
1,
|
|
673
|
+
f,
|
|
674
|
+
proto.lansweeper.shared.limits.v1.BaseLimit.serializeBinaryToWriter
|
|
675
|
+
);
|
|
676
|
+
}
|
|
677
|
+
};
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* optional BaseLimit view_assets = 1;
|
|
682
|
+
* @return {?proto.lansweeper.shared.limits.v1.BaseLimit}
|
|
683
|
+
*/
|
|
684
|
+
proto.lansweeper.shared.limits.v1.RiskInsights.prototype.getViewAssets = function() {
|
|
685
|
+
return /** @type{?proto.lansweeper.shared.limits.v1.BaseLimit} */ (
|
|
686
|
+
jspb.Message.getWrapperField(this, proto.lansweeper.shared.limits.v1.BaseLimit, 1));
|
|
687
|
+
};
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
/**
|
|
691
|
+
* @param {?proto.lansweeper.shared.limits.v1.BaseLimit|undefined} value
|
|
692
|
+
* @return {!proto.lansweeper.shared.limits.v1.RiskInsights} returns this
|
|
693
|
+
*/
|
|
694
|
+
proto.lansweeper.shared.limits.v1.RiskInsights.prototype.setViewAssets = function(value) {
|
|
695
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
696
|
+
};
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
/**
|
|
700
|
+
* Clears the message field making it undefined.
|
|
701
|
+
* @return {!proto.lansweeper.shared.limits.v1.RiskInsights} returns this
|
|
702
|
+
*/
|
|
703
|
+
proto.lansweeper.shared.limits.v1.RiskInsights.prototype.clearViewAssets = function() {
|
|
704
|
+
return this.setViewAssets(undefined);
|
|
705
|
+
};
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* Returns whether this field is set.
|
|
710
|
+
* @return {boolean}
|
|
711
|
+
*/
|
|
712
|
+
proto.lansweeper.shared.limits.v1.RiskInsights.prototype.hasViewAssets = function() {
|
|
713
|
+
return jspb.Message.getField(this, 1) != null;
|
|
714
|
+
};
|
|
715
|
+
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
|
|
720
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
721
|
+
/**
|
|
722
|
+
* Creates an object representation of this proto.
|
|
723
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
724
|
+
* Optional fields that are not set will be set to undefined.
|
|
725
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
726
|
+
* For the list of reserved names please see:
|
|
727
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
728
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
729
|
+
* JSPB instance for transitional soy proto support:
|
|
730
|
+
* http://goto/soy-param-migration
|
|
731
|
+
* @return {!Object}
|
|
732
|
+
*/
|
|
733
|
+
proto.lansweeper.shared.limits.v1.Assets.prototype.toObject = function(opt_includeInstance) {
|
|
734
|
+
return proto.lansweeper.shared.limits.v1.Assets.toObject(opt_includeInstance, this);
|
|
735
|
+
};
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* Static version of the {@see toObject} method.
|
|
740
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
741
|
+
* the JSPB instance for transitional soy proto support:
|
|
742
|
+
* http://goto/soy-param-migration
|
|
743
|
+
* @param {!proto.lansweeper.shared.limits.v1.Assets} msg The msg instance to transform.
|
|
744
|
+
* @return {!Object}
|
|
745
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
746
|
+
*/
|
|
747
|
+
proto.lansweeper.shared.limits.v1.Assets.toObject = function(includeInstance, msg) {
|
|
748
|
+
var f, obj = {
|
|
749
|
+
viewRiskInsights: (f = msg.getViewRiskInsights()) && proto.lansweeper.shared.limits.v1.BaseLimit.toObject(includeInstance, f)
|
|
750
|
+
};
|
|
751
|
+
|
|
752
|
+
if (includeInstance) {
|
|
753
|
+
obj.$jspbMessageInstance = msg;
|
|
754
|
+
}
|
|
755
|
+
return obj;
|
|
756
|
+
};
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
|
|
760
|
+
/**
|
|
761
|
+
* Deserializes binary data (in protobuf wire format).
|
|
762
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
763
|
+
* @return {!proto.lansweeper.shared.limits.v1.Assets}
|
|
764
|
+
*/
|
|
765
|
+
proto.lansweeper.shared.limits.v1.Assets.deserializeBinary = function(bytes) {
|
|
766
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
767
|
+
var msg = new proto.lansweeper.shared.limits.v1.Assets;
|
|
768
|
+
return proto.lansweeper.shared.limits.v1.Assets.deserializeBinaryFromReader(msg, reader);
|
|
769
|
+
};
|
|
770
|
+
|
|
771
|
+
|
|
772
|
+
/**
|
|
773
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
774
|
+
* given reader into the given message object.
|
|
775
|
+
* @param {!proto.lansweeper.shared.limits.v1.Assets} msg The message object to deserialize into.
|
|
776
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
777
|
+
* @return {!proto.lansweeper.shared.limits.v1.Assets}
|
|
778
|
+
*/
|
|
779
|
+
proto.lansweeper.shared.limits.v1.Assets.deserializeBinaryFromReader = function(msg, reader) {
|
|
780
|
+
while (reader.nextField()) {
|
|
781
|
+
if (reader.isEndGroup()) {
|
|
782
|
+
break;
|
|
783
|
+
}
|
|
784
|
+
var field = reader.getFieldNumber();
|
|
785
|
+
switch (field) {
|
|
786
|
+
case 1:
|
|
787
|
+
var value = new proto.lansweeper.shared.limits.v1.BaseLimit;
|
|
788
|
+
reader.readMessage(value,proto.lansweeper.shared.limits.v1.BaseLimit.deserializeBinaryFromReader);
|
|
789
|
+
msg.setViewRiskInsights(value);
|
|
790
|
+
break;
|
|
791
|
+
default:
|
|
792
|
+
reader.skipField();
|
|
793
|
+
break;
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
return msg;
|
|
797
|
+
};
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
/**
|
|
801
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
802
|
+
* @return {!Uint8Array}
|
|
803
|
+
*/
|
|
804
|
+
proto.lansweeper.shared.limits.v1.Assets.prototype.serializeBinary = function() {
|
|
805
|
+
var writer = new jspb.BinaryWriter();
|
|
806
|
+
proto.lansweeper.shared.limits.v1.Assets.serializeBinaryToWriter(this, writer);
|
|
807
|
+
return writer.getResultBuffer();
|
|
808
|
+
};
|
|
809
|
+
|
|
810
|
+
|
|
811
|
+
/**
|
|
812
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
813
|
+
* format), writing to the given BinaryWriter.
|
|
814
|
+
* @param {!proto.lansweeper.shared.limits.v1.Assets} message
|
|
815
|
+
* @param {!jspb.BinaryWriter} writer
|
|
816
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
817
|
+
*/
|
|
818
|
+
proto.lansweeper.shared.limits.v1.Assets.serializeBinaryToWriter = function(message, writer) {
|
|
819
|
+
var f = undefined;
|
|
820
|
+
f = message.getViewRiskInsights();
|
|
821
|
+
if (f != null) {
|
|
822
|
+
writer.writeMessage(
|
|
823
|
+
1,
|
|
824
|
+
f,
|
|
825
|
+
proto.lansweeper.shared.limits.v1.BaseLimit.serializeBinaryToWriter
|
|
826
|
+
);
|
|
827
|
+
}
|
|
828
|
+
};
|
|
829
|
+
|
|
830
|
+
|
|
831
|
+
/**
|
|
832
|
+
* optional BaseLimit view_risk_insights = 1;
|
|
833
|
+
* @return {?proto.lansweeper.shared.limits.v1.BaseLimit}
|
|
834
|
+
*/
|
|
835
|
+
proto.lansweeper.shared.limits.v1.Assets.prototype.getViewRiskInsights = function() {
|
|
836
|
+
return /** @type{?proto.lansweeper.shared.limits.v1.BaseLimit} */ (
|
|
837
|
+
jspb.Message.getWrapperField(this, proto.lansweeper.shared.limits.v1.BaseLimit, 1));
|
|
838
|
+
};
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
/**
|
|
842
|
+
* @param {?proto.lansweeper.shared.limits.v1.BaseLimit|undefined} value
|
|
843
|
+
* @return {!proto.lansweeper.shared.limits.v1.Assets} returns this
|
|
844
|
+
*/
|
|
845
|
+
proto.lansweeper.shared.limits.v1.Assets.prototype.setViewRiskInsights = function(value) {
|
|
846
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
847
|
+
};
|
|
848
|
+
|
|
849
|
+
|
|
850
|
+
/**
|
|
851
|
+
* Clears the message field making it undefined.
|
|
852
|
+
* @return {!proto.lansweeper.shared.limits.v1.Assets} returns this
|
|
853
|
+
*/
|
|
854
|
+
proto.lansweeper.shared.limits.v1.Assets.prototype.clearViewRiskInsights = function() {
|
|
855
|
+
return this.setViewRiskInsights(undefined);
|
|
856
|
+
};
|
|
857
|
+
|
|
858
|
+
|
|
859
|
+
/**
|
|
860
|
+
* Returns whether this field is set.
|
|
861
|
+
* @return {boolean}
|
|
862
|
+
*/
|
|
863
|
+
proto.lansweeper.shared.limits.v1.Assets.prototype.hasViewRiskInsights = function() {
|
|
864
|
+
return jspb.Message.getField(this, 1) != null;
|
|
865
|
+
};
|
|
866
|
+
|
|
867
|
+
|
|
868
|
+
|
|
315
869
|
|
|
316
870
|
|
|
317
871
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -344,7 +898,9 @@ proto.lansweeper.shared.limits.v1.SiteLimits.prototype.toObject = function(opt_i
|
|
|
344
898
|
proto.lansweeper.shared.limits.v1.SiteLimits.toObject = function(includeInstance, msg) {
|
|
345
899
|
var f, obj = {
|
|
346
900
|
tier: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
347
|
-
calculateRiskInsights: (f = msg.getCalculateRiskInsights()) && proto.lansweeper.shared.limits.v1.CalculateRiskInsights.toObject(includeInstance, f)
|
|
901
|
+
calculateRiskInsights: (f = msg.getCalculateRiskInsights()) && proto.lansweeper.shared.limits.v1.CalculateRiskInsights.toObject(includeInstance, f),
|
|
902
|
+
riskInsights: (f = msg.getRiskInsights()) && proto.lansweeper.shared.limits.v1.RiskInsights.toObject(includeInstance, f),
|
|
903
|
+
assets: (f = msg.getAssets()) && proto.lansweeper.shared.limits.v1.Assets.toObject(includeInstance, f)
|
|
348
904
|
};
|
|
349
905
|
|
|
350
906
|
if (includeInstance) {
|
|
@@ -390,6 +946,16 @@ proto.lansweeper.shared.limits.v1.SiteLimits.deserializeBinaryFromReader = funct
|
|
|
390
946
|
reader.readMessage(value,proto.lansweeper.shared.limits.v1.CalculateRiskInsights.deserializeBinaryFromReader);
|
|
391
947
|
msg.setCalculateRiskInsights(value);
|
|
392
948
|
break;
|
|
949
|
+
case 3:
|
|
950
|
+
var value = new proto.lansweeper.shared.limits.v1.RiskInsights;
|
|
951
|
+
reader.readMessage(value,proto.lansweeper.shared.limits.v1.RiskInsights.deserializeBinaryFromReader);
|
|
952
|
+
msg.setRiskInsights(value);
|
|
953
|
+
break;
|
|
954
|
+
case 4:
|
|
955
|
+
var value = new proto.lansweeper.shared.limits.v1.Assets;
|
|
956
|
+
reader.readMessage(value,proto.lansweeper.shared.limits.v1.Assets.deserializeBinaryFromReader);
|
|
957
|
+
msg.setAssets(value);
|
|
958
|
+
break;
|
|
393
959
|
default:
|
|
394
960
|
reader.skipField();
|
|
395
961
|
break;
|
|
@@ -434,6 +1000,22 @@ proto.lansweeper.shared.limits.v1.SiteLimits.serializeBinaryToWriter = function(
|
|
|
434
1000
|
proto.lansweeper.shared.limits.v1.CalculateRiskInsights.serializeBinaryToWriter
|
|
435
1001
|
);
|
|
436
1002
|
}
|
|
1003
|
+
f = message.getRiskInsights();
|
|
1004
|
+
if (f != null) {
|
|
1005
|
+
writer.writeMessage(
|
|
1006
|
+
3,
|
|
1007
|
+
f,
|
|
1008
|
+
proto.lansweeper.shared.limits.v1.RiskInsights.serializeBinaryToWriter
|
|
1009
|
+
);
|
|
1010
|
+
}
|
|
1011
|
+
f = message.getAssets();
|
|
1012
|
+
if (f != null) {
|
|
1013
|
+
writer.writeMessage(
|
|
1014
|
+
4,
|
|
1015
|
+
f,
|
|
1016
|
+
proto.lansweeper.shared.limits.v1.Assets.serializeBinaryToWriter
|
|
1017
|
+
);
|
|
1018
|
+
}
|
|
437
1019
|
};
|
|
438
1020
|
|
|
439
1021
|
|
|
@@ -492,6 +1074,80 @@ proto.lansweeper.shared.limits.v1.SiteLimits.prototype.hasCalculateRiskInsights
|
|
|
492
1074
|
};
|
|
493
1075
|
|
|
494
1076
|
|
|
1077
|
+
/**
|
|
1078
|
+
* optional RiskInsights risk_insights = 3;
|
|
1079
|
+
* @return {?proto.lansweeper.shared.limits.v1.RiskInsights}
|
|
1080
|
+
*/
|
|
1081
|
+
proto.lansweeper.shared.limits.v1.SiteLimits.prototype.getRiskInsights = function() {
|
|
1082
|
+
return /** @type{?proto.lansweeper.shared.limits.v1.RiskInsights} */ (
|
|
1083
|
+
jspb.Message.getWrapperField(this, proto.lansweeper.shared.limits.v1.RiskInsights, 3));
|
|
1084
|
+
};
|
|
1085
|
+
|
|
1086
|
+
|
|
1087
|
+
/**
|
|
1088
|
+
* @param {?proto.lansweeper.shared.limits.v1.RiskInsights|undefined} value
|
|
1089
|
+
* @return {!proto.lansweeper.shared.limits.v1.SiteLimits} returns this
|
|
1090
|
+
*/
|
|
1091
|
+
proto.lansweeper.shared.limits.v1.SiteLimits.prototype.setRiskInsights = function(value) {
|
|
1092
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
1093
|
+
};
|
|
1094
|
+
|
|
1095
|
+
|
|
1096
|
+
/**
|
|
1097
|
+
* Clears the message field making it undefined.
|
|
1098
|
+
* @return {!proto.lansweeper.shared.limits.v1.SiteLimits} returns this
|
|
1099
|
+
*/
|
|
1100
|
+
proto.lansweeper.shared.limits.v1.SiteLimits.prototype.clearRiskInsights = function() {
|
|
1101
|
+
return this.setRiskInsights(undefined);
|
|
1102
|
+
};
|
|
1103
|
+
|
|
1104
|
+
|
|
1105
|
+
/**
|
|
1106
|
+
* Returns whether this field is set.
|
|
1107
|
+
* @return {boolean}
|
|
1108
|
+
*/
|
|
1109
|
+
proto.lansweeper.shared.limits.v1.SiteLimits.prototype.hasRiskInsights = function() {
|
|
1110
|
+
return jspb.Message.getField(this, 3) != null;
|
|
1111
|
+
};
|
|
1112
|
+
|
|
1113
|
+
|
|
1114
|
+
/**
|
|
1115
|
+
* optional Assets assets = 4;
|
|
1116
|
+
* @return {?proto.lansweeper.shared.limits.v1.Assets}
|
|
1117
|
+
*/
|
|
1118
|
+
proto.lansweeper.shared.limits.v1.SiteLimits.prototype.getAssets = function() {
|
|
1119
|
+
return /** @type{?proto.lansweeper.shared.limits.v1.Assets} */ (
|
|
1120
|
+
jspb.Message.getWrapperField(this, proto.lansweeper.shared.limits.v1.Assets, 4));
|
|
1121
|
+
};
|
|
1122
|
+
|
|
1123
|
+
|
|
1124
|
+
/**
|
|
1125
|
+
* @param {?proto.lansweeper.shared.limits.v1.Assets|undefined} value
|
|
1126
|
+
* @return {!proto.lansweeper.shared.limits.v1.SiteLimits} returns this
|
|
1127
|
+
*/
|
|
1128
|
+
proto.lansweeper.shared.limits.v1.SiteLimits.prototype.setAssets = function(value) {
|
|
1129
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
1130
|
+
};
|
|
1131
|
+
|
|
1132
|
+
|
|
1133
|
+
/**
|
|
1134
|
+
* Clears the message field making it undefined.
|
|
1135
|
+
* @return {!proto.lansweeper.shared.limits.v1.SiteLimits} returns this
|
|
1136
|
+
*/
|
|
1137
|
+
proto.lansweeper.shared.limits.v1.SiteLimits.prototype.clearAssets = function() {
|
|
1138
|
+
return this.setAssets(undefined);
|
|
1139
|
+
};
|
|
1140
|
+
|
|
1141
|
+
|
|
1142
|
+
/**
|
|
1143
|
+
* Returns whether this field is set.
|
|
1144
|
+
* @return {boolean}
|
|
1145
|
+
*/
|
|
1146
|
+
proto.lansweeper.shared.limits.v1.SiteLimits.prototype.hasAssets = function() {
|
|
1147
|
+
return jspb.Message.getField(this, 4) != null;
|
|
1148
|
+
};
|
|
1149
|
+
|
|
1150
|
+
|
|
495
1151
|
/**
|
|
496
1152
|
* @enum {number}
|
|
497
1153
|
*/
|