@aceplus/smartace-api 2.0.0 → 2.1.0-drumtracker.4

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,1864 @@
1
+ // source: drumtracking.tracker.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_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
25
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
26
+ var google_api_annotations_pb = require('./google/api/annotations_pb.js');
27
+ goog.object.extend(proto, google_api_annotations_pb);
28
+ var platform_pagination_pb = require('./platform.pagination_pb.js');
29
+ goog.object.extend(proto, platform_pagination_pb);
30
+ goog.exportSymbol('proto.Drumtracking.TrackerProto', null, global);
31
+ goog.exportSymbol('proto.Drumtracking.TrackerProto.CreateRequest', null, global);
32
+ goog.exportSymbol('proto.Drumtracking.TrackerProto.DeleteReply', null, global);
33
+ goog.exportSymbol('proto.Drumtracking.TrackerProto.DeleteRequest', null, global);
34
+ goog.exportSymbol('proto.Drumtracking.TrackerProto.RetrieveRequest', null, global);
35
+ goog.exportSymbol('proto.Drumtracking.TrackerProto.SearchReply', null, global);
36
+ goog.exportSymbol('proto.Drumtracking.TrackerProto.SearchRequest', null, global);
37
+ goog.exportSymbol('proto.Drumtracking.TrackerProto.TrackerFilters', null, global);
38
+ goog.exportSymbol('proto.Drumtracking.TrackerProto.UpdateRequest', null, global);
39
+ /**
40
+ * Generated by JsPbCodeGenerator.
41
+ * @param {Array=} opt_data Optional initial data array, typically from a
42
+ * server response, or constructed directly in Javascript. The array is used
43
+ * in place and becomes part of the constructed object. It is not cloned.
44
+ * If no data is provided, the constructed object will be empty, but still
45
+ * valid.
46
+ * @extends {jspb.Message}
47
+ * @constructor
48
+ */
49
+ proto.Drumtracking.TrackerProto = function(opt_data) {
50
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
51
+ };
52
+ goog.inherits(proto.Drumtracking.TrackerProto, jspb.Message);
53
+ if (goog.DEBUG && !COMPILED) {
54
+ /**
55
+ * @public
56
+ * @override
57
+ */
58
+ proto.Drumtracking.TrackerProto.displayName = 'proto.Drumtracking.TrackerProto';
59
+ }
60
+ /**
61
+ * Generated by JsPbCodeGenerator.
62
+ * @param {Array=} opt_data Optional initial data array, typically from a
63
+ * server response, or constructed directly in Javascript. The array is used
64
+ * in place and becomes part of the constructed object. It is not cloned.
65
+ * If no data is provided, the constructed object will be empty, but still
66
+ * valid.
67
+ * @extends {jspb.Message}
68
+ * @constructor
69
+ */
70
+ proto.Drumtracking.TrackerProto.CreateRequest = function(opt_data) {
71
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
72
+ };
73
+ goog.inherits(proto.Drumtracking.TrackerProto.CreateRequest, jspb.Message);
74
+ if (goog.DEBUG && !COMPILED) {
75
+ /**
76
+ * @public
77
+ * @override
78
+ */
79
+ proto.Drumtracking.TrackerProto.CreateRequest.displayName = 'proto.Drumtracking.TrackerProto.CreateRequest';
80
+ }
81
+ /**
82
+ * Generated by JsPbCodeGenerator.
83
+ * @param {Array=} opt_data Optional initial data array, typically from a
84
+ * server response, or constructed directly in Javascript. The array is used
85
+ * in place and becomes part of the constructed object. It is not cloned.
86
+ * If no data is provided, the constructed object will be empty, but still
87
+ * valid.
88
+ * @extends {jspb.Message}
89
+ * @constructor
90
+ */
91
+ proto.Drumtracking.TrackerProto.RetrieveRequest = function(opt_data) {
92
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
93
+ };
94
+ goog.inherits(proto.Drumtracking.TrackerProto.RetrieveRequest, jspb.Message);
95
+ if (goog.DEBUG && !COMPILED) {
96
+ /**
97
+ * @public
98
+ * @override
99
+ */
100
+ proto.Drumtracking.TrackerProto.RetrieveRequest.displayName = 'proto.Drumtracking.TrackerProto.RetrieveRequest';
101
+ }
102
+ /**
103
+ * Generated by JsPbCodeGenerator.
104
+ * @param {Array=} opt_data Optional initial data array, typically from a
105
+ * server response, or constructed directly in Javascript. The array is used
106
+ * in place and becomes part of the constructed object. It is not cloned.
107
+ * If no data is provided, the constructed object will be empty, but still
108
+ * valid.
109
+ * @extends {jspb.Message}
110
+ * @constructor
111
+ */
112
+ proto.Drumtracking.TrackerProto.UpdateRequest = function(opt_data) {
113
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
114
+ };
115
+ goog.inherits(proto.Drumtracking.TrackerProto.UpdateRequest, jspb.Message);
116
+ if (goog.DEBUG && !COMPILED) {
117
+ /**
118
+ * @public
119
+ * @override
120
+ */
121
+ proto.Drumtracking.TrackerProto.UpdateRequest.displayName = 'proto.Drumtracking.TrackerProto.UpdateRequest';
122
+ }
123
+ /**
124
+ * Generated by JsPbCodeGenerator.
125
+ * @param {Array=} opt_data Optional initial data array, typically from a
126
+ * server response, or constructed directly in Javascript. The array is used
127
+ * in place and becomes part of the constructed object. It is not cloned.
128
+ * If no data is provided, the constructed object will be empty, but still
129
+ * valid.
130
+ * @extends {jspb.Message}
131
+ * @constructor
132
+ */
133
+ proto.Drumtracking.TrackerProto.DeleteRequest = function(opt_data) {
134
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
135
+ };
136
+ goog.inherits(proto.Drumtracking.TrackerProto.DeleteRequest, jspb.Message);
137
+ if (goog.DEBUG && !COMPILED) {
138
+ /**
139
+ * @public
140
+ * @override
141
+ */
142
+ proto.Drumtracking.TrackerProto.DeleteRequest.displayName = 'proto.Drumtracking.TrackerProto.DeleteRequest';
143
+ }
144
+ /**
145
+ * Generated by JsPbCodeGenerator.
146
+ * @param {Array=} opt_data Optional initial data array, typically from a
147
+ * server response, or constructed directly in Javascript. The array is used
148
+ * in place and becomes part of the constructed object. It is not cloned.
149
+ * If no data is provided, the constructed object will be empty, but still
150
+ * valid.
151
+ * @extends {jspb.Message}
152
+ * @constructor
153
+ */
154
+ proto.Drumtracking.TrackerProto.DeleteReply = function(opt_data) {
155
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
156
+ };
157
+ goog.inherits(proto.Drumtracking.TrackerProto.DeleteReply, jspb.Message);
158
+ if (goog.DEBUG && !COMPILED) {
159
+ /**
160
+ * @public
161
+ * @override
162
+ */
163
+ proto.Drumtracking.TrackerProto.DeleteReply.displayName = 'proto.Drumtracking.TrackerProto.DeleteReply';
164
+ }
165
+ /**
166
+ * Generated by JsPbCodeGenerator.
167
+ * @param {Array=} opt_data Optional initial data array, typically from a
168
+ * server response, or constructed directly in Javascript. The array is used
169
+ * in place and becomes part of the constructed object. It is not cloned.
170
+ * If no data is provided, the constructed object will be empty, but still
171
+ * valid.
172
+ * @extends {jspb.Message}
173
+ * @constructor
174
+ */
175
+ proto.Drumtracking.TrackerProto.SearchRequest = function(opt_data) {
176
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
177
+ };
178
+ goog.inherits(proto.Drumtracking.TrackerProto.SearchRequest, jspb.Message);
179
+ if (goog.DEBUG && !COMPILED) {
180
+ /**
181
+ * @public
182
+ * @override
183
+ */
184
+ proto.Drumtracking.TrackerProto.SearchRequest.displayName = 'proto.Drumtracking.TrackerProto.SearchRequest';
185
+ }
186
+ /**
187
+ * Generated by JsPbCodeGenerator.
188
+ * @param {Array=} opt_data Optional initial data array, typically from a
189
+ * server response, or constructed directly in Javascript. The array is used
190
+ * in place and becomes part of the constructed object. It is not cloned.
191
+ * If no data is provided, the constructed object will be empty, but still
192
+ * valid.
193
+ * @extends {jspb.Message}
194
+ * @constructor
195
+ */
196
+ proto.Drumtracking.TrackerProto.SearchReply = function(opt_data) {
197
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Drumtracking.TrackerProto.SearchReply.repeatedFields_, null);
198
+ };
199
+ goog.inherits(proto.Drumtracking.TrackerProto.SearchReply, jspb.Message);
200
+ if (goog.DEBUG && !COMPILED) {
201
+ /**
202
+ * @public
203
+ * @override
204
+ */
205
+ proto.Drumtracking.TrackerProto.SearchReply.displayName = 'proto.Drumtracking.TrackerProto.SearchReply';
206
+ }
207
+ /**
208
+ * Generated by JsPbCodeGenerator.
209
+ * @param {Array=} opt_data Optional initial data array, typically from a
210
+ * server response, or constructed directly in Javascript. The array is used
211
+ * in place and becomes part of the constructed object. It is not cloned.
212
+ * If no data is provided, the constructed object will be empty, but still
213
+ * valid.
214
+ * @extends {jspb.Message}
215
+ * @constructor
216
+ */
217
+ proto.Drumtracking.TrackerProto.TrackerFilters = function(opt_data) {
218
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
219
+ };
220
+ goog.inherits(proto.Drumtracking.TrackerProto.TrackerFilters, jspb.Message);
221
+ if (goog.DEBUG && !COMPILED) {
222
+ /**
223
+ * @public
224
+ * @override
225
+ */
226
+ proto.Drumtracking.TrackerProto.TrackerFilters.displayName = 'proto.Drumtracking.TrackerProto.TrackerFilters';
227
+ }
228
+
229
+
230
+
231
+ if (jspb.Message.GENERATE_TO_OBJECT) {
232
+ /**
233
+ * Creates an object representation of this proto.
234
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
235
+ * Optional fields that are not set will be set to undefined.
236
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
237
+ * For the list of reserved names please see:
238
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
239
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
240
+ * JSPB instance for transitional soy proto support:
241
+ * http://goto/soy-param-migration
242
+ * @return {!Object}
243
+ */
244
+ proto.Drumtracking.TrackerProto.prototype.toObject = function(opt_includeInstance) {
245
+ return proto.Drumtracking.TrackerProto.toObject(opt_includeInstance, this);
246
+ };
247
+
248
+
249
+ /**
250
+ * Static version of the {@see toObject} method.
251
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
252
+ * the JSPB instance for transitional soy proto support:
253
+ * http://goto/soy-param-migration
254
+ * @param {!proto.Drumtracking.TrackerProto} msg The msg instance to transform.
255
+ * @return {!Object}
256
+ * @suppress {unusedLocalVariables} f is only used for nested messages
257
+ */
258
+ proto.Drumtracking.TrackerProto.toObject = function(includeInstance, msg) {
259
+ var f, obj = {
260
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
261
+ batteryVoltage: jspb.Message.getFieldWithDefault(msg, 2, 0),
262
+ lastUpdate: (f = msg.getLastUpdate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
263
+ activationDate: (f = msg.getActivationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
264
+ rotations: jspb.Message.getFieldWithDefault(msg, 5, 0),
265
+ deactivated: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
266
+ deactivationReason: jspb.Message.getFieldWithDefault(msg, 7, ""),
267
+ deactivationDate: (f = msg.getDeactivationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
268
+ drumNumber: jspb.Message.getFieldWithDefault(msg, 9, 0)
269
+ };
270
+
271
+ if (includeInstance) {
272
+ obj.$jspbMessageInstance = msg;
273
+ }
274
+ return obj;
275
+ };
276
+ }
277
+
278
+
279
+ /**
280
+ * Deserializes binary data (in protobuf wire format).
281
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
282
+ * @return {!proto.Drumtracking.TrackerProto}
283
+ */
284
+ proto.Drumtracking.TrackerProto.deserializeBinary = function(bytes) {
285
+ var reader = new jspb.BinaryReader(bytes);
286
+ var msg = new proto.Drumtracking.TrackerProto;
287
+ return proto.Drumtracking.TrackerProto.deserializeBinaryFromReader(msg, reader);
288
+ };
289
+
290
+
291
+ /**
292
+ * Deserializes binary data (in protobuf wire format) from the
293
+ * given reader into the given message object.
294
+ * @param {!proto.Drumtracking.TrackerProto} msg The message object to deserialize into.
295
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
296
+ * @return {!proto.Drumtracking.TrackerProto}
297
+ */
298
+ proto.Drumtracking.TrackerProto.deserializeBinaryFromReader = function(msg, reader) {
299
+ while (reader.nextField()) {
300
+ if (reader.isEndGroup()) {
301
+ break;
302
+ }
303
+ var field = reader.getFieldNumber();
304
+ switch (field) {
305
+ case 1:
306
+ var value = /** @type {number} */ (reader.readInt64());
307
+ msg.setId(value);
308
+ break;
309
+ case 2:
310
+ var value = /** @type {number} */ (reader.readInt32());
311
+ msg.setBatteryVoltage(value);
312
+ break;
313
+ case 3:
314
+ var value = new google_protobuf_timestamp_pb.Timestamp;
315
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
316
+ msg.setLastUpdate(value);
317
+ break;
318
+ case 4:
319
+ var value = new google_protobuf_timestamp_pb.Timestamp;
320
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
321
+ msg.setActivationDate(value);
322
+ break;
323
+ case 5:
324
+ var value = /** @type {number} */ (reader.readInt32());
325
+ msg.setRotations(value);
326
+ break;
327
+ case 6:
328
+ var value = /** @type {boolean} */ (reader.readBool());
329
+ msg.setDeactivated(value);
330
+ break;
331
+ case 7:
332
+ var value = /** @type {string} */ (reader.readString());
333
+ msg.setDeactivationReason(value);
334
+ break;
335
+ case 8:
336
+ var value = new google_protobuf_timestamp_pb.Timestamp;
337
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
338
+ msg.setDeactivationDate(value);
339
+ break;
340
+ case 9:
341
+ var value = /** @type {number} */ (reader.readInt64());
342
+ msg.setDrumNumber(value);
343
+ break;
344
+ default:
345
+ reader.skipField();
346
+ break;
347
+ }
348
+ }
349
+ return msg;
350
+ };
351
+
352
+
353
+ /**
354
+ * Serializes the message to binary data (in protobuf wire format).
355
+ * @return {!Uint8Array}
356
+ */
357
+ proto.Drumtracking.TrackerProto.prototype.serializeBinary = function() {
358
+ var writer = new jspb.BinaryWriter();
359
+ proto.Drumtracking.TrackerProto.serializeBinaryToWriter(this, writer);
360
+ return writer.getResultBuffer();
361
+ };
362
+
363
+
364
+ /**
365
+ * Serializes the given message to binary data (in protobuf wire
366
+ * format), writing to the given BinaryWriter.
367
+ * @param {!proto.Drumtracking.TrackerProto} message
368
+ * @param {!jspb.BinaryWriter} writer
369
+ * @suppress {unusedLocalVariables} f is only used for nested messages
370
+ */
371
+ proto.Drumtracking.TrackerProto.serializeBinaryToWriter = function(message, writer) {
372
+ var f = undefined;
373
+ f = message.getId();
374
+ if (f !== 0) {
375
+ writer.writeInt64(
376
+ 1,
377
+ f
378
+ );
379
+ }
380
+ f = message.getBatteryVoltage();
381
+ if (f !== 0) {
382
+ writer.writeInt32(
383
+ 2,
384
+ f
385
+ );
386
+ }
387
+ f = message.getLastUpdate();
388
+ if (f != null) {
389
+ writer.writeMessage(
390
+ 3,
391
+ f,
392
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
393
+ );
394
+ }
395
+ f = message.getActivationDate();
396
+ if (f != null) {
397
+ writer.writeMessage(
398
+ 4,
399
+ f,
400
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
401
+ );
402
+ }
403
+ f = message.getRotations();
404
+ if (f !== 0) {
405
+ writer.writeInt32(
406
+ 5,
407
+ f
408
+ );
409
+ }
410
+ f = message.getDeactivated();
411
+ if (f) {
412
+ writer.writeBool(
413
+ 6,
414
+ f
415
+ );
416
+ }
417
+ f = message.getDeactivationReason();
418
+ if (f.length > 0) {
419
+ writer.writeString(
420
+ 7,
421
+ f
422
+ );
423
+ }
424
+ f = message.getDeactivationDate();
425
+ if (f != null) {
426
+ writer.writeMessage(
427
+ 8,
428
+ f,
429
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
430
+ );
431
+ }
432
+ f = message.getDrumNumber();
433
+ if (f !== 0) {
434
+ writer.writeInt64(
435
+ 9,
436
+ f
437
+ );
438
+ }
439
+ };
440
+
441
+
442
+
443
+
444
+
445
+ if (jspb.Message.GENERATE_TO_OBJECT) {
446
+ /**
447
+ * Creates an object representation of this proto.
448
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
449
+ * Optional fields that are not set will be set to undefined.
450
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
451
+ * For the list of reserved names please see:
452
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
453
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
454
+ * JSPB instance for transitional soy proto support:
455
+ * http://goto/soy-param-migration
456
+ * @return {!Object}
457
+ */
458
+ proto.Drumtracking.TrackerProto.CreateRequest.prototype.toObject = function(opt_includeInstance) {
459
+ return proto.Drumtracking.TrackerProto.CreateRequest.toObject(opt_includeInstance, this);
460
+ };
461
+
462
+
463
+ /**
464
+ * Static version of the {@see toObject} method.
465
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
466
+ * the JSPB instance for transitional soy proto support:
467
+ * http://goto/soy-param-migration
468
+ * @param {!proto.Drumtracking.TrackerProto.CreateRequest} msg The msg instance to transform.
469
+ * @return {!Object}
470
+ * @suppress {unusedLocalVariables} f is only used for nested messages
471
+ */
472
+ proto.Drumtracking.TrackerProto.CreateRequest.toObject = function(includeInstance, msg) {
473
+ var f, obj = {
474
+ drumNumber: jspb.Message.getFieldWithDefault(msg, 1, 0)
475
+ };
476
+
477
+ if (includeInstance) {
478
+ obj.$jspbMessageInstance = msg;
479
+ }
480
+ return obj;
481
+ };
482
+ }
483
+
484
+
485
+ /**
486
+ * Deserializes binary data (in protobuf wire format).
487
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
488
+ * @return {!proto.Drumtracking.TrackerProto.CreateRequest}
489
+ */
490
+ proto.Drumtracking.TrackerProto.CreateRequest.deserializeBinary = function(bytes) {
491
+ var reader = new jspb.BinaryReader(bytes);
492
+ var msg = new proto.Drumtracking.TrackerProto.CreateRequest;
493
+ return proto.Drumtracking.TrackerProto.CreateRequest.deserializeBinaryFromReader(msg, reader);
494
+ };
495
+
496
+
497
+ /**
498
+ * Deserializes binary data (in protobuf wire format) from the
499
+ * given reader into the given message object.
500
+ * @param {!proto.Drumtracking.TrackerProto.CreateRequest} msg The message object to deserialize into.
501
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
502
+ * @return {!proto.Drumtracking.TrackerProto.CreateRequest}
503
+ */
504
+ proto.Drumtracking.TrackerProto.CreateRequest.deserializeBinaryFromReader = function(msg, reader) {
505
+ while (reader.nextField()) {
506
+ if (reader.isEndGroup()) {
507
+ break;
508
+ }
509
+ var field = reader.getFieldNumber();
510
+ switch (field) {
511
+ case 1:
512
+ var value = /** @type {number} */ (reader.readInt64());
513
+ msg.setDrumNumber(value);
514
+ break;
515
+ default:
516
+ reader.skipField();
517
+ break;
518
+ }
519
+ }
520
+ return msg;
521
+ };
522
+
523
+
524
+ /**
525
+ * Serializes the message to binary data (in protobuf wire format).
526
+ * @return {!Uint8Array}
527
+ */
528
+ proto.Drumtracking.TrackerProto.CreateRequest.prototype.serializeBinary = function() {
529
+ var writer = new jspb.BinaryWriter();
530
+ proto.Drumtracking.TrackerProto.CreateRequest.serializeBinaryToWriter(this, writer);
531
+ return writer.getResultBuffer();
532
+ };
533
+
534
+
535
+ /**
536
+ * Serializes the given message to binary data (in protobuf wire
537
+ * format), writing to the given BinaryWriter.
538
+ * @param {!proto.Drumtracking.TrackerProto.CreateRequest} message
539
+ * @param {!jspb.BinaryWriter} writer
540
+ * @suppress {unusedLocalVariables} f is only used for nested messages
541
+ */
542
+ proto.Drumtracking.TrackerProto.CreateRequest.serializeBinaryToWriter = function(message, writer) {
543
+ var f = undefined;
544
+ f = message.getDrumNumber();
545
+ if (f !== 0) {
546
+ writer.writeInt64(
547
+ 1,
548
+ f
549
+ );
550
+ }
551
+ };
552
+
553
+
554
+ /**
555
+ * optional int64 drum_number = 1;
556
+ * @return {number}
557
+ */
558
+ proto.Drumtracking.TrackerProto.CreateRequest.prototype.getDrumNumber = function() {
559
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
560
+ };
561
+
562
+
563
+ /**
564
+ * @param {number} value
565
+ * @return {!proto.Drumtracking.TrackerProto.CreateRequest} returns this
566
+ */
567
+ proto.Drumtracking.TrackerProto.CreateRequest.prototype.setDrumNumber = function(value) {
568
+ return jspb.Message.setProto3IntField(this, 1, value);
569
+ };
570
+
571
+
572
+
573
+
574
+
575
+ if (jspb.Message.GENERATE_TO_OBJECT) {
576
+ /**
577
+ * Creates an object representation of this proto.
578
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
579
+ * Optional fields that are not set will be set to undefined.
580
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
581
+ * For the list of reserved names please see:
582
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
583
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
584
+ * JSPB instance for transitional soy proto support:
585
+ * http://goto/soy-param-migration
586
+ * @return {!Object}
587
+ */
588
+ proto.Drumtracking.TrackerProto.RetrieveRequest.prototype.toObject = function(opt_includeInstance) {
589
+ return proto.Drumtracking.TrackerProto.RetrieveRequest.toObject(opt_includeInstance, this);
590
+ };
591
+
592
+
593
+ /**
594
+ * Static version of the {@see toObject} method.
595
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
596
+ * the JSPB instance for transitional soy proto support:
597
+ * http://goto/soy-param-migration
598
+ * @param {!proto.Drumtracking.TrackerProto.RetrieveRequest} msg The msg instance to transform.
599
+ * @return {!Object}
600
+ * @suppress {unusedLocalVariables} f is only used for nested messages
601
+ */
602
+ proto.Drumtracking.TrackerProto.RetrieveRequest.toObject = function(includeInstance, msg) {
603
+ var f, obj = {
604
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
605
+ };
606
+
607
+ if (includeInstance) {
608
+ obj.$jspbMessageInstance = msg;
609
+ }
610
+ return obj;
611
+ };
612
+ }
613
+
614
+
615
+ /**
616
+ * Deserializes binary data (in protobuf wire format).
617
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
618
+ * @return {!proto.Drumtracking.TrackerProto.RetrieveRequest}
619
+ */
620
+ proto.Drumtracking.TrackerProto.RetrieveRequest.deserializeBinary = function(bytes) {
621
+ var reader = new jspb.BinaryReader(bytes);
622
+ var msg = new proto.Drumtracking.TrackerProto.RetrieveRequest;
623
+ return proto.Drumtracking.TrackerProto.RetrieveRequest.deserializeBinaryFromReader(msg, reader);
624
+ };
625
+
626
+
627
+ /**
628
+ * Deserializes binary data (in protobuf wire format) from the
629
+ * given reader into the given message object.
630
+ * @param {!proto.Drumtracking.TrackerProto.RetrieveRequest} msg The message object to deserialize into.
631
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
632
+ * @return {!proto.Drumtracking.TrackerProto.RetrieveRequest}
633
+ */
634
+ proto.Drumtracking.TrackerProto.RetrieveRequest.deserializeBinaryFromReader = function(msg, reader) {
635
+ while (reader.nextField()) {
636
+ if (reader.isEndGroup()) {
637
+ break;
638
+ }
639
+ var field = reader.getFieldNumber();
640
+ switch (field) {
641
+ case 1:
642
+ var value = /** @type {number} */ (reader.readInt64());
643
+ msg.setId(value);
644
+ break;
645
+ default:
646
+ reader.skipField();
647
+ break;
648
+ }
649
+ }
650
+ return msg;
651
+ };
652
+
653
+
654
+ /**
655
+ * Serializes the message to binary data (in protobuf wire format).
656
+ * @return {!Uint8Array}
657
+ */
658
+ proto.Drumtracking.TrackerProto.RetrieveRequest.prototype.serializeBinary = function() {
659
+ var writer = new jspb.BinaryWriter();
660
+ proto.Drumtracking.TrackerProto.RetrieveRequest.serializeBinaryToWriter(this, writer);
661
+ return writer.getResultBuffer();
662
+ };
663
+
664
+
665
+ /**
666
+ * Serializes the given message to binary data (in protobuf wire
667
+ * format), writing to the given BinaryWriter.
668
+ * @param {!proto.Drumtracking.TrackerProto.RetrieveRequest} message
669
+ * @param {!jspb.BinaryWriter} writer
670
+ * @suppress {unusedLocalVariables} f is only used for nested messages
671
+ */
672
+ proto.Drumtracking.TrackerProto.RetrieveRequest.serializeBinaryToWriter = function(message, writer) {
673
+ var f = undefined;
674
+ f = message.getId();
675
+ if (f !== 0) {
676
+ writer.writeInt64(
677
+ 1,
678
+ f
679
+ );
680
+ }
681
+ };
682
+
683
+
684
+ /**
685
+ * optional int64 id = 1;
686
+ * @return {number}
687
+ */
688
+ proto.Drumtracking.TrackerProto.RetrieveRequest.prototype.getId = function() {
689
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
690
+ };
691
+
692
+
693
+ /**
694
+ * @param {number} value
695
+ * @return {!proto.Drumtracking.TrackerProto.RetrieveRequest} returns this
696
+ */
697
+ proto.Drumtracking.TrackerProto.RetrieveRequest.prototype.setId = function(value) {
698
+ return jspb.Message.setProto3IntField(this, 1, value);
699
+ };
700
+
701
+
702
+
703
+
704
+
705
+ if (jspb.Message.GENERATE_TO_OBJECT) {
706
+ /**
707
+ * Creates an object representation of this proto.
708
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
709
+ * Optional fields that are not set will be set to undefined.
710
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
711
+ * For the list of reserved names please see:
712
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
713
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
714
+ * JSPB instance for transitional soy proto support:
715
+ * http://goto/soy-param-migration
716
+ * @return {!Object}
717
+ */
718
+ proto.Drumtracking.TrackerProto.UpdateRequest.prototype.toObject = function(opt_includeInstance) {
719
+ return proto.Drumtracking.TrackerProto.UpdateRequest.toObject(opt_includeInstance, this);
720
+ };
721
+
722
+
723
+ /**
724
+ * Static version of the {@see toObject} method.
725
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
726
+ * the JSPB instance for transitional soy proto support:
727
+ * http://goto/soy-param-migration
728
+ * @param {!proto.Drumtracking.TrackerProto.UpdateRequest} msg The msg instance to transform.
729
+ * @return {!Object}
730
+ * @suppress {unusedLocalVariables} f is only used for nested messages
731
+ */
732
+ proto.Drumtracking.TrackerProto.UpdateRequest.toObject = function(includeInstance, msg) {
733
+ var f, obj = {
734
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
735
+ drumNumber: jspb.Message.getFieldWithDefault(msg, 2, 0)
736
+ };
737
+
738
+ if (includeInstance) {
739
+ obj.$jspbMessageInstance = msg;
740
+ }
741
+ return obj;
742
+ };
743
+ }
744
+
745
+
746
+ /**
747
+ * Deserializes binary data (in protobuf wire format).
748
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
749
+ * @return {!proto.Drumtracking.TrackerProto.UpdateRequest}
750
+ */
751
+ proto.Drumtracking.TrackerProto.UpdateRequest.deserializeBinary = function(bytes) {
752
+ var reader = new jspb.BinaryReader(bytes);
753
+ var msg = new proto.Drumtracking.TrackerProto.UpdateRequest;
754
+ return proto.Drumtracking.TrackerProto.UpdateRequest.deserializeBinaryFromReader(msg, reader);
755
+ };
756
+
757
+
758
+ /**
759
+ * Deserializes binary data (in protobuf wire format) from the
760
+ * given reader into the given message object.
761
+ * @param {!proto.Drumtracking.TrackerProto.UpdateRequest} msg The message object to deserialize into.
762
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
763
+ * @return {!proto.Drumtracking.TrackerProto.UpdateRequest}
764
+ */
765
+ proto.Drumtracking.TrackerProto.UpdateRequest.deserializeBinaryFromReader = function(msg, reader) {
766
+ while (reader.nextField()) {
767
+ if (reader.isEndGroup()) {
768
+ break;
769
+ }
770
+ var field = reader.getFieldNumber();
771
+ switch (field) {
772
+ case 1:
773
+ var value = /** @type {number} */ (reader.readInt64());
774
+ msg.setId(value);
775
+ break;
776
+ case 2:
777
+ var value = /** @type {number} */ (reader.readInt64());
778
+ msg.setDrumNumber(value);
779
+ break;
780
+ default:
781
+ reader.skipField();
782
+ break;
783
+ }
784
+ }
785
+ return msg;
786
+ };
787
+
788
+
789
+ /**
790
+ * Serializes the message to binary data (in protobuf wire format).
791
+ * @return {!Uint8Array}
792
+ */
793
+ proto.Drumtracking.TrackerProto.UpdateRequest.prototype.serializeBinary = function() {
794
+ var writer = new jspb.BinaryWriter();
795
+ proto.Drumtracking.TrackerProto.UpdateRequest.serializeBinaryToWriter(this, writer);
796
+ return writer.getResultBuffer();
797
+ };
798
+
799
+
800
+ /**
801
+ * Serializes the given message to binary data (in protobuf wire
802
+ * format), writing to the given BinaryWriter.
803
+ * @param {!proto.Drumtracking.TrackerProto.UpdateRequest} message
804
+ * @param {!jspb.BinaryWriter} writer
805
+ * @suppress {unusedLocalVariables} f is only used for nested messages
806
+ */
807
+ proto.Drumtracking.TrackerProto.UpdateRequest.serializeBinaryToWriter = function(message, writer) {
808
+ var f = undefined;
809
+ f = message.getId();
810
+ if (f !== 0) {
811
+ writer.writeInt64(
812
+ 1,
813
+ f
814
+ );
815
+ }
816
+ f = message.getDrumNumber();
817
+ if (f !== 0) {
818
+ writer.writeInt64(
819
+ 2,
820
+ f
821
+ );
822
+ }
823
+ };
824
+
825
+
826
+ /**
827
+ * optional int64 id = 1;
828
+ * @return {number}
829
+ */
830
+ proto.Drumtracking.TrackerProto.UpdateRequest.prototype.getId = function() {
831
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
832
+ };
833
+
834
+
835
+ /**
836
+ * @param {number} value
837
+ * @return {!proto.Drumtracking.TrackerProto.UpdateRequest} returns this
838
+ */
839
+ proto.Drumtracking.TrackerProto.UpdateRequest.prototype.setId = function(value) {
840
+ return jspb.Message.setProto3IntField(this, 1, value);
841
+ };
842
+
843
+
844
+ /**
845
+ * optional int64 drum_number = 2;
846
+ * @return {number}
847
+ */
848
+ proto.Drumtracking.TrackerProto.UpdateRequest.prototype.getDrumNumber = function() {
849
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
850
+ };
851
+
852
+
853
+ /**
854
+ * @param {number} value
855
+ * @return {!proto.Drumtracking.TrackerProto.UpdateRequest} returns this
856
+ */
857
+ proto.Drumtracking.TrackerProto.UpdateRequest.prototype.setDrumNumber = function(value) {
858
+ return jspb.Message.setProto3IntField(this, 2, value);
859
+ };
860
+
861
+
862
+
863
+
864
+
865
+ if (jspb.Message.GENERATE_TO_OBJECT) {
866
+ /**
867
+ * Creates an object representation of this proto.
868
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
869
+ * Optional fields that are not set will be set to undefined.
870
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
871
+ * For the list of reserved names please see:
872
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
873
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
874
+ * JSPB instance for transitional soy proto support:
875
+ * http://goto/soy-param-migration
876
+ * @return {!Object}
877
+ */
878
+ proto.Drumtracking.TrackerProto.DeleteRequest.prototype.toObject = function(opt_includeInstance) {
879
+ return proto.Drumtracking.TrackerProto.DeleteRequest.toObject(opt_includeInstance, this);
880
+ };
881
+
882
+
883
+ /**
884
+ * Static version of the {@see toObject} method.
885
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
886
+ * the JSPB instance for transitional soy proto support:
887
+ * http://goto/soy-param-migration
888
+ * @param {!proto.Drumtracking.TrackerProto.DeleteRequest} msg The msg instance to transform.
889
+ * @return {!Object}
890
+ * @suppress {unusedLocalVariables} f is only used for nested messages
891
+ */
892
+ proto.Drumtracking.TrackerProto.DeleteRequest.toObject = function(includeInstance, msg) {
893
+ var f, obj = {
894
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
895
+ };
896
+
897
+ if (includeInstance) {
898
+ obj.$jspbMessageInstance = msg;
899
+ }
900
+ return obj;
901
+ };
902
+ }
903
+
904
+
905
+ /**
906
+ * Deserializes binary data (in protobuf wire format).
907
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
908
+ * @return {!proto.Drumtracking.TrackerProto.DeleteRequest}
909
+ */
910
+ proto.Drumtracking.TrackerProto.DeleteRequest.deserializeBinary = function(bytes) {
911
+ var reader = new jspb.BinaryReader(bytes);
912
+ var msg = new proto.Drumtracking.TrackerProto.DeleteRequest;
913
+ return proto.Drumtracking.TrackerProto.DeleteRequest.deserializeBinaryFromReader(msg, reader);
914
+ };
915
+
916
+
917
+ /**
918
+ * Deserializes binary data (in protobuf wire format) from the
919
+ * given reader into the given message object.
920
+ * @param {!proto.Drumtracking.TrackerProto.DeleteRequest} msg The message object to deserialize into.
921
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
922
+ * @return {!proto.Drumtracking.TrackerProto.DeleteRequest}
923
+ */
924
+ proto.Drumtracking.TrackerProto.DeleteRequest.deserializeBinaryFromReader = function(msg, reader) {
925
+ while (reader.nextField()) {
926
+ if (reader.isEndGroup()) {
927
+ break;
928
+ }
929
+ var field = reader.getFieldNumber();
930
+ switch (field) {
931
+ case 1:
932
+ var value = /** @type {number} */ (reader.readInt64());
933
+ msg.setId(value);
934
+ break;
935
+ default:
936
+ reader.skipField();
937
+ break;
938
+ }
939
+ }
940
+ return msg;
941
+ };
942
+
943
+
944
+ /**
945
+ * Serializes the message to binary data (in protobuf wire format).
946
+ * @return {!Uint8Array}
947
+ */
948
+ proto.Drumtracking.TrackerProto.DeleteRequest.prototype.serializeBinary = function() {
949
+ var writer = new jspb.BinaryWriter();
950
+ proto.Drumtracking.TrackerProto.DeleteRequest.serializeBinaryToWriter(this, writer);
951
+ return writer.getResultBuffer();
952
+ };
953
+
954
+
955
+ /**
956
+ * Serializes the given message to binary data (in protobuf wire
957
+ * format), writing to the given BinaryWriter.
958
+ * @param {!proto.Drumtracking.TrackerProto.DeleteRequest} message
959
+ * @param {!jspb.BinaryWriter} writer
960
+ * @suppress {unusedLocalVariables} f is only used for nested messages
961
+ */
962
+ proto.Drumtracking.TrackerProto.DeleteRequest.serializeBinaryToWriter = function(message, writer) {
963
+ var f = undefined;
964
+ f = message.getId();
965
+ if (f !== 0) {
966
+ writer.writeInt64(
967
+ 1,
968
+ f
969
+ );
970
+ }
971
+ };
972
+
973
+
974
+ /**
975
+ * optional int64 id = 1;
976
+ * @return {number}
977
+ */
978
+ proto.Drumtracking.TrackerProto.DeleteRequest.prototype.getId = function() {
979
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
980
+ };
981
+
982
+
983
+ /**
984
+ * @param {number} value
985
+ * @return {!proto.Drumtracking.TrackerProto.DeleteRequest} returns this
986
+ */
987
+ proto.Drumtracking.TrackerProto.DeleteRequest.prototype.setId = function(value) {
988
+ return jspb.Message.setProto3IntField(this, 1, value);
989
+ };
990
+
991
+
992
+
993
+
994
+
995
+ if (jspb.Message.GENERATE_TO_OBJECT) {
996
+ /**
997
+ * Creates an object representation of this proto.
998
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
999
+ * Optional fields that are not set will be set to undefined.
1000
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1001
+ * For the list of reserved names please see:
1002
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1003
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1004
+ * JSPB instance for transitional soy proto support:
1005
+ * http://goto/soy-param-migration
1006
+ * @return {!Object}
1007
+ */
1008
+ proto.Drumtracking.TrackerProto.DeleteReply.prototype.toObject = function(opt_includeInstance) {
1009
+ return proto.Drumtracking.TrackerProto.DeleteReply.toObject(opt_includeInstance, this);
1010
+ };
1011
+
1012
+
1013
+ /**
1014
+ * Static version of the {@see toObject} method.
1015
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1016
+ * the JSPB instance for transitional soy proto support:
1017
+ * http://goto/soy-param-migration
1018
+ * @param {!proto.Drumtracking.TrackerProto.DeleteReply} msg The msg instance to transform.
1019
+ * @return {!Object}
1020
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1021
+ */
1022
+ proto.Drumtracking.TrackerProto.DeleteReply.toObject = function(includeInstance, msg) {
1023
+ var f, obj = {
1024
+
1025
+ };
1026
+
1027
+ if (includeInstance) {
1028
+ obj.$jspbMessageInstance = msg;
1029
+ }
1030
+ return obj;
1031
+ };
1032
+ }
1033
+
1034
+
1035
+ /**
1036
+ * Deserializes binary data (in protobuf wire format).
1037
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1038
+ * @return {!proto.Drumtracking.TrackerProto.DeleteReply}
1039
+ */
1040
+ proto.Drumtracking.TrackerProto.DeleteReply.deserializeBinary = function(bytes) {
1041
+ var reader = new jspb.BinaryReader(bytes);
1042
+ var msg = new proto.Drumtracking.TrackerProto.DeleteReply;
1043
+ return proto.Drumtracking.TrackerProto.DeleteReply.deserializeBinaryFromReader(msg, reader);
1044
+ };
1045
+
1046
+
1047
+ /**
1048
+ * Deserializes binary data (in protobuf wire format) from the
1049
+ * given reader into the given message object.
1050
+ * @param {!proto.Drumtracking.TrackerProto.DeleteReply} msg The message object to deserialize into.
1051
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1052
+ * @return {!proto.Drumtracking.TrackerProto.DeleteReply}
1053
+ */
1054
+ proto.Drumtracking.TrackerProto.DeleteReply.deserializeBinaryFromReader = function(msg, reader) {
1055
+ while (reader.nextField()) {
1056
+ if (reader.isEndGroup()) {
1057
+ break;
1058
+ }
1059
+ var field = reader.getFieldNumber();
1060
+ switch (field) {
1061
+ default:
1062
+ reader.skipField();
1063
+ break;
1064
+ }
1065
+ }
1066
+ return msg;
1067
+ };
1068
+
1069
+
1070
+ /**
1071
+ * Serializes the message to binary data (in protobuf wire format).
1072
+ * @return {!Uint8Array}
1073
+ */
1074
+ proto.Drumtracking.TrackerProto.DeleteReply.prototype.serializeBinary = function() {
1075
+ var writer = new jspb.BinaryWriter();
1076
+ proto.Drumtracking.TrackerProto.DeleteReply.serializeBinaryToWriter(this, writer);
1077
+ return writer.getResultBuffer();
1078
+ };
1079
+
1080
+
1081
+ /**
1082
+ * Serializes the given message to binary data (in protobuf wire
1083
+ * format), writing to the given BinaryWriter.
1084
+ * @param {!proto.Drumtracking.TrackerProto.DeleteReply} message
1085
+ * @param {!jspb.BinaryWriter} writer
1086
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1087
+ */
1088
+ proto.Drumtracking.TrackerProto.DeleteReply.serializeBinaryToWriter = function(message, writer) {
1089
+ var f = undefined;
1090
+ };
1091
+
1092
+
1093
+
1094
+
1095
+
1096
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1097
+ /**
1098
+ * Creates an object representation of this proto.
1099
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1100
+ * Optional fields that are not set will be set to undefined.
1101
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1102
+ * For the list of reserved names please see:
1103
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1104
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1105
+ * JSPB instance for transitional soy proto support:
1106
+ * http://goto/soy-param-migration
1107
+ * @return {!Object}
1108
+ */
1109
+ proto.Drumtracking.TrackerProto.SearchRequest.prototype.toObject = function(opt_includeInstance) {
1110
+ return proto.Drumtracking.TrackerProto.SearchRequest.toObject(opt_includeInstance, this);
1111
+ };
1112
+
1113
+
1114
+ /**
1115
+ * Static version of the {@see toObject} method.
1116
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1117
+ * the JSPB instance for transitional soy proto support:
1118
+ * http://goto/soy-param-migration
1119
+ * @param {!proto.Drumtracking.TrackerProto.SearchRequest} msg The msg instance to transform.
1120
+ * @return {!Object}
1121
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1122
+ */
1123
+ proto.Drumtracking.TrackerProto.SearchRequest.toObject = function(includeInstance, msg) {
1124
+ var f, obj = {
1125
+ filters: (f = msg.getFilters()) && proto.Drumtracking.TrackerProto.TrackerFilters.toObject(includeInstance, f),
1126
+ page: jspb.Message.getFieldWithDefault(msg, 2, 0),
1127
+ count: jspb.Message.getFieldWithDefault(msg, 3, 0)
1128
+ };
1129
+
1130
+ if (includeInstance) {
1131
+ obj.$jspbMessageInstance = msg;
1132
+ }
1133
+ return obj;
1134
+ };
1135
+ }
1136
+
1137
+
1138
+ /**
1139
+ * Deserializes binary data (in protobuf wire format).
1140
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1141
+ * @return {!proto.Drumtracking.TrackerProto.SearchRequest}
1142
+ */
1143
+ proto.Drumtracking.TrackerProto.SearchRequest.deserializeBinary = function(bytes) {
1144
+ var reader = new jspb.BinaryReader(bytes);
1145
+ var msg = new proto.Drumtracking.TrackerProto.SearchRequest;
1146
+ return proto.Drumtracking.TrackerProto.SearchRequest.deserializeBinaryFromReader(msg, reader);
1147
+ };
1148
+
1149
+
1150
+ /**
1151
+ * Deserializes binary data (in protobuf wire format) from the
1152
+ * given reader into the given message object.
1153
+ * @param {!proto.Drumtracking.TrackerProto.SearchRequest} msg The message object to deserialize into.
1154
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1155
+ * @return {!proto.Drumtracking.TrackerProto.SearchRequest}
1156
+ */
1157
+ proto.Drumtracking.TrackerProto.SearchRequest.deserializeBinaryFromReader = function(msg, reader) {
1158
+ while (reader.nextField()) {
1159
+ if (reader.isEndGroup()) {
1160
+ break;
1161
+ }
1162
+ var field = reader.getFieldNumber();
1163
+ switch (field) {
1164
+ case 1:
1165
+ var value = new proto.Drumtracking.TrackerProto.TrackerFilters;
1166
+ reader.readMessage(value,proto.Drumtracking.TrackerProto.TrackerFilters.deserializeBinaryFromReader);
1167
+ msg.setFilters(value);
1168
+ break;
1169
+ case 2:
1170
+ var value = /** @type {number} */ (reader.readInt32());
1171
+ msg.setPage(value);
1172
+ break;
1173
+ case 3:
1174
+ var value = /** @type {number} */ (reader.readInt32());
1175
+ msg.setCount(value);
1176
+ break;
1177
+ default:
1178
+ reader.skipField();
1179
+ break;
1180
+ }
1181
+ }
1182
+ return msg;
1183
+ };
1184
+
1185
+
1186
+ /**
1187
+ * Serializes the message to binary data (in protobuf wire format).
1188
+ * @return {!Uint8Array}
1189
+ */
1190
+ proto.Drumtracking.TrackerProto.SearchRequest.prototype.serializeBinary = function() {
1191
+ var writer = new jspb.BinaryWriter();
1192
+ proto.Drumtracking.TrackerProto.SearchRequest.serializeBinaryToWriter(this, writer);
1193
+ return writer.getResultBuffer();
1194
+ };
1195
+
1196
+
1197
+ /**
1198
+ * Serializes the given message to binary data (in protobuf wire
1199
+ * format), writing to the given BinaryWriter.
1200
+ * @param {!proto.Drumtracking.TrackerProto.SearchRequest} message
1201
+ * @param {!jspb.BinaryWriter} writer
1202
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1203
+ */
1204
+ proto.Drumtracking.TrackerProto.SearchRequest.serializeBinaryToWriter = function(message, writer) {
1205
+ var f = undefined;
1206
+ f = message.getFilters();
1207
+ if (f != null) {
1208
+ writer.writeMessage(
1209
+ 1,
1210
+ f,
1211
+ proto.Drumtracking.TrackerProto.TrackerFilters.serializeBinaryToWriter
1212
+ );
1213
+ }
1214
+ f = message.getPage();
1215
+ if (f !== 0) {
1216
+ writer.writeInt32(
1217
+ 2,
1218
+ f
1219
+ );
1220
+ }
1221
+ f = message.getCount();
1222
+ if (f !== 0) {
1223
+ writer.writeInt32(
1224
+ 3,
1225
+ f
1226
+ );
1227
+ }
1228
+ };
1229
+
1230
+
1231
+ /**
1232
+ * optional TrackerFilters filters = 1;
1233
+ * @return {?proto.Drumtracking.TrackerProto.TrackerFilters}
1234
+ */
1235
+ proto.Drumtracking.TrackerProto.SearchRequest.prototype.getFilters = function() {
1236
+ return /** @type{?proto.Drumtracking.TrackerProto.TrackerFilters} */ (
1237
+ jspb.Message.getWrapperField(this, proto.Drumtracking.TrackerProto.TrackerFilters, 1));
1238
+ };
1239
+
1240
+
1241
+ /**
1242
+ * @param {?proto.Drumtracking.TrackerProto.TrackerFilters|undefined} value
1243
+ * @return {!proto.Drumtracking.TrackerProto.SearchRequest} returns this
1244
+ */
1245
+ proto.Drumtracking.TrackerProto.SearchRequest.prototype.setFilters = function(value) {
1246
+ return jspb.Message.setWrapperField(this, 1, value);
1247
+ };
1248
+
1249
+
1250
+ /**
1251
+ * Clears the message field making it undefined.
1252
+ * @return {!proto.Drumtracking.TrackerProto.SearchRequest} returns this
1253
+ */
1254
+ proto.Drumtracking.TrackerProto.SearchRequest.prototype.clearFilters = function() {
1255
+ return this.setFilters(undefined);
1256
+ };
1257
+
1258
+
1259
+ /**
1260
+ * Returns whether this field is set.
1261
+ * @return {boolean}
1262
+ */
1263
+ proto.Drumtracking.TrackerProto.SearchRequest.prototype.hasFilters = function() {
1264
+ return jspb.Message.getField(this, 1) != null;
1265
+ };
1266
+
1267
+
1268
+ /**
1269
+ * optional int32 page = 2;
1270
+ * @return {number}
1271
+ */
1272
+ proto.Drumtracking.TrackerProto.SearchRequest.prototype.getPage = function() {
1273
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1274
+ };
1275
+
1276
+
1277
+ /**
1278
+ * @param {number} value
1279
+ * @return {!proto.Drumtracking.TrackerProto.SearchRequest} returns this
1280
+ */
1281
+ proto.Drumtracking.TrackerProto.SearchRequest.prototype.setPage = function(value) {
1282
+ return jspb.Message.setProto3IntField(this, 2, value);
1283
+ };
1284
+
1285
+
1286
+ /**
1287
+ * optional int32 count = 3;
1288
+ * @return {number}
1289
+ */
1290
+ proto.Drumtracking.TrackerProto.SearchRequest.prototype.getCount = function() {
1291
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1292
+ };
1293
+
1294
+
1295
+ /**
1296
+ * @param {number} value
1297
+ * @return {!proto.Drumtracking.TrackerProto.SearchRequest} returns this
1298
+ */
1299
+ proto.Drumtracking.TrackerProto.SearchRequest.prototype.setCount = function(value) {
1300
+ return jspb.Message.setProto3IntField(this, 3, value);
1301
+ };
1302
+
1303
+
1304
+
1305
+ /**
1306
+ * List of repeated fields within this message type.
1307
+ * @private {!Array<number>}
1308
+ * @const
1309
+ */
1310
+ proto.Drumtracking.TrackerProto.SearchReply.repeatedFields_ = [1];
1311
+
1312
+
1313
+
1314
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1315
+ /**
1316
+ * Creates an object representation of this proto.
1317
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1318
+ * Optional fields that are not set will be set to undefined.
1319
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1320
+ * For the list of reserved names please see:
1321
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1322
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1323
+ * JSPB instance for transitional soy proto support:
1324
+ * http://goto/soy-param-migration
1325
+ * @return {!Object}
1326
+ */
1327
+ proto.Drumtracking.TrackerProto.SearchReply.prototype.toObject = function(opt_includeInstance) {
1328
+ return proto.Drumtracking.TrackerProto.SearchReply.toObject(opt_includeInstance, this);
1329
+ };
1330
+
1331
+
1332
+ /**
1333
+ * Static version of the {@see toObject} method.
1334
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1335
+ * the JSPB instance for transitional soy proto support:
1336
+ * http://goto/soy-param-migration
1337
+ * @param {!proto.Drumtracking.TrackerProto.SearchReply} msg The msg instance to transform.
1338
+ * @return {!Object}
1339
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1340
+ */
1341
+ proto.Drumtracking.TrackerProto.SearchReply.toObject = function(includeInstance, msg) {
1342
+ var f, obj = {
1343
+ trackersList: jspb.Message.toObjectList(msg.getTrackersList(),
1344
+ proto.Drumtracking.TrackerProto.toObject, includeInstance),
1345
+ pagination: (f = msg.getPagination()) && platform_pagination_pb.PaginationProto.toObject(includeInstance, f)
1346
+ };
1347
+
1348
+ if (includeInstance) {
1349
+ obj.$jspbMessageInstance = msg;
1350
+ }
1351
+ return obj;
1352
+ };
1353
+ }
1354
+
1355
+
1356
+ /**
1357
+ * Deserializes binary data (in protobuf wire format).
1358
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1359
+ * @return {!proto.Drumtracking.TrackerProto.SearchReply}
1360
+ */
1361
+ proto.Drumtracking.TrackerProto.SearchReply.deserializeBinary = function(bytes) {
1362
+ var reader = new jspb.BinaryReader(bytes);
1363
+ var msg = new proto.Drumtracking.TrackerProto.SearchReply;
1364
+ return proto.Drumtracking.TrackerProto.SearchReply.deserializeBinaryFromReader(msg, reader);
1365
+ };
1366
+
1367
+
1368
+ /**
1369
+ * Deserializes binary data (in protobuf wire format) from the
1370
+ * given reader into the given message object.
1371
+ * @param {!proto.Drumtracking.TrackerProto.SearchReply} msg The message object to deserialize into.
1372
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1373
+ * @return {!proto.Drumtracking.TrackerProto.SearchReply}
1374
+ */
1375
+ proto.Drumtracking.TrackerProto.SearchReply.deserializeBinaryFromReader = function(msg, reader) {
1376
+ while (reader.nextField()) {
1377
+ if (reader.isEndGroup()) {
1378
+ break;
1379
+ }
1380
+ var field = reader.getFieldNumber();
1381
+ switch (field) {
1382
+ case 1:
1383
+ var value = new proto.Drumtracking.TrackerProto;
1384
+ reader.readMessage(value,proto.Drumtracking.TrackerProto.deserializeBinaryFromReader);
1385
+ msg.addTrackers(value);
1386
+ break;
1387
+ case 2:
1388
+ var value = new platform_pagination_pb.PaginationProto;
1389
+ reader.readMessage(value,platform_pagination_pb.PaginationProto.deserializeBinaryFromReader);
1390
+ msg.setPagination(value);
1391
+ break;
1392
+ default:
1393
+ reader.skipField();
1394
+ break;
1395
+ }
1396
+ }
1397
+ return msg;
1398
+ };
1399
+
1400
+
1401
+ /**
1402
+ * Serializes the message to binary data (in protobuf wire format).
1403
+ * @return {!Uint8Array}
1404
+ */
1405
+ proto.Drumtracking.TrackerProto.SearchReply.prototype.serializeBinary = function() {
1406
+ var writer = new jspb.BinaryWriter();
1407
+ proto.Drumtracking.TrackerProto.SearchReply.serializeBinaryToWriter(this, writer);
1408
+ return writer.getResultBuffer();
1409
+ };
1410
+
1411
+
1412
+ /**
1413
+ * Serializes the given message to binary data (in protobuf wire
1414
+ * format), writing to the given BinaryWriter.
1415
+ * @param {!proto.Drumtracking.TrackerProto.SearchReply} message
1416
+ * @param {!jspb.BinaryWriter} writer
1417
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1418
+ */
1419
+ proto.Drumtracking.TrackerProto.SearchReply.serializeBinaryToWriter = function(message, writer) {
1420
+ var f = undefined;
1421
+ f = message.getTrackersList();
1422
+ if (f.length > 0) {
1423
+ writer.writeRepeatedMessage(
1424
+ 1,
1425
+ f,
1426
+ proto.Drumtracking.TrackerProto.serializeBinaryToWriter
1427
+ );
1428
+ }
1429
+ f = message.getPagination();
1430
+ if (f != null) {
1431
+ writer.writeMessage(
1432
+ 2,
1433
+ f,
1434
+ platform_pagination_pb.PaginationProto.serializeBinaryToWriter
1435
+ );
1436
+ }
1437
+ };
1438
+
1439
+
1440
+ /**
1441
+ * repeated TrackerProto trackers = 1;
1442
+ * @return {!Array<!proto.Drumtracking.TrackerProto>}
1443
+ */
1444
+ proto.Drumtracking.TrackerProto.SearchReply.prototype.getTrackersList = function() {
1445
+ return /** @type{!Array<!proto.Drumtracking.TrackerProto>} */ (
1446
+ jspb.Message.getRepeatedWrapperField(this, proto.Drumtracking.TrackerProto, 1));
1447
+ };
1448
+
1449
+
1450
+ /**
1451
+ * @param {!Array<!proto.Drumtracking.TrackerProto>} value
1452
+ * @return {!proto.Drumtracking.TrackerProto.SearchReply} returns this
1453
+ */
1454
+ proto.Drumtracking.TrackerProto.SearchReply.prototype.setTrackersList = function(value) {
1455
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1456
+ };
1457
+
1458
+
1459
+ /**
1460
+ * @param {!proto.Drumtracking.TrackerProto=} opt_value
1461
+ * @param {number=} opt_index
1462
+ * @return {!proto.Drumtracking.TrackerProto}
1463
+ */
1464
+ proto.Drumtracking.TrackerProto.SearchReply.prototype.addTrackers = function(opt_value, opt_index) {
1465
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Drumtracking.TrackerProto, opt_index);
1466
+ };
1467
+
1468
+
1469
+ /**
1470
+ * Clears the list making it empty but non-null.
1471
+ * @return {!proto.Drumtracking.TrackerProto.SearchReply} returns this
1472
+ */
1473
+ proto.Drumtracking.TrackerProto.SearchReply.prototype.clearTrackersList = function() {
1474
+ return this.setTrackersList([]);
1475
+ };
1476
+
1477
+
1478
+ /**
1479
+ * optional Platform.PaginationProto pagination = 2;
1480
+ * @return {?proto.Platform.PaginationProto}
1481
+ */
1482
+ proto.Drumtracking.TrackerProto.SearchReply.prototype.getPagination = function() {
1483
+ return /** @type{?proto.Platform.PaginationProto} */ (
1484
+ jspb.Message.getWrapperField(this, platform_pagination_pb.PaginationProto, 2));
1485
+ };
1486
+
1487
+
1488
+ /**
1489
+ * @param {?proto.Platform.PaginationProto|undefined} value
1490
+ * @return {!proto.Drumtracking.TrackerProto.SearchReply} returns this
1491
+ */
1492
+ proto.Drumtracking.TrackerProto.SearchReply.prototype.setPagination = function(value) {
1493
+ return jspb.Message.setWrapperField(this, 2, value);
1494
+ };
1495
+
1496
+
1497
+ /**
1498
+ * Clears the message field making it undefined.
1499
+ * @return {!proto.Drumtracking.TrackerProto.SearchReply} returns this
1500
+ */
1501
+ proto.Drumtracking.TrackerProto.SearchReply.prototype.clearPagination = function() {
1502
+ return this.setPagination(undefined);
1503
+ };
1504
+
1505
+
1506
+ /**
1507
+ * Returns whether this field is set.
1508
+ * @return {boolean}
1509
+ */
1510
+ proto.Drumtracking.TrackerProto.SearchReply.prototype.hasPagination = function() {
1511
+ return jspb.Message.getField(this, 2) != null;
1512
+ };
1513
+
1514
+
1515
+
1516
+
1517
+
1518
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1519
+ /**
1520
+ * Creates an object representation of this proto.
1521
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1522
+ * Optional fields that are not set will be set to undefined.
1523
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1524
+ * For the list of reserved names please see:
1525
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1526
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1527
+ * JSPB instance for transitional soy proto support:
1528
+ * http://goto/soy-param-migration
1529
+ * @return {!Object}
1530
+ */
1531
+ proto.Drumtracking.TrackerProto.TrackerFilters.prototype.toObject = function(opt_includeInstance) {
1532
+ return proto.Drumtracking.TrackerProto.TrackerFilters.toObject(opt_includeInstance, this);
1533
+ };
1534
+
1535
+
1536
+ /**
1537
+ * Static version of the {@see toObject} method.
1538
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1539
+ * the JSPB instance for transitional soy proto support:
1540
+ * http://goto/soy-param-migration
1541
+ * @param {!proto.Drumtracking.TrackerProto.TrackerFilters} msg The msg instance to transform.
1542
+ * @return {!Object}
1543
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1544
+ */
1545
+ proto.Drumtracking.TrackerProto.TrackerFilters.toObject = function(includeInstance, msg) {
1546
+ var f, obj = {
1547
+ search: jspb.Message.getFieldWithDefault(msg, 1, "")
1548
+ };
1549
+
1550
+ if (includeInstance) {
1551
+ obj.$jspbMessageInstance = msg;
1552
+ }
1553
+ return obj;
1554
+ };
1555
+ }
1556
+
1557
+
1558
+ /**
1559
+ * Deserializes binary data (in protobuf wire format).
1560
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1561
+ * @return {!proto.Drumtracking.TrackerProto.TrackerFilters}
1562
+ */
1563
+ proto.Drumtracking.TrackerProto.TrackerFilters.deserializeBinary = function(bytes) {
1564
+ var reader = new jspb.BinaryReader(bytes);
1565
+ var msg = new proto.Drumtracking.TrackerProto.TrackerFilters;
1566
+ return proto.Drumtracking.TrackerProto.TrackerFilters.deserializeBinaryFromReader(msg, reader);
1567
+ };
1568
+
1569
+
1570
+ /**
1571
+ * Deserializes binary data (in protobuf wire format) from the
1572
+ * given reader into the given message object.
1573
+ * @param {!proto.Drumtracking.TrackerProto.TrackerFilters} msg The message object to deserialize into.
1574
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1575
+ * @return {!proto.Drumtracking.TrackerProto.TrackerFilters}
1576
+ */
1577
+ proto.Drumtracking.TrackerProto.TrackerFilters.deserializeBinaryFromReader = function(msg, reader) {
1578
+ while (reader.nextField()) {
1579
+ if (reader.isEndGroup()) {
1580
+ break;
1581
+ }
1582
+ var field = reader.getFieldNumber();
1583
+ switch (field) {
1584
+ case 1:
1585
+ var value = /** @type {string} */ (reader.readString());
1586
+ msg.setSearch(value);
1587
+ break;
1588
+ default:
1589
+ reader.skipField();
1590
+ break;
1591
+ }
1592
+ }
1593
+ return msg;
1594
+ };
1595
+
1596
+
1597
+ /**
1598
+ * Serializes the message to binary data (in protobuf wire format).
1599
+ * @return {!Uint8Array}
1600
+ */
1601
+ proto.Drumtracking.TrackerProto.TrackerFilters.prototype.serializeBinary = function() {
1602
+ var writer = new jspb.BinaryWriter();
1603
+ proto.Drumtracking.TrackerProto.TrackerFilters.serializeBinaryToWriter(this, writer);
1604
+ return writer.getResultBuffer();
1605
+ };
1606
+
1607
+
1608
+ /**
1609
+ * Serializes the given message to binary data (in protobuf wire
1610
+ * format), writing to the given BinaryWriter.
1611
+ * @param {!proto.Drumtracking.TrackerProto.TrackerFilters} message
1612
+ * @param {!jspb.BinaryWriter} writer
1613
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1614
+ */
1615
+ proto.Drumtracking.TrackerProto.TrackerFilters.serializeBinaryToWriter = function(message, writer) {
1616
+ var f = undefined;
1617
+ f = message.getSearch();
1618
+ if (f.length > 0) {
1619
+ writer.writeString(
1620
+ 1,
1621
+ f
1622
+ );
1623
+ }
1624
+ };
1625
+
1626
+
1627
+ /**
1628
+ * optional string search = 1;
1629
+ * @return {string}
1630
+ */
1631
+ proto.Drumtracking.TrackerProto.TrackerFilters.prototype.getSearch = function() {
1632
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1633
+ };
1634
+
1635
+
1636
+ /**
1637
+ * @param {string} value
1638
+ * @return {!proto.Drumtracking.TrackerProto.TrackerFilters} returns this
1639
+ */
1640
+ proto.Drumtracking.TrackerProto.TrackerFilters.prototype.setSearch = function(value) {
1641
+ return jspb.Message.setProto3StringField(this, 1, value);
1642
+ };
1643
+
1644
+
1645
+ /**
1646
+ * optional int64 id = 1;
1647
+ * @return {number}
1648
+ */
1649
+ proto.Drumtracking.TrackerProto.prototype.getId = function() {
1650
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1651
+ };
1652
+
1653
+
1654
+ /**
1655
+ * @param {number} value
1656
+ * @return {!proto.Drumtracking.TrackerProto} returns this
1657
+ */
1658
+ proto.Drumtracking.TrackerProto.prototype.setId = function(value) {
1659
+ return jspb.Message.setProto3IntField(this, 1, value);
1660
+ };
1661
+
1662
+
1663
+ /**
1664
+ * optional int32 battery_voltage = 2;
1665
+ * @return {number}
1666
+ */
1667
+ proto.Drumtracking.TrackerProto.prototype.getBatteryVoltage = function() {
1668
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1669
+ };
1670
+
1671
+
1672
+ /**
1673
+ * @param {number} value
1674
+ * @return {!proto.Drumtracking.TrackerProto} returns this
1675
+ */
1676
+ proto.Drumtracking.TrackerProto.prototype.setBatteryVoltage = function(value) {
1677
+ return jspb.Message.setProto3IntField(this, 2, value);
1678
+ };
1679
+
1680
+
1681
+ /**
1682
+ * optional google.protobuf.Timestamp last_update = 3;
1683
+ * @return {?proto.google.protobuf.Timestamp}
1684
+ */
1685
+ proto.Drumtracking.TrackerProto.prototype.getLastUpdate = function() {
1686
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1687
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
1688
+ };
1689
+
1690
+
1691
+ /**
1692
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1693
+ * @return {!proto.Drumtracking.TrackerProto} returns this
1694
+ */
1695
+ proto.Drumtracking.TrackerProto.prototype.setLastUpdate = function(value) {
1696
+ return jspb.Message.setWrapperField(this, 3, value);
1697
+ };
1698
+
1699
+
1700
+ /**
1701
+ * Clears the message field making it undefined.
1702
+ * @return {!proto.Drumtracking.TrackerProto} returns this
1703
+ */
1704
+ proto.Drumtracking.TrackerProto.prototype.clearLastUpdate = function() {
1705
+ return this.setLastUpdate(undefined);
1706
+ };
1707
+
1708
+
1709
+ /**
1710
+ * Returns whether this field is set.
1711
+ * @return {boolean}
1712
+ */
1713
+ proto.Drumtracking.TrackerProto.prototype.hasLastUpdate = function() {
1714
+ return jspb.Message.getField(this, 3) != null;
1715
+ };
1716
+
1717
+
1718
+ /**
1719
+ * optional google.protobuf.Timestamp activation_date = 4;
1720
+ * @return {?proto.google.protobuf.Timestamp}
1721
+ */
1722
+ proto.Drumtracking.TrackerProto.prototype.getActivationDate = function() {
1723
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1724
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
1725
+ };
1726
+
1727
+
1728
+ /**
1729
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1730
+ * @return {!proto.Drumtracking.TrackerProto} returns this
1731
+ */
1732
+ proto.Drumtracking.TrackerProto.prototype.setActivationDate = function(value) {
1733
+ return jspb.Message.setWrapperField(this, 4, value);
1734
+ };
1735
+
1736
+
1737
+ /**
1738
+ * Clears the message field making it undefined.
1739
+ * @return {!proto.Drumtracking.TrackerProto} returns this
1740
+ */
1741
+ proto.Drumtracking.TrackerProto.prototype.clearActivationDate = function() {
1742
+ return this.setActivationDate(undefined);
1743
+ };
1744
+
1745
+
1746
+ /**
1747
+ * Returns whether this field is set.
1748
+ * @return {boolean}
1749
+ */
1750
+ proto.Drumtracking.TrackerProto.prototype.hasActivationDate = function() {
1751
+ return jspb.Message.getField(this, 4) != null;
1752
+ };
1753
+
1754
+
1755
+ /**
1756
+ * optional int32 rotations = 5;
1757
+ * @return {number}
1758
+ */
1759
+ proto.Drumtracking.TrackerProto.prototype.getRotations = function() {
1760
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
1761
+ };
1762
+
1763
+
1764
+ /**
1765
+ * @param {number} value
1766
+ * @return {!proto.Drumtracking.TrackerProto} returns this
1767
+ */
1768
+ proto.Drumtracking.TrackerProto.prototype.setRotations = function(value) {
1769
+ return jspb.Message.setProto3IntField(this, 5, value);
1770
+ };
1771
+
1772
+
1773
+ /**
1774
+ * optional bool deactivated = 6;
1775
+ * @return {boolean}
1776
+ */
1777
+ proto.Drumtracking.TrackerProto.prototype.getDeactivated = function() {
1778
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
1779
+ };
1780
+
1781
+
1782
+ /**
1783
+ * @param {boolean} value
1784
+ * @return {!proto.Drumtracking.TrackerProto} returns this
1785
+ */
1786
+ proto.Drumtracking.TrackerProto.prototype.setDeactivated = function(value) {
1787
+ return jspb.Message.setProto3BooleanField(this, 6, value);
1788
+ };
1789
+
1790
+
1791
+ /**
1792
+ * optional string deactivation_reason = 7;
1793
+ * @return {string}
1794
+ */
1795
+ proto.Drumtracking.TrackerProto.prototype.getDeactivationReason = function() {
1796
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1797
+ };
1798
+
1799
+
1800
+ /**
1801
+ * @param {string} value
1802
+ * @return {!proto.Drumtracking.TrackerProto} returns this
1803
+ */
1804
+ proto.Drumtracking.TrackerProto.prototype.setDeactivationReason = function(value) {
1805
+ return jspb.Message.setProto3StringField(this, 7, value);
1806
+ };
1807
+
1808
+
1809
+ /**
1810
+ * optional google.protobuf.Timestamp deactivation_date = 8;
1811
+ * @return {?proto.google.protobuf.Timestamp}
1812
+ */
1813
+ proto.Drumtracking.TrackerProto.prototype.getDeactivationDate = function() {
1814
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1815
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8));
1816
+ };
1817
+
1818
+
1819
+ /**
1820
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1821
+ * @return {!proto.Drumtracking.TrackerProto} returns this
1822
+ */
1823
+ proto.Drumtracking.TrackerProto.prototype.setDeactivationDate = function(value) {
1824
+ return jspb.Message.setWrapperField(this, 8, value);
1825
+ };
1826
+
1827
+
1828
+ /**
1829
+ * Clears the message field making it undefined.
1830
+ * @return {!proto.Drumtracking.TrackerProto} returns this
1831
+ */
1832
+ proto.Drumtracking.TrackerProto.prototype.clearDeactivationDate = function() {
1833
+ return this.setDeactivationDate(undefined);
1834
+ };
1835
+
1836
+
1837
+ /**
1838
+ * Returns whether this field is set.
1839
+ * @return {boolean}
1840
+ */
1841
+ proto.Drumtracking.TrackerProto.prototype.hasDeactivationDate = function() {
1842
+ return jspb.Message.getField(this, 8) != null;
1843
+ };
1844
+
1845
+
1846
+ /**
1847
+ * optional int64 drum_number = 9;
1848
+ * @return {number}
1849
+ */
1850
+ proto.Drumtracking.TrackerProto.prototype.getDrumNumber = function() {
1851
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
1852
+ };
1853
+
1854
+
1855
+ /**
1856
+ * @param {number} value
1857
+ * @return {!proto.Drumtracking.TrackerProto} returns this
1858
+ */
1859
+ proto.Drumtracking.TrackerProto.prototype.setDrumNumber = function(value) {
1860
+ return jspb.Message.setProto3IntField(this, 9, value);
1861
+ };
1862
+
1863
+
1864
+ goog.object.extend(exports, proto.Drumtracking);