@aceplus/smartace-api 2.1.0-drumtracker.10 → 2.1.0-drumtracker.12

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.
@@ -7,16 +7,19 @@ import * as google_api_annotations_pb from "./google/api/annotations_pb";
7
7
  import * as platform_pagination_pb from "./platform.pagination_pb";
8
8
 
9
9
  export class TrackerProto extends jspb.Message {
10
- getId(): number;
11
- setId(value: number): void;
10
+ getUid(): string;
11
+ setUid(value: string): void;
12
+
13
+ getDrumId(): number;
14
+ setDrumId(value: number): void;
12
15
 
13
16
  getBatteryVoltage(): number;
14
17
  setBatteryVoltage(value: number): void;
15
18
 
16
- hasLastUpdate(): boolean;
17
- clearLastUpdate(): void;
18
- getLastUpdate(): google_protobuf_timestamp_pb.Timestamp | undefined;
19
- setLastUpdate(value?: google_protobuf_timestamp_pb.Timestamp): void;
19
+ hasLastEvent(): boolean;
20
+ clearLastEvent(): void;
21
+ getLastEvent(): google_protobuf_timestamp_pb.Timestamp | undefined;
22
+ setLastEvent(value?: google_protobuf_timestamp_pb.Timestamp): void;
20
23
 
21
24
  hasActivationDate(): boolean;
22
25
  clearActivationDate(): void;
@@ -37,9 +40,6 @@ export class TrackerProto extends jspb.Message {
37
40
  getDeactivationDate(): google_protobuf_timestamp_pb.Timestamp | undefined;
38
41
  setDeactivationDate(value?: google_protobuf_timestamp_pb.Timestamp): void;
39
42
 
40
- getDrumNumber(): number;
41
- setDrumNumber(value: number): void;
42
-
43
43
  serializeBinary(): Uint8Array;
44
44
  toObject(includeInstance?: boolean): TrackerProto.AsObject;
45
45
  static toObject(includeInstance: boolean, msg: TrackerProto): TrackerProto.AsObject;
@@ -52,21 +52,68 @@ export class TrackerProto extends jspb.Message {
52
52
 
53
53
  export namespace TrackerProto {
54
54
  export type AsObject = {
55
- id: number,
55
+ uid: string,
56
+ drumId: number,
56
57
  batteryVoltage: number,
57
- lastUpdate?: google_protobuf_timestamp_pb.Timestamp.AsObject,
58
+ lastEvent?: google_protobuf_timestamp_pb.Timestamp.AsObject,
58
59
  activationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject,
59
60
  rotations: number,
60
61
  deactivated: boolean,
61
62
  deactivationReason: string,
62
63
  deactivationDate?: google_protobuf_timestamp_pb.Timestamp.AsObject,
63
- drumNumber: number,
64
64
  }
65
65
 
66
- export class CreateRequest extends jspb.Message {
67
- getDrumNumber(): number;
68
- setDrumNumber(value: number): void;
66
+ export class Event extends jspb.Message {
67
+ getId(): number;
68
+ setId(value: number): void;
69
+
70
+ getUid(): string;
71
+ setUid(value: string): void;
72
+
73
+ getLatitude(): number;
74
+ setLatitude(value: number): void;
75
+
76
+ getLongitude(): number;
77
+ setLongitude(value: number): void;
78
+
79
+ getTemparture(): number;
80
+ setTemparture(value: number): void;
81
+
82
+ getRotations(): number;
83
+ setRotations(value: number): void;
84
+
85
+ hasDate(): boolean;
86
+ clearDate(): void;
87
+ getDate(): google_protobuf_timestamp_pb.Timestamp | undefined;
88
+ setDate(value?: google_protobuf_timestamp_pb.Timestamp): void;
89
+
90
+ getBatteryVoltage(): number;
91
+ setBatteryVoltage(value: number): void;
69
92
 
93
+ serializeBinary(): Uint8Array;
94
+ toObject(includeInstance?: boolean): Event.AsObject;
95
+ static toObject(includeInstance: boolean, msg: Event): Event.AsObject;
96
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
97
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
98
+ static serializeBinaryToWriter(message: Event, writer: jspb.BinaryWriter): void;
99
+ static deserializeBinary(bytes: Uint8Array): Event;
100
+ static deserializeBinaryFromReader(message: Event, reader: jspb.BinaryReader): Event;
101
+ }
102
+
103
+ export namespace Event {
104
+ export type AsObject = {
105
+ id: number,
106
+ uid: string,
107
+ latitude: number,
108
+ longitude: number,
109
+ temparture: number,
110
+ rotations: number,
111
+ date?: google_protobuf_timestamp_pb.Timestamp.AsObject,
112
+ batteryVoltage: number,
113
+ }
114
+ }
115
+
116
+ export class CreateRequest extends jspb.Message {
70
117
  serializeBinary(): Uint8Array;
71
118
  toObject(includeInstance?: boolean): CreateRequest.AsObject;
72
119
  static toObject(includeInstance: boolean, msg: CreateRequest): CreateRequest.AsObject;
@@ -79,13 +126,12 @@ export namespace TrackerProto {
79
126
 
80
127
  export namespace CreateRequest {
81
128
  export type AsObject = {
82
- drumNumber: number,
83
129
  }
84
130
  }
85
131
 
86
132
  export class RetrieveRequest extends jspb.Message {
87
- getId(): number;
88
- setId(value: number): void;
133
+ getUid(): string;
134
+ setUid(value: string): void;
89
135
 
90
136
  serializeBinary(): Uint8Array;
91
137
  toObject(includeInstance?: boolean): RetrieveRequest.AsObject;
@@ -99,16 +145,13 @@ export namespace TrackerProto {
99
145
 
100
146
  export namespace RetrieveRequest {
101
147
  export type AsObject = {
102
- id: number,
148
+ uid: string,
103
149
  }
104
150
  }
105
151
 
106
152
  export class UpdateRequest extends jspb.Message {
107
- getId(): number;
108
- setId(value: number): void;
109
-
110
- getDrumNumber(): number;
111
- setDrumNumber(value: number): void;
153
+ getUid(): string;
154
+ setUid(value: string): void;
112
155
 
113
156
  serializeBinary(): Uint8Array;
114
157
  toObject(includeInstance?: boolean): UpdateRequest.AsObject;
@@ -122,14 +165,13 @@ export namespace TrackerProto {
122
165
 
123
166
  export namespace UpdateRequest {
124
167
  export type AsObject = {
125
- id: number,
126
- drumNumber: number,
168
+ uid: string,
127
169
  }
128
170
  }
129
171
 
130
172
  export class DeleteRequest extends jspb.Message {
131
- getId(): number;
132
- setId(value: number): void;
173
+ getUid(): string;
174
+ setUid(value: string): void;
133
175
 
134
176
  serializeBinary(): Uint8Array;
135
177
  toObject(includeInstance?: boolean): DeleteRequest.AsObject;
@@ -143,7 +185,7 @@ export namespace TrackerProto {
143
185
 
144
186
  export namespace DeleteRequest {
145
187
  export type AsObject = {
146
- id: number,
188
+ uid: string,
147
189
  }
148
190
  }
149
191
 
@@ -31,6 +31,7 @@ goog.exportSymbol('proto.Drumtracker.TrackerProto', null, global);
31
31
  goog.exportSymbol('proto.Drumtracker.TrackerProto.CreateRequest', null, global);
32
32
  goog.exportSymbol('proto.Drumtracker.TrackerProto.DeleteReply', null, global);
33
33
  goog.exportSymbol('proto.Drumtracker.TrackerProto.DeleteRequest', null, global);
34
+ goog.exportSymbol('proto.Drumtracker.TrackerProto.Event', null, global);
34
35
  goog.exportSymbol('proto.Drumtracker.TrackerProto.RetrieveRequest', null, global);
35
36
  goog.exportSymbol('proto.Drumtracker.TrackerProto.SearchReply', null, global);
36
37
  goog.exportSymbol('proto.Drumtracker.TrackerProto.SearchRequest', null, global);
@@ -57,6 +58,27 @@ if (goog.DEBUG && !COMPILED) {
57
58
  */
58
59
  proto.Drumtracker.TrackerProto.displayName = 'proto.Drumtracker.TrackerProto';
59
60
  }
61
+ /**
62
+ * Generated by JsPbCodeGenerator.
63
+ * @param {Array=} opt_data Optional initial data array, typically from a
64
+ * server response, or constructed directly in Javascript. The array is used
65
+ * in place and becomes part of the constructed object. It is not cloned.
66
+ * If no data is provided, the constructed object will be empty, but still
67
+ * valid.
68
+ * @extends {jspb.Message}
69
+ * @constructor
70
+ */
71
+ proto.Drumtracker.TrackerProto.Event = function(opt_data) {
72
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
73
+ };
74
+ goog.inherits(proto.Drumtracker.TrackerProto.Event, jspb.Message);
75
+ if (goog.DEBUG && !COMPILED) {
76
+ /**
77
+ * @public
78
+ * @override
79
+ */
80
+ proto.Drumtracker.TrackerProto.Event.displayName = 'proto.Drumtracker.TrackerProto.Event';
81
+ }
60
82
  /**
61
83
  * Generated by JsPbCodeGenerator.
62
84
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -257,15 +279,15 @@ proto.Drumtracker.TrackerProto.prototype.toObject = function(opt_includeInstance
257
279
  */
258
280
  proto.Drumtracker.TrackerProto.toObject = function(includeInstance, msg) {
259
281
  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),
282
+ uid: jspb.Message.getFieldWithDefault(msg, 1, ""),
283
+ drumId: jspb.Message.getFieldWithDefault(msg, 2, 0),
284
+ batteryVoltage: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
285
+ lastEvent: (f = msg.getLastEvent()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
263
286
  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)
287
+ rotations: jspb.Message.getFieldWithDefault(msg, 6, 0),
288
+ deactivated: jspb.Message.getBooleanFieldWithDefault(msg, 7, false),
289
+ deactivationReason: jspb.Message.getFieldWithDefault(msg, 8, ""),
290
+ deactivationDate: (f = msg.getDeactivationDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
269
291
  };
270
292
 
271
293
  if (includeInstance) {
@@ -303,44 +325,44 @@ proto.Drumtracker.TrackerProto.deserializeBinaryFromReader = function(msg, reade
303
325
  var field = reader.getFieldNumber();
304
326
  switch (field) {
305
327
  case 1:
306
- var value = /** @type {number} */ (reader.readInt64());
307
- msg.setId(value);
328
+ var value = /** @type {string} */ (reader.readString());
329
+ msg.setUid(value);
308
330
  break;
309
331
  case 2:
310
- var value = /** @type {number} */ (reader.readInt32());
311
- msg.setBatteryVoltage(value);
332
+ var value = /** @type {number} */ (reader.readInt64());
333
+ msg.setDrumId(value);
312
334
  break;
313
335
  case 3:
336
+ var value = /** @type {number} */ (reader.readDouble());
337
+ msg.setBatteryVoltage(value);
338
+ break;
339
+ case 4:
314
340
  var value = new google_protobuf_timestamp_pb.Timestamp;
315
341
  reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
316
- msg.setLastUpdate(value);
342
+ msg.setLastEvent(value);
317
343
  break;
318
- case 4:
344
+ case 5:
319
345
  var value = new google_protobuf_timestamp_pb.Timestamp;
320
346
  reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
321
347
  msg.setActivationDate(value);
322
348
  break;
323
- case 5:
349
+ case 6:
324
350
  var value = /** @type {number} */ (reader.readInt32());
325
351
  msg.setRotations(value);
326
352
  break;
327
- case 6:
353
+ case 7:
328
354
  var value = /** @type {boolean} */ (reader.readBool());
329
355
  msg.setDeactivated(value);
330
356
  break;
331
- case 7:
357
+ case 8:
332
358
  var value = /** @type {string} */ (reader.readString());
333
359
  msg.setDeactivationReason(value);
334
360
  break;
335
- case 8:
361
+ case 9:
336
362
  var value = new google_protobuf_timestamp_pb.Timestamp;
337
363
  reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
338
364
  msg.setDeactivationDate(value);
339
365
  break;
340
- case 9:
341
- var value = /** @type {number} */ (reader.readInt64());
342
- msg.setDrumNumber(value);
343
- break;
344
366
  default:
345
367
  reader.skipField();
346
368
  break;
@@ -370,24 +392,31 @@ proto.Drumtracker.TrackerProto.prototype.serializeBinary = function() {
370
392
  */
371
393
  proto.Drumtracker.TrackerProto.serializeBinaryToWriter = function(message, writer) {
372
394
  var f = undefined;
373
- f = message.getId();
374
- if (f !== 0) {
375
- writer.writeInt64(
395
+ f = message.getUid();
396
+ if (f.length > 0) {
397
+ writer.writeString(
376
398
  1,
377
399
  f
378
400
  );
379
401
  }
380
- f = message.getBatteryVoltage();
402
+ f = message.getDrumId();
381
403
  if (f !== 0) {
382
- writer.writeInt32(
404
+ writer.writeInt64(
383
405
  2,
384
406
  f
385
407
  );
386
408
  }
387
- f = message.getLastUpdate();
409
+ f = message.getBatteryVoltage();
410
+ if (f !== 0.0) {
411
+ writer.writeDouble(
412
+ 3,
413
+ f
414
+ );
415
+ }
416
+ f = message.getLastEvent();
388
417
  if (f != null) {
389
418
  writer.writeMessage(
390
- 3,
419
+ 4,
391
420
  f,
392
421
  google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
393
422
  );
@@ -395,7 +424,7 @@ proto.Drumtracker.TrackerProto.serializeBinaryToWriter = function(message, write
395
424
  f = message.getActivationDate();
396
425
  if (f != null) {
397
426
  writer.writeMessage(
398
- 4,
427
+ 5,
399
428
  f,
400
429
  google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
401
430
  );
@@ -403,39 +432,32 @@ proto.Drumtracker.TrackerProto.serializeBinaryToWriter = function(message, write
403
432
  f = message.getRotations();
404
433
  if (f !== 0) {
405
434
  writer.writeInt32(
406
- 5,
435
+ 6,
407
436
  f
408
437
  );
409
438
  }
410
439
  f = message.getDeactivated();
411
440
  if (f) {
412
441
  writer.writeBool(
413
- 6,
442
+ 7,
414
443
  f
415
444
  );
416
445
  }
417
446
  f = message.getDeactivationReason();
418
447
  if (f.length > 0) {
419
448
  writer.writeString(
420
- 7,
449
+ 8,
421
450
  f
422
451
  );
423
452
  }
424
453
  f = message.getDeactivationDate();
425
454
  if (f != null) {
426
455
  writer.writeMessage(
427
- 8,
456
+ 9,
428
457
  f,
429
458
  google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
430
459
  );
431
460
  }
432
- f = message.getDrumNumber();
433
- if (f !== 0) {
434
- writer.writeInt64(
435
- 9,
436
- f
437
- );
438
- }
439
461
  };
440
462
 
441
463
 
@@ -455,8 +477,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
455
477
  * http://goto/soy-param-migration
456
478
  * @return {!Object}
457
479
  */
458
- proto.Drumtracker.TrackerProto.CreateRequest.prototype.toObject = function(opt_includeInstance) {
459
- return proto.Drumtracker.TrackerProto.CreateRequest.toObject(opt_includeInstance, this);
480
+ proto.Drumtracker.TrackerProto.Event.prototype.toObject = function(opt_includeInstance) {
481
+ return proto.Drumtracker.TrackerProto.Event.toObject(opt_includeInstance, this);
460
482
  };
461
483
 
462
484
 
@@ -465,13 +487,20 @@ proto.Drumtracker.TrackerProto.CreateRequest.prototype.toObject = function(opt_i
465
487
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
466
488
  * the JSPB instance for transitional soy proto support:
467
489
  * http://goto/soy-param-migration
468
- * @param {!proto.Drumtracker.TrackerProto.CreateRequest} msg The msg instance to transform.
490
+ * @param {!proto.Drumtracker.TrackerProto.Event} msg The msg instance to transform.
469
491
  * @return {!Object}
470
492
  * @suppress {unusedLocalVariables} f is only used for nested messages
471
493
  */
472
- proto.Drumtracker.TrackerProto.CreateRequest.toObject = function(includeInstance, msg) {
494
+ proto.Drumtracker.TrackerProto.Event.toObject = function(includeInstance, msg) {
473
495
  var f, obj = {
474
- drumNumber: jspb.Message.getFieldWithDefault(msg, 1, 0)
496
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
497
+ uid: jspb.Message.getFieldWithDefault(msg, 2, ""),
498
+ latitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
499
+ longitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
500
+ temparture: jspb.Message.getFieldWithDefault(msg, 5, 0),
501
+ rotations: jspb.Message.getFieldWithDefault(msg, 6, 0),
502
+ date: (f = msg.getDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
503
+ batteryVoltage: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0)
475
504
  };
476
505
 
477
506
  if (includeInstance) {
@@ -485,23 +514,23 @@ proto.Drumtracker.TrackerProto.CreateRequest.toObject = function(includeInstance
485
514
  /**
486
515
  * Deserializes binary data (in protobuf wire format).
487
516
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
488
- * @return {!proto.Drumtracker.TrackerProto.CreateRequest}
517
+ * @return {!proto.Drumtracker.TrackerProto.Event}
489
518
  */
490
- proto.Drumtracker.TrackerProto.CreateRequest.deserializeBinary = function(bytes) {
519
+ proto.Drumtracker.TrackerProto.Event.deserializeBinary = function(bytes) {
491
520
  var reader = new jspb.BinaryReader(bytes);
492
- var msg = new proto.Drumtracker.TrackerProto.CreateRequest;
493
- return proto.Drumtracker.TrackerProto.CreateRequest.deserializeBinaryFromReader(msg, reader);
521
+ var msg = new proto.Drumtracker.TrackerProto.Event;
522
+ return proto.Drumtracker.TrackerProto.Event.deserializeBinaryFromReader(msg, reader);
494
523
  };
495
524
 
496
525
 
497
526
  /**
498
527
  * Deserializes binary data (in protobuf wire format) from the
499
528
  * given reader into the given message object.
500
- * @param {!proto.Drumtracker.TrackerProto.CreateRequest} msg The message object to deserialize into.
529
+ * @param {!proto.Drumtracker.TrackerProto.Event} msg The message object to deserialize into.
501
530
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
502
- * @return {!proto.Drumtracker.TrackerProto.CreateRequest}
531
+ * @return {!proto.Drumtracker.TrackerProto.Event}
503
532
  */
504
- proto.Drumtracker.TrackerProto.CreateRequest.deserializeBinaryFromReader = function(msg, reader) {
533
+ proto.Drumtracker.TrackerProto.Event.deserializeBinaryFromReader = function(msg, reader) {
505
534
  while (reader.nextField()) {
506
535
  if (reader.isEndGroup()) {
507
536
  break;
@@ -510,7 +539,36 @@ proto.Drumtracker.TrackerProto.CreateRequest.deserializeBinaryFromReader = funct
510
539
  switch (field) {
511
540
  case 1:
512
541
  var value = /** @type {number} */ (reader.readInt64());
513
- msg.setDrumNumber(value);
542
+ msg.setId(value);
543
+ break;
544
+ case 2:
545
+ var value = /** @type {string} */ (reader.readString());
546
+ msg.setUid(value);
547
+ break;
548
+ case 3:
549
+ var value = /** @type {number} */ (reader.readDouble());
550
+ msg.setLatitude(value);
551
+ break;
552
+ case 4:
553
+ var value = /** @type {number} */ (reader.readDouble());
554
+ msg.setLongitude(value);
555
+ break;
556
+ case 5:
557
+ var value = /** @type {number} */ (reader.readInt32());
558
+ msg.setTemparture(value);
559
+ break;
560
+ case 6:
561
+ var value = /** @type {number} */ (reader.readInt32());
562
+ msg.setRotations(value);
563
+ break;
564
+ case 7:
565
+ var value = new google_protobuf_timestamp_pb.Timestamp;
566
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
567
+ msg.setDate(value);
568
+ break;
569
+ case 8:
570
+ var value = /** @type {number} */ (reader.readDouble());
571
+ msg.setBatteryVoltage(value);
514
572
  break;
515
573
  default:
516
574
  reader.skipField();
@@ -525,9 +583,9 @@ proto.Drumtracker.TrackerProto.CreateRequest.deserializeBinaryFromReader = funct
525
583
  * Serializes the message to binary data (in protobuf wire format).
526
584
  * @return {!Uint8Array}
527
585
  */
528
- proto.Drumtracker.TrackerProto.CreateRequest.prototype.serializeBinary = function() {
586
+ proto.Drumtracker.TrackerProto.Event.prototype.serializeBinary = function() {
529
587
  var writer = new jspb.BinaryWriter();
530
- proto.Drumtracker.TrackerProto.CreateRequest.serializeBinaryToWriter(this, writer);
588
+ proto.Drumtracker.TrackerProto.Event.serializeBinaryToWriter(this, writer);
531
589
  return writer.getResultBuffer();
532
590
  };
533
591
 
@@ -535,40 +593,336 @@ proto.Drumtracker.TrackerProto.CreateRequest.prototype.serializeBinary = functio
535
593
  /**
536
594
  * Serializes the given message to binary data (in protobuf wire
537
595
  * format), writing to the given BinaryWriter.
538
- * @param {!proto.Drumtracker.TrackerProto.CreateRequest} message
596
+ * @param {!proto.Drumtracker.TrackerProto.Event} message
539
597
  * @param {!jspb.BinaryWriter} writer
540
598
  * @suppress {unusedLocalVariables} f is only used for nested messages
541
599
  */
542
- proto.Drumtracker.TrackerProto.CreateRequest.serializeBinaryToWriter = function(message, writer) {
600
+ proto.Drumtracker.TrackerProto.Event.serializeBinaryToWriter = function(message, writer) {
543
601
  var f = undefined;
544
- f = message.getDrumNumber();
602
+ f = message.getId();
545
603
  if (f !== 0) {
546
604
  writer.writeInt64(
547
605
  1,
548
606
  f
549
607
  );
550
608
  }
609
+ f = message.getUid();
610
+ if (f.length > 0) {
611
+ writer.writeString(
612
+ 2,
613
+ f
614
+ );
615
+ }
616
+ f = message.getLatitude();
617
+ if (f !== 0.0) {
618
+ writer.writeDouble(
619
+ 3,
620
+ f
621
+ );
622
+ }
623
+ f = message.getLongitude();
624
+ if (f !== 0.0) {
625
+ writer.writeDouble(
626
+ 4,
627
+ f
628
+ );
629
+ }
630
+ f = message.getTemparture();
631
+ if (f !== 0) {
632
+ writer.writeInt32(
633
+ 5,
634
+ f
635
+ );
636
+ }
637
+ f = message.getRotations();
638
+ if (f !== 0) {
639
+ writer.writeInt32(
640
+ 6,
641
+ f
642
+ );
643
+ }
644
+ f = message.getDate();
645
+ if (f != null) {
646
+ writer.writeMessage(
647
+ 7,
648
+ f,
649
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
650
+ );
651
+ }
652
+ f = message.getBatteryVoltage();
653
+ if (f !== 0.0) {
654
+ writer.writeDouble(
655
+ 8,
656
+ f
657
+ );
658
+ }
551
659
  };
552
660
 
553
661
 
554
662
  /**
555
- * optional int64 drum_number = 1;
663
+ * optional int64 id = 1;
556
664
  * @return {number}
557
665
  */
558
- proto.Drumtracker.TrackerProto.CreateRequest.prototype.getDrumNumber = function() {
666
+ proto.Drumtracker.TrackerProto.Event.prototype.getId = function() {
559
667
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
560
668
  };
561
669
 
562
670
 
563
671
  /**
564
672
  * @param {number} value
565
- * @return {!proto.Drumtracker.TrackerProto.CreateRequest} returns this
673
+ * @return {!proto.Drumtracker.TrackerProto.Event} returns this
566
674
  */
567
- proto.Drumtracker.TrackerProto.CreateRequest.prototype.setDrumNumber = function(value) {
675
+ proto.Drumtracker.TrackerProto.Event.prototype.setId = function(value) {
568
676
  return jspb.Message.setProto3IntField(this, 1, value);
569
677
  };
570
678
 
571
679
 
680
+ /**
681
+ * optional string uid = 2;
682
+ * @return {string}
683
+ */
684
+ proto.Drumtracker.TrackerProto.Event.prototype.getUid = function() {
685
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
686
+ };
687
+
688
+
689
+ /**
690
+ * @param {string} value
691
+ * @return {!proto.Drumtracker.TrackerProto.Event} returns this
692
+ */
693
+ proto.Drumtracker.TrackerProto.Event.prototype.setUid = function(value) {
694
+ return jspb.Message.setProto3StringField(this, 2, value);
695
+ };
696
+
697
+
698
+ /**
699
+ * optional double latitude = 3;
700
+ * @return {number}
701
+ */
702
+ proto.Drumtracker.TrackerProto.Event.prototype.getLatitude = function() {
703
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
704
+ };
705
+
706
+
707
+ /**
708
+ * @param {number} value
709
+ * @return {!proto.Drumtracker.TrackerProto.Event} returns this
710
+ */
711
+ proto.Drumtracker.TrackerProto.Event.prototype.setLatitude = function(value) {
712
+ return jspb.Message.setProto3FloatField(this, 3, value);
713
+ };
714
+
715
+
716
+ /**
717
+ * optional double longitude = 4;
718
+ * @return {number}
719
+ */
720
+ proto.Drumtracker.TrackerProto.Event.prototype.getLongitude = function() {
721
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
722
+ };
723
+
724
+
725
+ /**
726
+ * @param {number} value
727
+ * @return {!proto.Drumtracker.TrackerProto.Event} returns this
728
+ */
729
+ proto.Drumtracker.TrackerProto.Event.prototype.setLongitude = function(value) {
730
+ return jspb.Message.setProto3FloatField(this, 4, value);
731
+ };
732
+
733
+
734
+ /**
735
+ * optional int32 temparture = 5;
736
+ * @return {number}
737
+ */
738
+ proto.Drumtracker.TrackerProto.Event.prototype.getTemparture = function() {
739
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
740
+ };
741
+
742
+
743
+ /**
744
+ * @param {number} value
745
+ * @return {!proto.Drumtracker.TrackerProto.Event} returns this
746
+ */
747
+ proto.Drumtracker.TrackerProto.Event.prototype.setTemparture = function(value) {
748
+ return jspb.Message.setProto3IntField(this, 5, value);
749
+ };
750
+
751
+
752
+ /**
753
+ * optional int32 rotations = 6;
754
+ * @return {number}
755
+ */
756
+ proto.Drumtracker.TrackerProto.Event.prototype.getRotations = function() {
757
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
758
+ };
759
+
760
+
761
+ /**
762
+ * @param {number} value
763
+ * @return {!proto.Drumtracker.TrackerProto.Event} returns this
764
+ */
765
+ proto.Drumtracker.TrackerProto.Event.prototype.setRotations = function(value) {
766
+ return jspb.Message.setProto3IntField(this, 6, value);
767
+ };
768
+
769
+
770
+ /**
771
+ * optional google.protobuf.Timestamp date = 7;
772
+ * @return {?proto.google.protobuf.Timestamp}
773
+ */
774
+ proto.Drumtracker.TrackerProto.Event.prototype.getDate = function() {
775
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
776
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
777
+ };
778
+
779
+
780
+ /**
781
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
782
+ * @return {!proto.Drumtracker.TrackerProto.Event} returns this
783
+ */
784
+ proto.Drumtracker.TrackerProto.Event.prototype.setDate = function(value) {
785
+ return jspb.Message.setWrapperField(this, 7, value);
786
+ };
787
+
788
+
789
+ /**
790
+ * Clears the message field making it undefined.
791
+ * @return {!proto.Drumtracker.TrackerProto.Event} returns this
792
+ */
793
+ proto.Drumtracker.TrackerProto.Event.prototype.clearDate = function() {
794
+ return this.setDate(undefined);
795
+ };
796
+
797
+
798
+ /**
799
+ * Returns whether this field is set.
800
+ * @return {boolean}
801
+ */
802
+ proto.Drumtracker.TrackerProto.Event.prototype.hasDate = function() {
803
+ return jspb.Message.getField(this, 7) != null;
804
+ };
805
+
806
+
807
+ /**
808
+ * optional double battery_voltage = 8;
809
+ * @return {number}
810
+ */
811
+ proto.Drumtracker.TrackerProto.Event.prototype.getBatteryVoltage = function() {
812
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
813
+ };
814
+
815
+
816
+ /**
817
+ * @param {number} value
818
+ * @return {!proto.Drumtracker.TrackerProto.Event} returns this
819
+ */
820
+ proto.Drumtracker.TrackerProto.Event.prototype.setBatteryVoltage = function(value) {
821
+ return jspb.Message.setProto3FloatField(this, 8, value);
822
+ };
823
+
824
+
825
+
826
+
827
+
828
+ if (jspb.Message.GENERATE_TO_OBJECT) {
829
+ /**
830
+ * Creates an object representation of this proto.
831
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
832
+ * Optional fields that are not set will be set to undefined.
833
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
834
+ * For the list of reserved names please see:
835
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
836
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
837
+ * JSPB instance for transitional soy proto support:
838
+ * http://goto/soy-param-migration
839
+ * @return {!Object}
840
+ */
841
+ proto.Drumtracker.TrackerProto.CreateRequest.prototype.toObject = function(opt_includeInstance) {
842
+ return proto.Drumtracker.TrackerProto.CreateRequest.toObject(opt_includeInstance, this);
843
+ };
844
+
845
+
846
+ /**
847
+ * Static version of the {@see toObject} method.
848
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
849
+ * the JSPB instance for transitional soy proto support:
850
+ * http://goto/soy-param-migration
851
+ * @param {!proto.Drumtracker.TrackerProto.CreateRequest} msg The msg instance to transform.
852
+ * @return {!Object}
853
+ * @suppress {unusedLocalVariables} f is only used for nested messages
854
+ */
855
+ proto.Drumtracker.TrackerProto.CreateRequest.toObject = function(includeInstance, msg) {
856
+ var f, obj = {
857
+
858
+ };
859
+
860
+ if (includeInstance) {
861
+ obj.$jspbMessageInstance = msg;
862
+ }
863
+ return obj;
864
+ };
865
+ }
866
+
867
+
868
+ /**
869
+ * Deserializes binary data (in protobuf wire format).
870
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
871
+ * @return {!proto.Drumtracker.TrackerProto.CreateRequest}
872
+ */
873
+ proto.Drumtracker.TrackerProto.CreateRequest.deserializeBinary = function(bytes) {
874
+ var reader = new jspb.BinaryReader(bytes);
875
+ var msg = new proto.Drumtracker.TrackerProto.CreateRequest;
876
+ return proto.Drumtracker.TrackerProto.CreateRequest.deserializeBinaryFromReader(msg, reader);
877
+ };
878
+
879
+
880
+ /**
881
+ * Deserializes binary data (in protobuf wire format) from the
882
+ * given reader into the given message object.
883
+ * @param {!proto.Drumtracker.TrackerProto.CreateRequest} msg The message object to deserialize into.
884
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
885
+ * @return {!proto.Drumtracker.TrackerProto.CreateRequest}
886
+ */
887
+ proto.Drumtracker.TrackerProto.CreateRequest.deserializeBinaryFromReader = function(msg, reader) {
888
+ while (reader.nextField()) {
889
+ if (reader.isEndGroup()) {
890
+ break;
891
+ }
892
+ var field = reader.getFieldNumber();
893
+ switch (field) {
894
+ default:
895
+ reader.skipField();
896
+ break;
897
+ }
898
+ }
899
+ return msg;
900
+ };
901
+
902
+
903
+ /**
904
+ * Serializes the message to binary data (in protobuf wire format).
905
+ * @return {!Uint8Array}
906
+ */
907
+ proto.Drumtracker.TrackerProto.CreateRequest.prototype.serializeBinary = function() {
908
+ var writer = new jspb.BinaryWriter();
909
+ proto.Drumtracker.TrackerProto.CreateRequest.serializeBinaryToWriter(this, writer);
910
+ return writer.getResultBuffer();
911
+ };
912
+
913
+
914
+ /**
915
+ * Serializes the given message to binary data (in protobuf wire
916
+ * format), writing to the given BinaryWriter.
917
+ * @param {!proto.Drumtracker.TrackerProto.CreateRequest} message
918
+ * @param {!jspb.BinaryWriter} writer
919
+ * @suppress {unusedLocalVariables} f is only used for nested messages
920
+ */
921
+ proto.Drumtracker.TrackerProto.CreateRequest.serializeBinaryToWriter = function(message, writer) {
922
+ var f = undefined;
923
+ };
924
+
925
+
572
926
 
573
927
 
574
928
 
@@ -601,7 +955,7 @@ proto.Drumtracker.TrackerProto.RetrieveRequest.prototype.toObject = function(opt
601
955
  */
602
956
  proto.Drumtracker.TrackerProto.RetrieveRequest.toObject = function(includeInstance, msg) {
603
957
  var f, obj = {
604
- id: jspb.Message.getFieldWithDefault(msg, 1, 0)
958
+ uid: jspb.Message.getFieldWithDefault(msg, 1, "")
605
959
  };
606
960
 
607
961
  if (includeInstance) {
@@ -639,8 +993,8 @@ proto.Drumtracker.TrackerProto.RetrieveRequest.deserializeBinaryFromReader = fun
639
993
  var field = reader.getFieldNumber();
640
994
  switch (field) {
641
995
  case 1:
642
- var value = /** @type {number} */ (reader.readInt64());
643
- msg.setId(value);
996
+ var value = /** @type {string} */ (reader.readString());
997
+ msg.setUid(value);
644
998
  break;
645
999
  default:
646
1000
  reader.skipField();
@@ -671,9 +1025,9 @@ proto.Drumtracker.TrackerProto.RetrieveRequest.prototype.serializeBinary = funct
671
1025
  */
672
1026
  proto.Drumtracker.TrackerProto.RetrieveRequest.serializeBinaryToWriter = function(message, writer) {
673
1027
  var f = undefined;
674
- f = message.getId();
675
- if (f !== 0) {
676
- writer.writeInt64(
1028
+ f = message.getUid();
1029
+ if (f.length > 0) {
1030
+ writer.writeString(
677
1031
  1,
678
1032
  f
679
1033
  );
@@ -682,20 +1036,20 @@ proto.Drumtracker.TrackerProto.RetrieveRequest.serializeBinaryToWriter = functio
682
1036
 
683
1037
 
684
1038
  /**
685
- * optional int64 id = 1;
686
- * @return {number}
1039
+ * optional string uid = 1;
1040
+ * @return {string}
687
1041
  */
688
- proto.Drumtracker.TrackerProto.RetrieveRequest.prototype.getId = function() {
689
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1042
+ proto.Drumtracker.TrackerProto.RetrieveRequest.prototype.getUid = function() {
1043
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
690
1044
  };
691
1045
 
692
1046
 
693
1047
  /**
694
- * @param {number} value
1048
+ * @param {string} value
695
1049
  * @return {!proto.Drumtracker.TrackerProto.RetrieveRequest} returns this
696
1050
  */
697
- proto.Drumtracker.TrackerProto.RetrieveRequest.prototype.setId = function(value) {
698
- return jspb.Message.setProto3IntField(this, 1, value);
1051
+ proto.Drumtracker.TrackerProto.RetrieveRequest.prototype.setUid = function(value) {
1052
+ return jspb.Message.setProto3StringField(this, 1, value);
699
1053
  };
700
1054
 
701
1055
 
@@ -731,8 +1085,7 @@ proto.Drumtracker.TrackerProto.UpdateRequest.prototype.toObject = function(opt_i
731
1085
  */
732
1086
  proto.Drumtracker.TrackerProto.UpdateRequest.toObject = function(includeInstance, msg) {
733
1087
  var f, obj = {
734
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
735
- drumNumber: jspb.Message.getFieldWithDefault(msg, 2, 0)
1088
+ uid: jspb.Message.getFieldWithDefault(msg, 1, "")
736
1089
  };
737
1090
 
738
1091
  if (includeInstance) {
@@ -770,12 +1123,8 @@ proto.Drumtracker.TrackerProto.UpdateRequest.deserializeBinaryFromReader = funct
770
1123
  var field = reader.getFieldNumber();
771
1124
  switch (field) {
772
1125
  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);
1126
+ var value = /** @type {string} */ (reader.readString());
1127
+ msg.setUid(value);
779
1128
  break;
780
1129
  default:
781
1130
  reader.skipField();
@@ -806,56 +1155,31 @@ proto.Drumtracker.TrackerProto.UpdateRequest.prototype.serializeBinary = functio
806
1155
  */
807
1156
  proto.Drumtracker.TrackerProto.UpdateRequest.serializeBinaryToWriter = function(message, writer) {
808
1157
  var f = undefined;
809
- f = message.getId();
810
- if (f !== 0) {
811
- writer.writeInt64(
1158
+ f = message.getUid();
1159
+ if (f.length > 0) {
1160
+ writer.writeString(
812
1161
  1,
813
1162
  f
814
1163
  );
815
1164
  }
816
- f = message.getDrumNumber();
817
- if (f !== 0) {
818
- writer.writeInt64(
819
- 2,
820
- f
821
- );
822
- }
823
1165
  };
824
1166
 
825
1167
 
826
1168
  /**
827
- * optional int64 id = 1;
828
- * @return {number}
829
- */
830
- proto.Drumtracker.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.Drumtracker.TrackerProto.UpdateRequest} returns this
838
- */
839
- proto.Drumtracker.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}
1169
+ * optional string uid = 1;
1170
+ * @return {string}
847
1171
  */
848
- proto.Drumtracker.TrackerProto.UpdateRequest.prototype.getDrumNumber = function() {
849
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1172
+ proto.Drumtracker.TrackerProto.UpdateRequest.prototype.getUid = function() {
1173
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
850
1174
  };
851
1175
 
852
1176
 
853
1177
  /**
854
- * @param {number} value
1178
+ * @param {string} value
855
1179
  * @return {!proto.Drumtracker.TrackerProto.UpdateRequest} returns this
856
1180
  */
857
- proto.Drumtracker.TrackerProto.UpdateRequest.prototype.setDrumNumber = function(value) {
858
- return jspb.Message.setProto3IntField(this, 2, value);
1181
+ proto.Drumtracker.TrackerProto.UpdateRequest.prototype.setUid = function(value) {
1182
+ return jspb.Message.setProto3StringField(this, 1, value);
859
1183
  };
860
1184
 
861
1185
 
@@ -891,7 +1215,7 @@ proto.Drumtracker.TrackerProto.DeleteRequest.prototype.toObject = function(opt_i
891
1215
  */
892
1216
  proto.Drumtracker.TrackerProto.DeleteRequest.toObject = function(includeInstance, msg) {
893
1217
  var f, obj = {
894
- id: jspb.Message.getFieldWithDefault(msg, 1, 0)
1218
+ uid: jspb.Message.getFieldWithDefault(msg, 1, "")
895
1219
  };
896
1220
 
897
1221
  if (includeInstance) {
@@ -929,8 +1253,8 @@ proto.Drumtracker.TrackerProto.DeleteRequest.deserializeBinaryFromReader = funct
929
1253
  var field = reader.getFieldNumber();
930
1254
  switch (field) {
931
1255
  case 1:
932
- var value = /** @type {number} */ (reader.readInt64());
933
- msg.setId(value);
1256
+ var value = /** @type {string} */ (reader.readString());
1257
+ msg.setUid(value);
934
1258
  break;
935
1259
  default:
936
1260
  reader.skipField();
@@ -961,9 +1285,9 @@ proto.Drumtracker.TrackerProto.DeleteRequest.prototype.serializeBinary = functio
961
1285
  */
962
1286
  proto.Drumtracker.TrackerProto.DeleteRequest.serializeBinaryToWriter = function(message, writer) {
963
1287
  var f = undefined;
964
- f = message.getId();
965
- if (f !== 0) {
966
- writer.writeInt64(
1288
+ f = message.getUid();
1289
+ if (f.length > 0) {
1290
+ writer.writeString(
967
1291
  1,
968
1292
  f
969
1293
  );
@@ -972,20 +1296,20 @@ proto.Drumtracker.TrackerProto.DeleteRequest.serializeBinaryToWriter = function(
972
1296
 
973
1297
 
974
1298
  /**
975
- * optional int64 id = 1;
976
- * @return {number}
1299
+ * optional string uid = 1;
1300
+ * @return {string}
977
1301
  */
978
- proto.Drumtracker.TrackerProto.DeleteRequest.prototype.getId = function() {
979
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1302
+ proto.Drumtracker.TrackerProto.DeleteRequest.prototype.getUid = function() {
1303
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
980
1304
  };
981
1305
 
982
1306
 
983
1307
  /**
984
- * @param {number} value
1308
+ * @param {string} value
985
1309
  * @return {!proto.Drumtracker.TrackerProto.DeleteRequest} returns this
986
1310
  */
987
- proto.Drumtracker.TrackerProto.DeleteRequest.prototype.setId = function(value) {
988
- return jspb.Message.setProto3IntField(this, 1, value);
1311
+ proto.Drumtracker.TrackerProto.DeleteRequest.prototype.setUid = function(value) {
1312
+ return jspb.Message.setProto3StringField(this, 1, value);
989
1313
  };
990
1314
 
991
1315
 
@@ -1643,11 +1967,29 @@ proto.Drumtracker.TrackerProto.TrackerFilters.prototype.setSearch = function(val
1643
1967
 
1644
1968
 
1645
1969
  /**
1646
- * optional int64 id = 1;
1970
+ * optional string uid = 1;
1971
+ * @return {string}
1972
+ */
1973
+ proto.Drumtracker.TrackerProto.prototype.getUid = function() {
1974
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1975
+ };
1976
+
1977
+
1978
+ /**
1979
+ * @param {string} value
1980
+ * @return {!proto.Drumtracker.TrackerProto} returns this
1981
+ */
1982
+ proto.Drumtracker.TrackerProto.prototype.setUid = function(value) {
1983
+ return jspb.Message.setProto3StringField(this, 1, value);
1984
+ };
1985
+
1986
+
1987
+ /**
1988
+ * optional int64 drum_id = 2;
1647
1989
  * @return {number}
1648
1990
  */
1649
- proto.Drumtracker.TrackerProto.prototype.getId = function() {
1650
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1991
+ proto.Drumtracker.TrackerProto.prototype.getDrumId = function() {
1992
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1651
1993
  };
1652
1994
 
1653
1995
 
@@ -1655,17 +1997,17 @@ proto.Drumtracker.TrackerProto.prototype.getId = function() {
1655
1997
  * @param {number} value
1656
1998
  * @return {!proto.Drumtracker.TrackerProto} returns this
1657
1999
  */
1658
- proto.Drumtracker.TrackerProto.prototype.setId = function(value) {
1659
- return jspb.Message.setProto3IntField(this, 1, value);
2000
+ proto.Drumtracker.TrackerProto.prototype.setDrumId = function(value) {
2001
+ return jspb.Message.setProto3IntField(this, 2, value);
1660
2002
  };
1661
2003
 
1662
2004
 
1663
2005
  /**
1664
- * optional int32 battery_voltage = 2;
2006
+ * optional double battery_voltage = 3;
1665
2007
  * @return {number}
1666
2008
  */
1667
2009
  proto.Drumtracker.TrackerProto.prototype.getBatteryVoltage = function() {
1668
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2010
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
1669
2011
  };
1670
2012
 
1671
2013
 
@@ -1674,17 +2016,17 @@ proto.Drumtracker.TrackerProto.prototype.getBatteryVoltage = function() {
1674
2016
  * @return {!proto.Drumtracker.TrackerProto} returns this
1675
2017
  */
1676
2018
  proto.Drumtracker.TrackerProto.prototype.setBatteryVoltage = function(value) {
1677
- return jspb.Message.setProto3IntField(this, 2, value);
2019
+ return jspb.Message.setProto3FloatField(this, 3, value);
1678
2020
  };
1679
2021
 
1680
2022
 
1681
2023
  /**
1682
- * optional google.protobuf.Timestamp last_update = 3;
2024
+ * optional google.protobuf.Timestamp last_event = 4;
1683
2025
  * @return {?proto.google.protobuf.Timestamp}
1684
2026
  */
1685
- proto.Drumtracker.TrackerProto.prototype.getLastUpdate = function() {
2027
+ proto.Drumtracker.TrackerProto.prototype.getLastEvent = function() {
1686
2028
  return /** @type{?proto.google.protobuf.Timestamp} */ (
1687
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
2029
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
1688
2030
  };
1689
2031
 
1690
2032
 
@@ -1692,8 +2034,8 @@ proto.Drumtracker.TrackerProto.prototype.getLastUpdate = function() {
1692
2034
  * @param {?proto.google.protobuf.Timestamp|undefined} value
1693
2035
  * @return {!proto.Drumtracker.TrackerProto} returns this
1694
2036
  */
1695
- proto.Drumtracker.TrackerProto.prototype.setLastUpdate = function(value) {
1696
- return jspb.Message.setWrapperField(this, 3, value);
2037
+ proto.Drumtracker.TrackerProto.prototype.setLastEvent = function(value) {
2038
+ return jspb.Message.setWrapperField(this, 4, value);
1697
2039
  };
1698
2040
 
1699
2041
 
@@ -1701,8 +2043,8 @@ proto.Drumtracker.TrackerProto.prototype.setLastUpdate = function(value) {
1701
2043
  * Clears the message field making it undefined.
1702
2044
  * @return {!proto.Drumtracker.TrackerProto} returns this
1703
2045
  */
1704
- proto.Drumtracker.TrackerProto.prototype.clearLastUpdate = function() {
1705
- return this.setLastUpdate(undefined);
2046
+ proto.Drumtracker.TrackerProto.prototype.clearLastEvent = function() {
2047
+ return this.setLastEvent(undefined);
1706
2048
  };
1707
2049
 
1708
2050
 
@@ -1710,18 +2052,18 @@ proto.Drumtracker.TrackerProto.prototype.clearLastUpdate = function() {
1710
2052
  * Returns whether this field is set.
1711
2053
  * @return {boolean}
1712
2054
  */
1713
- proto.Drumtracker.TrackerProto.prototype.hasLastUpdate = function() {
1714
- return jspb.Message.getField(this, 3) != null;
2055
+ proto.Drumtracker.TrackerProto.prototype.hasLastEvent = function() {
2056
+ return jspb.Message.getField(this, 4) != null;
1715
2057
  };
1716
2058
 
1717
2059
 
1718
2060
  /**
1719
- * optional google.protobuf.Timestamp activation_date = 4;
2061
+ * optional google.protobuf.Timestamp activation_date = 5;
1720
2062
  * @return {?proto.google.protobuf.Timestamp}
1721
2063
  */
1722
2064
  proto.Drumtracker.TrackerProto.prototype.getActivationDate = function() {
1723
2065
  return /** @type{?proto.google.protobuf.Timestamp} */ (
1724
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
2066
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
1725
2067
  };
1726
2068
 
1727
2069
 
@@ -1730,7 +2072,7 @@ proto.Drumtracker.TrackerProto.prototype.getActivationDate = function() {
1730
2072
  * @return {!proto.Drumtracker.TrackerProto} returns this
1731
2073
  */
1732
2074
  proto.Drumtracker.TrackerProto.prototype.setActivationDate = function(value) {
1733
- return jspb.Message.setWrapperField(this, 4, value);
2075
+ return jspb.Message.setWrapperField(this, 5, value);
1734
2076
  };
1735
2077
 
1736
2078
 
@@ -1748,16 +2090,16 @@ proto.Drumtracker.TrackerProto.prototype.clearActivationDate = function() {
1748
2090
  * @return {boolean}
1749
2091
  */
1750
2092
  proto.Drumtracker.TrackerProto.prototype.hasActivationDate = function() {
1751
- return jspb.Message.getField(this, 4) != null;
2093
+ return jspb.Message.getField(this, 5) != null;
1752
2094
  };
1753
2095
 
1754
2096
 
1755
2097
  /**
1756
- * optional int32 rotations = 5;
2098
+ * optional int32 rotations = 6;
1757
2099
  * @return {number}
1758
2100
  */
1759
2101
  proto.Drumtracker.TrackerProto.prototype.getRotations = function() {
1760
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
2102
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
1761
2103
  };
1762
2104
 
1763
2105
 
@@ -1766,16 +2108,16 @@ proto.Drumtracker.TrackerProto.prototype.getRotations = function() {
1766
2108
  * @return {!proto.Drumtracker.TrackerProto} returns this
1767
2109
  */
1768
2110
  proto.Drumtracker.TrackerProto.prototype.setRotations = function(value) {
1769
- return jspb.Message.setProto3IntField(this, 5, value);
2111
+ return jspb.Message.setProto3IntField(this, 6, value);
1770
2112
  };
1771
2113
 
1772
2114
 
1773
2115
  /**
1774
- * optional bool deactivated = 6;
2116
+ * optional bool deactivated = 7;
1775
2117
  * @return {boolean}
1776
2118
  */
1777
2119
  proto.Drumtracker.TrackerProto.prototype.getDeactivated = function() {
1778
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
2120
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
1779
2121
  };
1780
2122
 
1781
2123
 
@@ -1784,16 +2126,16 @@ proto.Drumtracker.TrackerProto.prototype.getDeactivated = function() {
1784
2126
  * @return {!proto.Drumtracker.TrackerProto} returns this
1785
2127
  */
1786
2128
  proto.Drumtracker.TrackerProto.prototype.setDeactivated = function(value) {
1787
- return jspb.Message.setProto3BooleanField(this, 6, value);
2129
+ return jspb.Message.setProto3BooleanField(this, 7, value);
1788
2130
  };
1789
2131
 
1790
2132
 
1791
2133
  /**
1792
- * optional string deactivation_reason = 7;
2134
+ * optional string deactivation_reason = 8;
1793
2135
  * @return {string}
1794
2136
  */
1795
2137
  proto.Drumtracker.TrackerProto.prototype.getDeactivationReason = function() {
1796
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
2138
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1797
2139
  };
1798
2140
 
1799
2141
 
@@ -1802,17 +2144,17 @@ proto.Drumtracker.TrackerProto.prototype.getDeactivationReason = function() {
1802
2144
  * @return {!proto.Drumtracker.TrackerProto} returns this
1803
2145
  */
1804
2146
  proto.Drumtracker.TrackerProto.prototype.setDeactivationReason = function(value) {
1805
- return jspb.Message.setProto3StringField(this, 7, value);
2147
+ return jspb.Message.setProto3StringField(this, 8, value);
1806
2148
  };
1807
2149
 
1808
2150
 
1809
2151
  /**
1810
- * optional google.protobuf.Timestamp deactivation_date = 8;
2152
+ * optional google.protobuf.Timestamp deactivation_date = 9;
1811
2153
  * @return {?proto.google.protobuf.Timestamp}
1812
2154
  */
1813
2155
  proto.Drumtracker.TrackerProto.prototype.getDeactivationDate = function() {
1814
2156
  return /** @type{?proto.google.protobuf.Timestamp} */ (
1815
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8));
2157
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9));
1816
2158
  };
1817
2159
 
1818
2160
 
@@ -1821,7 +2163,7 @@ proto.Drumtracker.TrackerProto.prototype.getDeactivationDate = function() {
1821
2163
  * @return {!proto.Drumtracker.TrackerProto} returns this
1822
2164
  */
1823
2165
  proto.Drumtracker.TrackerProto.prototype.setDeactivationDate = function(value) {
1824
- return jspb.Message.setWrapperField(this, 8, value);
2166
+ return jspb.Message.setWrapperField(this, 9, value);
1825
2167
  };
1826
2168
 
1827
2169
 
@@ -1839,25 +2181,7 @@ proto.Drumtracker.TrackerProto.prototype.clearDeactivationDate = function() {
1839
2181
  * @return {boolean}
1840
2182
  */
1841
2183
  proto.Drumtracker.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.Drumtracker.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.Drumtracker.TrackerProto} returns this
1858
- */
1859
- proto.Drumtracker.TrackerProto.prototype.setDrumNumber = function(value) {
1860
- return jspb.Message.setProto3IntField(this, 9, value);
2184
+ return jspb.Message.getField(this, 9) != null;
1861
2185
  };
1862
2186
 
1863
2187
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "grpc-web": "^1.4.2",
6
6
  "ts-protoc-gen": "^0.15.0"
7
7
  },
8
- "version": "2.1.0-drumtracker.10",
8
+ "version": "2.1.0-drumtracker.12",
9
9
  "description": "Generated proto files.",
10
10
  "author": "TKF",
11
11
  "files": [