@lansweeper/discovery-sensor-proto 2.17.0 → 2.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/gen-proto/discovery_sections_ot_pb.d.ts +33 -53
- package/gen-proto/discovery_sections_ot_pb.js +184 -158
- package/gen-proto/discovery_sections_windows_pb.d.ts +46 -120
- package/gen-proto/discovery_sections_windows_pb.js +233 -817
- package/gen-proto/image.json +1 -1
- package/package.json +2 -2
- package/proto/discovery_sections_ot.proto +9 -39
- package/proto/discovery_sections_windows.proto +8 -27
|
@@ -19,10 +19,8 @@ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/time
|
|
|
19
19
|
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
20
20
|
var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
|
|
21
21
|
goog.object.extend(proto, google_protobuf_wrappers_pb);
|
|
22
|
-
goog.exportSymbol('proto.com.lansweeper.discovery.sensor.ot.v1.ComponentType', null, global);
|
|
23
22
|
goog.exportSymbol('proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData', null, global);
|
|
24
23
|
goog.exportSymbol('proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation', null, global);
|
|
25
|
-
goog.exportSymbol('proto.com.lansweeper.discovery.sensor.ot.v1.NetworkProtocol', null, global);
|
|
26
24
|
goog.exportSymbol('proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo', null, global);
|
|
27
25
|
goog.exportSymbol('proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData', null, global);
|
|
28
26
|
goog.exportSymbol('proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig', null, global);
|
|
@@ -194,16 +192,17 @@ proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.toObject = function(incl
|
|
|
194
192
|
var f, obj = {
|
|
195
193
|
isNetworkNode: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
196
194
|
routePath: (f = msg.getRoutePath()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
|
|
197
|
-
rackIndex:
|
|
195
|
+
rackIndex: (f = msg.getRackIndex()) && google_protobuf_wrappers_pb.UInt32Value.toObject(includeInstance, f),
|
|
198
196
|
scannedByList: jspb.Message.toObjectList(msg.getScannedByList(),
|
|
199
197
|
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.toObject, includeInstance),
|
|
200
|
-
componentType: jspb.Message.getFieldWithDefault(msg, 5,
|
|
198
|
+
componentType: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
201
199
|
firmware: (f = msg.getFirmware()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
|
|
202
200
|
partNumber: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
203
201
|
slot: (f = msg.getSlot()) && google_protobuf_wrappers_pb.UInt32Value.toObject(includeInstance, f),
|
|
204
202
|
slotWidth: (f = msg.getSlotWidth()) && google_protobuf_wrappers_pb.UInt32Value.toObject(includeInstance, f),
|
|
205
203
|
extendedInformationList: jspb.Message.toObjectList(msg.getExtendedInformationList(),
|
|
206
|
-
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.toObject, includeInstance)
|
|
204
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.toObject, includeInstance),
|
|
205
|
+
scanId: jspb.Message.getFieldWithDefault(msg, 11, "")
|
|
207
206
|
};
|
|
208
207
|
|
|
209
208
|
if (includeInstance) {
|
|
@@ -250,7 +249,8 @@ proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.deserializeBinaryFromRea
|
|
|
250
249
|
msg.setRoutePath(value);
|
|
251
250
|
break;
|
|
252
251
|
case 3:
|
|
253
|
-
var value =
|
|
252
|
+
var value = new google_protobuf_wrappers_pb.UInt32Value;
|
|
253
|
+
reader.readMessage(value,google_protobuf_wrappers_pb.UInt32Value.deserializeBinaryFromReader);
|
|
254
254
|
msg.setRackIndex(value);
|
|
255
255
|
break;
|
|
256
256
|
case 4:
|
|
@@ -259,7 +259,7 @@ proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.deserializeBinaryFromRea
|
|
|
259
259
|
msg.addScannedBy(value);
|
|
260
260
|
break;
|
|
261
261
|
case 5:
|
|
262
|
-
var value = /** @type {
|
|
262
|
+
var value = /** @type {string} */ (reader.readString());
|
|
263
263
|
msg.setComponentType(value);
|
|
264
264
|
break;
|
|
265
265
|
case 6:
|
|
@@ -286,6 +286,10 @@ proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.deserializeBinaryFromRea
|
|
|
286
286
|
reader.readMessage(value,proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.deserializeBinaryFromReader);
|
|
287
287
|
msg.addExtendedInformation(value);
|
|
288
288
|
break;
|
|
289
|
+
case 11:
|
|
290
|
+
var value = /** @type {string} */ (reader.readString());
|
|
291
|
+
msg.setScanId(value);
|
|
292
|
+
break;
|
|
289
293
|
default:
|
|
290
294
|
reader.skipField();
|
|
291
295
|
break;
|
|
@@ -331,10 +335,11 @@ proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.serializeBinaryToWriter
|
|
|
331
335
|
);
|
|
332
336
|
}
|
|
333
337
|
f = message.getRackIndex();
|
|
334
|
-
if (f
|
|
335
|
-
writer.
|
|
338
|
+
if (f != null) {
|
|
339
|
+
writer.writeMessage(
|
|
336
340
|
3,
|
|
337
|
-
f
|
|
341
|
+
f,
|
|
342
|
+
google_protobuf_wrappers_pb.UInt32Value.serializeBinaryToWriter
|
|
338
343
|
);
|
|
339
344
|
}
|
|
340
345
|
f = message.getScannedByList();
|
|
@@ -346,8 +351,8 @@ proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.serializeBinaryToWriter
|
|
|
346
351
|
);
|
|
347
352
|
}
|
|
348
353
|
f = message.getComponentType();
|
|
349
|
-
if (f
|
|
350
|
-
writer.
|
|
354
|
+
if (f.length > 0) {
|
|
355
|
+
writer.writeString(
|
|
351
356
|
5,
|
|
352
357
|
f
|
|
353
358
|
);
|
|
@@ -391,6 +396,13 @@ proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.serializeBinaryToWriter
|
|
|
391
396
|
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.serializeBinaryToWriter
|
|
392
397
|
);
|
|
393
398
|
}
|
|
399
|
+
f = message.getScanId();
|
|
400
|
+
if (f.length > 0) {
|
|
401
|
+
writer.writeString(
|
|
402
|
+
11,
|
|
403
|
+
f
|
|
404
|
+
);
|
|
405
|
+
}
|
|
394
406
|
};
|
|
395
407
|
|
|
396
408
|
|
|
@@ -450,20 +462,39 @@ proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.hasRoutePath =
|
|
|
450
462
|
|
|
451
463
|
|
|
452
464
|
/**
|
|
453
|
-
* optional
|
|
454
|
-
* @return {
|
|
465
|
+
* optional google.protobuf.UInt32Value rack_index = 3;
|
|
466
|
+
* @return {?proto.google.protobuf.UInt32Value}
|
|
455
467
|
*/
|
|
456
468
|
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.getRackIndex = function() {
|
|
457
|
-
return /** @type
|
|
469
|
+
return /** @type{?proto.google.protobuf.UInt32Value} */ (
|
|
470
|
+
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt32Value, 3));
|
|
458
471
|
};
|
|
459
472
|
|
|
460
473
|
|
|
461
474
|
/**
|
|
462
|
-
* @param {
|
|
475
|
+
* @param {?proto.google.protobuf.UInt32Value|undefined} value
|
|
463
476
|
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo} returns this
|
|
464
|
-
|
|
477
|
+
*/
|
|
465
478
|
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.setRackIndex = function(value) {
|
|
466
|
-
return jspb.Message.
|
|
479
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
480
|
+
};
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Clears the message field making it undefined.
|
|
485
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo} returns this
|
|
486
|
+
*/
|
|
487
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.clearRackIndex = function() {
|
|
488
|
+
return this.setRackIndex(undefined);
|
|
489
|
+
};
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* Returns whether this field is set.
|
|
494
|
+
* @return {boolean}
|
|
495
|
+
*/
|
|
496
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.hasRackIndex = function() {
|
|
497
|
+
return jspb.Message.getField(this, 3) != null;
|
|
467
498
|
};
|
|
468
499
|
|
|
469
500
|
|
|
@@ -506,20 +537,20 @@ proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.clearScannedBy
|
|
|
506
537
|
|
|
507
538
|
|
|
508
539
|
/**
|
|
509
|
-
* optional
|
|
510
|
-
* @return {
|
|
540
|
+
* optional string component_type = 5;
|
|
541
|
+
* @return {string}
|
|
511
542
|
*/
|
|
512
543
|
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.getComponentType = function() {
|
|
513
|
-
return /** @type {
|
|
544
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
514
545
|
};
|
|
515
546
|
|
|
516
547
|
|
|
517
548
|
/**
|
|
518
|
-
* @param {
|
|
549
|
+
* @param {string} value
|
|
519
550
|
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo} returns this
|
|
520
551
|
*/
|
|
521
552
|
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.setComponentType = function(value) {
|
|
522
|
-
return jspb.Message.
|
|
553
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
523
554
|
};
|
|
524
555
|
|
|
525
556
|
|
|
@@ -690,6 +721,24 @@ proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.clearExtendedI
|
|
|
690
721
|
};
|
|
691
722
|
|
|
692
723
|
|
|
724
|
+
/**
|
|
725
|
+
* optional string scan_id = 11;
|
|
726
|
+
* @return {string}
|
|
727
|
+
*/
|
|
728
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.getScanId = function() {
|
|
729
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
|
730
|
+
};
|
|
731
|
+
|
|
732
|
+
|
|
733
|
+
/**
|
|
734
|
+
* @param {string} value
|
|
735
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo} returns this
|
|
736
|
+
*/
|
|
737
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.setScanId = function(value) {
|
|
738
|
+
return jspb.Message.setProto3StringField(this, 11, value);
|
|
739
|
+
};
|
|
740
|
+
|
|
741
|
+
|
|
693
742
|
|
|
694
743
|
|
|
695
744
|
|
|
@@ -728,8 +777,8 @@ proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.toObject = function
|
|
|
728
777
|
sensorName: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
729
778
|
protocolId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
730
779
|
protocolName: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
731
|
-
port:
|
|
732
|
-
networkProtocol: jspb.Message.getFieldWithDefault(msg, 8,
|
|
780
|
+
port: (f = msg.getPort()) && google_protobuf_wrappers_pb.UInt32Value.toObject(includeInstance, f),
|
|
781
|
+
networkProtocol: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
733
782
|
lastTried: (f = msg.getLastTried()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
734
783
|
lastScan: (f = msg.getLastScan()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
735
784
|
};
|
|
@@ -793,11 +842,12 @@ proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.deserializeBinaryFr
|
|
|
793
842
|
msg.setProtocolName(value);
|
|
794
843
|
break;
|
|
795
844
|
case 7:
|
|
796
|
-
var value =
|
|
845
|
+
var value = new google_protobuf_wrappers_pb.UInt32Value;
|
|
846
|
+
reader.readMessage(value,google_protobuf_wrappers_pb.UInt32Value.deserializeBinaryFromReader);
|
|
797
847
|
msg.setPort(value);
|
|
798
848
|
break;
|
|
799
849
|
case 8:
|
|
800
|
-
var value = /** @type {
|
|
850
|
+
var value = /** @type {string} */ (reader.readString());
|
|
801
851
|
msg.setNetworkProtocol(value);
|
|
802
852
|
break;
|
|
803
853
|
case 9:
|
|
@@ -882,15 +932,16 @@ proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.serializeBinaryToWr
|
|
|
882
932
|
);
|
|
883
933
|
}
|
|
884
934
|
f = message.getPort();
|
|
885
|
-
if (f
|
|
886
|
-
writer.
|
|
935
|
+
if (f != null) {
|
|
936
|
+
writer.writeMessage(
|
|
887
937
|
7,
|
|
888
|
-
f
|
|
938
|
+
f,
|
|
939
|
+
google_protobuf_wrappers_pb.UInt32Value.serializeBinaryToWriter
|
|
889
940
|
);
|
|
890
941
|
}
|
|
891
942
|
f = message.getNetworkProtocol();
|
|
892
|
-
if (f
|
|
893
|
-
writer.
|
|
943
|
+
if (f.length > 0) {
|
|
944
|
+
writer.writeString(
|
|
894
945
|
8,
|
|
895
946
|
f
|
|
896
947
|
);
|
|
@@ -1023,38 +1074,57 @@ proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.prototype.setProtoc
|
|
|
1023
1074
|
|
|
1024
1075
|
|
|
1025
1076
|
/**
|
|
1026
|
-
* optional
|
|
1027
|
-
* @return {
|
|
1077
|
+
* optional google.protobuf.UInt32Value port = 7;
|
|
1078
|
+
* @return {?proto.google.protobuf.UInt32Value}
|
|
1028
1079
|
*/
|
|
1029
1080
|
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.prototype.getPort = function() {
|
|
1030
|
-
return /** @type
|
|
1081
|
+
return /** @type{?proto.google.protobuf.UInt32Value} */ (
|
|
1082
|
+
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt32Value, 7));
|
|
1031
1083
|
};
|
|
1032
1084
|
|
|
1033
1085
|
|
|
1034
1086
|
/**
|
|
1035
|
-
* @param {
|
|
1087
|
+
* @param {?proto.google.protobuf.UInt32Value|undefined} value
|
|
1036
1088
|
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData} returns this
|
|
1037
|
-
|
|
1089
|
+
*/
|
|
1038
1090
|
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.prototype.setPort = function(value) {
|
|
1039
|
-
return jspb.Message.
|
|
1091
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
1092
|
+
};
|
|
1093
|
+
|
|
1094
|
+
|
|
1095
|
+
/**
|
|
1096
|
+
* Clears the message field making it undefined.
|
|
1097
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData} returns this
|
|
1098
|
+
*/
|
|
1099
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.prototype.clearPort = function() {
|
|
1100
|
+
return this.setPort(undefined);
|
|
1101
|
+
};
|
|
1102
|
+
|
|
1103
|
+
|
|
1104
|
+
/**
|
|
1105
|
+
* Returns whether this field is set.
|
|
1106
|
+
* @return {boolean}
|
|
1107
|
+
*/
|
|
1108
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.prototype.hasPort = function() {
|
|
1109
|
+
return jspb.Message.getField(this, 7) != null;
|
|
1040
1110
|
};
|
|
1041
1111
|
|
|
1042
1112
|
|
|
1043
1113
|
/**
|
|
1044
|
-
* optional
|
|
1045
|
-
* @return {
|
|
1114
|
+
* optional string network_protocol = 8;
|
|
1115
|
+
* @return {string}
|
|
1046
1116
|
*/
|
|
1047
1117
|
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.prototype.getNetworkProtocol = function() {
|
|
1048
|
-
return /** @type {
|
|
1118
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
1049
1119
|
};
|
|
1050
1120
|
|
|
1051
1121
|
|
|
1052
1122
|
/**
|
|
1053
|
-
* @param {
|
|
1123
|
+
* @param {string} value
|
|
1054
1124
|
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData} returns this
|
|
1055
1125
|
*/
|
|
1056
1126
|
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.prototype.setNetworkProtocol = function(value) {
|
|
1057
|
-
return jspb.Message.
|
|
1127
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
1058
1128
|
};
|
|
1059
1129
|
|
|
1060
1130
|
|
|
@@ -1623,8 +1693,9 @@ proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.toObject = func
|
|
|
1623
1693
|
*/
|
|
1624
1694
|
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.toObject = function(includeInstance, msg) {
|
|
1625
1695
|
var f, obj = {
|
|
1626
|
-
componentType: jspb.Message.getFieldWithDefault(msg, 1,
|
|
1696
|
+
componentType: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1627
1697
|
name: (f = msg.getName()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
|
|
1698
|
+
mac: (f = msg.getMac()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
|
|
1628
1699
|
manufacturer: (f = msg.getManufacturer()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
|
|
1629
1700
|
serialNumber: (f = msg.getSerialNumber()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
|
|
1630
1701
|
model: (f = msg.getModel()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
|
|
@@ -1671,7 +1742,7 @@ proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.deserializeBinaryFromRead
|
|
|
1671
1742
|
var field = reader.getFieldNumber();
|
|
1672
1743
|
switch (field) {
|
|
1673
1744
|
case 1:
|
|
1674
|
-
var value = /** @type {
|
|
1745
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1675
1746
|
msg.setComponentType(value);
|
|
1676
1747
|
break;
|
|
1677
1748
|
case 2:
|
|
@@ -1679,6 +1750,11 @@ proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.deserializeBinaryFromRead
|
|
|
1679
1750
|
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
|
|
1680
1751
|
msg.setName(value);
|
|
1681
1752
|
break;
|
|
1753
|
+
case 3:
|
|
1754
|
+
var value = new google_protobuf_wrappers_pb.StringValue;
|
|
1755
|
+
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
|
|
1756
|
+
msg.setMac(value);
|
|
1757
|
+
break;
|
|
1682
1758
|
case 4:
|
|
1683
1759
|
var value = new google_protobuf_wrappers_pb.StringValue;
|
|
1684
1760
|
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
|
|
@@ -1748,8 +1824,8 @@ proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.serializeBinary
|
|
|
1748
1824
|
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.serializeBinaryToWriter = function(message, writer) {
|
|
1749
1825
|
var f = undefined;
|
|
1750
1826
|
f = message.getComponentType();
|
|
1751
|
-
if (f
|
|
1752
|
-
writer.
|
|
1827
|
+
if (f.length > 0) {
|
|
1828
|
+
writer.writeString(
|
|
1753
1829
|
1,
|
|
1754
1830
|
f
|
|
1755
1831
|
);
|
|
@@ -1762,6 +1838,14 @@ proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.serializeBinaryToWriter =
|
|
|
1762
1838
|
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
|
|
1763
1839
|
);
|
|
1764
1840
|
}
|
|
1841
|
+
f = message.getMac();
|
|
1842
|
+
if (f != null) {
|
|
1843
|
+
writer.writeMessage(
|
|
1844
|
+
3,
|
|
1845
|
+
f,
|
|
1846
|
+
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
|
|
1847
|
+
);
|
|
1848
|
+
}
|
|
1765
1849
|
f = message.getManufacturer();
|
|
1766
1850
|
if (f != null) {
|
|
1767
1851
|
writer.writeMessage(
|
|
@@ -1829,20 +1913,20 @@ proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.serializeBinaryToWriter =
|
|
|
1829
1913
|
|
|
1830
1914
|
|
|
1831
1915
|
/**
|
|
1832
|
-
* optional
|
|
1833
|
-
* @return {
|
|
1916
|
+
* optional string component_type = 1;
|
|
1917
|
+
* @return {string}
|
|
1834
1918
|
*/
|
|
1835
1919
|
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.getComponentType = function() {
|
|
1836
|
-
return /** @type {
|
|
1920
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1837
1921
|
};
|
|
1838
1922
|
|
|
1839
1923
|
|
|
1840
1924
|
/**
|
|
1841
|
-
* @param {
|
|
1925
|
+
* @param {string} value
|
|
1842
1926
|
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData} returns this
|
|
1843
1927
|
*/
|
|
1844
1928
|
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.setComponentType = function(value) {
|
|
1845
|
-
return jspb.Message.
|
|
1929
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1846
1930
|
};
|
|
1847
1931
|
|
|
1848
1932
|
|
|
@@ -1883,6 +1967,43 @@ proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.hasName = funct
|
|
|
1883
1967
|
};
|
|
1884
1968
|
|
|
1885
1969
|
|
|
1970
|
+
/**
|
|
1971
|
+
* optional google.protobuf.StringValue mac = 3;
|
|
1972
|
+
* @return {?proto.google.protobuf.StringValue}
|
|
1973
|
+
*/
|
|
1974
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.getMac = function() {
|
|
1975
|
+
return /** @type{?proto.google.protobuf.StringValue} */ (
|
|
1976
|
+
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 3));
|
|
1977
|
+
};
|
|
1978
|
+
|
|
1979
|
+
|
|
1980
|
+
/**
|
|
1981
|
+
* @param {?proto.google.protobuf.StringValue|undefined} value
|
|
1982
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData} returns this
|
|
1983
|
+
*/
|
|
1984
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.setMac = function(value) {
|
|
1985
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
1986
|
+
};
|
|
1987
|
+
|
|
1988
|
+
|
|
1989
|
+
/**
|
|
1990
|
+
* Clears the message field making it undefined.
|
|
1991
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData} returns this
|
|
1992
|
+
*/
|
|
1993
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.clearMac = function() {
|
|
1994
|
+
return this.setMac(undefined);
|
|
1995
|
+
};
|
|
1996
|
+
|
|
1997
|
+
|
|
1998
|
+
/**
|
|
1999
|
+
* Returns whether this field is set.
|
|
2000
|
+
* @return {boolean}
|
|
2001
|
+
*/
|
|
2002
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.hasMac = function() {
|
|
2003
|
+
return jspb.Message.getField(this, 3) != null;
|
|
2004
|
+
};
|
|
2005
|
+
|
|
2006
|
+
|
|
1886
2007
|
/**
|
|
1887
2008
|
* optional google.protobuf.StringValue manufacturer = 4;
|
|
1888
2009
|
* @return {?proto.google.protobuf.StringValue}
|
|
@@ -2193,10 +2314,8 @@ proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.prototype.
|
|
|
2193
2314
|
*/
|
|
2194
2315
|
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.toObject = function(includeInstance, msg) {
|
|
2195
2316
|
var f, obj = {
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
name: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
2199
|
-
value: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
2317
|
+
key: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2318
|
+
value: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
2200
2319
|
};
|
|
2201
2320
|
|
|
2202
2321
|
if (includeInstance) {
|
|
@@ -2235,17 +2354,9 @@ proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.deserializ
|
|
|
2235
2354
|
switch (field) {
|
|
2236
2355
|
case 1:
|
|
2237
2356
|
var value = /** @type {string} */ (reader.readString());
|
|
2238
|
-
msg.
|
|
2357
|
+
msg.setKey(value);
|
|
2239
2358
|
break;
|
|
2240
2359
|
case 2:
|
|
2241
|
-
var value = /** @type {string} */ (reader.readString());
|
|
2242
|
-
msg.setRootId(value);
|
|
2243
|
-
break;
|
|
2244
|
-
case 3:
|
|
2245
|
-
var value = /** @type {string} */ (reader.readString());
|
|
2246
|
-
msg.setName(value);
|
|
2247
|
-
break;
|
|
2248
|
-
case 4:
|
|
2249
2360
|
var value = /** @type {string} */ (reader.readString());
|
|
2250
2361
|
msg.setValue(value);
|
|
2251
2362
|
break;
|
|
@@ -2278,31 +2389,17 @@ proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.prototype.
|
|
|
2278
2389
|
*/
|
|
2279
2390
|
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.serializeBinaryToWriter = function(message, writer) {
|
|
2280
2391
|
var f = undefined;
|
|
2281
|
-
f = message.
|
|
2392
|
+
f = message.getKey();
|
|
2282
2393
|
if (f.length > 0) {
|
|
2283
2394
|
writer.writeString(
|
|
2284
2395
|
1,
|
|
2285
2396
|
f
|
|
2286
2397
|
);
|
|
2287
2398
|
}
|
|
2288
|
-
f = message.getRootId();
|
|
2289
|
-
if (f.length > 0) {
|
|
2290
|
-
writer.writeString(
|
|
2291
|
-
2,
|
|
2292
|
-
f
|
|
2293
|
-
);
|
|
2294
|
-
}
|
|
2295
|
-
f = message.getName();
|
|
2296
|
-
if (f.length > 0) {
|
|
2297
|
-
writer.writeString(
|
|
2298
|
-
3,
|
|
2299
|
-
f
|
|
2300
|
-
);
|
|
2301
|
-
}
|
|
2302
2399
|
f = message.getValue();
|
|
2303
2400
|
if (f.length > 0) {
|
|
2304
2401
|
writer.writeString(
|
|
2305
|
-
|
|
2402
|
+
2,
|
|
2306
2403
|
f
|
|
2307
2404
|
);
|
|
2308
2405
|
}
|
|
@@ -2310,10 +2407,10 @@ proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.serializeB
|
|
|
2310
2407
|
|
|
2311
2408
|
|
|
2312
2409
|
/**
|
|
2313
|
-
* optional string
|
|
2410
|
+
* optional string key = 1;
|
|
2314
2411
|
* @return {string}
|
|
2315
2412
|
*/
|
|
2316
|
-
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.prototype.
|
|
2413
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.prototype.getKey = function() {
|
|
2317
2414
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2318
2415
|
};
|
|
2319
2416
|
|
|
@@ -2322,53 +2419,17 @@ proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.prototype.
|
|
|
2322
2419
|
* @param {string} value
|
|
2323
2420
|
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation} returns this
|
|
2324
2421
|
*/
|
|
2325
|
-
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.prototype.
|
|
2422
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.prototype.setKey = function(value) {
|
|
2326
2423
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2327
2424
|
};
|
|
2328
2425
|
|
|
2329
2426
|
|
|
2330
2427
|
/**
|
|
2331
|
-
* optional string
|
|
2332
|
-
* @return {string}
|
|
2333
|
-
*/
|
|
2334
|
-
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.prototype.getRootId = function() {
|
|
2335
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2336
|
-
};
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
/**
|
|
2340
|
-
* @param {string} value
|
|
2341
|
-
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation} returns this
|
|
2342
|
-
*/
|
|
2343
|
-
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.prototype.setRootId = function(value) {
|
|
2344
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
2345
|
-
};
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
/**
|
|
2349
|
-
* optional string name = 3;
|
|
2350
|
-
* @return {string}
|
|
2351
|
-
*/
|
|
2352
|
-
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.prototype.getName = function() {
|
|
2353
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
2354
|
-
};
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
/**
|
|
2358
|
-
* @param {string} value
|
|
2359
|
-
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation} returns this
|
|
2360
|
-
*/
|
|
2361
|
-
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.prototype.setName = function(value) {
|
|
2362
|
-
return jspb.Message.setProto3StringField(this, 3, value);
|
|
2363
|
-
};
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
/**
|
|
2367
|
-
* optional string value = 4;
|
|
2428
|
+
* optional string value = 2;
|
|
2368
2429
|
* @return {string}
|
|
2369
2430
|
*/
|
|
2370
2431
|
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.prototype.getValue = function() {
|
|
2371
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
2432
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2372
2433
|
};
|
|
2373
2434
|
|
|
2374
2435
|
|
|
@@ -2377,43 +2438,8 @@ proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.prototype.
|
|
|
2377
2438
|
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation} returns this
|
|
2378
2439
|
*/
|
|
2379
2440
|
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.prototype.setValue = function(value) {
|
|
2380
|
-
return jspb.Message.setProto3StringField(this,
|
|
2381
|
-
};
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
/**
|
|
2385
|
-
* @enum {number}
|
|
2386
|
-
*/
|
|
2387
|
-
proto.com.lansweeper.discovery.sensor.ot.v1.ComponentType = {
|
|
2388
|
-
UNKNOWN: 0,
|
|
2389
|
-
CONTROLLER: 1,
|
|
2390
|
-
POWER_SUPPLY: 2,
|
|
2391
|
-
COMMUNICATIONS: 3,
|
|
2392
|
-
INPUT_MODULE: 4,
|
|
2393
|
-
OUTPUT_MODULE: 5,
|
|
2394
|
-
PROGRAM: 6,
|
|
2395
|
-
MODULE_COUPLER: 7,
|
|
2396
|
-
SOFTWARE: 8,
|
|
2397
|
-
DRIVE: 9,
|
|
2398
|
-
INDUSTRIAL_SWITCH: 10,
|
|
2399
|
-
IO_MODULE: 11,
|
|
2400
|
-
REMOTE_IO_MODULE: 12,
|
|
2401
|
-
HUMAN_MACHINE_INTERFACE: 13,
|
|
2402
|
-
ANALOG_IO_MODULE: 14,
|
|
2403
|
-
GENERIC: 15,
|
|
2404
|
-
LOOP_CONTROLLER: 16,
|
|
2405
|
-
MOTION_CONTROLLER: 17,
|
|
2406
|
-
POSITION_CONTROLLER: 18,
|
|
2407
|
-
SENSOR: 19
|
|
2441
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
2408
2442
|
};
|
|
2409
2443
|
|
|
2410
|
-
/**
|
|
2411
|
-
* @enum {number}
|
|
2412
|
-
*/
|
|
2413
|
-
proto.com.lansweeper.discovery.sensor.ot.v1.NetworkProtocol = {
|
|
2414
|
-
NONE: 0,
|
|
2415
|
-
TCP: 1,
|
|
2416
|
-
UDP: 2
|
|
2417
|
-
};
|
|
2418
2444
|
|
|
2419
2445
|
goog.object.extend(exports, proto.com.lansweeper.discovery.sensor.ot.v1);
|