@aceplus/smartace-api 3.4.0-alpha.1 → 3.4.0-alpha.10

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,4723 @@
1
+ // source: spic.asset.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 =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
25
+ goog.object.extend(proto, google_protobuf_empty_pb);
26
+ var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
27
+ goog.object.extend(proto, google_protobuf_wrappers_pb);
28
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
29
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
30
+ var platform_location_pb = require('./platform.location_pb.js');
31
+ goog.object.extend(proto, platform_location_pb);
32
+ var platform_pagination_pb = require('./platform.pagination_pb.js');
33
+ goog.object.extend(proto, platform_pagination_pb);
34
+ var google_api_annotations_pb = require('./google/api/annotations_pb.js');
35
+ goog.object.extend(proto, google_api_annotations_pb);
36
+ goog.exportSymbol('proto.Spic.AssetProto', null, global);
37
+ goog.exportSymbol('proto.Spic.AssetProto.BatteryStatus', null, global);
38
+ goog.exportSymbol('proto.Spic.AssetProto.ComponentState', null, global);
39
+ goog.exportSymbol('proto.Spic.AssetProto.CreateRequest', null, global);
40
+ goog.exportSymbol('proto.Spic.AssetProto.DeleteRequest', null, global);
41
+ goog.exportSymbol('proto.Spic.AssetProto.DeleteRequest.SearchCase', null, global);
42
+ goog.exportSymbol('proto.Spic.AssetProto.DeviceType', null, global);
43
+ goog.exportSymbol('proto.Spic.AssetProto.Image', null, global);
44
+ goog.exportSymbol('proto.Spic.AssetProto.Image.RetrieveReply', null, global);
45
+ goog.exportSymbol('proto.Spic.AssetProto.Image.RetrieveRequest', null, global);
46
+ goog.exportSymbol('proto.Spic.AssetProto.LocationSearchReply', null, global);
47
+ goog.exportSymbol('proto.Spic.AssetProto.LocationSearchRequest', null, global);
48
+ goog.exportSymbol('proto.Spic.AssetProto.ReplaceBatteryRequest', null, global);
49
+ goog.exportSymbol('proto.Spic.AssetProto.RetrieveRequest', null, global);
50
+ goog.exportSymbol('proto.Spic.AssetProto.RetrieveRequest.SearchCase', null, global);
51
+ goog.exportSymbol('proto.Spic.AssetProto.SearchReply', null, global);
52
+ goog.exportSymbol('proto.Spic.AssetProto.SearchRequest', null, global);
53
+ goog.exportSymbol('proto.Spic.AssetProto.SpicType', null, global);
54
+ goog.exportSymbol('proto.Spic.AssetProto.UpdateRequest', null, global);
55
+ goog.exportSymbol('proto.Spic.AssetWithLocation', null, global);
56
+ goog.exportSymbol('proto.Spic.AssetWithLocationAndDistance', null, global);
57
+ goog.exportSymbol('proto.Spic.ComponentIdentifier', null, global);
58
+ /**
59
+ * Generated by JsPbCodeGenerator.
60
+ * @param {Array=} opt_data Optional initial data array, typically from a
61
+ * server response, or constructed directly in Javascript. The array is used
62
+ * in place and becomes part of the constructed object. It is not cloned.
63
+ * If no data is provided, the constructed object will be empty, but still
64
+ * valid.
65
+ * @extends {jspb.Message}
66
+ * @constructor
67
+ */
68
+ proto.Spic.AssetProto = function(opt_data) {
69
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Spic.AssetProto.repeatedFields_, null);
70
+ };
71
+ goog.inherits(proto.Spic.AssetProto, jspb.Message);
72
+ if (goog.DEBUG && !COMPILED) {
73
+ /**
74
+ * @public
75
+ * @override
76
+ */
77
+ proto.Spic.AssetProto.displayName = 'proto.Spic.AssetProto';
78
+ }
79
+ /**
80
+ * Generated by JsPbCodeGenerator.
81
+ * @param {Array=} opt_data Optional initial data array, typically from a
82
+ * server response, or constructed directly in Javascript. The array is used
83
+ * in place and becomes part of the constructed object. It is not cloned.
84
+ * If no data is provided, the constructed object will be empty, but still
85
+ * valid.
86
+ * @extends {jspb.Message}
87
+ * @constructor
88
+ */
89
+ proto.Spic.AssetProto.CreateRequest = function(opt_data) {
90
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
91
+ };
92
+ goog.inherits(proto.Spic.AssetProto.CreateRequest, jspb.Message);
93
+ if (goog.DEBUG && !COMPILED) {
94
+ /**
95
+ * @public
96
+ * @override
97
+ */
98
+ proto.Spic.AssetProto.CreateRequest.displayName = 'proto.Spic.AssetProto.CreateRequest';
99
+ }
100
+ /**
101
+ * Generated by JsPbCodeGenerator.
102
+ * @param {Array=} opt_data Optional initial data array, typically from a
103
+ * server response, or constructed directly in Javascript. The array is used
104
+ * in place and becomes part of the constructed object. It is not cloned.
105
+ * If no data is provided, the constructed object will be empty, but still
106
+ * valid.
107
+ * @extends {jspb.Message}
108
+ * @constructor
109
+ */
110
+ proto.Spic.AssetProto.RetrieveRequest = function(opt_data) {
111
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.Spic.AssetProto.RetrieveRequest.oneofGroups_);
112
+ };
113
+ goog.inherits(proto.Spic.AssetProto.RetrieveRequest, jspb.Message);
114
+ if (goog.DEBUG && !COMPILED) {
115
+ /**
116
+ * @public
117
+ * @override
118
+ */
119
+ proto.Spic.AssetProto.RetrieveRequest.displayName = 'proto.Spic.AssetProto.RetrieveRequest';
120
+ }
121
+ /**
122
+ * Generated by JsPbCodeGenerator.
123
+ * @param {Array=} opt_data Optional initial data array, typically from a
124
+ * server response, or constructed directly in Javascript. The array is used
125
+ * in place and becomes part of the constructed object. It is not cloned.
126
+ * If no data is provided, the constructed object will be empty, but still
127
+ * valid.
128
+ * @extends {jspb.Message}
129
+ * @constructor
130
+ */
131
+ proto.Spic.AssetProto.UpdateRequest = function(opt_data) {
132
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
133
+ };
134
+ goog.inherits(proto.Spic.AssetProto.UpdateRequest, jspb.Message);
135
+ if (goog.DEBUG && !COMPILED) {
136
+ /**
137
+ * @public
138
+ * @override
139
+ */
140
+ proto.Spic.AssetProto.UpdateRequest.displayName = 'proto.Spic.AssetProto.UpdateRequest';
141
+ }
142
+ /**
143
+ * Generated by JsPbCodeGenerator.
144
+ * @param {Array=} opt_data Optional initial data array, typically from a
145
+ * server response, or constructed directly in Javascript. The array is used
146
+ * in place and becomes part of the constructed object. It is not cloned.
147
+ * If no data is provided, the constructed object will be empty, but still
148
+ * valid.
149
+ * @extends {jspb.Message}
150
+ * @constructor
151
+ */
152
+ proto.Spic.AssetProto.DeleteRequest = function(opt_data) {
153
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.Spic.AssetProto.DeleteRequest.oneofGroups_);
154
+ };
155
+ goog.inherits(proto.Spic.AssetProto.DeleteRequest, jspb.Message);
156
+ if (goog.DEBUG && !COMPILED) {
157
+ /**
158
+ * @public
159
+ * @override
160
+ */
161
+ proto.Spic.AssetProto.DeleteRequest.displayName = 'proto.Spic.AssetProto.DeleteRequest';
162
+ }
163
+ /**
164
+ * Generated by JsPbCodeGenerator.
165
+ * @param {Array=} opt_data Optional initial data array, typically from a
166
+ * server response, or constructed directly in Javascript. The array is used
167
+ * in place and becomes part of the constructed object. It is not cloned.
168
+ * If no data is provided, the constructed object will be empty, but still
169
+ * valid.
170
+ * @extends {jspb.Message}
171
+ * @constructor
172
+ */
173
+ proto.Spic.AssetProto.SearchRequest = function(opt_data) {
174
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
175
+ };
176
+ goog.inherits(proto.Spic.AssetProto.SearchRequest, jspb.Message);
177
+ if (goog.DEBUG && !COMPILED) {
178
+ /**
179
+ * @public
180
+ * @override
181
+ */
182
+ proto.Spic.AssetProto.SearchRequest.displayName = 'proto.Spic.AssetProto.SearchRequest';
183
+ }
184
+ /**
185
+ * Generated by JsPbCodeGenerator.
186
+ * @param {Array=} opt_data Optional initial data array, typically from a
187
+ * server response, or constructed directly in Javascript. The array is used
188
+ * in place and becomes part of the constructed object. It is not cloned.
189
+ * If no data is provided, the constructed object will be empty, but still
190
+ * valid.
191
+ * @extends {jspb.Message}
192
+ * @constructor
193
+ */
194
+ proto.Spic.AssetProto.SearchReply = function(opt_data) {
195
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Spic.AssetProto.SearchReply.repeatedFields_, null);
196
+ };
197
+ goog.inherits(proto.Spic.AssetProto.SearchReply, jspb.Message);
198
+ if (goog.DEBUG && !COMPILED) {
199
+ /**
200
+ * @public
201
+ * @override
202
+ */
203
+ proto.Spic.AssetProto.SearchReply.displayName = 'proto.Spic.AssetProto.SearchReply';
204
+ }
205
+ /**
206
+ * Generated by JsPbCodeGenerator.
207
+ * @param {Array=} opt_data Optional initial data array, typically from a
208
+ * server response, or constructed directly in Javascript. The array is used
209
+ * in place and becomes part of the constructed object. It is not cloned.
210
+ * If no data is provided, the constructed object will be empty, but still
211
+ * valid.
212
+ * @extends {jspb.Message}
213
+ * @constructor
214
+ */
215
+ proto.Spic.AssetProto.LocationSearchRequest = function(opt_data) {
216
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
217
+ };
218
+ goog.inherits(proto.Spic.AssetProto.LocationSearchRequest, jspb.Message);
219
+ if (goog.DEBUG && !COMPILED) {
220
+ /**
221
+ * @public
222
+ * @override
223
+ */
224
+ proto.Spic.AssetProto.LocationSearchRequest.displayName = 'proto.Spic.AssetProto.LocationSearchRequest';
225
+ }
226
+ /**
227
+ * Generated by JsPbCodeGenerator.
228
+ * @param {Array=} opt_data Optional initial data array, typically from a
229
+ * server response, or constructed directly in Javascript. The array is used
230
+ * in place and becomes part of the constructed object. It is not cloned.
231
+ * If no data is provided, the constructed object will be empty, but still
232
+ * valid.
233
+ * @extends {jspb.Message}
234
+ * @constructor
235
+ */
236
+ proto.Spic.AssetProto.LocationSearchReply = function(opt_data) {
237
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Spic.AssetProto.LocationSearchReply.repeatedFields_, null);
238
+ };
239
+ goog.inherits(proto.Spic.AssetProto.LocationSearchReply, jspb.Message);
240
+ if (goog.DEBUG && !COMPILED) {
241
+ /**
242
+ * @public
243
+ * @override
244
+ */
245
+ proto.Spic.AssetProto.LocationSearchReply.displayName = 'proto.Spic.AssetProto.LocationSearchReply';
246
+ }
247
+ /**
248
+ * Generated by JsPbCodeGenerator.
249
+ * @param {Array=} opt_data Optional initial data array, typically from a
250
+ * server response, or constructed directly in Javascript. The array is used
251
+ * in place and becomes part of the constructed object. It is not cloned.
252
+ * If no data is provided, the constructed object will be empty, but still
253
+ * valid.
254
+ * @extends {jspb.Message}
255
+ * @constructor
256
+ */
257
+ proto.Spic.AssetProto.ReplaceBatteryRequest = function(opt_data) {
258
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
259
+ };
260
+ goog.inherits(proto.Spic.AssetProto.ReplaceBatteryRequest, jspb.Message);
261
+ if (goog.DEBUG && !COMPILED) {
262
+ /**
263
+ * @public
264
+ * @override
265
+ */
266
+ proto.Spic.AssetProto.ReplaceBatteryRequest.displayName = 'proto.Spic.AssetProto.ReplaceBatteryRequest';
267
+ }
268
+ /**
269
+ * Generated by JsPbCodeGenerator.
270
+ * @param {Array=} opt_data Optional initial data array, typically from a
271
+ * server response, or constructed directly in Javascript. The array is used
272
+ * in place and becomes part of the constructed object. It is not cloned.
273
+ * If no data is provided, the constructed object will be empty, but still
274
+ * valid.
275
+ * @extends {jspb.Message}
276
+ * @constructor
277
+ */
278
+ proto.Spic.AssetProto.Image = function(opt_data) {
279
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
280
+ };
281
+ goog.inherits(proto.Spic.AssetProto.Image, jspb.Message);
282
+ if (goog.DEBUG && !COMPILED) {
283
+ /**
284
+ * @public
285
+ * @override
286
+ */
287
+ proto.Spic.AssetProto.Image.displayName = 'proto.Spic.AssetProto.Image';
288
+ }
289
+ /**
290
+ * Generated by JsPbCodeGenerator.
291
+ * @param {Array=} opt_data Optional initial data array, typically from a
292
+ * server response, or constructed directly in Javascript. The array is used
293
+ * in place and becomes part of the constructed object. It is not cloned.
294
+ * If no data is provided, the constructed object will be empty, but still
295
+ * valid.
296
+ * @extends {jspb.Message}
297
+ * @constructor
298
+ */
299
+ proto.Spic.AssetProto.Image.RetrieveRequest = function(opt_data) {
300
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
301
+ };
302
+ goog.inherits(proto.Spic.AssetProto.Image.RetrieveRequest, jspb.Message);
303
+ if (goog.DEBUG && !COMPILED) {
304
+ /**
305
+ * @public
306
+ * @override
307
+ */
308
+ proto.Spic.AssetProto.Image.RetrieveRequest.displayName = 'proto.Spic.AssetProto.Image.RetrieveRequest';
309
+ }
310
+ /**
311
+ * Generated by JsPbCodeGenerator.
312
+ * @param {Array=} opt_data Optional initial data array, typically from a
313
+ * server response, or constructed directly in Javascript. The array is used
314
+ * in place and becomes part of the constructed object. It is not cloned.
315
+ * If no data is provided, the constructed object will be empty, but still
316
+ * valid.
317
+ * @extends {jspb.Message}
318
+ * @constructor
319
+ */
320
+ proto.Spic.AssetProto.Image.RetrieveReply = function(opt_data) {
321
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
322
+ };
323
+ goog.inherits(proto.Spic.AssetProto.Image.RetrieveReply, jspb.Message);
324
+ if (goog.DEBUG && !COMPILED) {
325
+ /**
326
+ * @public
327
+ * @override
328
+ */
329
+ proto.Spic.AssetProto.Image.RetrieveReply.displayName = 'proto.Spic.AssetProto.Image.RetrieveReply';
330
+ }
331
+ /**
332
+ * Generated by JsPbCodeGenerator.
333
+ * @param {Array=} opt_data Optional initial data array, typically from a
334
+ * server response, or constructed directly in Javascript. The array is used
335
+ * in place and becomes part of the constructed object. It is not cloned.
336
+ * If no data is provided, the constructed object will be empty, but still
337
+ * valid.
338
+ * @extends {jspb.Message}
339
+ * @constructor
340
+ */
341
+ proto.Spic.AssetProto.ComponentState = function(opt_data) {
342
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
343
+ };
344
+ goog.inherits(proto.Spic.AssetProto.ComponentState, jspb.Message);
345
+ if (goog.DEBUG && !COMPILED) {
346
+ /**
347
+ * @public
348
+ * @override
349
+ */
350
+ proto.Spic.AssetProto.ComponentState.displayName = 'proto.Spic.AssetProto.ComponentState';
351
+ }
352
+ /**
353
+ * Generated by JsPbCodeGenerator.
354
+ * @param {Array=} opt_data Optional initial data array, typically from a
355
+ * server response, or constructed directly in Javascript. The array is used
356
+ * in place and becomes part of the constructed object. It is not cloned.
357
+ * If no data is provided, the constructed object will be empty, but still
358
+ * valid.
359
+ * @extends {jspb.Message}
360
+ * @constructor
361
+ */
362
+ proto.Spic.AssetWithLocation = function(opt_data) {
363
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
364
+ };
365
+ goog.inherits(proto.Spic.AssetWithLocation, jspb.Message);
366
+ if (goog.DEBUG && !COMPILED) {
367
+ /**
368
+ * @public
369
+ * @override
370
+ */
371
+ proto.Spic.AssetWithLocation.displayName = 'proto.Spic.AssetWithLocation';
372
+ }
373
+ /**
374
+ * Generated by JsPbCodeGenerator.
375
+ * @param {Array=} opt_data Optional initial data array, typically from a
376
+ * server response, or constructed directly in Javascript. The array is used
377
+ * in place and becomes part of the constructed object. It is not cloned.
378
+ * If no data is provided, the constructed object will be empty, but still
379
+ * valid.
380
+ * @extends {jspb.Message}
381
+ * @constructor
382
+ */
383
+ proto.Spic.AssetWithLocationAndDistance = function(opt_data) {
384
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
385
+ };
386
+ goog.inherits(proto.Spic.AssetWithLocationAndDistance, jspb.Message);
387
+ if (goog.DEBUG && !COMPILED) {
388
+ /**
389
+ * @public
390
+ * @override
391
+ */
392
+ proto.Spic.AssetWithLocationAndDistance.displayName = 'proto.Spic.AssetWithLocationAndDistance';
393
+ }
394
+
395
+ /**
396
+ * List of repeated fields within this message type.
397
+ * @private {!Array<number>}
398
+ * @const
399
+ */
400
+ proto.Spic.AssetProto.repeatedFields_ = [19];
401
+
402
+
403
+
404
+ if (jspb.Message.GENERATE_TO_OBJECT) {
405
+ /**
406
+ * Creates an object representation of this proto.
407
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
408
+ * Optional fields that are not set will be set to undefined.
409
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
410
+ * For the list of reserved names please see:
411
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
412
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
413
+ * JSPB instance for transitional soy proto support:
414
+ * http://goto/soy-param-migration
415
+ * @return {!Object}
416
+ */
417
+ proto.Spic.AssetProto.prototype.toObject = function(opt_includeInstance) {
418
+ return proto.Spic.AssetProto.toObject(opt_includeInstance, this);
419
+ };
420
+
421
+
422
+ /**
423
+ * Static version of the {@see toObject} method.
424
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
425
+ * the JSPB instance for transitional soy proto support:
426
+ * http://goto/soy-param-migration
427
+ * @param {!proto.Spic.AssetProto} msg The msg instance to transform.
428
+ * @return {!Object}
429
+ * @suppress {unusedLocalVariables} f is only used for nested messages
430
+ */
431
+ proto.Spic.AssetProto.toObject = function(includeInstance, msg) {
432
+ var f, obj = {
433
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
434
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
435
+ locationId: jspb.Message.getFieldWithDefault(msg, 3, 0),
436
+ uid: jspb.Message.getFieldWithDefault(msg, 4, ""),
437
+ lastStatusUpdate: (f = msg.getLastStatusUpdate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
438
+ groupId: jspb.Message.getFieldWithDefault(msg, 8, ""),
439
+ clientId: jspb.Message.getFieldWithDefault(msg, 9, 0),
440
+ isMaintenance: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
441
+ imageBlob: jspb.Message.getFieldWithDefault(msg, 11, ""),
442
+ batteryPlaced: (f = msg.getBatteryPlaced()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
443
+ batteryPercentage: jspb.Message.getFieldWithDefault(msg, 13, 0),
444
+ communicationTime: jspb.Message.getFieldWithDefault(msg, 14, 0),
445
+ lastConfigString: jspb.Message.getFieldWithDefault(msg, 15, ""),
446
+ lastConfigUpdated: (f = msg.getLastConfigUpdated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
447
+ spicType: jspb.Message.getFieldWithDefault(msg, 17, 0),
448
+ batteryStatus: jspb.Message.getFieldWithDefault(msg, 18, 0),
449
+ statesList: jspb.Message.toObjectList(msg.getStatesList(),
450
+ proto.Spic.AssetProto.ComponentState.toObject, includeInstance),
451
+ deviceType: jspb.Message.getFieldWithDefault(msg, 20, 0)
452
+ };
453
+
454
+ if (includeInstance) {
455
+ obj.$jspbMessageInstance = msg;
456
+ }
457
+ return obj;
458
+ };
459
+ }
460
+
461
+
462
+ /**
463
+ * Deserializes binary data (in protobuf wire format).
464
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
465
+ * @return {!proto.Spic.AssetProto}
466
+ */
467
+ proto.Spic.AssetProto.deserializeBinary = function(bytes) {
468
+ var reader = new jspb.BinaryReader(bytes);
469
+ var msg = new proto.Spic.AssetProto;
470
+ return proto.Spic.AssetProto.deserializeBinaryFromReader(msg, reader);
471
+ };
472
+
473
+
474
+ /**
475
+ * Deserializes binary data (in protobuf wire format) from the
476
+ * given reader into the given message object.
477
+ * @param {!proto.Spic.AssetProto} msg The message object to deserialize into.
478
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
479
+ * @return {!proto.Spic.AssetProto}
480
+ */
481
+ proto.Spic.AssetProto.deserializeBinaryFromReader = function(msg, reader) {
482
+ while (reader.nextField()) {
483
+ if (reader.isEndGroup()) {
484
+ break;
485
+ }
486
+ var field = reader.getFieldNumber();
487
+ switch (field) {
488
+ case 1:
489
+ var value = /** @type {number} */ (reader.readInt64());
490
+ msg.setId(value);
491
+ break;
492
+ case 2:
493
+ var value = /** @type {string} */ (reader.readString());
494
+ msg.setName(value);
495
+ break;
496
+ case 3:
497
+ var value = /** @type {number} */ (reader.readInt64());
498
+ msg.setLocationId(value);
499
+ break;
500
+ case 4:
501
+ var value = /** @type {string} */ (reader.readString());
502
+ msg.setUid(value);
503
+ break;
504
+ case 7:
505
+ var value = new google_protobuf_timestamp_pb.Timestamp;
506
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
507
+ msg.setLastStatusUpdate(value);
508
+ break;
509
+ case 8:
510
+ var value = /** @type {string} */ (reader.readString());
511
+ msg.setGroupId(value);
512
+ break;
513
+ case 9:
514
+ var value = /** @type {number} */ (reader.readInt32());
515
+ msg.setClientId(value);
516
+ break;
517
+ case 10:
518
+ var value = /** @type {boolean} */ (reader.readBool());
519
+ msg.setIsMaintenance(value);
520
+ break;
521
+ case 11:
522
+ var value = /** @type {string} */ (reader.readString());
523
+ msg.setImageBlob(value);
524
+ break;
525
+ case 12:
526
+ var value = new google_protobuf_timestamp_pb.Timestamp;
527
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
528
+ msg.setBatteryPlaced(value);
529
+ break;
530
+ case 13:
531
+ var value = /** @type {number} */ (reader.readInt32());
532
+ msg.setBatteryPercentage(value);
533
+ break;
534
+ case 14:
535
+ var value = /** @type {number} */ (reader.readInt64());
536
+ msg.setCommunicationTime(value);
537
+ break;
538
+ case 15:
539
+ var value = /** @type {string} */ (reader.readString());
540
+ msg.setLastConfigString(value);
541
+ break;
542
+ case 16:
543
+ var value = new google_protobuf_timestamp_pb.Timestamp;
544
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
545
+ msg.setLastConfigUpdated(value);
546
+ break;
547
+ case 17:
548
+ var value = /** @type {!proto.Spic.AssetProto.SpicType} */ (reader.readEnum());
549
+ msg.setSpicType(value);
550
+ break;
551
+ case 18:
552
+ var value = /** @type {!proto.Spic.AssetProto.BatteryStatus} */ (reader.readEnum());
553
+ msg.setBatteryStatus(value);
554
+ break;
555
+ case 19:
556
+ var value = new proto.Spic.AssetProto.ComponentState;
557
+ reader.readMessage(value,proto.Spic.AssetProto.ComponentState.deserializeBinaryFromReader);
558
+ msg.addStates(value);
559
+ break;
560
+ case 20:
561
+ var value = /** @type {!proto.Spic.AssetProto.DeviceType} */ (reader.readEnum());
562
+ msg.setDeviceType(value);
563
+ break;
564
+ default:
565
+ reader.skipField();
566
+ break;
567
+ }
568
+ }
569
+ return msg;
570
+ };
571
+
572
+
573
+ /**
574
+ * Serializes the message to binary data (in protobuf wire format).
575
+ * @return {!Uint8Array}
576
+ */
577
+ proto.Spic.AssetProto.prototype.serializeBinary = function() {
578
+ var writer = new jspb.BinaryWriter();
579
+ proto.Spic.AssetProto.serializeBinaryToWriter(this, writer);
580
+ return writer.getResultBuffer();
581
+ };
582
+
583
+
584
+ /**
585
+ * Serializes the given message to binary data (in protobuf wire
586
+ * format), writing to the given BinaryWriter.
587
+ * @param {!proto.Spic.AssetProto} message
588
+ * @param {!jspb.BinaryWriter} writer
589
+ * @suppress {unusedLocalVariables} f is only used for nested messages
590
+ */
591
+ proto.Spic.AssetProto.serializeBinaryToWriter = function(message, writer) {
592
+ var f = undefined;
593
+ f = message.getId();
594
+ if (f !== 0) {
595
+ writer.writeInt64(
596
+ 1,
597
+ f
598
+ );
599
+ }
600
+ f = message.getName();
601
+ if (f.length > 0) {
602
+ writer.writeString(
603
+ 2,
604
+ f
605
+ );
606
+ }
607
+ f = message.getLocationId();
608
+ if (f !== 0) {
609
+ writer.writeInt64(
610
+ 3,
611
+ f
612
+ );
613
+ }
614
+ f = message.getUid();
615
+ if (f.length > 0) {
616
+ writer.writeString(
617
+ 4,
618
+ f
619
+ );
620
+ }
621
+ f = message.getLastStatusUpdate();
622
+ if (f != null) {
623
+ writer.writeMessage(
624
+ 7,
625
+ f,
626
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
627
+ );
628
+ }
629
+ f = message.getGroupId();
630
+ if (f.length > 0) {
631
+ writer.writeString(
632
+ 8,
633
+ f
634
+ );
635
+ }
636
+ f = message.getClientId();
637
+ if (f !== 0) {
638
+ writer.writeInt32(
639
+ 9,
640
+ f
641
+ );
642
+ }
643
+ f = message.getIsMaintenance();
644
+ if (f) {
645
+ writer.writeBool(
646
+ 10,
647
+ f
648
+ );
649
+ }
650
+ f = message.getImageBlob();
651
+ if (f.length > 0) {
652
+ writer.writeString(
653
+ 11,
654
+ f
655
+ );
656
+ }
657
+ f = message.getBatteryPlaced();
658
+ if (f != null) {
659
+ writer.writeMessage(
660
+ 12,
661
+ f,
662
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
663
+ );
664
+ }
665
+ f = message.getBatteryPercentage();
666
+ if (f !== 0) {
667
+ writer.writeInt32(
668
+ 13,
669
+ f
670
+ );
671
+ }
672
+ f = message.getCommunicationTime();
673
+ if (f !== 0) {
674
+ writer.writeInt64(
675
+ 14,
676
+ f
677
+ );
678
+ }
679
+ f = message.getLastConfigString();
680
+ if (f.length > 0) {
681
+ writer.writeString(
682
+ 15,
683
+ f
684
+ );
685
+ }
686
+ f = message.getLastConfigUpdated();
687
+ if (f != null) {
688
+ writer.writeMessage(
689
+ 16,
690
+ f,
691
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
692
+ );
693
+ }
694
+ f = message.getSpicType();
695
+ if (f !== 0.0) {
696
+ writer.writeEnum(
697
+ 17,
698
+ f
699
+ );
700
+ }
701
+ f = message.getBatteryStatus();
702
+ if (f !== 0.0) {
703
+ writer.writeEnum(
704
+ 18,
705
+ f
706
+ );
707
+ }
708
+ f = message.getStatesList();
709
+ if (f.length > 0) {
710
+ writer.writeRepeatedMessage(
711
+ 19,
712
+ f,
713
+ proto.Spic.AssetProto.ComponentState.serializeBinaryToWriter
714
+ );
715
+ }
716
+ f = message.getDeviceType();
717
+ if (f !== 0.0) {
718
+ writer.writeEnum(
719
+ 20,
720
+ f
721
+ );
722
+ }
723
+ };
724
+
725
+
726
+ /**
727
+ * @enum {number}
728
+ */
729
+ proto.Spic.AssetProto.BatteryStatus = {
730
+ UNKOWWN: 0,
731
+ OK: 1,
732
+ REPLACE_WARNING: 2,
733
+ CRITICAL: 3
734
+ };
735
+
736
+ /**
737
+ * @enum {number}
738
+ */
739
+ proto.Spic.AssetProto.DeviceType = {
740
+ SPICV2: 0,
741
+ SPICV3: 1
742
+ };
743
+
744
+ /**
745
+ * @enum {number}
746
+ */
747
+ proto.Spic.AssetProto.SpicType = {
748
+ CABINET: 0,
749
+ MANHOLE: 1,
750
+ CLOSURE: 2
751
+ };
752
+
753
+
754
+
755
+
756
+ if (jspb.Message.GENERATE_TO_OBJECT) {
757
+ /**
758
+ * Creates an object representation of this proto.
759
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
760
+ * Optional fields that are not set will be set to undefined.
761
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
762
+ * For the list of reserved names please see:
763
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
764
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
765
+ * JSPB instance for transitional soy proto support:
766
+ * http://goto/soy-param-migration
767
+ * @return {!Object}
768
+ */
769
+ proto.Spic.AssetProto.CreateRequest.prototype.toObject = function(opt_includeInstance) {
770
+ return proto.Spic.AssetProto.CreateRequest.toObject(opt_includeInstance, this);
771
+ };
772
+
773
+
774
+ /**
775
+ * Static version of the {@see toObject} method.
776
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
777
+ * the JSPB instance for transitional soy proto support:
778
+ * http://goto/soy-param-migration
779
+ * @param {!proto.Spic.AssetProto.CreateRequest} msg The msg instance to transform.
780
+ * @return {!Object}
781
+ * @suppress {unusedLocalVariables} f is only used for nested messages
782
+ */
783
+ proto.Spic.AssetProto.CreateRequest.toObject = function(includeInstance, msg) {
784
+ var f, obj = {
785
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
786
+ locationId: jspb.Message.getFieldWithDefault(msg, 2, 0),
787
+ uid: jspb.Message.getFieldWithDefault(msg, 3, ""),
788
+ image: (f = msg.getImage()) && google_protobuf_wrappers_pb.BytesValue.toObject(includeInstance, f),
789
+ extIo1Name: jspb.Message.getFieldWithDefault(msg, 5, ""),
790
+ extIo2Name: jspb.Message.getFieldWithDefault(msg, 6, ""),
791
+ groupId: jspb.Message.getFieldWithDefault(msg, 7, ""),
792
+ clientId: jspb.Message.getFieldWithDefault(msg, 8, 0),
793
+ spicType: jspb.Message.getFieldWithDefault(msg, 9, 0)
794
+ };
795
+
796
+ if (includeInstance) {
797
+ obj.$jspbMessageInstance = msg;
798
+ }
799
+ return obj;
800
+ };
801
+ }
802
+
803
+
804
+ /**
805
+ * Deserializes binary data (in protobuf wire format).
806
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
807
+ * @return {!proto.Spic.AssetProto.CreateRequest}
808
+ */
809
+ proto.Spic.AssetProto.CreateRequest.deserializeBinary = function(bytes) {
810
+ var reader = new jspb.BinaryReader(bytes);
811
+ var msg = new proto.Spic.AssetProto.CreateRequest;
812
+ return proto.Spic.AssetProto.CreateRequest.deserializeBinaryFromReader(msg, reader);
813
+ };
814
+
815
+
816
+ /**
817
+ * Deserializes binary data (in protobuf wire format) from the
818
+ * given reader into the given message object.
819
+ * @param {!proto.Spic.AssetProto.CreateRequest} msg The message object to deserialize into.
820
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
821
+ * @return {!proto.Spic.AssetProto.CreateRequest}
822
+ */
823
+ proto.Spic.AssetProto.CreateRequest.deserializeBinaryFromReader = function(msg, reader) {
824
+ while (reader.nextField()) {
825
+ if (reader.isEndGroup()) {
826
+ break;
827
+ }
828
+ var field = reader.getFieldNumber();
829
+ switch (field) {
830
+ case 1:
831
+ var value = /** @type {string} */ (reader.readString());
832
+ msg.setName(value);
833
+ break;
834
+ case 2:
835
+ var value = /** @type {number} */ (reader.readInt64());
836
+ msg.setLocationId(value);
837
+ break;
838
+ case 3:
839
+ var value = /** @type {string} */ (reader.readString());
840
+ msg.setUid(value);
841
+ break;
842
+ case 4:
843
+ var value = new google_protobuf_wrappers_pb.BytesValue;
844
+ reader.readMessage(value,google_protobuf_wrappers_pb.BytesValue.deserializeBinaryFromReader);
845
+ msg.setImage(value);
846
+ break;
847
+ case 5:
848
+ var value = /** @type {string} */ (reader.readString());
849
+ msg.setExtIo1Name(value);
850
+ break;
851
+ case 6:
852
+ var value = /** @type {string} */ (reader.readString());
853
+ msg.setExtIo2Name(value);
854
+ break;
855
+ case 7:
856
+ var value = /** @type {string} */ (reader.readString());
857
+ msg.setGroupId(value);
858
+ break;
859
+ case 8:
860
+ var value = /** @type {number} */ (reader.readInt32());
861
+ msg.setClientId(value);
862
+ break;
863
+ case 9:
864
+ var value = /** @type {!proto.Spic.AssetProto.SpicType} */ (reader.readEnum());
865
+ msg.setSpicType(value);
866
+ break;
867
+ default:
868
+ reader.skipField();
869
+ break;
870
+ }
871
+ }
872
+ return msg;
873
+ };
874
+
875
+
876
+ /**
877
+ * Serializes the message to binary data (in protobuf wire format).
878
+ * @return {!Uint8Array}
879
+ */
880
+ proto.Spic.AssetProto.CreateRequest.prototype.serializeBinary = function() {
881
+ var writer = new jspb.BinaryWriter();
882
+ proto.Spic.AssetProto.CreateRequest.serializeBinaryToWriter(this, writer);
883
+ return writer.getResultBuffer();
884
+ };
885
+
886
+
887
+ /**
888
+ * Serializes the given message to binary data (in protobuf wire
889
+ * format), writing to the given BinaryWriter.
890
+ * @param {!proto.Spic.AssetProto.CreateRequest} message
891
+ * @param {!jspb.BinaryWriter} writer
892
+ * @suppress {unusedLocalVariables} f is only used for nested messages
893
+ */
894
+ proto.Spic.AssetProto.CreateRequest.serializeBinaryToWriter = function(message, writer) {
895
+ var f = undefined;
896
+ f = message.getName();
897
+ if (f.length > 0) {
898
+ writer.writeString(
899
+ 1,
900
+ f
901
+ );
902
+ }
903
+ f = message.getLocationId();
904
+ if (f !== 0) {
905
+ writer.writeInt64(
906
+ 2,
907
+ f
908
+ );
909
+ }
910
+ f = message.getUid();
911
+ if (f.length > 0) {
912
+ writer.writeString(
913
+ 3,
914
+ f
915
+ );
916
+ }
917
+ f = message.getImage();
918
+ if (f != null) {
919
+ writer.writeMessage(
920
+ 4,
921
+ f,
922
+ google_protobuf_wrappers_pb.BytesValue.serializeBinaryToWriter
923
+ );
924
+ }
925
+ f = message.getExtIo1Name();
926
+ if (f.length > 0) {
927
+ writer.writeString(
928
+ 5,
929
+ f
930
+ );
931
+ }
932
+ f = message.getExtIo2Name();
933
+ if (f.length > 0) {
934
+ writer.writeString(
935
+ 6,
936
+ f
937
+ );
938
+ }
939
+ f = message.getGroupId();
940
+ if (f.length > 0) {
941
+ writer.writeString(
942
+ 7,
943
+ f
944
+ );
945
+ }
946
+ f = message.getClientId();
947
+ if (f !== 0) {
948
+ writer.writeInt32(
949
+ 8,
950
+ f
951
+ );
952
+ }
953
+ f = message.getSpicType();
954
+ if (f !== 0.0) {
955
+ writer.writeEnum(
956
+ 9,
957
+ f
958
+ );
959
+ }
960
+ };
961
+
962
+
963
+ /**
964
+ * optional string name = 1;
965
+ * @return {string}
966
+ */
967
+ proto.Spic.AssetProto.CreateRequest.prototype.getName = function() {
968
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
969
+ };
970
+
971
+
972
+ /**
973
+ * @param {string} value
974
+ * @return {!proto.Spic.AssetProto.CreateRequest} returns this
975
+ */
976
+ proto.Spic.AssetProto.CreateRequest.prototype.setName = function(value) {
977
+ return jspb.Message.setProto3StringField(this, 1, value);
978
+ };
979
+
980
+
981
+ /**
982
+ * optional int64 location_id = 2;
983
+ * @return {number}
984
+ */
985
+ proto.Spic.AssetProto.CreateRequest.prototype.getLocationId = function() {
986
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
987
+ };
988
+
989
+
990
+ /**
991
+ * @param {number} value
992
+ * @return {!proto.Spic.AssetProto.CreateRequest} returns this
993
+ */
994
+ proto.Spic.AssetProto.CreateRequest.prototype.setLocationId = function(value) {
995
+ return jspb.Message.setProto3IntField(this, 2, value);
996
+ };
997
+
998
+
999
+ /**
1000
+ * optional string uid = 3;
1001
+ * @return {string}
1002
+ */
1003
+ proto.Spic.AssetProto.CreateRequest.prototype.getUid = function() {
1004
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1005
+ };
1006
+
1007
+
1008
+ /**
1009
+ * @param {string} value
1010
+ * @return {!proto.Spic.AssetProto.CreateRequest} returns this
1011
+ */
1012
+ proto.Spic.AssetProto.CreateRequest.prototype.setUid = function(value) {
1013
+ return jspb.Message.setProto3StringField(this, 3, value);
1014
+ };
1015
+
1016
+
1017
+ /**
1018
+ * optional google.protobuf.BytesValue image = 4;
1019
+ * @return {?proto.google.protobuf.BytesValue}
1020
+ */
1021
+ proto.Spic.AssetProto.CreateRequest.prototype.getImage = function() {
1022
+ return /** @type{?proto.google.protobuf.BytesValue} */ (
1023
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.BytesValue, 4));
1024
+ };
1025
+
1026
+
1027
+ /**
1028
+ * @param {?proto.google.protobuf.BytesValue|undefined} value
1029
+ * @return {!proto.Spic.AssetProto.CreateRequest} returns this
1030
+ */
1031
+ proto.Spic.AssetProto.CreateRequest.prototype.setImage = function(value) {
1032
+ return jspb.Message.setWrapperField(this, 4, value);
1033
+ };
1034
+
1035
+
1036
+ /**
1037
+ * Clears the message field making it undefined.
1038
+ * @return {!proto.Spic.AssetProto.CreateRequest} returns this
1039
+ */
1040
+ proto.Spic.AssetProto.CreateRequest.prototype.clearImage = function() {
1041
+ return this.setImage(undefined);
1042
+ };
1043
+
1044
+
1045
+ /**
1046
+ * Returns whether this field is set.
1047
+ * @return {boolean}
1048
+ */
1049
+ proto.Spic.AssetProto.CreateRequest.prototype.hasImage = function() {
1050
+ return jspb.Message.getField(this, 4) != null;
1051
+ };
1052
+
1053
+
1054
+ /**
1055
+ * optional string ext_io_1_name = 5;
1056
+ * @return {string}
1057
+ */
1058
+ proto.Spic.AssetProto.CreateRequest.prototype.getExtIo1Name = function() {
1059
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1060
+ };
1061
+
1062
+
1063
+ /**
1064
+ * @param {string} value
1065
+ * @return {!proto.Spic.AssetProto.CreateRequest} returns this
1066
+ */
1067
+ proto.Spic.AssetProto.CreateRequest.prototype.setExtIo1Name = function(value) {
1068
+ return jspb.Message.setProto3StringField(this, 5, value);
1069
+ };
1070
+
1071
+
1072
+ /**
1073
+ * optional string ext_io_2_name = 6;
1074
+ * @return {string}
1075
+ */
1076
+ proto.Spic.AssetProto.CreateRequest.prototype.getExtIo2Name = function() {
1077
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1078
+ };
1079
+
1080
+
1081
+ /**
1082
+ * @param {string} value
1083
+ * @return {!proto.Spic.AssetProto.CreateRequest} returns this
1084
+ */
1085
+ proto.Spic.AssetProto.CreateRequest.prototype.setExtIo2Name = function(value) {
1086
+ return jspb.Message.setProto3StringField(this, 6, value);
1087
+ };
1088
+
1089
+
1090
+ /**
1091
+ * optional string group_id = 7;
1092
+ * @return {string}
1093
+ */
1094
+ proto.Spic.AssetProto.CreateRequest.prototype.getGroupId = function() {
1095
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1096
+ };
1097
+
1098
+
1099
+ /**
1100
+ * @param {string} value
1101
+ * @return {!proto.Spic.AssetProto.CreateRequest} returns this
1102
+ */
1103
+ proto.Spic.AssetProto.CreateRequest.prototype.setGroupId = function(value) {
1104
+ return jspb.Message.setProto3StringField(this, 7, value);
1105
+ };
1106
+
1107
+
1108
+ /**
1109
+ * optional int32 client_id = 8;
1110
+ * @return {number}
1111
+ */
1112
+ proto.Spic.AssetProto.CreateRequest.prototype.getClientId = function() {
1113
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
1114
+ };
1115
+
1116
+
1117
+ /**
1118
+ * @param {number} value
1119
+ * @return {!proto.Spic.AssetProto.CreateRequest} returns this
1120
+ */
1121
+ proto.Spic.AssetProto.CreateRequest.prototype.setClientId = function(value) {
1122
+ return jspb.Message.setProto3IntField(this, 8, value);
1123
+ };
1124
+
1125
+
1126
+ /**
1127
+ * optional SpicType spic_type = 9;
1128
+ * @return {!proto.Spic.AssetProto.SpicType}
1129
+ */
1130
+ proto.Spic.AssetProto.CreateRequest.prototype.getSpicType = function() {
1131
+ return /** @type {!proto.Spic.AssetProto.SpicType} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
1132
+ };
1133
+
1134
+
1135
+ /**
1136
+ * @param {!proto.Spic.AssetProto.SpicType} value
1137
+ * @return {!proto.Spic.AssetProto.CreateRequest} returns this
1138
+ */
1139
+ proto.Spic.AssetProto.CreateRequest.prototype.setSpicType = function(value) {
1140
+ return jspb.Message.setProto3EnumField(this, 9, value);
1141
+ };
1142
+
1143
+
1144
+
1145
+ /**
1146
+ * Oneof group definitions for this message. Each group defines the field
1147
+ * numbers belonging to that group. When of these fields' value is set, all
1148
+ * other fields in the group are cleared. During deserialization, if multiple
1149
+ * fields are encountered for a group, only the last value seen will be kept.
1150
+ * @private {!Array<!Array<number>>}
1151
+ * @const
1152
+ */
1153
+ proto.Spic.AssetProto.RetrieveRequest.oneofGroups_ = [[1,2]];
1154
+
1155
+ /**
1156
+ * @enum {number}
1157
+ */
1158
+ proto.Spic.AssetProto.RetrieveRequest.SearchCase = {
1159
+ SEARCH_NOT_SET: 0,
1160
+ ID: 1,
1161
+ UID: 2
1162
+ };
1163
+
1164
+ /**
1165
+ * @return {proto.Spic.AssetProto.RetrieveRequest.SearchCase}
1166
+ */
1167
+ proto.Spic.AssetProto.RetrieveRequest.prototype.getSearchCase = function() {
1168
+ return /** @type {proto.Spic.AssetProto.RetrieveRequest.SearchCase} */(jspb.Message.computeOneofCase(this, proto.Spic.AssetProto.RetrieveRequest.oneofGroups_[0]));
1169
+ };
1170
+
1171
+
1172
+
1173
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1174
+ /**
1175
+ * Creates an object representation of this proto.
1176
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1177
+ * Optional fields that are not set will be set to undefined.
1178
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1179
+ * For the list of reserved names please see:
1180
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1181
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1182
+ * JSPB instance for transitional soy proto support:
1183
+ * http://goto/soy-param-migration
1184
+ * @return {!Object}
1185
+ */
1186
+ proto.Spic.AssetProto.RetrieveRequest.prototype.toObject = function(opt_includeInstance) {
1187
+ return proto.Spic.AssetProto.RetrieveRequest.toObject(opt_includeInstance, this);
1188
+ };
1189
+
1190
+
1191
+ /**
1192
+ * Static version of the {@see toObject} method.
1193
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1194
+ * the JSPB instance for transitional soy proto support:
1195
+ * http://goto/soy-param-migration
1196
+ * @param {!proto.Spic.AssetProto.RetrieveRequest} msg The msg instance to transform.
1197
+ * @return {!Object}
1198
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1199
+ */
1200
+ proto.Spic.AssetProto.RetrieveRequest.toObject = function(includeInstance, msg) {
1201
+ var f, obj = {
1202
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1203
+ uid: jspb.Message.getFieldWithDefault(msg, 2, "")
1204
+ };
1205
+
1206
+ if (includeInstance) {
1207
+ obj.$jspbMessageInstance = msg;
1208
+ }
1209
+ return obj;
1210
+ };
1211
+ }
1212
+
1213
+
1214
+ /**
1215
+ * Deserializes binary data (in protobuf wire format).
1216
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1217
+ * @return {!proto.Spic.AssetProto.RetrieveRequest}
1218
+ */
1219
+ proto.Spic.AssetProto.RetrieveRequest.deserializeBinary = function(bytes) {
1220
+ var reader = new jspb.BinaryReader(bytes);
1221
+ var msg = new proto.Spic.AssetProto.RetrieveRequest;
1222
+ return proto.Spic.AssetProto.RetrieveRequest.deserializeBinaryFromReader(msg, reader);
1223
+ };
1224
+
1225
+
1226
+ /**
1227
+ * Deserializes binary data (in protobuf wire format) from the
1228
+ * given reader into the given message object.
1229
+ * @param {!proto.Spic.AssetProto.RetrieveRequest} msg The message object to deserialize into.
1230
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1231
+ * @return {!proto.Spic.AssetProto.RetrieveRequest}
1232
+ */
1233
+ proto.Spic.AssetProto.RetrieveRequest.deserializeBinaryFromReader = function(msg, reader) {
1234
+ while (reader.nextField()) {
1235
+ if (reader.isEndGroup()) {
1236
+ break;
1237
+ }
1238
+ var field = reader.getFieldNumber();
1239
+ switch (field) {
1240
+ case 1:
1241
+ var value = /** @type {number} */ (reader.readInt64());
1242
+ msg.setId(value);
1243
+ break;
1244
+ case 2:
1245
+ var value = /** @type {string} */ (reader.readString());
1246
+ msg.setUid(value);
1247
+ break;
1248
+ default:
1249
+ reader.skipField();
1250
+ break;
1251
+ }
1252
+ }
1253
+ return msg;
1254
+ };
1255
+
1256
+
1257
+ /**
1258
+ * Serializes the message to binary data (in protobuf wire format).
1259
+ * @return {!Uint8Array}
1260
+ */
1261
+ proto.Spic.AssetProto.RetrieveRequest.prototype.serializeBinary = function() {
1262
+ var writer = new jspb.BinaryWriter();
1263
+ proto.Spic.AssetProto.RetrieveRequest.serializeBinaryToWriter(this, writer);
1264
+ return writer.getResultBuffer();
1265
+ };
1266
+
1267
+
1268
+ /**
1269
+ * Serializes the given message to binary data (in protobuf wire
1270
+ * format), writing to the given BinaryWriter.
1271
+ * @param {!proto.Spic.AssetProto.RetrieveRequest} message
1272
+ * @param {!jspb.BinaryWriter} writer
1273
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1274
+ */
1275
+ proto.Spic.AssetProto.RetrieveRequest.serializeBinaryToWriter = function(message, writer) {
1276
+ var f = undefined;
1277
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
1278
+ if (f != null) {
1279
+ writer.writeInt64(
1280
+ 1,
1281
+ f
1282
+ );
1283
+ }
1284
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
1285
+ if (f != null) {
1286
+ writer.writeString(
1287
+ 2,
1288
+ f
1289
+ );
1290
+ }
1291
+ };
1292
+
1293
+
1294
+ /**
1295
+ * optional int64 id = 1;
1296
+ * @return {number}
1297
+ */
1298
+ proto.Spic.AssetProto.RetrieveRequest.prototype.getId = function() {
1299
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1300
+ };
1301
+
1302
+
1303
+ /**
1304
+ * @param {number} value
1305
+ * @return {!proto.Spic.AssetProto.RetrieveRequest} returns this
1306
+ */
1307
+ proto.Spic.AssetProto.RetrieveRequest.prototype.setId = function(value) {
1308
+ return jspb.Message.setOneofField(this, 1, proto.Spic.AssetProto.RetrieveRequest.oneofGroups_[0], value);
1309
+ };
1310
+
1311
+
1312
+ /**
1313
+ * Clears the field making it undefined.
1314
+ * @return {!proto.Spic.AssetProto.RetrieveRequest} returns this
1315
+ */
1316
+ proto.Spic.AssetProto.RetrieveRequest.prototype.clearId = function() {
1317
+ return jspb.Message.setOneofField(this, 1, proto.Spic.AssetProto.RetrieveRequest.oneofGroups_[0], undefined);
1318
+ };
1319
+
1320
+
1321
+ /**
1322
+ * Returns whether this field is set.
1323
+ * @return {boolean}
1324
+ */
1325
+ proto.Spic.AssetProto.RetrieveRequest.prototype.hasId = function() {
1326
+ return jspb.Message.getField(this, 1) != null;
1327
+ };
1328
+
1329
+
1330
+ /**
1331
+ * optional string uid = 2;
1332
+ * @return {string}
1333
+ */
1334
+ proto.Spic.AssetProto.RetrieveRequest.prototype.getUid = function() {
1335
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1336
+ };
1337
+
1338
+
1339
+ /**
1340
+ * @param {string} value
1341
+ * @return {!proto.Spic.AssetProto.RetrieveRequest} returns this
1342
+ */
1343
+ proto.Spic.AssetProto.RetrieveRequest.prototype.setUid = function(value) {
1344
+ return jspb.Message.setOneofField(this, 2, proto.Spic.AssetProto.RetrieveRequest.oneofGroups_[0], value);
1345
+ };
1346
+
1347
+
1348
+ /**
1349
+ * Clears the field making it undefined.
1350
+ * @return {!proto.Spic.AssetProto.RetrieveRequest} returns this
1351
+ */
1352
+ proto.Spic.AssetProto.RetrieveRequest.prototype.clearUid = function() {
1353
+ return jspb.Message.setOneofField(this, 2, proto.Spic.AssetProto.RetrieveRequest.oneofGroups_[0], undefined);
1354
+ };
1355
+
1356
+
1357
+ /**
1358
+ * Returns whether this field is set.
1359
+ * @return {boolean}
1360
+ */
1361
+ proto.Spic.AssetProto.RetrieveRequest.prototype.hasUid = function() {
1362
+ return jspb.Message.getField(this, 2) != null;
1363
+ };
1364
+
1365
+
1366
+
1367
+
1368
+
1369
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1370
+ /**
1371
+ * Creates an object representation of this proto.
1372
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1373
+ * Optional fields that are not set will be set to undefined.
1374
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1375
+ * For the list of reserved names please see:
1376
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1377
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1378
+ * JSPB instance for transitional soy proto support:
1379
+ * http://goto/soy-param-migration
1380
+ * @return {!Object}
1381
+ */
1382
+ proto.Spic.AssetProto.UpdateRequest.prototype.toObject = function(opt_includeInstance) {
1383
+ return proto.Spic.AssetProto.UpdateRequest.toObject(opt_includeInstance, this);
1384
+ };
1385
+
1386
+
1387
+ /**
1388
+ * Static version of the {@see toObject} method.
1389
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1390
+ * the JSPB instance for transitional soy proto support:
1391
+ * http://goto/soy-param-migration
1392
+ * @param {!proto.Spic.AssetProto.UpdateRequest} msg The msg instance to transform.
1393
+ * @return {!Object}
1394
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1395
+ */
1396
+ proto.Spic.AssetProto.UpdateRequest.toObject = function(includeInstance, msg) {
1397
+ var f, obj = {
1398
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1399
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
1400
+ locationId: jspb.Message.getFieldWithDefault(msg, 3, 0),
1401
+ uid: jspb.Message.getFieldWithDefault(msg, 4, ""),
1402
+ image: (f = msg.getImage()) && google_protobuf_wrappers_pb.BytesValue.toObject(includeInstance, f),
1403
+ extIo1Name: jspb.Message.getFieldWithDefault(msg, 6, ""),
1404
+ extIo2Name: jspb.Message.getFieldWithDefault(msg, 7, ""),
1405
+ groupId: jspb.Message.getFieldWithDefault(msg, 8, ""),
1406
+ clientId: jspb.Message.getFieldWithDefault(msg, 9, 0),
1407
+ spicType: jspb.Message.getFieldWithDefault(msg, 10, 0)
1408
+ };
1409
+
1410
+ if (includeInstance) {
1411
+ obj.$jspbMessageInstance = msg;
1412
+ }
1413
+ return obj;
1414
+ };
1415
+ }
1416
+
1417
+
1418
+ /**
1419
+ * Deserializes binary data (in protobuf wire format).
1420
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1421
+ * @return {!proto.Spic.AssetProto.UpdateRequest}
1422
+ */
1423
+ proto.Spic.AssetProto.UpdateRequest.deserializeBinary = function(bytes) {
1424
+ var reader = new jspb.BinaryReader(bytes);
1425
+ var msg = new proto.Spic.AssetProto.UpdateRequest;
1426
+ return proto.Spic.AssetProto.UpdateRequest.deserializeBinaryFromReader(msg, reader);
1427
+ };
1428
+
1429
+
1430
+ /**
1431
+ * Deserializes binary data (in protobuf wire format) from the
1432
+ * given reader into the given message object.
1433
+ * @param {!proto.Spic.AssetProto.UpdateRequest} msg The message object to deserialize into.
1434
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1435
+ * @return {!proto.Spic.AssetProto.UpdateRequest}
1436
+ */
1437
+ proto.Spic.AssetProto.UpdateRequest.deserializeBinaryFromReader = function(msg, reader) {
1438
+ while (reader.nextField()) {
1439
+ if (reader.isEndGroup()) {
1440
+ break;
1441
+ }
1442
+ var field = reader.getFieldNumber();
1443
+ switch (field) {
1444
+ case 1:
1445
+ var value = /** @type {number} */ (reader.readInt64());
1446
+ msg.setId(value);
1447
+ break;
1448
+ case 2:
1449
+ var value = /** @type {string} */ (reader.readString());
1450
+ msg.setName(value);
1451
+ break;
1452
+ case 3:
1453
+ var value = /** @type {number} */ (reader.readInt64());
1454
+ msg.setLocationId(value);
1455
+ break;
1456
+ case 4:
1457
+ var value = /** @type {string} */ (reader.readString());
1458
+ msg.setUid(value);
1459
+ break;
1460
+ case 5:
1461
+ var value = new google_protobuf_wrappers_pb.BytesValue;
1462
+ reader.readMessage(value,google_protobuf_wrappers_pb.BytesValue.deserializeBinaryFromReader);
1463
+ msg.setImage(value);
1464
+ break;
1465
+ case 6:
1466
+ var value = /** @type {string} */ (reader.readString());
1467
+ msg.setExtIo1Name(value);
1468
+ break;
1469
+ case 7:
1470
+ var value = /** @type {string} */ (reader.readString());
1471
+ msg.setExtIo2Name(value);
1472
+ break;
1473
+ case 8:
1474
+ var value = /** @type {string} */ (reader.readString());
1475
+ msg.setGroupId(value);
1476
+ break;
1477
+ case 9:
1478
+ var value = /** @type {number} */ (reader.readInt32());
1479
+ msg.setClientId(value);
1480
+ break;
1481
+ case 10:
1482
+ var value = /** @type {!proto.Spic.AssetProto.SpicType} */ (reader.readEnum());
1483
+ msg.setSpicType(value);
1484
+ break;
1485
+ default:
1486
+ reader.skipField();
1487
+ break;
1488
+ }
1489
+ }
1490
+ return msg;
1491
+ };
1492
+
1493
+
1494
+ /**
1495
+ * Serializes the message to binary data (in protobuf wire format).
1496
+ * @return {!Uint8Array}
1497
+ */
1498
+ proto.Spic.AssetProto.UpdateRequest.prototype.serializeBinary = function() {
1499
+ var writer = new jspb.BinaryWriter();
1500
+ proto.Spic.AssetProto.UpdateRequest.serializeBinaryToWriter(this, writer);
1501
+ return writer.getResultBuffer();
1502
+ };
1503
+
1504
+
1505
+ /**
1506
+ * Serializes the given message to binary data (in protobuf wire
1507
+ * format), writing to the given BinaryWriter.
1508
+ * @param {!proto.Spic.AssetProto.UpdateRequest} message
1509
+ * @param {!jspb.BinaryWriter} writer
1510
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1511
+ */
1512
+ proto.Spic.AssetProto.UpdateRequest.serializeBinaryToWriter = function(message, writer) {
1513
+ var f = undefined;
1514
+ f = message.getId();
1515
+ if (f !== 0) {
1516
+ writer.writeInt64(
1517
+ 1,
1518
+ f
1519
+ );
1520
+ }
1521
+ f = message.getName();
1522
+ if (f.length > 0) {
1523
+ writer.writeString(
1524
+ 2,
1525
+ f
1526
+ );
1527
+ }
1528
+ f = message.getLocationId();
1529
+ if (f !== 0) {
1530
+ writer.writeInt64(
1531
+ 3,
1532
+ f
1533
+ );
1534
+ }
1535
+ f = message.getUid();
1536
+ if (f.length > 0) {
1537
+ writer.writeString(
1538
+ 4,
1539
+ f
1540
+ );
1541
+ }
1542
+ f = message.getImage();
1543
+ if (f != null) {
1544
+ writer.writeMessage(
1545
+ 5,
1546
+ f,
1547
+ google_protobuf_wrappers_pb.BytesValue.serializeBinaryToWriter
1548
+ );
1549
+ }
1550
+ f = message.getExtIo1Name();
1551
+ if (f.length > 0) {
1552
+ writer.writeString(
1553
+ 6,
1554
+ f
1555
+ );
1556
+ }
1557
+ f = message.getExtIo2Name();
1558
+ if (f.length > 0) {
1559
+ writer.writeString(
1560
+ 7,
1561
+ f
1562
+ );
1563
+ }
1564
+ f = message.getGroupId();
1565
+ if (f.length > 0) {
1566
+ writer.writeString(
1567
+ 8,
1568
+ f
1569
+ );
1570
+ }
1571
+ f = message.getClientId();
1572
+ if (f !== 0) {
1573
+ writer.writeInt32(
1574
+ 9,
1575
+ f
1576
+ );
1577
+ }
1578
+ f = message.getSpicType();
1579
+ if (f !== 0.0) {
1580
+ writer.writeEnum(
1581
+ 10,
1582
+ f
1583
+ );
1584
+ }
1585
+ };
1586
+
1587
+
1588
+ /**
1589
+ * optional int64 id = 1;
1590
+ * @return {number}
1591
+ */
1592
+ proto.Spic.AssetProto.UpdateRequest.prototype.getId = function() {
1593
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1594
+ };
1595
+
1596
+
1597
+ /**
1598
+ * @param {number} value
1599
+ * @return {!proto.Spic.AssetProto.UpdateRequest} returns this
1600
+ */
1601
+ proto.Spic.AssetProto.UpdateRequest.prototype.setId = function(value) {
1602
+ return jspb.Message.setProto3IntField(this, 1, value);
1603
+ };
1604
+
1605
+
1606
+ /**
1607
+ * optional string name = 2;
1608
+ * @return {string}
1609
+ */
1610
+ proto.Spic.AssetProto.UpdateRequest.prototype.getName = function() {
1611
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1612
+ };
1613
+
1614
+
1615
+ /**
1616
+ * @param {string} value
1617
+ * @return {!proto.Spic.AssetProto.UpdateRequest} returns this
1618
+ */
1619
+ proto.Spic.AssetProto.UpdateRequest.prototype.setName = function(value) {
1620
+ return jspb.Message.setProto3StringField(this, 2, value);
1621
+ };
1622
+
1623
+
1624
+ /**
1625
+ * optional int64 location_id = 3;
1626
+ * @return {number}
1627
+ */
1628
+ proto.Spic.AssetProto.UpdateRequest.prototype.getLocationId = function() {
1629
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1630
+ };
1631
+
1632
+
1633
+ /**
1634
+ * @param {number} value
1635
+ * @return {!proto.Spic.AssetProto.UpdateRequest} returns this
1636
+ */
1637
+ proto.Spic.AssetProto.UpdateRequest.prototype.setLocationId = function(value) {
1638
+ return jspb.Message.setProto3IntField(this, 3, value);
1639
+ };
1640
+
1641
+
1642
+ /**
1643
+ * optional string uid = 4;
1644
+ * @return {string}
1645
+ */
1646
+ proto.Spic.AssetProto.UpdateRequest.prototype.getUid = function() {
1647
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1648
+ };
1649
+
1650
+
1651
+ /**
1652
+ * @param {string} value
1653
+ * @return {!proto.Spic.AssetProto.UpdateRequest} returns this
1654
+ */
1655
+ proto.Spic.AssetProto.UpdateRequest.prototype.setUid = function(value) {
1656
+ return jspb.Message.setProto3StringField(this, 4, value);
1657
+ };
1658
+
1659
+
1660
+ /**
1661
+ * optional google.protobuf.BytesValue image = 5;
1662
+ * @return {?proto.google.protobuf.BytesValue}
1663
+ */
1664
+ proto.Spic.AssetProto.UpdateRequest.prototype.getImage = function() {
1665
+ return /** @type{?proto.google.protobuf.BytesValue} */ (
1666
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.BytesValue, 5));
1667
+ };
1668
+
1669
+
1670
+ /**
1671
+ * @param {?proto.google.protobuf.BytesValue|undefined} value
1672
+ * @return {!proto.Spic.AssetProto.UpdateRequest} returns this
1673
+ */
1674
+ proto.Spic.AssetProto.UpdateRequest.prototype.setImage = function(value) {
1675
+ return jspb.Message.setWrapperField(this, 5, value);
1676
+ };
1677
+
1678
+
1679
+ /**
1680
+ * Clears the message field making it undefined.
1681
+ * @return {!proto.Spic.AssetProto.UpdateRequest} returns this
1682
+ */
1683
+ proto.Spic.AssetProto.UpdateRequest.prototype.clearImage = function() {
1684
+ return this.setImage(undefined);
1685
+ };
1686
+
1687
+
1688
+ /**
1689
+ * Returns whether this field is set.
1690
+ * @return {boolean}
1691
+ */
1692
+ proto.Spic.AssetProto.UpdateRequest.prototype.hasImage = function() {
1693
+ return jspb.Message.getField(this, 5) != null;
1694
+ };
1695
+
1696
+
1697
+ /**
1698
+ * optional string ext_io_1_name = 6;
1699
+ * @return {string}
1700
+ */
1701
+ proto.Spic.AssetProto.UpdateRequest.prototype.getExtIo1Name = function() {
1702
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1703
+ };
1704
+
1705
+
1706
+ /**
1707
+ * @param {string} value
1708
+ * @return {!proto.Spic.AssetProto.UpdateRequest} returns this
1709
+ */
1710
+ proto.Spic.AssetProto.UpdateRequest.prototype.setExtIo1Name = function(value) {
1711
+ return jspb.Message.setProto3StringField(this, 6, value);
1712
+ };
1713
+
1714
+
1715
+ /**
1716
+ * optional string ext_io_2_name = 7;
1717
+ * @return {string}
1718
+ */
1719
+ proto.Spic.AssetProto.UpdateRequest.prototype.getExtIo2Name = function() {
1720
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1721
+ };
1722
+
1723
+
1724
+ /**
1725
+ * @param {string} value
1726
+ * @return {!proto.Spic.AssetProto.UpdateRequest} returns this
1727
+ */
1728
+ proto.Spic.AssetProto.UpdateRequest.prototype.setExtIo2Name = function(value) {
1729
+ return jspb.Message.setProto3StringField(this, 7, value);
1730
+ };
1731
+
1732
+
1733
+ /**
1734
+ * optional string group_id = 8;
1735
+ * @return {string}
1736
+ */
1737
+ proto.Spic.AssetProto.UpdateRequest.prototype.getGroupId = function() {
1738
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1739
+ };
1740
+
1741
+
1742
+ /**
1743
+ * @param {string} value
1744
+ * @return {!proto.Spic.AssetProto.UpdateRequest} returns this
1745
+ */
1746
+ proto.Spic.AssetProto.UpdateRequest.prototype.setGroupId = function(value) {
1747
+ return jspb.Message.setProto3StringField(this, 8, value);
1748
+ };
1749
+
1750
+
1751
+ /**
1752
+ * optional int32 client_id = 9;
1753
+ * @return {number}
1754
+ */
1755
+ proto.Spic.AssetProto.UpdateRequest.prototype.getClientId = function() {
1756
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
1757
+ };
1758
+
1759
+
1760
+ /**
1761
+ * @param {number} value
1762
+ * @return {!proto.Spic.AssetProto.UpdateRequest} returns this
1763
+ */
1764
+ proto.Spic.AssetProto.UpdateRequest.prototype.setClientId = function(value) {
1765
+ return jspb.Message.setProto3IntField(this, 9, value);
1766
+ };
1767
+
1768
+
1769
+ /**
1770
+ * optional SpicType spic_type = 10;
1771
+ * @return {!proto.Spic.AssetProto.SpicType}
1772
+ */
1773
+ proto.Spic.AssetProto.UpdateRequest.prototype.getSpicType = function() {
1774
+ return /** @type {!proto.Spic.AssetProto.SpicType} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
1775
+ };
1776
+
1777
+
1778
+ /**
1779
+ * @param {!proto.Spic.AssetProto.SpicType} value
1780
+ * @return {!proto.Spic.AssetProto.UpdateRequest} returns this
1781
+ */
1782
+ proto.Spic.AssetProto.UpdateRequest.prototype.setSpicType = function(value) {
1783
+ return jspb.Message.setProto3EnumField(this, 10, value);
1784
+ };
1785
+
1786
+
1787
+
1788
+ /**
1789
+ * Oneof group definitions for this message. Each group defines the field
1790
+ * numbers belonging to that group. When of these fields' value is set, all
1791
+ * other fields in the group are cleared. During deserialization, if multiple
1792
+ * fields are encountered for a group, only the last value seen will be kept.
1793
+ * @private {!Array<!Array<number>>}
1794
+ * @const
1795
+ */
1796
+ proto.Spic.AssetProto.DeleteRequest.oneofGroups_ = [[1,2]];
1797
+
1798
+ /**
1799
+ * @enum {number}
1800
+ */
1801
+ proto.Spic.AssetProto.DeleteRequest.SearchCase = {
1802
+ SEARCH_NOT_SET: 0,
1803
+ ID: 1,
1804
+ UID: 2
1805
+ };
1806
+
1807
+ /**
1808
+ * @return {proto.Spic.AssetProto.DeleteRequest.SearchCase}
1809
+ */
1810
+ proto.Spic.AssetProto.DeleteRequest.prototype.getSearchCase = function() {
1811
+ return /** @type {proto.Spic.AssetProto.DeleteRequest.SearchCase} */(jspb.Message.computeOneofCase(this, proto.Spic.AssetProto.DeleteRequest.oneofGroups_[0]));
1812
+ };
1813
+
1814
+
1815
+
1816
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1817
+ /**
1818
+ * Creates an object representation of this proto.
1819
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1820
+ * Optional fields that are not set will be set to undefined.
1821
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1822
+ * For the list of reserved names please see:
1823
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1824
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1825
+ * JSPB instance for transitional soy proto support:
1826
+ * http://goto/soy-param-migration
1827
+ * @return {!Object}
1828
+ */
1829
+ proto.Spic.AssetProto.DeleteRequest.prototype.toObject = function(opt_includeInstance) {
1830
+ return proto.Spic.AssetProto.DeleteRequest.toObject(opt_includeInstance, this);
1831
+ };
1832
+
1833
+
1834
+ /**
1835
+ * Static version of the {@see toObject} method.
1836
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1837
+ * the JSPB instance for transitional soy proto support:
1838
+ * http://goto/soy-param-migration
1839
+ * @param {!proto.Spic.AssetProto.DeleteRequest} msg The msg instance to transform.
1840
+ * @return {!Object}
1841
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1842
+ */
1843
+ proto.Spic.AssetProto.DeleteRequest.toObject = function(includeInstance, msg) {
1844
+ var f, obj = {
1845
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1846
+ uid: jspb.Message.getFieldWithDefault(msg, 2, "")
1847
+ };
1848
+
1849
+ if (includeInstance) {
1850
+ obj.$jspbMessageInstance = msg;
1851
+ }
1852
+ return obj;
1853
+ };
1854
+ }
1855
+
1856
+
1857
+ /**
1858
+ * Deserializes binary data (in protobuf wire format).
1859
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1860
+ * @return {!proto.Spic.AssetProto.DeleteRequest}
1861
+ */
1862
+ proto.Spic.AssetProto.DeleteRequest.deserializeBinary = function(bytes) {
1863
+ var reader = new jspb.BinaryReader(bytes);
1864
+ var msg = new proto.Spic.AssetProto.DeleteRequest;
1865
+ return proto.Spic.AssetProto.DeleteRequest.deserializeBinaryFromReader(msg, reader);
1866
+ };
1867
+
1868
+
1869
+ /**
1870
+ * Deserializes binary data (in protobuf wire format) from the
1871
+ * given reader into the given message object.
1872
+ * @param {!proto.Spic.AssetProto.DeleteRequest} msg The message object to deserialize into.
1873
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1874
+ * @return {!proto.Spic.AssetProto.DeleteRequest}
1875
+ */
1876
+ proto.Spic.AssetProto.DeleteRequest.deserializeBinaryFromReader = function(msg, reader) {
1877
+ while (reader.nextField()) {
1878
+ if (reader.isEndGroup()) {
1879
+ break;
1880
+ }
1881
+ var field = reader.getFieldNumber();
1882
+ switch (field) {
1883
+ case 1:
1884
+ var value = /** @type {number} */ (reader.readInt64());
1885
+ msg.setId(value);
1886
+ break;
1887
+ case 2:
1888
+ var value = /** @type {string} */ (reader.readString());
1889
+ msg.setUid(value);
1890
+ break;
1891
+ default:
1892
+ reader.skipField();
1893
+ break;
1894
+ }
1895
+ }
1896
+ return msg;
1897
+ };
1898
+
1899
+
1900
+ /**
1901
+ * Serializes the message to binary data (in protobuf wire format).
1902
+ * @return {!Uint8Array}
1903
+ */
1904
+ proto.Spic.AssetProto.DeleteRequest.prototype.serializeBinary = function() {
1905
+ var writer = new jspb.BinaryWriter();
1906
+ proto.Spic.AssetProto.DeleteRequest.serializeBinaryToWriter(this, writer);
1907
+ return writer.getResultBuffer();
1908
+ };
1909
+
1910
+
1911
+ /**
1912
+ * Serializes the given message to binary data (in protobuf wire
1913
+ * format), writing to the given BinaryWriter.
1914
+ * @param {!proto.Spic.AssetProto.DeleteRequest} message
1915
+ * @param {!jspb.BinaryWriter} writer
1916
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1917
+ */
1918
+ proto.Spic.AssetProto.DeleteRequest.serializeBinaryToWriter = function(message, writer) {
1919
+ var f = undefined;
1920
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
1921
+ if (f != null) {
1922
+ writer.writeInt64(
1923
+ 1,
1924
+ f
1925
+ );
1926
+ }
1927
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
1928
+ if (f != null) {
1929
+ writer.writeString(
1930
+ 2,
1931
+ f
1932
+ );
1933
+ }
1934
+ };
1935
+
1936
+
1937
+ /**
1938
+ * optional int64 id = 1;
1939
+ * @return {number}
1940
+ */
1941
+ proto.Spic.AssetProto.DeleteRequest.prototype.getId = function() {
1942
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1943
+ };
1944
+
1945
+
1946
+ /**
1947
+ * @param {number} value
1948
+ * @return {!proto.Spic.AssetProto.DeleteRequest} returns this
1949
+ */
1950
+ proto.Spic.AssetProto.DeleteRequest.prototype.setId = function(value) {
1951
+ return jspb.Message.setOneofField(this, 1, proto.Spic.AssetProto.DeleteRequest.oneofGroups_[0], value);
1952
+ };
1953
+
1954
+
1955
+ /**
1956
+ * Clears the field making it undefined.
1957
+ * @return {!proto.Spic.AssetProto.DeleteRequest} returns this
1958
+ */
1959
+ proto.Spic.AssetProto.DeleteRequest.prototype.clearId = function() {
1960
+ return jspb.Message.setOneofField(this, 1, proto.Spic.AssetProto.DeleteRequest.oneofGroups_[0], undefined);
1961
+ };
1962
+
1963
+
1964
+ /**
1965
+ * Returns whether this field is set.
1966
+ * @return {boolean}
1967
+ */
1968
+ proto.Spic.AssetProto.DeleteRequest.prototype.hasId = function() {
1969
+ return jspb.Message.getField(this, 1) != null;
1970
+ };
1971
+
1972
+
1973
+ /**
1974
+ * optional string uid = 2;
1975
+ * @return {string}
1976
+ */
1977
+ proto.Spic.AssetProto.DeleteRequest.prototype.getUid = function() {
1978
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1979
+ };
1980
+
1981
+
1982
+ /**
1983
+ * @param {string} value
1984
+ * @return {!proto.Spic.AssetProto.DeleteRequest} returns this
1985
+ */
1986
+ proto.Spic.AssetProto.DeleteRequest.prototype.setUid = function(value) {
1987
+ return jspb.Message.setOneofField(this, 2, proto.Spic.AssetProto.DeleteRequest.oneofGroups_[0], value);
1988
+ };
1989
+
1990
+
1991
+ /**
1992
+ * Clears the field making it undefined.
1993
+ * @return {!proto.Spic.AssetProto.DeleteRequest} returns this
1994
+ */
1995
+ proto.Spic.AssetProto.DeleteRequest.prototype.clearUid = function() {
1996
+ return jspb.Message.setOneofField(this, 2, proto.Spic.AssetProto.DeleteRequest.oneofGroups_[0], undefined);
1997
+ };
1998
+
1999
+
2000
+ /**
2001
+ * Returns whether this field is set.
2002
+ * @return {boolean}
2003
+ */
2004
+ proto.Spic.AssetProto.DeleteRequest.prototype.hasUid = function() {
2005
+ return jspb.Message.getField(this, 2) != null;
2006
+ };
2007
+
2008
+
2009
+
2010
+
2011
+
2012
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2013
+ /**
2014
+ * Creates an object representation of this proto.
2015
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2016
+ * Optional fields that are not set will be set to undefined.
2017
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2018
+ * For the list of reserved names please see:
2019
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2020
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2021
+ * JSPB instance for transitional soy proto support:
2022
+ * http://goto/soy-param-migration
2023
+ * @return {!Object}
2024
+ */
2025
+ proto.Spic.AssetProto.SearchRequest.prototype.toObject = function(opt_includeInstance) {
2026
+ return proto.Spic.AssetProto.SearchRequest.toObject(opt_includeInstance, this);
2027
+ };
2028
+
2029
+
2030
+ /**
2031
+ * Static version of the {@see toObject} method.
2032
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2033
+ * the JSPB instance for transitional soy proto support:
2034
+ * http://goto/soy-param-migration
2035
+ * @param {!proto.Spic.AssetProto.SearchRequest} msg The msg instance to transform.
2036
+ * @return {!Object}
2037
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2038
+ */
2039
+ proto.Spic.AssetProto.SearchRequest.toObject = function(includeInstance, msg) {
2040
+ var f, obj = {
2041
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
2042
+ locationId: jspb.Message.getFieldWithDefault(msg, 2, 0),
2043
+ groupId: jspb.Message.getFieldWithDefault(msg, 3, ""),
2044
+ page: jspb.Message.getFieldWithDefault(msg, 4, 0),
2045
+ count: jspb.Message.getFieldWithDefault(msg, 5, 0),
2046
+ spicType: jspb.Message.getFieldWithDefault(msg, 6, 0)
2047
+ };
2048
+
2049
+ if (includeInstance) {
2050
+ obj.$jspbMessageInstance = msg;
2051
+ }
2052
+ return obj;
2053
+ };
2054
+ }
2055
+
2056
+
2057
+ /**
2058
+ * Deserializes binary data (in protobuf wire format).
2059
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2060
+ * @return {!proto.Spic.AssetProto.SearchRequest}
2061
+ */
2062
+ proto.Spic.AssetProto.SearchRequest.deserializeBinary = function(bytes) {
2063
+ var reader = new jspb.BinaryReader(bytes);
2064
+ var msg = new proto.Spic.AssetProto.SearchRequest;
2065
+ return proto.Spic.AssetProto.SearchRequest.deserializeBinaryFromReader(msg, reader);
2066
+ };
2067
+
2068
+
2069
+ /**
2070
+ * Deserializes binary data (in protobuf wire format) from the
2071
+ * given reader into the given message object.
2072
+ * @param {!proto.Spic.AssetProto.SearchRequest} msg The message object to deserialize into.
2073
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2074
+ * @return {!proto.Spic.AssetProto.SearchRequest}
2075
+ */
2076
+ proto.Spic.AssetProto.SearchRequest.deserializeBinaryFromReader = function(msg, reader) {
2077
+ while (reader.nextField()) {
2078
+ if (reader.isEndGroup()) {
2079
+ break;
2080
+ }
2081
+ var field = reader.getFieldNumber();
2082
+ switch (field) {
2083
+ case 1:
2084
+ var value = /** @type {string} */ (reader.readString());
2085
+ msg.setName(value);
2086
+ break;
2087
+ case 2:
2088
+ var value = /** @type {number} */ (reader.readInt64());
2089
+ msg.setLocationId(value);
2090
+ break;
2091
+ case 3:
2092
+ var value = /** @type {string} */ (reader.readString());
2093
+ msg.setGroupId(value);
2094
+ break;
2095
+ case 4:
2096
+ var value = /** @type {number} */ (reader.readInt32());
2097
+ msg.setPage(value);
2098
+ break;
2099
+ case 5:
2100
+ var value = /** @type {number} */ (reader.readInt32());
2101
+ msg.setCount(value);
2102
+ break;
2103
+ case 6:
2104
+ var value = /** @type {!proto.Spic.AssetProto.SpicType} */ (reader.readEnum());
2105
+ msg.setSpicType(value);
2106
+ break;
2107
+ default:
2108
+ reader.skipField();
2109
+ break;
2110
+ }
2111
+ }
2112
+ return msg;
2113
+ };
2114
+
2115
+
2116
+ /**
2117
+ * Serializes the message to binary data (in protobuf wire format).
2118
+ * @return {!Uint8Array}
2119
+ */
2120
+ proto.Spic.AssetProto.SearchRequest.prototype.serializeBinary = function() {
2121
+ var writer = new jspb.BinaryWriter();
2122
+ proto.Spic.AssetProto.SearchRequest.serializeBinaryToWriter(this, writer);
2123
+ return writer.getResultBuffer();
2124
+ };
2125
+
2126
+
2127
+ /**
2128
+ * Serializes the given message to binary data (in protobuf wire
2129
+ * format), writing to the given BinaryWriter.
2130
+ * @param {!proto.Spic.AssetProto.SearchRequest} message
2131
+ * @param {!jspb.BinaryWriter} writer
2132
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2133
+ */
2134
+ proto.Spic.AssetProto.SearchRequest.serializeBinaryToWriter = function(message, writer) {
2135
+ var f = undefined;
2136
+ f = message.getName();
2137
+ if (f.length > 0) {
2138
+ writer.writeString(
2139
+ 1,
2140
+ f
2141
+ );
2142
+ }
2143
+ f = message.getLocationId();
2144
+ if (f !== 0) {
2145
+ writer.writeInt64(
2146
+ 2,
2147
+ f
2148
+ );
2149
+ }
2150
+ f = message.getGroupId();
2151
+ if (f.length > 0) {
2152
+ writer.writeString(
2153
+ 3,
2154
+ f
2155
+ );
2156
+ }
2157
+ f = message.getPage();
2158
+ if (f !== 0) {
2159
+ writer.writeInt32(
2160
+ 4,
2161
+ f
2162
+ );
2163
+ }
2164
+ f = message.getCount();
2165
+ if (f !== 0) {
2166
+ writer.writeInt32(
2167
+ 5,
2168
+ f
2169
+ );
2170
+ }
2171
+ f = message.getSpicType();
2172
+ if (f !== 0.0) {
2173
+ writer.writeEnum(
2174
+ 6,
2175
+ f
2176
+ );
2177
+ }
2178
+ };
2179
+
2180
+
2181
+ /**
2182
+ * optional string name = 1;
2183
+ * @return {string}
2184
+ */
2185
+ proto.Spic.AssetProto.SearchRequest.prototype.getName = function() {
2186
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2187
+ };
2188
+
2189
+
2190
+ /**
2191
+ * @param {string} value
2192
+ * @return {!proto.Spic.AssetProto.SearchRequest} returns this
2193
+ */
2194
+ proto.Spic.AssetProto.SearchRequest.prototype.setName = function(value) {
2195
+ return jspb.Message.setProto3StringField(this, 1, value);
2196
+ };
2197
+
2198
+
2199
+ /**
2200
+ * optional int64 location_id = 2;
2201
+ * @return {number}
2202
+ */
2203
+ proto.Spic.AssetProto.SearchRequest.prototype.getLocationId = function() {
2204
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2205
+ };
2206
+
2207
+
2208
+ /**
2209
+ * @param {number} value
2210
+ * @return {!proto.Spic.AssetProto.SearchRequest} returns this
2211
+ */
2212
+ proto.Spic.AssetProto.SearchRequest.prototype.setLocationId = function(value) {
2213
+ return jspb.Message.setProto3IntField(this, 2, value);
2214
+ };
2215
+
2216
+
2217
+ /**
2218
+ * optional string group_id = 3;
2219
+ * @return {string}
2220
+ */
2221
+ proto.Spic.AssetProto.SearchRequest.prototype.getGroupId = function() {
2222
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2223
+ };
2224
+
2225
+
2226
+ /**
2227
+ * @param {string} value
2228
+ * @return {!proto.Spic.AssetProto.SearchRequest} returns this
2229
+ */
2230
+ proto.Spic.AssetProto.SearchRequest.prototype.setGroupId = function(value) {
2231
+ return jspb.Message.setProto3StringField(this, 3, value);
2232
+ };
2233
+
2234
+
2235
+ /**
2236
+ * optional int32 page = 4;
2237
+ * @return {number}
2238
+ */
2239
+ proto.Spic.AssetProto.SearchRequest.prototype.getPage = function() {
2240
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
2241
+ };
2242
+
2243
+
2244
+ /**
2245
+ * @param {number} value
2246
+ * @return {!proto.Spic.AssetProto.SearchRequest} returns this
2247
+ */
2248
+ proto.Spic.AssetProto.SearchRequest.prototype.setPage = function(value) {
2249
+ return jspb.Message.setProto3IntField(this, 4, value);
2250
+ };
2251
+
2252
+
2253
+ /**
2254
+ * optional int32 count = 5;
2255
+ * @return {number}
2256
+ */
2257
+ proto.Spic.AssetProto.SearchRequest.prototype.getCount = function() {
2258
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
2259
+ };
2260
+
2261
+
2262
+ /**
2263
+ * @param {number} value
2264
+ * @return {!proto.Spic.AssetProto.SearchRequest} returns this
2265
+ */
2266
+ proto.Spic.AssetProto.SearchRequest.prototype.setCount = function(value) {
2267
+ return jspb.Message.setProto3IntField(this, 5, value);
2268
+ };
2269
+
2270
+
2271
+ /**
2272
+ * optional SpicType spic_type = 6;
2273
+ * @return {!proto.Spic.AssetProto.SpicType}
2274
+ */
2275
+ proto.Spic.AssetProto.SearchRequest.prototype.getSpicType = function() {
2276
+ return /** @type {!proto.Spic.AssetProto.SpicType} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
2277
+ };
2278
+
2279
+
2280
+ /**
2281
+ * @param {!proto.Spic.AssetProto.SpicType} value
2282
+ * @return {!proto.Spic.AssetProto.SearchRequest} returns this
2283
+ */
2284
+ proto.Spic.AssetProto.SearchRequest.prototype.setSpicType = function(value) {
2285
+ return jspb.Message.setProto3EnumField(this, 6, value);
2286
+ };
2287
+
2288
+
2289
+
2290
+ /**
2291
+ * List of repeated fields within this message type.
2292
+ * @private {!Array<number>}
2293
+ * @const
2294
+ */
2295
+ proto.Spic.AssetProto.SearchReply.repeatedFields_ = [1];
2296
+
2297
+
2298
+
2299
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2300
+ /**
2301
+ * Creates an object representation of this proto.
2302
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2303
+ * Optional fields that are not set will be set to undefined.
2304
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2305
+ * For the list of reserved names please see:
2306
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2307
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2308
+ * JSPB instance for transitional soy proto support:
2309
+ * http://goto/soy-param-migration
2310
+ * @return {!Object}
2311
+ */
2312
+ proto.Spic.AssetProto.SearchReply.prototype.toObject = function(opt_includeInstance) {
2313
+ return proto.Spic.AssetProto.SearchReply.toObject(opt_includeInstance, this);
2314
+ };
2315
+
2316
+
2317
+ /**
2318
+ * Static version of the {@see toObject} method.
2319
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2320
+ * the JSPB instance for transitional soy proto support:
2321
+ * http://goto/soy-param-migration
2322
+ * @param {!proto.Spic.AssetProto.SearchReply} msg The msg instance to transform.
2323
+ * @return {!Object}
2324
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2325
+ */
2326
+ proto.Spic.AssetProto.SearchReply.toObject = function(includeInstance, msg) {
2327
+ var f, obj = {
2328
+ assetsList: jspb.Message.toObjectList(msg.getAssetsList(),
2329
+ proto.Spic.AssetWithLocation.toObject, includeInstance),
2330
+ pagination: (f = msg.getPagination()) && platform_pagination_pb.PaginationProto.toObject(includeInstance, f)
2331
+ };
2332
+
2333
+ if (includeInstance) {
2334
+ obj.$jspbMessageInstance = msg;
2335
+ }
2336
+ return obj;
2337
+ };
2338
+ }
2339
+
2340
+
2341
+ /**
2342
+ * Deserializes binary data (in protobuf wire format).
2343
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2344
+ * @return {!proto.Spic.AssetProto.SearchReply}
2345
+ */
2346
+ proto.Spic.AssetProto.SearchReply.deserializeBinary = function(bytes) {
2347
+ var reader = new jspb.BinaryReader(bytes);
2348
+ var msg = new proto.Spic.AssetProto.SearchReply;
2349
+ return proto.Spic.AssetProto.SearchReply.deserializeBinaryFromReader(msg, reader);
2350
+ };
2351
+
2352
+
2353
+ /**
2354
+ * Deserializes binary data (in protobuf wire format) from the
2355
+ * given reader into the given message object.
2356
+ * @param {!proto.Spic.AssetProto.SearchReply} msg The message object to deserialize into.
2357
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2358
+ * @return {!proto.Spic.AssetProto.SearchReply}
2359
+ */
2360
+ proto.Spic.AssetProto.SearchReply.deserializeBinaryFromReader = function(msg, reader) {
2361
+ while (reader.nextField()) {
2362
+ if (reader.isEndGroup()) {
2363
+ break;
2364
+ }
2365
+ var field = reader.getFieldNumber();
2366
+ switch (field) {
2367
+ case 1:
2368
+ var value = new proto.Spic.AssetWithLocation;
2369
+ reader.readMessage(value,proto.Spic.AssetWithLocation.deserializeBinaryFromReader);
2370
+ msg.addAssets(value);
2371
+ break;
2372
+ case 2:
2373
+ var value = new platform_pagination_pb.PaginationProto;
2374
+ reader.readMessage(value,platform_pagination_pb.PaginationProto.deserializeBinaryFromReader);
2375
+ msg.setPagination(value);
2376
+ break;
2377
+ default:
2378
+ reader.skipField();
2379
+ break;
2380
+ }
2381
+ }
2382
+ return msg;
2383
+ };
2384
+
2385
+
2386
+ /**
2387
+ * Serializes the message to binary data (in protobuf wire format).
2388
+ * @return {!Uint8Array}
2389
+ */
2390
+ proto.Spic.AssetProto.SearchReply.prototype.serializeBinary = function() {
2391
+ var writer = new jspb.BinaryWriter();
2392
+ proto.Spic.AssetProto.SearchReply.serializeBinaryToWriter(this, writer);
2393
+ return writer.getResultBuffer();
2394
+ };
2395
+
2396
+
2397
+ /**
2398
+ * Serializes the given message to binary data (in protobuf wire
2399
+ * format), writing to the given BinaryWriter.
2400
+ * @param {!proto.Spic.AssetProto.SearchReply} message
2401
+ * @param {!jspb.BinaryWriter} writer
2402
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2403
+ */
2404
+ proto.Spic.AssetProto.SearchReply.serializeBinaryToWriter = function(message, writer) {
2405
+ var f = undefined;
2406
+ f = message.getAssetsList();
2407
+ if (f.length > 0) {
2408
+ writer.writeRepeatedMessage(
2409
+ 1,
2410
+ f,
2411
+ proto.Spic.AssetWithLocation.serializeBinaryToWriter
2412
+ );
2413
+ }
2414
+ f = message.getPagination();
2415
+ if (f != null) {
2416
+ writer.writeMessage(
2417
+ 2,
2418
+ f,
2419
+ platform_pagination_pb.PaginationProto.serializeBinaryToWriter
2420
+ );
2421
+ }
2422
+ };
2423
+
2424
+
2425
+ /**
2426
+ * repeated AssetWithLocation assets = 1;
2427
+ * @return {!Array<!proto.Spic.AssetWithLocation>}
2428
+ */
2429
+ proto.Spic.AssetProto.SearchReply.prototype.getAssetsList = function() {
2430
+ return /** @type{!Array<!proto.Spic.AssetWithLocation>} */ (
2431
+ jspb.Message.getRepeatedWrapperField(this, proto.Spic.AssetWithLocation, 1));
2432
+ };
2433
+
2434
+
2435
+ /**
2436
+ * @param {!Array<!proto.Spic.AssetWithLocation>} value
2437
+ * @return {!proto.Spic.AssetProto.SearchReply} returns this
2438
+ */
2439
+ proto.Spic.AssetProto.SearchReply.prototype.setAssetsList = function(value) {
2440
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2441
+ };
2442
+
2443
+
2444
+ /**
2445
+ * @param {!proto.Spic.AssetWithLocation=} opt_value
2446
+ * @param {number=} opt_index
2447
+ * @return {!proto.Spic.AssetWithLocation}
2448
+ */
2449
+ proto.Spic.AssetProto.SearchReply.prototype.addAssets = function(opt_value, opt_index) {
2450
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Spic.AssetWithLocation, opt_index);
2451
+ };
2452
+
2453
+
2454
+ /**
2455
+ * Clears the list making it empty but non-null.
2456
+ * @return {!proto.Spic.AssetProto.SearchReply} returns this
2457
+ */
2458
+ proto.Spic.AssetProto.SearchReply.prototype.clearAssetsList = function() {
2459
+ return this.setAssetsList([]);
2460
+ };
2461
+
2462
+
2463
+ /**
2464
+ * optional Platform.PaginationProto pagination = 2;
2465
+ * @return {?proto.Platform.PaginationProto}
2466
+ */
2467
+ proto.Spic.AssetProto.SearchReply.prototype.getPagination = function() {
2468
+ return /** @type{?proto.Platform.PaginationProto} */ (
2469
+ jspb.Message.getWrapperField(this, platform_pagination_pb.PaginationProto, 2));
2470
+ };
2471
+
2472
+
2473
+ /**
2474
+ * @param {?proto.Platform.PaginationProto|undefined} value
2475
+ * @return {!proto.Spic.AssetProto.SearchReply} returns this
2476
+ */
2477
+ proto.Spic.AssetProto.SearchReply.prototype.setPagination = function(value) {
2478
+ return jspb.Message.setWrapperField(this, 2, value);
2479
+ };
2480
+
2481
+
2482
+ /**
2483
+ * Clears the message field making it undefined.
2484
+ * @return {!proto.Spic.AssetProto.SearchReply} returns this
2485
+ */
2486
+ proto.Spic.AssetProto.SearchReply.prototype.clearPagination = function() {
2487
+ return this.setPagination(undefined);
2488
+ };
2489
+
2490
+
2491
+ /**
2492
+ * Returns whether this field is set.
2493
+ * @return {boolean}
2494
+ */
2495
+ proto.Spic.AssetProto.SearchReply.prototype.hasPagination = function() {
2496
+ return jspb.Message.getField(this, 2) != null;
2497
+ };
2498
+
2499
+
2500
+
2501
+
2502
+
2503
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2504
+ /**
2505
+ * Creates an object representation of this proto.
2506
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2507
+ * Optional fields that are not set will be set to undefined.
2508
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2509
+ * For the list of reserved names please see:
2510
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2511
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2512
+ * JSPB instance for transitional soy proto support:
2513
+ * http://goto/soy-param-migration
2514
+ * @return {!Object}
2515
+ */
2516
+ proto.Spic.AssetProto.LocationSearchRequest.prototype.toObject = function(opt_includeInstance) {
2517
+ return proto.Spic.AssetProto.LocationSearchRequest.toObject(opt_includeInstance, this);
2518
+ };
2519
+
2520
+
2521
+ /**
2522
+ * Static version of the {@see toObject} method.
2523
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2524
+ * the JSPB instance for transitional soy proto support:
2525
+ * http://goto/soy-param-migration
2526
+ * @param {!proto.Spic.AssetProto.LocationSearchRequest} msg The msg instance to transform.
2527
+ * @return {!Object}
2528
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2529
+ */
2530
+ proto.Spic.AssetProto.LocationSearchRequest.toObject = function(includeInstance, msg) {
2531
+ var f, obj = {
2532
+ latitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
2533
+ longitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
2534
+ limit: jspb.Message.getFieldWithDefault(msg, 3, 0)
2535
+ };
2536
+
2537
+ if (includeInstance) {
2538
+ obj.$jspbMessageInstance = msg;
2539
+ }
2540
+ return obj;
2541
+ };
2542
+ }
2543
+
2544
+
2545
+ /**
2546
+ * Deserializes binary data (in protobuf wire format).
2547
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2548
+ * @return {!proto.Spic.AssetProto.LocationSearchRequest}
2549
+ */
2550
+ proto.Spic.AssetProto.LocationSearchRequest.deserializeBinary = function(bytes) {
2551
+ var reader = new jspb.BinaryReader(bytes);
2552
+ var msg = new proto.Spic.AssetProto.LocationSearchRequest;
2553
+ return proto.Spic.AssetProto.LocationSearchRequest.deserializeBinaryFromReader(msg, reader);
2554
+ };
2555
+
2556
+
2557
+ /**
2558
+ * Deserializes binary data (in protobuf wire format) from the
2559
+ * given reader into the given message object.
2560
+ * @param {!proto.Spic.AssetProto.LocationSearchRequest} msg The message object to deserialize into.
2561
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2562
+ * @return {!proto.Spic.AssetProto.LocationSearchRequest}
2563
+ */
2564
+ proto.Spic.AssetProto.LocationSearchRequest.deserializeBinaryFromReader = function(msg, reader) {
2565
+ while (reader.nextField()) {
2566
+ if (reader.isEndGroup()) {
2567
+ break;
2568
+ }
2569
+ var field = reader.getFieldNumber();
2570
+ switch (field) {
2571
+ case 1:
2572
+ var value = /** @type {number} */ (reader.readDouble());
2573
+ msg.setLatitude(value);
2574
+ break;
2575
+ case 2:
2576
+ var value = /** @type {number} */ (reader.readDouble());
2577
+ msg.setLongitude(value);
2578
+ break;
2579
+ case 3:
2580
+ var value = /** @type {number} */ (reader.readInt32());
2581
+ msg.setLimit(value);
2582
+ break;
2583
+ default:
2584
+ reader.skipField();
2585
+ break;
2586
+ }
2587
+ }
2588
+ return msg;
2589
+ };
2590
+
2591
+
2592
+ /**
2593
+ * Serializes the message to binary data (in protobuf wire format).
2594
+ * @return {!Uint8Array}
2595
+ */
2596
+ proto.Spic.AssetProto.LocationSearchRequest.prototype.serializeBinary = function() {
2597
+ var writer = new jspb.BinaryWriter();
2598
+ proto.Spic.AssetProto.LocationSearchRequest.serializeBinaryToWriter(this, writer);
2599
+ return writer.getResultBuffer();
2600
+ };
2601
+
2602
+
2603
+ /**
2604
+ * Serializes the given message to binary data (in protobuf wire
2605
+ * format), writing to the given BinaryWriter.
2606
+ * @param {!proto.Spic.AssetProto.LocationSearchRequest} message
2607
+ * @param {!jspb.BinaryWriter} writer
2608
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2609
+ */
2610
+ proto.Spic.AssetProto.LocationSearchRequest.serializeBinaryToWriter = function(message, writer) {
2611
+ var f = undefined;
2612
+ f = message.getLatitude();
2613
+ if (f !== 0.0) {
2614
+ writer.writeDouble(
2615
+ 1,
2616
+ f
2617
+ );
2618
+ }
2619
+ f = message.getLongitude();
2620
+ if (f !== 0.0) {
2621
+ writer.writeDouble(
2622
+ 2,
2623
+ f
2624
+ );
2625
+ }
2626
+ f = message.getLimit();
2627
+ if (f !== 0) {
2628
+ writer.writeInt32(
2629
+ 3,
2630
+ f
2631
+ );
2632
+ }
2633
+ };
2634
+
2635
+
2636
+ /**
2637
+ * optional double latitude = 1;
2638
+ * @return {number}
2639
+ */
2640
+ proto.Spic.AssetProto.LocationSearchRequest.prototype.getLatitude = function() {
2641
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
2642
+ };
2643
+
2644
+
2645
+ /**
2646
+ * @param {number} value
2647
+ * @return {!proto.Spic.AssetProto.LocationSearchRequest} returns this
2648
+ */
2649
+ proto.Spic.AssetProto.LocationSearchRequest.prototype.setLatitude = function(value) {
2650
+ return jspb.Message.setProto3FloatField(this, 1, value);
2651
+ };
2652
+
2653
+
2654
+ /**
2655
+ * optional double longitude = 2;
2656
+ * @return {number}
2657
+ */
2658
+ proto.Spic.AssetProto.LocationSearchRequest.prototype.getLongitude = function() {
2659
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
2660
+ };
2661
+
2662
+
2663
+ /**
2664
+ * @param {number} value
2665
+ * @return {!proto.Spic.AssetProto.LocationSearchRequest} returns this
2666
+ */
2667
+ proto.Spic.AssetProto.LocationSearchRequest.prototype.setLongitude = function(value) {
2668
+ return jspb.Message.setProto3FloatField(this, 2, value);
2669
+ };
2670
+
2671
+
2672
+ /**
2673
+ * optional int32 limit = 3;
2674
+ * @return {number}
2675
+ */
2676
+ proto.Spic.AssetProto.LocationSearchRequest.prototype.getLimit = function() {
2677
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2678
+ };
2679
+
2680
+
2681
+ /**
2682
+ * @param {number} value
2683
+ * @return {!proto.Spic.AssetProto.LocationSearchRequest} returns this
2684
+ */
2685
+ proto.Spic.AssetProto.LocationSearchRequest.prototype.setLimit = function(value) {
2686
+ return jspb.Message.setProto3IntField(this, 3, value);
2687
+ };
2688
+
2689
+
2690
+
2691
+ /**
2692
+ * List of repeated fields within this message type.
2693
+ * @private {!Array<number>}
2694
+ * @const
2695
+ */
2696
+ proto.Spic.AssetProto.LocationSearchReply.repeatedFields_ = [1];
2697
+
2698
+
2699
+
2700
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2701
+ /**
2702
+ * Creates an object representation of this proto.
2703
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2704
+ * Optional fields that are not set will be set to undefined.
2705
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2706
+ * For the list of reserved names please see:
2707
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2708
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2709
+ * JSPB instance for transitional soy proto support:
2710
+ * http://goto/soy-param-migration
2711
+ * @return {!Object}
2712
+ */
2713
+ proto.Spic.AssetProto.LocationSearchReply.prototype.toObject = function(opt_includeInstance) {
2714
+ return proto.Spic.AssetProto.LocationSearchReply.toObject(opt_includeInstance, this);
2715
+ };
2716
+
2717
+
2718
+ /**
2719
+ * Static version of the {@see toObject} method.
2720
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2721
+ * the JSPB instance for transitional soy proto support:
2722
+ * http://goto/soy-param-migration
2723
+ * @param {!proto.Spic.AssetProto.LocationSearchReply} msg The msg instance to transform.
2724
+ * @return {!Object}
2725
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2726
+ */
2727
+ proto.Spic.AssetProto.LocationSearchReply.toObject = function(includeInstance, msg) {
2728
+ var f, obj = {
2729
+ assetsList: jspb.Message.toObjectList(msg.getAssetsList(),
2730
+ proto.Spic.AssetWithLocationAndDistance.toObject, includeInstance)
2731
+ };
2732
+
2733
+ if (includeInstance) {
2734
+ obj.$jspbMessageInstance = msg;
2735
+ }
2736
+ return obj;
2737
+ };
2738
+ }
2739
+
2740
+
2741
+ /**
2742
+ * Deserializes binary data (in protobuf wire format).
2743
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2744
+ * @return {!proto.Spic.AssetProto.LocationSearchReply}
2745
+ */
2746
+ proto.Spic.AssetProto.LocationSearchReply.deserializeBinary = function(bytes) {
2747
+ var reader = new jspb.BinaryReader(bytes);
2748
+ var msg = new proto.Spic.AssetProto.LocationSearchReply;
2749
+ return proto.Spic.AssetProto.LocationSearchReply.deserializeBinaryFromReader(msg, reader);
2750
+ };
2751
+
2752
+
2753
+ /**
2754
+ * Deserializes binary data (in protobuf wire format) from the
2755
+ * given reader into the given message object.
2756
+ * @param {!proto.Spic.AssetProto.LocationSearchReply} msg The message object to deserialize into.
2757
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2758
+ * @return {!proto.Spic.AssetProto.LocationSearchReply}
2759
+ */
2760
+ proto.Spic.AssetProto.LocationSearchReply.deserializeBinaryFromReader = function(msg, reader) {
2761
+ while (reader.nextField()) {
2762
+ if (reader.isEndGroup()) {
2763
+ break;
2764
+ }
2765
+ var field = reader.getFieldNumber();
2766
+ switch (field) {
2767
+ case 1:
2768
+ var value = new proto.Spic.AssetWithLocationAndDistance;
2769
+ reader.readMessage(value,proto.Spic.AssetWithLocationAndDistance.deserializeBinaryFromReader);
2770
+ msg.addAssets(value);
2771
+ break;
2772
+ default:
2773
+ reader.skipField();
2774
+ break;
2775
+ }
2776
+ }
2777
+ return msg;
2778
+ };
2779
+
2780
+
2781
+ /**
2782
+ * Serializes the message to binary data (in protobuf wire format).
2783
+ * @return {!Uint8Array}
2784
+ */
2785
+ proto.Spic.AssetProto.LocationSearchReply.prototype.serializeBinary = function() {
2786
+ var writer = new jspb.BinaryWriter();
2787
+ proto.Spic.AssetProto.LocationSearchReply.serializeBinaryToWriter(this, writer);
2788
+ return writer.getResultBuffer();
2789
+ };
2790
+
2791
+
2792
+ /**
2793
+ * Serializes the given message to binary data (in protobuf wire
2794
+ * format), writing to the given BinaryWriter.
2795
+ * @param {!proto.Spic.AssetProto.LocationSearchReply} message
2796
+ * @param {!jspb.BinaryWriter} writer
2797
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2798
+ */
2799
+ proto.Spic.AssetProto.LocationSearchReply.serializeBinaryToWriter = function(message, writer) {
2800
+ var f = undefined;
2801
+ f = message.getAssetsList();
2802
+ if (f.length > 0) {
2803
+ writer.writeRepeatedMessage(
2804
+ 1,
2805
+ f,
2806
+ proto.Spic.AssetWithLocationAndDistance.serializeBinaryToWriter
2807
+ );
2808
+ }
2809
+ };
2810
+
2811
+
2812
+ /**
2813
+ * repeated AssetWithLocationAndDistance assets = 1;
2814
+ * @return {!Array<!proto.Spic.AssetWithLocationAndDistance>}
2815
+ */
2816
+ proto.Spic.AssetProto.LocationSearchReply.prototype.getAssetsList = function() {
2817
+ return /** @type{!Array<!proto.Spic.AssetWithLocationAndDistance>} */ (
2818
+ jspb.Message.getRepeatedWrapperField(this, proto.Spic.AssetWithLocationAndDistance, 1));
2819
+ };
2820
+
2821
+
2822
+ /**
2823
+ * @param {!Array<!proto.Spic.AssetWithLocationAndDistance>} value
2824
+ * @return {!proto.Spic.AssetProto.LocationSearchReply} returns this
2825
+ */
2826
+ proto.Spic.AssetProto.LocationSearchReply.prototype.setAssetsList = function(value) {
2827
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2828
+ };
2829
+
2830
+
2831
+ /**
2832
+ * @param {!proto.Spic.AssetWithLocationAndDistance=} opt_value
2833
+ * @param {number=} opt_index
2834
+ * @return {!proto.Spic.AssetWithLocationAndDistance}
2835
+ */
2836
+ proto.Spic.AssetProto.LocationSearchReply.prototype.addAssets = function(opt_value, opt_index) {
2837
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Spic.AssetWithLocationAndDistance, opt_index);
2838
+ };
2839
+
2840
+
2841
+ /**
2842
+ * Clears the list making it empty but non-null.
2843
+ * @return {!proto.Spic.AssetProto.LocationSearchReply} returns this
2844
+ */
2845
+ proto.Spic.AssetProto.LocationSearchReply.prototype.clearAssetsList = function() {
2846
+ return this.setAssetsList([]);
2847
+ };
2848
+
2849
+
2850
+
2851
+
2852
+
2853
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2854
+ /**
2855
+ * Creates an object representation of this proto.
2856
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2857
+ * Optional fields that are not set will be set to undefined.
2858
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2859
+ * For the list of reserved names please see:
2860
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2861
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2862
+ * JSPB instance for transitional soy proto support:
2863
+ * http://goto/soy-param-migration
2864
+ * @return {!Object}
2865
+ */
2866
+ proto.Spic.AssetProto.ReplaceBatteryRequest.prototype.toObject = function(opt_includeInstance) {
2867
+ return proto.Spic.AssetProto.ReplaceBatteryRequest.toObject(opt_includeInstance, this);
2868
+ };
2869
+
2870
+
2871
+ /**
2872
+ * Static version of the {@see toObject} method.
2873
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2874
+ * the JSPB instance for transitional soy proto support:
2875
+ * http://goto/soy-param-migration
2876
+ * @param {!proto.Spic.AssetProto.ReplaceBatteryRequest} msg The msg instance to transform.
2877
+ * @return {!Object}
2878
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2879
+ */
2880
+ proto.Spic.AssetProto.ReplaceBatteryRequest.toObject = function(includeInstance, msg) {
2881
+ var f, obj = {
2882
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
2883
+ };
2884
+
2885
+ if (includeInstance) {
2886
+ obj.$jspbMessageInstance = msg;
2887
+ }
2888
+ return obj;
2889
+ };
2890
+ }
2891
+
2892
+
2893
+ /**
2894
+ * Deserializes binary data (in protobuf wire format).
2895
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2896
+ * @return {!proto.Spic.AssetProto.ReplaceBatteryRequest}
2897
+ */
2898
+ proto.Spic.AssetProto.ReplaceBatteryRequest.deserializeBinary = function(bytes) {
2899
+ var reader = new jspb.BinaryReader(bytes);
2900
+ var msg = new proto.Spic.AssetProto.ReplaceBatteryRequest;
2901
+ return proto.Spic.AssetProto.ReplaceBatteryRequest.deserializeBinaryFromReader(msg, reader);
2902
+ };
2903
+
2904
+
2905
+ /**
2906
+ * Deserializes binary data (in protobuf wire format) from the
2907
+ * given reader into the given message object.
2908
+ * @param {!proto.Spic.AssetProto.ReplaceBatteryRequest} msg The message object to deserialize into.
2909
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2910
+ * @return {!proto.Spic.AssetProto.ReplaceBatteryRequest}
2911
+ */
2912
+ proto.Spic.AssetProto.ReplaceBatteryRequest.deserializeBinaryFromReader = function(msg, reader) {
2913
+ while (reader.nextField()) {
2914
+ if (reader.isEndGroup()) {
2915
+ break;
2916
+ }
2917
+ var field = reader.getFieldNumber();
2918
+ switch (field) {
2919
+ case 1:
2920
+ var value = /** @type {number} */ (reader.readInt64());
2921
+ msg.setId(value);
2922
+ break;
2923
+ default:
2924
+ reader.skipField();
2925
+ break;
2926
+ }
2927
+ }
2928
+ return msg;
2929
+ };
2930
+
2931
+
2932
+ /**
2933
+ * Serializes the message to binary data (in protobuf wire format).
2934
+ * @return {!Uint8Array}
2935
+ */
2936
+ proto.Spic.AssetProto.ReplaceBatteryRequest.prototype.serializeBinary = function() {
2937
+ var writer = new jspb.BinaryWriter();
2938
+ proto.Spic.AssetProto.ReplaceBatteryRequest.serializeBinaryToWriter(this, writer);
2939
+ return writer.getResultBuffer();
2940
+ };
2941
+
2942
+
2943
+ /**
2944
+ * Serializes the given message to binary data (in protobuf wire
2945
+ * format), writing to the given BinaryWriter.
2946
+ * @param {!proto.Spic.AssetProto.ReplaceBatteryRequest} message
2947
+ * @param {!jspb.BinaryWriter} writer
2948
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2949
+ */
2950
+ proto.Spic.AssetProto.ReplaceBatteryRequest.serializeBinaryToWriter = function(message, writer) {
2951
+ var f = undefined;
2952
+ f = message.getId();
2953
+ if (f !== 0) {
2954
+ writer.writeInt64(
2955
+ 1,
2956
+ f
2957
+ );
2958
+ }
2959
+ };
2960
+
2961
+
2962
+ /**
2963
+ * optional int64 id = 1;
2964
+ * @return {number}
2965
+ */
2966
+ proto.Spic.AssetProto.ReplaceBatteryRequest.prototype.getId = function() {
2967
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2968
+ };
2969
+
2970
+
2971
+ /**
2972
+ * @param {number} value
2973
+ * @return {!proto.Spic.AssetProto.ReplaceBatteryRequest} returns this
2974
+ */
2975
+ proto.Spic.AssetProto.ReplaceBatteryRequest.prototype.setId = function(value) {
2976
+ return jspb.Message.setProto3IntField(this, 1, value);
2977
+ };
2978
+
2979
+
2980
+
2981
+
2982
+
2983
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2984
+ /**
2985
+ * Creates an object representation of this proto.
2986
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2987
+ * Optional fields that are not set will be set to undefined.
2988
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2989
+ * For the list of reserved names please see:
2990
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2991
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2992
+ * JSPB instance for transitional soy proto support:
2993
+ * http://goto/soy-param-migration
2994
+ * @return {!Object}
2995
+ */
2996
+ proto.Spic.AssetProto.Image.prototype.toObject = function(opt_includeInstance) {
2997
+ return proto.Spic.AssetProto.Image.toObject(opt_includeInstance, this);
2998
+ };
2999
+
3000
+
3001
+ /**
3002
+ * Static version of the {@see toObject} method.
3003
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3004
+ * the JSPB instance for transitional soy proto support:
3005
+ * http://goto/soy-param-migration
3006
+ * @param {!proto.Spic.AssetProto.Image} msg The msg instance to transform.
3007
+ * @return {!Object}
3008
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3009
+ */
3010
+ proto.Spic.AssetProto.Image.toObject = function(includeInstance, msg) {
3011
+ var f, obj = {
3012
+
3013
+ };
3014
+
3015
+ if (includeInstance) {
3016
+ obj.$jspbMessageInstance = msg;
3017
+ }
3018
+ return obj;
3019
+ };
3020
+ }
3021
+
3022
+
3023
+ /**
3024
+ * Deserializes binary data (in protobuf wire format).
3025
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3026
+ * @return {!proto.Spic.AssetProto.Image}
3027
+ */
3028
+ proto.Spic.AssetProto.Image.deserializeBinary = function(bytes) {
3029
+ var reader = new jspb.BinaryReader(bytes);
3030
+ var msg = new proto.Spic.AssetProto.Image;
3031
+ return proto.Spic.AssetProto.Image.deserializeBinaryFromReader(msg, reader);
3032
+ };
3033
+
3034
+
3035
+ /**
3036
+ * Deserializes binary data (in protobuf wire format) from the
3037
+ * given reader into the given message object.
3038
+ * @param {!proto.Spic.AssetProto.Image} msg The message object to deserialize into.
3039
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3040
+ * @return {!proto.Spic.AssetProto.Image}
3041
+ */
3042
+ proto.Spic.AssetProto.Image.deserializeBinaryFromReader = function(msg, reader) {
3043
+ while (reader.nextField()) {
3044
+ if (reader.isEndGroup()) {
3045
+ break;
3046
+ }
3047
+ var field = reader.getFieldNumber();
3048
+ switch (field) {
3049
+ default:
3050
+ reader.skipField();
3051
+ break;
3052
+ }
3053
+ }
3054
+ return msg;
3055
+ };
3056
+
3057
+
3058
+ /**
3059
+ * Serializes the message to binary data (in protobuf wire format).
3060
+ * @return {!Uint8Array}
3061
+ */
3062
+ proto.Spic.AssetProto.Image.prototype.serializeBinary = function() {
3063
+ var writer = new jspb.BinaryWriter();
3064
+ proto.Spic.AssetProto.Image.serializeBinaryToWriter(this, writer);
3065
+ return writer.getResultBuffer();
3066
+ };
3067
+
3068
+
3069
+ /**
3070
+ * Serializes the given message to binary data (in protobuf wire
3071
+ * format), writing to the given BinaryWriter.
3072
+ * @param {!proto.Spic.AssetProto.Image} message
3073
+ * @param {!jspb.BinaryWriter} writer
3074
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3075
+ */
3076
+ proto.Spic.AssetProto.Image.serializeBinaryToWriter = function(message, writer) {
3077
+ var f = undefined;
3078
+ };
3079
+
3080
+
3081
+
3082
+
3083
+
3084
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3085
+ /**
3086
+ * Creates an object representation of this proto.
3087
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3088
+ * Optional fields that are not set will be set to undefined.
3089
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3090
+ * For the list of reserved names please see:
3091
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3092
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3093
+ * JSPB instance for transitional soy proto support:
3094
+ * http://goto/soy-param-migration
3095
+ * @return {!Object}
3096
+ */
3097
+ proto.Spic.AssetProto.Image.RetrieveRequest.prototype.toObject = function(opt_includeInstance) {
3098
+ return proto.Spic.AssetProto.Image.RetrieveRequest.toObject(opt_includeInstance, this);
3099
+ };
3100
+
3101
+
3102
+ /**
3103
+ * Static version of the {@see toObject} method.
3104
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3105
+ * the JSPB instance for transitional soy proto support:
3106
+ * http://goto/soy-param-migration
3107
+ * @param {!proto.Spic.AssetProto.Image.RetrieveRequest} msg The msg instance to transform.
3108
+ * @return {!Object}
3109
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3110
+ */
3111
+ proto.Spic.AssetProto.Image.RetrieveRequest.toObject = function(includeInstance, msg) {
3112
+ var f, obj = {
3113
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
3114
+ };
3115
+
3116
+ if (includeInstance) {
3117
+ obj.$jspbMessageInstance = msg;
3118
+ }
3119
+ return obj;
3120
+ };
3121
+ }
3122
+
3123
+
3124
+ /**
3125
+ * Deserializes binary data (in protobuf wire format).
3126
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3127
+ * @return {!proto.Spic.AssetProto.Image.RetrieveRequest}
3128
+ */
3129
+ proto.Spic.AssetProto.Image.RetrieveRequest.deserializeBinary = function(bytes) {
3130
+ var reader = new jspb.BinaryReader(bytes);
3131
+ var msg = new proto.Spic.AssetProto.Image.RetrieveRequest;
3132
+ return proto.Spic.AssetProto.Image.RetrieveRequest.deserializeBinaryFromReader(msg, reader);
3133
+ };
3134
+
3135
+
3136
+ /**
3137
+ * Deserializes binary data (in protobuf wire format) from the
3138
+ * given reader into the given message object.
3139
+ * @param {!proto.Spic.AssetProto.Image.RetrieveRequest} msg The message object to deserialize into.
3140
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3141
+ * @return {!proto.Spic.AssetProto.Image.RetrieveRequest}
3142
+ */
3143
+ proto.Spic.AssetProto.Image.RetrieveRequest.deserializeBinaryFromReader = function(msg, reader) {
3144
+ while (reader.nextField()) {
3145
+ if (reader.isEndGroup()) {
3146
+ break;
3147
+ }
3148
+ var field = reader.getFieldNumber();
3149
+ switch (field) {
3150
+ case 1:
3151
+ var value = /** @type {number} */ (reader.readInt64());
3152
+ msg.setId(value);
3153
+ break;
3154
+ default:
3155
+ reader.skipField();
3156
+ break;
3157
+ }
3158
+ }
3159
+ return msg;
3160
+ };
3161
+
3162
+
3163
+ /**
3164
+ * Serializes the message to binary data (in protobuf wire format).
3165
+ * @return {!Uint8Array}
3166
+ */
3167
+ proto.Spic.AssetProto.Image.RetrieveRequest.prototype.serializeBinary = function() {
3168
+ var writer = new jspb.BinaryWriter();
3169
+ proto.Spic.AssetProto.Image.RetrieveRequest.serializeBinaryToWriter(this, writer);
3170
+ return writer.getResultBuffer();
3171
+ };
3172
+
3173
+
3174
+ /**
3175
+ * Serializes the given message to binary data (in protobuf wire
3176
+ * format), writing to the given BinaryWriter.
3177
+ * @param {!proto.Spic.AssetProto.Image.RetrieveRequest} message
3178
+ * @param {!jspb.BinaryWriter} writer
3179
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3180
+ */
3181
+ proto.Spic.AssetProto.Image.RetrieveRequest.serializeBinaryToWriter = function(message, writer) {
3182
+ var f = undefined;
3183
+ f = message.getId();
3184
+ if (f !== 0) {
3185
+ writer.writeInt64(
3186
+ 1,
3187
+ f
3188
+ );
3189
+ }
3190
+ };
3191
+
3192
+
3193
+ /**
3194
+ * optional int64 id = 1;
3195
+ * @return {number}
3196
+ */
3197
+ proto.Spic.AssetProto.Image.RetrieveRequest.prototype.getId = function() {
3198
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3199
+ };
3200
+
3201
+
3202
+ /**
3203
+ * @param {number} value
3204
+ * @return {!proto.Spic.AssetProto.Image.RetrieveRequest} returns this
3205
+ */
3206
+ proto.Spic.AssetProto.Image.RetrieveRequest.prototype.setId = function(value) {
3207
+ return jspb.Message.setProto3IntField(this, 1, value);
3208
+ };
3209
+
3210
+
3211
+
3212
+
3213
+
3214
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3215
+ /**
3216
+ * Creates an object representation of this proto.
3217
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3218
+ * Optional fields that are not set will be set to undefined.
3219
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3220
+ * For the list of reserved names please see:
3221
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3222
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3223
+ * JSPB instance for transitional soy proto support:
3224
+ * http://goto/soy-param-migration
3225
+ * @return {!Object}
3226
+ */
3227
+ proto.Spic.AssetProto.Image.RetrieveReply.prototype.toObject = function(opt_includeInstance) {
3228
+ return proto.Spic.AssetProto.Image.RetrieveReply.toObject(opt_includeInstance, this);
3229
+ };
3230
+
3231
+
3232
+ /**
3233
+ * Static version of the {@see toObject} method.
3234
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3235
+ * the JSPB instance for transitional soy proto support:
3236
+ * http://goto/soy-param-migration
3237
+ * @param {!proto.Spic.AssetProto.Image.RetrieveReply} msg The msg instance to transform.
3238
+ * @return {!Object}
3239
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3240
+ */
3241
+ proto.Spic.AssetProto.Image.RetrieveReply.toObject = function(includeInstance, msg) {
3242
+ var f, obj = {
3243
+ data: msg.getData_asB64()
3244
+ };
3245
+
3246
+ if (includeInstance) {
3247
+ obj.$jspbMessageInstance = msg;
3248
+ }
3249
+ return obj;
3250
+ };
3251
+ }
3252
+
3253
+
3254
+ /**
3255
+ * Deserializes binary data (in protobuf wire format).
3256
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3257
+ * @return {!proto.Spic.AssetProto.Image.RetrieveReply}
3258
+ */
3259
+ proto.Spic.AssetProto.Image.RetrieveReply.deserializeBinary = function(bytes) {
3260
+ var reader = new jspb.BinaryReader(bytes);
3261
+ var msg = new proto.Spic.AssetProto.Image.RetrieveReply;
3262
+ return proto.Spic.AssetProto.Image.RetrieveReply.deserializeBinaryFromReader(msg, reader);
3263
+ };
3264
+
3265
+
3266
+ /**
3267
+ * Deserializes binary data (in protobuf wire format) from the
3268
+ * given reader into the given message object.
3269
+ * @param {!proto.Spic.AssetProto.Image.RetrieveReply} msg The message object to deserialize into.
3270
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3271
+ * @return {!proto.Spic.AssetProto.Image.RetrieveReply}
3272
+ */
3273
+ proto.Spic.AssetProto.Image.RetrieveReply.deserializeBinaryFromReader = function(msg, reader) {
3274
+ while (reader.nextField()) {
3275
+ if (reader.isEndGroup()) {
3276
+ break;
3277
+ }
3278
+ var field = reader.getFieldNumber();
3279
+ switch (field) {
3280
+ case 1:
3281
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
3282
+ msg.setData(value);
3283
+ break;
3284
+ default:
3285
+ reader.skipField();
3286
+ break;
3287
+ }
3288
+ }
3289
+ return msg;
3290
+ };
3291
+
3292
+
3293
+ /**
3294
+ * Serializes the message to binary data (in protobuf wire format).
3295
+ * @return {!Uint8Array}
3296
+ */
3297
+ proto.Spic.AssetProto.Image.RetrieveReply.prototype.serializeBinary = function() {
3298
+ var writer = new jspb.BinaryWriter();
3299
+ proto.Spic.AssetProto.Image.RetrieveReply.serializeBinaryToWriter(this, writer);
3300
+ return writer.getResultBuffer();
3301
+ };
3302
+
3303
+
3304
+ /**
3305
+ * Serializes the given message to binary data (in protobuf wire
3306
+ * format), writing to the given BinaryWriter.
3307
+ * @param {!proto.Spic.AssetProto.Image.RetrieveReply} message
3308
+ * @param {!jspb.BinaryWriter} writer
3309
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3310
+ */
3311
+ proto.Spic.AssetProto.Image.RetrieveReply.serializeBinaryToWriter = function(message, writer) {
3312
+ var f = undefined;
3313
+ f = message.getData_asU8();
3314
+ if (f.length > 0) {
3315
+ writer.writeBytes(
3316
+ 1,
3317
+ f
3318
+ );
3319
+ }
3320
+ };
3321
+
3322
+
3323
+ /**
3324
+ * optional bytes data = 1;
3325
+ * @return {!(string|Uint8Array)}
3326
+ */
3327
+ proto.Spic.AssetProto.Image.RetrieveReply.prototype.getData = function() {
3328
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3329
+ };
3330
+
3331
+
3332
+ /**
3333
+ * optional bytes data = 1;
3334
+ * This is a type-conversion wrapper around `getData()`
3335
+ * @return {string}
3336
+ */
3337
+ proto.Spic.AssetProto.Image.RetrieveReply.prototype.getData_asB64 = function() {
3338
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
3339
+ this.getData()));
3340
+ };
3341
+
3342
+
3343
+ /**
3344
+ * optional bytes data = 1;
3345
+ * Note that Uint8Array is not supported on all browsers.
3346
+ * @see http://caniuse.com/Uint8Array
3347
+ * This is a type-conversion wrapper around `getData()`
3348
+ * @return {!Uint8Array}
3349
+ */
3350
+ proto.Spic.AssetProto.Image.RetrieveReply.prototype.getData_asU8 = function() {
3351
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
3352
+ this.getData()));
3353
+ };
3354
+
3355
+
3356
+ /**
3357
+ * @param {!(string|Uint8Array)} value
3358
+ * @return {!proto.Spic.AssetProto.Image.RetrieveReply} returns this
3359
+ */
3360
+ proto.Spic.AssetProto.Image.RetrieveReply.prototype.setData = function(value) {
3361
+ return jspb.Message.setProto3BytesField(this, 1, value);
3362
+ };
3363
+
3364
+
3365
+
3366
+
3367
+
3368
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3369
+ /**
3370
+ * Creates an object representation of this proto.
3371
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3372
+ * Optional fields that are not set will be set to undefined.
3373
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3374
+ * For the list of reserved names please see:
3375
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3376
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3377
+ * JSPB instance for transitional soy proto support:
3378
+ * http://goto/soy-param-migration
3379
+ * @return {!Object}
3380
+ */
3381
+ proto.Spic.AssetProto.ComponentState.prototype.toObject = function(opt_includeInstance) {
3382
+ return proto.Spic.AssetProto.ComponentState.toObject(opt_includeInstance, this);
3383
+ };
3384
+
3385
+
3386
+ /**
3387
+ * Static version of the {@see toObject} method.
3388
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3389
+ * the JSPB instance for transitional soy proto support:
3390
+ * http://goto/soy-param-migration
3391
+ * @param {!proto.Spic.AssetProto.ComponentState} msg The msg instance to transform.
3392
+ * @return {!Object}
3393
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3394
+ */
3395
+ proto.Spic.AssetProto.ComponentState.toObject = function(includeInstance, msg) {
3396
+ var f, obj = {
3397
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
3398
+ componentIdentifier: jspb.Message.getFieldWithDefault(msg, 2, 0),
3399
+ domain: jspb.Message.getFieldWithDefault(msg, 3, ""),
3400
+ componentClass: jspb.Message.getFieldWithDefault(msg, 4, ""),
3401
+ value: jspb.Message.getFieldWithDefault(msg, 5, ""),
3402
+ lastChanged: (f = msg.getLastChanged()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
3403
+ lastUpdated: (f = msg.getLastUpdated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
3404
+ lastReported: (f = msg.getLastReported()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
3405
+ attributesMap: (f = msg.getAttributesMap()) ? f.toObject(includeInstance, undefined) : []
3406
+ };
3407
+
3408
+ if (includeInstance) {
3409
+ obj.$jspbMessageInstance = msg;
3410
+ }
3411
+ return obj;
3412
+ };
3413
+ }
3414
+
3415
+
3416
+ /**
3417
+ * Deserializes binary data (in protobuf wire format).
3418
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3419
+ * @return {!proto.Spic.AssetProto.ComponentState}
3420
+ */
3421
+ proto.Spic.AssetProto.ComponentState.deserializeBinary = function(bytes) {
3422
+ var reader = new jspb.BinaryReader(bytes);
3423
+ var msg = new proto.Spic.AssetProto.ComponentState;
3424
+ return proto.Spic.AssetProto.ComponentState.deserializeBinaryFromReader(msg, reader);
3425
+ };
3426
+
3427
+
3428
+ /**
3429
+ * Deserializes binary data (in protobuf wire format) from the
3430
+ * given reader into the given message object.
3431
+ * @param {!proto.Spic.AssetProto.ComponentState} msg The message object to deserialize into.
3432
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3433
+ * @return {!proto.Spic.AssetProto.ComponentState}
3434
+ */
3435
+ proto.Spic.AssetProto.ComponentState.deserializeBinaryFromReader = function(msg, reader) {
3436
+ while (reader.nextField()) {
3437
+ if (reader.isEndGroup()) {
3438
+ break;
3439
+ }
3440
+ var field = reader.getFieldNumber();
3441
+ switch (field) {
3442
+ case 1:
3443
+ var value = /** @type {string} */ (reader.readString());
3444
+ msg.setId(value);
3445
+ break;
3446
+ case 2:
3447
+ var value = /** @type {!proto.Spic.ComponentIdentifier} */ (reader.readEnum());
3448
+ msg.setComponentIdentifier(value);
3449
+ break;
3450
+ case 3:
3451
+ var value = /** @type {string} */ (reader.readString());
3452
+ msg.setDomain(value);
3453
+ break;
3454
+ case 4:
3455
+ var value = /** @type {string} */ (reader.readString());
3456
+ msg.setComponentClass(value);
3457
+ break;
3458
+ case 5:
3459
+ var value = /** @type {string} */ (reader.readString());
3460
+ msg.setValue(value);
3461
+ break;
3462
+ case 6:
3463
+ var value = new google_protobuf_timestamp_pb.Timestamp;
3464
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
3465
+ msg.setLastChanged(value);
3466
+ break;
3467
+ case 7:
3468
+ var value = new google_protobuf_timestamp_pb.Timestamp;
3469
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
3470
+ msg.setLastUpdated(value);
3471
+ break;
3472
+ case 8:
3473
+ var value = new google_protobuf_timestamp_pb.Timestamp;
3474
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
3475
+ msg.setLastReported(value);
3476
+ break;
3477
+ case 9:
3478
+ var value = msg.getAttributesMap();
3479
+ reader.readMessage(value, function(message, reader) {
3480
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
3481
+ });
3482
+ break;
3483
+ default:
3484
+ reader.skipField();
3485
+ break;
3486
+ }
3487
+ }
3488
+ return msg;
3489
+ };
3490
+
3491
+
3492
+ /**
3493
+ * Serializes the message to binary data (in protobuf wire format).
3494
+ * @return {!Uint8Array}
3495
+ */
3496
+ proto.Spic.AssetProto.ComponentState.prototype.serializeBinary = function() {
3497
+ var writer = new jspb.BinaryWriter();
3498
+ proto.Spic.AssetProto.ComponentState.serializeBinaryToWriter(this, writer);
3499
+ return writer.getResultBuffer();
3500
+ };
3501
+
3502
+
3503
+ /**
3504
+ * Serializes the given message to binary data (in protobuf wire
3505
+ * format), writing to the given BinaryWriter.
3506
+ * @param {!proto.Spic.AssetProto.ComponentState} message
3507
+ * @param {!jspb.BinaryWriter} writer
3508
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3509
+ */
3510
+ proto.Spic.AssetProto.ComponentState.serializeBinaryToWriter = function(message, writer) {
3511
+ var f = undefined;
3512
+ f = message.getId();
3513
+ if (f.length > 0) {
3514
+ writer.writeString(
3515
+ 1,
3516
+ f
3517
+ );
3518
+ }
3519
+ f = message.getComponentIdentifier();
3520
+ if (f !== 0.0) {
3521
+ writer.writeEnum(
3522
+ 2,
3523
+ f
3524
+ );
3525
+ }
3526
+ f = message.getDomain();
3527
+ if (f.length > 0) {
3528
+ writer.writeString(
3529
+ 3,
3530
+ f
3531
+ );
3532
+ }
3533
+ f = message.getComponentClass();
3534
+ if (f.length > 0) {
3535
+ writer.writeString(
3536
+ 4,
3537
+ f
3538
+ );
3539
+ }
3540
+ f = message.getValue();
3541
+ if (f.length > 0) {
3542
+ writer.writeString(
3543
+ 5,
3544
+ f
3545
+ );
3546
+ }
3547
+ f = message.getLastChanged();
3548
+ if (f != null) {
3549
+ writer.writeMessage(
3550
+ 6,
3551
+ f,
3552
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
3553
+ );
3554
+ }
3555
+ f = message.getLastUpdated();
3556
+ if (f != null) {
3557
+ writer.writeMessage(
3558
+ 7,
3559
+ f,
3560
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
3561
+ );
3562
+ }
3563
+ f = message.getLastReported();
3564
+ if (f != null) {
3565
+ writer.writeMessage(
3566
+ 8,
3567
+ f,
3568
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
3569
+ );
3570
+ }
3571
+ f = message.getAttributesMap(true);
3572
+ if (f && f.getLength() > 0) {
3573
+ f.serializeBinary(9, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
3574
+ }
3575
+ };
3576
+
3577
+
3578
+ /**
3579
+ * optional string id = 1;
3580
+ * @return {string}
3581
+ */
3582
+ proto.Spic.AssetProto.ComponentState.prototype.getId = function() {
3583
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3584
+ };
3585
+
3586
+
3587
+ /**
3588
+ * @param {string} value
3589
+ * @return {!proto.Spic.AssetProto.ComponentState} returns this
3590
+ */
3591
+ proto.Spic.AssetProto.ComponentState.prototype.setId = function(value) {
3592
+ return jspb.Message.setProto3StringField(this, 1, value);
3593
+ };
3594
+
3595
+
3596
+ /**
3597
+ * optional ComponentIdentifier component_identifier = 2;
3598
+ * @return {!proto.Spic.ComponentIdentifier}
3599
+ */
3600
+ proto.Spic.AssetProto.ComponentState.prototype.getComponentIdentifier = function() {
3601
+ return /** @type {!proto.Spic.ComponentIdentifier} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
3602
+ };
3603
+
3604
+
3605
+ /**
3606
+ * @param {!proto.Spic.ComponentIdentifier} value
3607
+ * @return {!proto.Spic.AssetProto.ComponentState} returns this
3608
+ */
3609
+ proto.Spic.AssetProto.ComponentState.prototype.setComponentIdentifier = function(value) {
3610
+ return jspb.Message.setProto3EnumField(this, 2, value);
3611
+ };
3612
+
3613
+
3614
+ /**
3615
+ * optional string domain = 3;
3616
+ * @return {string}
3617
+ */
3618
+ proto.Spic.AssetProto.ComponentState.prototype.getDomain = function() {
3619
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3620
+ };
3621
+
3622
+
3623
+ /**
3624
+ * @param {string} value
3625
+ * @return {!proto.Spic.AssetProto.ComponentState} returns this
3626
+ */
3627
+ proto.Spic.AssetProto.ComponentState.prototype.setDomain = function(value) {
3628
+ return jspb.Message.setProto3StringField(this, 3, value);
3629
+ };
3630
+
3631
+
3632
+ /**
3633
+ * optional string component_class = 4;
3634
+ * @return {string}
3635
+ */
3636
+ proto.Spic.AssetProto.ComponentState.prototype.getComponentClass = function() {
3637
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3638
+ };
3639
+
3640
+
3641
+ /**
3642
+ * @param {string} value
3643
+ * @return {!proto.Spic.AssetProto.ComponentState} returns this
3644
+ */
3645
+ proto.Spic.AssetProto.ComponentState.prototype.setComponentClass = function(value) {
3646
+ return jspb.Message.setProto3StringField(this, 4, value);
3647
+ };
3648
+
3649
+
3650
+ /**
3651
+ * optional string value = 5;
3652
+ * @return {string}
3653
+ */
3654
+ proto.Spic.AssetProto.ComponentState.prototype.getValue = function() {
3655
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3656
+ };
3657
+
3658
+
3659
+ /**
3660
+ * @param {string} value
3661
+ * @return {!proto.Spic.AssetProto.ComponentState} returns this
3662
+ */
3663
+ proto.Spic.AssetProto.ComponentState.prototype.setValue = function(value) {
3664
+ return jspb.Message.setProto3StringField(this, 5, value);
3665
+ };
3666
+
3667
+
3668
+ /**
3669
+ * optional google.protobuf.Timestamp last_changed = 6;
3670
+ * @return {?proto.google.protobuf.Timestamp}
3671
+ */
3672
+ proto.Spic.AssetProto.ComponentState.prototype.getLastChanged = function() {
3673
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
3674
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
3675
+ };
3676
+
3677
+
3678
+ /**
3679
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
3680
+ * @return {!proto.Spic.AssetProto.ComponentState} returns this
3681
+ */
3682
+ proto.Spic.AssetProto.ComponentState.prototype.setLastChanged = function(value) {
3683
+ return jspb.Message.setWrapperField(this, 6, value);
3684
+ };
3685
+
3686
+
3687
+ /**
3688
+ * Clears the message field making it undefined.
3689
+ * @return {!proto.Spic.AssetProto.ComponentState} returns this
3690
+ */
3691
+ proto.Spic.AssetProto.ComponentState.prototype.clearLastChanged = function() {
3692
+ return this.setLastChanged(undefined);
3693
+ };
3694
+
3695
+
3696
+ /**
3697
+ * Returns whether this field is set.
3698
+ * @return {boolean}
3699
+ */
3700
+ proto.Spic.AssetProto.ComponentState.prototype.hasLastChanged = function() {
3701
+ return jspb.Message.getField(this, 6) != null;
3702
+ };
3703
+
3704
+
3705
+ /**
3706
+ * optional google.protobuf.Timestamp last_updated = 7;
3707
+ * @return {?proto.google.protobuf.Timestamp}
3708
+ */
3709
+ proto.Spic.AssetProto.ComponentState.prototype.getLastUpdated = function() {
3710
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
3711
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
3712
+ };
3713
+
3714
+
3715
+ /**
3716
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
3717
+ * @return {!proto.Spic.AssetProto.ComponentState} returns this
3718
+ */
3719
+ proto.Spic.AssetProto.ComponentState.prototype.setLastUpdated = function(value) {
3720
+ return jspb.Message.setWrapperField(this, 7, value);
3721
+ };
3722
+
3723
+
3724
+ /**
3725
+ * Clears the message field making it undefined.
3726
+ * @return {!proto.Spic.AssetProto.ComponentState} returns this
3727
+ */
3728
+ proto.Spic.AssetProto.ComponentState.prototype.clearLastUpdated = function() {
3729
+ return this.setLastUpdated(undefined);
3730
+ };
3731
+
3732
+
3733
+ /**
3734
+ * Returns whether this field is set.
3735
+ * @return {boolean}
3736
+ */
3737
+ proto.Spic.AssetProto.ComponentState.prototype.hasLastUpdated = function() {
3738
+ return jspb.Message.getField(this, 7) != null;
3739
+ };
3740
+
3741
+
3742
+ /**
3743
+ * optional google.protobuf.Timestamp last_reported = 8;
3744
+ * @return {?proto.google.protobuf.Timestamp}
3745
+ */
3746
+ proto.Spic.AssetProto.ComponentState.prototype.getLastReported = function() {
3747
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
3748
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8));
3749
+ };
3750
+
3751
+
3752
+ /**
3753
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
3754
+ * @return {!proto.Spic.AssetProto.ComponentState} returns this
3755
+ */
3756
+ proto.Spic.AssetProto.ComponentState.prototype.setLastReported = function(value) {
3757
+ return jspb.Message.setWrapperField(this, 8, value);
3758
+ };
3759
+
3760
+
3761
+ /**
3762
+ * Clears the message field making it undefined.
3763
+ * @return {!proto.Spic.AssetProto.ComponentState} returns this
3764
+ */
3765
+ proto.Spic.AssetProto.ComponentState.prototype.clearLastReported = function() {
3766
+ return this.setLastReported(undefined);
3767
+ };
3768
+
3769
+
3770
+ /**
3771
+ * Returns whether this field is set.
3772
+ * @return {boolean}
3773
+ */
3774
+ proto.Spic.AssetProto.ComponentState.prototype.hasLastReported = function() {
3775
+ return jspb.Message.getField(this, 8) != null;
3776
+ };
3777
+
3778
+
3779
+ /**
3780
+ * map<string, string> attributes = 9;
3781
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
3782
+ * empty, instead returning `undefined`
3783
+ * @return {!jspb.Map<string,string>}
3784
+ */
3785
+ proto.Spic.AssetProto.ComponentState.prototype.getAttributesMap = function(opt_noLazyCreate) {
3786
+ return /** @type {!jspb.Map<string,string>} */ (
3787
+ jspb.Message.getMapField(this, 9, opt_noLazyCreate,
3788
+ null));
3789
+ };
3790
+
3791
+
3792
+ /**
3793
+ * Clears values from the map. The map will be non-null.
3794
+ * @return {!proto.Spic.AssetProto.ComponentState} returns this
3795
+ */
3796
+ proto.Spic.AssetProto.ComponentState.prototype.clearAttributesMap = function() {
3797
+ this.getAttributesMap().clear();
3798
+ return this;
3799
+ };
3800
+
3801
+
3802
+ /**
3803
+ * optional int64 id = 1;
3804
+ * @return {number}
3805
+ */
3806
+ proto.Spic.AssetProto.prototype.getId = function() {
3807
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3808
+ };
3809
+
3810
+
3811
+ /**
3812
+ * @param {number} value
3813
+ * @return {!proto.Spic.AssetProto} returns this
3814
+ */
3815
+ proto.Spic.AssetProto.prototype.setId = function(value) {
3816
+ return jspb.Message.setProto3IntField(this, 1, value);
3817
+ };
3818
+
3819
+
3820
+ /**
3821
+ * optional string name = 2;
3822
+ * @return {string}
3823
+ */
3824
+ proto.Spic.AssetProto.prototype.getName = function() {
3825
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3826
+ };
3827
+
3828
+
3829
+ /**
3830
+ * @param {string} value
3831
+ * @return {!proto.Spic.AssetProto} returns this
3832
+ */
3833
+ proto.Spic.AssetProto.prototype.setName = function(value) {
3834
+ return jspb.Message.setProto3StringField(this, 2, value);
3835
+ };
3836
+
3837
+
3838
+ /**
3839
+ * optional int64 location_id = 3;
3840
+ * @return {number}
3841
+ */
3842
+ proto.Spic.AssetProto.prototype.getLocationId = function() {
3843
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
3844
+ };
3845
+
3846
+
3847
+ /**
3848
+ * @param {number} value
3849
+ * @return {!proto.Spic.AssetProto} returns this
3850
+ */
3851
+ proto.Spic.AssetProto.prototype.setLocationId = function(value) {
3852
+ return jspb.Message.setProto3IntField(this, 3, value);
3853
+ };
3854
+
3855
+
3856
+ /**
3857
+ * optional string uid = 4;
3858
+ * @return {string}
3859
+ */
3860
+ proto.Spic.AssetProto.prototype.getUid = function() {
3861
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3862
+ };
3863
+
3864
+
3865
+ /**
3866
+ * @param {string} value
3867
+ * @return {!proto.Spic.AssetProto} returns this
3868
+ */
3869
+ proto.Spic.AssetProto.prototype.setUid = function(value) {
3870
+ return jspb.Message.setProto3StringField(this, 4, value);
3871
+ };
3872
+
3873
+
3874
+ /**
3875
+ * optional google.protobuf.Timestamp last_status_update = 7;
3876
+ * @return {?proto.google.protobuf.Timestamp}
3877
+ */
3878
+ proto.Spic.AssetProto.prototype.getLastStatusUpdate = function() {
3879
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
3880
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
3881
+ };
3882
+
3883
+
3884
+ /**
3885
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
3886
+ * @return {!proto.Spic.AssetProto} returns this
3887
+ */
3888
+ proto.Spic.AssetProto.prototype.setLastStatusUpdate = function(value) {
3889
+ return jspb.Message.setWrapperField(this, 7, value);
3890
+ };
3891
+
3892
+
3893
+ /**
3894
+ * Clears the message field making it undefined.
3895
+ * @return {!proto.Spic.AssetProto} returns this
3896
+ */
3897
+ proto.Spic.AssetProto.prototype.clearLastStatusUpdate = function() {
3898
+ return this.setLastStatusUpdate(undefined);
3899
+ };
3900
+
3901
+
3902
+ /**
3903
+ * Returns whether this field is set.
3904
+ * @return {boolean}
3905
+ */
3906
+ proto.Spic.AssetProto.prototype.hasLastStatusUpdate = function() {
3907
+ return jspb.Message.getField(this, 7) != null;
3908
+ };
3909
+
3910
+
3911
+ /**
3912
+ * optional string group_id = 8;
3913
+ * @return {string}
3914
+ */
3915
+ proto.Spic.AssetProto.prototype.getGroupId = function() {
3916
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
3917
+ };
3918
+
3919
+
3920
+ /**
3921
+ * @param {string} value
3922
+ * @return {!proto.Spic.AssetProto} returns this
3923
+ */
3924
+ proto.Spic.AssetProto.prototype.setGroupId = function(value) {
3925
+ return jspb.Message.setProto3StringField(this, 8, value);
3926
+ };
3927
+
3928
+
3929
+ /**
3930
+ * optional int32 client_id = 9;
3931
+ * @return {number}
3932
+ */
3933
+ proto.Spic.AssetProto.prototype.getClientId = function() {
3934
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
3935
+ };
3936
+
3937
+
3938
+ /**
3939
+ * @param {number} value
3940
+ * @return {!proto.Spic.AssetProto} returns this
3941
+ */
3942
+ proto.Spic.AssetProto.prototype.setClientId = function(value) {
3943
+ return jspb.Message.setProto3IntField(this, 9, value);
3944
+ };
3945
+
3946
+
3947
+ /**
3948
+ * optional bool is_maintenance = 10;
3949
+ * @return {boolean}
3950
+ */
3951
+ proto.Spic.AssetProto.prototype.getIsMaintenance = function() {
3952
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false));
3953
+ };
3954
+
3955
+
3956
+ /**
3957
+ * @param {boolean} value
3958
+ * @return {!proto.Spic.AssetProto} returns this
3959
+ */
3960
+ proto.Spic.AssetProto.prototype.setIsMaintenance = function(value) {
3961
+ return jspb.Message.setProto3BooleanField(this, 10, value);
3962
+ };
3963
+
3964
+
3965
+ /**
3966
+ * optional string image_blob = 11;
3967
+ * @return {string}
3968
+ */
3969
+ proto.Spic.AssetProto.prototype.getImageBlob = function() {
3970
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
3971
+ };
3972
+
3973
+
3974
+ /**
3975
+ * @param {string} value
3976
+ * @return {!proto.Spic.AssetProto} returns this
3977
+ */
3978
+ proto.Spic.AssetProto.prototype.setImageBlob = function(value) {
3979
+ return jspb.Message.setProto3StringField(this, 11, value);
3980
+ };
3981
+
3982
+
3983
+ /**
3984
+ * optional google.protobuf.Timestamp battery_placed = 12;
3985
+ * @return {?proto.google.protobuf.Timestamp}
3986
+ */
3987
+ proto.Spic.AssetProto.prototype.getBatteryPlaced = function() {
3988
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
3989
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 12));
3990
+ };
3991
+
3992
+
3993
+ /**
3994
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
3995
+ * @return {!proto.Spic.AssetProto} returns this
3996
+ */
3997
+ proto.Spic.AssetProto.prototype.setBatteryPlaced = function(value) {
3998
+ return jspb.Message.setWrapperField(this, 12, value);
3999
+ };
4000
+
4001
+
4002
+ /**
4003
+ * Clears the message field making it undefined.
4004
+ * @return {!proto.Spic.AssetProto} returns this
4005
+ */
4006
+ proto.Spic.AssetProto.prototype.clearBatteryPlaced = function() {
4007
+ return this.setBatteryPlaced(undefined);
4008
+ };
4009
+
4010
+
4011
+ /**
4012
+ * Returns whether this field is set.
4013
+ * @return {boolean}
4014
+ */
4015
+ proto.Spic.AssetProto.prototype.hasBatteryPlaced = function() {
4016
+ return jspb.Message.getField(this, 12) != null;
4017
+ };
4018
+
4019
+
4020
+ /**
4021
+ * optional int32 battery_percentage = 13;
4022
+ * @return {number}
4023
+ */
4024
+ proto.Spic.AssetProto.prototype.getBatteryPercentage = function() {
4025
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
4026
+ };
4027
+
4028
+
4029
+ /**
4030
+ * @param {number} value
4031
+ * @return {!proto.Spic.AssetProto} returns this
4032
+ */
4033
+ proto.Spic.AssetProto.prototype.setBatteryPercentage = function(value) {
4034
+ return jspb.Message.setProto3IntField(this, 13, value);
4035
+ };
4036
+
4037
+
4038
+ /**
4039
+ * optional int64 communication_time = 14;
4040
+ * @return {number}
4041
+ */
4042
+ proto.Spic.AssetProto.prototype.getCommunicationTime = function() {
4043
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
4044
+ };
4045
+
4046
+
4047
+ /**
4048
+ * @param {number} value
4049
+ * @return {!proto.Spic.AssetProto} returns this
4050
+ */
4051
+ proto.Spic.AssetProto.prototype.setCommunicationTime = function(value) {
4052
+ return jspb.Message.setProto3IntField(this, 14, value);
4053
+ };
4054
+
4055
+
4056
+ /**
4057
+ * optional string last_config_string = 15;
4058
+ * @return {string}
4059
+ */
4060
+ proto.Spic.AssetProto.prototype.getLastConfigString = function() {
4061
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
4062
+ };
4063
+
4064
+
4065
+ /**
4066
+ * @param {string} value
4067
+ * @return {!proto.Spic.AssetProto} returns this
4068
+ */
4069
+ proto.Spic.AssetProto.prototype.setLastConfigString = function(value) {
4070
+ return jspb.Message.setProto3StringField(this, 15, value);
4071
+ };
4072
+
4073
+
4074
+ /**
4075
+ * optional google.protobuf.Timestamp last_config_updated = 16;
4076
+ * @return {?proto.google.protobuf.Timestamp}
4077
+ */
4078
+ proto.Spic.AssetProto.prototype.getLastConfigUpdated = function() {
4079
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
4080
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 16));
4081
+ };
4082
+
4083
+
4084
+ /**
4085
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
4086
+ * @return {!proto.Spic.AssetProto} returns this
4087
+ */
4088
+ proto.Spic.AssetProto.prototype.setLastConfigUpdated = function(value) {
4089
+ return jspb.Message.setWrapperField(this, 16, value);
4090
+ };
4091
+
4092
+
4093
+ /**
4094
+ * Clears the message field making it undefined.
4095
+ * @return {!proto.Spic.AssetProto} returns this
4096
+ */
4097
+ proto.Spic.AssetProto.prototype.clearLastConfigUpdated = function() {
4098
+ return this.setLastConfigUpdated(undefined);
4099
+ };
4100
+
4101
+
4102
+ /**
4103
+ * Returns whether this field is set.
4104
+ * @return {boolean}
4105
+ */
4106
+ proto.Spic.AssetProto.prototype.hasLastConfigUpdated = function() {
4107
+ return jspb.Message.getField(this, 16) != null;
4108
+ };
4109
+
4110
+
4111
+ /**
4112
+ * optional SpicType spic_type = 17;
4113
+ * @return {!proto.Spic.AssetProto.SpicType}
4114
+ */
4115
+ proto.Spic.AssetProto.prototype.getSpicType = function() {
4116
+ return /** @type {!proto.Spic.AssetProto.SpicType} */ (jspb.Message.getFieldWithDefault(this, 17, 0));
4117
+ };
4118
+
4119
+
4120
+ /**
4121
+ * @param {!proto.Spic.AssetProto.SpicType} value
4122
+ * @return {!proto.Spic.AssetProto} returns this
4123
+ */
4124
+ proto.Spic.AssetProto.prototype.setSpicType = function(value) {
4125
+ return jspb.Message.setProto3EnumField(this, 17, value);
4126
+ };
4127
+
4128
+
4129
+ /**
4130
+ * optional BatteryStatus battery_status = 18;
4131
+ * @return {!proto.Spic.AssetProto.BatteryStatus}
4132
+ */
4133
+ proto.Spic.AssetProto.prototype.getBatteryStatus = function() {
4134
+ return /** @type {!proto.Spic.AssetProto.BatteryStatus} */ (jspb.Message.getFieldWithDefault(this, 18, 0));
4135
+ };
4136
+
4137
+
4138
+ /**
4139
+ * @param {!proto.Spic.AssetProto.BatteryStatus} value
4140
+ * @return {!proto.Spic.AssetProto} returns this
4141
+ */
4142
+ proto.Spic.AssetProto.prototype.setBatteryStatus = function(value) {
4143
+ return jspb.Message.setProto3EnumField(this, 18, value);
4144
+ };
4145
+
4146
+
4147
+ /**
4148
+ * repeated ComponentState states = 19;
4149
+ * @return {!Array<!proto.Spic.AssetProto.ComponentState>}
4150
+ */
4151
+ proto.Spic.AssetProto.prototype.getStatesList = function() {
4152
+ return /** @type{!Array<!proto.Spic.AssetProto.ComponentState>} */ (
4153
+ jspb.Message.getRepeatedWrapperField(this, proto.Spic.AssetProto.ComponentState, 19));
4154
+ };
4155
+
4156
+
4157
+ /**
4158
+ * @param {!Array<!proto.Spic.AssetProto.ComponentState>} value
4159
+ * @return {!proto.Spic.AssetProto} returns this
4160
+ */
4161
+ proto.Spic.AssetProto.prototype.setStatesList = function(value) {
4162
+ return jspb.Message.setRepeatedWrapperField(this, 19, value);
4163
+ };
4164
+
4165
+
4166
+ /**
4167
+ * @param {!proto.Spic.AssetProto.ComponentState=} opt_value
4168
+ * @param {number=} opt_index
4169
+ * @return {!proto.Spic.AssetProto.ComponentState}
4170
+ */
4171
+ proto.Spic.AssetProto.prototype.addStates = function(opt_value, opt_index) {
4172
+ return jspb.Message.addToRepeatedWrapperField(this, 19, opt_value, proto.Spic.AssetProto.ComponentState, opt_index);
4173
+ };
4174
+
4175
+
4176
+ /**
4177
+ * Clears the list making it empty but non-null.
4178
+ * @return {!proto.Spic.AssetProto} returns this
4179
+ */
4180
+ proto.Spic.AssetProto.prototype.clearStatesList = function() {
4181
+ return this.setStatesList([]);
4182
+ };
4183
+
4184
+
4185
+ /**
4186
+ * optional DeviceType device_type = 20;
4187
+ * @return {!proto.Spic.AssetProto.DeviceType}
4188
+ */
4189
+ proto.Spic.AssetProto.prototype.getDeviceType = function() {
4190
+ return /** @type {!proto.Spic.AssetProto.DeviceType} */ (jspb.Message.getFieldWithDefault(this, 20, 0));
4191
+ };
4192
+
4193
+
4194
+ /**
4195
+ * @param {!proto.Spic.AssetProto.DeviceType} value
4196
+ * @return {!proto.Spic.AssetProto} returns this
4197
+ */
4198
+ proto.Spic.AssetProto.prototype.setDeviceType = function(value) {
4199
+ return jspb.Message.setProto3EnumField(this, 20, value);
4200
+ };
4201
+
4202
+
4203
+
4204
+
4205
+
4206
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4207
+ /**
4208
+ * Creates an object representation of this proto.
4209
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4210
+ * Optional fields that are not set will be set to undefined.
4211
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4212
+ * For the list of reserved names please see:
4213
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4214
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4215
+ * JSPB instance for transitional soy proto support:
4216
+ * http://goto/soy-param-migration
4217
+ * @return {!Object}
4218
+ */
4219
+ proto.Spic.AssetWithLocation.prototype.toObject = function(opt_includeInstance) {
4220
+ return proto.Spic.AssetWithLocation.toObject(opt_includeInstance, this);
4221
+ };
4222
+
4223
+
4224
+ /**
4225
+ * Static version of the {@see toObject} method.
4226
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4227
+ * the JSPB instance for transitional soy proto support:
4228
+ * http://goto/soy-param-migration
4229
+ * @param {!proto.Spic.AssetWithLocation} msg The msg instance to transform.
4230
+ * @return {!Object}
4231
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4232
+ */
4233
+ proto.Spic.AssetWithLocation.toObject = function(includeInstance, msg) {
4234
+ var f, obj = {
4235
+ asset: (f = msg.getAsset()) && proto.Spic.AssetProto.toObject(includeInstance, f),
4236
+ location: (f = msg.getLocation()) && platform_location_pb.LocationProto.toObject(includeInstance, f),
4237
+ openingRange: jspb.Message.getFieldWithDefault(msg, 3, 0)
4238
+ };
4239
+
4240
+ if (includeInstance) {
4241
+ obj.$jspbMessageInstance = msg;
4242
+ }
4243
+ return obj;
4244
+ };
4245
+ }
4246
+
4247
+
4248
+ /**
4249
+ * Deserializes binary data (in protobuf wire format).
4250
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4251
+ * @return {!proto.Spic.AssetWithLocation}
4252
+ */
4253
+ proto.Spic.AssetWithLocation.deserializeBinary = function(bytes) {
4254
+ var reader = new jspb.BinaryReader(bytes);
4255
+ var msg = new proto.Spic.AssetWithLocation;
4256
+ return proto.Spic.AssetWithLocation.deserializeBinaryFromReader(msg, reader);
4257
+ };
4258
+
4259
+
4260
+ /**
4261
+ * Deserializes binary data (in protobuf wire format) from the
4262
+ * given reader into the given message object.
4263
+ * @param {!proto.Spic.AssetWithLocation} msg The message object to deserialize into.
4264
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4265
+ * @return {!proto.Spic.AssetWithLocation}
4266
+ */
4267
+ proto.Spic.AssetWithLocation.deserializeBinaryFromReader = function(msg, reader) {
4268
+ while (reader.nextField()) {
4269
+ if (reader.isEndGroup()) {
4270
+ break;
4271
+ }
4272
+ var field = reader.getFieldNumber();
4273
+ switch (field) {
4274
+ case 1:
4275
+ var value = new proto.Spic.AssetProto;
4276
+ reader.readMessage(value,proto.Spic.AssetProto.deserializeBinaryFromReader);
4277
+ msg.setAsset(value);
4278
+ break;
4279
+ case 2:
4280
+ var value = new platform_location_pb.LocationProto;
4281
+ reader.readMessage(value,platform_location_pb.LocationProto.deserializeBinaryFromReader);
4282
+ msg.setLocation(value);
4283
+ break;
4284
+ case 3:
4285
+ var value = /** @type {number} */ (reader.readInt32());
4286
+ msg.setOpeningRange(value);
4287
+ break;
4288
+ default:
4289
+ reader.skipField();
4290
+ break;
4291
+ }
4292
+ }
4293
+ return msg;
4294
+ };
4295
+
4296
+
4297
+ /**
4298
+ * Serializes the message to binary data (in protobuf wire format).
4299
+ * @return {!Uint8Array}
4300
+ */
4301
+ proto.Spic.AssetWithLocation.prototype.serializeBinary = function() {
4302
+ var writer = new jspb.BinaryWriter();
4303
+ proto.Spic.AssetWithLocation.serializeBinaryToWriter(this, writer);
4304
+ return writer.getResultBuffer();
4305
+ };
4306
+
4307
+
4308
+ /**
4309
+ * Serializes the given message to binary data (in protobuf wire
4310
+ * format), writing to the given BinaryWriter.
4311
+ * @param {!proto.Spic.AssetWithLocation} message
4312
+ * @param {!jspb.BinaryWriter} writer
4313
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4314
+ */
4315
+ proto.Spic.AssetWithLocation.serializeBinaryToWriter = function(message, writer) {
4316
+ var f = undefined;
4317
+ f = message.getAsset();
4318
+ if (f != null) {
4319
+ writer.writeMessage(
4320
+ 1,
4321
+ f,
4322
+ proto.Spic.AssetProto.serializeBinaryToWriter
4323
+ );
4324
+ }
4325
+ f = message.getLocation();
4326
+ if (f != null) {
4327
+ writer.writeMessage(
4328
+ 2,
4329
+ f,
4330
+ platform_location_pb.LocationProto.serializeBinaryToWriter
4331
+ );
4332
+ }
4333
+ f = message.getOpeningRange();
4334
+ if (f !== 0) {
4335
+ writer.writeInt32(
4336
+ 3,
4337
+ f
4338
+ );
4339
+ }
4340
+ };
4341
+
4342
+
4343
+ /**
4344
+ * optional AssetProto asset = 1;
4345
+ * @return {?proto.Spic.AssetProto}
4346
+ */
4347
+ proto.Spic.AssetWithLocation.prototype.getAsset = function() {
4348
+ return /** @type{?proto.Spic.AssetProto} */ (
4349
+ jspb.Message.getWrapperField(this, proto.Spic.AssetProto, 1));
4350
+ };
4351
+
4352
+
4353
+ /**
4354
+ * @param {?proto.Spic.AssetProto|undefined} value
4355
+ * @return {!proto.Spic.AssetWithLocation} returns this
4356
+ */
4357
+ proto.Spic.AssetWithLocation.prototype.setAsset = function(value) {
4358
+ return jspb.Message.setWrapperField(this, 1, value);
4359
+ };
4360
+
4361
+
4362
+ /**
4363
+ * Clears the message field making it undefined.
4364
+ * @return {!proto.Spic.AssetWithLocation} returns this
4365
+ */
4366
+ proto.Spic.AssetWithLocation.prototype.clearAsset = function() {
4367
+ return this.setAsset(undefined);
4368
+ };
4369
+
4370
+
4371
+ /**
4372
+ * Returns whether this field is set.
4373
+ * @return {boolean}
4374
+ */
4375
+ proto.Spic.AssetWithLocation.prototype.hasAsset = function() {
4376
+ return jspb.Message.getField(this, 1) != null;
4377
+ };
4378
+
4379
+
4380
+ /**
4381
+ * optional Platform.LocationProto location = 2;
4382
+ * @return {?proto.Platform.LocationProto}
4383
+ */
4384
+ proto.Spic.AssetWithLocation.prototype.getLocation = function() {
4385
+ return /** @type{?proto.Platform.LocationProto} */ (
4386
+ jspb.Message.getWrapperField(this, platform_location_pb.LocationProto, 2));
4387
+ };
4388
+
4389
+
4390
+ /**
4391
+ * @param {?proto.Platform.LocationProto|undefined} value
4392
+ * @return {!proto.Spic.AssetWithLocation} returns this
4393
+ */
4394
+ proto.Spic.AssetWithLocation.prototype.setLocation = function(value) {
4395
+ return jspb.Message.setWrapperField(this, 2, value);
4396
+ };
4397
+
4398
+
4399
+ /**
4400
+ * Clears the message field making it undefined.
4401
+ * @return {!proto.Spic.AssetWithLocation} returns this
4402
+ */
4403
+ proto.Spic.AssetWithLocation.prototype.clearLocation = function() {
4404
+ return this.setLocation(undefined);
4405
+ };
4406
+
4407
+
4408
+ /**
4409
+ * Returns whether this field is set.
4410
+ * @return {boolean}
4411
+ */
4412
+ proto.Spic.AssetWithLocation.prototype.hasLocation = function() {
4413
+ return jspb.Message.getField(this, 2) != null;
4414
+ };
4415
+
4416
+
4417
+ /**
4418
+ * optional int32 opening_range = 3;
4419
+ * @return {number}
4420
+ */
4421
+ proto.Spic.AssetWithLocation.prototype.getOpeningRange = function() {
4422
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
4423
+ };
4424
+
4425
+
4426
+ /**
4427
+ * @param {number} value
4428
+ * @return {!proto.Spic.AssetWithLocation} returns this
4429
+ */
4430
+ proto.Spic.AssetWithLocation.prototype.setOpeningRange = function(value) {
4431
+ return jspb.Message.setProto3IntField(this, 3, value);
4432
+ };
4433
+
4434
+
4435
+
4436
+
4437
+
4438
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4439
+ /**
4440
+ * Creates an object representation of this proto.
4441
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4442
+ * Optional fields that are not set will be set to undefined.
4443
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4444
+ * For the list of reserved names please see:
4445
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4446
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4447
+ * JSPB instance for transitional soy proto support:
4448
+ * http://goto/soy-param-migration
4449
+ * @return {!Object}
4450
+ */
4451
+ proto.Spic.AssetWithLocationAndDistance.prototype.toObject = function(opt_includeInstance) {
4452
+ return proto.Spic.AssetWithLocationAndDistance.toObject(opt_includeInstance, this);
4453
+ };
4454
+
4455
+
4456
+ /**
4457
+ * Static version of the {@see toObject} method.
4458
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4459
+ * the JSPB instance for transitional soy proto support:
4460
+ * http://goto/soy-param-migration
4461
+ * @param {!proto.Spic.AssetWithLocationAndDistance} msg The msg instance to transform.
4462
+ * @return {!Object}
4463
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4464
+ */
4465
+ proto.Spic.AssetWithLocationAndDistance.toObject = function(includeInstance, msg) {
4466
+ var f, obj = {
4467
+ asset: (f = msg.getAsset()) && proto.Spic.AssetProto.toObject(includeInstance, f),
4468
+ location: (f = msg.getLocation()) && platform_location_pb.LocationProto.toObject(includeInstance, f),
4469
+ openingRange: jspb.Message.getFieldWithDefault(msg, 3, 0),
4470
+ distance: jspb.Message.getFieldWithDefault(msg, 4, 0)
4471
+ };
4472
+
4473
+ if (includeInstance) {
4474
+ obj.$jspbMessageInstance = msg;
4475
+ }
4476
+ return obj;
4477
+ };
4478
+ }
4479
+
4480
+
4481
+ /**
4482
+ * Deserializes binary data (in protobuf wire format).
4483
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4484
+ * @return {!proto.Spic.AssetWithLocationAndDistance}
4485
+ */
4486
+ proto.Spic.AssetWithLocationAndDistance.deserializeBinary = function(bytes) {
4487
+ var reader = new jspb.BinaryReader(bytes);
4488
+ var msg = new proto.Spic.AssetWithLocationAndDistance;
4489
+ return proto.Spic.AssetWithLocationAndDistance.deserializeBinaryFromReader(msg, reader);
4490
+ };
4491
+
4492
+
4493
+ /**
4494
+ * Deserializes binary data (in protobuf wire format) from the
4495
+ * given reader into the given message object.
4496
+ * @param {!proto.Spic.AssetWithLocationAndDistance} msg The message object to deserialize into.
4497
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4498
+ * @return {!proto.Spic.AssetWithLocationAndDistance}
4499
+ */
4500
+ proto.Spic.AssetWithLocationAndDistance.deserializeBinaryFromReader = function(msg, reader) {
4501
+ while (reader.nextField()) {
4502
+ if (reader.isEndGroup()) {
4503
+ break;
4504
+ }
4505
+ var field = reader.getFieldNumber();
4506
+ switch (field) {
4507
+ case 1:
4508
+ var value = new proto.Spic.AssetProto;
4509
+ reader.readMessage(value,proto.Spic.AssetProto.deserializeBinaryFromReader);
4510
+ msg.setAsset(value);
4511
+ break;
4512
+ case 2:
4513
+ var value = new platform_location_pb.LocationProto;
4514
+ reader.readMessage(value,platform_location_pb.LocationProto.deserializeBinaryFromReader);
4515
+ msg.setLocation(value);
4516
+ break;
4517
+ case 3:
4518
+ var value = /** @type {number} */ (reader.readInt32());
4519
+ msg.setOpeningRange(value);
4520
+ break;
4521
+ case 4:
4522
+ var value = /** @type {number} */ (reader.readInt32());
4523
+ msg.setDistance(value);
4524
+ break;
4525
+ default:
4526
+ reader.skipField();
4527
+ break;
4528
+ }
4529
+ }
4530
+ return msg;
4531
+ };
4532
+
4533
+
4534
+ /**
4535
+ * Serializes the message to binary data (in protobuf wire format).
4536
+ * @return {!Uint8Array}
4537
+ */
4538
+ proto.Spic.AssetWithLocationAndDistance.prototype.serializeBinary = function() {
4539
+ var writer = new jspb.BinaryWriter();
4540
+ proto.Spic.AssetWithLocationAndDistance.serializeBinaryToWriter(this, writer);
4541
+ return writer.getResultBuffer();
4542
+ };
4543
+
4544
+
4545
+ /**
4546
+ * Serializes the given message to binary data (in protobuf wire
4547
+ * format), writing to the given BinaryWriter.
4548
+ * @param {!proto.Spic.AssetWithLocationAndDistance} message
4549
+ * @param {!jspb.BinaryWriter} writer
4550
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4551
+ */
4552
+ proto.Spic.AssetWithLocationAndDistance.serializeBinaryToWriter = function(message, writer) {
4553
+ var f = undefined;
4554
+ f = message.getAsset();
4555
+ if (f != null) {
4556
+ writer.writeMessage(
4557
+ 1,
4558
+ f,
4559
+ proto.Spic.AssetProto.serializeBinaryToWriter
4560
+ );
4561
+ }
4562
+ f = message.getLocation();
4563
+ if (f != null) {
4564
+ writer.writeMessage(
4565
+ 2,
4566
+ f,
4567
+ platform_location_pb.LocationProto.serializeBinaryToWriter
4568
+ );
4569
+ }
4570
+ f = message.getOpeningRange();
4571
+ if (f !== 0) {
4572
+ writer.writeInt32(
4573
+ 3,
4574
+ f
4575
+ );
4576
+ }
4577
+ f = message.getDistance();
4578
+ if (f !== 0) {
4579
+ writer.writeInt32(
4580
+ 4,
4581
+ f
4582
+ );
4583
+ }
4584
+ };
4585
+
4586
+
4587
+ /**
4588
+ * optional AssetProto asset = 1;
4589
+ * @return {?proto.Spic.AssetProto}
4590
+ */
4591
+ proto.Spic.AssetWithLocationAndDistance.prototype.getAsset = function() {
4592
+ return /** @type{?proto.Spic.AssetProto} */ (
4593
+ jspb.Message.getWrapperField(this, proto.Spic.AssetProto, 1));
4594
+ };
4595
+
4596
+
4597
+ /**
4598
+ * @param {?proto.Spic.AssetProto|undefined} value
4599
+ * @return {!proto.Spic.AssetWithLocationAndDistance} returns this
4600
+ */
4601
+ proto.Spic.AssetWithLocationAndDistance.prototype.setAsset = function(value) {
4602
+ return jspb.Message.setWrapperField(this, 1, value);
4603
+ };
4604
+
4605
+
4606
+ /**
4607
+ * Clears the message field making it undefined.
4608
+ * @return {!proto.Spic.AssetWithLocationAndDistance} returns this
4609
+ */
4610
+ proto.Spic.AssetWithLocationAndDistance.prototype.clearAsset = function() {
4611
+ return this.setAsset(undefined);
4612
+ };
4613
+
4614
+
4615
+ /**
4616
+ * Returns whether this field is set.
4617
+ * @return {boolean}
4618
+ */
4619
+ proto.Spic.AssetWithLocationAndDistance.prototype.hasAsset = function() {
4620
+ return jspb.Message.getField(this, 1) != null;
4621
+ };
4622
+
4623
+
4624
+ /**
4625
+ * optional Platform.LocationProto location = 2;
4626
+ * @return {?proto.Platform.LocationProto}
4627
+ */
4628
+ proto.Spic.AssetWithLocationAndDistance.prototype.getLocation = function() {
4629
+ return /** @type{?proto.Platform.LocationProto} */ (
4630
+ jspb.Message.getWrapperField(this, platform_location_pb.LocationProto, 2));
4631
+ };
4632
+
4633
+
4634
+ /**
4635
+ * @param {?proto.Platform.LocationProto|undefined} value
4636
+ * @return {!proto.Spic.AssetWithLocationAndDistance} returns this
4637
+ */
4638
+ proto.Spic.AssetWithLocationAndDistance.prototype.setLocation = function(value) {
4639
+ return jspb.Message.setWrapperField(this, 2, value);
4640
+ };
4641
+
4642
+
4643
+ /**
4644
+ * Clears the message field making it undefined.
4645
+ * @return {!proto.Spic.AssetWithLocationAndDistance} returns this
4646
+ */
4647
+ proto.Spic.AssetWithLocationAndDistance.prototype.clearLocation = function() {
4648
+ return this.setLocation(undefined);
4649
+ };
4650
+
4651
+
4652
+ /**
4653
+ * Returns whether this field is set.
4654
+ * @return {boolean}
4655
+ */
4656
+ proto.Spic.AssetWithLocationAndDistance.prototype.hasLocation = function() {
4657
+ return jspb.Message.getField(this, 2) != null;
4658
+ };
4659
+
4660
+
4661
+ /**
4662
+ * optional int32 opening_range = 3;
4663
+ * @return {number}
4664
+ */
4665
+ proto.Spic.AssetWithLocationAndDistance.prototype.getOpeningRange = function() {
4666
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
4667
+ };
4668
+
4669
+
4670
+ /**
4671
+ * @param {number} value
4672
+ * @return {!proto.Spic.AssetWithLocationAndDistance} returns this
4673
+ */
4674
+ proto.Spic.AssetWithLocationAndDistance.prototype.setOpeningRange = function(value) {
4675
+ return jspb.Message.setProto3IntField(this, 3, value);
4676
+ };
4677
+
4678
+
4679
+ /**
4680
+ * optional int32 distance = 4;
4681
+ * @return {number}
4682
+ */
4683
+ proto.Spic.AssetWithLocationAndDistance.prototype.getDistance = function() {
4684
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
4685
+ };
4686
+
4687
+
4688
+ /**
4689
+ * @param {number} value
4690
+ * @return {!proto.Spic.AssetWithLocationAndDistance} returns this
4691
+ */
4692
+ proto.Spic.AssetWithLocationAndDistance.prototype.setDistance = function(value) {
4693
+ return jspb.Message.setProto3IntField(this, 4, value);
4694
+ };
4695
+
4696
+
4697
+ /**
4698
+ * @enum {number}
4699
+ */
4700
+ proto.Spic.ComponentIdentifier = {
4701
+ ENCLOSURE_TEMPERATURE: 0,
4702
+ ENCLOSURE_HUMIDITY: 1,
4703
+ ENCLOSURE_TILT: 2,
4704
+ DEVICE_UID: 3,
4705
+ COMMUNICATION_PACKET_NUMBER: 4,
4706
+ MAINBOARD_FIRMWARE_CRC: 5,
4707
+ MAINBOARD_BATTERY_VOLTAGE: 6,
4708
+ LTE_COMMUNICATION_TIME: 7,
4709
+ LTE_SIGNAL_STRENGTH: 8,
4710
+ LTE_NETWORK_STRING: 9,
4711
+ LTE_ICCID: 10,
4712
+ LTE_IMEI: 11,
4713
+ NTC_CRITICAL_TEMPERATURE_ALARM: 12,
4714
+ NTC_HIGH_TEMPERATURE_ALARM: 13,
4715
+ CABINET_MAIN_DOOR: 14,
4716
+ CABINET_MAIN_DOOR_HANDLE: 15,
4717
+ CABINET_MAIN_DOOR_LOCK: 16,
4718
+ EXT_ALARM_1: 31,
4719
+ EXT_ALARM_2: 32,
4720
+ EXT_ALARM_3: 33
4721
+ };
4722
+
4723
+ goog.object.extend(exports, proto.Spic);