@aceplus/smartace-api 3.7.0-alpha.6 → 3.7.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/spic.asset_pb.d.ts +8 -27
- package/spic.asset_pb.js +62 -218
- package/spic.asset_pb_service.d.ts +0 -19
- package/spic.asset_pb_service.js +0 -40
package/package.json
CHANGED
package/spic.asset_pb.d.ts
CHANGED
|
@@ -132,6 +132,9 @@ export namespace AssetProto {
|
|
|
132
132
|
getAssetType(): AssetProto.AssetTypeMap[keyof AssetProto.AssetTypeMap];
|
|
133
133
|
setAssetType(value: AssetProto.AssetTypeMap[keyof AssetProto.AssetTypeMap]): void;
|
|
134
134
|
|
|
135
|
+
getIsMaintenance(): boolean;
|
|
136
|
+
setIsMaintenance(value: boolean): void;
|
|
137
|
+
|
|
135
138
|
serializeBinary(): Uint8Array;
|
|
136
139
|
toObject(includeInstance?: boolean): CreateRequest.AsObject;
|
|
137
140
|
static toObject(includeInstance: boolean, msg: CreateRequest): CreateRequest.AsObject;
|
|
@@ -151,6 +154,7 @@ export namespace AssetProto {
|
|
|
151
154
|
groupId: string,
|
|
152
155
|
clientId: number,
|
|
153
156
|
assetType: AssetProto.AssetTypeMap[keyof AssetProto.AssetTypeMap],
|
|
157
|
+
isMaintenance: boolean,
|
|
154
158
|
}
|
|
155
159
|
}
|
|
156
160
|
|
|
@@ -216,6 +220,9 @@ export namespace AssetProto {
|
|
|
216
220
|
getAssetType(): AssetProto.AssetTypeMap[keyof AssetProto.AssetTypeMap];
|
|
217
221
|
setAssetType(value: AssetProto.AssetTypeMap[keyof AssetProto.AssetTypeMap]): void;
|
|
218
222
|
|
|
223
|
+
getIsMaintenance(): boolean;
|
|
224
|
+
setIsMaintenance(value: boolean): void;
|
|
225
|
+
|
|
219
226
|
serializeBinary(): Uint8Array;
|
|
220
227
|
toObject(includeInstance?: boolean): UpdateRequest.AsObject;
|
|
221
228
|
static toObject(includeInstance: boolean, msg: UpdateRequest): UpdateRequest.AsObject;
|
|
@@ -236,6 +243,7 @@ export namespace AssetProto {
|
|
|
236
243
|
groupId: string,
|
|
237
244
|
clientId: number,
|
|
238
245
|
assetType: AssetProto.AssetTypeMap[keyof AssetProto.AssetTypeMap],
|
|
246
|
+
isMaintenance: boolean,
|
|
239
247
|
}
|
|
240
248
|
}
|
|
241
249
|
|
|
@@ -587,33 +595,6 @@ export namespace ComponentProto {
|
|
|
587
595
|
metadataMap: Array<[string, string]>,
|
|
588
596
|
deviceType: AssetProto.DeviceTypeMap[keyof AssetProto.DeviceTypeMap],
|
|
589
597
|
}
|
|
590
|
-
|
|
591
|
-
export class CallFeatureRequest extends jspb.Message {
|
|
592
|
-
getComponentId(): string;
|
|
593
|
-
setComponentId(value: string): void;
|
|
594
|
-
|
|
595
|
-
getFeature(): string;
|
|
596
|
-
setFeature(value: string): void;
|
|
597
|
-
|
|
598
|
-
getArgumentsMap(): jspb.Map<string, string>;
|
|
599
|
-
clearArgumentsMap(): void;
|
|
600
|
-
serializeBinary(): Uint8Array;
|
|
601
|
-
toObject(includeInstance?: boolean): CallFeatureRequest.AsObject;
|
|
602
|
-
static toObject(includeInstance: boolean, msg: CallFeatureRequest): CallFeatureRequest.AsObject;
|
|
603
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
604
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
605
|
-
static serializeBinaryToWriter(message: CallFeatureRequest, writer: jspb.BinaryWriter): void;
|
|
606
|
-
static deserializeBinary(bytes: Uint8Array): CallFeatureRequest;
|
|
607
|
-
static deserializeBinaryFromReader(message: CallFeatureRequest, reader: jspb.BinaryReader): CallFeatureRequest;
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
export namespace CallFeatureRequest {
|
|
611
|
-
export type AsObject = {
|
|
612
|
-
componentId: string,
|
|
613
|
-
feature: string,
|
|
614
|
-
argumentsMap: Array<[string, string]>,
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
598
|
}
|
|
618
599
|
|
|
619
600
|
export class AssetWithLocation extends jspb.Message {
|
package/spic.asset_pb.js
CHANGED
|
@@ -56,7 +56,6 @@ goog.exportSymbol('proto.Spic.AssetWithLocation', null, global);
|
|
|
56
56
|
goog.exportSymbol('proto.Spic.AssetWithLocationAndDistance', null, global);
|
|
57
57
|
goog.exportSymbol('proto.Spic.ComponentIdentifier', null, global);
|
|
58
58
|
goog.exportSymbol('proto.Spic.ComponentProto', null, global);
|
|
59
|
-
goog.exportSymbol('proto.Spic.ComponentProto.CallFeatureRequest', null, global);
|
|
60
59
|
/**
|
|
61
60
|
* Generated by JsPbCodeGenerator.
|
|
62
61
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -372,27 +371,6 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
372
371
|
*/
|
|
373
372
|
proto.Spic.ComponentProto.displayName = 'proto.Spic.ComponentProto';
|
|
374
373
|
}
|
|
375
|
-
/**
|
|
376
|
-
* Generated by JsPbCodeGenerator.
|
|
377
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
378
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
379
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
380
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
381
|
-
* valid.
|
|
382
|
-
* @extends {jspb.Message}
|
|
383
|
-
* @constructor
|
|
384
|
-
*/
|
|
385
|
-
proto.Spic.ComponentProto.CallFeatureRequest = function(opt_data) {
|
|
386
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
387
|
-
};
|
|
388
|
-
goog.inherits(proto.Spic.ComponentProto.CallFeatureRequest, jspb.Message);
|
|
389
|
-
if (goog.DEBUG && !COMPILED) {
|
|
390
|
-
/**
|
|
391
|
-
* @public
|
|
392
|
-
* @override
|
|
393
|
-
*/
|
|
394
|
-
proto.Spic.ComponentProto.CallFeatureRequest.displayName = 'proto.Spic.ComponentProto.CallFeatureRequest';
|
|
395
|
-
}
|
|
396
374
|
/**
|
|
397
375
|
* Generated by JsPbCodeGenerator.
|
|
398
376
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -844,7 +822,8 @@ proto.Spic.AssetProto.CreateRequest.toObject = function(includeInstance, msg) {
|
|
|
844
822
|
image: (f = msg.getImage()) && google_protobuf_wrappers_pb.BytesValue.toObject(includeInstance, f),
|
|
845
823
|
groupId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
846
824
|
clientId: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
847
|
-
assetType: jspb.Message.getFieldWithDefault(msg, 7, 0)
|
|
825
|
+
assetType: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
826
|
+
isMaintenance: jspb.Message.getBooleanFieldWithDefault(msg, 8, false)
|
|
848
827
|
};
|
|
849
828
|
|
|
850
829
|
if (includeInstance) {
|
|
@@ -910,6 +889,10 @@ proto.Spic.AssetProto.CreateRequest.deserializeBinaryFromReader = function(msg,
|
|
|
910
889
|
var value = /** @type {!proto.Spic.AssetProto.AssetType} */ (reader.readEnum());
|
|
911
890
|
msg.setAssetType(value);
|
|
912
891
|
break;
|
|
892
|
+
case 8:
|
|
893
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
894
|
+
msg.setIsMaintenance(value);
|
|
895
|
+
break;
|
|
913
896
|
default:
|
|
914
897
|
reader.skipField();
|
|
915
898
|
break;
|
|
@@ -989,6 +972,13 @@ proto.Spic.AssetProto.CreateRequest.serializeBinaryToWriter = function(message,
|
|
|
989
972
|
f
|
|
990
973
|
);
|
|
991
974
|
}
|
|
975
|
+
f = message.getIsMaintenance();
|
|
976
|
+
if (f) {
|
|
977
|
+
writer.writeBool(
|
|
978
|
+
8,
|
|
979
|
+
f
|
|
980
|
+
);
|
|
981
|
+
}
|
|
992
982
|
};
|
|
993
983
|
|
|
994
984
|
|
|
@@ -1137,6 +1127,24 @@ proto.Spic.AssetProto.CreateRequest.prototype.setAssetType = function(value) {
|
|
|
1137
1127
|
};
|
|
1138
1128
|
|
|
1139
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
|
+
|
|
1140
1148
|
|
|
1141
1149
|
/**
|
|
1142
1150
|
* Oneof group definitions for this message. Each group defines the field
|
|
@@ -1398,7 +1406,8 @@ proto.Spic.AssetProto.UpdateRequest.toObject = function(includeInstance, msg) {
|
|
|
1398
1406
|
image: (f = msg.getImage()) && google_protobuf_wrappers_pb.BytesValue.toObject(includeInstance, f),
|
|
1399
1407
|
groupId: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
1400
1408
|
clientId: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
1401
|
-
assetType: jspb.Message.getFieldWithDefault(msg, 8, 0)
|
|
1409
|
+
assetType: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
1410
|
+
isMaintenance: jspb.Message.getBooleanFieldWithDefault(msg, 9, false)
|
|
1402
1411
|
};
|
|
1403
1412
|
|
|
1404
1413
|
if (includeInstance) {
|
|
@@ -1468,6 +1477,10 @@ proto.Spic.AssetProto.UpdateRequest.deserializeBinaryFromReader = function(msg,
|
|
|
1468
1477
|
var value = /** @type {!proto.Spic.AssetProto.AssetType} */ (reader.readEnum());
|
|
1469
1478
|
msg.setAssetType(value);
|
|
1470
1479
|
break;
|
|
1480
|
+
case 9:
|
|
1481
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
1482
|
+
msg.setIsMaintenance(value);
|
|
1483
|
+
break;
|
|
1471
1484
|
default:
|
|
1472
1485
|
reader.skipField();
|
|
1473
1486
|
break;
|
|
@@ -1554,6 +1567,13 @@ proto.Spic.AssetProto.UpdateRequest.serializeBinaryToWriter = function(message,
|
|
|
1554
1567
|
f
|
|
1555
1568
|
);
|
|
1556
1569
|
}
|
|
1570
|
+
f = message.getIsMaintenance();
|
|
1571
|
+
if (f) {
|
|
1572
|
+
writer.writeBool(
|
|
1573
|
+
9,
|
|
1574
|
+
f
|
|
1575
|
+
);
|
|
1576
|
+
}
|
|
1557
1577
|
};
|
|
1558
1578
|
|
|
1559
1579
|
|
|
@@ -1720,6 +1740,24 @@ proto.Spic.AssetProto.UpdateRequest.prototype.setAssetType = function(value) {
|
|
|
1720
1740
|
};
|
|
1721
1741
|
|
|
1722
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
|
+
|
|
1723
1761
|
|
|
1724
1762
|
/**
|
|
1725
1763
|
* Oneof group definitions for this message. Each group defines the field
|
|
@@ -4164,200 +4202,6 @@ proto.Spic.ComponentProto.serializeBinaryToWriter = function(message, writer) {
|
|
|
4164
4202
|
};
|
|
4165
4203
|
|
|
4166
4204
|
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4171
|
-
/**
|
|
4172
|
-
* Creates an object representation of this proto.
|
|
4173
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4174
|
-
* Optional fields that are not set will be set to undefined.
|
|
4175
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4176
|
-
* For the list of reserved names please see:
|
|
4177
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4178
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4179
|
-
* JSPB instance for transitional soy proto support:
|
|
4180
|
-
* http://goto/soy-param-migration
|
|
4181
|
-
* @return {!Object}
|
|
4182
|
-
*/
|
|
4183
|
-
proto.Spic.ComponentProto.CallFeatureRequest.prototype.toObject = function(opt_includeInstance) {
|
|
4184
|
-
return proto.Spic.ComponentProto.CallFeatureRequest.toObject(opt_includeInstance, this);
|
|
4185
|
-
};
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
/**
|
|
4189
|
-
* Static version of the {@see toObject} method.
|
|
4190
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4191
|
-
* the JSPB instance for transitional soy proto support:
|
|
4192
|
-
* http://goto/soy-param-migration
|
|
4193
|
-
* @param {!proto.Spic.ComponentProto.CallFeatureRequest} msg The msg instance to transform.
|
|
4194
|
-
* @return {!Object}
|
|
4195
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4196
|
-
*/
|
|
4197
|
-
proto.Spic.ComponentProto.CallFeatureRequest.toObject = function(includeInstance, msg) {
|
|
4198
|
-
var f, obj = {
|
|
4199
|
-
componentId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4200
|
-
feature: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4201
|
-
argumentsMap: (f = msg.getArgumentsMap()) ? f.toObject(includeInstance, undefined) : []
|
|
4202
|
-
};
|
|
4203
|
-
|
|
4204
|
-
if (includeInstance) {
|
|
4205
|
-
obj.$jspbMessageInstance = msg;
|
|
4206
|
-
}
|
|
4207
|
-
return obj;
|
|
4208
|
-
};
|
|
4209
|
-
}
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
/**
|
|
4213
|
-
* Deserializes binary data (in protobuf wire format).
|
|
4214
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4215
|
-
* @return {!proto.Spic.ComponentProto.CallFeatureRequest}
|
|
4216
|
-
*/
|
|
4217
|
-
proto.Spic.ComponentProto.CallFeatureRequest.deserializeBinary = function(bytes) {
|
|
4218
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
4219
|
-
var msg = new proto.Spic.ComponentProto.CallFeatureRequest;
|
|
4220
|
-
return proto.Spic.ComponentProto.CallFeatureRequest.deserializeBinaryFromReader(msg, reader);
|
|
4221
|
-
};
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
/**
|
|
4225
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
4226
|
-
* given reader into the given message object.
|
|
4227
|
-
* @param {!proto.Spic.ComponentProto.CallFeatureRequest} msg The message object to deserialize into.
|
|
4228
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4229
|
-
* @return {!proto.Spic.ComponentProto.CallFeatureRequest}
|
|
4230
|
-
*/
|
|
4231
|
-
proto.Spic.ComponentProto.CallFeatureRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
4232
|
-
while (reader.nextField()) {
|
|
4233
|
-
if (reader.isEndGroup()) {
|
|
4234
|
-
break;
|
|
4235
|
-
}
|
|
4236
|
-
var field = reader.getFieldNumber();
|
|
4237
|
-
switch (field) {
|
|
4238
|
-
case 1:
|
|
4239
|
-
var value = /** @type {string} */ (reader.readString());
|
|
4240
|
-
msg.setComponentId(value);
|
|
4241
|
-
break;
|
|
4242
|
-
case 2:
|
|
4243
|
-
var value = /** @type {string} */ (reader.readString());
|
|
4244
|
-
msg.setFeature(value);
|
|
4245
|
-
break;
|
|
4246
|
-
case 3:
|
|
4247
|
-
var value = msg.getArgumentsMap();
|
|
4248
|
-
reader.readMessage(value, function(message, reader) {
|
|
4249
|
-
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
|
|
4250
|
-
});
|
|
4251
|
-
break;
|
|
4252
|
-
default:
|
|
4253
|
-
reader.skipField();
|
|
4254
|
-
break;
|
|
4255
|
-
}
|
|
4256
|
-
}
|
|
4257
|
-
return msg;
|
|
4258
|
-
};
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
/**
|
|
4262
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
4263
|
-
* @return {!Uint8Array}
|
|
4264
|
-
*/
|
|
4265
|
-
proto.Spic.ComponentProto.CallFeatureRequest.prototype.serializeBinary = function() {
|
|
4266
|
-
var writer = new jspb.BinaryWriter();
|
|
4267
|
-
proto.Spic.ComponentProto.CallFeatureRequest.serializeBinaryToWriter(this, writer);
|
|
4268
|
-
return writer.getResultBuffer();
|
|
4269
|
-
};
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
/**
|
|
4273
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
4274
|
-
* format), writing to the given BinaryWriter.
|
|
4275
|
-
* @param {!proto.Spic.ComponentProto.CallFeatureRequest} message
|
|
4276
|
-
* @param {!jspb.BinaryWriter} writer
|
|
4277
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4278
|
-
*/
|
|
4279
|
-
proto.Spic.ComponentProto.CallFeatureRequest.serializeBinaryToWriter = function(message, writer) {
|
|
4280
|
-
var f = undefined;
|
|
4281
|
-
f = message.getComponentId();
|
|
4282
|
-
if (f.length > 0) {
|
|
4283
|
-
writer.writeString(
|
|
4284
|
-
1,
|
|
4285
|
-
f
|
|
4286
|
-
);
|
|
4287
|
-
}
|
|
4288
|
-
f = message.getFeature();
|
|
4289
|
-
if (f.length > 0) {
|
|
4290
|
-
writer.writeString(
|
|
4291
|
-
2,
|
|
4292
|
-
f
|
|
4293
|
-
);
|
|
4294
|
-
}
|
|
4295
|
-
f = message.getArgumentsMap(true);
|
|
4296
|
-
if (f && f.getLength() > 0) {
|
|
4297
|
-
f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
|
4298
|
-
}
|
|
4299
|
-
};
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
/**
|
|
4303
|
-
* optional string component_id = 1;
|
|
4304
|
-
* @return {string}
|
|
4305
|
-
*/
|
|
4306
|
-
proto.Spic.ComponentProto.CallFeatureRequest.prototype.getComponentId = function() {
|
|
4307
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4308
|
-
};
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
/**
|
|
4312
|
-
* @param {string} value
|
|
4313
|
-
* @return {!proto.Spic.ComponentProto.CallFeatureRequest} returns this
|
|
4314
|
-
*/
|
|
4315
|
-
proto.Spic.ComponentProto.CallFeatureRequest.prototype.setComponentId = function(value) {
|
|
4316
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4317
|
-
};
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
/**
|
|
4321
|
-
* optional string feature = 2;
|
|
4322
|
-
* @return {string}
|
|
4323
|
-
*/
|
|
4324
|
-
proto.Spic.ComponentProto.CallFeatureRequest.prototype.getFeature = function() {
|
|
4325
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
4326
|
-
};
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
/**
|
|
4330
|
-
* @param {string} value
|
|
4331
|
-
* @return {!proto.Spic.ComponentProto.CallFeatureRequest} returns this
|
|
4332
|
-
*/
|
|
4333
|
-
proto.Spic.ComponentProto.CallFeatureRequest.prototype.setFeature = function(value) {
|
|
4334
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
4335
|
-
};
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
/**
|
|
4339
|
-
* map<string, string> arguments = 3;
|
|
4340
|
-
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
4341
|
-
* empty, instead returning `undefined`
|
|
4342
|
-
* @return {!jspb.Map<string,string>}
|
|
4343
|
-
*/
|
|
4344
|
-
proto.Spic.ComponentProto.CallFeatureRequest.prototype.getArgumentsMap = function(opt_noLazyCreate) {
|
|
4345
|
-
return /** @type {!jspb.Map<string,string>} */ (
|
|
4346
|
-
jspb.Message.getMapField(this, 3, opt_noLazyCreate,
|
|
4347
|
-
null));
|
|
4348
|
-
};
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
/**
|
|
4352
|
-
* Clears values from the map. The map will be non-null.
|
|
4353
|
-
* @return {!proto.Spic.ComponentProto.CallFeatureRequest} returns this
|
|
4354
|
-
*/
|
|
4355
|
-
proto.Spic.ComponentProto.CallFeatureRequest.prototype.clearArgumentsMap = function() {
|
|
4356
|
-
this.getArgumentsMap().clear();
|
|
4357
|
-
return this;
|
|
4358
|
-
};
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
4205
|
/**
|
|
4362
4206
|
* optional string id = 1;
|
|
4363
4207
|
* @return {string}
|
|
@@ -77,15 +77,6 @@ type AssetGRPCReplaceBattery = {
|
|
|
77
77
|
readonly responseType: typeof spic_asset_pb.AssetProto;
|
|
78
78
|
};
|
|
79
79
|
|
|
80
|
-
type AssetGRPCUpdateComponent = {
|
|
81
|
-
readonly methodName: string;
|
|
82
|
-
readonly service: typeof AssetGRPC;
|
|
83
|
-
readonly requestStream: false;
|
|
84
|
-
readonly responseStream: false;
|
|
85
|
-
readonly requestType: typeof spic_asset_pb.ComponentProto.CallFeatureRequest;
|
|
86
|
-
readonly responseType: typeof spic_asset_pb.ComponentProto;
|
|
87
|
-
};
|
|
88
|
-
|
|
89
80
|
export class AssetGRPC {
|
|
90
81
|
static readonly serviceName: string;
|
|
91
82
|
static readonly Create: AssetGRPCCreate;
|
|
@@ -96,7 +87,6 @@ export class AssetGRPC {
|
|
|
96
87
|
static readonly Search: AssetGRPCSearch;
|
|
97
88
|
static readonly LocationSearch: AssetGRPCLocationSearch;
|
|
98
89
|
static readonly ReplaceBattery: AssetGRPCReplaceBattery;
|
|
99
|
-
static readonly UpdateComponent: AssetGRPCUpdateComponent;
|
|
100
90
|
}
|
|
101
91
|
|
|
102
92
|
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
@@ -203,14 +193,5 @@ export class AssetGRPCClient {
|
|
|
203
193
|
requestMessage: spic_asset_pb.AssetProto.ReplaceBatteryRequest,
|
|
204
194
|
callback: (error: ServiceError|null, responseMessage: spic_asset_pb.AssetProto|null) => void
|
|
205
195
|
): UnaryResponse;
|
|
206
|
-
updateComponent(
|
|
207
|
-
requestMessage: spic_asset_pb.ComponentProto.CallFeatureRequest,
|
|
208
|
-
metadata: grpc.Metadata,
|
|
209
|
-
callback: (error: ServiceError|null, responseMessage: spic_asset_pb.ComponentProto|null) => void
|
|
210
|
-
): UnaryResponse;
|
|
211
|
-
updateComponent(
|
|
212
|
-
requestMessage: spic_asset_pb.ComponentProto.CallFeatureRequest,
|
|
213
|
-
callback: (error: ServiceError|null, responseMessage: spic_asset_pb.ComponentProto|null) => void
|
|
214
|
-
): UnaryResponse;
|
|
215
196
|
}
|
|
216
197
|
|
package/spic.asset_pb_service.js
CHANGED
|
@@ -83,15 +83,6 @@ AssetGRPC.ReplaceBattery = {
|
|
|
83
83
|
responseType: spic_asset_pb.AssetProto
|
|
84
84
|
};
|
|
85
85
|
|
|
86
|
-
AssetGRPC.UpdateComponent = {
|
|
87
|
-
methodName: "UpdateComponent",
|
|
88
|
-
service: AssetGRPC,
|
|
89
|
-
requestStream: false,
|
|
90
|
-
responseStream: false,
|
|
91
|
-
requestType: spic_asset_pb.ComponentProto.CallFeatureRequest,
|
|
92
|
-
responseType: spic_asset_pb.ComponentProto
|
|
93
|
-
};
|
|
94
|
-
|
|
95
86
|
exports.AssetGRPC = AssetGRPC;
|
|
96
87
|
|
|
97
88
|
function AssetGRPCClient(serviceHost, options) {
|
|
@@ -347,36 +338,5 @@ AssetGRPCClient.prototype.replaceBattery = function replaceBattery(requestMessag
|
|
|
347
338
|
};
|
|
348
339
|
};
|
|
349
340
|
|
|
350
|
-
AssetGRPCClient.prototype.updateComponent = function updateComponent(requestMessage, metadata, callback) {
|
|
351
|
-
if (arguments.length === 2) {
|
|
352
|
-
callback = arguments[1];
|
|
353
|
-
}
|
|
354
|
-
var client = grpc.unary(AssetGRPC.UpdateComponent, {
|
|
355
|
-
request: requestMessage,
|
|
356
|
-
host: this.serviceHost,
|
|
357
|
-
metadata: metadata,
|
|
358
|
-
transport: this.options.transport,
|
|
359
|
-
debug: this.options.debug,
|
|
360
|
-
onEnd: function (response) {
|
|
361
|
-
if (callback) {
|
|
362
|
-
if (response.status !== grpc.Code.OK) {
|
|
363
|
-
var err = new Error(response.statusMessage);
|
|
364
|
-
err.code = response.status;
|
|
365
|
-
err.metadata = response.trailers;
|
|
366
|
-
callback(err, null);
|
|
367
|
-
} else {
|
|
368
|
-
callback(null, response.message);
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
});
|
|
373
|
-
return {
|
|
374
|
-
cancel: function () {
|
|
375
|
-
callback = null;
|
|
376
|
-
client.close();
|
|
377
|
-
}
|
|
378
|
-
};
|
|
379
|
-
};
|
|
380
|
-
|
|
381
341
|
exports.AssetGRPCClient = AssetGRPCClient;
|
|
382
342
|
|