@aceplus/smartace-api 3.7.0-alpha.11 → 3.7.0-alpha.12

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 CHANGED
@@ -5,7 +5,7 @@
5
5
  "grpc-web": "^1.4.2",
6
6
  "ts-protoc-gen": "^0.15.0"
7
7
  },
8
- "version": "3.7.0-alpha.11",
8
+ "version": "3.7.0-alpha.12",
9
9
  "description": "Generated proto files.",
10
10
  "author": "TKF",
11
11
  "files": [
@@ -4,6 +4,7 @@
4
4
  import * as jspb from "google-protobuf";
5
5
  import * as google_api_annotations_pb from "./google/api/annotations_pb";
6
6
  import * as platform_pagination_pb from "./platform.pagination_pb";
7
+ import * as spic_cabinet_pb from "./spic.cabinet_pb";
7
8
 
8
9
  export class GroupProto extends jspb.Message {
9
10
  getId(): string;
@@ -191,5 +192,61 @@ export namespace GroupProto {
191
192
  count: number,
192
193
  }
193
194
  }
195
+
196
+ export class GetSpicsRequest extends jspb.Message {
197
+ getUserId(): number;
198
+ setUserId(value: number): void;
199
+
200
+ getPage(): number;
201
+ setPage(value: number): void;
202
+
203
+ getCount(): number;
204
+ setCount(value: number): void;
205
+
206
+ serializeBinary(): Uint8Array;
207
+ toObject(includeInstance?: boolean): GetSpicsRequest.AsObject;
208
+ static toObject(includeInstance: boolean, msg: GetSpicsRequest): GetSpicsRequest.AsObject;
209
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
210
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
211
+ static serializeBinaryToWriter(message: GetSpicsRequest, writer: jspb.BinaryWriter): void;
212
+ static deserializeBinary(bytes: Uint8Array): GetSpicsRequest;
213
+ static deserializeBinaryFromReader(message: GetSpicsRequest, reader: jspb.BinaryReader): GetSpicsRequest;
214
+ }
215
+
216
+ export namespace GetSpicsRequest {
217
+ export type AsObject = {
218
+ userId: number,
219
+ page: number,
220
+ count: number,
221
+ }
222
+ }
223
+
224
+ export class GetSpicsResponse extends jspb.Message {
225
+ clearCabinetsList(): void;
226
+ getCabinetsList(): Array<spic_cabinet_pb.CabinetProto>;
227
+ setCabinetsList(value: Array<spic_cabinet_pb.CabinetProto>): void;
228
+ addCabinets(value?: spic_cabinet_pb.CabinetProto, index?: number): spic_cabinet_pb.CabinetProto;
229
+
230
+ hasPagination(): boolean;
231
+ clearPagination(): void;
232
+ getPagination(): platform_pagination_pb.PaginationProto | undefined;
233
+ setPagination(value?: platform_pagination_pb.PaginationProto): void;
234
+
235
+ serializeBinary(): Uint8Array;
236
+ toObject(includeInstance?: boolean): GetSpicsResponse.AsObject;
237
+ static toObject(includeInstance: boolean, msg: GetSpicsResponse): GetSpicsResponse.AsObject;
238
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
239
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
240
+ static serializeBinaryToWriter(message: GetSpicsResponse, writer: jspb.BinaryWriter): void;
241
+ static deserializeBinary(bytes: Uint8Array): GetSpicsResponse;
242
+ static deserializeBinaryFromReader(message: GetSpicsResponse, reader: jspb.BinaryReader): GetSpicsResponse;
243
+ }
244
+
245
+ export namespace GetSpicsResponse {
246
+ export type AsObject = {
247
+ cabinetsList: Array<spic_cabinet_pb.CabinetProto.AsObject>,
248
+ pagination?: platform_pagination_pb.PaginationProto.AsObject,
249
+ }
250
+ }
194
251
  }
195
252
 
@@ -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
 
@@ -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;
package/spic.asset_pb.js CHANGED
@@ -35,6 +35,8 @@ var google_api_annotations_pb = require('./google/api/annotations_pb.js');
35
35
  goog.object.extend(proto, google_api_annotations_pb);
36
36
  goog.exportSymbol('proto.Spic.AssetProto', null, global);
37
37
  goog.exportSymbol('proto.Spic.AssetProto.AssetType', null, global);
