@aceplus/smartace-api 3.7.0-alpha.10 → 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.
@@ -58,6 +58,24 @@ type AppDistributionGRPCConnectQr = {
58
58
  readonly responseType: typeof auth_app_distribution_pb.AppDistributionProto.ConnectQrResponse;
59
59
  };
60
60
 
61
+ type AppDistributionGRPCGetQrHistory = {
62
+ readonly methodName: string;
63
+ readonly service: typeof AppDistributionGRPC;
64
+ readonly requestStream: false;
65
+ readonly responseStream: false;
66
+ readonly requestType: typeof auth_app_distribution_pb.AppDistributionProto.QrHistoryRequest;
67
+ readonly responseType: typeof auth_app_distribution_pb.AppDistributionProto.QrHistoryResponse;
68
+ };
69
+
70
+ type AppDistributionGRPCGetActiveQrs = {
71
+ readonly methodName: string;
72
+ readonly service: typeof AppDistributionGRPC;
73
+ readonly requestStream: false;
74
+ readonly responseStream: false;
75
+ readonly requestType: typeof auth_app_distribution_pb.AppDistributionProto.ActiveQrRequest;
76
+ readonly responseType: typeof auth_app_distribution_pb.AppDistributionProto.ActiveQrResponse;
77
+ };
78
+
61
79
  export class AppDistributionGRPC {
62
80
  static readonly serviceName: string;
63
81
  static readonly GetPhonePrefixes: AppDistributionGRPCGetPhonePrefixes;
@@ -66,6 +84,8 @@ export class AppDistributionGRPC {
66
84
  static readonly CheckQr: AppDistributionGRPCCheckQr;
67
85
  static readonly CheckQrV2: AppDistributionGRPCCheckQrV2;
68
86
  static readonly ConnectQr: AppDistributionGRPCConnectQr;
87
+ static readonly GetQrHistory: AppDistributionGRPCGetQrHistory;
88
+ static readonly GetActiveQrs: AppDistributionGRPCGetActiveQrs;
69
89
  }
70
90
 
71
91
  export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
@@ -154,5 +174,23 @@ export class AppDistributionGRPCClient {
154
174
  requestMessage: auth_app_distribution_pb.AppDistributionProto.ConnectQrRequest,
155
175
  callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.ConnectQrResponse|null) => void
156
176
  ): UnaryResponse;
177
+ getQrHistory(
178
+ requestMessage: auth_app_distribution_pb.AppDistributionProto.QrHistoryRequest,
179
+ metadata: grpc.Metadata,
180
+ callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.QrHistoryResponse|null) => void
181
+ ): UnaryResponse;
182
+ getQrHistory(
183
+ requestMessage: auth_app_distribution_pb.AppDistributionProto.QrHistoryRequest,
184
+ callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.QrHistoryResponse|null) => void
185
+ ): UnaryResponse;
186
+ getActiveQrs(
187
+ requestMessage: auth_app_distribution_pb.AppDistributionProto.ActiveQrRequest,
188
+ metadata: grpc.Metadata,
189
+ callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.ActiveQrResponse|null) => void
190
+ ): UnaryResponse;
191
+ getActiveQrs(
192
+ requestMessage: auth_app_distribution_pb.AppDistributionProto.ActiveQrRequest,
193
+ callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.ActiveQrResponse|null) => void
194
+ ): UnaryResponse;
157
195
  }
158
196
 
@@ -64,6 +64,24 @@ AppDistributionGRPC.ConnectQr = {
64
64
  responseType: auth_app_distribution_pb.AppDistributionProto.ConnectQrResponse
65
65
  };
66
66
 
67
+ AppDistributionGRPC.GetQrHistory = {
68
+ methodName: "GetQrHistory",
69
+ service: AppDistributionGRPC,
70
+ requestStream: false,
71
+ responseStream: false,
72
+ requestType: auth_app_distribution_pb.AppDistributionProto.QrHistoryRequest,
73
+ responseType: auth_app_distribution_pb.AppDistributionProto.QrHistoryResponse
74
+ };
75
+
76
+ AppDistributionGRPC.GetActiveQrs = {
77
+ methodName: "GetActiveQrs",
78
+ service: AppDistributionGRPC,
79
+ requestStream: false,
80
+ responseStream: false,
81
+ requestType: auth_app_distribution_pb.AppDistributionProto.ActiveQrRequest,
82
+ responseType: auth_app_distribution_pb.AppDistributionProto.ActiveQrResponse
83
+ };
84
+
67
85
  exports.AppDistributionGRPC = AppDistributionGRPC;
68
86
 
69
87
  function AppDistributionGRPCClient(serviceHost, options) {
@@ -257,5 +275,67 @@ AppDistributionGRPCClient.prototype.connectQr = function connectQr(requestMessag
257
275
  };
258
276
  };
259
277
 
278
+ AppDistributionGRPCClient.prototype.getQrHistory = function getQrHistory(requestMessage, metadata, callback) {
279
+ if (arguments.length === 2) {
280
+ callback = arguments[1];
281
+ }
282
+ var client = grpc.unary(AppDistributionGRPC.GetQrHistory, {
283
+ request: requestMessage,
284
+ host: this.serviceHost,
285
+ metadata: metadata,
286
+ transport: this.options.transport,
287
+ debug: this.options.debug,
288
+ onEnd: function (response) {
289
+ if (callback) {
290
+ if (response.status !== grpc.Code.OK) {
291
+ var err = new Error(response.statusMessage);
292
+ err.code = response.status;
293
+ err.metadata = response.trailers;
294
+ callback(err, null);
295
+ } else {
296
+ callback(null, response.message);
297
+ }
298
+ }
299
+ }
300
+ });
301
+ return {
302
+ cancel: function () {
303
+ callback = null;
304
+ client.close();
305
+ }
306
+ };
307
+ };
308
+
309
+ AppDistributionGRPCClient.prototype.getActiveQrs = function getActiveQrs(requestMessage, metadata, callback) {
310
+ if (arguments.length === 2) {
311
+ callback = arguments[1];
312
+ }
313
+ var client = grpc.unary(AppDistributionGRPC.GetActiveQrs, {
314
+ request: requestMessage,
315
+ host: this.serviceHost,
316
+ metadata: metadata,
317
+ transport: this.options.transport,
318
+ debug: this.options.debug,
319
+ onEnd: function (response) {
320
+ if (callback) {
321
+ if (response.status !== grpc.Code.OK) {
322
+ var err = new Error(response.statusMessage);
323
+ err.code = response.status;
324
+ err.metadata = response.trailers;
325
+ callback(err, null);
326
+ } else {
327
+ callback(null, response.message);
328
+ }
329
+ }
330
+ }
331
+ });
332
+ return {
333
+ cancel: function () {
334
+ callback = null;
335
+ client.close();
336
+ }
337
+ };
338
+ };
339
+
260
340
  exports.AppDistributionGRPCClient = AppDistributionGRPCClient;
261
341
 
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.10",
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}