@aceplus/smartace-api 2.1.0-drumtracker.11 → 2.1.0-drumtracker.13
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.
package/drumtracker.drum_pb.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty
|
|
|
6
6
|
import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
|
|
7
7
|
import * as google_api_annotations_pb from "./google/api/annotations_pb";
|
|
8
8
|
import * as platform_pagination_pb from "./platform.pagination_pb";
|
|
9
|
+
import * as drumtracker_tracker_pb from "./drumtracker.tracker_pb";
|
|
9
10
|
|
|
10
11
|
export class DrumProto extends jspb.Message {
|
|
11
12
|
getId(): number;
|
|
@@ -53,6 +54,11 @@ export class DrumProto extends jspb.Message {
|
|
|
53
54
|
getCustomerReference(): string;
|
|
54
55
|
setCustomerReference(value: string): void;
|
|
55
56
|
|
|
57
|
+
clearEventsList(): void;
|
|
58
|
+
getEventsList(): Array<drumtracker_tracker_pb.TrackerProto.Event>;
|
|
59
|
+
setEventsList(value: Array<drumtracker_tracker_pb.TrackerProto.Event>): void;
|
|
60
|
+
addEvents(value?: drumtracker_tracker_pb.TrackerProto.Event, index?: number): drumtracker_tracker_pb.TrackerProto.Event;
|
|
61
|
+
|
|
56
62
|
serializeBinary(): Uint8Array;
|
|
57
63
|
toObject(includeInstance?: boolean): DrumProto.AsObject;
|
|
58
64
|
static toObject(includeInstance: boolean, msg: DrumProto): DrumProto.AsObject;
|
|
@@ -78,6 +84,7 @@ export namespace DrumProto {
|
|
|
78
84
|
lastUpdate?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
79
85
|
salesReference: string,
|
|
80
86
|
customerReference: string,
|
|
87
|
+
eventsList: Array<drumtracker_tracker_pb.TrackerProto.Event.AsObject>,
|
|
81
88
|
}
|
|
82
89
|
|
|
83
90
|
export class CableType extends jspb.Message {
|
package/drumtracker.drum_pb.js
CHANGED
|
@@ -29,6 +29,8 @@ var google_api_annotations_pb = require('./google/api/annotations_pb.js');
|
|
|
29
29
|
goog.object.extend(proto, google_api_annotations_pb);
|
|
30
30
|
var platform_pagination_pb = require('./platform.pagination_pb.js');
|
|
31
31
|
goog.object.extend(proto, platform_pagination_pb);
|
|
32
|
+
var drumtracker_tracker_pb = require('./drumtracker.tracker_pb.js');
|
|
33
|
+
goog.object.extend(proto, drumtracker_tracker_pb);
|
|
32
34
|
goog.exportSymbol('proto.Drumtracker.DrumProto', null, global);
|
|
33
35
|
goog.exportSymbol('proto.Drumtracker.DrumProto.CableType', null, global);
|
|
34
36
|
goog.exportSymbol('proto.Drumtracker.DrumProto.CountReply', null, global);
|
|
@@ -57,7 +59,7 @@ goog.exportSymbol('proto.Drumtracker.DrumProto.UpdateRequest', null, global);
|
|
|
57
59
|
* @constructor
|
|
58
60
|
*/
|
|
59
61
|
proto.Drumtracker.DrumProto = function(opt_data) {
|
|
60
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
62
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.Drumtracker.DrumProto.repeatedFields_, null);
|
|
61
63
|
};
|
|
62
64
|
goog.inherits(proto.Drumtracker.DrumProto, jspb.Message);
|
|
63
65
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -362,6 +364,13 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
362
364
|
proto.Drumtracker.DrumProto.DrumFilters.displayName = 'proto.Drumtracker.DrumProto.DrumFilters';
|
|
363
365
|
}
|
|
364
366
|
|
|
367
|
+
/**
|
|
368
|
+
* List of repeated fields within this message type.
|
|
369
|
+
* @private {!Array<number>}
|
|
370
|
+
* @const
|
|
371
|
+
*/
|
|
372
|
+
proto.Drumtracker.DrumProto.repeatedFields_ = [14];
|
|
373
|
+
|
|
365
374
|
|
|
366
375
|
|
|
367
376
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -405,7 +414,9 @@ proto.Drumtracker.DrumProto.toObject = function(includeInstance, msg) {
|
|
|
405
414
|
temperature: jspb.Message.getFieldWithDefault(msg, 10, 0),
|
|
406
415
|
lastUpdate: (f = msg.getLastUpdate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
407
416
|
salesReference: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
408
|
-
customerReference: jspb.Message.getFieldWithDefault(msg, 13, "")
|
|
417
|
+
customerReference: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
418
|
+
eventsList: jspb.Message.toObjectList(msg.getEventsList(),
|
|
419
|
+
drumtracker_tracker_pb.TrackerProto.Event.toObject, includeInstance)
|
|
409
420
|
};
|
|
410
421
|
|
|
411
422
|
if (includeInstance) {
|
|
@@ -497,6 +508,11 @@ proto.Drumtracker.DrumProto.deserializeBinaryFromReader = function(msg, reader)
|
|
|
497
508
|
var value = /** @type {string} */ (reader.readString());
|
|
498
509
|
msg.setCustomerReference(value);
|
|
499
510
|
break;
|
|
511
|
+
case 14:
|
|
512
|
+
var value = new drumtracker_tracker_pb.TrackerProto.Event;
|
|
513
|
+
reader.readMessage(value,drumtracker_tracker_pb.TrackerProto.Event.deserializeBinaryFromReader);
|
|
514
|
+
msg.addEvents(value);
|
|
515
|
+
break;
|
|
500
516
|
default:
|
|
501
517
|
reader.skipField();
|
|
502
518
|
break;
|
|
@@ -620,6 +636,14 @@ proto.Drumtracker.DrumProto.serializeBinaryToWriter = function(message, writer)
|
|
|
620
636
|
f
|
|
621
637
|
);
|
|
622
638
|
}
|
|
639
|
+
f = message.getEventsList();
|
|
640
|
+
if (f.length > 0) {
|
|
641
|
+
writer.writeRepeatedMessage(
|
|
642
|
+
14,
|
|
643
|
+
f,
|
|
644
|
+
drumtracker_tracker_pb.TrackerProto.Event.serializeBinaryToWriter
|
|
645
|
+
);
|
|
646
|
+
}
|
|
623
647
|
};
|
|
624
648
|
|
|
625
649
|
|
|
@@ -4023,4 +4047,42 @@ proto.Drumtracker.DrumProto.prototype.setCustomerReference = function(value) {
|
|
|
4023
4047
|
};
|
|
4024
4048
|
|
|
4025
4049
|
|
|
4050
|
+
/**
|
|
4051
|
+
* repeated TrackerProto.Event events = 14;
|
|
4052
|
+
* @return {!Array<!proto.Drumtracker.TrackerProto.Event>}
|
|
4053
|
+
*/
|
|
4054
|
+
proto.Drumtracker.DrumProto.prototype.getEventsList = function() {
|
|
4055
|
+
return /** @type{!Array<!proto.Drumtracker.TrackerProto.Event>} */ (
|
|
4056
|
+
jspb.Message.getRepeatedWrapperField(this, drumtracker_tracker_pb.TrackerProto.Event, 14));
|
|
4057
|
+
};
|
|
4058
|
+
|
|
4059
|
+
|
|
4060
|
+
/**
|
|
4061
|
+
* @param {!Array<!proto.Drumtracker.TrackerProto.Event>} value
|
|
4062
|
+
* @return {!proto.Drumtracker.DrumProto} returns this
|
|
4063
|
+
*/
|
|
4064
|
+
proto.Drumtracker.DrumProto.prototype.setEventsList = function(value) {
|
|
4065
|
+
return jspb.Message.setRepeatedWrapperField(this, 14, value);
|
|
4066
|
+
};
|
|
4067
|
+
|
|
4068
|
+
|
|
4069
|
+
/**
|
|
4070
|
+
* @param {!proto.Drumtracker.TrackerProto.Event=} opt_value
|
|
4071
|
+
* @param {number=} opt_index
|
|
4072
|
+
* @return {!proto.Drumtracker.TrackerProto.Event}
|
|
4073
|
+
*/
|
|
4074
|
+
proto.Drumtracker.DrumProto.prototype.addEvents = function(opt_value, opt_index) {
|
|
4075
|
+
return jspb.Message.addToRepeatedWrapperField(this, 14, opt_value, proto.Drumtracker.TrackerProto.Event, opt_index);
|
|
4076
|
+
};
|
|
4077
|
+
|
|
4078
|
+
|
|
4079
|
+
/**
|
|
4080
|
+
* Clears the list making it empty but non-null.
|
|
4081
|
+
* @return {!proto.Drumtracker.DrumProto} returns this
|
|
4082
|
+
*/
|
|
4083
|
+
proto.Drumtracker.DrumProto.prototype.clearEventsList = function() {
|
|
4084
|
+
return this.setEventsList([]);
|
|
4085
|
+
};
|
|
4086
|
+
|
|
4087
|
+
|
|
4026
4088
|
goog.object.extend(exports, proto.Drumtracker);
|
|
@@ -150,6 +150,9 @@ export namespace TrackerProto {
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
export class UpdateRequest extends jspb.Message {
|
|
153
|
+
getUid(): string;
|
|
154
|
+
setUid(value: string): void;
|
|
155
|
+
|
|
153
156
|
serializeBinary(): Uint8Array;
|
|
154
157
|
toObject(includeInstance?: boolean): UpdateRequest.AsObject;
|
|
155
158
|
static toObject(includeInstance: boolean, msg: UpdateRequest): UpdateRequest.AsObject;
|
|
@@ -162,6 +165,7 @@ export namespace TrackerProto {
|
|
|
162
165
|
|
|
163
166
|
export namespace UpdateRequest {
|
|
164
167
|
export type AsObject = {
|
|
168
|
+
uid: string,
|
|
165
169
|
}
|
|
166
170
|
}
|
|
167
171
|
|
|
@@ -1085,7 +1085,7 @@ proto.Drumtracker.TrackerProto.UpdateRequest.prototype.toObject = function(opt_i
|
|
|
1085
1085
|
*/
|
|
1086
1086
|
proto.Drumtracker.TrackerProto.UpdateRequest.toObject = function(includeInstance, msg) {
|
|
1087
1087
|
var f, obj = {
|
|
1088
|
-
|
|
1088
|
+
uid: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
1089
1089
|
};
|
|
1090
1090
|
|
|
1091
1091
|
if (includeInstance) {
|
|
@@ -1122,6 +1122,10 @@ proto.Drumtracker.TrackerProto.UpdateRequest.deserializeBinaryFromReader = funct
|
|
|
1122
1122
|
}
|
|
1123
1123
|
var field = reader.getFieldNumber();
|
|
1124
1124
|
switch (field) {
|
|
1125
|
+
case 1:
|
|
1126
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1127
|
+
msg.setUid(value);
|
|
1128
|
+
break;
|
|
1125
1129
|
default:
|
|
1126
1130
|
reader.skipField();
|
|
1127
1131
|
break;
|
|
@@ -1151,6 +1155,31 @@ proto.Drumtracker.TrackerProto.UpdateRequest.prototype.serializeBinary = functio
|
|
|
1151
1155
|
*/
|
|
1152
1156
|
proto.Drumtracker.TrackerProto.UpdateRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1153
1157
|
var f = undefined;
|
|
1158
|
+
f = message.getUid();
|
|
1159
|
+
if (f.length > 0) {
|
|
1160
|
+
writer.writeString(
|
|
1161
|
+
1,
|
|
1162
|
+
f
|
|
1163
|
+
);
|
|
1164
|
+
}
|
|
1165
|
+
};
|
|
1166
|
+
|
|
1167
|
+
|
|
1168
|
+
/**
|
|
1169
|
+
* optional string uid = 1;
|
|
1170
|
+
* @return {string}
|
|
1171
|
+
*/
|
|
1172
|
+
proto.Drumtracker.TrackerProto.UpdateRequest.prototype.getUid = function() {
|
|
1173
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1174
|
+
};
|
|
1175
|
+
|
|
1176
|
+
|
|
1177
|
+
/**
|
|
1178
|
+
* @param {string} value
|
|
1179
|
+
* @return {!proto.Drumtracker.TrackerProto.UpdateRequest} returns this
|
|
1180
|
+
*/
|
|
1181
|
+
proto.Drumtracker.TrackerProto.UpdateRequest.prototype.setUid = function(value) {
|
|
1182
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1154
1183
|
};
|
|
1155
1184
|
|
|
1156
1185
|
|