@aceplus/smartace-api 3.4.0-alpha.6 → 3.4.0-alpha.8
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/package.json +1 -1
- package/spic.asset_pb.d.ts +59 -18
- package/spic.asset_pb.js +240 -81
package/package.json
CHANGED
package/spic.asset_pb.d.ts
CHANGED
|
@@ -64,10 +64,10 @@ export class AssetProto extends jspb.Message {
|
|
|
64
64
|
getBatteryStatus(): AssetProto.BatteryStatusMap[keyof AssetProto.BatteryStatusMap];
|
|
65
65
|
setBatteryStatus(value: AssetProto.BatteryStatusMap[keyof AssetProto.BatteryStatusMap]): void;
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
67
|
+
clearStatesList(): void;
|
|
68
|
+
getStatesList(): Array<AssetProto.ComponentState>;
|
|
69
|
+
setStatesList(value: Array<AssetProto.ComponentState>): void;
|
|
70
|
+
addStates(value?: AssetProto.ComponentState, index?: number): AssetProto.ComponentState;
|
|
71
71
|
|
|
72
72
|
getDeviceType(): AssetProto.DeviceTypeMap[keyof AssetProto.DeviceTypeMap];
|
|
73
73
|
setDeviceType(value: AssetProto.DeviceTypeMap[keyof AssetProto.DeviceTypeMap]): void;
|
|
@@ -100,7 +100,7 @@ export namespace AssetProto {
|
|
|
100
100
|
lastConfigUpdated?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
101
101
|
spicType: AssetProto.SpicTypeMap[keyof AssetProto.SpicTypeMap],
|
|
102
102
|
batteryStatus: AssetProto.BatteryStatusMap[keyof AssetProto.BatteryStatusMap],
|
|
103
|
-
|
|
103
|
+
statesList: Array<AssetProto.ComponentState.AsObject>,
|
|
104
104
|
deviceType: AssetProto.DeviceTypeMap[keyof AssetProto.DeviceTypeMap],
|
|
105
105
|
}
|
|
106
106
|
|
|
@@ -482,39 +482,55 @@ export namespace AssetProto {
|
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
484
|
|
|
485
|
-
export class
|
|
486
|
-
|
|
487
|
-
|
|
485
|
+
export class ComponentState extends jspb.Message {
|
|
486
|
+
getId(): string;
|
|
487
|
+
setId(value: string): void;
|
|
488
488
|
|
|
489
|
-
|
|
490
|
-
|
|
489
|
+
getComponentIdentifier(): ComponentIdentifierMap[keyof ComponentIdentifierMap];
|
|
490
|
+
setComponentIdentifier(value: ComponentIdentifierMap[keyof ComponentIdentifierMap]): void;
|
|
491
491
|
|
|
492
492
|
getDomain(): string;
|
|
493
493
|
setDomain(value: string): void;
|
|
494
494
|
|
|
495
|
+
getValue(): string;
|
|
496
|
+
setValue(value: string): void;
|
|
497
|
+
|
|
498
|
+
hasLastChanged(): boolean;
|
|
499
|
+
clearLastChanged(): void;
|
|
500
|
+
getLastChanged(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
501
|
+
setLastChanged(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
502
|
+
|
|
495
503
|
hasLastUpdated(): boolean;
|
|
496
504
|
clearLastUpdated(): void;
|
|
497
505
|
getLastUpdated(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
498
506
|
setLastUpdated(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
499
507
|
|
|
508
|
+
hasLastReported(): boolean;
|
|
509
|
+
clearLastReported(): void;
|
|
510
|
+
getLastReported(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
511
|
+
setLastReported(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
512
|
+
|
|
500
513
|
getAttributesMap(): jspb.Map<string, string>;
|
|
501
514
|
clearAttributesMap(): void;
|
|
502
515
|
serializeBinary(): Uint8Array;
|
|
503
|
-
toObject(includeInstance?: boolean):
|
|
504
|
-
static toObject(includeInstance: boolean, msg:
|
|
516
|
+
toObject(includeInstance?: boolean): ComponentState.AsObject;
|
|
517
|
+
static toObject(includeInstance: boolean, msg: ComponentState): ComponentState.AsObject;
|
|
505
518
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
506
519
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
507
|
-
static serializeBinaryToWriter(message:
|
|
508
|
-
static deserializeBinary(bytes: Uint8Array):
|
|
509
|
-
static deserializeBinaryFromReader(message:
|
|
520
|
+
static serializeBinaryToWriter(message: ComponentState, writer: jspb.BinaryWriter): void;
|
|
521
|
+
static deserializeBinary(bytes: Uint8Array): ComponentState;
|
|
522
|
+
static deserializeBinaryFromReader(message: ComponentState, reader: jspb.BinaryReader): ComponentState;
|
|
510
523
|
}
|
|
511
524
|
|
|
512
|
-
export namespace
|
|
525
|
+
export namespace ComponentState {
|
|
513
526
|
export type AsObject = {
|
|
514
|
-
|
|
515
|
-
|
|
527
|
+
id: string,
|
|
528
|
+
componentIdentifier: ComponentIdentifierMap[keyof ComponentIdentifierMap],
|
|
516
529
|
domain: string,
|
|
530
|
+
value: string,
|
|
531
|
+
lastChanged?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
517
532
|
lastUpdated?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
533
|
+
lastReported?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
518
534
|
attributesMap: Array<[string, string]>,
|
|
519
535
|
}
|
|
520
536
|
}
|
|
@@ -612,3 +628,28 @@ export namespace AssetWithLocationAndDistance {
|
|
|
612
628
|
}
|
|
613
629
|
}
|
|
614
630
|
|
|
631
|
+
export interface ComponentIdentifierMap {
|
|
632
|
+
ENCLOSURE_TEMPERATURE: 0;
|
|
633
|
+
ENCLOSURE_HUMIDITY: 1;
|
|
634
|
+
ENCLOSURE_TILT: 2;
|
|
635
|
+
DEVICE_UID: 3;
|
|
636
|
+
COMMUNICATION_PACKET_NUMBER: 4;
|
|
637
|
+
MAINBOARD_FIRMWARE_CRC: 5;
|
|
638
|
+
MAINBOARD_BATTERY_VOLTAGE: 6;
|
|
639
|
+
LTE_COMMUNICATION_TIME: 7;
|
|
640
|
+
LTE_SIGNAL_STRENGTH: 8;
|
|
641
|
+
LTE_NETWORK_STRING: 9;
|
|
642
|
+
LTE_ICCID: 10;
|
|
643
|
+
LTE_IMEI: 11;
|
|
644
|
+
NTC_CRITICAL_TEMPERATURE_ALARM: 12;
|
|
645
|
+
NTC_HIGH_TEMPERATURE_ALARM: 13;
|
|
646
|
+
CABINET_MAIN_DOOR: 14;
|
|
647
|
+
CABINET_MAIN_DOOR_HANDLE: 15;
|
|
648
|
+
CABINET_MAIN_DOOR_LOCK: 16;
|
|
649
|
+
EXT_ALARM_1: 31;
|
|
650
|
+
EXT_ALARM_2: 32;
|
|
651
|
+
EXT_ALARM_3: 33;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
export const ComponentIdentifier: ComponentIdentifierMap;
|
|
655
|
+
|
package/spic.asset_pb.js
CHANGED
|
@@ -35,7 +35,7 @@ var google_api_annotations_pb = require('./google/api/annotations_pb.js');
|
|
|
35
35
|
goog.object.extend(proto, google_api_annotations_pb);
|
|
36
36
|
goog.exportSymbol('proto.Spic.AssetProto', null, global);
|
|
37
37
|
goog.exportSymbol('proto.Spic.AssetProto.BatteryStatus', null, global);
|
|
38
|
-
goog.exportSymbol('proto.Spic.AssetProto.
|
|
38
|
+
goog.exportSymbol('proto.Spic.AssetProto.ComponentState', null, global);
|
|
39
39
|
goog.exportSymbol('proto.Spic.AssetProto.CreateRequest', null, global);
|
|
40
40
|
goog.exportSymbol('proto.Spic.AssetProto.DeleteRequest', null, global);
|
|
41
41
|
goog.exportSymbol('proto.Spic.AssetProto.DeleteRequest.SearchCase', null, global);
|
|
@@ -54,6 +54,7 @@ goog.exportSymbol('proto.Spic.AssetProto.SpicType', null, global);
|
|
|
54
54
|
goog.exportSymbol('proto.Spic.AssetProto.UpdateRequest', null, global);
|
|
55
55
|
goog.exportSymbol('proto.Spic.AssetWithLocation', null, global);
|
|
56
56
|
goog.exportSymbol('proto.Spic.AssetWithLocationAndDistance', null, global);
|
|
57
|
+
goog.exportSymbol('proto.Spic.ComponentIdentifier', null, global);
|
|
57
58
|
/**
|
|
58
59
|
* Generated by JsPbCodeGenerator.
|
|
59
60
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -337,16 +338,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
337
338
|
* @extends {jspb.Message}
|
|
338
339
|
* @constructor
|
|
339
340
|
*/
|
|
340
|
-
proto.Spic.AssetProto.
|
|
341
|
+
proto.Spic.AssetProto.ComponentState = function(opt_data) {
|
|
341
342
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
342
343
|
};
|
|
343
|
-
goog.inherits(proto.Spic.AssetProto.
|
|
344
|
+
goog.inherits(proto.Spic.AssetProto.ComponentState, jspb.Message);
|
|
344
345
|
if (goog.DEBUG && !COMPILED) {
|
|
345
346
|
/**
|
|
346
347
|
* @public
|
|
347
348
|
* @override
|
|
348
349
|
*/
|
|
349
|
-
proto.Spic.AssetProto.
|
|
350
|
+
proto.Spic.AssetProto.ComponentState.displayName = 'proto.Spic.AssetProto.ComponentState';
|
|
350
351
|
}
|
|
351
352
|
/**
|
|
352
353
|
* Generated by JsPbCodeGenerator.
|
|
@@ -445,8 +446,8 @@ proto.Spic.AssetProto.toObject = function(includeInstance, msg) {
|
|
|
445
446
|
lastConfigUpdated: (f = msg.getLastConfigUpdated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
446
447
|
spicType: jspb.Message.getFieldWithDefault(msg, 17, 0),
|
|
447
448
|
batteryStatus: jspb.Message.getFieldWithDefault(msg, 18, 0),
|
|
448
|
-
|
|
449
|
-
proto.Spic.AssetProto.
|
|
449
|
+
statesList: jspb.Message.toObjectList(msg.getStatesList(),
|
|
450
|
+
proto.Spic.AssetProto.ComponentState.toObject, includeInstance),
|
|
450
451
|
deviceType: jspb.Message.getFieldWithDefault(msg, 20, 0)
|
|
451
452
|
};
|
|
452
453
|
|
|
@@ -552,9 +553,9 @@ proto.Spic.AssetProto.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
552
553
|
msg.setBatteryStatus(value);
|
|
553
554
|
break;
|
|
554
555
|
case 19:
|
|
555
|
-
var value = new proto.Spic.AssetProto.
|
|
556
|
-
reader.readMessage(value,proto.Spic.AssetProto.
|
|
557
|
-
msg.
|
|
556
|
+
var value = new proto.Spic.AssetProto.ComponentState;
|
|
557
|
+
reader.readMessage(value,proto.Spic.AssetProto.ComponentState.deserializeBinaryFromReader);
|
|
558
|
+
msg.addStates(value);
|
|
558
559
|
break;
|
|
559
560
|
case 20:
|
|
560
561
|
var value = /** @type {!proto.Spic.AssetProto.DeviceType} */ (reader.readEnum());
|
|
@@ -704,12 +705,12 @@ proto.Spic.AssetProto.serializeBinaryToWriter = function(message, writer) {
|
|
|
704
705
|
f
|
|
705
706
|
);
|
|
706
707
|
}
|
|
707
|
-
f = message.
|
|
708
|
+
f = message.getStatesList();
|
|
708
709
|
if (f.length > 0) {
|
|
709
710
|
writer.writeRepeatedMessage(
|
|
710
711
|
19,
|
|
711
712
|
f,
|
|
712
|
-
proto.Spic.AssetProto.
|
|
713
|
+
proto.Spic.AssetProto.ComponentState.serializeBinaryToWriter
|
|
713
714
|
);
|
|
714
715
|
}
|
|
715
716
|
f = message.getDeviceType();
|
|
@@ -3377,8 +3378,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
3377
3378
|
* http://goto/soy-param-migration
|
|
3378
3379
|
* @return {!Object}
|
|
3379
3380
|
*/
|
|
3380
|
-
proto.Spic.AssetProto.
|
|
3381
|
-
return proto.Spic.AssetProto.
|
|
3381
|
+
proto.Spic.AssetProto.ComponentState.prototype.toObject = function(opt_includeInstance) {
|
|
3382
|
+
return proto.Spic.AssetProto.ComponentState.toObject(opt_includeInstance, this);
|
|
3382
3383
|
};
|
|
3383
3384
|
|
|
3384
3385
|
|
|
@@ -3387,16 +3388,19 @@ proto.Spic.AssetProto.Component.prototype.toObject = function(opt_includeInstanc
|
|
|
3387
3388
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3388
3389
|
* the JSPB instance for transitional soy proto support:
|
|
3389
3390
|
* http://goto/soy-param-migration
|
|
3390
|
-
* @param {!proto.Spic.AssetProto.
|
|
3391
|
+
* @param {!proto.Spic.AssetProto.ComponentState} msg The msg instance to transform.
|
|
3391
3392
|
* @return {!Object}
|
|
3392
3393
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3393
3394
|
*/
|
|
3394
|
-
proto.Spic.AssetProto.
|
|
3395
|
+
proto.Spic.AssetProto.ComponentState.toObject = function(includeInstance, msg) {
|
|
3395
3396
|
var f, obj = {
|
|
3396
|
-
|
|
3397
|
-
|
|
3397
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3398
|
+
componentIdentifier: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
3398
3399
|
domain: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
3400
|
+
value: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
3401
|
+
lastChanged: (f = msg.getLastChanged()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
3399
3402
|
lastUpdated: (f = msg.getLastUpdated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
3403
|
+
lastReported: (f = msg.getLastReported()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
3400
3404
|
attributesMap: (f = msg.getAttributesMap()) ? f.toObject(includeInstance, undefined) : []
|
|
3401
3405
|
};
|
|
3402
3406
|
|
|
@@ -3411,23 +3415,23 @@ proto.Spic.AssetProto.Component.toObject = function(includeInstance, msg) {
|
|
|
3411
3415
|
/**
|
|
3412
3416
|
* Deserializes binary data (in protobuf wire format).
|
|
3413
3417
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3414
|
-
* @return {!proto.Spic.AssetProto.
|
|
3418
|
+
* @return {!proto.Spic.AssetProto.ComponentState}
|
|
3415
3419
|
*/
|
|
3416
|
-
proto.Spic.AssetProto.
|
|
3420
|
+
proto.Spic.AssetProto.ComponentState.deserializeBinary = function(bytes) {
|
|
3417
3421
|
var reader = new jspb.BinaryReader(bytes);
|
|
3418
|
-
var msg = new proto.Spic.AssetProto.
|
|
3419
|
-
return proto.Spic.AssetProto.
|
|
3422
|
+
var msg = new proto.Spic.AssetProto.ComponentState;
|
|
3423
|
+
return proto.Spic.AssetProto.ComponentState.deserializeBinaryFromReader(msg, reader);
|
|
3420
3424
|
};
|
|
3421
3425
|
|
|
3422
3426
|
|
|
3423
3427
|
/**
|
|
3424
3428
|
* Deserializes binary data (in protobuf wire format) from the
|
|
3425
3429
|
* given reader into the given message object.
|
|
3426
|
-
* @param {!proto.Spic.AssetProto.
|
|
3430
|
+
* @param {!proto.Spic.AssetProto.ComponentState} msg The message object to deserialize into.
|
|
3427
3431
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3428
|
-
* @return {!proto.Spic.AssetProto.
|
|
3432
|
+
* @return {!proto.Spic.AssetProto.ComponentState}
|
|
3429
3433
|
*/
|
|
3430
|
-
proto.Spic.AssetProto.
|
|
3434
|
+
proto.Spic.AssetProto.ComponentState.deserializeBinaryFromReader = function(msg, reader) {
|
|
3431
3435
|
while (reader.nextField()) {
|
|
3432
3436
|
if (reader.isEndGroup()) {
|
|
3433
3437
|
break;
|
|
@@ -3436,22 +3440,36 @@ proto.Spic.AssetProto.Component.deserializeBinaryFromReader = function(msg, read
|
|
|
3436
3440
|
switch (field) {
|
|
3437
3441
|
case 1:
|
|
3438
3442
|
var value = /** @type {string} */ (reader.readString());
|
|
3439
|
-
msg.
|
|
3443
|
+
msg.setId(value);
|
|
3440
3444
|
break;
|
|
3441
3445
|
case 2:
|
|
3442
|
-
var value = /** @type {
|
|
3443
|
-
msg.
|
|
3446
|
+
var value = /** @type {!proto.Spic.ComponentIdentifier} */ (reader.readEnum());
|
|
3447
|
+
msg.setComponentIdentifier(value);
|
|
3444
3448
|
break;
|
|
3445
3449
|
case 3:
|
|
3446
3450
|
var value = /** @type {string} */ (reader.readString());
|
|
3447
3451
|
msg.setDomain(value);
|
|
3448
3452
|
break;
|
|
3449
3453
|
case 4:
|
|
3454
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3455
|
+
msg.setValue(value);
|
|
3456
|
+
break;
|
|
3457
|
+
case 5:
|
|
3458
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
3459
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
3460
|
+
msg.setLastChanged(value);
|
|
3461
|
+
break;
|
|
3462
|
+
case 6:
|
|
3450
3463
|
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
3451
3464
|
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
3452
3465
|
msg.setLastUpdated(value);
|
|
3453
3466
|
break;
|
|
3454
|
-
case
|
|
3467
|
+
case 7:
|
|
3468
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
3469
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
3470
|
+
msg.setLastReported(value);
|
|
3471
|
+
break;
|
|
3472
|
+
case 8:
|
|
3455
3473
|
var value = msg.getAttributesMap();
|
|
3456
3474
|
reader.readMessage(value, function(message, reader) {
|
|
3457
3475
|
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
|
|
@@ -3470,9 +3488,9 @@ proto.Spic.AssetProto.Component.deserializeBinaryFromReader = function(msg, read
|
|
|
3470
3488
|
* Serializes the message to binary data (in protobuf wire format).
|
|
3471
3489
|
* @return {!Uint8Array}
|
|
3472
3490
|
*/
|
|
3473
|
-
proto.Spic.AssetProto.
|
|
3491
|
+
proto.Spic.AssetProto.ComponentState.prototype.serializeBinary = function() {
|
|
3474
3492
|
var writer = new jspb.BinaryWriter();
|
|
3475
|
-
proto.Spic.AssetProto.
|
|
3493
|
+
proto.Spic.AssetProto.ComponentState.serializeBinaryToWriter(this, writer);
|
|
3476
3494
|
return writer.getResultBuffer();
|
|
3477
3495
|
};
|
|
3478
3496
|
|
|
@@ -3480,22 +3498,22 @@ proto.Spic.AssetProto.Component.prototype.serializeBinary = function() {
|
|
|
3480
3498
|
/**
|
|
3481
3499
|
* Serializes the given message to binary data (in protobuf wire
|
|
3482
3500
|
* format), writing to the given BinaryWriter.
|
|
3483
|
-
* @param {!proto.Spic.AssetProto.
|
|
3501
|
+
* @param {!proto.Spic.AssetProto.ComponentState} message
|
|
3484
3502
|
* @param {!jspb.BinaryWriter} writer
|
|
3485
3503
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3486
3504
|
*/
|
|
3487
|
-
proto.Spic.AssetProto.
|
|
3505
|
+
proto.Spic.AssetProto.ComponentState.serializeBinaryToWriter = function(message, writer) {
|
|
3488
3506
|
var f = undefined;
|
|
3489
|
-
f = message.
|
|
3507
|
+
f = message.getId();
|
|
3490
3508
|
if (f.length > 0) {
|
|
3491
3509
|
writer.writeString(
|
|
3492
3510
|
1,
|
|
3493
3511
|
f
|
|
3494
3512
|
);
|
|
3495
3513
|
}
|
|
3496
|
-
f = message.
|
|
3497
|
-
if (f
|
|
3498
|
-
writer.
|
|
3514
|
+
f = message.getComponentIdentifier();
|
|
3515
|
+
if (f !== 0.0) {
|
|
3516
|
+
writer.writeEnum(
|
|
3499
3517
|
2,
|
|
3500
3518
|
f
|
|
3501
3519
|
);
|
|
@@ -3507,54 +3525,77 @@ proto.Spic.AssetProto.Component.serializeBinaryToWriter = function(message, writ
|
|
|
3507
3525
|
f
|
|
3508
3526
|
);
|
|
3509
3527
|
}
|
|
3528
|
+
f = message.getValue();
|
|
3529
|
+
if (f.length > 0) {
|
|
3530
|
+
writer.writeString(
|
|
3531
|
+
4,
|
|
3532
|
+
f
|
|
3533
|
+
);
|
|
3534
|
+
}
|
|
3535
|
+
f = message.getLastChanged();
|
|
3536
|
+
if (f != null) {
|
|
3537
|
+
writer.writeMessage(
|
|
3538
|
+
5,
|
|
3539
|
+
f,
|
|
3540
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
3541
|
+
);
|
|
3542
|
+
}
|
|
3510
3543
|
f = message.getLastUpdated();
|
|
3511
3544
|
if (f != null) {
|
|
3512
3545
|
writer.writeMessage(
|
|
3513
|
-
|
|
3546
|
+
6,
|
|
3547
|
+
f,
|
|
3548
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
3549
|
+
);
|
|
3550
|
+
}
|
|
3551
|
+
f = message.getLastReported();
|
|
3552
|
+
if (f != null) {
|
|
3553
|
+
writer.writeMessage(
|
|
3554
|
+
7,
|
|
3514
3555
|
f,
|
|
3515
3556
|
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
3516
3557
|
);
|
|
3517
3558
|
}
|
|
3518
3559
|
f = message.getAttributesMap(true);
|
|
3519
3560
|
if (f && f.getLength() > 0) {
|
|
3520
|
-
f.serializeBinary(
|
|
3561
|
+
f.serializeBinary(8, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
|
3521
3562
|
}
|
|
3522
3563
|
};
|
|
3523
3564
|
|
|
3524
3565
|
|
|
3525
3566
|
/**
|
|
3526
|
-
* optional string
|
|
3567
|
+
* optional string id = 1;
|
|
3527
3568
|
* @return {string}
|
|
3528
3569
|
*/
|
|
3529
|
-
proto.Spic.AssetProto.
|
|
3570
|
+
proto.Spic.AssetProto.ComponentState.prototype.getId = function() {
|
|
3530
3571
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3531
3572
|
};
|
|
3532
3573
|
|
|
3533
3574
|
|
|
3534
3575
|
/**
|
|
3535
3576
|
* @param {string} value
|
|
3536
|
-
* @return {!proto.Spic.AssetProto.
|
|
3577
|
+
* @return {!proto.Spic.AssetProto.ComponentState} returns this
|
|
3537
3578
|
*/
|
|
3538
|
-
proto.Spic.AssetProto.
|
|
3579
|
+
proto.Spic.AssetProto.ComponentState.prototype.setId = function(value) {
|
|
3539
3580
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3540
3581
|
};
|
|
3541
3582
|
|
|
3542
3583
|
|
|
3543
3584
|
/**
|
|
3544
|
-
* optional
|
|
3545
|
-
* @return {
|
|
3585
|
+
* optional ComponentIdentifier component_identifier = 2;
|
|
3586
|
+
* @return {!proto.Spic.ComponentIdentifier}
|
|
3546
3587
|
*/
|
|
3547
|
-
proto.Spic.AssetProto.
|
|
3548
|
-
return /** @type {
|
|
3588
|
+
proto.Spic.AssetProto.ComponentState.prototype.getComponentIdentifier = function() {
|
|
3589
|
+
return /** @type {!proto.Spic.ComponentIdentifier} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
3549
3590
|
};
|
|
3550
3591
|
|
|
3551
3592
|
|
|
3552
3593
|
/**
|
|
3553
|
-
* @param {
|
|
3554
|
-
* @return {!proto.Spic.AssetProto.
|
|
3594
|
+
* @param {!proto.Spic.ComponentIdentifier} value
|
|
3595
|
+
* @return {!proto.Spic.AssetProto.ComponentState} returns this
|
|
3555
3596
|
*/
|
|
3556
|
-
proto.Spic.AssetProto.
|
|
3557
|
-
return jspb.Message.
|
|
3597
|
+
proto.Spic.AssetProto.ComponentState.prototype.setComponentIdentifier = function(value) {
|
|
3598
|
+
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
3558
3599
|
};
|
|
3559
3600
|
|
|
3560
3601
|
|
|
@@ -3562,44 +3603,99 @@ proto.Spic.AssetProto.Component.prototype.setValue = function(value) {
|
|
|
3562
3603
|
* optional string domain = 3;
|
|
3563
3604
|
* @return {string}
|
|
3564
3605
|
*/
|
|
3565
|
-
proto.Spic.AssetProto.
|
|
3606
|
+
proto.Spic.AssetProto.ComponentState.prototype.getDomain = function() {
|
|
3566
3607
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
3567
3608
|
};
|
|
3568
3609
|
|
|
3569
3610
|
|
|
3570
3611
|
/**
|
|
3571
3612
|
* @param {string} value
|
|
3572
|
-
* @return {!proto.Spic.AssetProto.
|
|
3613
|
+
* @return {!proto.Spic.AssetProto.ComponentState} returns this
|
|
3573
3614
|
*/
|
|
3574
|
-
proto.Spic.AssetProto.
|
|
3615
|
+
proto.Spic.AssetProto.ComponentState.prototype.setDomain = function(value) {
|
|
3575
3616
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
3576
3617
|
};
|
|
3577
3618
|
|
|
3578
3619
|
|
|
3579
3620
|
/**
|
|
3580
|
-
* optional
|
|
3621
|
+
* optional string value = 4;
|
|
3622
|
+
* @return {string}
|
|
3623
|
+
*/
|
|
3624
|
+
proto.Spic.AssetProto.ComponentState.prototype.getValue = function() {
|
|
3625
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
3626
|
+
};
|
|
3627
|
+
|
|
3628
|
+
|
|
3629
|
+
/**
|
|
3630
|
+
* @param {string} value
|
|
3631
|
+
* @return {!proto.Spic.AssetProto.ComponentState} returns this
|
|
3632
|
+
*/
|
|
3633
|
+
proto.Spic.AssetProto.ComponentState.prototype.setValue = function(value) {
|
|
3634
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
3635
|
+
};
|
|
3636
|
+
|
|
3637
|
+
|
|
3638
|
+
/**
|
|
3639
|
+
* optional google.protobuf.Timestamp last_changed = 5;
|
|
3581
3640
|
* @return {?proto.google.protobuf.Timestamp}
|
|
3582
3641
|
*/
|
|
3583
|
-
proto.Spic.AssetProto.
|
|
3642
|
+
proto.Spic.AssetProto.ComponentState.prototype.getLastChanged = function() {
|
|
3584
3643
|
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
3585
|
-
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp,
|
|
3644
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
|
|
3586
3645
|
};
|
|
3587
3646
|
|
|
3588
3647
|
|
|
3589
3648
|
/**
|
|
3590
3649
|
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
3591
|
-
* @return {!proto.Spic.AssetProto.
|
|
3650
|
+
* @return {!proto.Spic.AssetProto.ComponentState} returns this
|
|
3592
3651
|
*/
|
|
3593
|
-
proto.Spic.AssetProto.
|
|
3594
|
-
return jspb.Message.setWrapperField(this,
|
|
3652
|
+
proto.Spic.AssetProto.ComponentState.prototype.setLastChanged = function(value) {
|
|
3653
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
3595
3654
|
};
|
|
3596
3655
|
|
|
3597
3656
|
|
|
3598
3657
|
/**
|
|
3599
3658
|
* Clears the message field making it undefined.
|
|
3600
|
-
* @return {!proto.Spic.AssetProto.
|
|
3659
|
+
* @return {!proto.Spic.AssetProto.ComponentState} returns this
|
|
3601
3660
|
*/
|
|
3602
|
-
proto.Spic.AssetProto.
|
|
3661
|
+
proto.Spic.AssetProto.ComponentState.prototype.clearLastChanged = function() {
|
|
3662
|
+
return this.setLastChanged(undefined);
|
|
3663
|
+
};
|
|
3664
|
+
|
|
3665
|
+
|
|
3666
|
+
/**
|
|
3667
|
+
* Returns whether this field is set.
|
|
3668
|
+
* @return {boolean}
|
|
3669
|
+
*/
|
|
3670
|
+
proto.Spic.AssetProto.ComponentState.prototype.hasLastChanged = function() {
|
|
3671
|
+
return jspb.Message.getField(this, 5) != null;
|
|
3672
|
+
};
|
|
3673
|
+
|
|
3674
|
+
|
|
3675
|
+
/**
|
|
3676
|
+
* optional google.protobuf.Timestamp last_updated = 6;
|
|
3677
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
3678
|
+
*/
|
|
3679
|
+
proto.Spic.AssetProto.ComponentState.prototype.getLastUpdated = function() {
|
|
3680
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
3681
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
|
|
3682
|
+
};
|
|
3683
|
+
|
|
3684
|
+
|
|
3685
|
+
/**
|
|
3686
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
3687
|
+
* @return {!proto.Spic.AssetProto.ComponentState} returns this
|
|
3688
|
+
*/
|
|
3689
|
+
proto.Spic.AssetProto.ComponentState.prototype.setLastUpdated = function(value) {
|
|
3690
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
3691
|
+
};
|
|
3692
|
+
|
|
3693
|
+
|
|
3694
|
+
/**
|
|
3695
|
+
* Clears the message field making it undefined.
|
|
3696
|
+
* @return {!proto.Spic.AssetProto.ComponentState} returns this
|
|
3697
|
+
*/
|
|
3698
|
+
proto.Spic.AssetProto.ComponentState.prototype.clearLastUpdated = function() {
|
|
3603
3699
|
return this.setLastUpdated(undefined);
|
|
3604
3700
|
};
|
|
3605
3701
|
|
|
@@ -3608,29 +3704,66 @@ proto.Spic.AssetProto.Component.prototype.clearLastUpdated = function() {
|
|
|
3608
3704
|
* Returns whether this field is set.
|
|
3609
3705
|
* @return {boolean}
|
|
3610
3706
|
*/
|
|
3611
|
-
proto.Spic.AssetProto.
|
|
3612
|
-
return jspb.Message.getField(this,
|
|
3707
|
+
proto.Spic.AssetProto.ComponentState.prototype.hasLastUpdated = function() {
|
|
3708
|
+
return jspb.Message.getField(this, 6) != null;
|
|
3709
|
+
};
|
|
3710
|
+
|
|
3711
|
+
|
|
3712
|
+
/**
|
|
3713
|
+
* optional google.protobuf.Timestamp last_reported = 7;
|
|
3714
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
3715
|
+
*/
|
|
3716
|
+
proto.Spic.AssetProto.ComponentState.prototype.getLastReported = function() {
|
|
3717
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
3718
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
|
|
3613
3719
|
};
|
|
3614
3720
|
|
|
3615
3721
|
|
|
3616
3722
|
/**
|
|
3617
|
-
*
|
|
3723
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
3724
|
+
* @return {!proto.Spic.AssetProto.ComponentState} returns this
|
|
3725
|
+
*/
|
|
3726
|
+
proto.Spic.AssetProto.ComponentState.prototype.setLastReported = function(value) {
|
|
3727
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
3728
|
+
};
|
|
3729
|
+
|
|
3730
|
+
|
|
3731
|
+
/**
|
|
3732
|
+
* Clears the message field making it undefined.
|
|
3733
|
+
* @return {!proto.Spic.AssetProto.ComponentState} returns this
|
|
3734
|
+
*/
|
|
3735
|
+
proto.Spic.AssetProto.ComponentState.prototype.clearLastReported = function() {
|
|
3736
|
+
return this.setLastReported(undefined);
|
|
3737
|
+
};
|
|
3738
|
+
|
|
3739
|
+
|
|
3740
|
+
/**
|
|
3741
|
+
* Returns whether this field is set.
|
|
3742
|
+
* @return {boolean}
|
|
3743
|
+
*/
|
|
3744
|
+
proto.Spic.AssetProto.ComponentState.prototype.hasLastReported = function() {
|
|
3745
|
+
return jspb.Message.getField(this, 7) != null;
|
|
3746
|
+
};
|
|
3747
|
+
|
|
3748
|
+
|
|
3749
|
+
/**
|
|
3750
|
+
* map<string, string> attributes = 8;
|
|
3618
3751
|
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
3619
3752
|
* empty, instead returning `undefined`
|
|
3620
3753
|
* @return {!jspb.Map<string,string>}
|
|
3621
3754
|
*/
|
|
3622
|
-
proto.Spic.AssetProto.
|
|
3755
|
+
proto.Spic.AssetProto.ComponentState.prototype.getAttributesMap = function(opt_noLazyCreate) {
|
|
3623
3756
|
return /** @type {!jspb.Map<string,string>} */ (
|
|
3624
|
-
jspb.Message.getMapField(this,
|
|
3757
|
+
jspb.Message.getMapField(this, 8, opt_noLazyCreate,
|
|
3625
3758
|
null));
|
|
3626
3759
|
};
|
|
3627
3760
|
|
|
3628
3761
|
|
|
3629
3762
|
/**
|
|
3630
3763
|
* Clears values from the map. The map will be non-null.
|
|
3631
|
-
* @return {!proto.Spic.AssetProto.
|
|
3764
|
+
* @return {!proto.Spic.AssetProto.ComponentState} returns this
|
|
3632
3765
|
*/
|
|
3633
|
-
proto.Spic.AssetProto.
|
|
3766
|
+
proto.Spic.AssetProto.ComponentState.prototype.clearAttributesMap = function() {
|
|
3634
3767
|
this.getAttributesMap().clear();
|
|
3635
3768
|
return this;
|
|
3636
3769
|
};
|
|
@@ -3982,31 +4115,31 @@ proto.Spic.AssetProto.prototype.setBatteryStatus = function(value) {
|
|
|
3982
4115
|
|
|
3983
4116
|
|
|
3984
4117
|
/**
|
|
3985
|
-
* repeated
|
|
3986
|
-
* @return {!Array<!proto.Spic.AssetProto.
|
|
4118
|
+
* repeated ComponentState states = 19;
|
|
4119
|
+
* @return {!Array<!proto.Spic.AssetProto.ComponentState>}
|
|
3987
4120
|
*/
|
|
3988
|
-
proto.Spic.AssetProto.prototype.
|
|
3989
|
-
return /** @type{!Array<!proto.Spic.AssetProto.
|
|
3990
|
-
jspb.Message.getRepeatedWrapperField(this, proto.Spic.AssetProto.
|
|
4121
|
+
proto.Spic.AssetProto.prototype.getStatesList = function() {
|
|
4122
|
+
return /** @type{!Array<!proto.Spic.AssetProto.ComponentState>} */ (
|
|
4123
|
+
jspb.Message.getRepeatedWrapperField(this, proto.Spic.AssetProto.ComponentState, 19));
|
|
3991
4124
|
};
|
|
3992
4125
|
|
|
3993
4126
|
|
|
3994
4127
|
/**
|
|
3995
|
-
* @param {!Array<!proto.Spic.AssetProto.
|
|
4128
|
+
* @param {!Array<!proto.Spic.AssetProto.ComponentState>} value
|
|
3996
4129
|
* @return {!proto.Spic.AssetProto} returns this
|
|
3997
4130
|
*/
|
|
3998
|
-
proto.Spic.AssetProto.prototype.
|
|
4131
|
+
proto.Spic.AssetProto.prototype.setStatesList = function(value) {
|
|
3999
4132
|
return jspb.Message.setRepeatedWrapperField(this, 19, value);
|
|
4000
4133
|
};
|
|
4001
4134
|
|
|
4002
4135
|
|
|
4003
4136
|
/**
|
|
4004
|
-
* @param {!proto.Spic.AssetProto.
|
|
4137
|
+
* @param {!proto.Spic.AssetProto.ComponentState=} opt_value
|
|
4005
4138
|
* @param {number=} opt_index
|
|
4006
|
-
* @return {!proto.Spic.AssetProto.
|
|
4139
|
+
* @return {!proto.Spic.AssetProto.ComponentState}
|
|
4007
4140
|
*/
|
|
4008
|
-
proto.Spic.AssetProto.prototype.
|
|
4009
|
-
return jspb.Message.addToRepeatedWrapperField(this, 19, opt_value, proto.Spic.AssetProto.
|
|
4141
|
+
proto.Spic.AssetProto.prototype.addStates = function(opt_value, opt_index) {
|
|
4142
|
+
return jspb.Message.addToRepeatedWrapperField(this, 19, opt_value, proto.Spic.AssetProto.ComponentState, opt_index);
|
|
4010
4143
|
};
|
|
4011
4144
|
|
|
4012
4145
|
|
|
@@ -4014,8 +4147,8 @@ proto.Spic.AssetProto.prototype.addComponents = function(opt_value, opt_index) {
|
|
|
4014
4147
|
* Clears the list making it empty but non-null.
|
|
4015
4148
|
* @return {!proto.Spic.AssetProto} returns this
|
|
4016
4149
|
*/
|
|
4017
|
-
proto.Spic.AssetProto.prototype.
|
|
4018
|
-
return this.
|
|
4150
|
+
proto.Spic.AssetProto.prototype.clearStatesList = function() {
|
|
4151
|
+
return this.setStatesList([]);
|
|
4019
4152
|
};
|
|
4020
4153
|
|
|
4021
4154
|
|
|
@@ -4531,4 +4664,30 @@ proto.Spic.AssetWithLocationAndDistance.prototype.setDistance = function(value)
|
|
|
4531
4664
|
};
|
|
4532
4665
|
|
|
4533
4666
|
|
|
4667
|
+
/**
|
|
4668
|
+
* @enum {number}
|
|
4669
|
+
*/
|
|
4670
|
+
proto.Spic.ComponentIdentifier = {
|
|
4671
|
+
ENCLOSURE_TEMPERATURE: 0,
|
|
4672
|
+
ENCLOSURE_HUMIDITY: 1,
|
|
4673
|
+
ENCLOSURE_TILT: 2,
|
|
4674
|
+
DEVICE_UID: 3,
|
|
4675
|
+
COMMUNICATION_PACKET_NUMBER: 4,
|
|
4676
|
+
MAINBOARD_FIRMWARE_CRC: 5,
|
|
4677
|
+
MAINBOARD_BATTERY_VOLTAGE: 6,
|
|
4678
|
+
LTE_COMMUNICATION_TIME: 7,
|
|
4679
|
+
LTE_SIGNAL_STRENGTH: 8,
|
|
4680
|
+
LTE_NETWORK_STRING: 9,
|
|
4681
|
+
LTE_ICCID: 10,
|
|
4682
|
+
LTE_IMEI: 11,
|
|
4683
|
+
NTC_CRITICAL_TEMPERATURE_ALARM: 12,
|
|
4684
|
+
NTC_HIGH_TEMPERATURE_ALARM: 13,
|
|
4685
|
+
CABINET_MAIN_DOOR: 14,
|
|
4686
|
+
CABINET_MAIN_DOOR_HANDLE: 15,
|
|
4687
|
+
CABINET_MAIN_DOOR_LOCK: 16,
|
|
4688
|
+
EXT_ALARM_1: 31,
|
|
4689
|
+
EXT_ALARM_2: 32,
|
|
4690
|
+
EXT_ALARM_3: 33
|
|
4691
|
+
};
|
|
4692
|
+
|
|
4534
4693
|
goog.object.extend(exports, proto.Spic);
|