@lansweeper/discovery-sensor-proto 2.21.0 → 2.22.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.
@@ -173,6 +173,11 @@ export class RackConfig extends jspb.Message {
173
173
  setModulesList(value: Array<ModuleData>): RackConfig;
174
174
  addModules(value?: ModuleData, index?: number): ModuleData;
175
175
 
176
+ hasType(): boolean;
177
+ clearType(): void;
178
+ getType(): google_protobuf_wrappers_pb.StringValue | undefined;
179
+ setType(value?: google_protobuf_wrappers_pb.StringValue): RackConfig;
180
+
176
181
  serializeBinary(): Uint8Array;
177
182
  toObject(includeInstance?: boolean): RackConfig.AsObject;
178
183
  static toObject(includeInstance: boolean, msg: RackConfig): RackConfig.AsObject;
@@ -189,6 +194,7 @@ export namespace RackConfig {
189
194
  rackName?: google_protobuf_wrappers_pb.StringValue.AsObject,
190
195
  rackSize: number,
191
196
  modulesList: Array<ModuleData.AsObject>,
197
+ type?: google_protobuf_wrappers_pb.StringValue.AsObject,
192
198
  }
193
199
  }
194
200
 
@@ -241,6 +247,10 @@ export class ModuleData extends jspb.Message {
241
247
  getExtendedInformationList(): Array<ModuleExtendedInformation>;
242
248
  setExtendedInformationList(value: Array<ModuleExtendedInformation>): ModuleData;
243
249
  addExtendedInformation(value?: ModuleExtendedInformation, index?: number): ModuleExtendedInformation;
250
+ clearBusConfigList(): void;
251
+ getBusConfigList(): Array<RackConfig>;
252
+ setBusConfigList(value: Array<RackConfig>): ModuleData;
253
+ addBusConfig(value?: RackConfig, index?: number): RackConfig;
244
254
 
245
255
  serializeBinary(): Uint8Array;
246
256
  toObject(includeInstance?: boolean): ModuleData.AsObject;
@@ -265,6 +275,7 @@ export namespace ModuleData {
265
275
  slot?: google_protobuf_wrappers_pb.UInt32Value.AsObject,
266
276
  slotWidth?: google_protobuf_wrappers_pb.UInt32Value.AsObject,
267
277
  extendedInformationList: Array<ModuleExtendedInformation.AsObject>,
278
+ busConfigList: Array<RackConfig.AsObject>,
268
279
  }
269
280
  }
270
281
 
@@ -1405,7 +1405,8 @@ proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.toObject = function(inclu
1405
1405
  rackName: (f = msg.getRackName()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
1406
1406
  rackSize: jspb.Message.getFieldWithDefault(msg, 3, 0),
1407
1407
  modulesList: jspb.Message.toObjectList(msg.getModulesList(),
1408
- proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.toObject, includeInstance)
1408
+ proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.toObject, includeInstance),
1409
+ type: (f = msg.getType()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f)
1409
1410
  };
1410
1411
 
1411
1412
  if (includeInstance) {
@@ -1461,6 +1462,11 @@ proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.deserializeBinaryFromRead
1461
1462
  reader.readMessage(value,proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.deserializeBinaryFromReader);
1462
1463
  msg.addModules(value);
1463
1464
  break;
1465
+ case 5:
1466
+ var value = new google_protobuf_wrappers_pb.StringValue;
1467
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
1468
+ msg.setType(value);
1469
+ break;
1464
1470
  default:
1465
1471
  reader.skipField();
1466
1472
  break;
@@ -1521,6 +1527,14 @@ proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.serializeBinaryToWriter =
1521
1527
  proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.serializeBinaryToWriter
1522
1528
  );
1523
1529
  }
1530
+ f = message.getType();
1531
+ if (f != null) {
1532
+ writer.writeMessage(
1533
+ 5,
1534
+ f,
1535
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
1536
+ );
1537
+ }
1524
1538
  };
1525
1539
 
1526
1540
 
@@ -1654,13 +1668,50 @@ proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.prototype.clearModulesLis
1654
1668
  };
1655
1669
 
1656
1670
 
