@lansweeper/discovery-sensor-proto 2.34.1 → 2.35.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.
|
@@ -50,6 +50,10 @@ export class OtBasicInfo extends jspb.Message {
|
|
|
50
50
|
addExtendedInformation(value?: ModuleExtendedInformation, index?: number): ModuleExtendedInformation;
|
|
51
51
|
getScanId(): string;
|
|
52
52
|
setScanId(value: string): OtBasicInfo;
|
|
53
|
+
clearFirmwareHistoryList(): void;
|
|
54
|
+
getFirmwareHistoryList(): Array<FirmwareHistory>;
|
|
55
|
+
setFirmwareHistoryList(value: Array<FirmwareHistory>): OtBasicInfo;
|
|
56
|
+
addFirmwareHistory(value?: FirmwareHistory, index?: number): FirmwareHistory;
|
|
53
57
|
|
|
54
58
|
serializeBinary(): Uint8Array;
|
|
55
59
|
toObject(includeInstance?: boolean): OtBasicInfo.AsObject;
|
|
@@ -74,6 +78,7 @@ export namespace OtBasicInfo {
|
|
|
74
78
|
slotWidth?: google_protobuf_wrappers_pb.UInt32Value.AsObject,
|
|
75
79
|
extendedInformationList: Array<ModuleExtendedInformation.AsObject>,
|
|
76
80
|
scanId: string,
|
|
81
|
+
firmwareHistoryList: Array<FirmwareHistory.AsObject>,
|
|
77
82
|
}
|
|
78
83
|
}
|
|
79
84
|
|
|
@@ -254,6 +259,10 @@ export class ModuleData extends jspb.Message {
|
|
|
254
259
|
getBusConfigList(): Array<BusConfig>;
|
|
255
260
|
setBusConfigList(value: Array<BusConfig>): ModuleData;
|
|
256
261
|
addBusConfig(value?: BusConfig, index?: number): BusConfig;
|
|
262
|
+
clearFirmwareHistoryList(): void;
|
|
263
|
+
getFirmwareHistoryList(): Array<FirmwareHistory>;
|
|
264
|
+
setFirmwareHistoryList(value: Array<FirmwareHistory>): ModuleData;
|
|
265
|
+
addFirmwareHistory(value?: FirmwareHistory, index?: number): FirmwareHistory;
|
|
257
266
|
|
|
258
267
|
serializeBinary(): Uint8Array;
|
|
259
268
|
toObject(includeInstance?: boolean): ModuleData.AsObject;
|
|
@@ -279,6 +288,7 @@ export namespace ModuleData {
|
|
|
279
288
|
width?: google_protobuf_wrappers_pb.UInt32Value.AsObject,
|
|
280
289
|
extendedInformationList: Array<ModuleExtendedInformation.AsObject>,
|
|
281
290
|
busConfigList: Array<BusConfig.AsObject>,
|
|
291
|
+
firmwareHistoryList: Array<FirmwareHistory.AsObject>,
|
|
282
292
|
}
|
|
283
293
|
}
|
|
284
294
|
|
|
@@ -304,3 +314,35 @@ export namespace ModuleExtendedInformation {
|
|
|
304
314
|
value: string,
|
|
305
315
|
}
|
|
306
316
|
}
|
|
317
|
+
|
|
318
|
+
export class FirmwareHistory extends jspb.Message {
|
|
319
|
+
getFirmware(): string;
|
|
320
|
+
setFirmware(value: string): FirmwareHistory;
|
|
321
|
+
|
|
322
|
+
hasFrom(): boolean;
|
|
323
|
+
clearFrom(): void;
|
|
324
|
+
getFrom(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
325
|
+
setFrom(value?: google_protobuf_timestamp_pb.Timestamp): FirmwareHistory;
|
|
326
|
+
|
|
327
|
+
hasUntil(): boolean;
|
|
328
|
+
clearUntil(): void;
|
|
329
|
+
getUntil(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
330
|
+
setUntil(value?: google_protobuf_timestamp_pb.Timestamp): FirmwareHistory;
|
|
331
|
+
|
|
332
|
+
serializeBinary(): Uint8Array;
|
|
333
|
+
toObject(includeInstance?: boolean): FirmwareHistory.AsObject;
|
|
334
|
+
static toObject(includeInstance: boolean, msg: FirmwareHistory): FirmwareHistory.AsObject;
|
|
335
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
336
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
337
|
+
static serializeBinaryToWriter(message: FirmwareHistory, writer: jspb.BinaryWriter): void;
|
|
338
|
+
static deserializeBinary(bytes: Uint8Array): FirmwareHistory;
|
|
339
|
+
static deserializeBinaryFromReader(message: FirmwareHistory, reader: jspb.BinaryReader): FirmwareHistory;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
export namespace FirmwareHistory {
|
|
343
|
+
export type AsObject = {
|
|
344
|
+
firmware: string,
|
|
345
|
+
from?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
346
|
+
until?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
347
|
+
}
|
|
348
|
+
}
|
|
@@ -27,6 +27,7 @@ var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrapp
|
|
|
27
27
|
goog.object.extend(proto, google_protobuf_wrappers_pb);
|
|
28
28
|
goog.exportSymbol('proto.com.lansweeper.discovery.sensor.ot.v1.BusConfig', null, global);
|
|
29
29
|
goog.exportSymbol('proto.com.lansweeper.discovery.sensor.ot.v1.BusConfigData', null, global);
|
|
30
|
+
goog.exportSymbol('proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory', null, global);
|
|
30
31
|
goog.exportSymbol('proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData', null, global);
|
|
31
32
|
goog.exportSymbol('proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation', null, global);
|
|
32
33
|
goog.exportSymbol('proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo', null, global);
|
|
@@ -157,13 +158,34 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
157
158
|
*/
|
|
158
159
|
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.displayName = 'proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation';
|
|
159
160
|
}
|
|
161
|
+
/**
|
|
162
|
+
* Generated by JsPbCodeGenerator.
|
|
163
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
164
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
165
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
166
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
167
|
+
* valid.
|
|
168
|
+
* @extends {jspb.Message}
|
|
169
|
+
* @constructor
|
|
170
|
+
*/
|
|
171
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory = function(opt_data) {
|
|
172
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
173
|
+
};
|
|
174
|
+
goog.inherits(proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory, jspb.Message);
|
|
175
|
+
if (goog.DEBUG && !COMPILED) {
|
|
176
|
+
/**
|
|
177
|
+
* @public
|
|
178
|
+
* @override
|
|
179
|
+
*/
|
|
180
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory.displayName = 'proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory';
|
|
181
|
+
}
|
|
160
182
|
|
|
161
183
|
/**
|
|
162
184
|
* List of repeated fields within this message type.
|
|
163
185
|
* @private {!Array<number>}
|
|
164
186
|
* @const
|
|
165
187
|
*/
|
|
166
|
-
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.repeatedFields_ = [4,10];
|
|
188
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.repeatedFields_ = [4,10,12];
|
|
167
189
|
|
|
168
190
|
|
|
169
191
|
|
|
@@ -208,7 +230,9 @@ proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.toObject = function(incl
|
|
|
208
230
|
slotWidth: (f = msg.getSlotWidth()) && google_protobuf_wrappers_pb.UInt32Value.toObject(includeInstance, f),
|
|
209
231
|
extendedInformationList: jspb.Message.toObjectList(msg.getExtendedInformationList(),
|
|
210
232
|
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.toObject, includeInstance),
|
|
211
|
-
scanId: jspb.Message.getFieldWithDefault(msg, 11, "")
|
|
233
|
+
scanId: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
234
|
+
firmwareHistoryList: jspb.Message.toObjectList(msg.getFirmwareHistoryList(),
|
|
235
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory.toObject, includeInstance)
|
|
212
236
|
};
|
|
213
237
|
|
|
214
238
|
if (includeInstance) {
|
|
@@ -296,6 +320,11 @@ proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.deserializeBinaryFromRea
|
|
|
296
320
|
var value = /** @type {string} */ (reader.readString());
|
|
297
321
|
msg.setScanId(value);
|
|
298
322
|
break;
|
|
323
|
+
case 12:
|
|
324
|
+
var value = new proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory;
|
|
325
|
+
reader.readMessage(value,proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory.deserializeBinaryFromReader);
|
|
326
|
+
msg.addFirmwareHistory(value);
|
|
327
|
+
break;
|
|
299
328
|
default:
|
|
300
329
|
reader.skipField();
|
|
301
330
|
break;
|
|
@@ -409,6 +438,14 @@ proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.serializeBinaryToWriter
|
|
|
409
438
|
f
|
|
410
439
|
);
|
|
411
440
|
}
|
|
441
|
+
f = message.getFirmwareHistoryList();
|
|
442
|
+
if (f.length > 0) {
|
|
443
|
+
writer.writeRepeatedMessage(
|
|
444
|
+
12,
|
|
445
|
+
f,
|
|
446
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory.serializeBinaryToWriter
|
|
447
|
+
);
|
|
448
|
+
}
|
|
412
449
|
};
|
|
413
450
|
|
|
414
451
|
|
|
@@ -745,6 +782,44 @@ proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.setScanId = fu
|
|
|
745
782
|
};
|
|
746
783
|
|
|
747
784
|
|
|
785
|
+
/**
|
|
786
|
+
* repeated FirmwareHistory firmware_history = 12;
|
|
787
|
+
* @return {!Array<!proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory>}
|
|
788
|
+
*/
|
|
789
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.getFirmwareHistoryList = function() {
|
|
790
|
+
return /** @type{!Array<!proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory>} */ (
|
|
791
|
+
jspb.Message.getRepeatedWrapperField(this, proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory, 12));
|
|
792
|
+
};
|
|
793
|
+
|
|
794
|
+
|
|
795
|
+
/**
|
|
796
|
+
* @param {!Array<!proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory>} value
|
|
797
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo} returns this
|
|
798
|
+
*/
|
|
799
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.setFirmwareHistoryList = function(value) {
|
|
800
|
+
return jspb.Message.setRepeatedWrapperField(this, 12, value);
|
|
801
|
+
};
|
|
802
|
+
|
|
803
|
+
|
|
804
|
+
/**
|
|
805
|
+
* @param {!proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory=} opt_value
|
|
806
|
+
* @param {number=} opt_index
|
|
807
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory}
|
|
808
|
+
*/
|
|
809
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.addFirmwareHistory = function(opt_value, opt_index) {
|
|
810
|
+
return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory, opt_index);
|
|
811
|
+
};
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
/**
|
|
815
|
+
* Clears the list making it empty but non-null.
|
|
816
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo} returns this
|
|
817
|
+
*/
|
|
818
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.clearFirmwareHistoryList = function() {
|
|
819
|
+
return this.setFirmwareHistoryList([]);
|
|
820
|
+
};
|
|
821
|
+
|
|
822
|
+
|
|
748
823
|
|
|
749
824
|
|
|
750
825
|
|
|
@@ -1726,7 +1801,7 @@ proto.com.lansweeper.discovery.sensor.ot.v1.BusConfig.prototype.setModuleStartIn
|
|
|
1726
1801
|
* @private {!Array<number>}
|
|
1727
1802
|
* @const
|
|
1728
1803
|
*/
|
|
1729
|
-
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.repeatedFields_ = [11,12];
|
|
1804
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.repeatedFields_ = [11,12,13];
|
|
1730
1805
|
|
|
1731
1806
|
|
|
1732
1807
|
|
|
@@ -1772,7 +1847,9 @@ proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.toObject = function(inclu
|
|
|
1772
1847
|
extendedInformationList: jspb.Message.toObjectList(msg.getExtendedInformationList(),
|
|
1773
1848
|
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.toObject, includeInstance),
|
|
1774
1849
|
busConfigList: jspb.Message.toObjectList(msg.getBusConfigList(),
|
|
1775
|
-
proto.com.lansweeper.discovery.sensor.ot.v1.BusConfig.toObject, includeInstance)
|
|
1850
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.BusConfig.toObject, includeInstance),
|
|
1851
|
+
firmwareHistoryList: jspb.Message.toObjectList(msg.getFirmwareHistoryList(),
|
|
1852
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory.toObject, includeInstance)
|
|
1776
1853
|
};
|
|
1777
1854
|
|
|
1778
1855
|
if (includeInstance) {
|
|
@@ -1868,6 +1945,11 @@ proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.deserializeBinaryFromRead
|
|
|
1868
1945
|
reader.readMessage(value,proto.com.lansweeper.discovery.sensor.ot.v1.BusConfig.deserializeBinaryFromReader);
|
|
1869
1946
|
msg.addBusConfig(value);
|
|
1870
1947
|
break;
|
|
1948
|
+
case 13:
|
|
1949
|
+
var value = new proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory;
|
|
1950
|
+
reader.readMessage(value,proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory.deserializeBinaryFromReader);
|
|
1951
|
+
msg.addFirmwareHistory(value);
|
|
1952
|
+
break;
|
|
1871
1953
|
default:
|
|
1872
1954
|
reader.skipField();
|
|
1873
1955
|
break;
|
|
@@ -1992,6 +2074,14 @@ proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.serializeBinaryToWriter =
|
|
|
1992
2074
|
proto.com.lansweeper.discovery.sensor.ot.v1.BusConfig.serializeBinaryToWriter
|
|
1993
2075
|
);
|
|
1994
2076
|
}
|
|
2077
|
+
f = message.getFirmwareHistoryList();
|
|
2078
|
+
if (f.length > 0) {
|
|
2079
|
+
writer.writeRepeatedMessage(
|
|
2080
|
+
13,
|
|
2081
|
+
f,
|
|
2082
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory.serializeBinaryToWriter
|
|
2083
|
+
);
|
|
2084
|
+
}
|
|
1995
2085
|
};
|
|
1996
2086
|
|
|
1997
2087
|
|
|
@@ -2422,6 +2512,44 @@ proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.clearBusConfigL
|
|
|
2422
2512
|
};
|
|
2423
2513
|
|
|
2424
2514
|
|
|
2515
|
+
/**
|
|
2516
|
+
* repeated FirmwareHistory firmware_history = 13;
|
|
2517
|
+
* @return {!Array<!proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory>}
|
|
2518
|
+
*/
|
|
2519
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.getFirmwareHistoryList = function() {
|
|
2520
|
+
return /** @type{!Array<!proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory>} */ (
|
|
2521
|
+
jspb.Message.getRepeatedWrapperField(this, proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory, 13));
|
|
2522
|
+
};
|
|
2523
|
+
|
|
2524
|
+
|
|
2525
|
+
/**
|
|
2526
|
+
* @param {!Array<!proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory>} value
|
|
2527
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData} returns this
|
|
2528
|
+
*/
|
|
2529
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.setFirmwareHistoryList = function(value) {
|
|
2530
|
+
return jspb.Message.setRepeatedWrapperField(this, 13, value);
|
|
2531
|
+
};
|
|
2532
|
+
|
|
2533
|
+
|
|
2534
|
+
/**
|
|
2535
|
+
* @param {!proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory=} opt_value
|
|
2536
|
+
* @param {number=} opt_index
|
|
2537
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory}
|
|
2538
|
+
*/
|
|
2539
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.addFirmwareHistory = function(opt_value, opt_index) {
|
|
2540
|
+
return jspb.Message.addToRepeatedWrapperField(this, 13, opt_value, proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory, opt_index);
|
|
2541
|
+
};
|
|
2542
|
+
|
|
2543
|
+
|
|
2544
|
+
/**
|
|
2545
|
+
* Clears the list making it empty but non-null.
|
|
2546
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData} returns this
|
|
2547
|
+
*/
|
|
2548
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.clearFirmwareHistoryList = function() {
|
|
2549
|
+
return this.setFirmwareHistoryList([]);
|
|
2550
|
+
};
|
|
2551
|
+
|
|
2552
|
+
|
|
2425
2553
|
|
|
2426
2554
|
|
|
2427
2555
|
|
|
@@ -2582,4 +2710,236 @@ proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.prototype.
|
|
|
2582
2710
|
};
|
|
2583
2711
|
|
|
2584
2712
|
|
|
2713
|
+
|
|
2714
|
+
|
|
2715
|
+
|
|
2716
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2717
|
+
/**
|
|
2718
|
+
* Creates an object representation of this proto.
|
|
2719
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2720
|
+
* Optional fields that are not set will be set to undefined.
|
|
2721
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2722
|
+
* For the list of reserved names please see:
|
|
2723
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2724
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2725
|
+
* JSPB instance for transitional soy proto support:
|
|
2726
|
+
* http://goto/soy-param-migration
|
|
2727
|
+
* @return {!Object}
|
|
2728
|
+
*/
|
|
2729
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory.prototype.toObject = function(opt_includeInstance) {
|
|
2730
|
+
return proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory.toObject(opt_includeInstance, this);
|
|
2731
|
+
};
|
|
2732
|
+
|
|
2733
|
+
|
|
2734
|
+
/**
|
|
2735
|
+
* Static version of the {@see toObject} method.
|
|
2736
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2737
|
+
* the JSPB instance for transitional soy proto support:
|
|
2738
|
+
* http://goto/soy-param-migration
|
|
2739
|
+
* @param {!proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory} msg The msg instance to transform.
|
|
2740
|
+
* @return {!Object}
|
|
2741
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2742
|
+
*/
|
|
2743
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory.toObject = function(includeInstance, msg) {
|
|
2744
|
+
var f, obj = {
|
|
2745
|
+
firmware: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2746
|
+
from: (f = msg.getFrom()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
2747
|
+
until: (f = msg.getUntil()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
2748
|
+
};
|
|
2749
|
+
|
|
2750
|
+
if (includeInstance) {
|
|
2751
|
+
obj.$jspbMessageInstance = msg;
|
|
2752
|
+
}
|
|
2753
|
+
return obj;
|
|
2754
|
+
};
|
|
2755
|
+
}
|
|
2756
|
+
|
|
2757
|
+
|
|
2758
|
+
/**
|
|
2759
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2760
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2761
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory}
|
|
2762
|
+
*/
|
|
2763
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory.deserializeBinary = function(bytes) {
|
|
2764
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2765
|
+
var msg = new proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory;
|
|
2766
|
+
return proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory.deserializeBinaryFromReader(msg, reader);
|
|
2767
|
+
};
|
|
2768
|
+
|
|
2769
|
+
|
|
2770
|
+
/**
|
|
2771
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2772
|
+
* given reader into the given message object.
|
|
2773
|
+
* @param {!proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory} msg The message object to deserialize into.
|
|
2774
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2775
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory}
|
|
2776
|
+
*/
|
|
2777
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory.deserializeBinaryFromReader = function(msg, reader) {
|
|
2778
|
+
while (reader.nextField()) {
|
|
2779
|
+
if (reader.isEndGroup()) {
|
|
2780
|
+
break;
|
|
2781
|
+
}
|
|
2782
|
+
var field = reader.getFieldNumber();
|
|
2783
|
+
switch (field) {
|
|
2784
|
+
case 1:
|
|
2785
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2786
|
+
msg.setFirmware(value);
|
|
2787
|
+
break;
|
|
2788
|
+
case 2:
|
|
2789
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
2790
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
2791
|
+
msg.setFrom(value);
|
|
2792
|
+
break;
|
|
2793
|
+
case 3:
|
|
2794
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
2795
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
2796
|
+
msg.setUntil(value);
|
|
2797
|
+
break;
|
|
2798
|
+
default:
|
|
2799
|
+
reader.skipField();
|
|
2800
|
+
break;
|
|
2801
|
+
}
|
|
2802
|
+
}
|
|
2803
|
+
return msg;
|
|
2804
|
+
};
|
|
2805
|
+
|
|
2806
|
+
|
|
2807
|
+
/**
|
|
2808
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2809
|
+
* @return {!Uint8Array}
|
|
2810
|
+
*/
|
|
2811
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory.prototype.serializeBinary = function() {
|
|
2812
|
+
var writer = new jspb.BinaryWriter();
|
|
2813
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory.serializeBinaryToWriter(this, writer);
|
|
2814
|
+
return writer.getResultBuffer();
|
|
2815
|
+
};
|
|
2816
|
+
|
|
2817
|
+
|
|
2818
|
+
/**
|
|
2819
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2820
|
+
* format), writing to the given BinaryWriter.
|
|
2821
|
+
* @param {!proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory} message
|
|
2822
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2823
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2824
|
+
*/
|
|
2825
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory.serializeBinaryToWriter = function(message, writer) {
|
|
2826
|
+
var f = undefined;
|
|
2827
|
+
f = message.getFirmware();
|
|
2828
|
+
if (f.length > 0) {
|
|
2829
|
+
writer.writeString(
|
|
2830
|
+
1,
|
|
2831
|
+
f
|
|
2832
|
+
);
|
|
2833
|
+
}
|
|
2834
|
+
f = message.getFrom();
|
|
2835
|
+
if (f != null) {
|
|
2836
|
+
writer.writeMessage(
|
|
2837
|
+
2,
|
|
2838
|
+
f,
|
|
2839
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
2840
|
+
);
|
|
2841
|
+
}
|
|
2842
|
+
f = message.getUntil();
|
|
2843
|
+
if (f != null) {
|
|
2844
|
+
writer.writeMessage(
|
|
2845
|
+
3,
|
|
2846
|
+
f,
|
|
2847
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
2848
|
+
);
|
|
2849
|
+
}
|
|
2850
|
+
};
|
|
2851
|
+
|
|
2852
|
+
|
|
2853
|
+
/**
|
|
2854
|
+
* optional string firmware = 1;
|
|
2855
|
+
* @return {string}
|
|
2856
|
+
*/
|
|
2857
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory.prototype.getFirmware = function() {
|
|
2858
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2859
|
+
};
|
|
2860
|
+
|
|
2861
|
+
|
|
2862
|
+
/**
|
|
2863
|
+
* @param {string} value
|
|
2864
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory} returns this
|
|
2865
|
+
*/
|
|
2866
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory.prototype.setFirmware = function(value) {
|
|
2867
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2868
|
+
};
|
|
2869
|
+
|
|
2870
|
+
|
|
2871
|
+
/**
|
|
2872
|
+
* optional google.protobuf.Timestamp from = 2;
|
|
2873
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
2874
|
+
*/
|
|
2875
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory.prototype.getFrom = function() {
|
|
2876
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
2877
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
|
|
2878
|
+
};
|
|
2879
|
+
|
|
2880
|
+
|
|
2881
|
+
/**
|
|
2882
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
2883
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory} returns this
|
|
2884
|
+
*/
|
|
2885
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory.prototype.setFrom = function(value) {
|
|
2886
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
2887
|
+
};
|
|
2888
|
+
|
|
2889
|
+
|
|
2890
|
+
/**
|
|
2891
|
+
* Clears the message field making it undefined.
|
|
2892
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory} returns this
|
|
2893
|
+
*/
|
|
2894
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory.prototype.clearFrom = function() {
|
|
2895
|
+
return this.setFrom(undefined);
|
|
2896
|
+
};
|
|
2897
|
+
|
|
2898
|
+
|
|
2899
|
+
/**
|
|
2900
|
+
* Returns whether this field is set.
|
|
2901
|
+
* @return {boolean}
|
|
2902
|
+
*/
|
|
2903
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory.prototype.hasFrom = function() {
|
|
2904
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2905
|
+
};
|
|
2906
|
+
|
|
2907
|
+
|
|
2908
|
+
/**
|
|
2909
|
+
* optional google.protobuf.Timestamp until = 3;
|
|
2910
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
2911
|
+
*/
|
|
2912
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory.prototype.getUntil = function() {
|
|
2913
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
2914
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
|
|
2915
|
+
};
|
|
2916
|
+
|
|
2917
|
+
|
|
2918
|
+
/**
|
|
2919
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
2920
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory} returns this
|
|
2921
|
+
*/
|
|
2922
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory.prototype.setUntil = function(value) {
|
|
2923
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
2924
|
+
};
|
|
2925
|
+
|
|
2926
|
+
|
|
2927
|
+
/**
|
|
2928
|
+
* Clears the message field making it undefined.
|
|
2929
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory} returns this
|
|
2930
|
+
*/
|
|
2931
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory.prototype.clearUntil = function() {
|
|
2932
|
+
return this.setUntil(undefined);
|
|
2933
|
+
};
|
|
2934
|
+
|
|
2935
|
+
|
|
2936
|
+
/**
|
|
2937
|
+
* Returns whether this field is set.
|
|
2938
|
+
* @return {boolean}
|
|
2939
|
+
*/
|
|
2940
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.FirmwareHistory.prototype.hasUntil = function() {
|
|
2941
|
+
return jspb.Message.getField(this, 3) != null;
|
|
2942
|
+
};
|
|
2943
|
+
|
|
2944
|
+
|
|
2585
2945
|
goog.object.extend(exports, proto.com.lansweeper.discovery.sensor.ot.v1);
|