@aceplus/smartace-api 3.4.0-alpha.7 → 3.4.0-alpha.9
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 +40 -20
- package/spic.asset_pb.js +245 -83
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,59 @@ 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
|
+
getComponentClass(): string;
|
|
496
|
+
setComponentClass(value: string): void;
|
|
497
|
+
|
|
498
|
+
getValue(): string;
|
|
499
|
+
setValue(value: string): void;
|
|
500
|
+
|
|
501
|
+
hasLastChanged(): boolean;
|
|
502
|
+
clearLastChanged(): void;
|
|
503
|
+
getLastChanged(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
504
|
+
setLastChanged(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
505
|
+
|
|
495
506
|
hasLastUpdated(): boolean;
|
|
496
507
|
clearLastUpdated(): void;
|
|
497
508
|
getLastUpdated(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
498
509
|
setLastUpdated(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
499
510
|
|
|
511
|
+
hasLastReported(): boolean;
|
|
512
|
+
clearLastReported(): void;
|
|
513
|
+
getLastReported(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
514
|
+
setLastReported(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
515
|
+
|
|
500
516
|
getAttributesMap(): jspb.Map<string, string>;
|
|
501
517
|
clearAttributesMap(): void;
|
|
502
518
|
serializeBinary(): Uint8Array;
|
|
503
|
-
toObject(includeInstance?: boolean):
|
|
504
|
-
static toObject(includeInstance: boolean, msg:
|
|
519
|
+
toObject(includeInstance?: boolean): ComponentState.AsObject;
|
|
520
|
+
static toObject(includeInstance: boolean, msg: ComponentState): ComponentState.AsObject;
|
|
505
521
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
506
522
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
507
|
-
static serializeBinaryToWriter(message:
|
|
508
|
-
static deserializeBinary(bytes: Uint8Array):
|
|
509
|
-
static deserializeBinaryFromReader(message:
|
|
523
|
+
static serializeBinaryToWriter(message: ComponentState, writer: jspb.BinaryWriter): void;
|
|
524
|
+
static deserializeBinary(bytes: Uint8Array): ComponentState;
|
|
525
|
+
static deserializeBinaryFromReader(message: ComponentState, reader: jspb.BinaryReader): ComponentState;
|
|
510
526
|
}
|
|
511
527
|
|
|
512
|
-
export namespace
|
|
528
|
+
export namespace ComponentState {
|
|
513
529
|
export type AsObject = {
|
|
514
|
-
|
|
515
|
-
|
|
530
|
+
id: string,
|
|
531
|
+
componentIdentifier: ComponentIdentifierMap[keyof ComponentIdentifierMap],
|
|
516
532
|
domain: string,
|
|
533
|
+
componentClass: string,
|
|
534
|
+
value: string,
|
|
535
|
+
lastChanged?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
517
536
|
lastUpdated?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
537
|
+
lastReported?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
518
538
|
attributesMap: Array<[string, string]>,
|
|
519
539
|
}
|
|
520
540
|
}
|
|
@@ -612,7 +632,7 @@ export namespace AssetWithLocationAndDistance {
|
|
|
612
632
|
}
|
|
613
633
|
}
|
|
614
634
|
|
|
615
|
-
export interface
|
|
635
|
+
export interface ComponentIdentifierMap {
|
|
616
636
|
ENCLOSURE_TEMPERATURE: 0;
|
|
617
637
|
ENCLOSURE_HUMIDITY: 1;
|
|
618
638
|
ENCLOSURE_TILT: 2;
|
|
@@ -635,5 +655,5 @@ export interface ComponentIdentifiersMap {
|
|
|
635
655
|
EXT_ALARM_3: 33;
|
|
636
656
|
}
|
|
637
657
|
|
|
638
|
-
export const
|
|
658
|
+
export const ComponentIdentifier: ComponentIdentifierMap;
|
|
639
659
|
|
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,7 +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.
|
|
57
|
+
goog.exportSymbol('proto.Spic.ComponentIdentifier', null, global);
|
|
58
58
|
/**
|
|
59
59
|
* Generated by JsPbCodeGenerator.
|
|
60
60
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -338,16 +338,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
338
338
|
* @extends {jspb.Message}
|
|
339
339
|
* @constructor
|
|
340
340
|
*/
|
|
341
|
-
proto.Spic.AssetProto.
|
|
341
|
+
proto.Spic.AssetProto.ComponentState = function(opt_data) {
|
|
342
342
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
343
343
|
};
|
|
344
|
-
goog.inherits(proto.Spic.AssetProto.
|
|
344
|
+
goog.inherits(proto.Spic.AssetProto.ComponentState, jspb.Message);
|
|
345
345
|
if (goog.DEBUG && !COMPILED) {
|
|
346
346
|
/**
|
|
347
347
|
* @public
|
|
348
348
|
* @override
|
|
349
349
|
*/
|
|
350
|
-
proto.Spic.AssetProto.
|
|
350
|
+
proto.Spic.AssetProto.ComponentState.displayName = 'proto.Spic.AssetProto.ComponentState';
|
|
351
351
|
}
|
|
352
352
|
/**
|
|
353
353
|
* Generated by JsPbCodeGenerator.
|
|
@@ -446,8 +446,8 @@ proto.Spic.AssetProto.toObject = function(includeInstance, msg) {
|
|
|
446
446
|
lastConfigUpdated: (f = msg.getLastConfigUpdated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
447
447
|
spicType: jspb.Message.getFieldWithDefault(msg, 17, 0),
|
|
448
448
|
batteryStatus: jspb.Message.getFieldWithDefault(msg, 18, 0),
|
|
449
|
-
|
|
450
|
-
proto.Spic.AssetProto.
|
|
449
|
+
statesList: jspb.Message.toObjectList(msg.getStatesList(),
|
|
450
|
+
proto.Spic.AssetProto.ComponentState.toObject, includeInstance),
|
|
451
451
|
deviceType: jspb.Message.getFieldWithDefault(msg, 20, 0)
|
|
452
452
|
};
|
|
453
453
|
|
|
@@ -553,9 +553,9 @@ proto.Spic.AssetProto.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
553
553
|
msg.setBatteryStatus(value);
|
|
554
554
|
break;
|
|
555
555
|
case 19:
|
|
556
|
-
var value = new proto.Spic.AssetProto.
|
|
557
|
-
reader.readMessage(value,proto.Spic.AssetProto.
|
|
558
|
-
msg.
|
|
556
|
+
var value = new proto.Spic.AssetProto.ComponentState;
|
|
557
|
+
reader.readMessage(value,proto.Spic.AssetProto.ComponentState.deserializeBinaryFromReader);
|
|
558
|
+
msg.addStates(value);
|
|
559
559
|
break;
|
|
560
560
|
case 20:
|
|
561
561
|
var value = /** @type {!proto.Spic.AssetProto.DeviceType} */ (reader.readEnum());
|
|
@@ -705,12 +705,12 @@ proto.Spic.AssetProto.serializeBinaryToWriter = function(message, writer) {
|
|
|
705
705
|
f
|
|
706
706
|
);
|
|
707
707
|
}
|
|
708
|
-
f = message.
|
|
708
|
+
f = message.getStatesList();
|
|
709
709
|
if (f.length > 0) {
|
|
710
710
|
writer.writeRepeatedMessage(
|
|
711
711
|
19,
|
|
712
712
|
f,
|
|
713
|
-
proto.Spic.AssetProto.
|
|
713
|
+
proto.Spic.AssetProto.ComponentState.serializeBinaryToWriter
|
|
714
714
|
);
|
|
715
715
|
}
|
|
716
716
|
f = message.getDeviceType();
|
|
@@ -3378,8 +3378,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
3378
3378
|
* http://goto/soy-param-migration
|
|
3379
3379
|
* @return {!Object}
|
|
3380
3380
|
*/
|
|
3381
|
-
proto.Spic.AssetProto.
|
|
3382
|
-
return proto.Spic.AssetProto.
|
|
3381
|
+
proto.Spic.AssetProto.ComponentState.prototype.toObject = function(opt_includeInstance) {
|
|
3382
|
+
return proto.Spic.AssetProto.ComponentState.toObject(opt_includeInstance, this);
|
|
3383
3383
|
};
|
|
3384
3384
|
|
|
3385
3385
|
|
|
@@ -3388,16 +3388,20 @@ proto.Spic.AssetProto.Component.prototype.toObject = function(opt_includeInstanc
|
|
|
3388
3388
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3389
3389
|
* the JSPB instance for transitional soy proto support:
|
|
3390
3390
|
* http://goto/soy-param-migration
|
|
3391
|
-
* @param {!proto.Spic.AssetProto.
|
|
3391
|
+
* @param {!proto.Spic.AssetProto.ComponentState} msg The msg instance to transform.
|
|
3392
3392
|
* @return {!Object}
|
|
3393
3393
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3394
3394
|
*/
|
|
3395
|
-
proto.Spic.AssetProto.
|
|
3395
|
+
proto.Spic.AssetProto.ComponentState.toObject = function(includeInstance, msg) {
|
|
3396
3396
|
var f, obj = {
|
|
3397
|
-
|
|
3398
|
-
|
|
3397
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3398
|
+
componentIdentifier: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
3399
3399
|
domain: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
3400
|
+
componentClass: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
3401
|
+
value: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
3402
|
+
lastChanged: (f = msg.getLastChanged()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
3400
3403
|
lastUpdated: (f = msg.getLastUpdated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
3404
|
+
lastReported: (f = msg.getLastReported()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
3401
3405
|
attributesMap: (f = msg.getAttributesMap()) ? f.toObject(includeInstance, undefined) : []
|
|
3402
3406
|
};
|
|
3403
3407
|
|
|
@@ -3412,23 +3416,23 @@ proto.Spic.AssetProto.Component.toObject = function(includeInstance, msg) {
|
|
|
3412
3416
|
/**
|
|
3413
3417
|
* Deserializes binary data (in protobuf wire format).
|
|
3414
3418
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3415
|
-
* @return {!proto.Spic.AssetProto.
|
|
3419
|
+
* @return {!proto.Spic.AssetProto.ComponentState}
|
|
3416
3420
|
*/
|
|
3417
|
-
proto.Spic.AssetProto.
|
|
3421
|
+
proto.Spic.AssetProto.ComponentState.deserializeBinary = function(bytes) {
|
|
3418
3422
|
var reader = new jspb.BinaryReader(bytes);
|
|
3419
|
-
var msg = new proto.Spic.AssetProto.
|
|
3420
|
-
return proto.Spic.AssetProto.
|
|
3423
|
+
var msg = new proto.Spic.AssetProto.ComponentState;
|
|
3424
|
+
return proto.Spic.AssetProto.ComponentState.deserializeBinaryFromReader(msg, reader);
|
|
3421
3425
|
};
|
|
3422
3426
|
|
|
3423
3427
|
|
|
3424
3428
|
/**
|
|
3425
3429
|
* Deserializes binary data (in protobuf wire format) from the
|
|
3426
3430
|
* given reader into the given message object.
|
|
3427
|
-
* @param {!proto.Spic.AssetProto.
|
|
3431
|
+
* @param {!proto.Spic.AssetProto.ComponentState} msg The message object to deserialize into.
|
|
3428
3432
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3429
|
-
* @return {!proto.Spic.AssetProto.
|
|
3433
|
+
* @return {!proto.Spic.AssetProto.ComponentState}
|
|
3430
3434
|
*/
|
|
3431
|
-
proto.Spic.AssetProto.
|
|
3435
|
+
proto.Spic.AssetProto.ComponentState.deserializeBinaryFromReader = function(msg, reader) {
|
|
3432
3436
|
while (reader.nextField()) {
|
|
3433
3437
|
if (reader.isEndGroup()) {
|
|
3434
3438
|
break;
|
|
@@ -3437,22 +3441,40 @@ proto.Spic.AssetProto.Component.deserializeBinaryFromReader = function(msg, read
|
|
|
3437
3441
|
switch (field) {
|
|
3438
3442
|
case 1:
|
|
3439
3443
|
var value = /** @type {string} */ (reader.readString());
|
|
3440
|
-
msg.
|
|
3444
|
+
msg.setId(value);
|
|
3441
3445
|
break;
|
|
3442
3446
|
case 2:
|
|
3443
|
-
var value = /** @type {
|
|
3444
|
-
msg.
|
|
3447
|
+
var value = /** @type {!proto.Spic.ComponentIdentifier} */ (reader.readEnum());
|
|
3448
|
+
msg.setComponentIdentifier(value);
|
|
3445
3449
|
break;
|
|
3446
3450
|
case 3:
|
|
3447
3451
|
var value = /** @type {string} */ (reader.readString());
|
|
3448
3452
|
msg.setDomain(value);
|
|
3449
3453
|
break;
|
|
3450
3454
|
case 4:
|
|
3455
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3456
|
+
msg.setComponentClass(value);
|
|
3457
|
+
break;
|
|
3458
|
+
case 5:
|
|
3459
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3460
|
+
msg.setValue(value);
|
|
3461
|
+
break;
|
|
3462
|
+
case 6:
|
|
3463
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
3464
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
3465
|
+
msg.setLastChanged(value);
|
|
3466
|
+
break;
|
|
3467
|
+
case 7:
|
|
3451
3468
|
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
3452
3469
|
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
3453
3470
|
msg.setLastUpdated(value);
|
|
3454
3471
|
break;
|
|
3455
|
-
case
|
|
3472
|
+
case 8:
|
|
3473
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
3474
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
3475
|
+
msg.setLastReported(value);
|
|
3476
|
+
break;
|
|
3477
|
+
case 9:
|
|
3456
3478
|
var value = msg.getAttributesMap();
|
|
3457
3479
|
reader.readMessage(value, function(message, reader) {
|
|
3458
3480
|
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
|
|
@@ -3471,9 +3493,9 @@ proto.Spic.AssetProto.Component.deserializeBinaryFromReader = function(msg, read
|
|
|
3471
3493
|
* Serializes the message to binary data (in protobuf wire format).
|
|
3472
3494
|
* @return {!Uint8Array}
|
|
3473
3495
|
*/
|
|
3474
|
-
proto.Spic.AssetProto.
|
|
3496
|
+
proto.Spic.AssetProto.ComponentState.prototype.serializeBinary = function() {
|
|
3475
3497
|
var writer = new jspb.BinaryWriter();
|
|
3476
|
-
proto.Spic.AssetProto.
|
|
3498
|
+
proto.Spic.AssetProto.ComponentState.serializeBinaryToWriter(this, writer);
|
|
3477
3499
|
return writer.getResultBuffer();
|
|
3478
3500
|
};
|
|
3479
3501
|
|
|
@@ -3481,22 +3503,22 @@ proto.Spic.AssetProto.Component.prototype.serializeBinary = function() {
|
|
|
3481
3503
|
/**
|
|
3482
3504
|
* Serializes the given message to binary data (in protobuf wire
|
|
3483
3505
|
* format), writing to the given BinaryWriter.
|
|
3484
|
-
* @param {!proto.Spic.AssetProto.
|
|
3506
|
+
* @param {!proto.Spic.AssetProto.ComponentState} message
|
|
3485
3507
|
* @param {!jspb.BinaryWriter} writer
|
|
3486
3508
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3487
3509
|
*/
|
|
3488
|
-
proto.Spic.AssetProto.
|
|
3510
|
+
proto.Spic.AssetProto.ComponentState.serializeBinaryToWriter = function(message, writer) {
|
|
3489
3511
|
var f = undefined;
|
|
3490
|
-
f = message.
|
|
3512
|
+
f = message.getId();
|
|
3491
3513
|
if (f.length > 0) {
|
|
3492
3514
|
writer.writeString(
|
|
3493
3515
|
1,
|
|
3494
3516
|
f
|
|
3495
3517
|
);
|
|
3496
3518
|
}
|
|
3497
|
-
f = message.
|
|
3498
|
-
if (f
|
|
3499
|
-
writer.
|
|
3519
|
+
f = message.getComponentIdentifier();
|
|
3520
|
+
if (f !== 0.0) {
|
|
3521
|
+
writer.writeEnum(
|
|
3500
3522
|
2,
|
|
3501
3523
|
f
|
|
3502
3524
|
);
|
|
@@ -3508,54 +3530,84 @@ proto.Spic.AssetProto.Component.serializeBinaryToWriter = function(message, writ
|
|
|
3508
3530
|
f
|
|
3509
3531
|
);
|
|
3510
3532
|
}
|
|
3533
|
+
f = message.getComponentClass();
|
|
3534
|
+
if (f.length > 0) {
|
|
3535
|
+
writer.writeString(
|
|
3536
|
+
4,
|
|
3537
|
+
f
|
|
3538
|
+
);
|
|
3539
|
+
}
|
|
3540
|
+
f = message.getValue();
|
|
3541
|
+
if (f.length > 0) {
|
|
3542
|
+
writer.writeString(
|
|
3543
|
+
5,
|
|
3544
|
+
f
|
|
3545
|
+
);
|
|
3546
|
+
}
|
|
3547
|
+
f = message.getLastChanged();
|
|
3548
|
+
if (f != null) {
|
|
3549
|
+
writer.writeMessage(
|
|
3550
|
+
6,
|
|
3551
|
+
f,
|
|
3552
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
3553
|
+
);
|
|
3554
|
+
}
|
|
3511
3555
|
f = message.getLastUpdated();
|
|
3512
3556
|
if (f != null) {
|
|
3513
3557
|
writer.writeMessage(
|
|
3514
|
-
|
|
3558
|
+
7,
|
|
3559
|
+
f,
|
|
3560
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
3561
|
+
);
|
|
3562
|
+
}
|
|
3563
|
+
f = message.getLastReported();
|
|
3564
|
+
if (f != null) {
|
|
3565
|
+
writer.writeMessage(
|
|
3566
|
+
8,
|
|
3515
3567
|
f,
|
|
3516
3568
|
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
3517
3569
|
);
|
|
3518
3570
|
}
|
|
3519
3571
|
f = message.getAttributesMap(true);
|
|
3520
3572
|
if (f && f.getLength() > 0) {
|
|
3521
|
-
f.serializeBinary(
|
|
3573
|
+
f.serializeBinary(9, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
|
3522
3574
|
}
|
|
3523
3575
|
};
|
|
3524
3576
|
|
|
3525
3577
|
|
|
3526
3578
|
/**
|
|
3527
|
-
* optional string
|
|
3579
|
+
* optional string id = 1;
|
|
3528
3580
|
* @return {string}
|
|
3529
3581
|
*/
|
|
3530
|
-
proto.Spic.AssetProto.
|
|
3582
|
+
proto.Spic.AssetProto.ComponentState.prototype.getId = function() {
|
|
3531
3583
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3532
3584
|
};
|
|
3533
3585
|
|
|
3534
3586
|
|
|
3535
3587
|
/**
|
|
3536
3588
|
* @param {string} value
|
|
3537
|
-
* @return {!proto.Spic.AssetProto.
|
|
3589
|
+
* @return {!proto.Spic.AssetProto.ComponentState} returns this
|
|
3538
3590
|
*/
|
|
3539
|
-
proto.Spic.AssetProto.
|
|
3591
|
+
proto.Spic.AssetProto.ComponentState.prototype.setId = function(value) {
|
|
3540
3592
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3541
3593
|
};
|
|
3542
3594
|
|
|
3543
3595
|
|
|
3544
3596
|
/**
|
|
3545
|
-
* optional
|
|
3546
|
-
* @return {
|
|
3597
|
+
* optional ComponentIdentifier component_identifier = 2;
|
|
3598
|
+
* @return {!proto.Spic.ComponentIdentifier}
|
|
3547
3599
|
*/
|
|
3548
|
-
proto.Spic.AssetProto.
|
|
3549
|
-
return /** @type {
|
|
3600
|
+
proto.Spic.AssetProto.ComponentState.prototype.getComponentIdentifier = function() {
|
|
3601
|
+
return /** @type {!proto.Spic.ComponentIdentifier} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
3550
3602
|
};
|
|
3551
3603
|
|
|
3552
3604
|
|
|
3553
3605
|
/**
|
|
3554
|
-
* @param {
|
|
3555
|
-
* @return {!proto.Spic.AssetProto.
|
|
3606
|
+
* @param {!proto.Spic.ComponentIdentifier} value
|
|
3607
|
+
* @return {!proto.Spic.AssetProto.ComponentState} returns this
|
|
3556
3608
|
*/
|
|
3557
|
-
proto.Spic.AssetProto.
|
|
3558
|
-
return jspb.Message.
|
|
3609
|
+
proto.Spic.AssetProto.ComponentState.prototype.setComponentIdentifier = function(value) {
|
|
3610
|
+
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
3559
3611
|
};
|
|
3560
3612
|
|
|
3561
3613
|
|
|
@@ -3563,44 +3615,117 @@ proto.Spic.AssetProto.Component.prototype.setValue = function(value) {
|
|
|
3563
3615
|
* optional string domain = 3;
|
|
3564
3616
|
* @return {string}
|
|
3565
3617
|
*/
|
|
3566
|
-
proto.Spic.AssetProto.
|
|
3618
|
+
proto.Spic.AssetProto.ComponentState.prototype.getDomain = function() {
|
|
3567
3619
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
3568
3620
|
};
|
|
3569
3621
|
|
|
3570
3622
|
|
|
3571
3623
|
/**
|
|
3572
3624
|
* @param {string} value
|
|
3573
|
-
* @return {!proto.Spic.AssetProto.
|
|
3625
|
+
* @return {!proto.Spic.AssetProto.ComponentState} returns this
|
|
3574
3626
|
*/
|
|
3575
|
-
proto.Spic.AssetProto.
|
|
3627
|
+
proto.Spic.AssetProto.ComponentState.prototype.setDomain = function(value) {
|
|
3576
3628
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
3577
3629
|
};
|
|
3578
3630
|
|
|
3579
3631
|
|
|
3580
3632
|
/**
|
|
3581
|
-
* optional
|
|
3633
|
+
* optional string component_class = 4;
|
|
3634
|
+
* @return {string}
|
|
3635
|
+
*/
|
|
3636
|
+
proto.Spic.AssetProto.ComponentState.prototype.getComponentClass = function() {
|
|
3637
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
3638
|
+
};
|
|
3639
|
+
|
|
3640
|
+
|
|
3641
|
+
/**
|
|
3642
|
+
* @param {string} value
|
|
3643
|
+
* @return {!proto.Spic.AssetProto.ComponentState} returns this
|
|
3644
|
+
*/
|
|
3645
|
+
proto.Spic.AssetProto.ComponentState.prototype.setComponentClass = function(value) {
|
|
3646
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
3647
|
+
};
|
|
3648
|
+
|
|
3649
|
+
|
|
3650
|
+
/**
|
|
3651
|
+
* optional string value = 5;
|
|
3652
|
+
* @return {string}
|
|
3653
|
+
*/
|
|
3654
|
+
proto.Spic.AssetProto.ComponentState.prototype.getValue = function() {
|
|
3655
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
3656
|
+
};
|
|
3657
|
+
|
|
3658
|
+
|
|
3659
|
+
/**
|
|
3660
|
+
* @param {string} value
|
|
3661
|
+
* @return {!proto.Spic.AssetProto.ComponentState} returns this
|
|
3662
|
+
*/
|
|
3663
|
+
proto.Spic.AssetProto.ComponentState.prototype.setValue = function(value) {
|
|
3664
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
3665
|
+
};
|
|
3666
|
+
|
|
3667
|
+
|
|
3668
|
+
/**
|
|
3669
|
+
* optional google.protobuf.Timestamp last_changed = 6;
|
|
3582
3670
|
* @return {?proto.google.protobuf.Timestamp}
|
|
3583
3671
|
*/
|
|
3584
|
-
proto.Spic.AssetProto.
|
|
3672
|
+
proto.Spic.AssetProto.ComponentState.prototype.getLastChanged = function() {
|
|
3585
3673
|
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
3586
|
-
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp,
|
|
3674
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
|
|
3587
3675
|
};
|
|
3588
3676
|
|
|
3589
3677
|
|
|
3590
3678
|
/**
|
|
3591
3679
|
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
3592
|
-
* @return {!proto.Spic.AssetProto.
|
|
3680
|
+
* @return {!proto.Spic.AssetProto.ComponentState} returns this
|
|
3593
3681
|
*/
|
|
3594
|
-
proto.Spic.AssetProto.
|
|
3595
|
-
return jspb.Message.setWrapperField(this,
|
|
3682
|
+
proto.Spic.AssetProto.ComponentState.prototype.setLastChanged = function(value) {
|
|
3683
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
3684
|
+
};
|
|
3685
|
+
|
|
3686
|
+
|
|
3687
|
+
/**
|
|
3688
|
+
* Clears the message field making it undefined.
|
|
3689
|
+
* @return {!proto.Spic.AssetProto.ComponentState} returns this
|
|
3690
|
+
*/
|
|
3691
|
+
proto.Spic.AssetProto.ComponentState.prototype.clearLastChanged = function() {
|
|
3692
|
+
return this.setLastChanged(undefined);
|
|
3693
|
+
};
|
|
3694
|
+
|
|
3695
|
+
|
|
3696
|
+
/**
|
|
3697
|
+
* Returns whether this field is set.
|
|
3698
|
+
* @return {boolean}
|
|
3699
|
+
*/
|
|
3700
|
+
proto.Spic.AssetProto.ComponentState.prototype.hasLastChanged = function() {
|
|
3701
|
+
return jspb.Message.getField(this, 6) != null;
|
|
3702
|
+
};
|
|
3703
|
+
|
|
3704
|
+
|
|
3705
|
+
/**
|
|
3706
|
+
* optional google.protobuf.Timestamp last_updated = 7;
|
|
3707
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
3708
|
+
*/
|
|
3709
|
+
proto.Spic.AssetProto.ComponentState.prototype.getLastUpdated = function() {
|
|
3710
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
3711
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
|
|
3712
|
+
};
|
|
3713
|
+
|
|
3714
|
+
|
|
3715
|
+
/**
|
|
3716
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
3717
|
+
* @return {!proto.Spic.AssetProto.ComponentState} returns this
|
|
3718
|
+
*/
|
|
3719
|
+
proto.Spic.AssetProto.ComponentState.prototype.setLastUpdated = function(value) {
|
|
3720
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
3596
3721
|
};
|
|
3597
3722
|
|
|
3598
3723
|
|
|
3599
3724
|
/**
|
|
3600
3725
|
* Clears the message field making it undefined.
|
|
3601
|
-
* @return {!proto.Spic.AssetProto.
|
|
3726
|
+
* @return {!proto.Spic.AssetProto.ComponentState} returns this
|
|
3602
3727
|
*/
|
|
3603
|
-
proto.Spic.AssetProto.
|
|
3728
|
+
proto.Spic.AssetProto.ComponentState.prototype.clearLastUpdated = function() {
|
|
3604
3729
|
return this.setLastUpdated(undefined);
|
|
3605
3730
|
};
|
|
3606
3731
|
|
|
@@ -3609,29 +3734,66 @@ proto.Spic.AssetProto.Component.prototype.clearLastUpdated = function() {
|
|
|
3609
3734
|
* Returns whether this field is set.
|
|
3610
3735
|
* @return {boolean}
|
|
3611
3736
|
*/
|
|
3612
|
-
proto.Spic.AssetProto.
|
|
3613
|
-
return jspb.Message.getField(this,
|
|
3737
|
+
proto.Spic.AssetProto.ComponentState.prototype.hasLastUpdated = function() {
|
|
3738
|
+
return jspb.Message.getField(this, 7) != null;
|
|
3739
|
+
};
|
|
3740
|
+
|
|
3741
|
+
|
|
3742
|
+
/**
|
|
3743
|
+
* optional google.protobuf.Timestamp last_reported = 8;
|
|
3744
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
3745
|
+
*/
|
|
3746
|
+
proto.Spic.AssetProto.ComponentState.prototype.getLastReported = function() {
|
|
3747
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
3748
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8));
|
|
3749
|
+
};
|
|
3750
|
+
|
|
3751
|
+
|
|
3752
|
+
/**
|
|
3753
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
3754
|
+
* @return {!proto.Spic.AssetProto.ComponentState} returns this
|
|
3755
|
+
*/
|
|
3756
|
+
proto.Spic.AssetProto.ComponentState.prototype.setLastReported = function(value) {
|
|
3757
|
+
return jspb.Message.setWrapperField(this, 8, value);
|
|
3758
|
+
};
|
|
3759
|
+
|
|
3760
|
+
|
|
3761
|
+
/**
|
|
3762
|
+
* Clears the message field making it undefined.
|
|
3763
|
+
* @return {!proto.Spic.AssetProto.ComponentState} returns this
|
|
3764
|
+
*/
|
|
3765
|
+
proto.Spic.AssetProto.ComponentState.prototype.clearLastReported = function() {
|
|
3766
|
+
return this.setLastReported(undefined);
|
|
3767
|
+
};
|
|
3768
|
+
|
|
3769
|
+
|
|
3770
|
+
/**
|
|
3771
|
+
* Returns whether this field is set.
|
|
3772
|
+
* @return {boolean}
|
|
3773
|
+
*/
|
|
3774
|
+
proto.Spic.AssetProto.ComponentState.prototype.hasLastReported = function() {
|
|
3775
|
+
return jspb.Message.getField(this, 8) != null;
|
|
3614
3776
|
};
|
|
3615
3777
|
|
|
3616
3778
|
|
|
3617
3779
|
/**
|
|
3618
|
-
* map<string, string> attributes =
|
|
3780
|
+
* map<string, string> attributes = 9;
|
|
3619
3781
|
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
3620
3782
|
* empty, instead returning `undefined`
|
|
3621
3783
|
* @return {!jspb.Map<string,string>}
|
|
3622
3784
|
*/
|
|
3623
|
-
proto.Spic.AssetProto.
|
|
3785
|
+
proto.Spic.AssetProto.ComponentState.prototype.getAttributesMap = function(opt_noLazyCreate) {
|
|
3624
3786
|
return /** @type {!jspb.Map<string,string>} */ (
|
|
3625
|
-
jspb.Message.getMapField(this,
|
|
3787
|
+
jspb.Message.getMapField(this, 9, opt_noLazyCreate,
|
|
3626
3788
|
null));
|
|
3627
3789
|
};
|
|
3628
3790
|
|
|
3629
3791
|
|
|
3630
3792
|
/**
|
|
3631
3793
|
* Clears values from the map. The map will be non-null.
|
|
3632
|
-
* @return {!proto.Spic.AssetProto.
|
|
3794
|
+
* @return {!proto.Spic.AssetProto.ComponentState} returns this
|
|
3633
3795
|
*/
|
|
3634
|
-
proto.Spic.AssetProto.
|
|
3796
|
+
proto.Spic.AssetProto.ComponentState.prototype.clearAttributesMap = function() {
|
|
3635
3797
|
this.getAttributesMap().clear();
|
|
3636
3798
|
return this;
|
|
3637
3799
|
};
|
|
@@ -3983,31 +4145,31 @@ proto.Spic.AssetProto.prototype.setBatteryStatus = function(value) {
|
|
|
3983
4145
|
|
|
3984
4146
|
|
|
3985
4147
|
/**
|
|
3986
|
-
* repeated
|
|
3987
|
-
* @return {!Array<!proto.Spic.AssetProto.
|
|
4148
|
+
* repeated ComponentState states = 19;
|
|
4149
|
+
* @return {!Array<!proto.Spic.AssetProto.ComponentState>}
|
|
3988
4150
|
*/
|
|
3989
|
-
proto.Spic.AssetProto.prototype.
|
|
3990
|
-
return /** @type{!Array<!proto.Spic.AssetProto.
|
|
3991
|
-
jspb.Message.getRepeatedWrapperField(this, proto.Spic.AssetProto.
|
|
4151
|
+
proto.Spic.AssetProto.prototype.getStatesList = function() {
|
|
4152
|
+
return /** @type{!Array<!proto.Spic.AssetProto.ComponentState>} */ (
|
|
4153
|
+
jspb.Message.getRepeatedWrapperField(this, proto.Spic.AssetProto.ComponentState, 19));
|
|
3992
4154
|
};
|
|
3993
4155
|
|
|
3994
4156
|
|
|
3995
4157
|
/**
|
|
3996
|
-
* @param {!Array<!proto.Spic.AssetProto.
|
|
4158
|
+
* @param {!Array<!proto.Spic.AssetProto.ComponentState>} value
|
|
3997
4159
|
* @return {!proto.Spic.AssetProto} returns this
|
|
3998
4160
|
*/
|
|
3999
|
-
proto.Spic.AssetProto.prototype.
|
|
4161
|
+
proto.Spic.AssetProto.prototype.setStatesList = function(value) {
|
|
4000
4162
|
return jspb.Message.setRepeatedWrapperField(this, 19, value);
|
|
4001
4163
|
};
|
|
4002
4164
|
|
|
4003
4165
|
|
|
4004
4166
|
/**
|
|
4005
|
-
* @param {!proto.Spic.AssetProto.
|
|
4167
|
+
* @param {!proto.Spic.AssetProto.ComponentState=} opt_value
|
|
4006
4168
|
* @param {number=} opt_index
|
|
4007
|
-
* @return {!proto.Spic.AssetProto.
|
|
4169
|
+
* @return {!proto.Spic.AssetProto.ComponentState}
|
|
4008
4170
|
*/
|
|
4009
|
-
proto.Spic.AssetProto.prototype.
|
|
4010
|
-
return jspb.Message.addToRepeatedWrapperField(this, 19, opt_value, proto.Spic.AssetProto.
|
|
4171
|
+
proto.Spic.AssetProto.prototype.addStates = function(opt_value, opt_index) {
|
|
4172
|
+
return jspb.Message.addToRepeatedWrapperField(this, 19, opt_value, proto.Spic.AssetProto.ComponentState, opt_index);
|
|
4011
4173
|
};
|
|
4012
4174
|
|
|
4013
4175
|
|
|
@@ -4015,8 +4177,8 @@ proto.Spic.AssetProto.prototype.addComponents = function(opt_value, opt_index) {
|
|
|
4015
4177
|
* Clears the list making it empty but non-null.
|
|
4016
4178
|
* @return {!proto.Spic.AssetProto} returns this
|
|
4017
4179
|
*/
|
|
4018
|
-
proto.Spic.AssetProto.prototype.
|
|
4019
|
-
return this.
|
|
4180
|
+
proto.Spic.AssetProto.prototype.clearStatesList = function() {
|
|
4181
|
+
return this.setStatesList([]);
|
|
4020
4182
|
};
|
|
4021
4183
|
|
|
4022
4184
|
|
|
@@ -4535,7 +4697,7 @@ proto.Spic.AssetWithLocationAndDistance.prototype.setDistance = function(value)
|
|
|
4535
4697
|
/**
|
|
4536
4698
|
* @enum {number}
|
|
4537
4699
|
*/
|
|
4538
|
-
proto.Spic.
|
|
4700
|
+
proto.Spic.ComponentIdentifier = {
|
|
4539
4701
|
ENCLOSURE_TEMPERATURE: 0,
|
|
4540
4702
|
ENCLOSURE_HUMIDITY: 1,
|
|
4541
4703
|
ENCLOSURE_TILT: 2,
|