@aceplus/smartace-api 3.6.0 → 3.7.0-alpha.10
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/auth.account_pb.d.ts +4 -153
- package/auth.account_pb.js +63 -1209
- package/auth.account_pb_service.d.ts +0 -124
- package/auth.account_pb_service.js +0 -255
- package/auth.account_two_factor_pb.d.ts +0 -24
- package/auth.account_two_factor_pb.js +0 -182
- package/auth.account_two_factor_pb_service.d.ts +0 -19
- package/auth.account_two_factor_pb_service.js +0 -40
- package/auth.app_account_pb.d.ts +30 -0
- package/auth.app_account_pb.js +190 -0
- package/auth.app_account_pb_service.d.ts +19 -0
- package/auth.app_account_pb_service.js +40 -0
- package/auth.app_distribution_pb.d.ts +68 -0
- package/auth.app_distribution_pb.js +516 -0
- package/auth.app_distribution_pb_service.d.ts +38 -0
- package/auth.app_distribution_pb_service.js +80 -0
- package/auth.passkey_pb.d.ts +239 -0
- package/auth.passkey_pb.js +1842 -0
- package/auth.passkey_pb_service.d.ts +160 -0
- package/auth.passkey_pb_service.js +263 -0
- package/package.json +1 -1
- package/platform.local_account_pb.d.ts +20 -0
- package/platform.local_account_pb.js +152 -0
- package/platform.local_account_pb_service.d.ts +6 -6
- package/platform.local_account_pb_service.js +2 -2
- package/spic.asset_pb.d.ts +79 -71
- package/spic.asset_pb.js +679 -619
package/spic.asset_pb.js
CHANGED
|
@@ -36,7 +36,6 @@ goog.object.extend(proto, google_api_annotations_pb);
|
|
|
36
36
|
goog.exportSymbol('proto.Spic.AssetProto', null, global);
|
|
37
37
|
goog.exportSymbol('proto.Spic.AssetProto.AssetType', null, global);
|
|
38
38
|
goog.exportSymbol('proto.Spic.AssetProto.BatteryStatus', null, global);
|
|
39
|
-
goog.exportSymbol('proto.Spic.AssetProto.ComponentState', null, global);
|
|
40
39
|
goog.exportSymbol('proto.Spic.AssetProto.CreateRequest', null, global);
|
|
41
40
|
goog.exportSymbol('proto.Spic.AssetProto.DeleteRequest', null, global);
|
|
42
41
|
goog.exportSymbol('proto.Spic.AssetProto.DeleteRequest.SearchCase', null, global);
|
|
@@ -56,6 +55,7 @@ goog.exportSymbol('proto.Spic.AssetProto.UpdateRequest', null, global);
|
|
|
56
55
|
goog.exportSymbol('proto.Spic.AssetWithLocation', null, global);
|
|
57
56
|
goog.exportSymbol('proto.Spic.AssetWithLocationAndDistance', null, global);
|
|
58
57
|
goog.exportSymbol('proto.Spic.ComponentIdentifier', null, global);
|
|
58
|
+
goog.exportSymbol('proto.Spic.ComponentProto', null, global);
|
|
59
59
|
/**
|
|
60
60
|
* Generated by JsPbCodeGenerator.
|
|
61
61
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -339,16 +339,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
339
339
|
* @extends {jspb.Message}
|
|
340
340
|
* @constructor
|
|
341
341
|
*/
|
|
342
|
-
proto.Spic.AssetProto.
|
|
342
|
+
proto.Spic.AssetProto.StateChangedEvent = function(opt_data) {
|
|
343
343
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
344
344
|
};
|
|
345
|
-
goog.inherits(proto.Spic.AssetProto.
|
|
345
|
+
goog.inherits(proto.Spic.AssetProto.StateChangedEvent, jspb.Message);
|
|
346
346
|
if (goog.DEBUG && !COMPILED) {
|
|
347
347
|
/**
|
|
348
348
|
* @public
|
|
349
349
|
* @override
|
|
350
350
|
*/
|
|
351
|
-
proto.Spic.AssetProto.
|
|
351
|
+
proto.Spic.AssetProto.StateChangedEvent.displayName = 'proto.Spic.AssetProto.StateChangedEvent';
|
|
352
352
|
}
|
|
353
353
|
/**
|
|
354
354
|
* Generated by JsPbCodeGenerator.
|
|
@@ -360,16 +360,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
360
360
|
* @extends {jspb.Message}
|
|
361
361
|
* @constructor
|
|
362
362
|
*/
|
|
363
|
-
proto.Spic.
|
|
363
|
+
proto.Spic.ComponentProto = function(opt_data) {
|
|
364
364
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
365
365
|
};
|
|
366
|
-
goog.inherits(proto.Spic.
|
|
366
|
+
goog.inherits(proto.Spic.ComponentProto, jspb.Message);
|
|
367
367
|
if (goog.DEBUG && !COMPILED) {
|
|
368
368
|
/**
|
|
369
369
|
* @public
|
|
370
370
|
* @override
|
|
371
371
|
*/
|
|
372
|
-
proto.Spic.
|
|
372
|
+
proto.Spic.ComponentProto.displayName = 'proto.Spic.ComponentProto';
|
|
373
373
|
}
|
|
374
374
|
/**
|
|
375
375
|
* Generated by JsPbCodeGenerator.
|
|
@@ -470,7 +470,7 @@ proto.Spic.AssetProto.toObject = function(includeInstance, msg) {
|
|
|
470
470
|
assetType: jspb.Message.getFieldWithDefault(msg, 17, 0),
|
|
471
471
|
batteryStatus: jspb.Message.getFieldWithDefault(msg, 18, 0),
|
|
472
472
|
statesList: jspb.Message.toObjectList(msg.getStatesList(),
|
|
473
|
-
proto.Spic.
|
|
473
|
+
proto.Spic.ComponentProto.toObject, includeInstance),
|
|
474
474
|
deviceType: jspb.Message.getFieldWithDefault(msg, 20, 0)
|
|
475
475
|
};
|
|
476
476
|
|
|
@@ -580,8 +580,8 @@ proto.Spic.AssetProto.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
580
580
|
msg.setBatteryStatus(value);
|
|
581
581
|
break;
|
|
582
582
|
case 19:
|
|
583
|
-
var value = new proto.Spic.
|
|
584
|
-
reader.readMessage(value,proto.Spic.
|
|
583
|
+
var value = new proto.Spic.ComponentProto;
|
|
584
|
+
reader.readMessage(value,proto.Spic.ComponentProto.deserializeBinaryFromReader);
|
|
585
585
|
msg.addStates(value);
|
|
586
586
|
break;
|
|
587
587
|
case 20:
|
|
@@ -744,7 +744,7 @@ proto.Spic.AssetProto.serializeBinaryToWriter = function(message, writer) {
|
|
|
744
744
|
writer.writeRepeatedMessage(
|
|
745
745
|
19,
|
|
746
746
|
f,
|
|
747
|
-
proto.Spic.
|
|
747
|
+
proto.Spic.ComponentProto.serializeBinaryToWriter
|
|
748
748
|
);
|
|
749
749
|
}
|
|
750
750
|
f = message.getDeviceType();
|
|
@@ -822,7 +822,8 @@ proto.Spic.AssetProto.CreateRequest.toObject = function(includeInstance, msg) {
|
|
|
822
822
|
image: (f = msg.getImage()) && google_protobuf_wrappers_pb.BytesValue.toObject(includeInstance, f),
|
|
823
823
|
groupId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
824
824
|
clientId: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
825
|
-
assetType: jspb.Message.getFieldWithDefault(msg, 7, 0)
|
|
825
|
+
assetType: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
826
|
+
isMaintenance: jspb.Message.getBooleanFieldWithDefault(msg, 8, false)
|
|
826
827
|
};
|
|
827
828
|
|
|
828
829
|
if (includeInstance) {
|
|
@@ -888,6 +889,10 @@ proto.Spic.AssetProto.CreateRequest.deserializeBinaryFromReader = function(msg,
|
|
|
888
889
|
var value = /** @type {!proto.Spic.AssetProto.AssetType} */ (reader.readEnum());
|
|
889
890
|
msg.setAssetType(value);
|
|
890
891
|
break;
|
|
892
|
+
case 8:
|
|
893
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
894
|
+
msg.setIsMaintenance(value);
|
|
895
|
+
break;
|
|
891
896
|
default:
|
|
892
897
|
reader.skipField();
|
|
893
898
|
break;
|
|
@@ -967,6 +972,13 @@ proto.Spic.AssetProto.CreateRequest.serializeBinaryToWriter = function(message,
|
|
|
967
972
|
f
|
|
968
973
|
);
|
|
969
974
|
}
|
|
975
|
+
f = message.getIsMaintenance();
|
|
976
|
+
if (f) {
|
|
977
|
+
writer.writeBool(
|
|
978
|
+
8,
|
|
979
|
+
f
|
|
980
|
+
);
|
|
981
|
+
}
|
|
970
982
|
};
|
|
971
983
|
|
|
972
984
|
|
|
@@ -1115,6 +1127,24 @@ proto.Spic.AssetProto.CreateRequest.prototype.setAssetType = function(value) {
|
|
|
1115
1127
|
};
|
|
1116
1128
|
|
|
1117
1129
|
|
|
1130
|
+
/**
|
|
1131
|
+
* optional bool is_maintenance = 8;
|
|
1132
|
+
* @return {boolean}
|
|
1133
|
+
*/
|
|
1134
|
+
proto.Spic.AssetProto.CreateRequest.prototype.getIsMaintenance = function() {
|
|
1135
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
|
|
1136
|
+
};
|
|
1137
|
+
|
|
1138
|
+
|
|
1139
|
+
/**
|
|
1140
|
+
* @param {boolean} value
|
|
1141
|
+
* @return {!proto.Spic.AssetProto.CreateRequest} returns this
|
|
1142
|
+
*/
|
|
1143
|
+
proto.Spic.AssetProto.CreateRequest.prototype.setIsMaintenance = function(value) {
|
|
1144
|
+
return jspb.Message.setProto3BooleanField(this, 8, value);
|
|
1145
|
+
};
|
|
1146
|
+
|
|
1147
|
+
|
|
1118
1148
|
|
|
1119
1149
|
/**
|
|
1120
1150
|
* Oneof group definitions for this message. Each group defines the field
|
|
@@ -1376,7 +1406,8 @@ proto.Spic.AssetProto.UpdateRequest.toObject = function(includeInstance, msg) {
|
|
|
1376
1406
|
image: (f = msg.getImage()) && google_protobuf_wrappers_pb.BytesValue.toObject(includeInstance, f),
|
|
1377
1407
|
groupId: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
1378
1408
|
clientId: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
1379
|
-
assetType: jspb.Message.getFieldWithDefault(msg, 8, 0)
|
|
1409
|
+
assetType: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
1410
|
+
isMaintenance: jspb.Message.getBooleanFieldWithDefault(msg, 9, false)
|
|
1380
1411
|
};
|
|
1381
1412
|
|
|
1382
1413
|
if (includeInstance) {
|
|
@@ -1446,6 +1477,10 @@ proto.Spic.AssetProto.UpdateRequest.deserializeBinaryFromReader = function(msg,
|
|
|
1446
1477
|
var value = /** @type {!proto.Spic.AssetProto.AssetType} */ (reader.readEnum());
|
|
1447
1478
|
msg.setAssetType(value);
|
|
1448
1479
|
break;
|
|
1480
|
+
case 9:
|
|
1481
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
1482
|
+
msg.setIsMaintenance(value);
|
|
1483
|
+
break;
|
|
1449
1484
|
default:
|
|
1450
1485
|
reader.skipField();
|
|
1451
1486
|
break;
|
|
@@ -1532,6 +1567,13 @@ proto.Spic.AssetProto.UpdateRequest.serializeBinaryToWriter = function(message,
|
|
|
1532
1567
|
f
|
|
1533
1568
|
);
|
|
1534
1569
|
}
|
|
1570
|
+
f = message.getIsMaintenance();
|
|
1571
|
+
if (f) {
|
|
1572
|
+
writer.writeBool(
|
|
1573
|
+
9,
|
|
1574
|
+
f
|
|
1575
|
+
);
|
|
1576
|
+
}
|
|
1535
1577
|
};
|
|
1536
1578
|
|
|
1537
1579
|
|
|
@@ -1698,6 +1740,24 @@ proto.Spic.AssetProto.UpdateRequest.prototype.setAssetType = function(value) {
|
|
|
1698
1740
|
};
|
|
1699
1741
|
|
|
1700
1742
|
|
|
1743
|
+
/**
|
|
1744
|
+
* optional bool is_maintenance = 9;
|
|
1745
|
+
* @return {boolean}
|
|
1746
|
+
*/
|
|
1747
|
+
proto.Spic.AssetProto.UpdateRequest.prototype.getIsMaintenance = function() {
|
|
1748
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
|
|
1749
|
+
};
|
|
1750
|
+
|
|
1751
|
+
|
|
1752
|
+
/**
|
|
1753
|
+
* @param {boolean} value
|
|
1754
|
+
* @return {!proto.Spic.AssetProto.UpdateRequest} returns this
|
|
1755
|
+
*/
|
|
1756
|
+
proto.Spic.AssetProto.UpdateRequest.prototype.setIsMaintenance = function(value) {
|
|
1757
|
+
return jspb.Message.setProto3BooleanField(this, 9, value);
|
|
1758
|
+
};
|
|
1759
|
+
|
|
1760
|
+
|
|
1701
1761
|
|
|
1702
1762
|
/**
|
|
1703
1763
|
* Oneof group definitions for this message. Each group defines the field
|
|
@@ -3292,8 +3352,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
3292
3352
|
* http://goto/soy-param-migration
|
|
3293
3353
|
* @return {!Object}
|
|
3294
3354
|
*/
|
|
3295
|
-
proto.Spic.AssetProto.
|
|
3296
|
-
return proto.Spic.AssetProto.
|
|
3355
|
+
proto.Spic.AssetProto.StateChangedEvent.prototype.toObject = function(opt_includeInstance) {
|
|
3356
|
+
return proto.Spic.AssetProto.StateChangedEvent.toObject(opt_includeInstance, this);
|
|
3297
3357
|
};
|
|
3298
3358
|
|
|
3299
3359
|
|
|
@@ -3302,23 +3362,15 @@ proto.Spic.AssetProto.ComponentState.prototype.toObject = function(opt_includeIn
|
|
|
3302
3362
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3303
3363
|
* the JSPB instance for transitional soy proto support:
|
|
3304
3364
|
* http://goto/soy-param-migration
|
|
3305
|
-
* @param {!proto.Spic.AssetProto.
|
|
3365
|
+
* @param {!proto.Spic.AssetProto.StateChangedEvent} msg The msg instance to transform.
|
|
3306
3366
|
* @return {!Object}
|
|
3307
3367
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3308
3368
|
*/
|
|
3309
|
-
proto.Spic.AssetProto.
|
|
3369
|
+
proto.Spic.AssetProto.StateChangedEvent.toObject = function(includeInstance, msg) {
|
|
3310
3370
|
var f, obj = {
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
componentClass: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
3315
|
-
value: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
3316
|
-
lastChanged: (f = msg.getLastChanged()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
3317
|
-
lastUpdated: (f = msg.getLastUpdated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
3318
|
-
lastReported: (f = msg.getLastReported()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
3319
|
-
attributesMap: (f = msg.getAttributesMap()) ? f.toObject(includeInstance, undefined) : [],
|
|
3320
|
-
metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [],
|
|
3321
|
-
deviceType: jspb.Message.getFieldWithDefault(msg, 11, 0)
|
|
3371
|
+
state: (f = msg.getState()) && proto.Spic.ComponentProto.toObject(includeInstance, f),
|
|
3372
|
+
onlyMetadataUpdated: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
3373
|
+
onlyAttributesUpdated: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
|
|
3322
3374
|
};
|
|
3323
3375
|
|
|
3324
3376
|
if (includeInstance) {
|
|
@@ -3332,23 +3384,23 @@ proto.Spic.AssetProto.ComponentState.toObject = function(includeInstance, msg) {
|
|
|
3332
3384
|
/**
|
|
3333
3385
|
* Deserializes binary data (in protobuf wire format).
|
|
3334
3386
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3335
|
-
* @return {!proto.Spic.AssetProto.
|
|
3387
|
+
* @return {!proto.Spic.AssetProto.StateChangedEvent}
|
|
3336
3388
|
*/
|
|
3337
|
-
proto.Spic.AssetProto.
|
|
3389
|
+
proto.Spic.AssetProto.StateChangedEvent.deserializeBinary = function(bytes) {
|
|
3338
3390
|
var reader = new jspb.BinaryReader(bytes);
|
|
3339
|
-
var msg = new proto.Spic.AssetProto.
|
|
3340
|
-
return proto.Spic.AssetProto.
|
|
3391
|
+
var msg = new proto.Spic.AssetProto.StateChangedEvent;
|
|
3392
|
+
return proto.Spic.AssetProto.StateChangedEvent.deserializeBinaryFromReader(msg, reader);
|
|
3341
3393
|
};
|
|
3342
3394
|
|
|
3343
3395
|
|
|
3344
3396
|
/**
|
|
3345
3397
|
* Deserializes binary data (in protobuf wire format) from the
|
|
3346
3398
|
* given reader into the given message object.
|
|
3347
|
-
* @param {!proto.Spic.AssetProto.
|
|
3399
|
+
* @param {!proto.Spic.AssetProto.StateChangedEvent} msg The message object to deserialize into.
|
|
3348
3400
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3349
|
-
* @return {!proto.Spic.AssetProto.
|
|
3401
|
+
* @return {!proto.Spic.AssetProto.StateChangedEvent}
|
|
3350
3402
|
*/
|
|
3351
|
-
proto.Spic.AssetProto.
|
|
3403
|
+
proto.Spic.AssetProto.StateChangedEvent.deserializeBinaryFromReader = function(msg, reader) {
|
|
3352
3404
|
while (reader.nextField()) {
|
|
3353
3405
|
if (reader.isEndGroup()) {
|
|
3354
3406
|
break;
|
|
@@ -3356,55 +3408,17 @@ proto.Spic.AssetProto.ComponentState.deserializeBinaryFromReader = function(msg,
|
|
|
3356
3408
|
var field = reader.getFieldNumber();
|
|
3357
3409
|
switch (field) {
|
|
3358
3410
|
case 1:
|
|
3359
|
-
var value =
|
|
3360
|
-
|
|
3411
|
+
var value = new proto.Spic.ComponentProto;
|
|
3412
|
+
reader.readMessage(value,proto.Spic.ComponentProto.deserializeBinaryFromReader);
|
|
3413
|
+
msg.setState(value);
|
|
3361
3414
|
break;
|
|
3362
3415
|
case 2:
|
|
3363
|
-
var value = /** @type {
|
|
3364
|
-
msg.
|
|
3416
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
3417
|
+
msg.setOnlyMetadataUpdated(value);
|
|
3365
3418
|
break;
|
|
3366
3419
|
case 3:
|
|
3367
|
-
var value = /** @type {
|
|
3368
|
-
msg.
|
|
3369
|
-
break;
|
|
3370
|
-
case 4:
|
|
3371
|
-
var value = /** @type {string} */ (reader.readString());
|
|
3372
|
-
msg.setComponentClass(value);
|
|
3373
|
-
break;
|
|
3374
|
-
case 5:
|
|
3375
|
-
var value = /** @type {string} */ (reader.readString());
|
|
3376
|
-
msg.setValue(value);
|
|
3377
|
-
break;
|
|
3378
|
-
case 6:
|
|
3379
|
-
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
3380
|
-
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
3381
|
-
msg.setLastChanged(value);
|
|
3382
|
-
break;
|
|
3383
|
-
case 7:
|
|
3384
|
-
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
3385
|
-
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
3386
|
-
msg.setLastUpdated(value);
|
|
3387
|
-
break;
|
|
3388
|
-
case 8:
|
|
3389
|
-
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
3390
|
-
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
3391
|
-
msg.setLastReported(value);
|
|
3392
|
-
break;
|
|
3393
|
-
case 9:
|
|
3394
|
-
var value = msg.getAttributesMap();
|
|
3395
|
-
reader.readMessage(value, function(message, reader) {
|
|
3396
|
-
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
|
|
3397
|
-
});
|
|
3398
|
-
break;
|
|
3399
|
-
case 10:
|
|
3400
|
-
var value = msg.getMetadataMap();
|
|
3401
|
-
reader.readMessage(value, function(message, reader) {
|
|
3402
|
-
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
|
|
3403
|
-
});
|
|
3404
|
-
break;
|
|
3405
|
-
case 11:
|
|
3406
|
-
var value = /** @type {!proto.Spic.AssetProto.DeviceType} */ (reader.readEnum());
|
|
3407
|
-
msg.setDeviceType(value);
|
|
3420
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
3421
|
+
msg.setOnlyAttributesUpdated(value);
|
|
3408
3422
|
break;
|
|
3409
3423
|
default:
|
|
3410
3424
|
reader.skipField();
|
|
@@ -3419,9 +3433,9 @@ proto.Spic.AssetProto.ComponentState.deserializeBinaryFromReader = function(msg,
|
|
|
3419
3433
|
* Serializes the message to binary data (in protobuf wire format).
|
|
3420
3434
|
* @return {!Uint8Array}
|
|
3421
3435
|
*/
|
|
3422
|
-
proto.Spic.AssetProto.
|
|
3436
|
+
proto.Spic.AssetProto.StateChangedEvent.prototype.serializeBinary = function() {
|
|
3423
3437
|
var writer = new jspb.BinaryWriter();
|
|
3424
|
-
proto.Spic.AssetProto.
|
|
3438
|
+
proto.Spic.AssetProto.StateChangedEvent.serializeBinaryToWriter(this, writer);
|
|
3425
3439
|
return writer.getResultBuffer();
|
|
3426
3440
|
};
|
|
3427
3441
|
|
|
@@ -3429,278 +3443,225 @@ proto.Spic.AssetProto.ComponentState.prototype.serializeBinary = function() {
|
|
|
3429
3443
|
/**
|
|
3430
3444
|
* Serializes the given message to binary data (in protobuf wire
|
|
3431
3445
|
* format), writing to the given BinaryWriter.
|
|
3432
|
-
* @param {!proto.Spic.AssetProto.
|
|
3446
|
+
* @param {!proto.Spic.AssetProto.StateChangedEvent} message
|
|
3433
3447
|
* @param {!jspb.BinaryWriter} writer
|
|
3434
3448
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3435
3449
|
*/
|
|
3436
|
-
proto.Spic.AssetProto.
|
|
3450
|
+
proto.Spic.AssetProto.StateChangedEvent.serializeBinaryToWriter = function(message, writer) {
|
|
3437
3451
|
var f = undefined;
|
|
3438
|
-
f = message.
|
|
3439
|
-
if (f
|
|
3440
|
-
writer.
|
|
3452
|
+
f = message.getState();
|
|
3453
|
+
if (f != null) {
|
|
3454
|
+
writer.writeMessage(
|
|
3441
3455
|
1,
|
|
3442
|
-
f
|
|
3456
|
+
f,
|
|
3457
|
+
proto.Spic.ComponentProto.serializeBinaryToWriter
|
|
3443
3458
|
);
|
|
3444
3459
|
}
|
|
3445
|
-
f = message.
|
|
3446
|
-
if (f
|
|
3447
|
-
writer.
|
|
3460
|
+
f = message.getOnlyMetadataUpdated();
|
|
3461
|
+
if (f) {
|
|
3462
|
+
writer.writeBool(
|
|
3448
3463
|
2,
|
|
3449
3464
|
f
|
|
3450
3465
|
);
|
|
3451
3466
|
}
|
|
3452
|
-
f = message.
|
|
3453
|
-
if (f
|
|
3454
|
-
writer.
|
|
3467
|
+
f = message.getOnlyAttributesUpdated();
|
|
3468
|
+
if (f) {
|
|
3469
|
+
writer.writeBool(
|
|
3455
3470
|
3,
|
|
3456
3471
|
f
|
|
3457
3472
|
);
|
|
3458
3473
|
}
|
|
3459
|
-
f = message.getComponentClass();
|
|
3460
|
-
if (f.length > 0) {
|
|
3461
|
-
writer.writeString(
|
|
3462
|
-
4,
|
|
3463
|
-
f
|
|
3464
|
-
);
|
|
3465
|
-
}
|
|
3466
|
-
f = message.getValue();
|
|
3467
|
-
if (f.length > 0) {
|
|
3468
|
-
writer.writeString(
|
|
3469
|
-
5,
|
|
3470
|
-
f
|
|
3471
|
-
);
|
|
3472
|
-
}
|
|
3473
|
-
f = message.getLastChanged();
|
|
3474
|
-
if (f != null) {
|
|
3475
|
-
writer.writeMessage(
|
|
3476
|
-
6,
|
|
3477
|
-
f,
|
|
3478
|
-
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
3479
|
-
);
|
|
3480
|
-
}
|
|
3481
|
-
f = message.getLastUpdated();
|
|
3482
|
-
if (f != null) {
|
|
3483
|
-
writer.writeMessage(
|
|
3484
|
-
7,
|
|
3485
|
-
f,
|
|
3486
|
-
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
3487
|
-
);
|
|
3488
|
-
}
|
|
3489
|
-
f = message.getLastReported();
|
|
3490
|
-
if (f != null) {
|
|
3491
|
-
writer.writeMessage(
|
|
3492
|
-
8,
|
|
3493
|
-
f,
|
|
3494
|
-
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
3495
|
-
);
|
|
3496
|
-
}
|
|
3497
|
-
f = message.getAttributesMap(true);
|
|
3498
|
-
if (f && f.getLength() > 0) {
|
|
3499
|
-
f.serializeBinary(9, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
|
3500
|
-
}
|
|
3501
|
-
f = message.getMetadataMap(true);
|
|
3502
|
-
if (f && f.getLength() > 0) {
|
|
3503
|
-
f.serializeBinary(10, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
|
3504
|
-
}
|
|
3505
|
-
f = message.getDeviceType();
|
|
3506
|
-
if (f !== 0.0) {
|
|
3507
|
-
writer.writeEnum(
|
|
3508
|
-
11,
|
|
3509
|
-
f
|
|
3510
|
-
);
|
|
3511
|
-
}
|
|
3512
3474
|
};
|
|
3513
3475
|
|
|
3514
3476
|
|
|
3515
3477
|
/**
|
|
3516
|
-
* optional
|
|
3517
|
-
* @return {
|
|
3478
|
+
* optional ComponentProto state = 1;
|
|
3479
|
+
* @return {?proto.Spic.ComponentProto}
|
|
3518
3480
|
*/
|
|
3519
|
-
proto.Spic.AssetProto.
|
|
3520
|
-
return /** @type
|
|
3481
|
+
proto.Spic.AssetProto.StateChangedEvent.prototype.getState = function() {
|
|
3482
|
+
return /** @type{?proto.Spic.ComponentProto} */ (
|
|
3483
|
+
jspb.Message.getWrapperField(this, proto.Spic.ComponentProto, 1));
|
|
3521
3484
|
};
|
|
3522
3485
|
|
|
3523
3486
|
|
|
3524
3487
|
/**
|
|
3525
|
-
* @param {
|
|
3526
|
-
* @return {!proto.Spic.AssetProto.
|
|
3527
|
-
|
|
3528
|
-
proto.Spic.AssetProto.
|
|
3529
|
-
return jspb.Message.
|
|
3488
|
+
* @param {?proto.Spic.ComponentProto|undefined} value
|
|
3489
|
+
* @return {!proto.Spic.AssetProto.StateChangedEvent} returns this
|
|
3490
|
+
*/
|
|
3491
|
+
proto.Spic.AssetProto.StateChangedEvent.prototype.setState = function(value) {
|
|
3492
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
3530
3493
|
};
|
|
3531
3494
|
|
|
3532
3495
|
|
|
3533
3496
|
/**
|
|
3534
|
-
*
|
|
3535
|
-
* @return {!proto.Spic.
|
|
3497
|
+
* Clears the message field making it undefined.
|
|
3498
|
+
* @return {!proto.Spic.AssetProto.StateChangedEvent} returns this
|
|
3536
3499
|
*/
|
|
3537
|
-
proto.Spic.AssetProto.
|
|
3538
|
-
return
|
|
3500
|
+
proto.Spic.AssetProto.StateChangedEvent.prototype.clearState = function() {
|
|
3501
|
+
return this.setState(undefined);
|
|
3539
3502
|
};
|
|
3540
3503
|
|
|
3541
3504
|
|
|
3542
3505
|
/**
|
|
3543
|
-
*
|
|
3544
|
-
* @return {
|
|
3506
|
+
* Returns whether this field is set.
|
|
3507
|
+
* @return {boolean}
|
|
3545
3508
|
*/
|
|
3546
|
-
proto.Spic.AssetProto.
|
|
3547
|
-
return jspb.Message.
|
|
3509
|
+
proto.Spic.AssetProto.StateChangedEvent.prototype.hasState = function() {
|
|
3510
|
+
return jspb.Message.getField(this, 1) != null;
|
|
3548
3511
|
};
|
|
3549
3512
|
|
|
3550
3513
|
|
|
3551
3514
|
/**
|
|
3552
|
-
* optional
|
|
3553
|
-
* @return {
|
|
3515
|
+
* optional bool only_metadata_updated = 2;
|
|
3516
|
+
* @return {boolean}
|
|
3554
3517
|
*/
|
|
3555
|
-
proto.Spic.AssetProto.
|
|
3556
|
-
return /** @type {
|
|
3518
|
+
proto.Spic.AssetProto.StateChangedEvent.prototype.getOnlyMetadataUpdated = function() {
|
|
3519
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
3557
3520
|
};
|
|
3558
3521
|
|
|
3559
3522
|
|
|
3560
3523
|
/**
|
|
3561
|
-
* @param {
|
|
3562
|
-
* @return {!proto.Spic.AssetProto.
|
|
3524
|
+
* @param {boolean} value
|
|
3525
|
+
* @return {!proto.Spic.AssetProto.StateChangedEvent} returns this
|
|
3563
3526
|
*/
|
|
3564
|
-
proto.Spic.AssetProto.
|
|
3565
|
-
return jspb.Message.
|
|
3527
|
+
proto.Spic.AssetProto.StateChangedEvent.prototype.setOnlyMetadataUpdated = function(value) {
|
|
3528
|
+
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
3566
3529
|
};
|
|
3567
3530
|
|
|
3568
3531
|
|
|
3569
3532
|
/**
|
|
3570
|
-
* optional
|
|
3571
|
-
* @return {
|
|
3533
|
+
* optional bool only_attributes_updated = 3;
|
|
3534
|
+
* @return {boolean}
|
|
3572
3535
|
*/
|
|
3573
|
-
proto.Spic.AssetProto.
|
|
3574
|
-
return /** @type {
|
|
3536
|
+
proto.Spic.AssetProto.StateChangedEvent.prototype.getOnlyAttributesUpdated = function() {
|
|
3537
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
|
|
3575
3538
|
};
|
|
3576
3539
|
|
|
3577
3540
|
|
|
3578
3541
|
/**
|
|
3579
|
-
* @param {
|
|
3580
|
-
* @return {!proto.Spic.AssetProto.
|
|
3542
|
+
* @param {boolean} value
|
|
3543
|
+
* @return {!proto.Spic.AssetProto.StateChangedEvent} returns this
|
|
3581
3544
|
*/
|
|
3582
|
-
proto.Spic.AssetProto.
|
|
3583
|
-
return jspb.Message.
|
|
3545
|
+
proto.Spic.AssetProto.StateChangedEvent.prototype.setOnlyAttributesUpdated = function(value) {
|
|
3546
|
+
return jspb.Message.setProto3BooleanField(this, 3, value);
|
|
3584
3547
|
};
|
|
3585
3548
|
|
|
3586
3549
|
|
|
3587
3550
|
/**
|
|
3588
|
-
* optional
|
|
3589
|
-
* @return {
|
|
3551
|
+
* optional int64 id = 1;
|
|
3552
|
+
* @return {number}
|
|
3590
3553
|
*/
|
|
3591
|
-
proto.Spic.AssetProto.
|
|
3592
|
-
return /** @type {
|
|
3554
|
+
proto.Spic.AssetProto.prototype.getId = function() {
|
|
3555
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
3593
3556
|
};
|
|
3594
3557
|
|
|
3595
3558
|
|
|
3596
3559
|
/**
|
|
3597
|
-
* @param {
|
|
3598
|
-
* @return {!proto.Spic.AssetProto
|
|
3560
|
+
* @param {number} value
|
|
3561
|
+
* @return {!proto.Spic.AssetProto} returns this
|
|
3599
3562
|
*/
|
|
3600
|
-
proto.Spic.AssetProto.
|
|
3601
|
-
return jspb.Message.
|
|
3563
|
+
proto.Spic.AssetProto.prototype.setId = function(value) {
|
|
3564
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
3602
3565
|
};
|
|
3603
3566
|
|
|
3604
3567
|
|
|
3605
3568
|
/**
|
|
3606
|
-
* optional
|
|
3607
|
-
* @return {
|
|
3569
|
+
* optional string name = 2;
|
|
3570
|
+
* @return {string}
|
|
3608
3571
|
*/
|
|
3609
|
-
proto.Spic.AssetProto.
|
|
3610
|
-
return /** @type{
|
|
3611
|
-
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
|
|
3572
|
+
proto.Spic.AssetProto.prototype.getName = function() {
|
|
3573
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3612
3574
|
};
|
|
3613
3575
|
|
|
3614
3576
|
|
|
3615
3577
|
/**
|
|
3616
|
-
* @param {
|
|
3617
|
-
* @return {!proto.Spic.AssetProto
|
|
3618
|
-
*/
|
|
3619
|
-
proto.Spic.AssetProto.
|
|
3620
|
-
return jspb.Message.
|
|
3578
|
+
* @param {string} value
|
|
3579
|
+
* @return {!proto.Spic.AssetProto} returns this
|
|
3580
|
+
*/
|
|
3581
|
+
proto.Spic.AssetProto.prototype.setName = function(value) {
|
|
3582
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3621
3583
|
};
|
|
3622
3584
|
|
|
3623
3585
|
|
|
3624
3586
|
/**
|
|
3625
|
-
*
|
|
3626
|
-
* @return {
|
|
3587
|
+
* optional int64 location_id = 3;
|
|
3588
|
+
* @return {number}
|
|
3627
3589
|
*/
|
|
3628
|
-
proto.Spic.AssetProto.
|
|
3629
|
-
return
|
|
3590
|
+
proto.Spic.AssetProto.prototype.getLocationId = function() {
|
|
3591
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
3630
3592
|
};
|
|
3631
3593
|
|
|
3632
3594
|
|
|
3633
3595
|
/**
|
|
3634
|
-
*
|
|
3635
|
-
* @return {
|
|
3596
|
+
* @param {number} value
|
|
3597
|
+
* @return {!proto.Spic.AssetProto} returns this
|
|
3636
3598
|
*/
|
|
3637
|
-
proto.Spic.AssetProto.
|
|
3638
|
-
return jspb.Message.
|
|
3599
|
+
proto.Spic.AssetProto.prototype.setLocationId = function(value) {
|
|
3600
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
3639
3601
|
};
|
|
3640
3602
|
|
|
3641
3603
|
|
|
3642
3604
|
/**
|
|
3643
|
-
* optional
|
|
3644
|
-
* @return {
|
|
3605
|
+
* optional string uid = 4;
|
|
3606
|
+
* @return {string}
|
|
3645
3607
|
*/
|
|
3646
|
-
proto.Spic.AssetProto.
|
|
3647
|
-
return /** @type{
|
|
3648
|
-
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
|
|
3608
|
+
proto.Spic.AssetProto.prototype.getUid = function() {
|
|
3609
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
3649
3610
|
};
|
|
3650
3611
|
|
|
3651
3612
|
|
|
3652
3613
|
/**
|
|
3653
|
-
* @param {
|
|
3654
|
-
* @return {!proto.Spic.AssetProto
|
|
3655
|
-
*/
|
|
3656
|
-
proto.Spic.AssetProto.
|
|
3657
|
-
return jspb.Message.
|
|
3614
|
+
* @param {string} value
|
|
3615
|
+
* @return {!proto.Spic.AssetProto} returns this
|
|
3616
|
+
*/
|
|
3617
|
+
proto.Spic.AssetProto.prototype.setUid = function(value) {
|
|
3618
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
3658
3619
|
};
|
|
3659
3620
|
|
|
3660
3621
|
|
|
3661
3622
|
/**
|
|
3662
|
-
*
|
|
3663
|
-
* @return {
|
|
3623
|
+
* optional int32 status = 5;
|
|
3624
|
+
* @return {number}
|
|
3664
3625
|
*/
|
|
3665
|
-
proto.Spic.AssetProto.
|
|
3666
|
-
return
|
|
3626
|
+
proto.Spic.AssetProto.prototype.getStatus = function() {
|
|
3627
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
3667
3628
|
};
|
|
3668
3629
|
|
|
3669
3630
|
|
|
3670
3631
|
/**
|
|
3671
|
-
*
|
|
3672
|
-
* @return {
|
|
3632
|
+
* @param {number} value
|
|
3633
|
+
* @return {!proto.Spic.AssetProto} returns this
|
|
3673
3634
|
*/
|
|
3674
|
-
proto.Spic.AssetProto.
|
|
3675
|
-
return jspb.Message.
|
|
3635
|
+
proto.Spic.AssetProto.prototype.setStatus = function(value) {
|
|
3636
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
3676
3637
|
};
|
|
3677
3638
|
|
|
3678
3639
|
|
|
3679
3640
|
/**
|
|
3680
|
-
* optional google.protobuf.Timestamp
|
|
3641
|
+
* optional google.protobuf.Timestamp last_status_update = 7;
|
|
3681
3642
|
* @return {?proto.google.protobuf.Timestamp}
|
|
3682
3643
|
*/
|
|
3683
|
-
proto.Spic.AssetProto.
|
|
3644
|
+
proto.Spic.AssetProto.prototype.getLastStatusUpdate = function() {
|
|
3684
3645
|
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
3685
|
-
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp,
|
|
3646
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
|
|
3686
3647
|
};
|
|
3687
3648
|
|
|
3688
3649
|
|
|
3689
3650
|
/**
|
|
3690
3651
|
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
3691
|
-
* @return {!proto.Spic.AssetProto
|
|
3652
|
+
* @return {!proto.Spic.AssetProto} returns this
|
|
3692
3653
|
*/
|
|
3693
|
-
proto.Spic.AssetProto.
|
|
3694
|
-
return jspb.Message.setWrapperField(this,
|
|
3654
|
+
proto.Spic.AssetProto.prototype.setLastStatusUpdate = function(value) {
|
|
3655
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
3695
3656
|
};
|
|
3696
3657
|
|
|
3697
3658
|
|
|
3698
3659
|
/**
|
|
3699
3660
|
* Clears the message field making it undefined.
|
|
3700
|
-
* @return {!proto.Spic.AssetProto
|
|
3661
|
+
* @return {!proto.Spic.AssetProto} returns this
|
|
3701
3662
|
*/
|
|
3702
|
-
proto.Spic.AssetProto.
|
|
3703
|
-
return this.
|
|
3663
|
+
proto.Spic.AssetProto.prototype.clearLastStatusUpdate = function() {
|
|
3664
|
+
return this.setLastStatusUpdate(undefined);
|
|
3704
3665
|
};
|
|
3705
3666
|
|
|
3706
3667
|
|
|
@@ -3708,238 +3669,199 @@ proto.Spic.AssetProto.ComponentState.prototype.clearLastReported = function() {
|
|
|
3708
3669
|
* Returns whether this field is set.
|
|
3709
3670
|
* @return {boolean}
|
|
3710
3671
|
*/
|
|
3711
|
-
proto.Spic.AssetProto.
|
|
3712
|
-
return jspb.Message.getField(this,
|
|
3672
|
+
proto.Spic.AssetProto.prototype.hasLastStatusUpdate = function() {
|
|
3673
|
+
return jspb.Message.getField(this, 7) != null;
|
|
3713
3674
|
};
|
|
3714
3675
|
|
|
3715
3676
|
|
|
3716
3677
|
/**
|
|
3717
|
-
*
|
|
3718
|
-
* @
|
|
3719
|
-
* empty, instead returning `undefined`
|
|
3720
|
-
* @return {!jspb.Map<string,string>}
|
|
3678
|
+
* optional string group_id = 8;
|
|
3679
|
+
* @return {string}
|
|
3721
3680
|
*/
|
|
3722
|
-
proto.Spic.AssetProto.
|
|
3723
|
-
return /** @type {
|
|
3724
|
-
jspb.Message.getMapField(this, 9, opt_noLazyCreate,
|
|
3725
|
-
null));
|
|
3681
|
+
proto.Spic.AssetProto.prototype.getGroupId = function() {
|
|
3682
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
3726
3683
|
};
|
|
3727
3684
|
|
|
3728
3685
|
|
|
3729
3686
|
/**
|
|
3730
|
-
*
|
|
3731
|
-
* @return {!proto.Spic.AssetProto
|
|
3687
|
+
* @param {string} value
|
|
3688
|
+
* @return {!proto.Spic.AssetProto} returns this
|
|
3732
3689
|
*/
|
|
3733
|
-
proto.Spic.AssetProto.
|
|
3734
|
-
|
|
3735
|
-
return this;
|
|
3690
|
+
proto.Spic.AssetProto.prototype.setGroupId = function(value) {
|
|
3691
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
3736
3692
|
};
|
|
3737
3693
|
|
|
3738
3694
|
|
|
3739
3695
|
/**
|
|
3740
|
-
*
|
|
3741
|
-
* @
|
|
3742
|
-
* empty, instead returning `undefined`
|
|
3743
|
-
* @return {!jspb.Map<string,string>}
|
|
3696
|
+
* optional int32 client_id = 9;
|
|
3697
|
+
* @return {number}
|
|
3744
3698
|
*/
|
|
3745
|
-
proto.Spic.AssetProto.
|
|
3746
|
-
return /** @type {
|
|
3747
|
-
jspb.Message.getMapField(this, 10, opt_noLazyCreate,
|
|
3748
|
-
null));
|
|
3699
|
+
proto.Spic.AssetProto.prototype.getClientId = function() {
|
|
3700
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
|
|
3749
3701
|
};
|
|
3750
3702
|
|
|
3751
3703
|
|
|
3752
3704
|
/**
|
|
3753
|
-
*
|
|
3754
|
-
* @return {!proto.Spic.AssetProto
|
|
3705
|
+
* @param {number} value
|
|
3706
|
+
* @return {!proto.Spic.AssetProto} returns this
|
|
3755
3707
|
*/
|
|
3756
|
-
proto.Spic.AssetProto.
|
|
3757
|
-
|
|
3758
|
-
return this;
|
|
3708
|
+
proto.Spic.AssetProto.prototype.setClientId = function(value) {
|
|
3709
|
+
return jspb.Message.setProto3IntField(this, 9, value);
|
|
3759
3710
|
};
|
|
3760
3711
|
|
|
3761
3712
|
|
|
3762
3713
|
/**
|
|
3763
|
-
* optional
|
|
3764
|
-
* @return {
|
|
3714
|
+
* optional bool is_maintenance = 10;
|
|
3715
|
+
* @return {boolean}
|
|
3765
3716
|
*/
|
|
3766
|
-
proto.Spic.AssetProto.
|
|
3767
|
-
return /** @type {
|
|
3717
|
+
proto.Spic.AssetProto.prototype.getIsMaintenance = function() {
|
|
3718
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false));
|
|
3768
3719
|
};
|
|
3769
3720
|
|
|
3770
3721
|
|
|
3771
3722
|
/**
|
|
3772
|
-
* @param {
|
|
3773
|
-
* @return {!proto.Spic.AssetProto
|
|
3723
|
+
* @param {boolean} value
|
|
3724
|
+
* @return {!proto.Spic.AssetProto} returns this
|
|
3774
3725
|
*/
|
|
3775
|
-
proto.Spic.AssetProto.
|
|
3776
|
-
return jspb.Message.
|
|
3726
|
+
proto.Spic.AssetProto.prototype.setIsMaintenance = function(value) {
|
|
3727
|
+
return jspb.Message.setProto3BooleanField(this, 10, value);
|
|
3777
3728
|
};
|
|
3778
3729
|
|
|
3779
3730
|
|
|
3731
|
+
/**
|
|
3732
|
+
* optional string image_blob = 11;
|
|
3733
|
+
* @return {string}
|
|
3734
|
+
*/
|
|
3735
|
+
proto.Spic.AssetProto.prototype.getImageBlob = function() {
|
|
3736
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
|
3737
|
+
};
|
|
3780
3738
|
|
|
3781
3739
|
|
|
3782
|
-
|
|
3783
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3784
3740
|
/**
|
|
3785
|
-
*
|
|
3786
|
-
*
|
|
3787
|
-
* Optional fields that are not set will be set to undefined.
|
|
3788
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3789
|
-
* For the list of reserved names please see:
|
|
3790
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3791
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3792
|
-
* JSPB instance for transitional soy proto support:
|
|
3793
|
-
* http://goto/soy-param-migration
|
|
3794
|
-
* @return {!Object}
|
|
3741
|
+
* @param {string} value
|
|
3742
|
+
* @return {!proto.Spic.AssetProto} returns this
|
|
3795
3743
|
*/
|
|
3796
|
-
proto.Spic.AssetProto.
|
|
3797
|
-
return
|
|
3744
|
+
proto.Spic.AssetProto.prototype.setImageBlob = function(value) {
|
|
3745
|
+
return jspb.Message.setProto3StringField(this, 11, value);
|
|
3798
3746
|
};
|
|
3799
3747
|
|
|
3800
3748
|
|
|
3801
3749
|
/**
|
|
3802
|
-
*
|
|
3803
|
-
* @
|
|
3804
|
-
* the JSPB instance for transitional soy proto support:
|
|
3805
|
-
* http://goto/soy-param-migration
|
|
3806
|
-
* @param {!proto.Spic.AssetProto.StateChangedEvent} msg The msg instance to transform.
|
|
3807
|
-
* @return {!Object}
|
|
3808
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3750
|
+
* optional google.protobuf.Timestamp battery_placed = 12;
|
|
3751
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
3809
3752
|
*/
|
|
3810
|
-
proto.Spic.AssetProto.
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
onlyAttributesUpdated: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
|
|
3815
|
-
};
|
|
3753
|
+
proto.Spic.AssetProto.prototype.getBatteryPlaced = function() {
|
|
3754
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
3755
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 12));
|
|
3756
|
+
};
|
|
3816
3757
|
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3758
|
+
|
|
3759
|
+
/**
|
|
3760
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
3761
|
+
* @return {!proto.Spic.AssetProto} returns this
|
|
3762
|
+
*/
|
|
3763
|
+
proto.Spic.AssetProto.prototype.setBatteryPlaced = function(value) {
|
|
3764
|
+
return jspb.Message.setWrapperField(this, 12, value);
|
|
3821
3765
|
};
|
|
3822
|
-
}
|
|
3823
3766
|
|
|
3824
3767
|
|
|
3825
3768
|
/**
|
|
3826
|
-
*
|
|
3827
|
-
* @
|
|
3828
|
-
* @return {!proto.Spic.AssetProto.StateChangedEvent}
|
|
3769
|
+
* Clears the message field making it undefined.
|
|
3770
|
+
* @return {!proto.Spic.AssetProto} returns this
|
|
3829
3771
|
*/
|
|
3830
|
-
proto.Spic.AssetProto.
|
|
3831
|
-
|
|
3832
|
-
var msg = new proto.Spic.AssetProto.StateChangedEvent;
|
|
3833
|
-
return proto.Spic.AssetProto.StateChangedEvent.deserializeBinaryFromReader(msg, reader);
|
|
3772
|
+
proto.Spic.AssetProto.prototype.clearBatteryPlaced = function() {
|
|
3773
|
+
return this.setBatteryPlaced(undefined);
|
|
3834
3774
|
};
|
|
3835
3775
|
|
|
3836
3776
|
|
|
3837
3777
|
/**
|
|
3838
|
-
*
|
|
3839
|
-
*
|
|
3840
|
-
* @param {!proto.Spic.AssetProto.StateChangedEvent} msg The message object to deserialize into.
|
|
3841
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3842
|
-
* @return {!proto.Spic.AssetProto.StateChangedEvent}
|
|
3778
|
+
* Returns whether this field is set.
|
|
3779
|
+
* @return {boolean}
|
|
3843
3780
|
*/
|
|
3844
|
-
proto.Spic.AssetProto.
|
|
3845
|
-
|
|
3846
|
-
if (reader.isEndGroup()) {
|
|
3847
|
-
break;
|
|
3848
|
-
}
|
|
3849
|
-
var field = reader.getFieldNumber();
|
|
3850
|
-
switch (field) {
|
|
3851
|
-
case 1:
|
|
3852
|
-
var value = new proto.Spic.AssetProto.ComponentState;
|
|
3853
|
-
reader.readMessage(value,proto.Spic.AssetProto.ComponentState.deserializeBinaryFromReader);
|
|
3854
|
-
msg.setState(value);
|
|
3855
|
-
break;
|
|
3856
|
-
case 2:
|
|
3857
|
-
var value = /** @type {boolean} */ (reader.readBool());
|
|
3858
|
-
msg.setOnlyMetadataUpdated(value);
|
|
3859
|
-
break;
|
|
3860
|
-
case 3:
|
|
3861
|
-
var value = /** @type {boolean} */ (reader.readBool());
|
|
3862
|
-
msg.setOnlyAttributesUpdated(value);
|
|
3863
|
-
break;
|
|
3864
|
-
default:
|
|
3865
|
-
reader.skipField();
|
|
3866
|
-
break;
|
|
3867
|
-
}
|
|
3868
|
-
}
|
|
3869
|
-
return msg;
|
|
3781
|
+
proto.Spic.AssetProto.prototype.hasBatteryPlaced = function() {
|
|
3782
|
+
return jspb.Message.getField(this, 12) != null;
|
|
3870
3783
|
};
|
|
3871
3784
|
|
|
3872
3785
|
|
|
3873
3786
|
/**
|
|
3874
|
-
*
|
|
3875
|
-
* @return {
|
|
3787
|
+
* optional int32 battery_percentage = 13;
|
|
3788
|
+
* @return {number}
|
|
3876
3789
|
*/
|
|
3877
|
-
proto.Spic.AssetProto.
|
|
3878
|
-
|
|
3879
|
-
proto.Spic.AssetProto.StateChangedEvent.serializeBinaryToWriter(this, writer);
|
|
3880
|
-
return writer.getResultBuffer();
|
|
3790
|
+
proto.Spic.AssetProto.prototype.getBatteryPercentage = function() {
|
|
3791
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
|
|
3881
3792
|
};
|
|
3882
3793
|
|
|
3883
3794
|
|
|
3884
3795
|
/**
|
|
3885
|
-
*
|
|
3886
|
-
*
|
|
3887
|
-
* @param {!proto.Spic.AssetProto.StateChangedEvent} message
|
|
3888
|
-
* @param {!jspb.BinaryWriter} writer
|
|
3889
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3796
|
+
* @param {number} value
|
|
3797
|
+
* @return {!proto.Spic.AssetProto} returns this
|
|
3890
3798
|
*/
|
|
3891
|
-
proto.Spic.AssetProto.
|
|
3892
|
-
|
|
3893
|
-
f = message.getState();
|
|
3894
|
-
if (f != null) {
|
|
3895
|
-
writer.writeMessage(
|
|
3896
|
-
1,
|
|
3897
|
-
f,
|
|
3898
|
-
proto.Spic.AssetProto.ComponentState.serializeBinaryToWriter
|
|
3899
|
-
);
|
|
3900
|
-
}
|
|
3901
|
-
f = message.getOnlyMetadataUpdated();
|
|
3902
|
-
if (f) {
|
|
3903
|
-
writer.writeBool(
|
|
3904
|
-
2,
|
|
3905
|
-
f
|
|
3906
|
-
);
|
|
3907
|
-
}
|
|
3908
|
-
f = message.getOnlyAttributesUpdated();
|
|
3909
|
-
if (f) {
|
|
3910
|
-
writer.writeBool(
|
|
3911
|
-
3,
|
|
3912
|
-
f
|
|
3913
|
-
);
|
|
3914
|
-
}
|
|
3799
|
+
proto.Spic.AssetProto.prototype.setBatteryPercentage = function(value) {
|
|
3800
|
+
return jspb.Message.setProto3IntField(this, 13, value);
|
|
3915
3801
|
};
|
|
3916
3802
|
|
|
3917
3803
|
|
|
3918
3804
|
/**
|
|
3919
|
-
* optional
|
|
3920
|
-
* @return {
|
|
3805
|
+
* optional int64 communication_time = 14;
|
|
3806
|
+
* @return {number}
|
|
3921
3807
|
*/
|
|
3922
|
-
proto.Spic.AssetProto.
|
|
3923
|
-
return /** @type{
|
|
3924
|
-
jspb.Message.getWrapperField(this, proto.Spic.AssetProto.ComponentState, 1));
|
|
3808
|
+
proto.Spic.AssetProto.prototype.getCommunicationTime = function() {
|
|
3809
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
|
|
3925
3810
|
};
|
|
3926
3811
|
|
|
3927
3812
|
|
|
3928
3813
|
/**
|
|
3929
|
-
* @param {
|
|
3930
|
-
* @return {!proto.Spic.AssetProto
|
|
3814
|
+
* @param {number} value
|
|
3815
|
+
* @return {!proto.Spic.AssetProto} returns this
|
|
3816
|
+
*/
|
|
3817
|
+
proto.Spic.AssetProto.prototype.setCommunicationTime = function(value) {
|
|
3818
|
+
return jspb.Message.setProto3IntField(this, 14, value);
|
|
3819
|
+
};
|
|
3820
|
+
|
|
3821
|
+
|
|
3822
|
+
/**
|
|
3823
|
+
* optional string last_config_string = 15;
|
|
3824
|
+
* @return {string}
|
|
3825
|
+
*/
|
|
3826
|
+
proto.Spic.AssetProto.prototype.getLastConfigString = function() {
|
|
3827
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
|
|
3828
|
+
};
|
|
3829
|
+
|
|
3830
|
+
|
|
3831
|
+
/**
|
|
3832
|
+
* @param {string} value
|
|
3833
|
+
* @return {!proto.Spic.AssetProto} returns this
|
|
3834
|
+
*/
|
|
3835
|
+
proto.Spic.AssetProto.prototype.setLastConfigString = function(value) {
|
|
3836
|
+
return jspb.Message.setProto3StringField(this, 15, value);
|
|
3837
|
+
};
|
|
3838
|
+
|
|
3839
|
+
|
|
3840
|
+
/**
|
|
3841
|
+
* optional google.protobuf.Timestamp last_config_updated = 16;
|
|
3842
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
3843
|
+
*/
|
|
3844
|
+
proto.Spic.AssetProto.prototype.getLastConfigUpdated = function() {
|
|
3845
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
3846
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 16));
|
|
3847
|
+
};
|
|
3848
|
+
|
|
3849
|
+
|
|
3850
|
+
/**
|
|
3851
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
3852
|
+
* @return {!proto.Spic.AssetProto} returns this
|
|
3931
3853
|
*/
|
|
3932
|
-
proto.Spic.AssetProto.
|
|
3933
|
-
return jspb.Message.setWrapperField(this,
|
|
3854
|
+
proto.Spic.AssetProto.prototype.setLastConfigUpdated = function(value) {
|
|
3855
|
+
return jspb.Message.setWrapperField(this, 16, value);
|
|
3934
3856
|
};
|
|
3935
3857
|
|
|
3936
3858
|
|
|
3937
3859
|
/**
|
|
3938
3860
|
* Clears the message field making it undefined.
|
|
3939
|
-
* @return {!proto.Spic.AssetProto
|
|
3861
|
+
* @return {!proto.Spic.AssetProto} returns this
|
|
3940
3862
|
*/
|
|
3941
|
-
proto.Spic.AssetProto.
|
|
3942
|
-
return this.
|
|
3863
|
+
proto.Spic.AssetProto.prototype.clearLastConfigUpdated = function() {
|
|
3864
|
+
return this.setLastConfigUpdated(undefined);
|
|
3943
3865
|
};
|
|
3944
3866
|
|
|
3945
3867
|
|
|
@@ -3947,271 +3869,454 @@ proto.Spic.AssetProto.StateChangedEvent.prototype.clearState = function() {
|
|
|
3947
3869
|
* Returns whether this field is set.
|
|
3948
3870
|
* @return {boolean}
|
|
3949
3871
|
*/
|
|
3950
|
-
proto.Spic.AssetProto.
|
|
3951
|
-
return jspb.Message.getField(this,
|
|
3872
|
+
proto.Spic.AssetProto.prototype.hasLastConfigUpdated = function() {
|
|
3873
|
+
return jspb.Message.getField(this, 16) != null;
|
|
3952
3874
|
};
|
|
3953
3875
|
|
|
3954
3876
|
|
|
3955
3877
|
/**
|
|
3956
|
-
* optional
|
|
3957
|
-
* @return {
|
|
3878
|
+
* optional AssetType asset_type = 17;
|
|
3879
|
+
* @return {!proto.Spic.AssetProto.AssetType}
|
|
3958
3880
|
*/
|
|
3959
|
-
proto.Spic.AssetProto.
|
|
3960
|
-
return /** @type {
|
|
3881
|
+
proto.Spic.AssetProto.prototype.getAssetType = function() {
|
|
3882
|
+
return /** @type {!proto.Spic.AssetProto.AssetType} */ (jspb.Message.getFieldWithDefault(this, 17, 0));
|
|
3961
3883
|
};
|
|
3962
3884
|
|
|
3963
3885
|
|
|
3964
3886
|
/**
|
|
3965
|
-
* @param {
|
|
3966
|
-
* @return {!proto.Spic.AssetProto
|
|
3887
|
+
* @param {!proto.Spic.AssetProto.AssetType} value
|
|
3888
|
+
* @return {!proto.Spic.AssetProto} returns this
|
|
3967
3889
|
*/
|
|
3968
|
-
proto.Spic.AssetProto.
|
|
3969
|
-
return jspb.Message.
|
|
3890
|
+
proto.Spic.AssetProto.prototype.setAssetType = function(value) {
|
|
3891
|
+
return jspb.Message.setProto3EnumField(this, 17, value);
|
|
3970
3892
|
};
|
|
3971
3893
|
|
|
3972
3894
|
|
|
3973
3895
|
/**
|
|
3974
|
-
* optional
|
|
3975
|
-
* @return {
|
|
3896
|
+
* optional BatteryStatus battery_status = 18;
|
|
3897
|
+
* @return {!proto.Spic.AssetProto.BatteryStatus}
|
|
3976
3898
|
*/
|
|
3977
|
-
proto.Spic.AssetProto.
|
|
3978
|
-
return /** @type {
|
|
3899
|
+
proto.Spic.AssetProto.prototype.getBatteryStatus = function() {
|
|
3900
|
+
return /** @type {!proto.Spic.AssetProto.BatteryStatus} */ (jspb.Message.getFieldWithDefault(this, 18, 0));
|
|
3979
3901
|
};
|
|
3980
3902
|
|
|
3981
3903
|
|
|
3982
3904
|
/**
|
|
3983
|
-
* @param {
|
|
3984
|
-
* @return {!proto.Spic.AssetProto
|
|
3905
|
+
* @param {!proto.Spic.AssetProto.BatteryStatus} value
|
|
3906
|
+
* @return {!proto.Spic.AssetProto} returns this
|
|
3985
3907
|
*/
|
|
3986
|
-
proto.Spic.AssetProto.
|
|
3987
|
-
return jspb.Message.
|
|
3908
|
+
proto.Spic.AssetProto.prototype.setBatteryStatus = function(value) {
|
|
3909
|
+
return jspb.Message.setProto3EnumField(this, 18, value);
|
|
3988
3910
|
};
|
|
3989
3911
|
|
|
3990
3912
|
|
|
3991
3913
|
/**
|
|
3992
|
-
*
|
|
3993
|
-
* @return {
|
|
3914
|
+
* repeated ComponentProto states = 19;
|
|
3915
|
+
* @return {!Array<!proto.Spic.ComponentProto>}
|
|
3994
3916
|
*/
|
|
3995
|
-
proto.Spic.AssetProto.prototype.
|
|
3996
|
-
return /** @type
|
|
3917
|
+
proto.Spic.AssetProto.prototype.getStatesList = function() {
|
|
3918
|
+
return /** @type{!Array<!proto.Spic.ComponentProto>} */ (
|
|
3919
|
+
jspb.Message.getRepeatedWrapperField(this, proto.Spic.ComponentProto, 19));
|
|
3997
3920
|
};
|
|
3998
3921
|
|
|
3999
3922
|
|
|
4000
3923
|
/**
|
|
4001
|
-
* @param {
|
|
3924
|
+
* @param {!Array<!proto.Spic.ComponentProto>} value
|
|
4002
3925
|
* @return {!proto.Spic.AssetProto} returns this
|
|
4003
|
-
|
|
4004
|
-
proto.Spic.AssetProto.prototype.
|
|
4005
|
-
return jspb.Message.
|
|
3926
|
+
*/
|
|
3927
|
+
proto.Spic.AssetProto.prototype.setStatesList = function(value) {
|
|
3928
|
+
return jspb.Message.setRepeatedWrapperField(this, 19, value);
|
|
4006
3929
|
};
|
|
4007
3930
|
|
|
4008
3931
|
|
|
4009
3932
|
/**
|
|
4010
|
-
*
|
|
4011
|
-
* @
|
|
3933
|
+
* @param {!proto.Spic.ComponentProto=} opt_value
|
|
3934
|
+
* @param {number=} opt_index
|
|
3935
|
+
* @return {!proto.Spic.ComponentProto}
|
|
4012
3936
|
*/
|
|
4013
|
-
proto.Spic.AssetProto.prototype.
|
|
4014
|
-
return
|
|
3937
|
+
proto.Spic.AssetProto.prototype.addStates = function(opt_value, opt_index) {
|
|
3938
|
+
return jspb.Message.addToRepeatedWrapperField(this, 19, opt_value, proto.Spic.ComponentProto, opt_index);
|
|
4015
3939
|
};
|
|
4016
3940
|
|
|
4017
3941
|
|
|
4018
3942
|
/**
|
|
4019
|
-
*
|
|
3943
|
+
* Clears the list making it empty but non-null.
|
|
4020
3944
|
* @return {!proto.Spic.AssetProto} returns this
|
|
4021
3945
|
*/
|
|
4022
|
-
proto.Spic.AssetProto.prototype.
|
|
4023
|
-
return
|
|
3946
|
+
proto.Spic.AssetProto.prototype.clearStatesList = function() {
|
|
3947
|
+
return this.setStatesList([]);
|
|
4024
3948
|
};
|
|
4025
3949
|
|
|
4026
3950
|
|
|
4027
3951
|
/**
|
|
4028
|
-
* optional
|
|
4029
|
-
* @return {
|
|
3952
|
+
* optional DeviceType device_type = 20;
|
|
3953
|
+
* @return {!proto.Spic.AssetProto.DeviceType}
|
|
4030
3954
|
*/
|
|
4031
|
-
proto.Spic.AssetProto.prototype.
|
|
4032
|
-
return /** @type {
|
|
3955
|
+
proto.Spic.AssetProto.prototype.getDeviceType = function() {
|
|
3956
|
+
return /** @type {!proto.Spic.AssetProto.DeviceType} */ (jspb.Message.getFieldWithDefault(this, 20, 0));
|
|
4033
3957
|
};
|
|
4034
3958
|
|
|
4035
3959
|
|
|
4036
3960
|
/**
|
|
4037
|
-
* @param {
|
|
3961
|
+
* @param {!proto.Spic.AssetProto.DeviceType} value
|
|
4038
3962
|
* @return {!proto.Spic.AssetProto} returns this
|
|
4039
3963
|
*/
|
|
4040
|
-
proto.Spic.AssetProto.prototype.
|
|
4041
|
-
return jspb.Message.
|
|
3964
|
+
proto.Spic.AssetProto.prototype.setDeviceType = function(value) {
|
|
3965
|
+
return jspb.Message.setProto3EnumField(this, 20, value);
|
|
4042
3966
|
};
|
|
4043
3967
|
|
|
4044
3968
|
|
|
3969
|
+
|
|
3970
|
+
|
|
3971
|
+
|
|
3972
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4045
3973
|
/**
|
|
4046
|
-
*
|
|
4047
|
-
*
|
|
3974
|
+
* Creates an object representation of this proto.
|
|
3975
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3976
|
+
* Optional fields that are not set will be set to undefined.
|
|
3977
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3978
|
+
* For the list of reserved names please see:
|
|
3979
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3980
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3981
|
+
* JSPB instance for transitional soy proto support:
|
|
3982
|
+
* http://goto/soy-param-migration
|
|
3983
|
+
* @return {!Object}
|
|
4048
3984
|
*/
|
|
4049
|
-
proto.Spic.
|
|
4050
|
-
return
|
|
3985
|
+
proto.Spic.ComponentProto.prototype.toObject = function(opt_includeInstance) {
|
|
3986
|
+
return proto.Spic.ComponentProto.toObject(opt_includeInstance, this);
|
|
4051
3987
|
};
|
|
4052
3988
|
|
|
4053
3989
|
|
|
4054
3990
|
/**
|
|
4055
|
-
* @
|
|
4056
|
-
* @
|
|
3991
|
+
* Static version of the {@see toObject} method.
|
|
3992
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3993
|
+
* the JSPB instance for transitional soy proto support:
|
|
3994
|
+
* http://goto/soy-param-migration
|
|
3995
|
+
* @param {!proto.Spic.ComponentProto} msg The msg instance to transform.
|
|
3996
|
+
* @return {!Object}
|
|
3997
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4057
3998
|
*/
|
|
4058
|
-
proto.Spic.
|
|
4059
|
-
|
|
3999
|
+
proto.Spic.ComponentProto.toObject = function(includeInstance, msg) {
|
|
4000
|
+
var f, obj = {
|
|
4001
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4002
|
+
componentIdentifier: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
4003
|
+
componentId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
4004
|
+
componentClass: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
4005
|
+
value: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
4006
|
+
lastChanged: (f = msg.getLastChanged()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
4007
|
+
lastUpdated: (f = msg.getLastUpdated()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
4008
|
+
lastReported: (f = msg.getLastReported()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
4009
|
+
attributesMap: (f = msg.getAttributesMap()) ? f.toObject(includeInstance, undefined) : [],
|
|
4010
|
+
metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [],
|
|
4011
|
+
deviceType: jspb.Message.getFieldWithDefault(msg, 11, 0)
|
|
4012
|
+
};
|
|
4013
|
+
|
|
4014
|
+
if (includeInstance) {
|
|
4015
|
+
obj.$jspbMessageInstance = msg;
|
|
4016
|
+
}
|
|
4017
|
+
return obj;
|
|
4060
4018
|
};
|
|
4019
|
+
}
|
|
4061
4020
|
|
|
4062
4021
|
|
|
4063
4022
|
/**
|
|
4064
|
-
*
|
|
4065
|
-
* @
|
|
4023
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4024
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4025
|
+
* @return {!proto.Spic.ComponentProto}
|
|
4066
4026
|
*/
|
|
4067
|
-
proto.Spic.
|
|
4068
|
-
|
|
4027
|
+
proto.Spic.ComponentProto.deserializeBinary = function(bytes) {
|
|
4028
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4029
|
+
var msg = new proto.Spic.ComponentProto;
|
|
4030
|
+
return proto.Spic.ComponentProto.deserializeBinaryFromReader(msg, reader);
|
|
4031
|
+
};
|
|
4032
|
+
|
|
4033
|
+
|
|
4034
|
+
/**
|
|
4035
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4036
|
+
* given reader into the given message object.
|
|
4037
|
+
* @param {!proto.Spic.ComponentProto} msg The message object to deserialize into.
|
|
4038
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4039
|
+
* @return {!proto.Spic.ComponentProto}
|
|
4040
|
+
*/
|
|
4041
|
+
proto.Spic.ComponentProto.deserializeBinaryFromReader = function(msg, reader) {
|
|
4042
|
+
while (reader.nextField()) {
|
|
4043
|
+
if (reader.isEndGroup()) {
|
|
4044
|
+
break;
|
|
4045
|
+
}
|
|
4046
|
+
var field = reader.getFieldNumber();
|
|
4047
|
+
switch (field) {
|
|
4048
|
+
case 1:
|
|
4049
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4050
|
+
msg.setId(value);
|
|
4051
|
+
break;
|
|
4052
|
+
case 2:
|
|
4053
|
+
var value = /** @type {!proto.Spic.ComponentIdentifier} */ (reader.readEnum());
|
|
4054
|
+
msg.setComponentIdentifier(value);
|
|
4055
|
+
break;
|
|
4056
|
+
case 3:
|
|
4057
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4058
|
+
msg.setComponentId(value);
|
|
4059
|
+
break;
|
|
4060
|
+
case 4:
|
|
4061
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4062
|
+
msg.setComponentClass(value);
|
|
4063
|
+
break;
|
|
4064
|
+
case 5:
|
|
4065
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4066
|
+
msg.setValue(value);
|
|
4067
|
+
break;
|
|
4068
|
+
case 6:
|
|
4069
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
4070
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
4071
|
+
msg.setLastChanged(value);
|
|
4072
|
+
break;
|
|
4073
|
+
case 7:
|
|
4074
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
4075
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
4076
|
+
msg.setLastUpdated(value);
|
|
4077
|
+
break;
|
|
4078
|
+
case 8:
|
|
4079
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
4080
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
4081
|
+
msg.setLastReported(value);
|
|
4082
|
+
break;
|
|
4083
|
+
case 9:
|
|
4084
|
+
var value = msg.getAttributesMap();
|
|
4085
|
+
reader.readMessage(value, function(message, reader) {
|
|
4086
|
+
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
|
|
4087
|
+
});
|
|
4088
|
+
break;
|
|
4089
|
+
case 10:
|
|
4090
|
+
var value = msg.getMetadataMap();
|
|
4091
|
+
reader.readMessage(value, function(message, reader) {
|
|
4092
|
+
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
|
|
4093
|
+
});
|
|
4094
|
+
break;
|
|
4095
|
+
case 11:
|
|
4096
|
+
var value = /** @type {!proto.Spic.AssetProto.DeviceType} */ (reader.readEnum());
|
|
4097
|
+
msg.setDeviceType(value);
|
|
4098
|
+
break;
|
|
4099
|
+
default:
|
|
4100
|
+
reader.skipField();
|
|
4101
|
+
break;
|
|
4102
|
+
}
|
|
4103
|
+
}
|
|
4104
|
+
return msg;
|
|
4105
|
+
};
|
|
4106
|
+
|
|
4107
|
+
|
|
4108
|
+
/**
|
|
4109
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4110
|
+
* @return {!Uint8Array}
|
|
4111
|
+
*/
|
|
4112
|
+
proto.Spic.ComponentProto.prototype.serializeBinary = function() {
|
|
4113
|
+
var writer = new jspb.BinaryWriter();
|
|
4114
|
+
proto.Spic.ComponentProto.serializeBinaryToWriter(this, writer);
|
|
4115
|
+
return writer.getResultBuffer();
|
|
4116
|
+
};
|
|
4117
|
+
|
|
4118
|
+
|
|
4119
|
+
/**
|
|
4120
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4121
|
+
* format), writing to the given BinaryWriter.
|
|
4122
|
+
* @param {!proto.Spic.ComponentProto} message
|
|
4123
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4124
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4125
|
+
*/
|
|
4126
|
+
proto.Spic.ComponentProto.serializeBinaryToWriter = function(message, writer) {
|
|
4127
|
+
var f = undefined;
|
|
4128
|
+
f = message.getId();
|
|
4129
|
+
if (f.length > 0) {
|
|
4130
|
+
writer.writeString(
|
|
4131
|
+
1,
|
|
4132
|
+
f
|
|
4133
|
+
);
|
|
4134
|
+
}
|
|
4135
|
+
f = message.getComponentIdentifier();
|
|
4136
|
+
if (f !== 0.0) {
|
|
4137
|
+
writer.writeEnum(
|
|
4138
|
+
2,
|
|
4139
|
+
f
|
|
4140
|
+
);
|
|
4141
|
+
}
|
|
4142
|
+
f = message.getComponentId();
|
|
4143
|
+
if (f.length > 0) {
|
|
4144
|
+
writer.writeString(
|
|
4145
|
+
3,
|
|
4146
|
+
f
|
|
4147
|
+
);
|
|
4148
|
+
}
|
|
4149
|
+
f = message.getComponentClass();
|
|
4150
|
+
if (f.length > 0) {
|
|
4151
|
+
writer.writeString(
|
|
4152
|
+
4,
|
|
4153
|
+
f
|
|
4154
|
+
);
|
|
4155
|
+
}
|
|
4156
|
+
f = message.getValue();
|
|
4157
|
+
if (f.length > 0) {
|
|
4158
|
+
writer.writeString(
|
|
4159
|
+
5,
|
|
4160
|
+
f
|
|
4161
|
+
);
|
|
4162
|
+
}
|
|
4163
|
+
f = message.getLastChanged();
|
|
4164
|
+
if (f != null) {
|
|
4165
|
+
writer.writeMessage(
|
|
4166
|
+
6,
|
|
4167
|
+
f,
|
|
4168
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
4169
|
+
);
|
|
4170
|
+
}
|
|
4171
|
+
f = message.getLastUpdated();
|
|
4172
|
+
if (f != null) {
|
|
4173
|
+
writer.writeMessage(
|
|
4174
|
+
7,
|
|
4175
|
+
f,
|
|
4176
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
4177
|
+
);
|
|
4178
|
+
}
|
|
4179
|
+
f = message.getLastReported();
|
|
4180
|
+
if (f != null) {
|
|
4181
|
+
writer.writeMessage(
|
|
4182
|
+
8,
|
|
4183
|
+
f,
|
|
4184
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
4185
|
+
);
|
|
4186
|
+
}
|
|
4187
|
+
f = message.getAttributesMap(true);
|
|
4188
|
+
if (f && f.getLength() > 0) {
|
|
4189
|
+
f.serializeBinary(9, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
|
4190
|
+
}
|
|
4191
|
+
f = message.getMetadataMap(true);
|
|
4192
|
+
if (f && f.getLength() > 0) {
|
|
4193
|
+
f.serializeBinary(10, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
|
4194
|
+
}
|
|
4195
|
+
f = message.getDeviceType();
|
|
4196
|
+
if (f !== 0.0) {
|
|
4197
|
+
writer.writeEnum(
|
|
4198
|
+
11,
|
|
4199
|
+
f
|
|
4200
|
+
);
|
|
4201
|
+
}
|
|
4069
4202
|
};
|
|
4070
4203
|
|
|
4071
4204
|
|
|
4072
4205
|
/**
|
|
4073
|
-
*
|
|
4074
|
-
* @return {
|
|
4206
|
+
* optional string id = 1;
|
|
4207
|
+
* @return {string}
|
|
4075
4208
|
*/
|
|
4076
|
-
proto.Spic.
|
|
4077
|
-
return jspb.Message.
|
|
4209
|
+
proto.Spic.ComponentProto.prototype.getId = function() {
|
|
4210
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4078
4211
|
};
|
|
4079
4212
|
|
|
4080
4213
|
|
|
4081
4214
|
/**
|
|
4082
|
-
*
|
|
4083
|
-
* @return {
|
|
4215
|
+
* @param {string} value
|
|
4216
|
+
* @return {!proto.Spic.ComponentProto} returns this
|
|
4084
4217
|
*/
|
|
4085
|
-
proto.Spic.
|
|
4086
|
-
return
|
|
4087
|
-
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
|
|
4088
|
-
};
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
/**
|
|
4092
|
-
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
4093
|
-
* @return {!proto.Spic.AssetProto} returns this
|
|
4094
|
-
*/
|
|
4095
|
-
proto.Spic.AssetProto.prototype.setLastStatusUpdate = function(value) {
|
|
4096
|
-
return jspb.Message.setWrapperField(this, 7, value);
|
|
4218
|
+
proto.Spic.ComponentProto.prototype.setId = function(value) {
|
|
4219
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4097
4220
|
};
|
|
4098
4221
|
|
|
4099
4222
|
|
|
4100
4223
|
/**
|
|
4101
|
-
*
|
|
4102
|
-
* @return {!proto.Spic.
|
|
4224
|
+
* optional ComponentIdentifier component_identifier = 2;
|
|
4225
|
+
* @return {!proto.Spic.ComponentIdentifier}
|
|
4103
4226
|
*/
|
|
4104
|
-
proto.Spic.
|
|
4105
|
-
return
|
|
4227
|
+
proto.Spic.ComponentProto.prototype.getComponentIdentifier = function() {
|
|
4228
|
+
return /** @type {!proto.Spic.ComponentIdentifier} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
4106
4229
|
};
|
|
4107
4230
|
|
|
4108
4231
|
|
|
4109
4232
|
/**
|
|
4110
|
-
*
|
|
4111
|
-
* @return {
|
|
4233
|
+
* @param {!proto.Spic.ComponentIdentifier} value
|
|
4234
|
+
* @return {!proto.Spic.ComponentProto} returns this
|
|
4112
4235
|
*/
|
|
4113
|
-
proto.Spic.
|
|
4114
|
-
return jspb.Message.
|
|
4236
|
+
proto.Spic.ComponentProto.prototype.setComponentIdentifier = function(value) {
|
|
4237
|
+
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
4115
4238
|
};
|
|
4116
4239
|
|
|
4117
4240
|
|
|
4118
4241
|
/**
|
|
4119
|
-
* optional string
|
|
4242
|
+
* optional string component_id = 3;
|
|
4120
4243
|
* @return {string}
|
|
4121
4244
|
*/
|
|
4122
|
-
proto.Spic.
|
|
4123
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
4245
|
+
proto.Spic.ComponentProto.prototype.getComponentId = function() {
|
|
4246
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
4124
4247
|
};
|
|
4125
4248
|
|
|
4126
4249
|
|
|
4127
4250
|
/**
|
|
4128
4251
|
* @param {string} value
|
|
4129
|
-
* @return {!proto.Spic.
|
|
4130
|
-
*/
|
|
4131
|
-
proto.Spic.AssetProto.prototype.setGroupId = function(value) {
|
|
4132
|
-
return jspb.Message.setProto3StringField(this, 8, value);
|
|
4133
|
-
};
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
/**
|
|
4137
|
-
* optional int32 client_id = 9;
|
|
4138
|
-
* @return {number}
|
|
4139
|
-
*/
|
|
4140
|
-
proto.Spic.AssetProto.prototype.getClientId = function() {
|
|
4141
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
|
|
4142
|
-
};
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
/**
|
|
4146
|
-
* @param {number} value
|
|
4147
|
-
* @return {!proto.Spic.AssetProto} returns this
|
|
4252
|
+
* @return {!proto.Spic.ComponentProto} returns this
|
|
4148
4253
|
*/
|
|
4149
|
-
proto.Spic.
|
|
4150
|
-
return jspb.Message.
|
|
4254
|
+
proto.Spic.ComponentProto.prototype.setComponentId = function(value) {
|
|
4255
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
4151
4256
|
};
|
|
4152
4257
|
|
|
4153
4258
|
|
|
4154
4259
|
/**
|
|
4155
|
-
* optional
|
|
4156
|
-
* @return {
|
|
4260
|
+
* optional string component_class = 4;
|
|
4261
|
+
* @return {string}
|
|
4157
4262
|
*/
|
|
4158
|
-
proto.Spic.
|
|
4159
|
-
return /** @type {
|
|
4263
|
+
proto.Spic.ComponentProto.prototype.getComponentClass = function() {
|
|
4264
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
4160
4265
|
};
|
|
4161
4266
|
|
|
4162
4267
|
|
|
4163
4268
|
/**
|
|
4164
|
-
* @param {
|
|
4165
|
-
* @return {!proto.Spic.
|
|
4269
|
+
* @param {string} value
|
|
4270
|
+
* @return {!proto.Spic.ComponentProto} returns this
|
|
4166
4271
|
*/
|
|
4167
|
-
proto.Spic.
|
|
4168
|
-
return jspb.Message.
|
|
4272
|
+
proto.Spic.ComponentProto.prototype.setComponentClass = function(value) {
|
|
4273
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
4169
4274
|
};
|
|
4170
4275
|
|
|
4171
4276
|
|
|
4172
4277
|
/**
|
|
4173
|
-
* optional string
|
|
4278
|
+
* optional string value = 5;
|
|
4174
4279
|
* @return {string}
|
|
4175
4280
|
*/
|
|
4176
|
-
proto.Spic.
|
|
4177
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
4281
|
+
proto.Spic.ComponentProto.prototype.getValue = function() {
|
|
4282
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
4178
4283
|
};
|
|
4179
4284
|
|
|
4180
4285
|
|
|
4181
4286
|
/**
|
|
4182
4287
|
* @param {string} value
|
|
4183
|
-
* @return {!proto.Spic.
|
|
4288
|
+
* @return {!proto.Spic.ComponentProto} returns this
|
|
4184
4289
|
*/
|
|
4185
|
-
proto.Spic.
|
|
4186
|
-
return jspb.Message.setProto3StringField(this,
|
|
4290
|
+
proto.Spic.ComponentProto.prototype.setValue = function(value) {
|
|
4291
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
4187
4292
|
};
|
|
4188
4293
|
|
|
4189
4294
|
|
|
4190
4295
|
/**
|
|
4191
|
-
* optional google.protobuf.Timestamp
|
|
4296
|
+
* optional google.protobuf.Timestamp last_changed = 6;
|
|
4192
4297
|
* @return {?proto.google.protobuf.Timestamp}
|
|
4193
4298
|
*/
|
|
4194
|
-
proto.Spic.
|
|
4299
|
+
proto.Spic.ComponentProto.prototype.getLastChanged = function() {
|
|
4195
4300
|
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
4196
|
-
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp,
|
|
4301
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
|
|
4197
4302
|
};
|
|
4198
4303
|
|
|
4199
4304
|
|
|
4200
4305
|
/**
|
|
4201
4306
|
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
4202
|
-
* @return {!proto.Spic.
|
|
4307
|
+
* @return {!proto.Spic.ComponentProto} returns this
|
|
4203
4308
|
*/
|
|
4204
|
-
proto.Spic.
|
|
4205
|
-
return jspb.Message.setWrapperField(this,
|
|
4309
|
+
proto.Spic.ComponentProto.prototype.setLastChanged = function(value) {
|
|
4310
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
4206
4311
|
};
|
|
4207
4312
|
|
|
4208
4313
|
|
|
4209
4314
|
/**
|
|
4210
4315
|
* Clears the message field making it undefined.
|
|
4211
|
-
* @return {!proto.Spic.
|
|
4316
|
+
* @return {!proto.Spic.ComponentProto} returns this
|
|
4212
4317
|
*/
|
|
4213
|
-
proto.Spic.
|
|
4214
|
-
return this.
|
|
4318
|
+
proto.Spic.ComponentProto.prototype.clearLastChanged = function() {
|
|
4319
|
+
return this.setLastChanged(undefined);
|
|
4215
4320
|
};
|
|
4216
4321
|
|
|
4217
4322
|
|
|
@@ -4219,90 +4324,73 @@ proto.Spic.AssetProto.prototype.clearBatteryPlaced = function() {
|
|
|
4219
4324
|
* Returns whether this field is set.
|
|
4220
4325
|
* @return {boolean}
|
|
4221
4326
|
*/
|
|
4222
|
-
proto.Spic.
|
|
4223
|
-
return jspb.Message.getField(this,
|
|
4224
|
-
};
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
/**
|
|
4228
|
-
* optional int32 battery_percentage = 13;
|
|
4229
|
-
* @return {number}
|
|
4230
|
-
*/
|
|
4231
|
-
proto.Spic.AssetProto.prototype.getBatteryPercentage = function() {
|
|
4232
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
|
|
4233
|
-
};
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
/**
|
|
4237
|
-
* @param {number} value
|
|
4238
|
-
* @return {!proto.Spic.AssetProto} returns this
|
|
4239
|
-
*/
|
|
4240
|
-
proto.Spic.AssetProto.prototype.setBatteryPercentage = function(value) {
|
|
4241
|
-
return jspb.Message.setProto3IntField(this, 13, value);
|
|
4327
|
+
proto.Spic.ComponentProto.prototype.hasLastChanged = function() {
|
|
4328
|
+
return jspb.Message.getField(this, 6) != null;
|
|
4242
4329
|
};
|
|
4243
4330
|
|
|
4244
4331
|
|
|
4245
4332
|
/**
|
|
4246
|
-
* optional
|
|
4247
|
-
* @return {
|
|
4333
|
+
* optional google.protobuf.Timestamp last_updated = 7;
|
|
4334
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
4248
4335
|
*/
|
|
4249
|
-
proto.Spic.
|
|
4250
|
-
return /** @type
|
|
4336
|
+
proto.Spic.ComponentProto.prototype.getLastUpdated = function() {
|
|
4337
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
4338
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
|
|
4251
4339
|
};
|
|
4252
4340
|
|
|
4253
4341
|
|
|
4254
4342
|
/**
|
|
4255
|
-
* @param {
|
|
4256
|
-
* @return {!proto.Spic.
|
|
4257
|
-
|
|
4258
|
-
proto.Spic.
|
|
4259
|
-
return jspb.Message.
|
|
4343
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
4344
|
+
* @return {!proto.Spic.ComponentProto} returns this
|
|
4345
|
+
*/
|
|
4346
|
+
proto.Spic.ComponentProto.prototype.setLastUpdated = function(value) {
|
|
4347
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
4260
4348
|
};
|
|
4261
4349
|
|
|
4262
4350
|
|
|
4263
4351
|
/**
|
|
4264
|
-
*
|
|
4265
|
-
* @return {
|
|
4352
|
+
* Clears the message field making it undefined.
|
|
4353
|
+
* @return {!proto.Spic.ComponentProto} returns this
|
|
4266
4354
|
*/
|
|
4267
|
-
proto.Spic.
|
|
4268
|
-
return
|
|
4355
|
+
proto.Spic.ComponentProto.prototype.clearLastUpdated = function() {
|
|
4356
|
+
return this.setLastUpdated(undefined);
|
|
4269
4357
|
};
|
|
4270
4358
|
|
|
4271
4359
|
|
|
4272
4360
|
/**
|
|
4273
|
-
*
|
|
4274
|
-
* @return {
|
|
4361
|
+
* Returns whether this field is set.
|
|
4362
|
+
* @return {boolean}
|
|
4275
4363
|
*/
|
|
4276
|
-
proto.Spic.
|
|
4277
|
-
return jspb.Message.
|
|
4364
|
+
proto.Spic.ComponentProto.prototype.hasLastUpdated = function() {
|
|
4365
|
+
return jspb.Message.getField(this, 7) != null;
|
|
4278
4366
|
};
|
|
4279
4367
|
|
|
4280
4368
|
|
|
4281
4369
|
/**
|
|
4282
|
-
* optional google.protobuf.Timestamp
|
|
4370
|
+
* optional google.protobuf.Timestamp last_reported = 8;
|
|
4283
4371
|
* @return {?proto.google.protobuf.Timestamp}
|
|
4284
4372
|
*/
|
|
4285
|
-
proto.Spic.
|
|
4373
|
+
proto.Spic.ComponentProto.prototype.getLastReported = function() {
|
|
4286
4374
|
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
4287
|
-
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp,
|
|
4375
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8));
|
|
4288
4376
|
};
|
|
4289
4377
|
|
|
4290
4378
|
|
|
4291
4379
|
/**
|
|
4292
4380
|
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
4293
|
-
* @return {!proto.Spic.
|
|
4381
|
+
* @return {!proto.Spic.ComponentProto} returns this
|
|
4294
4382
|
*/
|
|
4295
|
-
proto.Spic.
|
|
4296
|
-
return jspb.Message.setWrapperField(this,
|
|
4383
|
+
proto.Spic.ComponentProto.prototype.setLastReported = function(value) {
|
|
4384
|
+
return jspb.Message.setWrapperField(this, 8, value);
|
|
4297
4385
|
};
|
|
4298
4386
|
|
|
4299
4387
|
|
|
4300
4388
|
/**
|
|
4301
4389
|
* Clears the message field making it undefined.
|
|
4302
|
-
* @return {!proto.Spic.
|
|
4390
|
+
* @return {!proto.Spic.ComponentProto} returns this
|
|
4303
4391
|
*/
|
|
4304
|
-
proto.Spic.
|
|
4305
|
-
return this.
|
|
4392
|
+
proto.Spic.ComponentProto.prototype.clearLastReported = function() {
|
|
4393
|
+
return this.setLastReported(undefined);
|
|
4306
4394
|
};
|
|
4307
4395
|
|
|
4308
4396
|
|
|
@@ -4310,100 +4398,72 @@ proto.Spic.AssetProto.prototype.clearLastConfigUpdated = function() {
|
|
|
4310
4398
|
* Returns whether this field is set.
|
|
4311
4399
|
* @return {boolean}
|
|
4312
4400
|
*/
|
|
4313
|
-
proto.Spic.
|
|
4314
|
-
return jspb.Message.getField(this,
|
|
4315
|
-
};
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
/**
|
|
4319
|
-
* optional AssetType asset_type = 17;
|
|
4320
|
-
* @return {!proto.Spic.AssetProto.AssetType}
|
|
4321
|
-
*/
|
|
4322
|
-
proto.Spic.AssetProto.prototype.getAssetType = function() {
|
|
4323
|
-
return /** @type {!proto.Spic.AssetProto.AssetType} */ (jspb.Message.getFieldWithDefault(this, 17, 0));
|
|
4324
|
-
};
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
/**
|
|
4328
|
-
* @param {!proto.Spic.AssetProto.AssetType} value
|
|
4329
|
-
* @return {!proto.Spic.AssetProto} returns this
|
|
4330
|
-
*/
|
|
4331
|
-
proto.Spic.AssetProto.prototype.setAssetType = function(value) {
|
|
4332
|
-
return jspb.Message.setProto3EnumField(this, 17, value);
|
|
4333
|
-
};
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
/**
|
|
4337
|
-
* optional BatteryStatus battery_status = 18;
|
|
4338
|
-
* @return {!proto.Spic.AssetProto.BatteryStatus}
|
|
4339
|
-
*/
|
|
4340
|
-
proto.Spic.AssetProto.prototype.getBatteryStatus = function() {
|
|
4341
|
-
return /** @type {!proto.Spic.AssetProto.BatteryStatus} */ (jspb.Message.getFieldWithDefault(this, 18, 0));
|
|
4401
|
+
proto.Spic.ComponentProto.prototype.hasLastReported = function() {
|
|
4402
|
+
return jspb.Message.getField(this, 8) != null;
|
|
4342
4403
|
};
|
|
4343
4404
|
|
|
4344
4405
|
|
|
4345
4406
|
/**
|
|
4346
|
-
*
|
|
4347
|
-
* @
|
|
4407
|
+
* map<string, string> attributes = 9;
|
|
4408
|
+
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
4409
|
+
* empty, instead returning `undefined`
|
|
4410
|
+
* @return {!jspb.Map<string,string>}
|
|
4348
4411
|
*/
|
|
4349
|
-
proto.Spic.
|
|
4350
|
-
return jspb.
|
|
4412
|
+
proto.Spic.ComponentProto.prototype.getAttributesMap = function(opt_noLazyCreate) {
|
|
4413
|
+
return /** @type {!jspb.Map<string,string>} */ (
|
|
4414
|
+
jspb.Message.getMapField(this, 9, opt_noLazyCreate,
|
|
4415
|
+
null));
|
|
4351
4416
|
};
|
|
4352
4417
|
|
|
4353
4418
|
|
|
4354
4419
|
/**
|
|
4355
|
-
*
|
|
4356
|
-
* @return {!
|
|
4420
|
+
* Clears values from the map. The map will be non-null.
|
|
4421
|
+
* @return {!proto.Spic.ComponentProto} returns this
|
|
4357
4422
|
*/
|
|
4358
|
-
proto.Spic.
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
};
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
/**
|
|
4365
|
-
* @param {!Array<!proto.Spic.AssetProto.ComponentState>} value
|
|
4366
|
-
* @return {!proto.Spic.AssetProto} returns this
|
|
4367
|
-
*/
|
|
4368
|
-
proto.Spic.AssetProto.prototype.setStatesList = function(value) {
|
|
4369
|
-
return jspb.Message.setRepeatedWrapperField(this, 19, value);
|
|
4423
|
+
proto.Spic.ComponentProto.prototype.clearAttributesMap = function() {
|
|
4424
|
+
this.getAttributesMap().clear();
|
|
4425
|
+
return this;
|
|
4370
4426
|
};
|
|
4371
4427
|
|
|
4372
4428
|
|
|
4373
4429
|
/**
|
|
4374
|
-
*
|
|
4375
|
-
* @param {
|
|
4376
|
-
*
|
|
4430
|
+
* map<string, string> metadata = 10;
|
|
4431
|
+
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
4432
|
+
* empty, instead returning `undefined`
|
|
4433
|
+
* @return {!jspb.Map<string,string>}
|
|
4377
4434
|
*/
|
|
4378
|
-
proto.Spic.
|
|
4379
|
-
return jspb.
|
|
4435
|
+
proto.Spic.ComponentProto.prototype.getMetadataMap = function(opt_noLazyCreate) {
|
|
4436
|
+
return /** @type {!jspb.Map<string,string>} */ (
|
|
4437
|
+
jspb.Message.getMapField(this, 10, opt_noLazyCreate,
|
|
4438
|
+
null));
|
|
4380
4439
|
};
|
|
4381
4440
|
|
|
4382
4441
|
|
|
4383
4442
|
/**
|
|
4384
|
-
* Clears the
|
|
4385
|
-
* @return {!proto.Spic.
|
|
4443
|
+
* Clears values from the map. The map will be non-null.
|
|
4444
|
+
* @return {!proto.Spic.ComponentProto} returns this
|
|
4386
4445
|
*/
|
|
4387
|
-
proto.Spic.
|
|
4388
|
-
|
|
4446
|
+
proto.Spic.ComponentProto.prototype.clearMetadataMap = function() {
|
|
4447
|
+
this.getMetadataMap().clear();
|
|
4448
|
+
return this;
|
|
4389
4449
|
};
|
|
4390
4450
|
|
|
4391
4451
|
|
|
4392
4452
|
/**
|
|
4393
|
-
* optional DeviceType device_type =
|
|
4453
|
+
* optional AssetProto.DeviceType device_type = 11;
|
|
4394
4454
|
* @return {!proto.Spic.AssetProto.DeviceType}
|
|
4395
4455
|
*/
|
|
4396
|
-
proto.Spic.
|
|
4397
|
-
return /** @type {!proto.Spic.AssetProto.DeviceType} */ (jspb.Message.getFieldWithDefault(this,
|
|
4456
|
+
proto.Spic.ComponentProto.prototype.getDeviceType = function() {
|
|
4457
|
+
return /** @type {!proto.Spic.AssetProto.DeviceType} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
|
|
4398
4458
|
};
|
|
4399
4459
|
|
|
4400
4460
|
|
|
4401
4461
|
/**
|
|
4402
4462
|
* @param {!proto.Spic.AssetProto.DeviceType} value
|
|
4403
|
-
* @return {!proto.Spic.
|
|
4463
|
+
* @return {!proto.Spic.ComponentProto} returns this
|
|
4404
4464
|
*/
|
|
4405
|
-
proto.Spic.
|
|
4406
|
-
return jspb.Message.setProto3EnumField(this,
|
|
4465
|
+
proto.Spic.ComponentProto.prototype.setDeviceType = function(value) {
|
|
4466
|
+
return jspb.Message.setProto3EnumField(this, 11, value);
|
|
4407
4467
|
};
|
|
4408
4468
|
|
|
4409
4469
|
|