38
+ goog.exportSymbol('proto.Spic.AssetProto.AssetTypeRequest', null, global);
39
+ goog.exportSymbol('proto.Spic.AssetProto.AssetTypeResponse', null, global);
38
40
  goog.exportSymbol('proto.Spic.AssetProto.BatteryStatus', null, global);
39
41
  goog.exportSymbol('proto.Spic.AssetProto.CreateRequest', null, global);
40
42
  goog.exportSymbol('proto.Spic.AssetProto.DeleteRequest', null, global);
@@ -350,6 +352,48 @@ if (goog.DEBUG && !COMPILED) {
350
352
  */
351
353
  proto.Spic.AssetProto.StateChangedEvent.displayName = 'proto.Spic.AssetProto.StateChangedEvent';
352
354
  }
355
+ /**
356
+ * Generated by JsPbCodeGenerator.
357
+ * @param {Array=} opt_data Optional initial data array, typically from a
358
+ * server response, or constructed directly in Javascript. The array is used
359
+ * in place and becomes part of the constructed object. It is not cloned.
360
+ * If no data is provided, the constructed object will be empty, but still
361
+ * valid.
362
+ * @extends {jspb.Message}
363
+ * @constructor
364
+ */
365
+ proto.Spic.AssetProto.AssetTypeRequest = function(opt_data) {
366
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
367
+ };
368
+ goog.inherits(proto.Spic.AssetProto.AssetTypeRequest, jspb.Message);
369
+ if (goog.DEBUG && !COMPILED) {
370
+ /**
371
+ * @public
372
+ * @override
373
+ */
374
+ proto.Spic.AssetProto.AssetTypeRequest.displayName = 'proto.Spic.AssetProto.AssetTypeRequest';
375
+ }
376
+ /**
377
+ * Generated by JsPbCodeGenerator.
378
+ * @param {Array=} opt_data Optional initial data array, typically from a
379
+ * server response, or constructed directly in Javascript. The array is used
380
+ * in place and becomes part of the constructed object. It is not cloned.
381
+ * If no data is provided, the constructed object will be empty, but still
382
+ * valid.
383
+ * @extends {jspb.Message}
384
+ * @constructor
385
+ */
386
+ proto.Spic.AssetProto.AssetTypeResponse = function(opt_data) {
387
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Spic.AssetProto.AssetTypeResponse.repeatedFields_, null);
388
+ };
389
+ goog.inherits(proto.Spic.AssetProto.AssetTypeResponse, jspb.Message);
390
+ if (goog.DEBUG && !COMPILED) {
391
+ /**
392
+ * @public
393
+ * @override
394
+ */
395
+ proto.Spic.AssetProto.AssetTypeResponse.displayName = 'proto.Spic.AssetProto.AssetTypeResponse';
396
+ }
353
397
  /**
354
398
  * Generated by JsPbCodeGenerator.
355
399
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -3547,6 +3591,265 @@ proto.Spic.AssetProto.StateChangedEvent.prototype.setOnlyAttributesUpdated = fun
3547
3591
  };
3548
3592
 
3549
3593
 
3594
+
3595
+
3596
+
3597
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3598
+ /**
3599
+ * Creates an object representation of this proto.
3600
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3601
+ * Optional fields that are not set will be set to undefined.
3602
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3603
+ * For the list of reserved names please see:
3604
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3605
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3606
+ * JSPB instance for transitional soy proto support:
3607
+ * http://goto/soy-param-migration
3608
+ * @return {!Object}
3609
+ */
3610
+ proto.Spic.AssetProto.AssetTypeRequest.prototype.toObject = function(opt_includeInstance) {
3611
+ return proto.Spic.AssetProto.AssetTypeRequest.toObject(opt_includeInstance, this);
3612
+ };
3613
+
3614
+
3615
+ /**
3616
+ * Static version of the {@see toObject} method.
3617
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3618
+ * the JSPB instance for transitional soy proto support:
3619
+ * http://goto/soy-param-migration
3620
+ * @param {!proto.Spic.AssetProto.AssetTypeRequest} msg The msg instance to transform.
3621
+ * @return {!Object}
3622
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3623
+ */
3624
+ proto.Spic.AssetProto.AssetTypeRequest.toObject = function(includeInstance, msg) {
3625
+ var f, obj = {
3626
+
3627
+ };
3628
+
3629
+ if (includeInstance) {
3630
+ obj.$jspbMessageInstance = msg;
3631
+ }
3632
+ return obj;
3633
+ };
3634
+ }
3635
+
3636
+
3637
+ /**
3638
+ * Deserializes binary data (in protobuf wire format).
3639
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3640
+ * @return {!proto.Spic.AssetProto.AssetTypeRequest}
3641
+ */
3642
+ proto.Spic.AssetProto.AssetTypeRequest.deserializeBinary = function(bytes) {
3643
+ var reader = new jspb.BinaryReader(bytes);
3644
+ var msg = new proto.Spic.AssetProto.AssetTypeRequest;
3645
+ return proto.Spic.AssetProto.AssetTypeRequest.deserializeBinaryFromReader(msg, reader);
3646
+ };
3647
+
3648
+
3649
+ /**
3650
+ * Deserializes binary data (in protobuf wire format) from the
3651
+ * given reader into the given message object.
3652
+ * @param {!proto.Spic.AssetProto.AssetTypeRequest} msg The message object to deserialize into.
3653
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3654
+ * @return {!proto.Spic.AssetProto.AssetTypeRequest}
3655
+ */
3656
+ proto.Spic.AssetProto.AssetTypeRequest.deserializeBinaryFromReader = function(msg, reader) {
3657
+ while (reader.nextField()) {
3658
+ if (reader.isEndGroup()) {
3659
+ break;
3660
+ }
3661
+ var field = reader.getFieldNumber();
3662
+ switch (field) {
3663
+ default:
3664
+ reader.skipField();
3665
+ break;
3666
+ }
3667
+ }
3668
+ return msg;
3669
+ };
3670
+
3671
+
3672
+ /**
3673
+ * Serializes the message to binary data (in protobuf wire format).
3674
+ * @return {!Uint8Array}
3675
+ */
3676
+ proto.Spic.AssetProto.AssetTypeRequest.prototype.serializeBinary = function() {
3677
+ var writer = new jspb.BinaryWriter();
3678
+ proto.Spic.AssetProto.AssetTypeRequest.serializeBinaryToWriter(this, writer);
3679
+ return writer.getResultBuffer();
3680
+ };
3681
+
3682
+
3683
+ /**
3684
+ * Serializes the given message to binary data (in protobuf wire
3685
+ * format), writing to the given BinaryWriter.
3686
+ * @param {!proto.Spic.AssetProto.AssetTypeRequest} message
3687
+ * @param {!jspb.BinaryWriter} writer
3688
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3689
+ */
3690
+ proto.Spic.AssetProto.AssetTypeRequest.serializeBinaryToWriter = function(message, writer) {
3691
+ var f = undefined;
3692
+ };
3693
+
3694
+
3695
+
3696
+ /**
3697
+ * List of repeated fields within this message type.
3698
+ * @private {!Array<number>}
3699
+ * @const
3700
+ */
3701
+ proto.Spic.AssetProto.AssetTypeResponse.repeatedFields_ = [1];
3702
+
3703
+
3704
+
3705
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3706
+ /**
3707
+ * Creates an object representation of this proto.
3708
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3709
+ * Optional fields that are not set will be set to undefined.
3710
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3711
+ * For the list of reserved names please see:
3712
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3713
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3714
+ * JSPB instance for transitional soy proto support:
3715
+ * http://goto/soy-param-migration
3716
+ * @return {!Object}
3717
+ */
3718
+ proto.Spic.AssetProto.AssetTypeResponse.prototype.toObject = function(opt_includeInstance) {
3719
+ return proto.Spic.AssetProto.AssetTypeResponse.toObject(opt_includeInstance, this);
3720
+ };
3721
+
3722
+
3723
+ /**
3724
+ * Static version of the {@see toObject} method.
3725
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3726
+ * the JSPB instance for transitional soy proto support:
3727
+ * http://goto/soy-param-migration
3728
+ * @param {!proto.Spic.AssetProto.AssetTypeResponse} msg The msg instance to transform.
3729
+ * @return {!Object}
3730
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3731
+ */
3732
+ proto.Spic.AssetProto.AssetTypeResponse.toObject = function(includeInstance, msg) {
3733
+ var f, obj = {
3734
+ typesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
3735
+ };
3736
+
3737
+ if (includeInstance) {
3738
+ obj.$jspbMessageInstance = msg;
3739
+ }
3740
+ return obj;
3741
+ };
3742
+ }
3743
+
3744
+
3745
+ /**
3746
+ * Deserializes binary data (in protobuf wire format).
3747
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3748
+ * @return {!proto.Spic.AssetProto.AssetTypeResponse}
3749
+ */
3750
+ proto.Spic.AssetProto.AssetTypeResponse.deserializeBinary = function(bytes) {
3751
+ var reader = new jspb.BinaryReader(bytes);
3752
+ var msg = new proto.Spic.AssetProto.AssetTypeResponse;
3753
+ return proto.Spic.AssetProto.AssetTypeResponse.deserializeBinaryFromReader(msg, reader);
3754
+ };
3755
+
3756
+
3757
+ /**
3758
+ * Deserializes binary data (in protobuf wire format) from the
3759
+ * given reader into the given message object.
3760
+ * @param {!proto.Spic.AssetProto.AssetTypeResponse} msg The message object to deserialize into.
3761
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3762
+ * @return {!proto.Spic.AssetProto.AssetTypeResponse}
3763
+ */
3764
+ proto.Spic.AssetProto.AssetTypeResponse.deserializeBinaryFromReader = function(msg, reader) {
3765
+ while (reader.nextField()) {
3766
+ if (reader.isEndGroup()) {
3767
+ break;
3768
+ }
3769
+ var field = reader.getFieldNumber();
3770
+ switch (field) {
3771
+ case 1:
3772
+ var values = /** @type {!Array<!proto.Spic.AssetProto.AssetType>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
3773
+ for (var i = 0; i < values.length; i++) {
3774
+ msg.addTypes(values[i]);
3775
+ }
3776
+ break;
3777
+ default:
3778
+ reader.skipField();
3779
+ break;
3780
+ }
3781
+ }
3782
+ return msg;
3783
+ };
3784
+
3785
+
3786
+ /**
3787
+ * Serializes the message to binary data (in protobuf wire format).
3788
+ * @return {!Uint8Array}
3789
+ */
3790
+ proto.Spic.AssetProto.AssetTypeResponse.prototype.serializeBinary = function() {
3791
+ var writer = new jspb.BinaryWriter();
3792
+ proto.Spic.AssetProto.AssetTypeResponse.serializeBinaryToWriter(this, writer);
3793
+ return writer.getResultBuffer();
3794
+ };
3795
+
3796
+
3797
+ /**
3798
+ * Serializes the given message to binary data (in protobuf wire
3799
+ * format), writing to the given BinaryWriter.
3800
+ * @param {!proto.Spic.AssetProto.AssetTypeResponse} message
3801
+ * @param {!jspb.BinaryWriter} writer
3802
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3803
+ */
3804
+ proto.Spic.AssetProto.AssetTypeResponse.serializeBinaryToWriter = function(message, writer) {
3805
+ var f = undefined;
3806
+ f = message.getTypesList();
3807
+ if (f.length > 0) {
3808
+ writer.writePackedEnum(
3809
+ 1,
3810
+ f
3811
+ );
3812
+ }
3813
+ };
3814
+
3815
+
3816
+ /**
3817
+ * repeated AssetType types = 1;
3818
+ * @return {!Array<!proto.Spic.AssetProto.AssetType>}
3819
+ */
3820
+ proto.Spic.AssetProto.AssetTypeResponse.prototype.getTypesList = function() {
3821
+ return /** @type {!Array<!proto.Spic.AssetProto.AssetType>} */ (jspb.Message.getRepeatedField(this, 1));
3822
+ };
3823
+
3824
+
3825
+ /**
3826
+ * @param {!Array<!proto.Spic.AssetProto.AssetType>} value
3827
+ * @return {!proto.Spic.AssetProto.AssetTypeResponse} returns this
3828
+ */
3829
+ proto.Spic.AssetProto.AssetTypeResponse.prototype.setTypesList = function(value) {
3830
+ return jspb.Message.setField(this, 1, value || []);
3831
+ };
3832
+
3833
+
3834
+ /**
3835
+ * @param {!proto.Spic.AssetProto.AssetType} value
3836
+ * @param {number=} opt_index
3837
+ * @return {!proto.Spic.AssetProto.AssetTypeResponse} returns this
3838
+ */
3839
+ proto.Spic.AssetProto.AssetTypeResponse.prototype.addTypes = function(value, opt_index) {
3840
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
3841
+ };
3842
+
3843
+
3844
+ /**
3845
+ * Clears the list making it empty but non-null.
3846
+ * @return {!proto.Spic.AssetProto.AssetTypeResponse} returns this
3847
+ */
3848
+ proto.Spic.AssetProto.AssetTypeResponse.prototype.clearTypesList = function() {
3849
+ return this.setTypesList([]);
3850
+ };
3851
+
3852
+
3550
3853
  /**
3551
3854
  * optional int64 id = 1;
3552
3855
  * @return {number}
@@ -77,6 +77,15 @@ type AssetGRPCReplaceBattery = {
77
77
  readonly responseType: typeof spic_asset_pb.AssetProto;
78
78
  };
79
79
 
80
+ type AssetGRPCGetAssetTypes = {
81
+ readonly methodName: string;
82
+ readonly service: typeof AssetGRPC;
83
+ readonly requestStream: false;
84
+ readonly responseStream: false;
85
+ readonly requestType: typeof spic_asset_pb.AssetProto.AssetTypeRequest;
86
+ readonly responseType: typeof spic_asset_pb.AssetProto.AssetTypeResponse;
87
+ };
88
+
80
89
  export class AssetGRPC {
81
90
  static readonly serviceName: string;
82
91
  static readonly Create: AssetGRPCCreate;
@@ -87,6 +96,7 @@ export class AssetGRPC {
87
96
  static readonly Search: AssetGRPCSearch;
88
97
  static readonly LocationSearch: AssetGRPCLocationSearch;
89
98
  static readonly ReplaceBattery: AssetGRPCReplaceBattery;
99
+ static readonly GetAssetTypes: AssetGRPCGetAssetTypes;
90
100
  }
91
101
 
92
102
  export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
@@ -193,5 +203,14 @@ export class AssetGRPCClient {
193
203
  requestMessage: spic_asset_pb.AssetProto.ReplaceBatteryRequest,
194
204
  callback: (error: ServiceError|null, responseMessage: spic_asset_pb.AssetProto|null) => void
195
205
  ): UnaryResponse;
206
+ getAssetTypes(
207
+ requestMessage: spic_asset_pb.AssetProto.AssetTypeRequest,
208
+ metadata: grpc.Metadata,
209
+ callback: (error: ServiceError|null, responseMessage: spic_asset_pb.AssetProto.AssetTypeResponse|null) => void
210
+ ): UnaryResponse;
211
+ getAssetTypes(
212
+ requestMessage: spic_asset_pb.AssetProto.AssetTypeRequest,
213
+ callback: (error: ServiceError|null, responseMessage: spic_asset_pb.AssetProto.AssetTypeResponse|null) => void
214
+ ): UnaryResponse;
196
215
  }
197
216
 
@@ -83,6 +83,15 @@ AssetGRPC.ReplaceBattery = {
83
83
  responseType: spic_asset_pb.AssetProto
84
84
  };
85
85
 
86
+ AssetGRPC.GetAssetTypes = {
87
+ methodName: "GetAssetTypes",
88
+ service: AssetGRPC,
89
+ requestStream: false,
90
+ responseStream: false,
91
+ requestType: spic_asset_pb.AssetProto.AssetTypeRequest,
92
+ responseType: spic_asset_pb.AssetProto.AssetTypeResponse
93
+ };
94
+
86
95
  exports.AssetGRPC = AssetGRPC;
87
96
 
88
97
  function AssetGRPCClient(serviceHost, options) {
@@ -338,5 +347,36 @@ AssetGRPCClient.prototype.replaceBattery = function replaceBattery(requestMessag
338
347
  };
339
348
  };
340
349
 
350
+ AssetGRPCClient.prototype.getAssetTypes = function getAssetTypes(requestMessage, metadata, callback) {
351
+ if (arguments.length === 2) {
352
+ callback = arguments[1];
353
+ }
354
+ var client = grpc.unary(AssetGRPC.GetAssetTypes, {
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
+
341
381
  exports.AssetGRPCClient = AssetGRPCClient;
342
382