protobuf-platform 1.0.69 → 1.0.70

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/game/game.proto CHANGED
@@ -19,7 +19,7 @@ service Game {
19
19
  rpc readListCollections(PaginationRequest) returns (CollectionItemsResponse);
20
20
  rpc addGamesToCollection(CollectionGamesRequest) returns (CollectionStatusResponse);
21
21
  rpc removeGamesFromCollection(CollectionGamesRequest) returns (CollectionStatusResponse);
22
- rpc updateGamesPriorityInCollection(CollectionGamesPriorityRequest) returns (CollectionStatusResponse);
22
+ rpc updateGamesPriorityInCollection(GamesPriorityRequest) returns (CollectionStatusResponse);
23
23
  //Tags
24
24
  rpc createSingleTag(stream TagRequest) returns (TagResponse);
25
25
  rpc readSingleTag(GetTagRequest) returns (TagResponse);
@@ -28,7 +28,7 @@ service Game {
28
28
  rpc readListTags(PaginationRequest) returns (TagItemsResponse);
29
29
  rpc addGamesToTag(TagGamesRequest) returns (TagStatusResponse);
30
30
  rpc removeGamesFromTag(TagGamesRequest) returns (TagStatusResponse);
31
- rpc updateGamesPriorityInTag(TagGamesPriorityRequest) returns (TagStatusResponse);
31
+ rpc updateGamesPriorityInTag(GamesPriorityRequest) returns (TagStatusResponse);
32
32
  //Providers
33
33
  rpc createSingleProvider(stream ProviderRequest) returns (ProviderResponse);
34
34
  rpc readSingleProvider(GetProviderRequest) returns (ProviderResponse);
@@ -139,11 +139,6 @@ message CollectionGamesRequest {
139
139
  string game_ids = 2;
140
140
  optional string geo = 3;
141
141
  }
142
- message CollectionGamesPriorityRequest {
143
- int32 id = 1;
144
- string game_priorities = 2;
145
- optional string geo = 3;
146
- }
147
142
 
148
143
  //Tag CRUD
149
144
  message TagItem {
@@ -190,11 +185,6 @@ message TagGamesRequest {
190
185
  string game_ids = 2;
191
186
  optional string geo = 3;
192
187
  }
193
- message TagGamesPriorityRequest {
194
- int32 id = 1;
195
- string game_priorities = 2;
196
- optional string geo = 3;
197
- }
198
188
 
199
189
  //Provider CRUD
200
190
  message ProviderItem {
@@ -301,4 +291,9 @@ message SearchGamesIntoTagsRequest {
301
291
  optional string geo = 2;
302
292
  optional int32 limit = 3;
303
293
  optional int32 offset = 4;
294
+ }
295
+ message GamesPriorityRequest {
296
+ int32 id = 1;
297
+ string game_priorities = 2;
298
+ optional string geo = 3;
304
299
  }
@@ -48,17 +48,6 @@ function deserialize_game_CategoryStatusResponse(buffer_arg) {
48
48
  return game_pb.CategoryStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
49
49
  }
50
50
 
51
- function serialize_game_CollectionGamesPriorityRequest(arg) {
52
- if (!(arg instanceof game_pb.CollectionGamesPriorityRequest)) {
53
- throw new Error('Expected argument of type game.CollectionGamesPriorityRequest');
54
- }
55
- return Buffer.from(arg.serializeBinary());
56
- }
57
-
58
- function deserialize_game_CollectionGamesPriorityRequest(buffer_arg) {
59
- return game_pb.CollectionGamesPriorityRequest.deserializeBinary(new Uint8Array(buffer_arg));
60
- }
61
-
62
51
  function serialize_game_CollectionGamesRequest(arg) {
63
52
  if (!(arg instanceof game_pb.CollectionGamesRequest)) {
64
53
  throw new Error('Expected argument of type game.CollectionGamesRequest');
@@ -169,6 +158,17 @@ function deserialize_game_GameStatusResponse(buffer_arg) {
169
158
  return game_pb.GameStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
170
159
  }
171
160
 
161
+ function serialize_game_GamesPriorityRequest(arg) {
162
+ if (!(arg instanceof game_pb.GamesPriorityRequest)) {
163
+ throw new Error('Expected argument of type game.GamesPriorityRequest');
164
+ }
165
+ return Buffer.from(arg.serializeBinary());
166
+ }
167
+
168
+ function deserialize_game_GamesPriorityRequest(buffer_arg) {
169
+ return game_pb.GamesPriorityRequest.deserializeBinary(new Uint8Array(buffer_arg));
170
+ }
171
+
172
172
  function serialize_game_GetCategoryRequest(arg) {
173
173
  if (!(arg instanceof game_pb.GetCategoryRequest)) {
174
174
  throw new Error('Expected argument of type game.GetCategoryRequest');
@@ -356,17 +356,6 @@ function deserialize_game_SearchGamesIntoTagsRequest(buffer_arg) {
356
356
  return game_pb.SearchGamesIntoTagsRequest.deserializeBinary(new Uint8Array(buffer_arg));
357
357
  }
358
358
 
359
- function serialize_game_TagGamesPriorityRequest(arg) {
360
- if (!(arg instanceof game_pb.TagGamesPriorityRequest)) {
361
- throw new Error('Expected argument of type game.TagGamesPriorityRequest');
362
- }
363
- return Buffer.from(arg.serializeBinary());
364
- }
365
-
366
- function deserialize_game_TagGamesPriorityRequest(buffer_arg) {
367
- return game_pb.TagGamesPriorityRequest.deserializeBinary(new Uint8Array(buffer_arg));
368
- }
369
-
370
359
  function serialize_game_TagGamesRequest(arg) {
371
360
  if (!(arg instanceof game_pb.TagGamesRequest)) {
372
361
  throw new Error('Expected argument of type game.TagGamesRequest');
@@ -584,10 +573,10 @@ createSingleCollection: {
584
573
  path: '/game.Game/updateGamesPriorityInCollection',
585
574
  requestStream: false,
586
575
  responseStream: false,
587
- requestType: game_pb.CollectionGamesPriorityRequest,
576
+ requestType: game_pb.GamesPriorityRequest,
588
577
  responseType: game_pb.CollectionStatusResponse,
589
- requestSerialize: serialize_game_CollectionGamesPriorityRequest,
590
- requestDeserialize: deserialize_game_CollectionGamesPriorityRequest,
578
+ requestSerialize: serialize_game_GamesPriorityRequest,
579
+ requestDeserialize: deserialize_game_GamesPriorityRequest,
591
580
  responseSerialize: serialize_game_CollectionStatusResponse,
592
581
  responseDeserialize: deserialize_game_CollectionStatusResponse,
593
582
  },
@@ -673,10 +662,10 @@ createSingleTag: {
673
662
  path: '/game.Game/updateGamesPriorityInTag',
674
663
  requestStream: false,
675
664
  responseStream: false,
676
- requestType: game_pb.TagGamesPriorityRequest,
665
+ requestType: game_pb.GamesPriorityRequest,
677
666
  responseType: game_pb.TagStatusResponse,
678
- requestSerialize: serialize_game_TagGamesPriorityRequest,
679
- requestDeserialize: deserialize_game_TagGamesPriorityRequest,
667
+ requestSerialize: serialize_game_GamesPriorityRequest,
668
+ requestDeserialize: deserialize_game_GamesPriorityRequest,
680
669
  responseSerialize: serialize_game_TagStatusResponse,
681
670
  responseDeserialize: deserialize_game_TagStatusResponse,
682
671
  },
package/game/game_pb.js CHANGED
@@ -28,7 +28,6 @@ goog.exportSymbol('proto.game.CategoryRequest', null, global);
28
28
  goog.exportSymbol('proto.game.CategoryRequest.RequestCase', null, global);
29
29
  goog.exportSymbol('proto.game.CategoryResponse', null, global);
30
30
  goog.exportSymbol('proto.game.CategoryStatusResponse', null, global);
31
- goog.exportSymbol('proto.game.CollectionGamesPriorityRequest', null, global);
32
31
  goog.exportSymbol('proto.game.CollectionGamesRequest', null, global);
33
32
  goog.exportSymbol('proto.game.CollectionItem', null, global);
34
33
  goog.exportSymbol('proto.game.CollectionItemRequest', null, global);
@@ -45,6 +44,7 @@ goog.exportSymbol('proto.game.GameRequest', null, global);
45
44
  goog.exportSymbol('proto.game.GameRequest.RequestCase', null, global);
46
45
  goog.exportSymbol('proto.game.GameResponse', null, global);
47
46
  goog.exportSymbol('proto.game.GameStatusResponse', null, global);
47
+ goog.exportSymbol('proto.game.GamesPriorityRequest', null, global);
48
48
  goog.exportSymbol('proto.game.GetCategoryRequest', null, global);
49
49
  goog.exportSymbol('proto.game.GetCollectionRequest', null, global);
50
50
  goog.exportSymbol('proto.game.GetFileRequest', null, global);
@@ -65,7 +65,6 @@ goog.exportSymbol('proto.game.ProviderResponse', null, global);
65
65
  goog.exportSymbol('proto.game.ProviderStatusResponse', null, global);
66
66
  goog.exportSymbol('proto.game.SearchGamesIntoCollectionsRequest', null, global);
67
67
  goog.exportSymbol('proto.game.SearchGamesIntoTagsRequest', null, global);
68
- goog.exportSymbol('proto.game.TagGamesPriorityRequest', null, global);
69
68
  goog.exportSymbol('proto.game.TagGamesRequest', null, global);
70
69
  goog.exportSymbol('proto.game.TagItem', null, global);
71
70
  goog.exportSymbol('proto.game.TagItemRequest', null, global);
@@ -494,27 +493,6 @@ if (goog.DEBUG && !COMPILED) {
494
493
  */
495
494
  proto.game.CollectionGamesRequest.displayName = 'proto.game.CollectionGamesRequest';
496
495
  }
497
- /**
498
- * Generated by JsPbCodeGenerator.
499
- * @param {Array=} opt_data Optional initial data array, typically from a
500
- * server response, or constructed directly in Javascript. The array is used
501
- * in place and becomes part of the constructed object. It is not cloned.
502
- * If no data is provided, the constructed object will be empty, but still
503
- * valid.
504
- * @extends {jspb.Message}
505
- * @constructor
506
- */
507
- proto.game.CollectionGamesPriorityRequest = function(opt_data) {
508
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
509
- };
510
- goog.inherits(proto.game.CollectionGamesPriorityRequest, jspb.Message);
511
- if (goog.DEBUG && !COMPILED) {
512
- /**
513
- * @public
514
- * @override
515
- */
516
- proto.game.CollectionGamesPriorityRequest.displayName = 'proto.game.CollectionGamesPriorityRequest';
517
- }
518
496
  /**
519
497
  * Generated by JsPbCodeGenerator.
520
498
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -683,27 +661,6 @@ if (goog.DEBUG && !COMPILED) {
683
661
  */
684
662
  proto.game.TagGamesRequest.displayName = 'proto.game.TagGamesRequest';
685
663
  }
686
- /**
687
- * Generated by JsPbCodeGenerator.
688
- * @param {Array=} opt_data Optional initial data array, typically from a
689
- * server response, or constructed directly in Javascript. The array is used
690
- * in place and becomes part of the constructed object. It is not cloned.
691
- * If no data is provided, the constructed object will be empty, but still
692
- * valid.
693
- * @extends {jspb.Message}
694
- * @constructor
695
- */
696
- proto.game.TagGamesPriorityRequest = function(opt_data) {
697
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
698
- };
699
- goog.inherits(proto.game.TagGamesPriorityRequest, jspb.Message);
700
- if (goog.DEBUG && !COMPILED) {
701
- /**
702
- * @public
703
- * @override
704
- */
705
- proto.game.TagGamesPriorityRequest.displayName = 'proto.game.TagGamesPriorityRequest';
706
- }
707
664
  /**
708
665
  * Generated by JsPbCodeGenerator.
709
666
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1082,6 +1039,27 @@ if (goog.DEBUG && !COMPILED) {
1082
1039
  */
1083
1040
  proto.game.SearchGamesIntoTagsRequest.displayName = 'proto.game.SearchGamesIntoTagsRequest';
1084
1041
  }
1042
+ /**
1043
+ * Generated by JsPbCodeGenerator.
1044
+ * @param {Array=} opt_data Optional initial data array, typically from a
1045
+ * server response, or constructed directly in Javascript. The array is used
1046
+ * in place and becomes part of the constructed object. It is not cloned.
1047
+ * If no data is provided, the constructed object will be empty, but still
1048
+ * valid.
1049
+ * @extends {jspb.Message}
1050
+ * @constructor
1051
+ */
1052
+ proto.game.GamesPriorityRequest = function(opt_data) {
1053
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1054
+ };
1055
+ goog.inherits(proto.game.GamesPriorityRequest, jspb.Message);
1056
+ if (goog.DEBUG && !COMPILED) {
1057
+ /**
1058
+ * @public
1059
+ * @override
1060
+ */
1061
+ proto.game.GamesPriorityRequest.displayName = 'proto.game.GamesPriorityRequest';
1062
+ }
1085
1063
 
1086
1064
 
1087
1065
 
@@ -5564,214 +5542,6 @@ proto.game.CollectionGamesRequest.prototype.hasGeo = function() {
5564
5542
 
5565
5543
 
5566
5544
 
5567
- if (jspb.Message.GENERATE_TO_OBJECT) {
5568
- /**
5569
- * Creates an object representation of this proto.
5570
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
5571
- * Optional fields that are not set will be set to undefined.
5572
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5573
- * For the list of reserved names please see:
5574
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5575
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5576
- * JSPB instance for transitional soy proto support:
5577
- * http://goto/soy-param-migration
5578
- * @return {!Object}
5579
- */
5580
- proto.game.CollectionGamesPriorityRequest.prototype.toObject = function(opt_includeInstance) {
5581
- return proto.game.CollectionGamesPriorityRequest.toObject(opt_includeInstance, this);
5582
- };
5583
-
5584
-
5585
- /**
5586
- * Static version of the {@see toObject} method.
5587
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5588
- * the JSPB instance for transitional soy proto support:
5589
- * http://goto/soy-param-migration
5590
- * @param {!proto.game.CollectionGamesPriorityRequest} msg The msg instance to transform.
5591
- * @return {!Object}
5592
- * @suppress {unusedLocalVariables} f is only used for nested messages
5593
- */
5594
- proto.game.CollectionGamesPriorityRequest.toObject = function(includeInstance, msg) {
5595
- var f, obj = {
5596
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
5597
- gamePriorities: jspb.Message.getFieldWithDefault(msg, 2, ""),
5598
- geo: jspb.Message.getFieldWithDefault(msg, 3, "")
5599
- };
5600
-
5601
- if (includeInstance) {
5602
- obj.$jspbMessageInstance = msg;
5603
- }
5604
- return obj;
5605
- };
5606
- }
5607
-
5608
-
5609
- /**
5610
- * Deserializes binary data (in protobuf wire format).
5611
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
5612
- * @return {!proto.game.CollectionGamesPriorityRequest}
5613
- */
5614
- proto.game.CollectionGamesPriorityRequest.deserializeBinary = function(bytes) {
5615
- var reader = new jspb.BinaryReader(bytes);
5616
- var msg = new proto.game.CollectionGamesPriorityRequest;
5617
- return proto.game.CollectionGamesPriorityRequest.deserializeBinaryFromReader(msg, reader);
5618
- };
5619
-
5620
-
5621
- /**
5622
- * Deserializes binary data (in protobuf wire format) from the
5623
- * given reader into the given message object.
5624
- * @param {!proto.game.CollectionGamesPriorityRequest} msg The message object to deserialize into.
5625
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5626
- * @return {!proto.game.CollectionGamesPriorityRequest}
5627
- */
5628
- proto.game.CollectionGamesPriorityRequest.deserializeBinaryFromReader = function(msg, reader) {
5629
- while (reader.nextField()) {
5630
- if (reader.isEndGroup()) {
5631
- break;
5632
- }
5633
- var field = reader.getFieldNumber();
5634
- switch (field) {
5635
- case 1:
5636
- var value = /** @type {number} */ (reader.readInt32());
5637
- msg.setId(value);
5638
- break;
5639
- case 2:
5640
- var value = /** @type {string} */ (reader.readString());
5641
- msg.setGamePriorities(value);
5642
- break;
5643
- case 3:
5644
- var value = /** @type {string} */ (reader.readString());
5645
- msg.setGeo(value);
5646
- break;
5647
- default:
5648
- reader.skipField();
5649
- break;
5650
- }
5651
- }
5652
- return msg;
5653
- };
5654
-
5655
-
5656
- /**
5657
- * Serializes the message to binary data (in protobuf wire format).
5658
- * @return {!Uint8Array}
5659
- */
5660
- proto.game.CollectionGamesPriorityRequest.prototype.serializeBinary = function() {
5661
- var writer = new jspb.BinaryWriter();
5662
- proto.game.CollectionGamesPriorityRequest.serializeBinaryToWriter(this, writer);
5663
- return writer.getResultBuffer();
5664
- };
5665
-
5666
-
5667
- /**
5668
- * Serializes the given message to binary data (in protobuf wire
5669
- * format), writing to the given BinaryWriter.
5670
- * @param {!proto.game.CollectionGamesPriorityRequest} message
5671
- * @param {!jspb.BinaryWriter} writer
5672
- * @suppress {unusedLocalVariables} f is only used for nested messages
5673
- */
5674
- proto.game.CollectionGamesPriorityRequest.serializeBinaryToWriter = function(message, writer) {
5675
- var f = undefined;
5676
- f = message.getId();
5677
- if (f !== 0) {
5678
- writer.writeInt32(
5679
- 1,
5680
- f
5681
- );
5682
- }
5683
- f = message.getGamePriorities();
5684
- if (f.length > 0) {
5685
- writer.writeString(
5686
- 2,
5687
- f
5688
- );
5689
- }
5690
- f = /** @type {string} */ (jspb.Message.getField(message, 3));
5691
- if (f != null) {
5692
- writer.writeString(
5693
- 3,
5694
- f
5695
- );
5696
- }
5697
- };
5698
-
5699
-
5700
- /**
5701
- * optional int32 id = 1;
5702
- * @return {number}
5703
- */
5704
- proto.game.CollectionGamesPriorityRequest.prototype.getId = function() {
5705
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
5706
- };
5707
-
5708
-
5709
- /**
5710
- * @param {number} value
5711
- * @return {!proto.game.CollectionGamesPriorityRequest} returns this
5712
- */
5713
- proto.game.CollectionGamesPriorityRequest.prototype.setId = function(value) {
5714
- return jspb.Message.setProto3IntField(this, 1, value);
5715
- };
5716
-
5717
-
5718
- /**
5719
- * optional string game_priorities = 2;
5720
- * @return {string}
5721
- */
5722
- proto.game.CollectionGamesPriorityRequest.prototype.getGamePriorities = function() {
5723
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
5724
- };
5725
-
5726
-
5727
- /**
5728
- * @param {string} value
5729
- * @return {!proto.game.CollectionGamesPriorityRequest} returns this
5730
- */
5731
- proto.game.CollectionGamesPriorityRequest.prototype.setGamePriorities = function(value) {
5732
- return jspb.Message.setProto3StringField(this, 2, value);
5733
- };
5734
-
5735
-
5736
- /**
5737
- * optional string geo = 3;
5738
- * @return {string}
5739
- */
5740
- proto.game.CollectionGamesPriorityRequest.prototype.getGeo = function() {
5741
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
5742
- };
5743
-
5744
-
5745
- /**
5746
- * @param {string} value
5747
- * @return {!proto.game.CollectionGamesPriorityRequest} returns this
5748
- */
5749
- proto.game.CollectionGamesPriorityRequest.prototype.setGeo = function(value) {
5750
- return jspb.Message.setField(this, 3, value);
5751
- };
5752
-
5753
-
5754
- /**
5755
- * Clears the field making it undefined.
5756
- * @return {!proto.game.CollectionGamesPriorityRequest} returns this
5757
- */
5758
- proto.game.CollectionGamesPriorityRequest.prototype.clearGeo = function() {
5759
- return jspb.Message.setField(this, 3, undefined);
5760
- };
5761
-
5762
-
5763
- /**
5764
- * Returns whether this field is set.
5765
- * @return {boolean}
5766
- */
5767
- proto.game.CollectionGamesPriorityRequest.prototype.hasGeo = function() {
5768
- return jspb.Message.getField(this, 3) != null;
5769
- };
5770
-
5771
-
5772
-
5773
-
5774
-
5775
5545
  if (jspb.Message.GENERATE_TO_OBJECT) {
5776
5546
  /**
5777
5547
  * Creates an object representation of this proto.
@@ -7712,8 +7482,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
7712
7482
  * http://goto/soy-param-migration
7713
7483
  * @return {!Object}
7714
7484
  */
7715
- proto.game.TagGamesPriorityRequest.prototype.toObject = function(opt_includeInstance) {
7716
- return proto.game.TagGamesPriorityRequest.toObject(opt_includeInstance, this);
7485
+ proto.game.ProviderItem.prototype.toObject = function(opt_includeInstance) {
7486
+ return proto.game.ProviderItem.toObject(opt_includeInstance, this);
7717
7487
  };
7718
7488
 
7719
7489
 
@@ -7722,15 +7492,18 @@ proto.game.TagGamesPriorityRequest.prototype.toObject = function(opt_includeInst
7722
7492
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7723
7493
  * the JSPB instance for transitional soy proto support:
7724
7494
  * http://goto/soy-param-migration
7725
- * @param {!proto.game.TagGamesPriorityRequest} msg The msg instance to transform.
7495
+ * @param {!proto.game.ProviderItem} msg The msg instance to transform.
7726
7496
  * @return {!Object}
7727
7497
  * @suppress {unusedLocalVariables} f is only used for nested messages
7728
7498
  */
7729
- proto.game.TagGamesPriorityRequest.toObject = function(includeInstance, msg) {
7499
+ proto.game.ProviderItem.toObject = function(includeInstance, msg) {
7730
7500
  var f, obj = {
7731
7501
  id: jspb.Message.getFieldWithDefault(msg, 1, 0),
7732
- gamePriorities: jspb.Message.getFieldWithDefault(msg, 2, ""),
7733
- geo: jspb.Message.getFieldWithDefault(msg, 3, "")
7502
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
7503
+ slug: jspb.Message.getFieldWithDefault(msg, 3, ""),
7504
+ description: jspb.Message.getFieldWithDefault(msg, 4, ""),
7505
+ isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
7506
+ image: jspb.Message.getFieldWithDefault(msg, 6, "")
7734
7507
  };
7735
7508
 
7736
7509
  if (includeInstance) {
@@ -7744,23 +7517,23 @@ proto.game.TagGamesPriorityRequest.toObject = function(includeInstance, msg) {
7744
7517
  /**
7745
7518
  * Deserializes binary data (in protobuf wire format).
7746
7519
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
7747
- * @return {!proto.game.TagGamesPriorityRequest}
7520
+ * @return {!proto.game.ProviderItem}
7748
7521
  */
7749
- proto.game.TagGamesPriorityRequest.deserializeBinary = function(bytes) {
7522
+ proto.game.ProviderItem.deserializeBinary = function(bytes) {
7750
7523
  var reader = new jspb.BinaryReader(bytes);
7751
- var msg = new proto.game.TagGamesPriorityRequest;
7752
- return proto.game.TagGamesPriorityRequest.deserializeBinaryFromReader(msg, reader);
7524
+ var msg = new proto.game.ProviderItem;
7525
+ return proto.game.ProviderItem.deserializeBinaryFromReader(msg, reader);
7753
7526
  };
7754
7527
 
7755
7528
 
7756
7529
  /**
7757
7530
  * Deserializes binary data (in protobuf wire format) from the
7758
7531
  * given reader into the given message object.
7759
- * @param {!proto.game.TagGamesPriorityRequest} msg The message object to deserialize into.
7532
+ * @param {!proto.game.ProviderItem} msg The message object to deserialize into.
7760
7533
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7761
- * @return {!proto.game.TagGamesPriorityRequest}
7534
+ * @return {!proto.game.ProviderItem}
7762
7535
  */
7763
- proto.game.TagGamesPriorityRequest.deserializeBinaryFromReader = function(msg, reader) {
7536
+ proto.game.ProviderItem.deserializeBinaryFromReader = function(msg, reader) {
7764
7537
  while (reader.nextField()) {
7765
7538
  if (reader.isEndGroup()) {
7766
7539
  break;
@@ -7773,218 +7546,7 @@ proto.game.TagGamesPriorityRequest.deserializeBinaryFromReader = function(msg, r
7773
7546
  break;
7774
7547
  case 2:
7775
7548
  var value = /** @type {string} */ (reader.readString());
7776
- msg.setGamePriorities(value);
7777
- break;
7778
- case 3:
7779
- var value = /** @type {string} */ (reader.readString());
7780
- msg.setGeo(value);
7781
- break;
7782
- default:
7783
- reader.skipField();
7784
- break;
7785
- }
7786
- }
7787
- return msg;
7788
- };
7789
-
7790
-
7791
- /**
7792
- * Serializes the message to binary data (in protobuf wire format).
7793
- * @return {!Uint8Array}
7794
- */
7795
- proto.game.TagGamesPriorityRequest.prototype.serializeBinary = function() {
7796
- var writer = new jspb.BinaryWriter();
7797
- proto.game.TagGamesPriorityRequest.serializeBinaryToWriter(this, writer);
7798
- return writer.getResultBuffer();
7799
- };
7800
-
7801
-
7802
- /**
7803
- * Serializes the given message to binary data (in protobuf wire
7804
- * format), writing to the given BinaryWriter.
7805
- * @param {!proto.game.TagGamesPriorityRequest} message
7806
- * @param {!jspb.BinaryWriter} writer
7807
- * @suppress {unusedLocalVariables} f is only used for nested messages
7808
- */
7809
- proto.game.TagGamesPriorityRequest.serializeBinaryToWriter = function(message, writer) {
7810
- var f = undefined;
7811
- f = message.getId();
7812
- if (f !== 0) {
7813
- writer.writeInt32(
7814
- 1,
7815
- f
7816
- );
7817
- }
7818
- f = message.getGamePriorities();
7819
- if (f.length > 0) {
7820
- writer.writeString(
7821
- 2,
7822
- f
7823
- );
7824
- }
7825
- f = /** @type {string} */ (jspb.Message.getField(message, 3));
7826
- if (f != null) {
7827
- writer.writeString(
7828
- 3,
7829
- f
7830
- );
7831
- }
7832
- };
7833
-
7834
-
7835
- /**
7836
- * optional int32 id = 1;
7837
- * @return {number}
7838
- */
7839
- proto.game.TagGamesPriorityRequest.prototype.getId = function() {
7840
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
7841
- };
7842
-
7843
-
7844
- /**
7845
- * @param {number} value
7846
- * @return {!proto.game.TagGamesPriorityRequest} returns this
7847
- */
7848
- proto.game.TagGamesPriorityRequest.prototype.setId = function(value) {
7849
- return jspb.Message.setProto3IntField(this, 1, value);
7850
- };
7851
-
7852
-
7853
- /**
7854
- * optional string game_priorities = 2;
7855
- * @return {string}
7856
- */
7857
- proto.game.TagGamesPriorityRequest.prototype.getGamePriorities = function() {
7858
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
7859
- };
7860
-
7861
-
7862
- /**
7863
- * @param {string} value
7864
- * @return {!proto.game.TagGamesPriorityRequest} returns this
7865
- */
7866
- proto.game.TagGamesPriorityRequest.prototype.setGamePriorities = function(value) {
7867
- return jspb.Message.setProto3StringField(this, 2, value);
7868
- };
7869
-
7870
-
7871
- /**
7872
- * optional string geo = 3;
7873
- * @return {string}
7874
- */
7875
- proto.game.TagGamesPriorityRequest.prototype.getGeo = function() {
7876
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
7877
- };
7878
-
7879
-
7880
- /**
7881
- * @param {string} value
7882
- * @return {!proto.game.TagGamesPriorityRequest} returns this
7883
- */
7884
- proto.game.TagGamesPriorityRequest.prototype.setGeo = function(value) {
7885
- return jspb.Message.setField(this, 3, value);
7886
- };
7887
-
7888
-
7889
- /**
7890
- * Clears the field making it undefined.
7891
- * @return {!proto.game.TagGamesPriorityRequest} returns this
7892
- */
7893
- proto.game.TagGamesPriorityRequest.prototype.clearGeo = function() {
7894
- return jspb.Message.setField(this, 3, undefined);
7895
- };
7896
-
7897
-
7898
- /**
7899
- * Returns whether this field is set.
7900
- * @return {boolean}
7901
- */
7902
- proto.game.TagGamesPriorityRequest.prototype.hasGeo = function() {
7903
- return jspb.Message.getField(this, 3) != null;
7904
- };
7905
-
7906
-
7907
-
7908
-
7909
-
7910
- if (jspb.Message.GENERATE_TO_OBJECT) {
7911
- /**
7912
- * Creates an object representation of this proto.
7913
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
7914
- * Optional fields that are not set will be set to undefined.
7915
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7916
- * For the list of reserved names please see:
7917
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7918
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7919
- * JSPB instance for transitional soy proto support:
7920
- * http://goto/soy-param-migration
7921
- * @return {!Object}
7922
- */
7923
- proto.game.ProviderItem.prototype.toObject = function(opt_includeInstance) {
7924
- return proto.game.ProviderItem.toObject(opt_includeInstance, this);
7925
- };
7926
-
7927
-
7928
- /**
7929
- * Static version of the {@see toObject} method.
7930
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7931
- * the JSPB instance for transitional soy proto support:
7932
- * http://goto/soy-param-migration
7933
- * @param {!proto.game.ProviderItem} msg The msg instance to transform.
7934
- * @return {!Object}
7935
- * @suppress {unusedLocalVariables} f is only used for nested messages
7936
- */
7937
- proto.game.ProviderItem.toObject = function(includeInstance, msg) {
7938
- var f, obj = {
7939
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
7940
- title: jspb.Message.getFieldWithDefault(msg, 2, ""),
7941
- slug: jspb.Message.getFieldWithDefault(msg, 3, ""),
7942
- description: jspb.Message.getFieldWithDefault(msg, 4, ""),
7943
- isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
7944
- image: jspb.Message.getFieldWithDefault(msg, 6, "")
7945
- };
7946
-
7947
- if (includeInstance) {
7948
- obj.$jspbMessageInstance = msg;
7949
- }
7950
- return obj;
7951
- };
7952
- }
7953
-
7954
-
7955
- /**
7956
- * Deserializes binary data (in protobuf wire format).
7957
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
7958
- * @return {!proto.game.ProviderItem}
7959
- */
7960
- proto.game.ProviderItem.deserializeBinary = function(bytes) {
7961
- var reader = new jspb.BinaryReader(bytes);
7962
- var msg = new proto.game.ProviderItem;
7963
- return proto.game.ProviderItem.deserializeBinaryFromReader(msg, reader);
7964
- };
7965
-
7966
-
7967
- /**
7968
- * Deserializes binary data (in protobuf wire format) from the
7969
- * given reader into the given message object.
7970
- * @param {!proto.game.ProviderItem} msg The message object to deserialize into.
7971
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7972
- * @return {!proto.game.ProviderItem}
7973
- */
7974
- proto.game.ProviderItem.deserializeBinaryFromReader = function(msg, reader) {
7975
- while (reader.nextField()) {
7976
- if (reader.isEndGroup()) {
7977
- break;
7978
- }
7979
- var field = reader.getFieldNumber();
7980
- switch (field) {
7981
- case 1:
7982
- var value = /** @type {number} */ (reader.readInt32());
7983
- msg.setId(value);
7984
- break;
7985
- case 2:
7986
- var value = /** @type {string} */ (reader.readString());
7987
- msg.setTitle(value);
7549
+ msg.setTitle(value);
7988
7550
  break;
7989
7551
  case 3:
7990
7552
  var value = /** @type {string} */ (reader.readString());
@@ -12636,4 +12198,212 @@ proto.game.SearchGamesIntoTagsRequest.prototype.hasOffset = function() {
12636
12198
  };
12637
12199
 
12638
12200
 
12201
+
12202
+
12203
+
12204
+ if (jspb.Message.GENERATE_TO_OBJECT) {
12205
+ /**
12206
+ * Creates an object representation of this proto.
12207
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
12208
+ * Optional fields that are not set will be set to undefined.
12209
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
12210
+ * For the list of reserved names please see:
12211
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
12212
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
12213
+ * JSPB instance for transitional soy proto support:
12214
+ * http://goto/soy-param-migration
12215
+ * @return {!Object}
12216
+ */
12217
+ proto.game.GamesPriorityRequest.prototype.toObject = function(opt_includeInstance) {
12218
+ return proto.game.GamesPriorityRequest.toObject(opt_includeInstance, this);
12219
+ };
12220
+
12221
+
12222
+ /**
12223
+ * Static version of the {@see toObject} method.
12224
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
12225
+ * the JSPB instance for transitional soy proto support:
12226
+ * http://goto/soy-param-migration
12227
+ * @param {!proto.game.GamesPriorityRequest} msg The msg instance to transform.
12228
+ * @return {!Object}
12229
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12230
+ */
12231
+ proto.game.GamesPriorityRequest.toObject = function(includeInstance, msg) {
12232
+ var f, obj = {
12233
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
12234
+ gamePriorities: jspb.Message.getFieldWithDefault(msg, 2, ""),
12235
+ geo: jspb.Message.getFieldWithDefault(msg, 3, "")
12236
+ };
12237
+
12238
+ if (includeInstance) {
12239
+ obj.$jspbMessageInstance = msg;
12240
+ }
12241
+ return obj;
12242
+ };
12243
+ }
12244
+
12245
+
12246
+ /**
12247
+ * Deserializes binary data (in protobuf wire format).
12248
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
12249
+ * @return {!proto.game.GamesPriorityRequest}
12250
+ */
12251
+ proto.game.GamesPriorityRequest.deserializeBinary = function(bytes) {
12252
+ var reader = new jspb.BinaryReader(bytes);
12253
+ var msg = new proto.game.GamesPriorityRequest;
12254
+ return proto.game.GamesPriorityRequest.deserializeBinaryFromReader(msg, reader);
12255
+ };
12256
+
12257
+
12258
+ /**
12259
+ * Deserializes binary data (in protobuf wire format) from the
12260
+ * given reader into the given message object.
12261
+ * @param {!proto.game.GamesPriorityRequest} msg The message object to deserialize into.
12262
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
12263
+ * @return {!proto.game.GamesPriorityRequest}
12264
+ */
12265
+ proto.game.GamesPriorityRequest.deserializeBinaryFromReader = function(msg, reader) {
12266
+ while (reader.nextField()) {
12267
+ if (reader.isEndGroup()) {
12268
+ break;
12269
+ }
12270
+ var field = reader.getFieldNumber();
12271
+ switch (field) {
12272
+ case 1:
12273
+ var value = /** @type {number} */ (reader.readInt32());
12274
+ msg.setId(value);
12275
+ break;
12276
+ case 2:
12277
+ var value = /** @type {string} */ (reader.readString());
12278
+ msg.setGamePriorities(value);
12279
+ break;
12280
+ case 3:
12281
+ var value = /** @type {string} */ (reader.readString());
12282
+ msg.setGeo(value);
12283
+ break;
12284
+ default:
12285
+ reader.skipField();
12286
+ break;
12287
+ }
12288
+ }
12289
+ return msg;
12290
+ };
12291
+
12292
+
12293
+ /**
12294
+ * Serializes the message to binary data (in protobuf wire format).
12295
+ * @return {!Uint8Array}
12296
+ */
12297
+ proto.game.GamesPriorityRequest.prototype.serializeBinary = function() {
12298
+ var writer = new jspb.BinaryWriter();
12299
+ proto.game.GamesPriorityRequest.serializeBinaryToWriter(this, writer);
12300
+ return writer.getResultBuffer();
12301
+ };
12302
+
12303
+
12304
+ /**
12305
+ * Serializes the given message to binary data (in protobuf wire
12306
+ * format), writing to the given BinaryWriter.
12307
+ * @param {!proto.game.GamesPriorityRequest} message
12308
+ * @param {!jspb.BinaryWriter} writer
12309
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12310
+ */
12311
+ proto.game.GamesPriorityRequest.serializeBinaryToWriter = function(message, writer) {
12312
+ var f = undefined;
12313
+ f = message.getId();
12314
+ if (f !== 0) {
12315
+ writer.writeInt32(
12316
+ 1,
12317
+ f
12318
+ );
12319
+ }
12320
+ f = message.getGamePriorities();
12321
+ if (f.length > 0) {
12322
+ writer.writeString(
12323
+ 2,
12324
+ f
12325
+ );
12326
+ }
12327
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
12328
+ if (f != null) {
12329
+ writer.writeString(
12330
+ 3,
12331
+ f
12332
+ );
12333
+ }
12334
+ };
12335
+
12336
+
12337
+ /**
12338
+ * optional int32 id = 1;
12339
+ * @return {number}
12340
+ */
12341
+ proto.game.GamesPriorityRequest.prototype.getId = function() {
12342
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
12343
+ };
12344
+
12345
+
12346
+ /**
12347
+ * @param {number} value
12348
+ * @return {!proto.game.GamesPriorityRequest} returns this
12349
+ */
12350
+ proto.game.GamesPriorityRequest.prototype.setId = function(value) {
12351
+ return jspb.Message.setProto3IntField(this, 1, value);
12352
+ };
12353
+
12354
+
12355
+ /**
12356
+ * optional string game_priorities = 2;
12357
+ * @return {string}
12358
+ */
12359
+ proto.game.GamesPriorityRequest.prototype.getGamePriorities = function() {
12360
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
12361
+ };
12362
+
12363
+
12364
+ /**
12365
+ * @param {string} value
12366
+ * @return {!proto.game.GamesPriorityRequest} returns this
12367
+ */
12368
+ proto.game.GamesPriorityRequest.prototype.setGamePriorities = function(value) {
12369
+ return jspb.Message.setProto3StringField(this, 2, value);
12370
+ };
12371
+
12372
+
12373
+ /**
12374
+ * optional string geo = 3;
12375
+ * @return {string}
12376
+ */
12377
+ proto.game.GamesPriorityRequest.prototype.getGeo = function() {
12378
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
12379
+ };
12380
+
12381
+
12382
+ /**
12383
+ * @param {string} value
12384
+ * @return {!proto.game.GamesPriorityRequest} returns this
12385
+ */
12386
+ proto.game.GamesPriorityRequest.prototype.setGeo = function(value) {
12387
+ return jspb.Message.setField(this, 3, value);
12388
+ };
12389
+
12390
+
12391
+ /**
12392
+ * Clears the field making it undefined.
12393
+ * @return {!proto.game.GamesPriorityRequest} returns this
12394
+ */
12395
+ proto.game.GamesPriorityRequest.prototype.clearGeo = function() {
12396
+ return jspb.Message.setField(this, 3, undefined);
12397
+ };
12398
+
12399
+
12400
+ /**
12401
+ * Returns whether this field is set.
12402
+ * @return {boolean}
12403
+ */
12404
+ proto.game.GamesPriorityRequest.prototype.hasGeo = function() {
12405
+ return jspb.Message.getField(this, 3) != null;
12406
+ };
12407
+
12408
+
12639
12409
  goog.object.extend(exports, proto.game);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.69",
3
+ "version": "1.0.70",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {