@lansweeper/discovery-sensor-proto 2.14.2 → 2.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/gen-proto/discovery_sections_ot_grpc_pb.js +1 -0
- package/gen-proto/discovery_sections_ot_pb.d.ts +312 -0
- package/gen-proto/discovery_sections_ot_pb.js +2419 -0
- package/gen-proto/discovery_sections_unix_pb.d.ts +49 -0
- package/gen-proto/discovery_sections_unix_pb.js +418 -2
- package/gen-proto/image.json +1 -1
- package/gen-proto/index.d.ts +1 -0
- package/gen-proto/index.js +3 -1
- package/package.json +2 -2
- package/proto/discovery_sections_ot.proto +99 -0
- package/proto/discovery_sections_unix.proto +11 -1
|
@@ -0,0 +1,2419 @@
|
|
|
1
|
+
// source: discovery_sections_ot.proto
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview
|
|
4
|
+
* @enhanceable
|
|
5
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
|
+
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
|
+
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
// @ts-nocheck
|
|
13
|
+
|
|
14
|
+
var jspb = require('google-protobuf');
|
|
15
|
+
var goog = jspb;
|
|
16
|
+
var global = Function('return this')();
|
|
17
|
+
|
|
18
|
+
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
19
|
+
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
20
|
+
var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
|
|
21
|
+
goog.object.extend(proto, google_protobuf_wrappers_pb);
|
|
22
|
+
goog.exportSymbol('proto.com.lansweeper.discovery.sensor.ot.v1.ComponentType', null, global);
|
|
23
|
+
goog.exportSymbol('proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData', null, global);
|
|
24
|
+
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
|
+
goog.exportSymbol('proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo', null, global);
|
|
27
|
+
goog.exportSymbol('proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData', null, global);
|
|
28
|
+
goog.exportSymbol('proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig', null, global);
|
|
29
|
+
goog.exportSymbol('proto.com.lansweeper.discovery.sensor.ot.v1.RackData', null, global);
|
|
30
|
+
/**
|
|
31
|
+
* Generated by JsPbCodeGenerator.
|
|
32
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
33
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
34
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
35
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
36
|
+
* valid.
|
|
37
|
+
* @extends {jspb.Message}
|
|
38
|
+
* @constructor
|
|
39
|
+
*/
|
|
40
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo = function(opt_data) {
|
|
41
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.repeatedFields_, null);
|
|
42
|
+
};
|
|
43
|
+
goog.inherits(proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo, jspb.Message);
|
|
44
|
+
if (goog.DEBUG && !COMPILED) {
|
|
45
|
+
/**
|
|
46
|
+
* @public
|
|
47
|
+
* @override
|
|
48
|
+
*/
|
|
49
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.displayName = 'proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo';
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Generated by JsPbCodeGenerator.
|
|
53
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
54
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
55
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
56
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
57
|
+
* valid.
|
|
58
|
+
* @extends {jspb.Message}
|
|
59
|
+
* @constructor
|
|
60
|
+
*/
|
|
61
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData = function(opt_data) {
|
|
62
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
63
|
+
};
|
|
64
|
+
goog.inherits(proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData, jspb.Message);
|
|
65
|
+
if (goog.DEBUG && !COMPILED) {
|
|
66
|
+
/**
|
|
67
|
+
* @public
|
|
68
|
+
* @override
|
|
69
|
+
*/
|
|
70
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.displayName = 'proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData';
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Generated by JsPbCodeGenerator.
|
|
74
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
75
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
76
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
77
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
78
|
+
* valid.
|
|
79
|
+
* @extends {jspb.Message}
|
|
80
|
+
* @constructor
|
|
81
|
+
*/
|
|
82
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackData = function(opt_data) {
|
|
83
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.com.lansweeper.discovery.sensor.ot.v1.RackData.repeatedFields_, null);
|
|
84
|
+
};
|
|
85
|
+
goog.inherits(proto.com.lansweeper.discovery.sensor.ot.v1.RackData, jspb.Message);
|
|
86
|
+
if (goog.DEBUG && !COMPILED) {
|
|
87
|
+
/**
|
|
88
|
+
* @public
|
|
89
|
+
* @override
|
|
90
|
+
*/
|
|
91
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackData.displayName = 'proto.com.lansweeper.discovery.sensor.ot.v1.RackData';
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Generated by JsPbCodeGenerator.
|
|
95
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
96
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
97
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
98
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
99
|
+
* valid.
|
|
100
|
+
* @extends {jspb.Message}
|
|
101
|
+
* @constructor
|
|
102
|
+
*/
|
|
103
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig = function(opt_data) {
|
|
104
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.repeatedFields_, null);
|
|
105
|
+
};
|
|
106
|
+
goog.inherits(proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig, jspb.Message);
|
|
107
|
+
if (goog.DEBUG && !COMPILED) {
|
|
108
|
+
/**
|
|
109
|
+
* @public
|
|
110
|
+
* @override
|
|
111
|
+
*/
|
|
112
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.displayName = 'proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig';
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Generated by JsPbCodeGenerator.
|
|
116
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
117
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
118
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
119
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
120
|
+
* valid.
|
|
121
|
+
* @extends {jspb.Message}
|
|
122
|
+
* @constructor
|
|
123
|
+
*/
|
|
124
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData = function(opt_data) {
|
|
125
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.repeatedFields_, null);
|
|
126
|
+
};
|
|
127
|
+
goog.inherits(proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData, jspb.Message);
|
|
128
|
+
if (goog.DEBUG && !COMPILED) {
|
|
129
|
+
/**
|
|
130
|
+
* @public
|
|
131
|
+
* @override
|
|
132
|
+
*/
|
|
133
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.displayName = 'proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData';
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Generated by JsPbCodeGenerator.
|
|
137
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
138
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
139
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
140
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
141
|
+
* valid.
|
|
142
|
+
* @extends {jspb.Message}
|
|
143
|
+
* @constructor
|
|
144
|
+
*/
|
|
145
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation = function(opt_data) {
|
|
146
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
147
|
+
};
|
|
148
|
+
goog.inherits(proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation, jspb.Message);
|
|
149
|
+
if (goog.DEBUG && !COMPILED) {
|
|
150
|
+
/**
|
|
151
|
+
* @public
|
|
152
|
+
* @override
|
|
153
|
+
*/
|
|
154
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.displayName = 'proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation';
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* List of repeated fields within this message type.
|
|
159
|
+
* @private {!Array<number>}
|
|
160
|
+
* @const
|
|
161
|
+
*/
|
|
162
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.repeatedFields_ = [4,10];
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
167
|
+
/**
|
|
168
|
+
* Creates an object representation of this proto.
|
|
169
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
170
|
+
* Optional fields that are not set will be set to undefined.
|
|
171
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
172
|
+
* For the list of reserved names please see:
|
|
173
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
174
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
175
|
+
* JSPB instance for transitional soy proto support:
|
|
176
|
+
* http://goto/soy-param-migration
|
|
177
|
+
* @return {!Object}
|
|
178
|
+
*/
|
|
179
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.toObject = function(opt_includeInstance) {
|
|
180
|
+
return proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.toObject(opt_includeInstance, this);
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Static version of the {@see toObject} method.
|
|
186
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
187
|
+
* the JSPB instance for transitional soy proto support:
|
|
188
|
+
* http://goto/soy-param-migration
|
|
189
|
+
* @param {!proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo} msg The msg instance to transform.
|
|
190
|
+
* @return {!Object}
|
|
191
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
192
|
+
*/
|
|
193
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.toObject = function(includeInstance, msg) {
|
|
194
|
+
var f, obj = {
|
|
195
|
+
isNetworkNode: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
196
|
+
routePath: (f = msg.getRoutePath()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
|
|
197
|
+
rackIndex: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
198
|
+
scannedByList: jspb.Message.toObjectList(msg.getScannedByList(),
|
|
199
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.toObject, includeInstance),
|
|
200
|
+
componentType: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
201
|
+
firmware: (f = msg.getFirmware()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
|
|
202
|
+
partNumber: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
203
|
+
slot: (f = msg.getSlot()) && google_protobuf_wrappers_pb.UInt32Value.toObject(includeInstance, f),
|
|
204
|
+
slotWidth: (f = msg.getSlotWidth()) && google_protobuf_wrappers_pb.UInt32Value.toObject(includeInstance, f),
|
|
205
|
+
extendedInformationList: jspb.Message.toObjectList(msg.getExtendedInformationList(),
|
|
206
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.toObject, includeInstance)
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
if (includeInstance) {
|
|
210
|
+
obj.$jspbMessageInstance = msg;
|
|
211
|
+
}
|
|
212
|
+
return obj;
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Deserializes binary data (in protobuf wire format).
|
|
219
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
220
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo}
|
|
221
|
+
*/
|
|
222
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.deserializeBinary = function(bytes) {
|
|
223
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
224
|
+
var msg = new proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo;
|
|
225
|
+
return proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.deserializeBinaryFromReader(msg, reader);
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
231
|
+
* given reader into the given message object.
|
|
232
|
+
* @param {!proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo} msg The message object to deserialize into.
|
|
233
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
234
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo}
|
|
235
|
+
*/
|
|
236
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.deserializeBinaryFromReader = function(msg, reader) {
|
|
237
|
+
while (reader.nextField()) {
|
|
238
|
+
if (reader.isEndGroup()) {
|
|
239
|
+
break;
|
|
240
|
+
}
|
|
241
|
+
var field = reader.getFieldNumber();
|
|
242
|
+
switch (field) {
|
|
243
|
+
case 1:
|
|
244
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
245
|
+
msg.setIsNetworkNode(value);
|
|
246
|
+
break;
|
|
247
|
+
case 2:
|
|
248
|
+
var value = new google_protobuf_wrappers_pb.StringValue;
|
|
249
|
+
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
|
|
250
|
+
msg.setRoutePath(value);
|
|
251
|
+
break;
|
|
252
|
+
case 3:
|
|
253
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
254
|
+
msg.setRackIndex(value);
|
|
255
|
+
break;
|
|
256
|
+
case 4:
|
|
257
|
+
var value = new proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData;
|
|
258
|
+
reader.readMessage(value,proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.deserializeBinaryFromReader);
|
|
259
|
+
msg.addScannedBy(value);
|
|
260
|
+
break;
|
|
261
|
+
case 5:
|
|
262
|
+
var value = /** @type {!proto.com.lansweeper.discovery.sensor.ot.v1.ComponentType} */ (reader.readEnum());
|
|
263
|
+
msg.setComponentType(value);
|
|
264
|
+
break;
|
|
265
|
+
case 6:
|
|
266
|
+
var value = new google_protobuf_wrappers_pb.StringValue;
|
|
267
|
+
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
|
|
268
|
+
msg.setFirmware(value);
|
|
269
|
+
break;
|
|
270
|
+
case 7:
|
|
271
|
+
var value = /** @type {string} */ (reader.readString());
|
|
272
|
+
msg.setPartNumber(value);
|
|
273
|
+
break;
|
|
274
|
+
case 8:
|
|
275
|
+
var value = new google_protobuf_wrappers_pb.UInt32Value;
|
|
276
|
+
reader.readMessage(value,google_protobuf_wrappers_pb.UInt32Value.deserializeBinaryFromReader);
|
|
277
|
+
msg.setSlot(value);
|
|
278
|
+
break;
|
|
279
|
+
case 9:
|
|
280
|
+
var value = new google_protobuf_wrappers_pb.UInt32Value;
|
|
281
|
+
reader.readMessage(value,google_protobuf_wrappers_pb.UInt32Value.deserializeBinaryFromReader);
|
|
282
|
+
msg.setSlotWidth(value);
|
|
283
|
+
break;
|
|
284
|
+
case 10:
|
|
285
|
+
var value = new proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation;
|
|
286
|
+
reader.readMessage(value,proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.deserializeBinaryFromReader);
|
|
287
|
+
msg.addExtendedInformation(value);
|
|
288
|
+
break;
|
|
289
|
+
default:
|
|
290
|
+
reader.skipField();
|
|
291
|
+
break;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
return msg;
|
|
295
|
+
};
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
300
|
+
* @return {!Uint8Array}
|
|
301
|
+
*/
|
|
302
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.serializeBinary = function() {
|
|
303
|
+
var writer = new jspb.BinaryWriter();
|
|
304
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.serializeBinaryToWriter(this, writer);
|
|
305
|
+
return writer.getResultBuffer();
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
311
|
+
* format), writing to the given BinaryWriter.
|
|
312
|
+
* @param {!proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo} message
|
|
313
|
+
* @param {!jspb.BinaryWriter} writer
|
|
314
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
315
|
+
*/
|
|
316
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.serializeBinaryToWriter = function(message, writer) {
|
|
317
|
+
var f = undefined;
|
|
318
|
+
f = message.getIsNetworkNode();
|
|
319
|
+
if (f) {
|
|
320
|
+
writer.writeBool(
|
|
321
|
+
1,
|
|
322
|
+
f
|
|
323
|
+
);
|
|
324
|
+
}
|
|
325
|
+
f = message.getRoutePath();
|
|
326
|
+
if (f != null) {
|
|
327
|
+
writer.writeMessage(
|
|
328
|
+
2,
|
|
329
|
+
f,
|
|
330
|
+
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
|
|
331
|
+
);
|
|
332
|
+
}
|
|
333
|
+
f = message.getRackIndex();
|
|
334
|
+
if (f !== 0) {
|
|
335
|
+
writer.writeUint32(
|
|
336
|
+
3,
|
|
337
|
+
f
|
|
338
|
+
);
|
|
339
|
+
}
|
|
340
|
+
f = message.getScannedByList();
|
|
341
|
+
if (f.length > 0) {
|
|
342
|
+
writer.writeRepeatedMessage(
|
|
343
|
+
4,
|
|
344
|
+
f,
|
|
345
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.serializeBinaryToWriter
|
|
346
|
+
);
|
|
347
|
+
}
|
|
348
|
+
f = message.getComponentType();
|
|
349
|
+
if (f !== 0.0) {
|
|
350
|
+
writer.writeEnum(
|
|
351
|
+
5,
|
|
352
|
+
f
|
|
353
|
+
);
|
|
354
|
+
}
|
|
355
|
+
f = message.getFirmware();
|
|
356
|
+
if (f != null) {
|
|
357
|
+
writer.writeMessage(
|
|
358
|
+
6,
|
|
359
|
+
f,
|
|
360
|
+
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
|
|
361
|
+
);
|
|
362
|
+
}
|
|
363
|
+
f = message.getPartNumber();
|
|
364
|
+
if (f.length > 0) {
|
|
365
|
+
writer.writeString(
|
|
366
|
+
7,
|
|
367
|
+
f
|
|
368
|
+
);
|
|
369
|
+
}
|
|
370
|
+
f = message.getSlot();
|
|
371
|
+
if (f != null) {
|
|
372
|
+
writer.writeMessage(
|
|
373
|
+
8,
|
|
374
|
+
f,
|
|
375
|
+
google_protobuf_wrappers_pb.UInt32Value.serializeBinaryToWriter
|
|
376
|
+
);
|
|
377
|
+
}
|
|
378
|
+
f = message.getSlotWidth();
|
|
379
|
+
if (f != null) {
|
|
380
|
+
writer.writeMessage(
|
|
381
|
+
9,
|
|
382
|
+
f,
|
|
383
|
+
google_protobuf_wrappers_pb.UInt32Value.serializeBinaryToWriter
|
|
384
|
+
);
|
|
385
|
+
}
|
|
386
|
+
f = message.getExtendedInformationList();
|
|
387
|
+
if (f.length > 0) {
|
|
388
|
+
writer.writeRepeatedMessage(
|
|
389
|
+
10,
|
|
390
|
+
f,
|
|
391
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.serializeBinaryToWriter
|
|
392
|
+
);
|
|
393
|
+
}
|
|
394
|
+
};
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* optional bool is_network_node = 1;
|
|
399
|
+
* @return {boolean}
|
|
400
|
+
*/
|
|
401
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.getIsNetworkNode = function() {
|
|
402
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
|
|
403
|
+
};
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* @param {boolean} value
|
|
408
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo} returns this
|
|
409
|
+
*/
|
|
410
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.setIsNetworkNode = function(value) {
|
|
411
|
+
return jspb.Message.setProto3BooleanField(this, 1, value);
|
|
412
|
+
};
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* optional google.protobuf.StringValue route_path = 2;
|
|
417
|
+
* @return {?proto.google.protobuf.StringValue}
|
|
418
|
+
*/
|
|
419
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.getRoutePath = function() {
|
|
420
|
+
return /** @type{?proto.google.protobuf.StringValue} */ (
|
|
421
|
+
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 2));
|
|
422
|
+
};
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* @param {?proto.google.protobuf.StringValue|undefined} value
|
|
427
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo} returns this
|
|
428
|
+
*/
|
|
429
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.setRoutePath = function(value) {
|
|
430
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
431
|
+
};
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* Clears the message field making it undefined.
|
|
436
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo} returns this
|
|
437
|
+
*/
|
|
438
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.clearRoutePath = function() {
|
|
439
|
+
return this.setRoutePath(undefined);
|
|
440
|
+
};
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* Returns whether this field is set.
|
|
445
|
+
* @return {boolean}
|
|
446
|
+
*/
|
|
447
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.hasRoutePath = function() {
|
|
448
|
+
return jspb.Message.getField(this, 2) != null;
|
|
449
|
+
};
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* optional uint32 rack_index = 3;
|
|
454
|
+
* @return {number}
|
|
455
|
+
*/
|
|
456
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.getRackIndex = function() {
|
|
457
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
458
|
+
};
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* @param {number} value
|
|
463
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo} returns this
|
|
464
|
+
*/
|
|
465
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.setRackIndex = function(value) {
|
|
466
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
467
|
+
};
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* repeated OtScanConfigData scanned_by = 4;
|
|
472
|
+
* @return {!Array<!proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData>}
|
|
473
|
+
*/
|
|
474
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.getScannedByList = function() {
|
|
475
|
+
return /** @type{!Array<!proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData>} */ (
|
|
476
|
+
jspb.Message.getRepeatedWrapperField(this, proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData, 4));
|
|
477
|
+
};
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* @param {!Array<!proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData>} value
|
|
482
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo} returns this
|
|
483
|
+
*/
|
|
484
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.setScannedByList = function(value) {
|
|
485
|
+
return jspb.Message.setRepeatedWrapperField(this, 4, value);
|
|
486
|
+
};
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* @param {!proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData=} opt_value
|
|
491
|
+
* @param {number=} opt_index
|
|
492
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData}
|
|
493
|
+
*/
|
|
494
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.addScannedBy = function(opt_value, opt_index) {
|
|
495
|
+
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData, opt_index);
|
|
496
|
+
};
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* Clears the list making it empty but non-null.
|
|
501
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo} returns this
|
|
502
|
+
*/
|
|
503
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.clearScannedByList = function() {
|
|
504
|
+
return this.setScannedByList([]);
|
|
505
|
+
};
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* optional ComponentType component_type = 5;
|
|
510
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ComponentType}
|
|
511
|
+
*/
|
|
512
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.getComponentType = function() {
|
|
513
|
+
return /** @type {!proto.com.lansweeper.discovery.sensor.ot.v1.ComponentType} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
514
|
+
};
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* @param {!proto.com.lansweeper.discovery.sensor.ot.v1.ComponentType} value
|
|
519
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo} returns this
|
|
520
|
+
*/
|
|
521
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.setComponentType = function(value) {
|
|
522
|
+
return jspb.Message.setProto3EnumField(this, 5, value);
|
|
523
|
+
};
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* optional google.protobuf.StringValue firmware = 6;
|
|
528
|
+
* @return {?proto.google.protobuf.StringValue}
|
|
529
|
+
*/
|
|
530
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.getFirmware = function() {
|
|
531
|
+
return /** @type{?proto.google.protobuf.StringValue} */ (
|
|
532
|
+
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 6));
|
|
533
|
+
};
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* @param {?proto.google.protobuf.StringValue|undefined} value
|
|
538
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo} returns this
|
|
539
|
+
*/
|
|
540
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.setFirmware = function(value) {
|
|
541
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
542
|
+
};
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* Clears the message field making it undefined.
|
|
547
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo} returns this
|
|
548
|
+
*/
|
|
549
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.clearFirmware = function() {
|
|
550
|
+
return this.setFirmware(undefined);
|
|
551
|
+
};
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* Returns whether this field is set.
|
|
556
|
+
* @return {boolean}
|
|
557
|
+
*/
|
|
558
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.hasFirmware = function() {
|
|
559
|
+
return jspb.Message.getField(this, 6) != null;
|
|
560
|
+
};
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* optional string part_number = 7;
|
|
565
|
+
* @return {string}
|
|
566
|
+
*/
|
|
567
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.getPartNumber = function() {
|
|
568
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
569
|
+
};
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* @param {string} value
|
|
574
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo} returns this
|
|
575
|
+
*/
|
|
576
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.setPartNumber = function(value) {
|
|
577
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
578
|
+
};
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* optional google.protobuf.UInt32Value slot = 8;
|
|
583
|
+
* @return {?proto.google.protobuf.UInt32Value}
|
|
584
|
+
*/
|
|
585
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.getSlot = function() {
|
|
586
|
+
return /** @type{?proto.google.protobuf.UInt32Value} */ (
|
|
587
|
+
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt32Value, 8));
|
|
588
|
+
};
|
|
589
|
+
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* @param {?proto.google.protobuf.UInt32Value|undefined} value
|
|
593
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo} returns this
|
|
594
|
+
*/
|
|
595
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.setSlot = function(value) {
|
|
596
|
+
return jspb.Message.setWrapperField(this, 8, value);
|
|
597
|
+
};
|
|
598
|
+
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* Clears the message field making it undefined.
|
|
602
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo} returns this
|
|
603
|
+
*/
|
|
604
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.clearSlot = function() {
|
|
605
|
+
return this.setSlot(undefined);
|
|
606
|
+
};
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* Returns whether this field is set.
|
|
611
|
+
* @return {boolean}
|
|
612
|
+
*/
|
|
613
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.hasSlot = function() {
|
|
614
|
+
return jspb.Message.getField(this, 8) != null;
|
|
615
|
+
};
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
/**
|
|
619
|
+
* optional google.protobuf.UInt32Value slot_width = 9;
|
|
620
|
+
* @return {?proto.google.protobuf.UInt32Value}
|
|
621
|
+
*/
|
|
622
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.getSlotWidth = function() {
|
|
623
|
+
return /** @type{?proto.google.protobuf.UInt32Value} */ (
|
|
624
|
+
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt32Value, 9));
|
|
625
|
+
};
|
|
626
|
+
|
|
627
|
+
|
|
628
|
+
/**
|
|
629
|
+
* @param {?proto.google.protobuf.UInt32Value|undefined} value
|
|
630
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo} returns this
|
|
631
|
+
*/
|
|
632
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.setSlotWidth = function(value) {
|
|
633
|
+
return jspb.Message.setWrapperField(this, 9, value);
|
|
634
|
+
};
|
|
635
|
+
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* Clears the message field making it undefined.
|
|
639
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo} returns this
|
|
640
|
+
*/
|
|
641
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.clearSlotWidth = function() {
|
|
642
|
+
return this.setSlotWidth(undefined);
|
|
643
|
+
};
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* Returns whether this field is set.
|
|
648
|
+
* @return {boolean}
|
|
649
|
+
*/
|
|
650
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.hasSlotWidth = function() {
|
|
651
|
+
return jspb.Message.getField(this, 9) != null;
|
|
652
|
+
};
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
/**
|
|
656
|
+
* repeated ModuleExtendedInformation extended_information = 10;
|
|
657
|
+
* @return {!Array<!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation>}
|
|
658
|
+
*/
|
|
659
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.getExtendedInformationList = function() {
|
|
660
|
+
return /** @type{!Array<!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation>} */ (
|
|
661
|
+
jspb.Message.getRepeatedWrapperField(this, proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation, 10));
|
|
662
|
+
};
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
/**
|
|
666
|
+
* @param {!Array<!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation>} value
|
|
667
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo} returns this
|
|
668
|
+
*/
|
|
669
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.setExtendedInformationList = function(value) {
|
|
670
|
+
return jspb.Message.setRepeatedWrapperField(this, 10, value);
|
|
671
|
+
};
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* @param {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation=} opt_value
|
|
676
|
+
* @param {number=} opt_index
|
|
677
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation}
|
|
678
|
+
*/
|
|
679
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.addExtendedInformation = function(opt_value, opt_index) {
|
|
680
|
+
return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation, opt_index);
|
|
681
|
+
};
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
/**
|
|
685
|
+
* Clears the list making it empty but non-null.
|
|
686
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo} returns this
|
|
687
|
+
*/
|
|
688
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtBasicInfo.prototype.clearExtendedInformationList = function() {
|
|
689
|
+
return this.setExtendedInformationList([]);
|
|
690
|
+
};
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
|
|
696
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
697
|
+
/**
|
|
698
|
+
* Creates an object representation of this proto.
|
|
699
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
700
|
+
* Optional fields that are not set will be set to undefined.
|
|
701
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
702
|
+
* For the list of reserved names please see:
|
|
703
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
704
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
705
|
+
* JSPB instance for transitional soy proto support:
|
|
706
|
+
* http://goto/soy-param-migration
|
|
707
|
+
* @return {!Object}
|
|
708
|
+
*/
|
|
709
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.prototype.toObject = function(opt_includeInstance) {
|
|
710
|
+
return proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.toObject(opt_includeInstance, this);
|
|
711
|
+
};
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
/**
|
|
715
|
+
* Static version of the {@see toObject} method.
|
|
716
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
717
|
+
* the JSPB instance for transitional soy proto support:
|
|
718
|
+
* http://goto/soy-param-migration
|
|
719
|
+
* @param {!proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData} msg The msg instance to transform.
|
|
720
|
+
* @return {!Object}
|
|
721
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
722
|
+
*/
|
|
723
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.toObject = function(includeInstance, msg) {
|
|
724
|
+
var f, obj = {
|
|
725
|
+
scanTargetId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
726
|
+
scanTargetName: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
727
|
+
sensorId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
728
|
+
sensorName: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
729
|
+
protocolId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
730
|
+
protocolName: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
731
|
+
port: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
732
|
+
networkProtocol: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
733
|
+
lastTried: (f = msg.getLastTried()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
734
|
+
lastScan: (f = msg.getLastScan()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
735
|
+
};
|
|
736
|
+
|
|
737
|
+
if (includeInstance) {
|
|
738
|
+
obj.$jspbMessageInstance = msg;
|
|
739
|
+
}
|
|
740
|
+
return obj;
|
|
741
|
+
};
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
|
|
745
|
+
/**
|
|
746
|
+
* Deserializes binary data (in protobuf wire format).
|
|
747
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
748
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData}
|
|
749
|
+
*/
|
|
750
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.deserializeBinary = function(bytes) {
|
|
751
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
752
|
+
var msg = new proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData;
|
|
753
|
+
return proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.deserializeBinaryFromReader(msg, reader);
|
|
754
|
+
};
|
|
755
|
+
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
759
|
+
* given reader into the given message object.
|
|
760
|
+
* @param {!proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData} msg The message object to deserialize into.
|
|
761
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
762
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData}
|
|
763
|
+
*/
|
|
764
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.deserializeBinaryFromReader = function(msg, reader) {
|
|
765
|
+
while (reader.nextField()) {
|
|
766
|
+
if (reader.isEndGroup()) {
|
|
767
|
+
break;
|
|
768
|
+
}
|
|
769
|
+
var field = reader.getFieldNumber();
|
|
770
|
+
switch (field) {
|
|
771
|
+
case 1:
|
|
772
|
+
var value = /** @type {string} */ (reader.readString());
|
|
773
|
+
msg.setScanTargetId(value);
|
|
774
|
+
break;
|
|
775
|
+
case 2:
|
|
776
|
+
var value = /** @type {string} */ (reader.readString());
|
|
777
|
+
msg.setScanTargetName(value);
|
|
778
|
+
break;
|
|
779
|
+
case 3:
|
|
780
|
+
var value = /** @type {string} */ (reader.readString());
|
|
781
|
+
msg.setSensorId(value);
|
|
782
|
+
break;
|
|
783
|
+
case 4:
|
|
784
|
+
var value = /** @type {string} */ (reader.readString());
|
|
785
|
+
msg.setSensorName(value);
|
|
786
|
+
break;
|
|
787
|
+
case 5:
|
|
788
|
+
var value = /** @type {string} */ (reader.readString());
|
|
789
|
+
msg.setProtocolId(value);
|
|
790
|
+
break;
|
|
791
|
+
case 6:
|
|
792
|
+
var value = /** @type {string} */ (reader.readString());
|
|
793
|
+
msg.setProtocolName(value);
|
|
794
|
+
break;
|
|
795
|
+
case 7:
|
|
796
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
797
|
+
msg.setPort(value);
|
|
798
|
+
break;
|
|
799
|
+
case 8:
|
|
800
|
+
var value = /** @type {!proto.com.lansweeper.discovery.sensor.ot.v1.NetworkProtocol} */ (reader.readEnum());
|
|
801
|
+
msg.setNetworkProtocol(value);
|
|
802
|
+
break;
|
|
803
|
+
case 9:
|
|
804
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
805
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
806
|
+
msg.setLastTried(value);
|
|
807
|
+
break;
|
|
808
|
+
case 10:
|
|
809
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
810
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
811
|
+
msg.setLastScan(value);
|
|
812
|
+
break;
|
|
813
|
+
default:
|
|
814
|
+
reader.skipField();
|
|
815
|
+
break;
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
return msg;
|
|
819
|
+
};
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
/**
|
|
823
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
824
|
+
* @return {!Uint8Array}
|
|
825
|
+
*/
|
|
826
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.prototype.serializeBinary = function() {
|
|
827
|
+
var writer = new jspb.BinaryWriter();
|
|
828
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.serializeBinaryToWriter(this, writer);
|
|
829
|
+
return writer.getResultBuffer();
|
|
830
|
+
};
|
|
831
|
+
|
|
832
|
+
|
|
833
|
+
/**
|
|
834
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
835
|
+
* format), writing to the given BinaryWriter.
|
|
836
|
+
* @param {!proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData} message
|
|
837
|
+
* @param {!jspb.BinaryWriter} writer
|
|
838
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
839
|
+
*/
|
|
840
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.serializeBinaryToWriter = function(message, writer) {
|
|
841
|
+
var f = undefined;
|
|
842
|
+
f = message.getScanTargetId();
|
|
843
|
+
if (f.length > 0) {
|
|
844
|
+
writer.writeString(
|
|
845
|
+
1,
|
|
846
|
+
f
|
|
847
|
+
);
|
|
848
|
+
}
|
|
849
|
+
f = message.getScanTargetName();
|
|
850
|
+
if (f.length > 0) {
|
|
851
|
+
writer.writeString(
|
|
852
|
+
2,
|
|
853
|
+
f
|
|
854
|
+
);
|
|
855
|
+
}
|
|
856
|
+
f = message.getSensorId();
|
|
857
|
+
if (f.length > 0) {
|
|
858
|
+
writer.writeString(
|
|
859
|
+
3,
|
|
860
|
+
f
|
|
861
|
+
);
|
|
862
|
+
}
|
|
863
|
+
f = message.getSensorName();
|
|
864
|
+
if (f.length > 0) {
|
|
865
|
+
writer.writeString(
|
|
866
|
+
4,
|
|
867
|
+
f
|
|
868
|
+
);
|
|
869
|
+
}
|
|
870
|
+
f = message.getProtocolId();
|
|
871
|
+
if (f.length > 0) {
|
|
872
|
+
writer.writeString(
|
|
873
|
+
5,
|
|
874
|
+
f
|
|
875
|
+
);
|
|
876
|
+
}
|
|
877
|
+
f = message.getProtocolName();
|
|
878
|
+
if (f.length > 0) {
|
|
879
|
+
writer.writeString(
|
|
880
|
+
6,
|
|
881
|
+
f
|
|
882
|
+
);
|
|
883
|
+
}
|
|
884
|
+
f = message.getPort();
|
|
885
|
+
if (f !== 0) {
|
|
886
|
+
writer.writeUint32(
|
|
887
|
+
7,
|
|
888
|
+
f
|
|
889
|
+
);
|
|
890
|
+
}
|
|
891
|
+
f = message.getNetworkProtocol();
|
|
892
|
+
if (f !== 0.0) {
|
|
893
|
+
writer.writeEnum(
|
|
894
|
+
8,
|
|
895
|
+
f
|
|
896
|
+
);
|
|
897
|
+
}
|
|
898
|
+
f = message.getLastTried();
|
|
899
|
+
if (f != null) {
|
|
900
|
+
writer.writeMessage(
|
|
901
|
+
9,
|
|
902
|
+
f,
|
|
903
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
904
|
+
);
|
|
905
|
+
}
|
|
906
|
+
f = message.getLastScan();
|
|
907
|
+
if (f != null) {
|
|
908
|
+
writer.writeMessage(
|
|
909
|
+
10,
|
|
910
|
+
f,
|
|
911
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
912
|
+
);
|
|
913
|
+
}
|
|
914
|
+
};
|
|
915
|
+
|
|
916
|
+
|
|
917
|
+
/**
|
|
918
|
+
* optional string scan_target_id = 1;
|
|
919
|
+
* @return {string}
|
|
920
|
+
*/
|
|
921
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.prototype.getScanTargetId = function() {
|
|
922
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
923
|
+
};
|
|
924
|
+
|
|
925
|
+
|
|
926
|
+
/**
|
|
927
|
+
* @param {string} value
|
|
928
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData} returns this
|
|
929
|
+
*/
|
|
930
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.prototype.setScanTargetId = function(value) {
|
|
931
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
932
|
+
};
|
|
933
|
+
|
|
934
|
+
|
|
935
|
+
/**
|
|
936
|
+
* optional string scan_target_name = 2;
|
|
937
|
+
* @return {string}
|
|
938
|
+
*/
|
|
939
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.prototype.getScanTargetName = function() {
|
|
940
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
941
|
+
};
|
|
942
|
+
|
|
943
|
+
|
|
944
|
+
/**
|
|
945
|
+
* @param {string} value
|
|
946
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData} returns this
|
|
947
|
+
*/
|
|
948
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.prototype.setScanTargetName = function(value) {
|
|
949
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
950
|
+
};
|
|
951
|
+
|
|
952
|
+
|
|
953
|
+
/**
|
|
954
|
+
* optional string sensor_id = 3;
|
|
955
|
+
* @return {string}
|
|
956
|
+
*/
|
|
957
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.prototype.getSensorId = function() {
|
|
958
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
959
|
+
};
|
|
960
|
+
|
|
961
|
+
|
|
962
|
+
/**
|
|
963
|
+
* @param {string} value
|
|
964
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData} returns this
|
|
965
|
+
*/
|
|
966
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.prototype.setSensorId = function(value) {
|
|
967
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
968
|
+
};
|
|
969
|
+
|
|
970
|
+
|
|
971
|
+
/**
|
|
972
|
+
* optional string sensor_name = 4;
|
|
973
|
+
* @return {string}
|
|
974
|
+
*/
|
|
975
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.prototype.getSensorName = function() {
|
|
976
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
977
|
+
};
|
|
978
|
+
|
|
979
|
+
|
|
980
|
+
/**
|
|
981
|
+
* @param {string} value
|
|
982
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData} returns this
|
|
983
|
+
*/
|
|
984
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.prototype.setSensorName = function(value) {
|
|
985
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
986
|
+
};
|
|
987
|
+
|
|
988
|
+
|
|
989
|
+
/**
|
|
990
|
+
* optional string protocol_id = 5;
|
|
991
|
+
* @return {string}
|
|
992
|
+
*/
|
|
993
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.prototype.getProtocolId = function() {
|
|
994
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
995
|
+
};
|
|
996
|
+
|
|
997
|
+
|
|
998
|
+
/**
|
|
999
|
+
* @param {string} value
|
|
1000
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData} returns this
|
|
1001
|
+
*/
|
|
1002
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.prototype.setProtocolId = function(value) {
|
|
1003
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
1004
|
+
};
|
|
1005
|
+
|
|
1006
|
+
|
|
1007
|
+
/**
|
|
1008
|
+
* optional string protocol_name = 6;
|
|
1009
|
+
* @return {string}
|
|
1010
|
+
*/
|
|
1011
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.prototype.getProtocolName = function() {
|
|
1012
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
1013
|
+
};
|
|
1014
|
+
|
|
1015
|
+
|
|
1016
|
+
/**
|
|
1017
|
+
* @param {string} value
|
|
1018
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData} returns this
|
|
1019
|
+
*/
|
|
1020
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.prototype.setProtocolName = function(value) {
|
|
1021
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
1022
|
+
};
|
|
1023
|
+
|
|
1024
|
+
|
|
1025
|
+
/**
|
|
1026
|
+
* optional uint32 port = 7;
|
|
1027
|
+
* @return {number}
|
|
1028
|
+
*/
|
|
1029
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.prototype.getPort = function() {
|
|
1030
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
1031
|
+
};
|
|
1032
|
+
|
|
1033
|
+
|
|
1034
|
+
/**
|
|
1035
|
+
* @param {number} value
|
|
1036
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData} returns this
|
|
1037
|
+
*/
|
|
1038
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.prototype.setPort = function(value) {
|
|
1039
|
+
return jspb.Message.setProto3IntField(this, 7, value);
|
|
1040
|
+
};
|
|
1041
|
+
|
|
1042
|
+
|
|
1043
|
+
/**
|
|
1044
|
+
* optional NetworkProtocol network_protocol = 8;
|
|
1045
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.NetworkProtocol}
|
|
1046
|
+
*/
|
|
1047
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.prototype.getNetworkProtocol = function() {
|
|
1048
|
+
return /** @type {!proto.com.lansweeper.discovery.sensor.ot.v1.NetworkProtocol} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
1049
|
+
};
|
|
1050
|
+
|
|
1051
|
+
|
|
1052
|
+
/**
|
|
1053
|
+
* @param {!proto.com.lansweeper.discovery.sensor.ot.v1.NetworkProtocol} value
|
|
1054
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData} returns this
|
|
1055
|
+
*/
|
|
1056
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.prototype.setNetworkProtocol = function(value) {
|
|
1057
|
+
return jspb.Message.setProto3EnumField(this, 8, value);
|
|
1058
|
+
};
|
|
1059
|
+
|
|
1060
|
+
|
|
1061
|
+
/**
|
|
1062
|
+
* optional google.protobuf.Timestamp last_tried = 9;
|
|
1063
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
1064
|
+
*/
|
|
1065
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.prototype.getLastTried = function() {
|
|
1066
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
1067
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9));
|
|
1068
|
+
};
|
|
1069
|
+
|
|
1070
|
+
|
|
1071
|
+
/**
|
|
1072
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
1073
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData} returns this
|
|
1074
|
+
*/
|
|
1075
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.prototype.setLastTried = function(value) {
|
|
1076
|
+
return jspb.Message.setWrapperField(this, 9, value);
|
|
1077
|
+
};
|
|
1078
|
+
|
|
1079
|
+
|
|
1080
|
+
/**
|
|
1081
|
+
* Clears the message field making it undefined.
|
|
1082
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData} returns this
|
|
1083
|
+
*/
|
|
1084
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.prototype.clearLastTried = function() {
|
|
1085
|
+
return this.setLastTried(undefined);
|
|
1086
|
+
};
|
|
1087
|
+
|
|
1088
|
+
|
|
1089
|
+
/**
|
|
1090
|
+
* Returns whether this field is set.
|
|
1091
|
+
* @return {boolean}
|
|
1092
|
+
*/
|
|
1093
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.prototype.hasLastTried = function() {
|
|
1094
|
+
return jspb.Message.getField(this, 9) != null;
|
|
1095
|
+
};
|
|
1096
|
+
|
|
1097
|
+
|
|
1098
|
+
/**
|
|
1099
|
+
* optional google.protobuf.Timestamp last_scan = 10;
|
|
1100
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
1101
|
+
*/
|
|
1102
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.prototype.getLastScan = function() {
|
|
1103
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
1104
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10));
|
|
1105
|
+
};
|
|
1106
|
+
|
|
1107
|
+
|
|
1108
|
+
/**
|
|
1109
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
1110
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData} returns this
|
|
1111
|
+
*/
|
|
1112
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.prototype.setLastScan = function(value) {
|
|
1113
|
+
return jspb.Message.setWrapperField(this, 10, value);
|
|
1114
|
+
};
|
|
1115
|
+
|
|
1116
|
+
|
|
1117
|
+
/**
|
|
1118
|
+
* Clears the message field making it undefined.
|
|
1119
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData} returns this
|
|
1120
|
+
*/
|
|
1121
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.prototype.clearLastScan = function() {
|
|
1122
|
+
return this.setLastScan(undefined);
|
|
1123
|
+
};
|
|
1124
|
+
|
|
1125
|
+
|
|
1126
|
+
/**
|
|
1127
|
+
* Returns whether this field is set.
|
|
1128
|
+
* @return {boolean}
|
|
1129
|
+
*/
|
|
1130
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.OtScanConfigData.prototype.hasLastScan = function() {
|
|
1131
|
+
return jspb.Message.getField(this, 10) != null;
|
|
1132
|
+
};
|
|
1133
|
+
|
|
1134
|
+
|
|
1135
|
+
|
|
1136
|
+
/**
|
|
1137
|
+
* List of repeated fields within this message type.
|
|
1138
|
+
* @private {!Array<number>}
|
|
1139
|
+
* @const
|
|
1140
|
+
*/
|
|
1141
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackData.repeatedFields_ = [1];
|
|
1142
|
+
|
|
1143
|
+
|
|
1144
|
+
|
|
1145
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1146
|
+
/**
|
|
1147
|
+
* Creates an object representation of this proto.
|
|
1148
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1149
|
+
* Optional fields that are not set will be set to undefined.
|
|
1150
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1151
|
+
* For the list of reserved names please see:
|
|
1152
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1153
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1154
|
+
* JSPB instance for transitional soy proto support:
|
|
1155
|
+
* http://goto/soy-param-migration
|
|
1156
|
+
* @return {!Object}
|
|
1157
|
+
*/
|
|
1158
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackData.prototype.toObject = function(opt_includeInstance) {
|
|
1159
|
+
return proto.com.lansweeper.discovery.sensor.ot.v1.RackData.toObject(opt_includeInstance, this);
|
|
1160
|
+
};
|
|
1161
|
+
|
|
1162
|
+
|
|
1163
|
+
/**
|
|
1164
|
+
* Static version of the {@see toObject} method.
|
|
1165
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1166
|
+
* the JSPB instance for transitional soy proto support:
|
|
1167
|
+
* http://goto/soy-param-migration
|
|
1168
|
+
* @param {!proto.com.lansweeper.discovery.sensor.ot.v1.RackData} msg The msg instance to transform.
|
|
1169
|
+
* @return {!Object}
|
|
1170
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1171
|
+
*/
|
|
1172
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackData.toObject = function(includeInstance, msg) {
|
|
1173
|
+
var f, obj = {
|
|
1174
|
+
entriesList: jspb.Message.toObjectList(msg.getEntriesList(),
|
|
1175
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.toObject, includeInstance)
|
|
1176
|
+
};
|
|
1177
|
+
|
|
1178
|
+
if (includeInstance) {
|
|
1179
|
+
obj.$jspbMessageInstance = msg;
|
|
1180
|
+
}
|
|
1181
|
+
return obj;
|
|
1182
|
+
};
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
|
|
1186
|
+
/**
|
|
1187
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1188
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1189
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.RackData}
|
|
1190
|
+
*/
|
|
1191
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackData.deserializeBinary = function(bytes) {
|
|
1192
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1193
|
+
var msg = new proto.com.lansweeper.discovery.sensor.ot.v1.RackData;
|
|
1194
|
+
return proto.com.lansweeper.discovery.sensor.ot.v1.RackData.deserializeBinaryFromReader(msg, reader);
|
|
1195
|
+
};
|
|
1196
|
+
|
|
1197
|
+
|
|
1198
|
+
/**
|
|
1199
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1200
|
+
* given reader into the given message object.
|
|
1201
|
+
* @param {!proto.com.lansweeper.discovery.sensor.ot.v1.RackData} msg The message object to deserialize into.
|
|
1202
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1203
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.RackData}
|
|
1204
|
+
*/
|
|
1205
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackData.deserializeBinaryFromReader = function(msg, reader) {
|
|
1206
|
+
while (reader.nextField()) {
|
|
1207
|
+
if (reader.isEndGroup()) {
|
|
1208
|
+
break;
|
|
1209
|
+
}
|
|
1210
|
+
var field = reader.getFieldNumber();
|
|
1211
|
+
switch (field) {
|
|
1212
|
+
case 1:
|
|
1213
|
+
var value = new proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig;
|
|
1214
|
+
reader.readMessage(value,proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.deserializeBinaryFromReader);
|
|
1215
|
+
msg.addEntries(value);
|
|
1216
|
+
break;
|
|
1217
|
+
default:
|
|
1218
|
+
reader.skipField();
|
|
1219
|
+
break;
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
return msg;
|
|
1223
|
+
};
|
|
1224
|
+
|
|
1225
|
+
|
|
1226
|
+
/**
|
|
1227
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1228
|
+
* @return {!Uint8Array}
|
|
1229
|
+
*/
|
|
1230
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackData.prototype.serializeBinary = function() {
|
|
1231
|
+
var writer = new jspb.BinaryWriter();
|
|
1232
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackData.serializeBinaryToWriter(this, writer);
|
|
1233
|
+
return writer.getResultBuffer();
|
|
1234
|
+
};
|
|
1235
|
+
|
|
1236
|
+
|
|
1237
|
+
/**
|
|
1238
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1239
|
+
* format), writing to the given BinaryWriter.
|
|
1240
|
+
* @param {!proto.com.lansweeper.discovery.sensor.ot.v1.RackData} message
|
|
1241
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1242
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1243
|
+
*/
|
|
1244
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackData.serializeBinaryToWriter = function(message, writer) {
|
|
1245
|
+
var f = undefined;
|
|
1246
|
+
f = message.getEntriesList();
|
|
1247
|
+
if (f.length > 0) {
|
|
1248
|
+
writer.writeRepeatedMessage(
|
|
1249
|
+
1,
|
|
1250
|
+
f,
|
|
1251
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.serializeBinaryToWriter
|
|
1252
|
+
);
|
|
1253
|
+
}
|
|
1254
|
+
};
|
|
1255
|
+
|
|
1256
|
+
|
|
1257
|
+
/**
|
|
1258
|
+
* repeated RackConfig entries = 1;
|
|
1259
|
+
* @return {!Array<!proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig>}
|
|
1260
|
+
*/
|
|
1261
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackData.prototype.getEntriesList = function() {
|
|
1262
|
+
return /** @type{!Array<!proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig>} */ (
|
|
1263
|
+
jspb.Message.getRepeatedWrapperField(this, proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig, 1));
|
|
1264
|
+
};
|
|
1265
|
+
|
|
1266
|
+
|
|
1267
|
+
/**
|
|
1268
|
+
* @param {!Array<!proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig>} value
|
|
1269
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.RackData} returns this
|
|
1270
|
+
*/
|
|
1271
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackData.prototype.setEntriesList = function(value) {
|
|
1272
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
1273
|
+
};
|
|
1274
|
+
|
|
1275
|
+
|
|
1276
|
+
/**
|
|
1277
|
+
* @param {!proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig=} opt_value
|
|
1278
|
+
* @param {number=} opt_index
|
|
1279
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig}
|
|
1280
|
+
*/
|
|
1281
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackData.prototype.addEntries = function(opt_value, opt_index) {
|
|
1282
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig, opt_index);
|
|
1283
|
+
};
|
|
1284
|
+
|
|
1285
|
+
|
|
1286
|
+
/**
|
|
1287
|
+
* Clears the list making it empty but non-null.
|
|
1288
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.RackData} returns this
|
|
1289
|
+
*/
|
|
1290
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackData.prototype.clearEntriesList = function() {
|
|
1291
|
+
return this.setEntriesList([]);
|
|
1292
|
+
};
|
|
1293
|
+
|
|
1294
|
+
|
|
1295
|
+
|
|
1296
|
+
/**
|
|
1297
|
+
* List of repeated fields within this message type.
|
|
1298
|
+
* @private {!Array<number>}
|
|
1299
|
+
* @const
|
|
1300
|
+
*/
|
|
1301
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.repeatedFields_ = [4];
|
|
1302
|
+
|
|
1303
|
+
|
|
1304
|
+
|
|
1305
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1306
|
+
/**
|
|
1307
|
+
* Creates an object representation of this proto.
|
|
1308
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1309
|
+
* Optional fields that are not set will be set to undefined.
|
|
1310
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1311
|
+
* For the list of reserved names please see:
|
|
1312
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1313
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1314
|
+
* JSPB instance for transitional soy proto support:
|
|
1315
|
+
* http://goto/soy-param-migration
|
|
1316
|
+
* @return {!Object}
|
|
1317
|
+
*/
|
|
1318
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.prototype.toObject = function(opt_includeInstance) {
|
|
1319
|
+
return proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.toObject(opt_includeInstance, this);
|
|
1320
|
+
};
|
|
1321
|
+
|
|
1322
|
+
|
|
1323
|
+
/**
|
|
1324
|
+
* Static version of the {@see toObject} method.
|
|
1325
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1326
|
+
* the JSPB instance for transitional soy proto support:
|
|
1327
|
+
* http://goto/soy-param-migration
|
|
1328
|
+
* @param {!proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig} msg The msg instance to transform.
|
|
1329
|
+
* @return {!Object}
|
|
1330
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1331
|
+
*/
|
|
1332
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.toObject = function(includeInstance, msg) {
|
|
1333
|
+
var f, obj = {
|
|
1334
|
+
rack: (f = msg.getRack()) && google_protobuf_wrappers_pb.UInt32Value.toObject(includeInstance, f),
|
|
1335
|
+
rackName: (f = msg.getRackName()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
|
|
1336
|
+
rackSize: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
1337
|
+
modulesList: jspb.Message.toObjectList(msg.getModulesList(),
|
|
1338
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.toObject, includeInstance)
|
|
1339
|
+
};
|
|
1340
|
+
|
|
1341
|
+
if (includeInstance) {
|
|
1342
|
+
obj.$jspbMessageInstance = msg;
|
|
1343
|
+
}
|
|
1344
|
+
return obj;
|
|
1345
|
+
};
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
|
|
1349
|
+
/**
|
|
1350
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1351
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1352
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig}
|
|
1353
|
+
*/
|
|
1354
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.deserializeBinary = function(bytes) {
|
|
1355
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1356
|
+
var msg = new proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig;
|
|
1357
|
+
return proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.deserializeBinaryFromReader(msg, reader);
|
|
1358
|
+
};
|
|
1359
|
+
|
|
1360
|
+
|
|
1361
|
+
/**
|
|
1362
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1363
|
+
* given reader into the given message object.
|
|
1364
|
+
* @param {!proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig} msg The message object to deserialize into.
|
|
1365
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1366
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig}
|
|
1367
|
+
*/
|
|
1368
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.deserializeBinaryFromReader = function(msg, reader) {
|
|
1369
|
+
while (reader.nextField()) {
|
|
1370
|
+
if (reader.isEndGroup()) {
|
|
1371
|
+
break;
|
|
1372
|
+
}
|
|
1373
|
+
var field = reader.getFieldNumber();
|
|
1374
|
+
switch (field) {
|
|
1375
|
+
case 1:
|
|
1376
|
+
var value = new google_protobuf_wrappers_pb.UInt32Value;
|
|
1377
|
+
reader.readMessage(value,google_protobuf_wrappers_pb.UInt32Value.deserializeBinaryFromReader);
|
|
1378
|
+
msg.setRack(value);
|
|
1379
|
+
break;
|
|
1380
|
+
case 2:
|
|
1381
|
+
var value = new google_protobuf_wrappers_pb.StringValue;
|
|
1382
|
+
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
|
|
1383
|
+
msg.setRackName(value);
|
|
1384
|
+
break;
|
|
1385
|
+
case 3:
|
|
1386
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
1387
|
+
msg.setRackSize(value);
|
|
1388
|
+
break;
|
|
1389
|
+
case 4:
|
|
1390
|
+
var value = new proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData;
|
|
1391
|
+
reader.readMessage(value,proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.deserializeBinaryFromReader);
|
|
1392
|
+
msg.addModules(value);
|
|
1393
|
+
break;
|
|
1394
|
+
default:
|
|
1395
|
+
reader.skipField();
|
|
1396
|
+
break;
|
|
1397
|
+
}
|
|
1398
|
+
}
|
|
1399
|
+
return msg;
|
|
1400
|
+
};
|
|
1401
|
+
|
|
1402
|
+
|
|
1403
|
+
/**
|
|
1404
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1405
|
+
* @return {!Uint8Array}
|
|
1406
|
+
*/
|
|
1407
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.prototype.serializeBinary = function() {
|
|
1408
|
+
var writer = new jspb.BinaryWriter();
|
|
1409
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.serializeBinaryToWriter(this, writer);
|
|
1410
|
+
return writer.getResultBuffer();
|
|
1411
|
+
};
|
|
1412
|
+
|
|
1413
|
+
|
|
1414
|
+
/**
|
|
1415
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1416
|
+
* format), writing to the given BinaryWriter.
|
|
1417
|
+
* @param {!proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig} message
|
|
1418
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1419
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1420
|
+
*/
|
|
1421
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.serializeBinaryToWriter = function(message, writer) {
|
|
1422
|
+
var f = undefined;
|
|
1423
|
+
f = message.getRack();
|
|
1424
|
+
if (f != null) {
|
|
1425
|
+
writer.writeMessage(
|
|
1426
|
+
1,
|
|
1427
|
+
f,
|
|
1428
|
+
google_protobuf_wrappers_pb.UInt32Value.serializeBinaryToWriter
|
|
1429
|
+
);
|
|
1430
|
+
}
|
|
1431
|
+
f = message.getRackName();
|
|
1432
|
+
if (f != null) {
|
|
1433
|
+
writer.writeMessage(
|
|
1434
|
+
2,
|
|
1435
|
+
f,
|
|
1436
|
+
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
|
|
1437
|
+
);
|
|
1438
|
+
}
|
|
1439
|
+
f = message.getRackSize();
|
|
1440
|
+
if (f !== 0) {
|
|
1441
|
+
writer.writeUint32(
|
|
1442
|
+
3,
|
|
1443
|
+
f
|
|
1444
|
+
);
|
|
1445
|
+
}
|
|
1446
|
+
f = message.getModulesList();
|
|
1447
|
+
if (f.length > 0) {
|
|
1448
|
+
writer.writeRepeatedMessage(
|
|
1449
|
+
4,
|
|
1450
|
+
f,
|
|
1451
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.serializeBinaryToWriter
|
|
1452
|
+
);
|
|
1453
|
+
}
|
|
1454
|
+
};
|
|
1455
|
+
|
|
1456
|
+
|
|
1457
|
+
/**
|
|
1458
|
+
* optional google.protobuf.UInt32Value rack = 1;
|
|
1459
|
+
* @return {?proto.google.protobuf.UInt32Value}
|
|
1460
|
+
*/
|
|
1461
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.prototype.getRack = function() {
|
|
1462
|
+
return /** @type{?proto.google.protobuf.UInt32Value} */ (
|
|
1463
|
+
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt32Value, 1));
|
|
1464
|
+
};
|
|
1465
|
+
|
|
1466
|
+
|
|
1467
|
+
/**
|
|
1468
|
+
* @param {?proto.google.protobuf.UInt32Value|undefined} value
|
|
1469
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig} returns this
|
|
1470
|
+
*/
|
|
1471
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.prototype.setRack = function(value) {
|
|
1472
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
1473
|
+
};
|
|
1474
|
+
|
|
1475
|
+
|
|
1476
|
+
/**
|
|
1477
|
+
* Clears the message field making it undefined.
|
|
1478
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig} returns this
|
|
1479
|
+
*/
|
|
1480
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.prototype.clearRack = function() {
|
|
1481
|
+
return this.setRack(undefined);
|
|
1482
|
+
};
|
|
1483
|
+
|
|
1484
|
+
|
|
1485
|
+
/**
|
|
1486
|
+
* Returns whether this field is set.
|
|
1487
|
+
* @return {boolean}
|
|
1488
|
+
*/
|
|
1489
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.prototype.hasRack = function() {
|
|
1490
|
+
return jspb.Message.getField(this, 1) != null;
|
|
1491
|
+
};
|
|
1492
|
+
|
|
1493
|
+
|
|
1494
|
+
/**
|
|
1495
|
+
* optional google.protobuf.StringValue rack_name = 2;
|
|
1496
|
+
* @return {?proto.google.protobuf.StringValue}
|
|
1497
|
+
*/
|
|
1498
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.prototype.getRackName = function() {
|
|
1499
|
+
return /** @type{?proto.google.protobuf.StringValue} */ (
|
|
1500
|
+
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 2));
|
|
1501
|
+
};
|
|
1502
|
+
|
|
1503
|
+
|
|
1504
|
+
/**
|
|
1505
|
+
* @param {?proto.google.protobuf.StringValue|undefined} value
|
|
1506
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig} returns this
|
|
1507
|
+
*/
|
|
1508
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.prototype.setRackName = function(value) {
|
|
1509
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
1510
|
+
};
|
|
1511
|
+
|
|
1512
|
+
|
|
1513
|
+
/**
|
|
1514
|
+
* Clears the message field making it undefined.
|
|
1515
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig} returns this
|
|
1516
|
+
*/
|
|
1517
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.prototype.clearRackName = function() {
|
|
1518
|
+
return this.setRackName(undefined);
|
|
1519
|
+
};
|
|
1520
|
+
|
|
1521
|
+
|
|
1522
|
+
/**
|
|
1523
|
+
* Returns whether this field is set.
|
|
1524
|
+
* @return {boolean}
|
|
1525
|
+
*/
|
|
1526
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.prototype.hasRackName = function() {
|
|
1527
|
+
return jspb.Message.getField(this, 2) != null;
|
|
1528
|
+
};
|
|
1529
|
+
|
|
1530
|
+
|
|
1531
|
+
/**
|
|
1532
|
+
* optional uint32 rack_size = 3;
|
|
1533
|
+
* @return {number}
|
|
1534
|
+
*/
|
|
1535
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.prototype.getRackSize = function() {
|
|
1536
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
1537
|
+
};
|
|
1538
|
+
|
|
1539
|
+
|
|
1540
|
+
/**
|
|
1541
|
+
* @param {number} value
|
|
1542
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig} returns this
|
|
1543
|
+
*/
|
|
1544
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.prototype.setRackSize = function(value) {
|
|
1545
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
1546
|
+
};
|
|
1547
|
+
|
|
1548
|
+
|
|
1549
|
+
/**
|
|
1550
|
+
* repeated ModuleData modules = 4;
|
|
1551
|
+
* @return {!Array<!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData>}
|
|
1552
|
+
*/
|
|
1553
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.prototype.getModulesList = function() {
|
|
1554
|
+
return /** @type{!Array<!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData>} */ (
|
|
1555
|
+
jspb.Message.getRepeatedWrapperField(this, proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData, 4));
|
|
1556
|
+
};
|
|
1557
|
+
|
|
1558
|
+
|
|
1559
|
+
/**
|
|
1560
|
+
* @param {!Array<!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData>} value
|
|
1561
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig} returns this
|
|
1562
|
+
*/
|
|
1563
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.prototype.setModulesList = function(value) {
|
|
1564
|
+
return jspb.Message.setRepeatedWrapperField(this, 4, value);
|
|
1565
|
+
};
|
|
1566
|
+
|
|
1567
|
+
|
|
1568
|
+
/**
|
|
1569
|
+
* @param {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData=} opt_value
|
|
1570
|
+
* @param {number=} opt_index
|
|
1571
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData}
|
|
1572
|
+
*/
|
|
1573
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.prototype.addModules = function(opt_value, opt_index) {
|
|
1574
|
+
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData, opt_index);
|
|
1575
|
+
};
|
|
1576
|
+
|
|
1577
|
+
|
|
1578
|
+
/**
|
|
1579
|
+
* Clears the list making it empty but non-null.
|
|
1580
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig} returns this
|
|
1581
|
+
*/
|
|
1582
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.RackConfig.prototype.clearModulesList = function() {
|
|
1583
|
+
return this.setModulesList([]);
|
|
1584
|
+
};
|
|
1585
|
+
|
|
1586
|
+
|
|
1587
|
+
|
|
1588
|
+
/**
|
|
1589
|
+
* List of repeated fields within this message type.
|
|
1590
|
+
* @private {!Array<number>}
|
|
1591
|
+
* @const
|
|
1592
|
+
*/
|
|
1593
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.repeatedFields_ = [11];
|
|
1594
|
+
|
|
1595
|
+
|
|
1596
|
+
|
|
1597
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1598
|
+
/**
|
|
1599
|
+
* Creates an object representation of this proto.
|
|
1600
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1601
|
+
* Optional fields that are not set will be set to undefined.
|
|
1602
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1603
|
+
* For the list of reserved names please see:
|
|
1604
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1605
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1606
|
+
* JSPB instance for transitional soy proto support:
|
|
1607
|
+
* http://goto/soy-param-migration
|
|
1608
|
+
* @return {!Object}
|
|
1609
|
+
*/
|
|
1610
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.toObject = function(opt_includeInstance) {
|
|
1611
|
+
return proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.toObject(opt_includeInstance, this);
|
|
1612
|
+
};
|
|
1613
|
+
|
|
1614
|
+
|
|
1615
|
+
/**
|
|
1616
|
+
* Static version of the {@see toObject} method.
|
|
1617
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1618
|
+
* the JSPB instance for transitional soy proto support:
|
|
1619
|
+
* http://goto/soy-param-migration
|
|
1620
|
+
* @param {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData} msg The msg instance to transform.
|
|
1621
|
+
* @return {!Object}
|
|
1622
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1623
|
+
*/
|
|
1624
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.toObject = function(includeInstance, msg) {
|
|
1625
|
+
var f, obj = {
|
|
1626
|
+
componentType: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
1627
|
+
name: (f = msg.getName()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
|
|
1628
|
+
manufacturer: (f = msg.getManufacturer()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
|
|
1629
|
+
serialNumber: (f = msg.getSerialNumber()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
|
|
1630
|
+
model: (f = msg.getModel()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
|
|
1631
|
+
firmware: (f = msg.getFirmware()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
|
|
1632
|
+
partNumber: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
1633
|
+
slot: (f = msg.getSlot()) && google_protobuf_wrappers_pb.UInt32Value.toObject(includeInstance, f),
|
|
1634
|
+
slotWidth: (f = msg.getSlotWidth()) && google_protobuf_wrappers_pb.UInt32Value.toObject(includeInstance, f),
|
|
1635
|
+
extendedInformationList: jspb.Message.toObjectList(msg.getExtendedInformationList(),
|
|
1636
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.toObject, includeInstance)
|
|
1637
|
+
};
|
|
1638
|
+
|
|
1639
|
+
if (includeInstance) {
|
|
1640
|
+
obj.$jspbMessageInstance = msg;
|
|
1641
|
+
}
|
|
1642
|
+
return obj;
|
|
1643
|
+
};
|
|
1644
|
+
}
|
|
1645
|
+
|
|
1646
|
+
|
|
1647
|
+
/**
|
|
1648
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1649
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1650
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData}
|
|
1651
|
+
*/
|
|
1652
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.deserializeBinary = function(bytes) {
|
|
1653
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1654
|
+
var msg = new proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData;
|
|
1655
|
+
return proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.deserializeBinaryFromReader(msg, reader);
|
|
1656
|
+
};
|
|
1657
|
+
|
|
1658
|
+
|
|
1659
|
+
/**
|
|
1660
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1661
|
+
* given reader into the given message object.
|
|
1662
|
+
* @param {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData} msg The message object to deserialize into.
|
|
1663
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1664
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData}
|
|
1665
|
+
*/
|
|
1666
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.deserializeBinaryFromReader = function(msg, reader) {
|
|
1667
|
+
while (reader.nextField()) {
|
|
1668
|
+
if (reader.isEndGroup()) {
|
|
1669
|
+
break;
|
|
1670
|
+
}
|
|
1671
|
+
var field = reader.getFieldNumber();
|
|
1672
|
+
switch (field) {
|
|
1673
|
+
case 1:
|
|
1674
|
+
var value = /** @type {!proto.com.lansweeper.discovery.sensor.ot.v1.ComponentType} */ (reader.readEnum());
|
|
1675
|
+
msg.setComponentType(value);
|
|
1676
|
+
break;
|
|
1677
|
+
case 2:
|
|
1678
|
+
var value = new google_protobuf_wrappers_pb.StringValue;
|
|
1679
|
+
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
|
|
1680
|
+
msg.setName(value);
|
|
1681
|
+
break;
|
|
1682
|
+
case 4:
|
|
1683
|
+
var value = new google_protobuf_wrappers_pb.StringValue;
|
|
1684
|
+
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
|
|
1685
|
+
msg.setManufacturer(value);
|
|
1686
|
+
break;
|
|
1687
|
+
case 5:
|
|
1688
|
+
var value = new google_protobuf_wrappers_pb.StringValue;
|
|
1689
|
+
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
|
|
1690
|
+
msg.setSerialNumber(value);
|
|
1691
|
+
break;
|
|
1692
|
+
case 6:
|
|
1693
|
+
var value = new google_protobuf_wrappers_pb.StringValue;
|
|
1694
|
+
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
|
|
1695
|
+
msg.setModel(value);
|
|
1696
|
+
break;
|
|
1697
|
+
case 7:
|
|
1698
|
+
var value = new google_protobuf_wrappers_pb.StringValue;
|
|
1699
|
+
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
|
|
1700
|
+
msg.setFirmware(value);
|
|
1701
|
+
break;
|
|
1702
|
+
case 8:
|
|
1703
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1704
|
+
msg.setPartNumber(value);
|
|
1705
|
+
break;
|
|
1706
|
+
case 9:
|
|
1707
|
+
var value = new google_protobuf_wrappers_pb.UInt32Value;
|
|
1708
|
+
reader.readMessage(value,google_protobuf_wrappers_pb.UInt32Value.deserializeBinaryFromReader);
|
|
1709
|
+
msg.setSlot(value);
|
|
1710
|
+
break;
|
|
1711
|
+
case 10:
|
|
1712
|
+
var value = new google_protobuf_wrappers_pb.UInt32Value;
|
|
1713
|
+
reader.readMessage(value,google_protobuf_wrappers_pb.UInt32Value.deserializeBinaryFromReader);
|
|
1714
|
+
msg.setSlotWidth(value);
|
|
1715
|
+
break;
|
|
1716
|
+
case 11:
|
|
1717
|
+
var value = new proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation;
|
|
1718
|
+
reader.readMessage(value,proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.deserializeBinaryFromReader);
|
|
1719
|
+
msg.addExtendedInformation(value);
|
|
1720
|
+
break;
|
|
1721
|
+
default:
|
|
1722
|
+
reader.skipField();
|
|
1723
|
+
break;
|
|
1724
|
+
}
|
|
1725
|
+
}
|
|
1726
|
+
return msg;
|
|
1727
|
+
};
|
|
1728
|
+
|
|
1729
|
+
|
|
1730
|
+
/**
|
|
1731
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1732
|
+
* @return {!Uint8Array}
|
|
1733
|
+
*/
|
|
1734
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.serializeBinary = function() {
|
|
1735
|
+
var writer = new jspb.BinaryWriter();
|
|
1736
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.serializeBinaryToWriter(this, writer);
|
|
1737
|
+
return writer.getResultBuffer();
|
|
1738
|
+
};
|
|
1739
|
+
|
|
1740
|
+
|
|
1741
|
+
/**
|
|
1742
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1743
|
+
* format), writing to the given BinaryWriter.
|
|
1744
|
+
* @param {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData} message
|
|
1745
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1746
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1747
|
+
*/
|
|
1748
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.serializeBinaryToWriter = function(message, writer) {
|
|
1749
|
+
var f = undefined;
|
|
1750
|
+
f = message.getComponentType();
|
|
1751
|
+
if (f !== 0.0) {
|
|
1752
|
+
writer.writeEnum(
|
|
1753
|
+
1,
|
|
1754
|
+
f
|
|
1755
|
+
);
|
|
1756
|
+
}
|
|
1757
|
+
f = message.getName();
|
|
1758
|
+
if (f != null) {
|
|
1759
|
+
writer.writeMessage(
|
|
1760
|
+
2,
|
|
1761
|
+
f,
|
|
1762
|
+
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
|
|
1763
|
+
);
|
|
1764
|
+
}
|
|
1765
|
+
f = message.getManufacturer();
|
|
1766
|
+
if (f != null) {
|
|
1767
|
+
writer.writeMessage(
|
|
1768
|
+
4,
|
|
1769
|
+
f,
|
|
1770
|
+
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
|
|
1771
|
+
);
|
|
1772
|
+
}
|
|
1773
|
+
f = message.getSerialNumber();
|
|
1774
|
+
if (f != null) {
|
|
1775
|
+
writer.writeMessage(
|
|
1776
|
+
5,
|
|
1777
|
+
f,
|
|
1778
|
+
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
|
|
1779
|
+
);
|
|
1780
|
+
}
|
|
1781
|
+
f = message.getModel();
|
|
1782
|
+
if (f != null) {
|
|
1783
|
+
writer.writeMessage(
|
|
1784
|
+
6,
|
|
1785
|
+
f,
|
|
1786
|
+
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
|
|
1787
|
+
);
|
|
1788
|
+
}
|
|
1789
|
+
f = message.getFirmware();
|
|
1790
|
+
if (f != null) {
|
|
1791
|
+
writer.writeMessage(
|
|
1792
|
+
7,
|
|
1793
|
+
f,
|
|
1794
|
+
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
|
|
1795
|
+
);
|
|
1796
|
+
}
|
|
1797
|
+
f = message.getPartNumber();
|
|
1798
|
+
if (f.length > 0) {
|
|
1799
|
+
writer.writeString(
|
|
1800
|
+
8,
|
|
1801
|
+
f
|
|
1802
|
+
);
|
|
1803
|
+
}
|
|
1804
|
+
f = message.getSlot();
|
|
1805
|
+
if (f != null) {
|
|
1806
|
+
writer.writeMessage(
|
|
1807
|
+
9,
|
|
1808
|
+
f,
|
|
1809
|
+
google_protobuf_wrappers_pb.UInt32Value.serializeBinaryToWriter
|
|
1810
|
+
);
|
|
1811
|
+
}
|
|
1812
|
+
f = message.getSlotWidth();
|
|
1813
|
+
if (f != null) {
|
|
1814
|
+
writer.writeMessage(
|
|
1815
|
+
10,
|
|
1816
|
+
f,
|
|
1817
|
+
google_protobuf_wrappers_pb.UInt32Value.serializeBinaryToWriter
|
|
1818
|
+
);
|
|
1819
|
+
}
|
|
1820
|
+
f = message.getExtendedInformationList();
|
|
1821
|
+
if (f.length > 0) {
|
|
1822
|
+
writer.writeRepeatedMessage(
|
|
1823
|
+
11,
|
|
1824
|
+
f,
|
|
1825
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.serializeBinaryToWriter
|
|
1826
|
+
);
|
|
1827
|
+
}
|
|
1828
|
+
};
|
|
1829
|
+
|
|
1830
|
+
|
|
1831
|
+
/**
|
|
1832
|
+
* optional ComponentType component_type = 1;
|
|
1833
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ComponentType}
|
|
1834
|
+
*/
|
|
1835
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.getComponentType = function() {
|
|
1836
|
+
return /** @type {!proto.com.lansweeper.discovery.sensor.ot.v1.ComponentType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
1837
|
+
};
|
|
1838
|
+
|
|
1839
|
+
|
|
1840
|
+
/**
|
|
1841
|
+
* @param {!proto.com.lansweeper.discovery.sensor.ot.v1.ComponentType} value
|
|
1842
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData} returns this
|
|
1843
|
+
*/
|
|
1844
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.setComponentType = function(value) {
|
|
1845
|
+
return jspb.Message.setProto3EnumField(this, 1, value);
|
|
1846
|
+
};
|
|
1847
|
+
|
|
1848
|
+
|
|
1849
|
+
/**
|
|
1850
|
+
* optional google.protobuf.StringValue name = 2;
|
|
1851
|
+
* @return {?proto.google.protobuf.StringValue}
|
|
1852
|
+
*/
|
|
1853
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.getName = function() {
|
|
1854
|
+
return /** @type{?proto.google.protobuf.StringValue} */ (
|
|
1855
|
+
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 2));
|
|
1856
|
+
};
|
|
1857
|
+
|
|
1858
|
+
|
|
1859
|
+
/**
|
|
1860
|
+
* @param {?proto.google.protobuf.StringValue|undefined} value
|
|
1861
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData} returns this
|
|
1862
|
+
*/
|
|
1863
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.setName = function(value) {
|
|
1864
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
1865
|
+
};
|
|
1866
|
+
|
|
1867
|
+
|
|
1868
|
+
/**
|
|
1869
|
+
* Clears the message field making it undefined.
|
|
1870
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData} returns this
|
|
1871
|
+
*/
|
|
1872
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.clearName = function() {
|
|
1873
|
+
return this.setName(undefined);
|
|
1874
|
+
};
|
|
1875
|
+
|
|
1876
|
+
|
|
1877
|
+
/**
|
|
1878
|
+
* Returns whether this field is set.
|
|
1879
|
+
* @return {boolean}
|
|
1880
|
+
*/
|
|
1881
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.hasName = function() {
|
|
1882
|
+
return jspb.Message.getField(this, 2) != null;
|
|
1883
|
+
};
|
|
1884
|
+
|
|
1885
|
+
|
|
1886
|
+
/**
|
|
1887
|
+
* optional google.protobuf.StringValue manufacturer = 4;
|
|
1888
|
+
* @return {?proto.google.protobuf.StringValue}
|
|
1889
|
+
*/
|
|
1890
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.getManufacturer = function() {
|
|
1891
|
+
return /** @type{?proto.google.protobuf.StringValue} */ (
|
|
1892
|
+
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 4));
|
|
1893
|
+
};
|
|
1894
|
+
|
|
1895
|
+
|
|
1896
|
+
/**
|
|
1897
|
+
* @param {?proto.google.protobuf.StringValue|undefined} value
|
|
1898
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData} returns this
|
|
1899
|
+
*/
|
|
1900
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.setManufacturer = function(value) {
|
|
1901
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
1902
|
+
};
|
|
1903
|
+
|
|
1904
|
+
|
|
1905
|
+
/**
|
|
1906
|
+
* Clears the message field making it undefined.
|
|
1907
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData} returns this
|
|
1908
|
+
*/
|
|
1909
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.clearManufacturer = function() {
|
|
1910
|
+
return this.setManufacturer(undefined);
|
|
1911
|
+
};
|
|
1912
|
+
|
|
1913
|
+
|
|
1914
|
+
/**
|
|
1915
|
+
* Returns whether this field is set.
|
|
1916
|
+
* @return {boolean}
|
|
1917
|
+
*/
|
|
1918
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.hasManufacturer = function() {
|
|
1919
|
+
return jspb.Message.getField(this, 4) != null;
|
|
1920
|
+
};
|
|
1921
|
+
|
|
1922
|
+
|
|
1923
|
+
/**
|
|
1924
|
+
* optional google.protobuf.StringValue serial_number = 5;
|
|
1925
|
+
* @return {?proto.google.protobuf.StringValue}
|
|
1926
|
+
*/
|
|
1927
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.getSerialNumber = function() {
|
|
1928
|
+
return /** @type{?proto.google.protobuf.StringValue} */ (
|
|
1929
|
+
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 5));
|
|
1930
|
+
};
|
|
1931
|
+
|
|
1932
|
+
|
|
1933
|
+
/**
|
|
1934
|
+
* @param {?proto.google.protobuf.StringValue|undefined} value
|
|
1935
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData} returns this
|
|
1936
|
+
*/
|
|
1937
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.setSerialNumber = function(value) {
|
|
1938
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
1939
|
+
};
|
|
1940
|
+
|
|
1941
|
+
|
|
1942
|
+
/**
|
|
1943
|
+
* Clears the message field making it undefined.
|
|
1944
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData} returns this
|
|
1945
|
+
*/
|
|
1946
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.clearSerialNumber = function() {
|
|
1947
|
+
return this.setSerialNumber(undefined);
|
|
1948
|
+
};
|
|
1949
|
+
|
|
1950
|
+
|
|
1951
|
+
/**
|
|
1952
|
+
* Returns whether this field is set.
|
|
1953
|
+
* @return {boolean}
|
|
1954
|
+
*/
|
|
1955
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.hasSerialNumber = function() {
|
|
1956
|
+
return jspb.Message.getField(this, 5) != null;
|
|
1957
|
+
};
|
|
1958
|
+
|
|
1959
|
+
|
|
1960
|
+
/**
|
|
1961
|
+
* optional google.protobuf.StringValue model = 6;
|
|
1962
|
+
* @return {?proto.google.protobuf.StringValue}
|
|
1963
|
+
*/
|
|
1964
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.getModel = function() {
|
|
1965
|
+
return /** @type{?proto.google.protobuf.StringValue} */ (
|
|
1966
|
+
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 6));
|
|
1967
|
+
};
|
|
1968
|
+
|
|
1969
|
+
|
|
1970
|
+
/**
|
|
1971
|
+
* @param {?proto.google.protobuf.StringValue|undefined} value
|
|
1972
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData} returns this
|
|
1973
|
+
*/
|
|
1974
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.setModel = function(value) {
|
|
1975
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
1976
|
+
};
|
|
1977
|
+
|
|
1978
|
+
|
|
1979
|
+
/**
|
|
1980
|
+
* Clears the message field making it undefined.
|
|
1981
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData} returns this
|
|
1982
|
+
*/
|
|
1983
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.clearModel = function() {
|
|
1984
|
+
return this.setModel(undefined);
|
|
1985
|
+
};
|
|
1986
|
+
|
|
1987
|
+
|
|
1988
|
+
/**
|
|
1989
|
+
* Returns whether this field is set.
|
|
1990
|
+
* @return {boolean}
|
|
1991
|
+
*/
|
|
1992
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.hasModel = function() {
|
|
1993
|
+
return jspb.Message.getField(this, 6) != null;
|
|
1994
|
+
};
|
|
1995
|
+
|
|
1996
|
+
|
|
1997
|
+
/**
|
|
1998
|
+
* optional google.protobuf.StringValue firmware = 7;
|
|
1999
|
+
* @return {?proto.google.protobuf.StringValue}
|
|
2000
|
+
*/
|
|
2001
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.getFirmware = function() {
|
|
2002
|
+
return /** @type{?proto.google.protobuf.StringValue} */ (
|
|
2003
|
+
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 7));
|
|
2004
|
+
};
|
|
2005
|
+
|
|
2006
|
+
|
|
2007
|
+
/**
|
|
2008
|
+
* @param {?proto.google.protobuf.StringValue|undefined} value
|
|
2009
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData} returns this
|
|
2010
|
+
*/
|
|
2011
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.setFirmware = function(value) {
|
|
2012
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
2013
|
+
};
|
|
2014
|
+
|
|
2015
|
+
|
|
2016
|
+
/**
|
|
2017
|
+
* Clears the message field making it undefined.
|
|
2018
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData} returns this
|
|
2019
|
+
*/
|
|
2020
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.clearFirmware = function() {
|
|
2021
|
+
return this.setFirmware(undefined);
|
|
2022
|
+
};
|
|
2023
|
+
|
|
2024
|
+
|
|
2025
|
+
/**
|
|
2026
|
+
* Returns whether this field is set.
|
|
2027
|
+
* @return {boolean}
|
|
2028
|
+
*/
|
|
2029
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.hasFirmware = function() {
|
|
2030
|
+
return jspb.Message.getField(this, 7) != null;
|
|
2031
|
+
};
|
|
2032
|
+
|
|
2033
|
+
|
|
2034
|
+
/**
|
|
2035
|
+
* optional string part_number = 8;
|
|
2036
|
+
* @return {string}
|
|
2037
|
+
*/
|
|
2038
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.getPartNumber = function() {
|
|
2039
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
2040
|
+
};
|
|
2041
|
+
|
|
2042
|
+
|
|
2043
|
+
/**
|
|
2044
|
+
* @param {string} value
|
|
2045
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData} returns this
|
|
2046
|
+
*/
|
|
2047
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.setPartNumber = function(value) {
|
|
2048
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
2049
|
+
};
|
|
2050
|
+
|
|
2051
|
+
|
|
2052
|
+
/**
|
|
2053
|
+
* optional google.protobuf.UInt32Value slot = 9;
|
|
2054
|
+
* @return {?proto.google.protobuf.UInt32Value}
|
|
2055
|
+
*/
|
|
2056
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.getSlot = function() {
|
|
2057
|
+
return /** @type{?proto.google.protobuf.UInt32Value} */ (
|
|
2058
|
+
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt32Value, 9));
|
|
2059
|
+
};
|
|
2060
|
+
|
|
2061
|
+
|
|
2062
|
+
/**
|
|
2063
|
+
* @param {?proto.google.protobuf.UInt32Value|undefined} value
|
|
2064
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData} returns this
|
|
2065
|
+
*/
|
|
2066
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.setSlot = function(value) {
|
|
2067
|
+
return jspb.Message.setWrapperField(this, 9, value);
|
|
2068
|
+
};
|
|
2069
|
+
|
|
2070
|
+
|
|
2071
|
+
/**
|
|
2072
|
+
* Clears the message field making it undefined.
|
|
2073
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData} returns this
|
|
2074
|
+
*/
|
|
2075
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.clearSlot = function() {
|
|
2076
|
+
return this.setSlot(undefined);
|
|
2077
|
+
};
|
|
2078
|
+
|
|
2079
|
+
|
|
2080
|
+
/**
|
|
2081
|
+
* Returns whether this field is set.
|
|
2082
|
+
* @return {boolean}
|
|
2083
|
+
*/
|
|
2084
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.hasSlot = function() {
|
|
2085
|
+
return jspb.Message.getField(this, 9) != null;
|
|
2086
|
+
};
|
|
2087
|
+
|
|
2088
|
+
|
|
2089
|
+
/**
|
|
2090
|
+
* optional google.protobuf.UInt32Value slot_width = 10;
|
|
2091
|
+
* @return {?proto.google.protobuf.UInt32Value}
|
|
2092
|
+
*/
|
|
2093
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.getSlotWidth = function() {
|
|
2094
|
+
return /** @type{?proto.google.protobuf.UInt32Value} */ (
|
|
2095
|
+
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt32Value, 10));
|
|
2096
|
+
};
|
|
2097
|
+
|
|
2098
|
+
|
|
2099
|
+
/**
|
|
2100
|
+
* @param {?proto.google.protobuf.UInt32Value|undefined} value
|
|
2101
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData} returns this
|
|
2102
|
+
*/
|
|
2103
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.setSlotWidth = function(value) {
|
|
2104
|
+
return jspb.Message.setWrapperField(this, 10, value);
|
|
2105
|
+
};
|
|
2106
|
+
|
|
2107
|
+
|
|
2108
|
+
/**
|
|
2109
|
+
* Clears the message field making it undefined.
|
|
2110
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData} returns this
|
|
2111
|
+
*/
|
|
2112
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.clearSlotWidth = function() {
|
|
2113
|
+
return this.setSlotWidth(undefined);
|
|
2114
|
+
};
|
|
2115
|
+
|
|
2116
|
+
|
|
2117
|
+
/**
|
|
2118
|
+
* Returns whether this field is set.
|
|
2119
|
+
* @return {boolean}
|
|
2120
|
+
*/
|
|
2121
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.hasSlotWidth = function() {
|
|
2122
|
+
return jspb.Message.getField(this, 10) != null;
|
|
2123
|
+
};
|
|
2124
|
+
|
|
2125
|
+
|
|
2126
|
+
/**
|
|
2127
|
+
* repeated ModuleExtendedInformation extended_information = 11;
|
|
2128
|
+
* @return {!Array<!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation>}
|
|
2129
|
+
*/
|
|
2130
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.getExtendedInformationList = function() {
|
|
2131
|
+
return /** @type{!Array<!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation>} */ (
|
|
2132
|
+
jspb.Message.getRepeatedWrapperField(this, proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation, 11));
|
|
2133
|
+
};
|
|
2134
|
+
|
|
2135
|
+
|
|
2136
|
+
/**
|
|
2137
|
+
* @param {!Array<!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation>} value
|
|
2138
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData} returns this
|
|
2139
|
+
*/
|
|
2140
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.setExtendedInformationList = function(value) {
|
|
2141
|
+
return jspb.Message.setRepeatedWrapperField(this, 11, value);
|
|
2142
|
+
};
|
|
2143
|
+
|
|
2144
|
+
|
|
2145
|
+
/**
|
|
2146
|
+
* @param {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation=} opt_value
|
|
2147
|
+
* @param {number=} opt_index
|
|
2148
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation}
|
|
2149
|
+
*/
|
|
2150
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.addExtendedInformation = function(opt_value, opt_index) {
|
|
2151
|
+
return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation, opt_index);
|
|
2152
|
+
};
|
|
2153
|
+
|
|
2154
|
+
|
|
2155
|
+
/**
|
|
2156
|
+
* Clears the list making it empty but non-null.
|
|
2157
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData} returns this
|
|
2158
|
+
*/
|
|
2159
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleData.prototype.clearExtendedInformationList = function() {
|
|
2160
|
+
return this.setExtendedInformationList([]);
|
|
2161
|
+
};
|
|
2162
|
+
|
|
2163
|
+
|
|
2164
|
+
|
|
2165
|
+
|
|
2166
|
+
|
|
2167
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2168
|
+
/**
|
|
2169
|
+
* Creates an object representation of this proto.
|
|
2170
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2171
|
+
* Optional fields that are not set will be set to undefined.
|
|
2172
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2173
|
+
* For the list of reserved names please see:
|
|
2174
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2175
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2176
|
+
* JSPB instance for transitional soy proto support:
|
|
2177
|
+
* http://goto/soy-param-migration
|
|
2178
|
+
* @return {!Object}
|
|
2179
|
+
*/
|
|
2180
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.prototype.toObject = function(opt_includeInstance) {
|
|
2181
|
+
return proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.toObject(opt_includeInstance, this);
|
|
2182
|
+
};
|
|
2183
|
+
|
|
2184
|
+
|
|
2185
|
+
/**
|
|
2186
|
+
* Static version of the {@see toObject} method.
|
|
2187
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2188
|
+
* the JSPB instance for transitional soy proto support:
|
|
2189
|
+
* http://goto/soy-param-migration
|
|
2190
|
+
* @param {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation} msg The msg instance to transform.
|
|
2191
|
+
* @return {!Object}
|
|
2192
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2193
|
+
*/
|
|
2194
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.toObject = function(includeInstance, msg) {
|
|
2195
|
+
var f, obj = {
|
|
2196
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2197
|
+
rootId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
2198
|
+
name: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
2199
|
+
value: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
2200
|
+
};
|
|
2201
|
+
|
|
2202
|
+
if (includeInstance) {
|
|
2203
|
+
obj.$jspbMessageInstance = msg;
|
|
2204
|
+
}
|
|
2205
|
+
return obj;
|
|
2206
|
+
};
|
|
2207
|
+
}
|
|
2208
|
+
|
|
2209
|
+
|
|
2210
|
+
/**
|
|
2211
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2212
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2213
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation}
|
|
2214
|
+
*/
|
|
2215
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.deserializeBinary = function(bytes) {
|
|
2216
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2217
|
+
var msg = new proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation;
|
|
2218
|
+
return proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.deserializeBinaryFromReader(msg, reader);
|
|
2219
|
+
};
|
|
2220
|
+
|
|
2221
|
+
|
|
2222
|
+
/**
|
|
2223
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2224
|
+
* given reader into the given message object.
|
|
2225
|
+
* @param {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation} msg The message object to deserialize into.
|
|
2226
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2227
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation}
|
|
2228
|
+
*/
|
|
2229
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.deserializeBinaryFromReader = function(msg, reader) {
|
|
2230
|
+
while (reader.nextField()) {
|
|
2231
|
+
if (reader.isEndGroup()) {
|
|
2232
|
+
break;
|
|
2233
|
+
}
|
|
2234
|
+
var field = reader.getFieldNumber();
|
|
2235
|
+
switch (field) {
|
|
2236
|
+
case 1:
|
|
2237
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2238
|
+
msg.setId(value);
|
|
2239
|
+
break;
|
|
2240
|
+
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
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2250
|
+
msg.setValue(value);
|
|
2251
|
+
break;
|
|
2252
|
+
default:
|
|
2253
|
+
reader.skipField();
|
|
2254
|
+
break;
|
|
2255
|
+
}
|
|
2256
|
+
}
|
|
2257
|
+
return msg;
|
|
2258
|
+
};
|
|
2259
|
+
|
|
2260
|
+
|
|
2261
|
+
/**
|
|
2262
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2263
|
+
* @return {!Uint8Array}
|
|
2264
|
+
*/
|
|
2265
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.prototype.serializeBinary = function() {
|
|
2266
|
+
var writer = new jspb.BinaryWriter();
|
|
2267
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.serializeBinaryToWriter(this, writer);
|
|
2268
|
+
return writer.getResultBuffer();
|
|
2269
|
+
};
|
|
2270
|
+
|
|
2271
|
+
|
|
2272
|
+
/**
|
|
2273
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2274
|
+
* format), writing to the given BinaryWriter.
|
|
2275
|
+
* @param {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation} message
|
|
2276
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2277
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2278
|
+
*/
|
|
2279
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.serializeBinaryToWriter = function(message, writer) {
|
|
2280
|
+
var f = undefined;
|
|
2281
|
+
f = message.getId();
|
|
2282
|
+
if (f.length > 0) {
|
|
2283
|
+
writer.writeString(
|
|
2284
|
+
1,
|
|
2285
|
+
f
|
|
2286
|
+
);
|
|
2287
|
+
}
|
|
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
|
+
f = message.getValue();
|
|
2303
|
+
if (f.length > 0) {
|
|
2304
|
+
writer.writeString(
|
|
2305
|
+
4,
|
|
2306
|
+
f
|
|
2307
|
+
);
|
|
2308
|
+
}
|
|
2309
|
+
};
|
|
2310
|
+
|
|
2311
|
+
|
|
2312
|
+
/**
|
|
2313
|
+
* optional string id = 1;
|
|
2314
|
+
* @return {string}
|
|
2315
|
+
*/
|
|
2316
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.prototype.getId = function() {
|
|
2317
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2318
|
+
};
|
|
2319
|
+
|
|
2320
|
+
|
|
2321
|
+
/**
|
|
2322
|
+
* @param {string} value
|
|
2323
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation} returns this
|
|
2324
|
+
*/
|
|
2325
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.prototype.setId = function(value) {
|
|
2326
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2327
|
+
};
|
|
2328
|
+
|
|
2329
|
+
|
|
2330
|
+
/**
|
|
2331
|
+
* optional string root_id = 2;
|
|
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;
|
|
2368
|
+
* @return {string}
|
|
2369
|
+
*/
|
|
2370
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.prototype.getValue = function() {
|
|
2371
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
2372
|
+
};
|
|
2373
|
+
|
|
2374
|
+
|
|
2375
|
+
/**
|
|
2376
|
+
* @param {string} value
|
|
2377
|
+
* @return {!proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation} returns this
|
|
2378
|
+
*/
|
|
2379
|
+
proto.com.lansweeper.discovery.sensor.ot.v1.ModuleExtendedInformation.prototype.setValue = function(value) {
|
|
2380
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
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
|
|
2408
|
+
};
|
|
2409
|
+
|
|
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
|
+
|
|
2419
|
+
goog.object.extend(exports, proto.com.lansweeper.discovery.sensor.ot.v1);
|