1671
+ /**
1672
+ * optional google.protobuf.StringValue type = 5;
1673
+ * @return {?proto.google.protobuf.StringValue}
1674
+ */
1675
+ proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.prototype.getType = function() {
1676
+ return /** @type{?proto.google.protobuf.StringValue} */ (
1677
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 5));
1678
+ };
1679
+
1680
+
1681
+ /**
1682
+ * @param {?proto.google.protobuf.StringValue|undefined} value
1683
+ * @return {!proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig} returns this
1684
+ */
1685
+ proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.prototype.setType = function(value) {
1686
+ return jspb.Message.setWrapperField(this, 5, value);
1687
+ };
1688
+
1689
+
1690
+ /**
1691
+ * Clears the message field making it undefined.
1692
+ * @return {!proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig} returns this
1693
+ */
1694
+ proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.prototype.clearType = function() {
1695
+ return this.setType(undefined);
1696
+ };
1697
+
1698
+
1699
+ /**
1700
+ * Returns whether this field is set.
1701
+ * @return {boolean}
1702
+ */
1703
+ proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.prototype.hasType = function() {
1704
+ return jspb.Message.getField(this, 5) != null;
1705
+ };
1706
+
1707
+
1657
1708
 
1658
1709
  /**
1659
1710
  * List of repeated fields within this message type.
1660
1711
  * @private {!Array<number>}
1661
1712
  * @const
1662
1713
  */
1663
- proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.repeatedFields_ = [11];
1714
+ proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.repeatedFields_ = [11,12];
1664
1715
 
1665
1716
 
1666
1717
 
@@ -1704,7 +1755,9 @@ proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.toObject = function(inclu
1704
1755
  slot: (f = msg.getSlot()) && google_protobuf_wrappers_pb.UInt32Value.toObject(includeInstance, f),
1705
1756
  slotWidth: (f = msg.getSlotWidth()) && google_protobuf_wrappers_pb.UInt32Value.toObject(includeInstance, f),
1706
1757
  extendedInformationList: jspb.Message.toObjectList(msg.getExtendedInformationList(),
1707
- proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.toObject, includeInstance)
1758
+ proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.toObject, includeInstance),
1759
+ busConfigList: jspb.Message.toObjectList(msg.getBusConfigList(),
1760
+ proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.toObject, includeInstance)
1708
1761
  };
1709
1762
 
1710
1763
  if (includeInstance) {
@@ -1794,6 +1847,11 @@ proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.deserializeBinaryFromRead
1794
1847
  reader.readMessage(value,proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.deserializeBinaryFromReader);
1795
1848
  msg.addExtendedInformation(value);
1796
1849
  break;
1850
+ case 12:
1851
+ var value = new proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig;
1852
+ reader.readMessage(value,proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.deserializeBinaryFromReader);
1853
+ msg.addBusConfig(value);
1854
+ break;
1797
1855
  default:
1798
1856
  reader.skipField();
1799
1857
  break;
@@ -1909,6 +1967,14 @@ proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.serializeBinaryToWriter =
1909
1967
  proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.serializeBinaryToWriter
1910
1968
  );
1911
1969
  }
1970
+ f = message.getBusConfigList();
1971
+ if (f.length > 0) {
1972
+ writer.writeRepeatedMessage(
1973
+ 12,
1974
+ f,
1975
+ proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.serializeBinaryToWriter
1976
+ );
1977
+ }
1912
1978
  };
1913
1979
 
1914
1980
 
@@ -2282,6 +2348,44 @@ proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.clearExtendedIn
2282
2348
  };
2283
2349
 
2284
2350
 
2351
+ /**
2352
+ * repeated RackConfig bus_config = 12;
2353
+ * @return {!Array<!proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig>}
2354
+ */
2355
+ proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.getBusConfigList = function() {
2356
+ return /** @type{!Array<!proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig>} */ (
2357
+ jspb.Message.getRepeatedWrapperField(this, proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig, 12));
2358
+ };
2359
+
2360
+
2361
+ /**
2362
+ * @param {!Array<!proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig>} value
2363
+ * @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData} returns this
2364
+ */
2365
+ proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.setBusConfigList = function(value) {
2366
+ return jspb.Message.setRepeatedWrapperField(this, 12, value);
2367
+ };
2368
+
2369
+
2370
+ /**
2371
+ * @param {!proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig=} opt_value
2372
+ * @param {number=} opt_index
2373
+ * @return {!proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig}
2374
+ */
2375
+ proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.addBusConfig = function(opt_value, opt_index) {
2376
+ return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig, opt_index);
2377
+ };
2378
+
2379
+
2380
+ /**
2381
+ * Clears the list making it empty but non-null.
2382
+ * @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData} returns this
2383
+ */
2384
+ proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.clearBusConfigList = function() {
2385
+ return this.setBusConfigList([]);
2386
+ };
2387
+
2388
+
2285
2389
 
2286
2390
 
2287
2391