@aceplus/smartace-api 3.7.0-alpha.11 → 3.7.0-alpha.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/platform.client_pb.d.ts +22 -0
- package/platform.client_pb.js +182 -0
- package/platform.client_pb_service.d.ts +19 -0
- package/platform.client_pb_service.js +40 -0
- package/platform.group_pb.d.ts +57 -0
- package/platform.group_pb.js +447 -0
- package/platform.group_pb_service.d.ts +19 -0
- package/platform.group_pb_service.js +40 -0
- package/spic.asset_pb.d.ts +38 -0
- package/spic.asset_pb.js +303 -0
- package/spic.asset_pb_service.d.ts +19 -0
- package/spic.asset_pb_service.js +40 -0
package/platform.group_pb.js
CHANGED
|
@@ -25,10 +25,14 @@ var google_api_annotations_pb = require('./google/api/annotations_pb.js');
|
|
|
25
25
|
goog.object.extend(proto, google_api_annotations_pb);
|
|
26
26
|
var platform_pagination_pb = require('./platform.pagination_pb.js');
|
|
27
27
|
goog.object.extend(proto, platform_pagination_pb);
|
|
28
|
+
var spic_cabinet_pb = require('./spic.cabinet_pb.js');
|
|
29
|
+
goog.object.extend(proto, spic_cabinet_pb);
|
|
28
30
|
goog.exportSymbol('proto.Platform.GroupProto', null, global);
|
|
29
31
|
goog.exportSymbol('proto.Platform.GroupProto.CreateRequest', null, global);
|
|
30
32
|
goog.exportSymbol('proto.Platform.GroupProto.DeleteReply', null, global);
|
|
31
33
|
goog.exportSymbol('proto.Platform.GroupProto.DeleteRequest', null, global);
|
|
34
|
+
goog.exportSymbol('proto.Platform.GroupProto.GetSpicsRequest', null, global);
|
|
35
|
+
goog.exportSymbol('proto.Platform.GroupProto.GetSpicsResponse', null, global);
|
|
32
36
|
goog.exportSymbol('proto.Platform.GroupProto.RetrieveRequest', null, global);
|
|
33
37
|
goog.exportSymbol('proto.Platform.GroupProto.SearchReply', null, global);
|
|
34
38
|
goog.exportSymbol('proto.Platform.GroupProto.SearchRequest', null, global);
|
|
@@ -201,6 +205,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
201
205
|
*/
|
|
202
206
|
proto.Platform.GroupProto.SearchRequest.displayName = 'proto.Platform.GroupProto.SearchRequest';
|
|
203
207
|
}
|
|
208
|
+
/**
|
|
209
|
+
* Generated by JsPbCodeGenerator.
|
|
210
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
211
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
212
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
213
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
214
|
+
* valid.
|
|
215
|
+
* @extends {jspb.Message}
|
|
216
|
+
* @constructor
|
|
217
|
+
*/
|
|
218
|
+
proto.Platform.GroupProto.GetSpicsRequest = function(opt_data) {
|
|
219
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
220
|
+
};
|
|
221
|
+
goog.inherits(proto.Platform.GroupProto.GetSpicsRequest, jspb.Message);
|
|
222
|
+
if (goog.DEBUG && !COMPILED) {
|
|
223
|
+
/**
|
|
224
|
+
* @public
|
|
225
|
+
* @override
|
|
226
|
+
*/
|
|
227
|
+
proto.Platform.GroupProto.GetSpicsRequest.displayName = 'proto.Platform.GroupProto.GetSpicsRequest';
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Generated by JsPbCodeGenerator.
|
|
231
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
232
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
233
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
234
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
235
|
+
* valid.
|
|
236
|
+
* @extends {jspb.Message}
|
|
237
|
+
* @constructor
|
|
238
|
+
*/
|
|
239
|
+
proto.Platform.GroupProto.GetSpicsResponse = function(opt_data) {
|
|
240
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.Platform.GroupProto.GetSpicsResponse.repeatedFields_, null);
|
|
241
|
+
};
|
|
242
|
+
goog.inherits(proto.Platform.GroupProto.GetSpicsResponse, jspb.Message);
|
|
243
|
+
if (goog.DEBUG && !COMPILED) {
|
|
244
|
+
/**
|
|
245
|
+
* @public
|
|
246
|
+
* @override
|
|
247
|
+
*/
|
|
248
|
+
proto.Platform.GroupProto.GetSpicsResponse.displayName = 'proto.Platform.GroupProto.GetSpicsResponse';
|
|
249
|
+
}
|
|
204
250
|
|
|
205
251
|
|
|
206
252
|
|
|
@@ -1437,6 +1483,407 @@ proto.Platform.GroupProto.SearchRequest.prototype.setCount = function(value) {
|
|
|
1437
1483
|
};
|
|
1438
1484
|
|
|
1439
1485
|
|
|
1486
|
+
|
|
1487
|
+
|
|
1488
|
+
|
|
1489
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1490
|
+
/**
|
|
1491
|
+
* Creates an object representation of this proto.
|
|
1492
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1493
|
+
* Optional fields that are not set will be set to undefined.
|
|
1494
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1495
|
+
* For the list of reserved names please see:
|
|
1496
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1497
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1498
|
+
* JSPB instance for transitional soy proto support:
|
|
1499
|
+
* http://goto/soy-param-migration
|
|
1500
|
+
* @return {!Object}
|
|
1501
|
+
*/
|
|
1502
|
+
proto.Platform.GroupProto.GetSpicsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1503
|
+
return proto.Platform.GroupProto.GetSpicsRequest.toObject(opt_includeInstance, this);
|
|
1504
|
+
};
|
|
1505
|
+
|
|
1506
|
+
|
|
1507
|
+
/**
|
|
1508
|
+
* Static version of the {@see toObject} method.
|
|
1509
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1510
|
+
* the JSPB instance for transitional soy proto support:
|
|
1511
|
+
* http://goto/soy-param-migration
|
|
1512
|
+
* @param {!proto.Platform.GroupProto.GetSpicsRequest} msg The msg instance to transform.
|
|
1513
|
+
* @return {!Object}
|
|
1514
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1515
|
+
*/
|
|
1516
|
+
proto.Platform.GroupProto.GetSpicsRequest.toObject = function(includeInstance, msg) {
|
|
1517
|
+
var f, obj = {
|
|
1518
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
1519
|
+
page: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
1520
|
+
count: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
1521
|
+
};
|
|
1522
|
+
|
|
1523
|
+
if (includeInstance) {
|
|
1524
|
+
obj.$jspbMessageInstance = msg;
|
|
1525
|
+
}
|
|
1526
|
+
return obj;
|
|
1527
|
+
};
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
|
|
1531
|
+
/**
|
|
1532
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1533
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1534
|
+
* @return {!proto.Platform.GroupProto.GetSpicsRequest}
|
|
1535
|
+
*/
|
|
1536
|
+
proto.Platform.GroupProto.GetSpicsRequest.deserializeBinary = function(bytes) {
|
|
1537
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1538
|
+
var msg = new proto.Platform.GroupProto.GetSpicsRequest;
|
|
1539
|
+
return proto.Platform.GroupProto.GetSpicsRequest.deserializeBinaryFromReader(msg, reader);
|
|
1540
|
+
};
|
|
1541
|
+
|
|
1542
|
+
|
|
1543
|
+
/**
|
|
1544
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1545
|
+
* given reader into the given message object.
|
|
1546
|
+
* @param {!proto.Platform.GroupProto.GetSpicsRequest} msg The message object to deserialize into.
|
|
1547
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1548
|
+
* @return {!proto.Platform.GroupProto.GetSpicsRequest}
|
|
1549
|
+
*/
|
|
1550
|
+
proto.Platform.GroupProto.GetSpicsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1551
|
+
while (reader.nextField()) {
|
|
1552
|
+
if (reader.isEndGroup()) {
|
|
1553
|
+
break;
|
|
1554
|
+
}
|
|
1555
|
+
var field = reader.getFieldNumber();
|
|
1556
|
+
switch (field) {
|
|
1557
|
+
case 1:
|
|
1558
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
1559
|
+
msg.setUserId(value);
|
|
1560
|
+
break;
|
|
1561
|
+
case 2:
|
|
1562
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1563
|
+
msg.setPage(value);
|
|
1564
|
+
break;
|
|
1565
|
+
case 3:
|
|
1566
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1567
|
+
msg.setCount(value);
|
|
1568
|
+
break;
|
|
1569
|
+
default:
|
|
1570
|
+
reader.skipField();
|
|
1571
|
+
break;
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
return msg;
|
|
1575
|
+
};
|
|
1576
|
+
|
|
1577
|
+
|
|
1578
|
+
/**
|
|
1579
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1580
|
+
* @return {!Uint8Array}
|
|
1581
|
+
*/
|
|
1582
|
+
proto.Platform.GroupProto.GetSpicsRequest.prototype.serializeBinary = function() {
|
|
1583
|
+
var writer = new jspb.BinaryWriter();
|
|
1584
|
+
proto.Platform.GroupProto.GetSpicsRequest.serializeBinaryToWriter(this, writer);
|
|
1585
|
+
return writer.getResultBuffer();
|
|
1586
|
+
};
|
|
1587
|
+
|
|
1588
|
+
|
|
1589
|
+
/**
|
|
1590
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1591
|
+
* format), writing to the given BinaryWriter.
|
|
1592
|
+
* @param {!proto.Platform.GroupProto.GetSpicsRequest} message
|
|
1593
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1594
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1595
|
+
*/
|
|
1596
|
+
proto.Platform.GroupProto.GetSpicsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1597
|
+
var f = undefined;
|
|
1598
|
+
f = message.getUserId();
|
|
1599
|
+
if (f !== 0) {
|
|
1600
|
+
writer.writeInt64(
|
|
1601
|
+
1,
|
|
1602
|
+
f
|
|
1603
|
+
);
|
|
1604
|
+
}
|
|
1605
|
+
f = message.getPage();
|
|
1606
|
+
if (f !== 0) {
|
|
1607
|
+
writer.writeInt32(
|
|
1608
|
+
2,
|
|
1609
|
+
f
|
|
1610
|
+
);
|
|
1611
|
+
}
|
|
1612
|
+
f = message.getCount();
|
|
1613
|
+
if (f !== 0) {
|
|
1614
|
+
writer.writeInt32(
|
|
1615
|
+
3,
|
|
1616
|
+
f
|
|
1617
|
+
);
|
|
1618
|
+
}
|
|
1619
|
+
};
|
|
1620
|
+
|
|
1621
|
+
|
|
1622
|
+
/**
|
|
1623
|
+
* optional int64 user_id = 1;
|
|
1624
|
+
* @return {number}
|
|
1625
|
+
*/
|
|
1626
|
+
proto.Platform.GroupProto.GetSpicsRequest.prototype.getUserId = function() {
|
|
1627
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
1628
|
+
};
|
|
1629
|
+
|
|
1630
|
+
|
|
1631
|
+
/**
|
|
1632
|
+
* @param {number} value
|
|
1633
|
+
* @return {!proto.Platform.GroupProto.GetSpicsRequest} returns this
|
|
1634
|
+
*/
|
|
1635
|
+
proto.Platform.GroupProto.GetSpicsRequest.prototype.setUserId = function(value) {
|
|
1636
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
1637
|
+
};
|
|
1638
|
+
|
|
1639
|
+
|
|
1640
|
+
/**
|
|
1641
|
+
* optional int32 page = 2;
|
|
1642
|
+
* @return {number}
|
|
1643
|
+
*/
|
|
1644
|
+
proto.Platform.GroupProto.GetSpicsRequest.prototype.getPage = function() {
|
|
1645
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1646
|
+
};
|
|
1647
|
+
|
|
1648
|
+
|
|
1649
|
+
/**
|
|
1650
|
+
* @param {number} value
|
|
1651
|
+
* @return {!proto.Platform.GroupProto.GetSpicsRequest} returns this
|
|
1652
|
+
*/
|
|
1653
|
+
proto.Platform.GroupProto.GetSpicsRequest.prototype.setPage = function(value) {
|
|
1654
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
1655
|
+
};
|
|
1656
|
+
|
|
1657
|
+
|
|
1658
|
+
/**
|
|
1659
|
+
* optional int32 count = 3;
|
|
1660
|
+
* @return {number}
|
|
1661
|
+
*/
|
|
1662
|
+
proto.Platform.GroupProto.GetSpicsRequest.prototype.getCount = function() {
|
|
1663
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
1664
|
+
};
|
|
1665
|
+
|
|
1666
|
+
|
|
1667
|
+
/**
|
|
1668
|
+
* @param {number} value
|
|
1669
|
+
* @return {!proto.Platform.GroupProto.GetSpicsRequest} returns this
|
|
1670
|
+
*/
|
|
1671
|
+
proto.Platform.GroupProto.GetSpicsRequest.prototype.setCount = function(value) {
|
|
1672
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
1673
|
+
};
|
|
1674
|
+
|
|
1675
|
+
|
|
1676
|
+
|
|
1677
|
+
/**
|
|
1678
|
+
* List of repeated fields within this message type.
|
|
1679
|
+
* @private {!Array<number>}
|
|
1680
|
+
* @const
|
|
1681
|
+
*/
|
|
1682
|
+
proto.Platform.GroupProto.GetSpicsResponse.repeatedFields_ = [1];
|
|
1683
|
+
|
|
1684
|
+
|
|
1685
|
+
|
|
1686
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1687
|
+
/**
|
|
1688
|
+
* Creates an object representation of this proto.
|
|
1689
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1690
|
+
* Optional fields that are not set will be set to undefined.
|
|
1691
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1692
|
+
* For the list of reserved names please see:
|
|
1693
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1694
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1695
|
+
* JSPB instance for transitional soy proto support:
|
|
1696
|
+
* http://goto/soy-param-migration
|
|
1697
|
+
* @return {!Object}
|
|
1698
|
+
*/
|
|
1699
|
+
proto.Platform.GroupProto.GetSpicsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1700
|
+
return proto.Platform.GroupProto.GetSpicsResponse.toObject(opt_includeInstance, this);
|
|
1701
|
+
};
|
|
1702
|
+
|
|
1703
|
+
|
|
1704
|
+
/**
|
|
1705
|
+
* Static version of the {@see toObject} method.
|
|
1706
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1707
|
+
* the JSPB instance for transitional soy proto support:
|
|
1708
|
+
* http://goto/soy-param-migration
|
|
1709
|
+
* @param {!proto.Platform.GroupProto.GetSpicsResponse} msg The msg instance to transform.
|
|
1710
|
+
* @return {!Object}
|
|
1711
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1712
|
+
*/
|
|
1713
|
+
proto.Platform.GroupProto.GetSpicsResponse.toObject = function(includeInstance, msg) {
|
|
1714
|
+
var f, obj = {
|
|
1715
|
+
cabinetsList: jspb.Message.toObjectList(msg.getCabinetsList(),
|
|
1716
|
+
spic_cabinet_pb.CabinetProto.toObject, includeInstance),
|
|
1717
|
+
pagination: (f = msg.getPagination()) && platform_pagination_pb.PaginationProto.toObject(includeInstance, f)
|
|
1718
|
+
};
|
|
1719
|
+
|
|
1720
|
+
if (includeInstance) {
|
|
1721
|
+
obj.$jspbMessageInstance = msg;
|
|
1722
|
+
}
|
|
1723
|
+
return obj;
|
|
1724
|
+
};
|
|
1725
|
+
}
|
|
1726
|
+
|
|
1727
|
+
|
|
1728
|
+
/**
|
|
1729
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1730
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1731
|
+
* @return {!proto.Platform.GroupProto.GetSpicsResponse}
|
|
1732
|
+
*/
|
|
1733
|
+
proto.Platform.GroupProto.GetSpicsResponse.deserializeBinary = function(bytes) {
|
|
1734
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1735
|
+
var msg = new proto.Platform.GroupProto.GetSpicsResponse;
|
|
1736
|
+
return proto.Platform.GroupProto.GetSpicsResponse.deserializeBinaryFromReader(msg, reader);
|
|
1737
|
+
};
|
|
1738
|
+
|
|
1739
|
+
|
|
1740
|
+
/**
|
|
1741
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1742
|
+
* given reader into the given message object.
|
|
1743
|
+
* @param {!proto.Platform.GroupProto.GetSpicsResponse} msg The message object to deserialize into.
|
|
1744
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1745
|
+
* @return {!proto.Platform.GroupProto.GetSpicsResponse}
|
|
1746
|
+
*/
|
|
1747
|
+
proto.Platform.GroupProto.GetSpicsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1748
|
+
while (reader.nextField()) {
|
|
1749
|
+
if (reader.isEndGroup()) {
|
|
1750
|
+
break;
|
|
1751
|
+
}
|
|
1752
|
+
var field = reader.getFieldNumber();
|
|
1753
|
+
switch (field) {
|
|
1754
|
+
case 1:
|
|
1755
|
+
var value = new spic_cabinet_pb.CabinetProto;
|
|
1756
|
+
reader.readMessage(value,spic_cabinet_pb.CabinetProto.deserializeBinaryFromReader);
|
|
1757
|
+
msg.addCabinets(value);
|
|
1758
|
+
break;
|
|
1759
|
+
case 2:
|
|
1760
|
+
var value = new platform_pagination_pb.PaginationProto;
|
|
1761
|
+
reader.readMessage(value,platform_pagination_pb.PaginationProto.deserializeBinaryFromReader);
|
|
1762
|
+
msg.setPagination(value);
|
|
1763
|
+
break;
|
|
1764
|
+
default:
|
|
1765
|
+
reader.skipField();
|
|
1766
|
+
break;
|
|
1767
|
+
}
|
|
1768
|
+
}
|
|
1769
|
+
return msg;
|
|
1770
|
+
};
|
|
1771
|
+
|
|
1772
|
+
|
|
1773
|
+
/**
|
|
1774
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1775
|
+
* @return {!Uint8Array}
|
|
1776
|
+
*/
|
|
1777
|
+
proto.Platform.GroupProto.GetSpicsResponse.prototype.serializeBinary = function() {
|
|
1778
|
+
var writer = new jspb.BinaryWriter();
|
|
1779
|
+
proto.Platform.GroupProto.GetSpicsResponse.serializeBinaryToWriter(this, writer);
|
|
1780
|
+
return writer.getResultBuffer();
|
|
1781
|
+
};
|
|
1782
|
+
|
|
1783
|
+
|
|
1784
|
+
/**
|
|
1785
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1786
|
+
* format), writing to the given BinaryWriter.
|
|
1787
|
+
* @param {!proto.Platform.GroupProto.GetSpicsResponse} message
|
|
1788
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1789
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1790
|
+
*/
|
|
1791
|
+
proto.Platform.GroupProto.GetSpicsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1792
|
+
var f = undefined;
|
|
1793
|
+
f = message.getCabinetsList();
|
|
1794
|
+
if (f.length > 0) {
|
|
1795
|
+
writer.writeRepeatedMessage(
|
|
1796
|
+
1,
|
|
1797
|
+
f,
|
|
1798
|
+
spic_cabinet_pb.CabinetProto.serializeBinaryToWriter
|
|
1799
|
+
);
|
|
1800
|
+
}
|
|
1801
|
+
f = message.getPagination();
|
|
1802
|
+
if (f != null) {
|
|
1803
|
+
writer.writeMessage(
|
|
1804
|
+
2,
|
|
1805
|
+
f,
|
|
1806
|
+
platform_pagination_pb.PaginationProto.serializeBinaryToWriter
|
|
1807
|
+
);
|
|
1808
|
+
}
|
|
1809
|
+
};
|
|
1810
|
+
|
|
1811
|
+
|
|
1812
|
+
/**
|
|
1813
|
+
* repeated Spic.CabinetProto cabinets = 1;
|
|
1814
|
+
* @return {!Array<!proto.Spic.CabinetProto>}
|
|
1815
|
+
*/
|
|
1816
|
+
proto.Platform.GroupProto.GetSpicsResponse.prototype.getCabinetsList = function() {
|
|
1817
|
+
return /** @type{!Array<!proto.Spic.CabinetProto>} */ (
|
|
1818
|
+
jspb.Message.getRepeatedWrapperField(this, spic_cabinet_pb.CabinetProto, 1));
|
|
1819
|
+
};
|
|
1820
|
+
|
|
1821
|
+
|
|
1822
|
+
/**
|
|
1823
|
+
* @param {!Array<!proto.Spic.CabinetProto>} value
|
|
1824
|
+
* @return {!proto.Platform.GroupProto.GetSpicsResponse} returns this
|
|
1825
|
+
*/
|
|
1826
|
+
proto.Platform.GroupProto.GetSpicsResponse.prototype.setCabinetsList = function(value) {
|
|
1827
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
1828
|
+
};
|
|
1829
|
+
|
|
1830
|
+
|
|
1831
|
+
/**
|
|
1832
|
+
* @param {!proto.Spic.CabinetProto=} opt_value
|
|
1833
|
+
* @param {number=} opt_index
|
|
1834
|
+
* @return {!proto.Spic.CabinetProto}
|
|
1835
|
+
*/
|
|
1836
|
+
proto.Platform.GroupProto.GetSpicsResponse.prototype.addCabinets = function(opt_value, opt_index) {
|
|
1837
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Spic.CabinetProto, opt_index);
|
|
1838
|
+
};
|
|
1839
|
+
|
|
1840
|
+
|
|
1841
|
+
/**
|
|
1842
|
+
* Clears the list making it empty but non-null.
|
|
1843
|
+
* @return {!proto.Platform.GroupProto.GetSpicsResponse} returns this
|
|
1844
|
+
*/
|
|
1845
|
+
proto.Platform.GroupProto.GetSpicsResponse.prototype.clearCabinetsList = function() {
|
|
1846
|
+
return this.setCabinetsList([]);
|
|
1847
|
+
};
|
|
1848
|
+
|
|
1849
|
+
|
|
1850
|
+
/**
|
|
1851
|
+
* optional PaginationProto pagination = 2;
|
|
1852
|
+
* @return {?proto.Platform.PaginationProto}
|
|
1853
|
+
*/
|
|
1854
|
+
proto.Platform.GroupProto.GetSpicsResponse.prototype.getPagination = function() {
|
|
1855
|
+
return /** @type{?proto.Platform.PaginationProto} */ (
|
|
1856
|
+
jspb.Message.getWrapperField(this, platform_pagination_pb.PaginationProto, 2));
|
|
1857
|
+
};
|
|
1858
|
+
|
|
1859
|
+
|
|
1860
|
+
/**
|
|
1861
|
+
* @param {?proto.Platform.PaginationProto|undefined} value
|
|
1862
|
+
* @return {!proto.Platform.GroupProto.GetSpicsResponse} returns this
|
|
1863
|
+
*/
|
|
1864
|
+
proto.Platform.GroupProto.GetSpicsResponse.prototype.setPagination = function(value) {
|
|
1865
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
1866
|
+
};
|
|
1867
|
+
|
|
1868
|
+
|
|
1869
|
+
/**
|
|
1870
|
+
* Clears the message field making it undefined.
|
|
1871
|
+
* @return {!proto.Platform.GroupProto.GetSpicsResponse} returns this
|
|
1872
|
+
*/
|
|
1873
|
+
proto.Platform.GroupProto.GetSpicsResponse.prototype.clearPagination = function() {
|
|
1874
|
+
return this.setPagination(undefined);
|
|
1875
|
+
};
|
|
1876
|
+
|
|
1877
|
+
|
|
1878
|
+
/**
|
|
1879
|
+
* Returns whether this field is set.
|
|
1880
|
+
* @return {boolean}
|
|
1881
|
+
*/
|
|
1882
|
+
proto.Platform.GroupProto.GetSpicsResponse.prototype.hasPagination = function() {
|
|
1883
|
+
return jspb.Message.getField(this, 2) != null;
|
|
1884
|
+
};
|
|
1885
|
+
|
|
1886
|
+
|
|
1440
1887
|
/**
|
|
1441
1888
|
* optional string id = 1;
|
|
1442
1889
|
* @return {string}
|
|
@@ -49,6 +49,15 @@ type GroupGRPCSearch = {
|
|
|
49
49
|
readonly responseType: typeof platform_group_pb.GroupProto.SearchReply;
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
+
type GroupGRPCGetSpics = {
|
|
53
|
+
readonly methodName: string;
|
|
54
|
+
readonly service: typeof GroupGRPC;
|
|
55
|
+
readonly requestStream: false;
|
|
56
|
+
readonly responseStream: false;
|
|
57
|
+
readonly requestType: typeof platform_group_pb.GroupProto.GetSpicsRequest;
|
|
58
|
+
readonly responseType: typeof platform_group_pb.GroupProto.GetSpicsResponse;
|
|
59
|
+
};
|
|
60
|
+
|
|
52
61
|
export class GroupGRPC {
|
|
53
62
|
static readonly serviceName: string;
|
|
54
63
|
static readonly Create: GroupGRPCCreate;
|
|
@@ -56,6 +65,7 @@ export class GroupGRPC {
|
|
|
56
65
|
static readonly Update: GroupGRPCUpdate;
|
|
57
66
|
static readonly Delete: GroupGRPCDelete;
|
|
58
67
|
static readonly Search: GroupGRPCSearch;
|
|
68
|
+
static readonly GetSpics: GroupGRPCGetSpics;
|
|
59
69
|
}
|
|
60
70
|
|
|
61
71
|
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
@@ -135,5 +145,14 @@ export class GroupGRPCClient {
|
|
|
135
145
|
requestMessage: platform_group_pb.GroupProto.SearchRequest,
|
|
136
146
|
callback: (error: ServiceError|null, responseMessage: platform_group_pb.GroupProto.SearchReply|null) => void
|
|
137
147
|
): UnaryResponse;
|
|
148
|
+
getSpics(
|
|
149
|
+
requestMessage: platform_group_pb.GroupProto.GetSpicsRequest,
|
|
150
|
+
metadata: grpc.Metadata,
|
|
151
|
+
callback: (error: ServiceError|null, responseMessage: platform_group_pb.GroupProto.GetSpicsResponse|null) => void
|
|
152
|
+
): UnaryResponse;
|
|
153
|
+
getSpics(
|
|
154
|
+
requestMessage: platform_group_pb.GroupProto.GetSpicsRequest,
|
|
155
|
+
callback: (error: ServiceError|null, responseMessage: platform_group_pb.GroupProto.GetSpicsResponse|null) => void
|
|
156
|
+
): UnaryResponse;
|
|
138
157
|
}
|
|
139
158
|
|
|
@@ -55,6 +55,15 @@ GroupGRPC.Search = {
|
|
|
55
55
|
responseType: platform_group_pb.GroupProto.SearchReply
|
|
56
56
|
};
|
|
57
57
|
|
|
58
|
+
GroupGRPC.GetSpics = {
|
|
59
|
+
methodName: "GetSpics",
|
|
60
|
+
service: GroupGRPC,
|
|
61
|
+
requestStream: false,
|
|
62
|
+
responseStream: false,
|
|
63
|
+
requestType: platform_group_pb.GroupProto.GetSpicsRequest,
|
|
64
|
+
responseType: platform_group_pb.GroupProto.GetSpicsResponse
|
|
65
|
+
};
|
|
66
|
+
|
|
58
67
|
exports.GroupGRPC = GroupGRPC;
|
|
59
68
|
|
|
60
69
|
function GroupGRPCClient(serviceHost, options) {
|
|
@@ -217,5 +226,36 @@ GroupGRPCClient.prototype.search = function search(requestMessage, metadata, cal
|
|
|
217
226
|
};
|
|
218
227
|
};
|
|
219
228
|
|
|
229
|
+
GroupGRPCClient.prototype.getSpics = function getSpics(requestMessage, metadata, callback) {
|
|
230
|
+
if (arguments.length === 2) {
|
|
231
|
+
callback = arguments[1];
|
|
232
|
+
}
|
|
233
|
+
var client = grpc.unary(GroupGRPC.GetSpics, {
|
|
234
|
+
request: requestMessage,
|
|
235
|
+
host: this.serviceHost,
|
|
236
|
+
metadata: metadata,
|
|
237
|
+
transport: this.options.transport,
|
|
238
|
+
debug: this.options.debug,
|
|
239
|
+
onEnd: function (response) {
|
|
240
|
+
if (callback) {
|
|
241
|
+
if (response.status !== grpc.Code.OK) {
|
|
242
|
+
var err = new Error(response.statusMessage);
|
|
243
|
+
err.code = response.status;
|
|
244
|
+
err.metadata = response.trailers;
|
|
245
|
+
callback(err, null);
|
|
246
|
+
} else {
|
|
247
|
+
callback(null, response.message);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
});
|
|
252
|
+
return {
|
|
253
|
+
cancel: function () {
|
|
254
|
+
callback = null;
|
|
255
|
+
client.close();
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
|
|
220
260
|
exports.GroupGRPCClient = GroupGRPCClient;
|
|
221
261
|
|
package/spic.asset_pb.d.ts
CHANGED
|
@@ -508,6 +508,44 @@ export namespace AssetProto {
|
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
510
|
|
|
511
|
+
export class AssetTypeRequest extends jspb.Message {
|
|
512
|
+
serializeBinary(): Uint8Array;
|
|
513
|
+
toObject(includeInstance?: boolean): AssetTypeRequest.AsObject;
|
|
514
|
+
static toObject(includeInstance: boolean, msg: AssetTypeRequest): AssetTypeRequest.AsObject;
|
|
515
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
516
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
517
|
+
static serializeBinaryToWriter(message: AssetTypeRequest, writer: jspb.BinaryWriter): void;
|
|
518
|
+
static deserializeBinary(bytes: Uint8Array): AssetTypeRequest;
|
|
519
|
+
static deserializeBinaryFromReader(message: AssetTypeRequest, reader: jspb.BinaryReader): AssetTypeRequest;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
export namespace AssetTypeRequest {
|
|
523
|
+
export type AsObject = {
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
export class AssetTypeResponse extends jspb.Message {
|
|
528
|
+
clearTypesList(): void;
|
|
529
|
+
getTypesList(): Array<AssetProto.AssetTypeMap[keyof AssetProto.AssetTypeMap]>;
|
|
530
|
+
setTypesList(value: Array<AssetProto.AssetTypeMap[keyof AssetProto.AssetTypeMap]>): void;
|
|
531
|
+
addTypes(value: AssetProto.AssetTypeMap[keyof AssetProto.AssetTypeMap], index?: number): AssetProto.AssetTypeMap[keyof AssetProto.AssetTypeMap];
|
|
532
|
+
|
|
533
|
+
serializeBinary(): Uint8Array;
|
|
534
|
+
toObject(includeInstance?: boolean): AssetTypeResponse.AsObject;
|
|
535
|
+
static toObject(includeInstance: boolean, msg: AssetTypeResponse): AssetTypeResponse.AsObject;
|
|
536
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
537
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
538
|
+
static serializeBinaryToWriter(message: AssetTypeResponse, writer: jspb.BinaryWriter): void;
|
|
539
|
+
static deserializeBinary(bytes: Uint8Array): AssetTypeResponse;
|
|
540
|
+
static deserializeBinaryFromReader(message: AssetTypeResponse, reader: jspb.BinaryReader): AssetTypeResponse;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
export namespace AssetTypeResponse {
|
|
544
|
+
export type AsObject = {
|
|
545
|
+
typesList: Array<AssetProto.AssetTypeMap[keyof AssetProto.AssetTypeMap]>,
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
|
|
511
549
|
export interface BatteryStatusMap {
|
|
512
550
|
UNKOWWN: 0;
|
|
513
551
|
OK: 1;
|