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

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;
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
+ }
69
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,17 +145,11 @@ 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;
112
-
113
153
  serializeBinary(): Uint8Array;
114
154
  toObject(includeInstance?: boolean): UpdateRequest.AsObject;
115
155
  static toObject(includeInstance: boolean, msg: UpdateRequest): UpdateRequest.AsObject;
@@ -122,14 +162,12 @@ export namespace TrackerProto {
122
162
 
123
163
  export namespace UpdateRequest {
124
164
  export type AsObject = {
125
- id: number,
126
- drumNumber: number,
127
165
  }
128
166
  }
129
167
 
130
168
  export class DeleteRequest extends jspb.Message {
131
- getId(): number;
132
- setId(value: number): void;
169
+ getUid(): string;
170
+ setUid(value: string): void;
133
171
 
134
172
  serializeBinary(): Uint8Array;
135
173
  toObject(includeInstance?: boolean): DeleteRequest.AsObject;
@@ -143,7 +181,7 @@ export namespace TrackerProto {
143
181
 
144
182
  export namespace DeleteRequest {
145
183
  export type AsObject = {
146
- id: number,
184
+ uid: string,
147
185
  }
148
186
  }
149
187
 
@@ -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
+
736
1089
  };
737
1090
 
738
1091
  if (includeInstance) {
@@ -769,14 +1122,6 @@ proto.Drumtracker.TrackerProto.UpdateRequest.deserializeBinaryFromReader = funct
769
1122
  }
770
1123
  var field = reader.getFieldNumber();
771
1124
  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
1125
  default:
781
1126
  reader.skipField();
782
1127
  break;
@@ -806,56 +1151,6 @@ proto.Drumtracker.TrackerProto.UpdateRequest.prototype.serializeBinary = functio
806
1151
  */
807
1152
  proto.Drumtracker.TrackerProto.UpdateRequest.serializeBinaryToWriter = function(message, writer) {
808
1153
  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.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}
847
- */
848
- proto.Drumtracker.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.Drumtracker.TrackerProto.UpdateRequest} returns this
856
- */
857
- proto.Drumtracker.TrackerProto.UpdateRequest.prototype.setDrumNumber = function(value) {
858
- return jspb.Message.setProto3IntField(this, 2, value);
859
1154
  };
860
1155
 
861
1156
 
@@ -891,7 +1186,7 @@ proto.Drumtracker.TrackerProto.DeleteRequest.prototype.toObject = function(opt_i
891
1186
  */
892
1187
  proto.Drumtracker.TrackerProto.DeleteRequest.toObject = function(includeInstance, msg) {
893
1188
  var f, obj = {
894
- id: jspb.Message.getFieldWithDefault(msg, 1, 0)
1189
+ uid: jspb.Message.getFieldWithDefault(msg, 1, "")
895
1190
  };
896
1191
 
897
1192
  if (includeInstance) {
@@ -929,8 +1224,8 @@ proto.Drumtracker.TrackerProto.DeleteRequest.deserializeBinaryFromReader = funct
929
1224
  var field = reader.getFieldNumber();
930
1225
  switch (field) {
931
1226
  case 1:
932
- var value = /** @type {number} */ (reader.readInt64());
933
- msg.setId(value);
1227
+ var value = /** @type {string} */ (reader.readString());
1228
+ msg.setUid(value);
934
1229
  break;
935
1230
  default:
936
1231
  reader.skipField();
@@ -961,9 +1256,9 @@ proto.Drumtracker.TrackerProto.DeleteRequest.prototype.serializeBinary = functio
961
1256
  */
962
1257
  proto.Drumtracker.TrackerProto.DeleteRequest.serializeBinaryToWriter = function(message, writer) {
963
1258
  var f = undefined;
964
- f = message.getId();
965
- if (f !== 0) {
966
- writer.writeInt64(
1259
+ f = message.getUid();
1260
+ if (f.length > 0) {
1261
+ writer.writeString(
967
1262
  1,
968
1263
  f
969
1264
  );
@@ -972,20 +1267,20 @@ proto.Drumtracker.TrackerProto.DeleteRequest.serializeBinaryToWriter = function(
972
1267
 
973
1268
 
974
1269
  /**
975
- * optional int64 id = 1;
976
- * @return {number}
1270
+ * optional string uid = 1;
1271
+ * @return {string}
977
1272
  */
978
- proto.Drumtracker.TrackerProto.DeleteRequest.prototype.getId = function() {
979
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1273
+ proto.Drumtracker.TrackerProto.DeleteRequest.prototype.getUid = function() {
1274
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
980
1275
  };
981
1276
 
982
1277
 
983
1278
  /**
984
- * @param {number} value
1279
+ * @param {string} value
985
1280
  * @return {!proto.Drumtracker.TrackerProto.DeleteRequest} returns this
986
1281
  */
987
- proto.Drumtracker.TrackerProto.DeleteRequest.prototype.setId = function(value) {
988
- return jspb.Message.setProto3IntField(this, 1, value);
1282
+ proto.Drumtracker.TrackerProto.DeleteRequest.prototype.setUid = function(value) {
1283
+ return jspb.Message.setProto3StringField(this, 1, value);
989
1284
  };
990
1285
 
991
1286
 
@@ -1643,11 +1938,29 @@ proto.Drumtracker.TrackerProto.TrackerFilters.prototype.setSearch = function(val
1643
1938
 
1644
1939
 
1645
1940
  /**
1646
- * optional int64 id = 1;
1941
+ * optional string uid = 1;
1942
+ * @return {string}
1943
+ */
1944
+ proto.Drumtracker.TrackerProto.prototype.getUid = function() {
1945
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1946
+ };
1947
+
1948
+
1949
+ /**
1950
+ * @param {string} value
1951
+ * @return {!proto.Drumtracker.TrackerProto} returns this
1952
+ */
1953
+ proto.Drumtracker.TrackerProto.prototype.setUid = function(value) {
1954
+ return jspb.Message.setProto3StringField(this, 1, value);
1955
+ };
1956
+
1957
+
1958
+ /**
1959
+ * optional int64 drum_id = 2;
1647
1960
  * @return {number}
1648
1961
  */
1649
- proto.Drumtracker.TrackerProto.prototype.getId = function() {
1650
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1962
+ proto.Drumtracker.TrackerProto.prototype.getDrumId = function() {
1963
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1651
1964
  };
1652
1965
 
1653
1966
 
@@ -1655,17 +1968,17 @@ proto.Drumtracker.TrackerProto.prototype.getId = function() {
1655
1968
  * @param {number} value
1656
1969
  * @return {!proto.Drumtracker.TrackerProto} returns this
1657
1970
  */
1658
- proto.Drumtracker.TrackerProto.prototype.setId = function(value) {
1659
- return jspb.Message.setProto3IntField(this, 1, value);
1971
+ proto.Drumtracker.TrackerProto.prototype.setDrumId = function(value) {
1972
+ return jspb.Message.setProto3IntField(this, 2, value);
1660
1973
  };
1661
1974
 
1662
1975
 
1663
1976
  /**
1664
- * optional int32 battery_voltage = 2;
1977
+ * optional double battery_voltage = 3;
1665
1978
  * @return {number}
1666
1979
  */
1667
1980
  proto.Drumtracker.TrackerProto.prototype.getBatteryVoltage = function() {
1668
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1981
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
1669
1982
  };
1670
1983
 
1671
1984
 
@@ -1674,17 +1987,17 @@ proto.Drumtracker.TrackerProto.prototype.getBatteryVoltage = function() {
1674
1987
  * @return {!proto.Drumtracker.TrackerProto} returns this
1675
1988
  */
1676
1989
  proto.Drumtracker.TrackerProto.prototype.setBatteryVoltage = function(value) {
1677
- return jspb.Message.setProto3IntField(this, 2, value);
1990
+ return jspb.Message.setProto3FloatField(this, 3, value);
1678
1991
  };
1679
1992
 
1680
1993
 
1681
1994
  /**
1682
- * optional google.protobuf.Timestamp last_update = 3;
1995
+ * optional google.protobuf.Timestamp last_event = 4;
1683
1996
  * @return {?proto.google.protobuf.Timestamp}
1684
1997
  */
1685
- proto.Drumtracker.TrackerProto.prototype.getLastUpdate = function() {
1998
+ proto.Drumtracker.TrackerProto.prototype.getLastEvent = function() {
1686
1999
  return /** @type{?proto.google.protobuf.Timestamp} */ (
1687
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
2000
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
1688
2001
  };
1689
2002
 
1690
2003
 
@@ -1692,8 +2005,8 @@ proto.Drumtracker.TrackerProto.prototype.getLastUpdate = function() {
1692
2005
  * @param {?proto.google.protobuf.Timestamp|undefined} value
1693
2006
  * @return {!proto.Drumtracker.TrackerProto} returns this
1694
2007
  */
1695
- proto.Drumtracker.TrackerProto.prototype.setLastUpdate = function(value) {
1696
- return jspb.Message.setWrapperField(this, 3, value);
2008
+ proto.Drumtracker.TrackerProto.prototype.setLastEvent = function(value) {
2009
+ return jspb.Message.setWrapperField(this, 4, value);
1697
2010
  };
1698
2011
 
1699
2012
 
@@ -1701,8 +2014,8 @@ proto.Drumtracker.TrackerProto.prototype.setLastUpdate = function(value) {
1701
2014
  * Clears the message field making it undefined.
1702
2015
  * @return {!proto.Drumtracker.TrackerProto} returns this
1703
2016
  */
1704
- proto.Drumtracker.TrackerProto.prototype.clearLastUpdate = function() {
1705
- return this.setLastUpdate(undefined);
2017
+ proto.Drumtracker.TrackerProto.prototype.clearLastEvent = function() {
2018
+ return this.setLastEvent(undefined);
1706
2019
  };
1707
2020
 
1708
2021
 
@@ -1710,18 +2023,18 @@ proto.Drumtracker.TrackerProto.prototype.clearLastUpdate = function() {
1710
2023
  * Returns whether this field is set.
1711
2024
  * @return {boolean}
1712
2025
  */
1713
- proto.Drumtracker.TrackerProto.prototype.hasLastUpdate = function() {
1714
- return jspb.Message.getField(this, 3) != null;
2026
+ proto.Drumtracker.TrackerProto.prototype.hasLastEvent = function() {
2027
+ return jspb.Message.getField(this, 4) != null;
1715
2028
  };
1716
2029
 
1717
2030
 
1718
2031
  /**
1719
- * optional google.protobuf.Timestamp activation_date = 4;
2032
+ * optional google.protobuf.Timestamp activation_date = 5;
1720
2033
  * @return {?proto.google.protobuf.Timestamp}
1721
2034
  */
1722
2035
  proto.Drumtracker.TrackerProto.prototype.getActivationDate = function() {
1723
2036
  return /** @type{?proto.google.protobuf.Timestamp} */ (
1724
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
2037
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
1725
2038
  };
1726
2039
 
1727
2040
 
@@ -1730,7 +2043,7 @@ proto.Drumtracker.TrackerProto.prototype.getActivationDate = function() {
1730
2043
  * @return {!proto.Drumtracker.TrackerProto} returns this
1731
2044
  */
1732
2045
  proto.Drumtracker.TrackerProto.prototype.setActivationDate = function(value) {
1733
- return jspb.Message.setWrapperField(this, 4, value);
2046
+ return jspb.Message.setWrapperField(this, 5, value);
1734
2047
  };
1735
2048
 
1736
2049
 
@@ -1748,16 +2061,16 @@ proto.Drumtracker.TrackerProto.prototype.clearActivationDate = function() {
1748
2061
  * @return {boolean}
1749
2062
  */
1750
2063
  proto.Drumtracker.TrackerProto.prototype.hasActivationDate = function() {
1751
- return jspb.Message.getField(this, 4) != null;
2064
+ return jspb.Message.getField(this, 5) != null;
1752
2065
  };
1753
2066
 
1754
2067
 
1755
2068
  /**
1756
- * optional int32 rotations = 5;
2069
+ * optional int32 rotations = 6;
1757
2070
  * @return {number}
1758
2071
  */
1759
2072
  proto.Drumtracker.TrackerProto.prototype.getRotations = function() {
1760
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
2073
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
1761
2074
  };
1762
2075
 
1763
2076
 
@@ -1766,16 +2079,16 @@ proto.Drumtracker.TrackerProto.prototype.getRotations = function() {
1766
2079
  * @return {!proto.Drumtracker.TrackerProto} returns this
1767
2080
  */
1768
2081
  proto.Drumtracker.TrackerProto.prototype.setRotations = function(value) {
1769
- return jspb.Message.setProto3IntField(this, 5, value);
2082
+ return jspb.Message.setProto3IntField(this, 6, value);
1770
2083
  };
1771
2084
 
1772
2085
 
1773
2086
  /**
1774
- * optional bool deactivated = 6;
2087
+ * optional bool deactivated = 7;
1775
2088
  * @return {boolean}
1776
2089
  */
1777
2090
  proto.Drumtracker.TrackerProto.prototype.getDeactivated = function() {
1778
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
2091
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
1779
2092
  };
1780
2093
 
1781
2094
 
@@ -1784,16 +2097,16 @@ proto.Drumtracker.TrackerProto.prototype.getDeactivated = function() {
1784
2097
  * @return {!proto.Drumtracker.TrackerProto} returns this
1785
2098
  */
1786
2099
  proto.Drumtracker.TrackerProto.prototype.setDeactivated = function(value) {
1787
- return jspb.Message.setProto3BooleanField(this, 6, value);
2100
+ return jspb.Message.setProto3BooleanField(this, 7, value);
1788
2101
  };
1789
2102
 
1790
2103
 
1791
2104
  /**
1792
- * optional string deactivation_reason = 7;
2105
+ * optional string deactivation_reason = 8;
1793
2106
  * @return {string}
1794
2107
  */
1795
2108
  proto.Drumtracker.TrackerProto.prototype.getDeactivationReason = function() {
1796
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
2109
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1797
2110
  };
1798
2111
 
1799
2112
 
@@ -1802,17 +2115,17 @@ proto.Drumtracker.TrackerProto.prototype.getDeactivationReason = function() {
1802
2115
  * @return {!proto.Drumtracker.TrackerProto} returns this
1803
2116
  */
1804
2117
  proto.Drumtracker.TrackerProto.prototype.setDeactivationReason = function(value) {
1805
- return jspb.Message.setProto3StringField(this, 7, value);
2118
+ return jspb.Message.setProto3StringField(this, 8, value);
1806
2119
  };
1807
2120
 
1808
2121
 
1809
2122
  /**
1810
- * optional google.protobuf.Timestamp deactivation_date = 8;
2123
+ * optional google.protobuf.Timestamp deactivation_date = 9;
1811
2124
  * @return {?proto.google.protobuf.Timestamp}
1812
2125
  */
1813
2126
  proto.Drumtracker.TrackerProto.prototype.getDeactivationDate = function() {
1814
2127
  return /** @type{?proto.google.protobuf.Timestamp} */ (
1815
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8));
2128
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9));
1816
2129
  };
1817
2130
 
1818
2131
 
@@ -1821,7 +2134,7 @@ proto.Drumtracker.TrackerProto.prototype.getDeactivationDate = function() {
1821
2134
  * @return {!proto.Drumtracker.TrackerProto} returns this
1822
2135
  */
1823
2136
  proto.Drumtracker.TrackerProto.prototype.setDeactivationDate = function(value) {
1824
- return jspb.Message.setWrapperField(this, 8, value);
2137
+ return jspb.Message.setWrapperField(this, 9, value);
1825
2138
  };
1826
2139
 
1827
2140
 
@@ -1839,25 +2152,7 @@ proto.Drumtracker.TrackerProto.prototype.clearDeactivationDate = function() {
1839
2152
  * @return {boolean}
1840
2153
  */
1841
2154
  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);
2155
+ return jspb.Message.getField(this, 9) != null;
1861
2156
  };
1862
2157
 
1863
2158
 
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.11",
9
9
  "description": "Generated proto files.",
10
10
  "author": "TKF",
11
11
  "files": [