protobuf-platform 1.2.181 → 1.2.183

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/cms/cms.proto CHANGED
@@ -22,6 +22,8 @@ service CMS {
22
22
  rpc getGameBarWidget(GetGameBarWidgetRequest) returns (GameBarWidgetItem);
23
23
  rpc setProfileMenuWidget(CommonWidgetRequest) returns (ProfileMenuWidgetItem);
24
24
  rpc getProfileMenuWidget(GetProfileMenuWidgetRequest) returns (ProfileMenuWidgetItem);
25
+ rpc setMobileMenuWidget(CommonWidgetRequest) returns (MobileMenuWidgetItem);
26
+ rpc getMobileMenuWidget(GetMobileMenuWidgetRequest) returns (MobileMenuWidgetItem);
25
27
  //Banners
26
28
  rpc createSingleBanner(stream BannerRequest) returns (BannerResponse);
27
29
  rpc readSingleBanner(GetBannerRequest) returns (BannerResponse);
@@ -196,11 +198,18 @@ message GetProfileMenuWidgetRequest {
196
198
  optional string geo = 1;
197
199
  optional bool admin_side = 2;
198
200
  }
199
-
200
201
  message ProfileMenuWidgetItem {
201
202
  string geo = 1;
202
203
  string content = 2;
203
204
  }
205
+ message GetMobileMenuWidgetRequest {
206
+ optional string geo = 1;
207
+ optional bool admin_side = 2;
208
+ }
209
+ message MobileMenuWidgetItem {
210
+ string geo = 1;
211
+ string content = 2;
212
+ }
204
213
  //Banners CRUD
205
214
  message BannerRequest {
206
215
  oneof request {
@@ -609,6 +609,17 @@ function deserialize_cms_GetMainPageWidgetRequest(buffer_arg) {
609
609
  return cms_pb.GetMainPageWidgetRequest.deserializeBinary(new Uint8Array(buffer_arg));
610
610
  }
611
611
 
612
+ function serialize_cms_GetMobileMenuWidgetRequest(arg) {
613
+ if (!(arg instanceof cms_pb.GetMobileMenuWidgetRequest)) {
614
+ throw new Error('Expected argument of type cms.GetMobileMenuWidgetRequest');
615
+ }
616
+ return Buffer.from(arg.serializeBinary());
617
+ }
618
+
619
+ function deserialize_cms_GetMobileMenuWidgetRequest(buffer_arg) {
620
+ return cms_pb.GetMobileMenuWidgetRequest.deserializeBinary(new Uint8Array(buffer_arg));
621
+ }
622
+
612
623
  function serialize_cms_GetPageRequest(arg) {
613
624
  if (!(arg instanceof cms_pb.GetPageRequest)) {
614
625
  throw new Error('Expected argument of type cms.GetPageRequest');
@@ -719,6 +730,17 @@ function deserialize_cms_MainPageWidgetResponse(buffer_arg) {
719
730
  return cms_pb.MainPageWidgetResponse.deserializeBinary(new Uint8Array(buffer_arg));
720
731
  }
721
732
 
733
+ function serialize_cms_MobileMenuWidgetItem(arg) {
734
+ if (!(arg instanceof cms_pb.MobileMenuWidgetItem)) {
735
+ throw new Error('Expected argument of type cms.MobileMenuWidgetItem');
736
+ }
737
+ return Buffer.from(arg.serializeBinary());
738
+ }
739
+
740
+ function deserialize_cms_MobileMenuWidgetItem(buffer_arg) {
741
+ return cms_pb.MobileMenuWidgetItem.deserializeBinary(new Uint8Array(buffer_arg));
742
+ }
743
+
722
744
  function serialize_cms_PageRequest(arg) {
723
745
  if (!(arg instanceof cms_pb.PageRequest)) {
724
746
  throw new Error('Expected argument of type cms.PageRequest');
@@ -1118,6 +1140,28 @@ setMainPageWidget: {
1118
1140
  responseSerialize: serialize_cms_ProfileMenuWidgetItem,
1119
1141
  responseDeserialize: deserialize_cms_ProfileMenuWidgetItem,
1120
1142
  },
1143
+ setMobileMenuWidget: {
1144
+ path: '/cms.CMS/setMobileMenuWidget',
1145
+ requestStream: false,
1146
+ responseStream: false,
1147
+ requestType: cms_pb.CommonWidgetRequest,
1148
+ responseType: cms_pb.MobileMenuWidgetItem,
1149
+ requestSerialize: serialize_cms_CommonWidgetRequest,
1150
+ requestDeserialize: deserialize_cms_CommonWidgetRequest,
1151
+ responseSerialize: serialize_cms_MobileMenuWidgetItem,
1152
+ responseDeserialize: deserialize_cms_MobileMenuWidgetItem,
1153
+ },
1154
+ getMobileMenuWidget: {
1155
+ path: '/cms.CMS/getMobileMenuWidget',
1156
+ requestStream: false,
1157
+ responseStream: false,
1158
+ requestType: cms_pb.GetMobileMenuWidgetRequest,
1159
+ responseType: cms_pb.MobileMenuWidgetItem,
1160
+ requestSerialize: serialize_cms_GetMobileMenuWidgetRequest,
1161
+ requestDeserialize: deserialize_cms_GetMobileMenuWidgetRequest,
1162
+ responseSerialize: serialize_cms_MobileMenuWidgetItem,
1163
+ responseDeserialize: deserialize_cms_MobileMenuWidgetItem,
1164
+ },
1121
1165
  // Banners
1122
1166
  createSingleBanner: {
1123
1167
  path: '/cms.CMS/createSingleBanner',
package/cms/cms_pb.js CHANGED
@@ -105,6 +105,7 @@ goog.exportSymbol('proto.cms.GetGameBarWidgetRequest', null, global);
105
105
  goog.exportSymbol('proto.cms.GetGameWidgetRequest', null, global);
106
106
  goog.exportSymbol('proto.cms.GetHeaderWidgetRequest', null, global);
107
107
  goog.exportSymbol('proto.cms.GetMainPageWidgetRequest', null, global);
108
+ goog.exportSymbol('proto.cms.GetMobileMenuWidgetRequest', null, global);
108
109
  goog.exportSymbol('proto.cms.GetPageRequest', null, global);
109
110
  goog.exportSymbol('proto.cms.GetPageTranslationRequest', null, global);
110
111
  goog.exportSymbol('proto.cms.GetProfileMenuWidgetRequest', null, global);
@@ -116,6 +117,7 @@ goog.exportSymbol('proto.cms.ItemsBunchRequest', null, global);
116
117
  goog.exportSymbol('proto.cms.LocaleContentItem', null, global);
117
118
  goog.exportSymbol('proto.cms.MainPageWidgetItem', null, global);
118
119
  goog.exportSymbol('proto.cms.MainPageWidgetResponse', null, global);
120
+ goog.exportSymbol('proto.cms.MobileMenuWidgetItem', null, global);
119
121
  goog.exportSymbol('proto.cms.PageItem', null, global);
120
122
  goog.exportSymbol('proto.cms.PageRequest', null, global);
121
123
  goog.exportSymbol('proto.cms.PageResponse', null, global);
@@ -644,6 +646,48 @@ if (goog.DEBUG && !COMPILED) {
644
646
  */
645
647
  proto.cms.ProfileMenuWidgetItem.displayName = 'proto.cms.ProfileMenuWidgetItem';
646
648
  }
649
+ /**
650
+ * Generated by JsPbCodeGenerator.
651
+ * @param {Array=} opt_data Optional initial data array, typically from a
652
+ * server response, or constructed directly in Javascript. The array is used
653
+ * in place and becomes part of the constructed object. It is not cloned.
654
+ * If no data is provided, the constructed object will be empty, but still
655
+ * valid.
656
+ * @extends {jspb.Message}
657
+ * @constructor
658
+ */
659
+ proto.cms.GetMobileMenuWidgetRequest = function(opt_data) {
660
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
661
+ };
662
+ goog.inherits(proto.cms.GetMobileMenuWidgetRequest, jspb.Message);
663
+ if (goog.DEBUG && !COMPILED) {
664
+ /**
665
+ * @public
666
+ * @override
667
+ */
668
+ proto.cms.GetMobileMenuWidgetRequest.displayName = 'proto.cms.GetMobileMenuWidgetRequest';
669
+ }
670
+ /**
671
+ * Generated by JsPbCodeGenerator.
672
+ * @param {Array=} opt_data Optional initial data array, typically from a
673
+ * server response, or constructed directly in Javascript. The array is used
674
+ * in place and becomes part of the constructed object. It is not cloned.
675
+ * If no data is provided, the constructed object will be empty, but still
676
+ * valid.
677
+ * @extends {jspb.Message}
678
+ * @constructor
679
+ */
680
+ proto.cms.MobileMenuWidgetItem = function(opt_data) {
681
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
682
+ };
683
+ goog.inherits(proto.cms.MobileMenuWidgetItem, jspb.Message);
684
+ if (goog.DEBUG && !COMPILED) {
685
+ /**
686
+ * @public
687
+ * @override
688
+ */
689
+ proto.cms.MobileMenuWidgetItem.displayName = 'proto.cms.MobileMenuWidgetItem';
690
+ }
647
691
  /**
648
692
  * Generated by JsPbCodeGenerator.
649
693
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -7374,6 +7418,362 @@ proto.cms.ProfileMenuWidgetItem.prototype.setContent = function(value) {
7374
7418
 
7375
7419
 
7376
7420
 
7421
+
7422
+
7423
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7424
+ /**
7425
+ * Creates an object representation of this proto.
7426
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7427
+ * Optional fields that are not set will be set to undefined.
7428
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7429
+ * For the list of reserved names please see:
7430
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7431
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7432
+ * JSPB instance for transitional soy proto support:
7433
+ * http://goto/soy-param-migration
7434
+ * @return {!Object}
7435
+ */
7436
+ proto.cms.GetMobileMenuWidgetRequest.prototype.toObject = function(opt_includeInstance) {
7437
+ return proto.cms.GetMobileMenuWidgetRequest.toObject(opt_includeInstance, this);
7438
+ };
7439
+
7440
+
7441
+ /**
7442
+ * Static version of the {@see toObject} method.
7443
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7444
+ * the JSPB instance for transitional soy proto support:
7445
+ * http://goto/soy-param-migration
7446
+ * @param {!proto.cms.GetMobileMenuWidgetRequest} msg The msg instance to transform.
7447
+ * @return {!Object}
7448
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7449
+ */
7450
+ proto.cms.GetMobileMenuWidgetRequest.toObject = function(includeInstance, msg) {
7451
+ var f, obj = {
7452
+ geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
7453
+ adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
7454
+ };
7455
+
7456
+ if (includeInstance) {
7457
+ obj.$jspbMessageInstance = msg;
7458
+ }
7459
+ return obj;
7460
+ };
7461
+ }
7462
+
7463
+
7464
+ /**
7465
+ * Deserializes binary data (in protobuf wire format).
7466
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7467
+ * @return {!proto.cms.GetMobileMenuWidgetRequest}
7468
+ */
7469
+ proto.cms.GetMobileMenuWidgetRequest.deserializeBinary = function(bytes) {
7470
+ var reader = new jspb.BinaryReader(bytes);
7471
+ var msg = new proto.cms.GetMobileMenuWidgetRequest;
7472
+ return proto.cms.GetMobileMenuWidgetRequest.deserializeBinaryFromReader(msg, reader);
7473
+ };
7474
+
7475
+
7476
+ /**
7477
+ * Deserializes binary data (in protobuf wire format) from the
7478
+ * given reader into the given message object.
7479
+ * @param {!proto.cms.GetMobileMenuWidgetRequest} msg The message object to deserialize into.
7480
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7481
+ * @return {!proto.cms.GetMobileMenuWidgetRequest}
7482
+ */
7483
+ proto.cms.GetMobileMenuWidgetRequest.deserializeBinaryFromReader = function(msg, reader) {
7484
+ while (reader.nextField()) {
7485
+ if (reader.isEndGroup()) {
7486
+ break;
7487
+ }
7488
+ var field = reader.getFieldNumber();
7489
+ switch (field) {
7490
+ case 1:
7491
+ var value = /** @type {string} */ (reader.readString());
7492
+ msg.setGeo(value);
7493
+ break;
7494
+ case 2:
7495
+ var value = /** @type {boolean} */ (reader.readBool());
7496
+ msg.setAdminSide(value);
7497
+ break;
7498
+ default:
7499
+ reader.skipField();
7500
+ break;
7501
+ }
7502
+ }
7503
+ return msg;
7504
+ };
7505
+
7506
+
7507
+ /**
7508
+ * Serializes the message to binary data (in protobuf wire format).
7509
+ * @return {!Uint8Array}
7510
+ */
7511
+ proto.cms.GetMobileMenuWidgetRequest.prototype.serializeBinary = function() {
7512
+ var writer = new jspb.BinaryWriter();
7513
+ proto.cms.GetMobileMenuWidgetRequest.serializeBinaryToWriter(this, writer);
7514
+ return writer.getResultBuffer();
7515
+ };
7516
+
7517
+
7518
+ /**
7519
+ * Serializes the given message to binary data (in protobuf wire
7520
+ * format), writing to the given BinaryWriter.
7521
+ * @param {!proto.cms.GetMobileMenuWidgetRequest} message
7522
+ * @param {!jspb.BinaryWriter} writer
7523
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7524
+ */
7525
+ proto.cms.GetMobileMenuWidgetRequest.serializeBinaryToWriter = function(message, writer) {
7526
+ var f = undefined;
7527
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
7528
+ if (f != null) {
7529
+ writer.writeString(
7530
+ 1,
7531
+ f
7532
+ );
7533
+ }
7534
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
7535
+ if (f != null) {
7536
+ writer.writeBool(
7537
+ 2,
7538
+ f
7539
+ );
7540
+ }
7541
+ };
7542
+
7543
+
7544
+ /**
7545
+ * optional string geo = 1;
7546
+ * @return {string}
7547
+ */
7548
+ proto.cms.GetMobileMenuWidgetRequest.prototype.getGeo = function() {
7549
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
7550
+ };
7551
+
7552
+
7553
+ /**
7554
+ * @param {string} value
7555
+ * @return {!proto.cms.GetMobileMenuWidgetRequest} returns this
7556
+ */
7557
+ proto.cms.GetMobileMenuWidgetRequest.prototype.setGeo = function(value) {
7558
+ return jspb.Message.setField(this, 1, value);
7559
+ };
7560
+
7561
+
7562
+ /**
7563
+ * Clears the field making it undefined.
7564
+ * @return {!proto.cms.GetMobileMenuWidgetRequest} returns this
7565
+ */
7566
+ proto.cms.GetMobileMenuWidgetRequest.prototype.clearGeo = function() {
7567
+ return jspb.Message.setField(this, 1, undefined);
7568
+ };
7569
+
7570
+
7571
+ /**
7572
+ * Returns whether this field is set.
7573
+ * @return {boolean}
7574
+ */
7575
+ proto.cms.GetMobileMenuWidgetRequest.prototype.hasGeo = function() {
7576
+ return jspb.Message.getField(this, 1) != null;
7577
+ };
7578
+
7579
+
7580
+ /**
7581
+ * optional bool admin_side = 2;
7582
+ * @return {boolean}
7583
+ */
7584
+ proto.cms.GetMobileMenuWidgetRequest.prototype.getAdminSide = function() {
7585
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
7586
+ };
7587
+
7588
+
7589
+ /**
7590
+ * @param {boolean} value
7591
+ * @return {!proto.cms.GetMobileMenuWidgetRequest} returns this
7592
+ */
7593
+ proto.cms.GetMobileMenuWidgetRequest.prototype.setAdminSide = function(value) {
7594
+ return jspb.Message.setField(this, 2, value);
7595
+ };
7596
+
7597
+
7598
+ /**
7599
+ * Clears the field making it undefined.
7600
+ * @return {!proto.cms.GetMobileMenuWidgetRequest} returns this
7601
+ */
7602
+ proto.cms.GetMobileMenuWidgetRequest.prototype.clearAdminSide = function() {
7603
+ return jspb.Message.setField(this, 2, undefined);
7604
+ };
7605
+
7606
+
7607
+ /**
7608
+ * Returns whether this field is set.
7609
+ * @return {boolean}
7610
+ */
7611
+ proto.cms.GetMobileMenuWidgetRequest.prototype.hasAdminSide = function() {
7612
+ return jspb.Message.getField(this, 2) != null;
7613
+ };
7614
+
7615
+
7616
+
7617
+
7618
+
7619
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7620
+ /**
7621
+ * Creates an object representation of this proto.
7622
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7623
+ * Optional fields that are not set will be set to undefined.
7624
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7625
+ * For the list of reserved names please see:
7626
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7627
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7628
+ * JSPB instance for transitional soy proto support:
7629
+ * http://goto/soy-param-migration
7630
+ * @return {!Object}
7631
+ */
7632
+ proto.cms.MobileMenuWidgetItem.prototype.toObject = function(opt_includeInstance) {
7633
+ return proto.cms.MobileMenuWidgetItem.toObject(opt_includeInstance, this);
7634
+ };
7635
+
7636
+
7637
+ /**
7638
+ * Static version of the {@see toObject} method.
7639
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7640
+ * the JSPB instance for transitional soy proto support:
7641
+ * http://goto/soy-param-migration
7642
+ * @param {!proto.cms.MobileMenuWidgetItem} msg The msg instance to transform.
7643
+ * @return {!Object}
7644
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7645
+ */
7646
+ proto.cms.MobileMenuWidgetItem.toObject = function(includeInstance, msg) {
7647
+ var f, obj = {
7648
+ geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
7649
+ content: jspb.Message.getFieldWithDefault(msg, 2, "")
7650
+ };
7651
+
7652
+ if (includeInstance) {
7653
+ obj.$jspbMessageInstance = msg;
7654
+ }
7655
+ return obj;
7656
+ };
7657
+ }
7658
+
7659
+
7660
+ /**
7661
+ * Deserializes binary data (in protobuf wire format).
7662
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7663
+ * @return {!proto.cms.MobileMenuWidgetItem}
7664
+ */
7665
+ proto.cms.MobileMenuWidgetItem.deserializeBinary = function(bytes) {
7666
+ var reader = new jspb.BinaryReader(bytes);
7667
+ var msg = new proto.cms.MobileMenuWidgetItem;
7668
+ return proto.cms.MobileMenuWidgetItem.deserializeBinaryFromReader(msg, reader);
7669
+ };
7670
+
7671
+
7672
+ /**
7673
+ * Deserializes binary data (in protobuf wire format) from the
7674
+ * given reader into the given message object.
7675
+ * @param {!proto.cms.MobileMenuWidgetItem} msg The message object to deserialize into.
7676
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7677
+ * @return {!proto.cms.MobileMenuWidgetItem}
7678
+ */
7679
+ proto.cms.MobileMenuWidgetItem.deserializeBinaryFromReader = function(msg, reader) {
7680
+ while (reader.nextField()) {
7681
+ if (reader.isEndGroup()) {
7682
+ break;
7683
+ }
7684
+ var field = reader.getFieldNumber();
7685
+ switch (field) {
7686
+ case 1:
7687
+ var value = /** @type {string} */ (reader.readString());
7688
+ msg.setGeo(value);
7689
+ break;
7690
+ case 2:
7691
+ var value = /** @type {string} */ (reader.readString());
7692
+ msg.setContent(value);
7693
+ break;
7694
+ default:
7695
+ reader.skipField();
7696
+ break;
7697
+ }
7698
+ }
7699
+ return msg;
7700
+ };
7701
+
7702
+
7703
+ /**
7704
+ * Serializes the message to binary data (in protobuf wire format).
7705
+ * @return {!Uint8Array}
7706
+ */
7707
+ proto.cms.MobileMenuWidgetItem.prototype.serializeBinary = function() {
7708
+ var writer = new jspb.BinaryWriter();
7709
+ proto.cms.MobileMenuWidgetItem.serializeBinaryToWriter(this, writer);
7710
+ return writer.getResultBuffer();
7711
+ };
7712
+
7713
+
7714
+ /**
7715
+ * Serializes the given message to binary data (in protobuf wire
7716
+ * format), writing to the given BinaryWriter.
7717
+ * @param {!proto.cms.MobileMenuWidgetItem} message
7718
+ * @param {!jspb.BinaryWriter} writer
7719
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7720
+ */
7721
+ proto.cms.MobileMenuWidgetItem.serializeBinaryToWriter = function(message, writer) {
7722
+ var f = undefined;
7723
+ f = message.getGeo();
7724
+ if (f.length > 0) {
7725
+ writer.writeString(
7726
+ 1,
7727
+ f
7728
+ );
7729
+ }
7730
+ f = message.getContent();
7731
+ if (f.length > 0) {
7732
+ writer.writeString(
7733
+ 2,
7734
+ f
7735
+ );
7736
+ }
7737
+ };
7738
+
7739
+
7740
+ /**
7741
+ * optional string geo = 1;
7742
+ * @return {string}
7743
+ */
7744
+ proto.cms.MobileMenuWidgetItem.prototype.getGeo = function() {
7745
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
7746
+ };
7747
+
7748
+
7749
+ /**
7750
+ * @param {string} value
7751
+ * @return {!proto.cms.MobileMenuWidgetItem} returns this
7752
+ */
7753
+ proto.cms.MobileMenuWidgetItem.prototype.setGeo = function(value) {
7754
+ return jspb.Message.setProto3StringField(this, 1, value);
7755
+ };
7756
+
7757
+
7758
+ /**
7759
+ * optional string content = 2;
7760
+ * @return {string}
7761
+ */
7762
+ proto.cms.MobileMenuWidgetItem.prototype.getContent = function() {
7763
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
7764
+ };
7765
+
7766
+
7767
+ /**
7768
+ * @param {string} value
7769
+ * @return {!proto.cms.MobileMenuWidgetItem} returns this
7770
+ */
7771
+ proto.cms.MobileMenuWidgetItem.prototype.setContent = function(value) {
7772
+ return jspb.Message.setProto3StringField(this, 2, value);
7773
+ };
7774
+
7775
+
7776
+
7377
7777
  /**
7378
7778
  * Oneof group definitions for this message. Each group defines the field
7379
7779
  * numbers belonging to that group. When of these fields' value is set, all
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.181",
3
+ "version": "1.2.183",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -69,6 +69,7 @@ service User {
69
69
  rpc toggleUserFavouriteGame(UserGameRequest) returns (UserToggleGameStatusResponse);
70
70
  rpc getUserFavouriteGames(PaginationRequest) returns (UserGameIdsResponse);
71
71
  rpc getUserLastPlayedGames(PaginationRequest) returns (UserGameIdsResponse);
72
+ rpc getUserFavouriteGameIdsByGameIds(UserGameIdsFilterRequest) returns (UserGameIdsFilterResponse);
72
73
  }
73
74
  //Technical
74
75
  message PingRequest { string ping = 1; }
@@ -662,4 +663,12 @@ message UserGameIdsResponse {
662
663
  repeated int32 game_ids = 1;
663
664
  int32 total_items = 2;
664
665
  int32 total_pages = 3;
666
+ }
667
+ message UserGameIdsFilterRequest {
668
+ int32 user_id = 1;
669
+ repeated int32 game_ids = 2;
670
+ }
671
+
672
+ message UserGameIdsFilterResponse {
673
+ repeated int32 game_ids = 1;
665
674
  }
@@ -521,6 +521,28 @@ function deserialize_user_UserDataResponse(buffer_arg) {
521
521
  return user_pb.UserDataResponse.deserializeBinary(new Uint8Array(buffer_arg));
522
522
  }
523
523
 
524
+ function serialize_user_UserGameIdsFilterRequest(arg) {
525
+ if (!(arg instanceof user_pb.UserGameIdsFilterRequest)) {
526
+ throw new Error('Expected argument of type user.UserGameIdsFilterRequest');
527
+ }
528
+ return Buffer.from(arg.serializeBinary());
529
+ }
530
+
531
+ function deserialize_user_UserGameIdsFilterRequest(buffer_arg) {
532
+ return user_pb.UserGameIdsFilterRequest.deserializeBinary(new Uint8Array(buffer_arg));
533
+ }
534
+
535
+ function serialize_user_UserGameIdsFilterResponse(arg) {
536
+ if (!(arg instanceof user_pb.UserGameIdsFilterResponse)) {
537
+ throw new Error('Expected argument of type user.UserGameIdsFilterResponse');
538
+ }
539
+ return Buffer.from(arg.serializeBinary());
540
+ }
541
+
542
+ function deserialize_user_UserGameIdsFilterResponse(buffer_arg) {
543
+ return user_pb.UserGameIdsFilterResponse.deserializeBinary(new Uint8Array(buffer_arg));
544
+ }
545
+
524
546
  function serialize_user_UserGameIdsResponse(arg) {
525
547
  if (!(arg instanceof user_pb.UserGameIdsResponse)) {
526
548
  throw new Error('Expected argument of type user.UserGameIdsResponse');
@@ -1219,6 +1241,17 @@ toggleUserFavouriteGame: {
1219
1241
  responseSerialize: serialize_user_UserGameIdsResponse,
1220
1242
  responseDeserialize: deserialize_user_UserGameIdsResponse,
1221
1243
  },
1244
+ getUserFavouriteGameIdsByGameIds: {
1245
+ path: '/user.User/getUserFavouriteGameIdsByGameIds',
1246
+ requestStream: false,
1247
+ responseStream: false,
1248
+ requestType: user_pb.UserGameIdsFilterRequest,
1249
+ responseType: user_pb.UserGameIdsFilterResponse,
1250
+ requestSerialize: serialize_user_UserGameIdsFilterRequest,
1251
+ requestDeserialize: deserialize_user_UserGameIdsFilterRequest,
1252
+ responseSerialize: serialize_user_UserGameIdsFilterResponse,
1253
+ responseDeserialize: deserialize_user_UserGameIdsFilterResponse,
1254
+ },
1222
1255
  };
1223
1256
 
1224
1257
  exports.UserClient = grpc.makeGenericClientConstructor(UserService, 'User');
package/user/user_pb.js CHANGED
@@ -85,6 +85,8 @@ goog.exportSymbol('proto.user.UserBalanceRequest', null, global);
85
85
  goog.exportSymbol('proto.user.UserCookiesRequest', null, global);
86
86
  goog.exportSymbol('proto.user.UserDataRequest', null, global);
87
87
  goog.exportSymbol('proto.user.UserDataResponse', null, global);
88
+ goog.exportSymbol('proto.user.UserGameIdsFilterRequest', null, global);
89
+ goog.exportSymbol('proto.user.UserGameIdsFilterResponse', null, global);
88
90
  goog.exportSymbol('proto.user.UserGameIdsResponse', null, global);
89
91
  goog.exportSymbol('proto.user.UserGameRequest', null, global);
90
92
  goog.exportSymbol('proto.user.UserLimitsRequest', null, global);
@@ -1694,6 +1696,48 @@ if (goog.DEBUG && !COMPILED) {
1694
1696
  */
1695
1697
  proto.user.UserGameIdsResponse.displayName = 'proto.user.UserGameIdsResponse';
1696
1698
  }
1699
+ /**
1700
+ * Generated by JsPbCodeGenerator.
1701
+ * @param {Array=} opt_data Optional initial data array, typically from a
1702
+ * server response, or constructed directly in Javascript. The array is used
1703
+ * in place and becomes part of the constructed object. It is not cloned.
1704
+ * If no data is provided, the constructed object will be empty, but still
1705
+ * valid.
1706
+ * @extends {jspb.Message}
1707
+ * @constructor
1708
+ */
1709
+ proto.user.UserGameIdsFilterRequest = function(opt_data) {
1710
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.user.UserGameIdsFilterRequest.repeatedFields_, null);
1711
+ };
1712
+ goog.inherits(proto.user.UserGameIdsFilterRequest, jspb.Message);
1713
+ if (goog.DEBUG && !COMPILED) {
1714
+ /**
1715
+ * @public
1716
+ * @override
1717
+ */
1718
+ proto.user.UserGameIdsFilterRequest.displayName = 'proto.user.UserGameIdsFilterRequest';
1719
+ }
1720
+ /**
1721
+ * Generated by JsPbCodeGenerator.
1722
+ * @param {Array=} opt_data Optional initial data array, typically from a
1723
+ * server response, or constructed directly in Javascript. The array is used
1724
+ * in place and becomes part of the constructed object. It is not cloned.
1725
+ * If no data is provided, the constructed object will be empty, but still
1726
+ * valid.
1727
+ * @extends {jspb.Message}
1728
+ * @constructor
1729
+ */
1730
+ proto.user.UserGameIdsFilterResponse = function(opt_data) {
1731
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.user.UserGameIdsFilterResponse.repeatedFields_, null);
1732
+ };
1733
+ goog.inherits(proto.user.UserGameIdsFilterResponse, jspb.Message);
1734
+ if (goog.DEBUG && !COMPILED) {
1735
+ /**
1736
+ * @public
1737
+ * @override
1738
+ */
1739
+ proto.user.UserGameIdsFilterResponse.displayName = 'proto.user.UserGameIdsFilterResponse';
1740
+ }
1697
1741
 
1698
1742
 
1699
1743
 
@@ -29032,4 +29076,350 @@ proto.user.UserGameIdsResponse.prototype.setTotalPages = function(value) {
29032
29076
  };
29033
29077
 
29034
29078
 
29079
+
29080
+ /**
29081
+ * List of repeated fields within this message type.
29082
+ * @private {!Array<number>}
29083
+ * @const
29084
+ */
29085
+ proto.user.UserGameIdsFilterRequest.repeatedFields_ = [2];
29086
+
29087
+
29088
+
29089
+ if (jspb.Message.GENERATE_TO_OBJECT) {
29090
+ /**
29091
+ * Creates an object representation of this proto.
29092
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
29093
+ * Optional fields that are not set will be set to undefined.
29094
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
29095
+ * For the list of reserved names please see:
29096
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
29097
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
29098
+ * JSPB instance for transitional soy proto support:
29099
+ * http://goto/soy-param-migration
29100
+ * @return {!Object}
29101
+ */
29102
+ proto.user.UserGameIdsFilterRequest.prototype.toObject = function(opt_includeInstance) {
29103
+ return proto.user.UserGameIdsFilterRequest.toObject(opt_includeInstance, this);
29104
+ };
29105
+
29106
+
29107
+ /**
29108
+ * Static version of the {@see toObject} method.
29109
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
29110
+ * the JSPB instance for transitional soy proto support:
29111
+ * http://goto/soy-param-migration
29112
+ * @param {!proto.user.UserGameIdsFilterRequest} msg The msg instance to transform.
29113
+ * @return {!Object}
29114
+ * @suppress {unusedLocalVariables} f is only used for nested messages
29115
+ */
29116
+ proto.user.UserGameIdsFilterRequest.toObject = function(includeInstance, msg) {
29117
+ var f, obj = {
29118
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
29119
+ gameIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
29120
+ };
29121
+
29122
+ if (includeInstance) {
29123
+ obj.$jspbMessageInstance = msg;
29124
+ }
29125
+ return obj;
29126
+ };
29127
+ }
29128
+
29129
+
29130
+ /**
29131
+ * Deserializes binary data (in protobuf wire format).
29132
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
29133
+ * @return {!proto.user.UserGameIdsFilterRequest}
29134
+ */
29135
+ proto.user.UserGameIdsFilterRequest.deserializeBinary = function(bytes) {
29136
+ var reader = new jspb.BinaryReader(bytes);
29137
+ var msg = new proto.user.UserGameIdsFilterRequest;
29138
+ return proto.user.UserGameIdsFilterRequest.deserializeBinaryFromReader(msg, reader);
29139
+ };
29140
+
29141
+
29142
+ /**
29143
+ * Deserializes binary data (in protobuf wire format) from the
29144
+ * given reader into the given message object.
29145
+ * @param {!proto.user.UserGameIdsFilterRequest} msg The message object to deserialize into.
29146
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
29147
+ * @return {!proto.user.UserGameIdsFilterRequest}
29148
+ */
29149
+ proto.user.UserGameIdsFilterRequest.deserializeBinaryFromReader = function(msg, reader) {
29150
+ while (reader.nextField()) {
29151
+ if (reader.isEndGroup()) {
29152
+ break;
29153
+ }
29154
+ var field = reader.getFieldNumber();
29155
+ switch (field) {
29156
+ case 1:
29157
+ var value = /** @type {number} */ (reader.readInt32());
29158
+ msg.setUserId(value);
29159
+ break;
29160
+ case 2:
29161
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
29162
+ for (var i = 0; i < values.length; i++) {
29163
+ msg.addGameIds(values[i]);
29164
+ }
29165
+ break;
29166
+ default:
29167
+ reader.skipField();
29168
+ break;
29169
+ }
29170
+ }
29171
+ return msg;
29172
+ };
29173
+
29174
+
29175
+ /**
29176
+ * Serializes the message to binary data (in protobuf wire format).
29177
+ * @return {!Uint8Array}
29178
+ */
29179
+ proto.user.UserGameIdsFilterRequest.prototype.serializeBinary = function() {
29180
+ var writer = new jspb.BinaryWriter();
29181
+ proto.user.UserGameIdsFilterRequest.serializeBinaryToWriter(this, writer);
29182
+ return writer.getResultBuffer();
29183
+ };
29184
+
29185
+
29186
+ /**
29187
+ * Serializes the given message to binary data (in protobuf wire
29188
+ * format), writing to the given BinaryWriter.
29189
+ * @param {!proto.user.UserGameIdsFilterRequest} message
29190
+ * @param {!jspb.BinaryWriter} writer
29191
+ * @suppress {unusedLocalVariables} f is only used for nested messages
29192
+ */
29193
+ proto.user.UserGameIdsFilterRequest.serializeBinaryToWriter = function(message, writer) {
29194
+ var f = undefined;
29195
+ f = message.getUserId();
29196
+ if (f !== 0) {
29197
+ writer.writeInt32(
29198
+ 1,
29199
+ f
29200
+ );
29201
+ }
29202
+ f = message.getGameIdsList();
29203
+ if (f.length > 0) {
29204
+ writer.writePackedInt32(
29205
+ 2,
29206
+ f
29207
+ );
29208
+ }
29209
+ };
29210
+
29211
+
29212
+ /**
29213
+ * optional int32 user_id = 1;
29214
+ * @return {number}
29215
+ */
29216
+ proto.user.UserGameIdsFilterRequest.prototype.getUserId = function() {
29217
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
29218
+ };
29219
+
29220
+
29221
+ /**
29222
+ * @param {number} value
29223
+ * @return {!proto.user.UserGameIdsFilterRequest} returns this
29224
+ */
29225
+ proto.user.UserGameIdsFilterRequest.prototype.setUserId = function(value) {
29226
+ return jspb.Message.setProto3IntField(this, 1, value);
29227
+ };
29228
+
29229
+
29230
+ /**
29231
+ * repeated int32 game_ids = 2;
29232
+ * @return {!Array<number>}
29233
+ */
29234
+ proto.user.UserGameIdsFilterRequest.prototype.getGameIdsList = function() {
29235
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 2));
29236
+ };
29237
+
29238
+
29239
+ /**
29240
+ * @param {!Array<number>} value
29241
+ * @return {!proto.user.UserGameIdsFilterRequest} returns this
29242
+ */
29243
+ proto.user.UserGameIdsFilterRequest.prototype.setGameIdsList = function(value) {
29244
+ return jspb.Message.setField(this, 2, value || []);
29245
+ };
29246
+
29247
+
29248
+ /**
29249
+ * @param {number} value
29250
+ * @param {number=} opt_index
29251
+ * @return {!proto.user.UserGameIdsFilterRequest} returns this
29252
+ */
29253
+ proto.user.UserGameIdsFilterRequest.prototype.addGameIds = function(value, opt_index) {
29254
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
29255
+ };
29256
+
29257
+
29258
+ /**
29259
+ * Clears the list making it empty but non-null.
29260
+ * @return {!proto.user.UserGameIdsFilterRequest} returns this
29261
+ */
29262
+ proto.user.UserGameIdsFilterRequest.prototype.clearGameIdsList = function() {
29263
+ return this.setGameIdsList([]);
29264
+ };
29265
+
29266
+
29267
+
29268
+ /**
29269
+ * List of repeated fields within this message type.
29270
+ * @private {!Array<number>}
29271
+ * @const
29272
+ */
29273
+ proto.user.UserGameIdsFilterResponse.repeatedFields_ = [1];
29274
+
29275
+
29276
+
29277
+ if (jspb.Message.GENERATE_TO_OBJECT) {
29278
+ /**
29279
+ * Creates an object representation of this proto.
29280
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
29281
+ * Optional fields that are not set will be set to undefined.
29282
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
29283
+ * For the list of reserved names please see:
29284
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
29285
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
29286
+ * JSPB instance for transitional soy proto support:
29287
+ * http://goto/soy-param-migration
29288
+ * @return {!Object}
29289
+ */
29290
+ proto.user.UserGameIdsFilterResponse.prototype.toObject = function(opt_includeInstance) {
29291
+ return proto.user.UserGameIdsFilterResponse.toObject(opt_includeInstance, this);
29292
+ };
29293
+
29294
+
29295
+ /**
29296
+ * Static version of the {@see toObject} method.
29297
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
29298
+ * the JSPB instance for transitional soy proto support:
29299
+ * http://goto/soy-param-migration
29300
+ * @param {!proto.user.UserGameIdsFilterResponse} msg The msg instance to transform.
29301
+ * @return {!Object}
29302
+ * @suppress {unusedLocalVariables} f is only used for nested messages
29303
+ */
29304
+ proto.user.UserGameIdsFilterResponse.toObject = function(includeInstance, msg) {
29305
+ var f, obj = {
29306
+ gameIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
29307
+ };
29308
+
29309
+ if (includeInstance) {
29310
+ obj.$jspbMessageInstance = msg;
29311
+ }
29312
+ return obj;
29313
+ };
29314
+ }
29315
+
29316
+
29317
+ /**
29318
+ * Deserializes binary data (in protobuf wire format).
29319
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
29320
+ * @return {!proto.user.UserGameIdsFilterResponse}
29321
+ */
29322
+ proto.user.UserGameIdsFilterResponse.deserializeBinary = function(bytes) {
29323
+ var reader = new jspb.BinaryReader(bytes);
29324
+ var msg = new proto.user.UserGameIdsFilterResponse;
29325
+ return proto.user.UserGameIdsFilterResponse.deserializeBinaryFromReader(msg, reader);
29326
+ };
29327
+
29328
+
29329
+ /**
29330
+ * Deserializes binary data (in protobuf wire format) from the
29331
+ * given reader into the given message object.
29332
+ * @param {!proto.user.UserGameIdsFilterResponse} msg The message object to deserialize into.
29333
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
29334
+ * @return {!proto.user.UserGameIdsFilterResponse}
29335
+ */
29336
+ proto.user.UserGameIdsFilterResponse.deserializeBinaryFromReader = function(msg, reader) {
29337
+ while (reader.nextField()) {
29338
+ if (reader.isEndGroup()) {
29339
+ break;
29340
+ }
29341
+ var field = reader.getFieldNumber();
29342
+ switch (field) {
29343
+ case 1:
29344
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
29345
+ for (var i = 0; i < values.length; i++) {
29346
+ msg.addGameIds(values[i]);
29347
+ }
29348
+ break;
29349
+ default:
29350
+ reader.skipField();
29351
+ break;
29352
+ }
29353
+ }
29354
+ return msg;
29355
+ };
29356
+
29357
+
29358
+ /**
29359
+ * Serializes the message to binary data (in protobuf wire format).
29360
+ * @return {!Uint8Array}
29361
+ */
29362
+ proto.user.UserGameIdsFilterResponse.prototype.serializeBinary = function() {
29363
+ var writer = new jspb.BinaryWriter();
29364
+ proto.user.UserGameIdsFilterResponse.serializeBinaryToWriter(this, writer);
29365
+ return writer.getResultBuffer();
29366
+ };
29367
+
29368
+
29369
+ /**
29370
+ * Serializes the given message to binary data (in protobuf wire
29371
+ * format), writing to the given BinaryWriter.
29372
+ * @param {!proto.user.UserGameIdsFilterResponse} message
29373
+ * @param {!jspb.BinaryWriter} writer
29374
+ * @suppress {unusedLocalVariables} f is only used for nested messages
29375
+ */
29376
+ proto.user.UserGameIdsFilterResponse.serializeBinaryToWriter = function(message, writer) {
29377
+ var f = undefined;
29378
+ f = message.getGameIdsList();
29379
+ if (f.length > 0) {
29380
+ writer.writePackedInt32(
29381
+ 1,
29382
+ f
29383
+ );
29384
+ }
29385
+ };
29386
+
29387
+
29388
+ /**
29389
+ * repeated int32 game_ids = 1;
29390
+ * @return {!Array<number>}
29391
+ */
29392
+ proto.user.UserGameIdsFilterResponse.prototype.getGameIdsList = function() {
29393
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
29394
+ };
29395
+
29396
+
29397
+ /**
29398
+ * @param {!Array<number>} value
29399
+ * @return {!proto.user.UserGameIdsFilterResponse} returns this
29400
+ */
29401
+ proto.user.UserGameIdsFilterResponse.prototype.setGameIdsList = function(value) {
29402
+ return jspb.Message.setField(this, 1, value || []);
29403
+ };
29404
+
29405
+
29406
+ /**
29407
+ * @param {number} value
29408
+ * @param {number=} opt_index
29409
+ * @return {!proto.user.UserGameIdsFilterResponse} returns this
29410
+ */
29411
+ proto.user.UserGameIdsFilterResponse.prototype.addGameIds = function(value, opt_index) {
29412
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
29413
+ };
29414
+
29415
+
29416
+ /**
29417
+ * Clears the list making it empty but non-null.
29418
+ * @return {!proto.user.UserGameIdsFilterResponse} returns this
29419
+ */
29420
+ proto.user.UserGameIdsFilterResponse.prototype.clearGameIdsList = function() {
29421
+ return this.setGameIdsList([]);
29422
+ };
29423
+
29424
+
29035
29425
  goog.object.extend(exports, proto.user);