@lansweeper/discovery-sensor-proto 2.68.0 → 2.70.0

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