protobuf-platform 1.2.160 → 1.2.163

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
@@ -20,6 +20,8 @@ service CMS {
20
20
  rpc getFooterBlocks(GetFooterWidgetRequest) returns (FooterBlocks);
21
21
  rpc setGameBarWidget(CommonWidgetRequest) returns (GameBarWidgetItem);
22
22
  rpc getGameBarWidget(GetGameBarWidgetRequest) returns (GameBarWidgetItem);
23
+ rpc setProfileMenuWidget(CommonWidgetRequest) returns (ProfileMenuWidgetItem);
24
+ rpc getProfileMenuWidget(GetProfileMenuWidgetRequest) returns (ProfileMenuWidgetItem);
23
25
  //Banners
24
26
  rpc createSingleBanner(stream BannerRequest) returns (BannerResponse);
25
27
  rpc readSingleBanner(GetBannerRequest) returns (BannerResponse);
@@ -190,6 +192,15 @@ message GameBarWidgetItem {
190
192
  string geo = 1;
191
193
  string content = 2;
192
194
  }
195
+ message GetProfileMenuWidgetRequest {
196
+ optional string geo = 1;
197
+ optional bool admin_side = 2;
198
+ }
199
+
200
+ message ProfileMenuWidgetItem {
201
+ string geo = 1;
202
+ string content = 2;
203
+ }
193
204
  //Banners CRUD
194
205
  message BannerRequest {
195
206
  oneof request {
@@ -631,6 +631,17 @@ function deserialize_cms_GetPageTranslationRequest(buffer_arg) {
631
631
  return cms_pb.GetPageTranslationRequest.deserializeBinary(new Uint8Array(buffer_arg));
632
632
  }
633
633
 
634
+ function serialize_cms_GetProfileMenuWidgetRequest(arg) {
635
+ if (!(arg instanceof cms_pb.GetProfileMenuWidgetRequest)) {
636
+ throw new Error('Expected argument of type cms.GetProfileMenuWidgetRequest');
637
+ }
638
+ return Buffer.from(arg.serializeBinary());
639
+ }
640
+
641
+ function deserialize_cms_GetProfileMenuWidgetRequest(buffer_arg) {
642
+ return cms_pb.GetProfileMenuWidgetRequest.deserializeBinary(new Uint8Array(buffer_arg));
643
+ }
644
+
634
645
  function serialize_cms_GetPromoRequest(arg) {
635
646
  if (!(arg instanceof cms_pb.GetPromoRequest)) {
636
647
  throw new Error('Expected argument of type cms.GetPromoRequest');
@@ -807,6 +818,17 @@ function deserialize_cms_PongResponse(buffer_arg) {
807
818
  return cms_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
808
819
  }
809
820
 
821
+ function serialize_cms_ProfileMenuWidgetItem(arg) {
822
+ if (!(arg instanceof cms_pb.ProfileMenuWidgetItem)) {
823
+ throw new Error('Expected argument of type cms.ProfileMenuWidgetItem');
824
+ }
825
+ return Buffer.from(arg.serializeBinary());
826
+ }
827
+
828
+ function deserialize_cms_ProfileMenuWidgetItem(buffer_arg) {
829
+ return cms_pb.ProfileMenuWidgetItem.deserializeBinary(new Uint8Array(buffer_arg));
830
+ }
831
+
810
832
  function serialize_cms_PromoRequest(arg) {
811
833
  if (!(arg instanceof cms_pb.PromoRequest)) {
812
834
  throw new Error('Expected argument of type cms.PromoRequest');
@@ -1074,6 +1096,28 @@ setMainPageWidget: {
1074
1096
  responseSerialize: serialize_cms_GameBarWidgetItem,
1075
1097
  responseDeserialize: deserialize_cms_GameBarWidgetItem,
1076
1098
  },
1099
+ setProfileMenuWidget: {
1100
+ path: '/cms.CMS/setProfileMenuWidget',
1101
+ requestStream: false,
1102
+ responseStream: false,
1103
+ requestType: cms_pb.CommonWidgetRequest,
1104
+ responseType: cms_pb.ProfileMenuWidgetItem,
1105
+ requestSerialize: serialize_cms_CommonWidgetRequest,
1106
+ requestDeserialize: deserialize_cms_CommonWidgetRequest,
1107
+ responseSerialize: serialize_cms_ProfileMenuWidgetItem,
1108
+ responseDeserialize: deserialize_cms_ProfileMenuWidgetItem,
1109
+ },
1110
+ getProfileMenuWidget: {
1111
+ path: '/cms.CMS/getProfileMenuWidget',
1112
+ requestStream: false,
1113
+ responseStream: false,
1114
+ requestType: cms_pb.GetProfileMenuWidgetRequest,
1115
+ responseType: cms_pb.ProfileMenuWidgetItem,
1116
+ requestSerialize: serialize_cms_GetProfileMenuWidgetRequest,
1117
+ requestDeserialize: deserialize_cms_GetProfileMenuWidgetRequest,
1118
+ responseSerialize: serialize_cms_ProfileMenuWidgetItem,
1119
+ responseDeserialize: deserialize_cms_ProfileMenuWidgetItem,
1120
+ },
1077
1121
  // Banners
1078
1122
  createSingleBanner: {
1079
1123
  path: '/cms.CMS/createSingleBanner',
package/cms/cms_pb.js CHANGED
@@ -107,6 +107,7 @@ goog.exportSymbol('proto.cms.GetHeaderWidgetRequest', null, global);
107
107
  goog.exportSymbol('proto.cms.GetMainPageWidgetRequest', null, global);
108
108
  goog.exportSymbol('proto.cms.GetPageRequest', null, global);
109
109
  goog.exportSymbol('proto.cms.GetPageTranslationRequest', null, global);
110
+ goog.exportSymbol('proto.cms.GetProfileMenuWidgetRequest', null, global);
110
111
  goog.exportSymbol('proto.cms.GetPromoRequest', null, global);
111
112
  goog.exportSymbol('proto.cms.GetPromoTranslationRequest', null, global);
112
113
  goog.exportSymbol('proto.cms.GetSignUpFormWidgetRequest', null, global);
@@ -125,6 +126,7 @@ goog.exportSymbol('proto.cms.PagesItemsResponse', null, global);
125
126
  goog.exportSymbol('proto.cms.PaginationRequest', null, global);
126
127
  goog.exportSymbol('proto.cms.PingRequest', null, global);
127
128
  goog.exportSymbol('proto.cms.PongResponse', null, global);
129
+ goog.exportSymbol('proto.cms.ProfileMenuWidgetItem', null, global);
128
130
  goog.exportSymbol('proto.cms.PromoItem', null, global);
129
131
  goog.exportSymbol('proto.cms.PromoItemRequest', null, global);
130
132
  goog.exportSymbol('proto.cms.PromoRequest', null, global);
@@ -600,6 +602,48 @@ if (goog.DEBUG && !COMPILED) {
600
602
  */
601
603
  proto.cms.GameBarWidgetItem.displayName = 'proto.cms.GameBarWidgetItem';
602
604
  }
605
+ /**
606
+ * Generated by JsPbCodeGenerator.
607
+ * @param {Array=} opt_data Optional initial data array, typically from a
608
+ * server response, or constructed directly in Javascript. The array is used
609
+ * in place and becomes part of the constructed object. It is not cloned.
610
+ * If no data is provided, the constructed object will be empty, but still
611
+ * valid.
612
+ * @extends {jspb.Message}
613
+ * @constructor
614
+ */
615
+ proto.cms.GetProfileMenuWidgetRequest = function(opt_data) {
616
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
617
+ };
618
+ goog.inherits(proto.cms.GetProfileMenuWidgetRequest, jspb.Message);
619
+ if (goog.DEBUG && !COMPILED) {
620
+ /**
621
+ * @public
622
+ * @override
623
+ */
624
+ proto.cms.GetProfileMenuWidgetRequest.displayName = 'proto.cms.GetProfileMenuWidgetRequest';
625
+ }
626
+ /**
627
+ * Generated by JsPbCodeGenerator.
628
+ * @param {Array=} opt_data Optional initial data array, typically from a
629
+ * server response, or constructed directly in Javascript. The array is used
630
+ * in place and becomes part of the constructed object. It is not cloned.
631
+ * If no data is provided, the constructed object will be empty, but still
632
+ * valid.
633
+ * @extends {jspb.Message}
634
+ * @constructor
635
+ */
636
+ proto.cms.ProfileMenuWidgetItem = function(opt_data) {
637
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
638
+ };
639
+ goog.inherits(proto.cms.ProfileMenuWidgetItem, jspb.Message);
640
+ if (goog.DEBUG && !COMPILED) {
641
+ /**
642
+ * @public
643
+ * @override
644
+ */
645
+ proto.cms.ProfileMenuWidgetItem.displayName = 'proto.cms.ProfileMenuWidgetItem';
646
+ }
603
647
  /**
604
648
  * Generated by JsPbCodeGenerator.
605
649
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -6974,6 +7018,362 @@ proto.cms.GameBarWidgetItem.prototype.setContent = function(value) {
6974
7018
 
6975
7019
 
6976
7020
 
7021
+
7022
+
7023
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7024
+ /**
7025
+ * Creates an object representation of this proto.
7026
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7027
+ * Optional fields that are not set will be set to undefined.
7028
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7029
+ * For the list of reserved names please see:
7030
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7031
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7032
+ * JSPB instance for transitional soy proto support:
7033
+ * http://goto/soy-param-migration
7034
+ * @return {!Object}
7035
+ */
7036
+ proto.cms.GetProfileMenuWidgetRequest.prototype.toObject = function(opt_includeInstance) {
7037
+ return proto.cms.GetProfileMenuWidgetRequest.toObject(opt_includeInstance, this);
7038
+ };
7039
+
7040
+
7041
+ /**
7042
+ * Static version of the {@see toObject} method.
7043
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7044
+ * the JSPB instance for transitional soy proto support:
7045
+ * http://goto/soy-param-migration
7046
+ * @param {!proto.cms.GetProfileMenuWidgetRequest} msg The msg instance to transform.
7047
+ * @return {!Object}
7048
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7049
+ */
7050
+ proto.cms.GetProfileMenuWidgetRequest.toObject = function(includeInstance, msg) {
7051
+ var f, obj = {
7052
+ geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
7053
+ adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
7054
+ };
7055
+
7056
+ if (includeInstance) {
7057
+ obj.$jspbMessageInstance = msg;
7058
+ }
7059
+ return obj;
7060
+ };
7061
+ }
7062
+
7063
+
7064
+ /**
7065
+ * Deserializes binary data (in protobuf wire format).
7066
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7067
+ * @return {!proto.cms.GetProfileMenuWidgetRequest}
7068
+ */
7069
+ proto.cms.GetProfileMenuWidgetRequest.deserializeBinary = function(bytes) {
7070
+ var reader = new jspb.BinaryReader(bytes);
7071
+ var msg = new proto.cms.GetProfileMenuWidgetRequest;
7072
+ return proto.cms.GetProfileMenuWidgetRequest.deserializeBinaryFromReader(msg, reader);
7073
+ };
7074
+
7075
+
7076
+ /**
7077
+ * Deserializes binary data (in protobuf wire format) from the
7078
+ * given reader into the given message object.
7079
+ * @param {!proto.cms.GetProfileMenuWidgetRequest} msg The message object to deserialize into.
7080
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7081
+ * @return {!proto.cms.GetProfileMenuWidgetRequest}
7082
+ */
7083
+ proto.cms.GetProfileMenuWidgetRequest.deserializeBinaryFromReader = function(msg, reader) {
7084
+ while (reader.nextField()) {
7085
+ if (reader.isEndGroup()) {
7086
+ break;
7087
+ }
7088
+ var field = reader.getFieldNumber();
7089
+ switch (field) {
7090
+ case 1:
7091
+ var value = /** @type {string} */ (reader.readString());
7092
+ msg.setGeo(value);
7093
+ break;
7094
+ case 2:
7095
+ var value = /** @type {boolean} */ (reader.readBool());
7096
+ msg.setAdminSide(value);
7097
+ break;
7098
+ default:
7099
+ reader.skipField();
7100
+ break;
7101
+ }
7102
+ }
7103
+ return msg;
7104
+ };
7105
+
7106
+
7107
+ /**
7108
+ * Serializes the message to binary data (in protobuf wire format).
7109
+ * @return {!Uint8Array}
7110
+ */
7111
+ proto.cms.GetProfileMenuWidgetRequest.prototype.serializeBinary = function() {
7112
+ var writer = new jspb.BinaryWriter();
7113
+ proto.cms.GetProfileMenuWidgetRequest.serializeBinaryToWriter(this, writer);
7114
+ return writer.getResultBuffer();
7115
+ };
7116
+
7117
+
7118
+ /**
7119
+ * Serializes the given message to binary data (in protobuf wire
7120
+ * format), writing to the given BinaryWriter.
7121
+ * @param {!proto.cms.GetProfileMenuWidgetRequest} message
7122
+ * @param {!jspb.BinaryWriter} writer
7123
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7124
+ */
7125
+ proto.cms.GetProfileMenuWidgetRequest.serializeBinaryToWriter = function(message, writer) {
7126
+ var f = undefined;
7127
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
7128
+ if (f != null) {
7129
+ writer.writeString(
7130
+ 1,
7131
+ f
7132
+ );
7133
+ }
7134
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
7135
+ if (f != null) {
7136
+ writer.writeBool(
7137
+ 2,
7138
+ f
7139
+ );
7140
+ }
7141
+ };
7142
+
7143
+
7144
+ /**
7145
+ * optional string geo = 1;
7146
+ * @return {string}
7147
+ */
7148
+ proto.cms.GetProfileMenuWidgetRequest.prototype.getGeo = function() {
7149
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
7150
+ };
7151
+
7152
+
7153
+ /**
7154
+ * @param {string} value
7155
+ * @return {!proto.cms.GetProfileMenuWidgetRequest} returns this
7156
+ */
7157
+ proto.cms.GetProfileMenuWidgetRequest.prototype.setGeo = function(value) {
7158
+ return jspb.Message.setField(this, 1, value);
7159
+ };
7160
+
7161
+
7162
+ /**
7163
+ * Clears the field making it undefined.
7164
+ * @return {!proto.cms.GetProfileMenuWidgetRequest} returns this
7165
+ */
7166
+ proto.cms.GetProfileMenuWidgetRequest.prototype.clearGeo = function() {
7167
+ return jspb.Message.setField(this, 1, undefined);
7168
+ };
7169
+
7170
+
7171
+ /**
7172
+ * Returns whether this field is set.
7173
+ * @return {boolean}
7174
+ */
7175
+ proto.cms.GetProfileMenuWidgetRequest.prototype.hasGeo = function() {
7176
+ return jspb.Message.getField(this, 1) != null;
7177
+ };
7178
+
7179
+
7180
+ /**
7181
+ * optional bool admin_side = 2;
7182
+ * @return {boolean}
7183
+ */
7184
+ proto.cms.GetProfileMenuWidgetRequest.prototype.getAdminSide = function() {
7185
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
7186
+ };
7187
+
7188
+
7189
+ /**
7190
+ * @param {boolean} value
7191
+ * @return {!proto.cms.GetProfileMenuWidgetRequest} returns this
7192
+ */
7193
+ proto.cms.GetProfileMenuWidgetRequest.prototype.setAdminSide = function(value) {
7194
+ return jspb.Message.setField(this, 2, value);
7195
+ };
7196
+
7197
+
7198
+ /**
7199
+ * Clears the field making it undefined.
7200
+ * @return {!proto.cms.GetProfileMenuWidgetRequest} returns this
7201
+ */
7202
+ proto.cms.GetProfileMenuWidgetRequest.prototype.clearAdminSide = function() {
7203
+ return jspb.Message.setField(this, 2, undefined);
7204
+ };
7205
+
7206
+
7207
+ /**
7208
+ * Returns whether this field is set.
7209
+ * @return {boolean}
7210
+ */
7211
+ proto.cms.GetProfileMenuWidgetRequest.prototype.hasAdminSide = function() {
7212
+ return jspb.Message.getField(this, 2) != null;
7213
+ };
7214
+
7215
+
7216
+
7217
+
7218
+
7219
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7220
+ /**
7221
+ * Creates an object representation of this proto.
7222
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7223
+ * Optional fields that are not set will be set to undefined.
7224
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7225
+ * For the list of reserved names please see:
7226
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7227
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7228
+ * JSPB instance for transitional soy proto support:
7229
+ * http://goto/soy-param-migration
7230
+ * @return {!Object}
7231
+ */
7232
+ proto.cms.ProfileMenuWidgetItem.prototype.toObject = function(opt_includeInstance) {
7233
+ return proto.cms.ProfileMenuWidgetItem.toObject(opt_includeInstance, this);
7234
+ };
7235
+
7236
+
7237
+ /**
7238
+ * Static version of the {@see toObject} method.
7239
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7240
+ * the JSPB instance for transitional soy proto support:
7241
+ * http://goto/soy-param-migration
7242
+ * @param {!proto.cms.ProfileMenuWidgetItem} msg The msg instance to transform.
7243
+ * @return {!Object}
7244
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7245
+ */
7246
+ proto.cms.ProfileMenuWidgetItem.toObject = function(includeInstance, msg) {
7247
+ var f, obj = {
7248
+ geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
7249
+ content: jspb.Message.getFieldWithDefault(msg, 2, "")
7250
+ };
7251
+
7252
+ if (includeInstance) {
7253
+ obj.$jspbMessageInstance = msg;
7254
+ }
7255
+ return obj;
7256
+ };
7257
+ }
7258
+
7259
+
7260
+ /**
7261
+ * Deserializes binary data (in protobuf wire format).
7262
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7263
+ * @return {!proto.cms.ProfileMenuWidgetItem}
7264
+ */
7265
+ proto.cms.ProfileMenuWidgetItem.deserializeBinary = function(bytes) {
7266
+ var reader = new jspb.BinaryReader(bytes);
7267
+ var msg = new proto.cms.ProfileMenuWidgetItem;
7268
+ return proto.cms.ProfileMenuWidgetItem.deserializeBinaryFromReader(msg, reader);
7269
+ };
7270
+
7271
+
7272
+ /**
7273
+ * Deserializes binary data (in protobuf wire format) from the
7274
+ * given reader into the given message object.
7275
+ * @param {!proto.cms.ProfileMenuWidgetItem} msg The message object to deserialize into.
7276
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7277
+ * @return {!proto.cms.ProfileMenuWidgetItem}
7278
+ */
7279
+ proto.cms.ProfileMenuWidgetItem.deserializeBinaryFromReader = function(msg, reader) {
7280
+ while (reader.nextField()) {
7281
+ if (reader.isEndGroup()) {
7282
+ break;
7283
+ }
7284
+ var field = reader.getFieldNumber();
7285
+ switch (field) {
7286
+ case 1:
7287
+ var value = /** @type {string} */ (reader.readString());
7288
+ msg.setGeo(value);
7289
+ break;
7290
+ case 2:
7291
+ var value = /** @type {string} */ (reader.readString());
7292
+ msg.setContent(value);
7293
+ break;
7294
+ default:
7295
+ reader.skipField();
7296
+ break;
7297
+ }
7298
+ }
7299
+ return msg;
7300
+ };
7301
+
7302
+
7303
+ /**
7304
+ * Serializes the message to binary data (in protobuf wire format).
7305
+ * @return {!Uint8Array}
7306
+ */
7307
+ proto.cms.ProfileMenuWidgetItem.prototype.serializeBinary = function() {
7308
+ var writer = new jspb.BinaryWriter();
7309
+ proto.cms.ProfileMenuWidgetItem.serializeBinaryToWriter(this, writer);
7310
+ return writer.getResultBuffer();
7311
+ };
7312
+
7313
+
7314
+ /**
7315
+ * Serializes the given message to binary data (in protobuf wire
7316
+ * format), writing to the given BinaryWriter.
7317
+ * @param {!proto.cms.ProfileMenuWidgetItem} message
7318
+ * @param {!jspb.BinaryWriter} writer
7319
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7320
+ */
7321
+ proto.cms.ProfileMenuWidgetItem.serializeBinaryToWriter = function(message, writer) {
7322
+ var f = undefined;
7323
+ f = message.getGeo();
7324
+ if (f.length > 0) {
7325
+ writer.writeString(
7326
+ 1,
7327
+ f
7328
+ );
7329
+ }
7330
+ f = message.getContent();
7331
+ if (f.length > 0) {
7332
+ writer.writeString(
7333
+ 2,
7334
+ f
7335
+ );
7336
+ }
7337
+ };
7338
+
7339
+
7340
+ /**
7341
+ * optional string geo = 1;
7342
+ * @return {string}
7343
+ */
7344
+ proto.cms.ProfileMenuWidgetItem.prototype.getGeo = function() {
7345
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
7346
+ };
7347
+
7348
+
7349
+ /**
7350
+ * @param {string} value
7351
+ * @return {!proto.cms.ProfileMenuWidgetItem} returns this
7352
+ */
7353
+ proto.cms.ProfileMenuWidgetItem.prototype.setGeo = function(value) {
7354
+ return jspb.Message.setProto3StringField(this, 1, value);
7355
+ };
7356
+
7357
+
7358
+ /**
7359
+ * optional string content = 2;
7360
+ * @return {string}
7361
+ */
7362
+ proto.cms.ProfileMenuWidgetItem.prototype.getContent = function() {
7363
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
7364
+ };
7365
+
7366
+
7367
+ /**
7368
+ * @param {string} value
7369
+ * @return {!proto.cms.ProfileMenuWidgetItem} returns this
7370
+ */
7371
+ proto.cms.ProfileMenuWidgetItem.prototype.setContent = function(value) {
7372
+ return jspb.Message.setProto3StringField(this, 2, value);
7373
+ };
7374
+
7375
+
7376
+
6977
7377
  /**
6978
7378
  * Oneof group definitions for this message. Each group defines the field
6979
7379
  * numbers belonging to that group. When of these fields' value is set, all
package/game/game.proto CHANGED
@@ -488,11 +488,7 @@ message SearchGamesResponse {
488
488
  repeated GameItem items = 1;
489
489
  optional int32 total_pages = 2;
490
490
  optional int32 total_items = 3;
491
- repeated ProviderGamesCount provider_games = 4;
492
- }
493
- message ProviderGamesCount {
494
- ProviderItem provider = 1;
495
- int32 games_count = 2;
491
+ repeated ProviderItem provider_games = 4;
496
492
  }
497
493
  message SearchGamesIntoCollectionsRequest {
498
494
  repeated string collection_slugs = 1;
package/game/game_pb.js CHANGED
@@ -94,7 +94,6 @@ goog.exportSymbol('proto.game.ParseGamesRequest', null, global);
94
94
  goog.exportSymbol('proto.game.ParseGamesResponse', null, global);
95
95
  goog.exportSymbol('proto.game.PingRequest', null, global);
96
96
  goog.exportSymbol('proto.game.PongResponse', null, global);
97
- goog.exportSymbol('proto.game.ProviderGamesCount', null, global);
98
97
  goog.exportSymbol('proto.game.ProviderItem', null, global);
99
98
  goog.exportSymbol('proto.game.ProviderItemRequest', null, global);
100
99
  goog.exportSymbol('proto.game.ProviderItemsResponse', null, global);
@@ -1482,27 +1481,6 @@ if (goog.DEBUG && !COMPILED) {
1482
1481
  */
1483
1482
  proto.game.SearchGamesResponse.displayName = 'proto.game.SearchGamesResponse';
1484
1483
  }
1485
- /**
1486
- * Generated by JsPbCodeGenerator.
1487
- * @param {Array=} opt_data Optional initial data array, typically from a
1488
- * server response, or constructed directly in Javascript. The array is used
1489
- * in place and becomes part of the constructed object. It is not cloned.
1490
- * If no data is provided, the constructed object will be empty, but still
1491
- * valid.
1492
- * @extends {jspb.Message}
1493
- * @constructor
1494
- */
1495
- proto.game.ProviderGamesCount = function(opt_data) {
1496
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1497
- };
1498
- goog.inherits(proto.game.ProviderGamesCount, jspb.Message);
1499
- if (goog.DEBUG && !COMPILED) {
1500
- /**
1501
- * @public
1502
- * @override
1503
- */
1504
- proto.game.ProviderGamesCount.displayName = 'proto.game.ProviderGamesCount';
1505
- }
1506
1484
  /**
1507
1485
  * Generated by JsPbCodeGenerator.
1508
1486
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -19978,7 +19956,7 @@ proto.game.SearchGamesResponse.toObject = function(includeInstance, msg) {
19978
19956
  totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
19979
19957
  totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0),
19980
19958
  providerGamesList: jspb.Message.toObjectList(msg.getProviderGamesList(),
19981
- proto.game.ProviderGamesCount.toObject, includeInstance)
19959
+ proto.game.ProviderItem.toObject, includeInstance)
19982
19960
  };
19983
19961
 
19984
19962
  if (includeInstance) {
@@ -20029,8 +20007,8 @@ proto.game.SearchGamesResponse.deserializeBinaryFromReader = function(msg, reade
20029
20007
  msg.setTotalItems(value);
20030
20008
  break;
20031
20009
  case 4:
20032
- var value = new proto.game.ProviderGamesCount;
20033
- reader.readMessage(value,proto.game.ProviderGamesCount.deserializeBinaryFromReader);
20010
+ var value = new proto.game.ProviderItem;
20011
+ reader.readMessage(value,proto.game.ProviderItem.deserializeBinaryFromReader);
20034
20012
  msg.addProviderGames(value);
20035
20013
  break;
20036
20014
  default:
@@ -20089,7 +20067,7 @@ proto.game.SearchGamesResponse.serializeBinaryToWriter = function(message, write
20089
20067
  writer.writeRepeatedMessage(
20090
20068
  4,
20091
20069
  f,
20092
- proto.game.ProviderGamesCount.serializeBinaryToWriter
20070
+ proto.game.ProviderItem.serializeBinaryToWriter
20093
20071
  );
20094
20072
  }
20095
20073
  };
@@ -20206,17 +20184,17 @@ proto.game.SearchGamesResponse.prototype.hasTotalItems = function() {
20206
20184
 
20207
20185
 
20208
20186
  /**
20209
- * repeated ProviderGamesCount provider_games = 4;
20210
- * @return {!Array<!proto.game.ProviderGamesCount>}
20187
+ * repeated ProviderItem provider_games = 4;
20188
+ * @return {!Array<!proto.game.ProviderItem>}
20211
20189
  */
20212
20190
  proto.game.SearchGamesResponse.prototype.getProviderGamesList = function() {
20213
- return /** @type{!Array<!proto.game.ProviderGamesCount>} */ (
20214
- jspb.Message.getRepeatedWrapperField(this, proto.game.ProviderGamesCount, 4));
20191
+ return /** @type{!Array<!proto.game.ProviderItem>} */ (
20192
+ jspb.Message.getRepeatedWrapperField(this, proto.game.ProviderItem, 4));
20215
20193
  };
20216
20194
 
20217
20195
 
20218
20196
  /**
20219
- * @param {!Array<!proto.game.ProviderGamesCount>} value
20197
+ * @param {!Array<!proto.game.ProviderItem>} value
20220
20198
  * @return {!proto.game.SearchGamesResponse} returns this
20221
20199
  */
20222
20200
  proto.game.SearchGamesResponse.prototype.setProviderGamesList = function(value) {
@@ -20225,12 +20203,12 @@ proto.game.SearchGamesResponse.prototype.setProviderGamesList = function(value)
20225
20203
 
20226
20204
 
20227
20205
  /**
20228
- * @param {!proto.game.ProviderGamesCount=} opt_value
20206
+ * @param {!proto.game.ProviderItem=} opt_value
20229
20207
  * @param {number=} opt_index
20230
- * @return {!proto.game.ProviderGamesCount}
20208
+ * @return {!proto.game.ProviderItem}
20231
20209
  */
20232
20210
  proto.game.SearchGamesResponse.prototype.addProviderGames = function(opt_value, opt_index) {
20233
- return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.game.ProviderGamesCount, opt_index);
20211
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.game.ProviderItem, opt_index);
20234
20212
  };
20235
20213
 
20236
20214
 
@@ -20244,187 +20222,6 @@ proto.game.SearchGamesResponse.prototype.clearProviderGamesList = function() {
20244
20222
 
20245
20223
 
20246
20224
 
20247
-
20248
-
20249
- if (jspb.Message.GENERATE_TO_OBJECT) {
20250
- /**
20251
- * Creates an object representation of this proto.
20252
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
20253
- * Optional fields that are not set will be set to undefined.
20254
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
20255
- * For the list of reserved names please see:
20256
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
20257
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
20258
- * JSPB instance for transitional soy proto support:
20259
- * http://goto/soy-param-migration
20260
- * @return {!Object}
20261
- */
20262
- proto.game.ProviderGamesCount.prototype.toObject = function(opt_includeInstance) {
20263
- return proto.game.ProviderGamesCount.toObject(opt_includeInstance, this);
20264
- };
20265
-
20266
-
20267
- /**
20268
- * Static version of the {@see toObject} method.
20269
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
20270
- * the JSPB instance for transitional soy proto support:
20271
- * http://goto/soy-param-migration
20272
- * @param {!proto.game.ProviderGamesCount} msg The msg instance to transform.
20273
- * @return {!Object}
20274
- * @suppress {unusedLocalVariables} f is only used for nested messages
20275
- */
20276
- proto.game.ProviderGamesCount.toObject = function(includeInstance, msg) {
20277
- var f, obj = {
20278
- provider: (f = msg.getProvider()) && proto.game.ProviderItem.toObject(includeInstance, f),
20279
- gamesCount: jspb.Message.getFieldWithDefault(msg, 2, 0)
20280
- };
20281
-
20282
- if (includeInstance) {
20283
- obj.$jspbMessageInstance = msg;
20284
- }
20285
- return obj;
20286
- };
20287
- }
20288
-
20289
-
20290
- /**
20291
- * Deserializes binary data (in protobuf wire format).
20292
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
20293
- * @return {!proto.game.ProviderGamesCount}
20294
- */
20295
- proto.game.ProviderGamesCount.deserializeBinary = function(bytes) {
20296
- var reader = new jspb.BinaryReader(bytes);
20297
- var msg = new proto.game.ProviderGamesCount;
20298
- return proto.game.ProviderGamesCount.deserializeBinaryFromReader(msg, reader);
20299
- };
20300
-
20301
-
20302
- /**
20303
- * Deserializes binary data (in protobuf wire format) from the
20304
- * given reader into the given message object.
20305
- * @param {!proto.game.ProviderGamesCount} msg The message object to deserialize into.
20306
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
20307
- * @return {!proto.game.ProviderGamesCount}
20308
- */
20309
- proto.game.ProviderGamesCount.deserializeBinaryFromReader = function(msg, reader) {
20310
- while (reader.nextField()) {
20311
- if (reader.isEndGroup()) {
20312
- break;
20313
- }
20314
- var field = reader.getFieldNumber();
20315
- switch (field) {
20316
- case 1:
20317
- var value = new proto.game.ProviderItem;
20318
- reader.readMessage(value,proto.game.ProviderItem.deserializeBinaryFromReader);
20319
- msg.setProvider(value);
20320
- break;
20321
- case 2:
20322
- var value = /** @type {number} */ (reader.readInt32());
20323
- msg.setGamesCount(value);
20324
- break;
20325
- default:
20326
- reader.skipField();
20327
- break;
20328
- }
20329
- }
20330
- return msg;
20331
- };
20332
-
20333
-
20334
- /**
20335
- * Serializes the message to binary data (in protobuf wire format).
20336
- * @return {!Uint8Array}
20337
- */
20338
- proto.game.ProviderGamesCount.prototype.serializeBinary = function() {
20339
- var writer = new jspb.BinaryWriter();
20340
- proto.game.ProviderGamesCount.serializeBinaryToWriter(this, writer);
20341
- return writer.getResultBuffer();
20342
- };
20343
-
20344
-
20345
- /**
20346
- * Serializes the given message to binary data (in protobuf wire
20347
- * format), writing to the given BinaryWriter.
20348
- * @param {!proto.game.ProviderGamesCount} message
20349
- * @param {!jspb.BinaryWriter} writer
20350
- * @suppress {unusedLocalVariables} f is only used for nested messages
20351
- */
20352
- proto.game.ProviderGamesCount.serializeBinaryToWriter = function(message, writer) {
20353
- var f = undefined;
20354
- f = message.getProvider();
20355
- if (f != null) {
20356
- writer.writeMessage(
20357
- 1,
20358
- f,
20359
- proto.game.ProviderItem.serializeBinaryToWriter
20360
- );
20361
- }
20362
- f = message.getGamesCount();
20363
- if (f !== 0) {
20364
- writer.writeInt32(
20365
- 2,
20366
- f
20367
- );
20368
- }
20369
- };
20370
-
20371
-
20372
- /**
20373
- * optional ProviderItem provider = 1;
20374
- * @return {?proto.game.ProviderItem}
20375
- */
20376
- proto.game.ProviderGamesCount.prototype.getProvider = function() {
20377
- return /** @type{?proto.game.ProviderItem} */ (
20378
- jspb.Message.getWrapperField(this, proto.game.ProviderItem, 1));
20379
- };
20380
-
20381
-
20382
- /**
20383
- * @param {?proto.game.ProviderItem|undefined} value
20384
- * @return {!proto.game.ProviderGamesCount} returns this
20385
- */
20386
- proto.game.ProviderGamesCount.prototype.setProvider = function(value) {
20387
- return jspb.Message.setWrapperField(this, 1, value);
20388
- };
20389
-
20390
-
20391
- /**
20392
- * Clears the message field making it undefined.
20393
- * @return {!proto.game.ProviderGamesCount} returns this
20394
- */
20395
- proto.game.ProviderGamesCount.prototype.clearProvider = function() {
20396
- return this.setProvider(undefined);
20397
- };
20398
-
20399
-
20400
- /**
20401
- * Returns whether this field is set.
20402
- * @return {boolean}
20403
- */
20404
- proto.game.ProviderGamesCount.prototype.hasProvider = function() {
20405
- return jspb.Message.getField(this, 1) != null;
20406
- };
20407
-
20408
-
20409
- /**
20410
- * optional int32 games_count = 2;
20411
- * @return {number}
20412
- */
20413
- proto.game.ProviderGamesCount.prototype.getGamesCount = function() {
20414
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
20415
- };
20416
-
20417
-
20418
- /**
20419
- * @param {number} value
20420
- * @return {!proto.game.ProviderGamesCount} returns this
20421
- */
20422
- proto.game.ProviderGamesCount.prototype.setGamesCount = function(value) {
20423
- return jspb.Message.setProto3IntField(this, 2, value);
20424
- };
20425
-
20426
-
20427
-
20428
20225
  /**
20429
20226
  * List of repeated fields within this message type.
20430
20227
  * @private {!Array<number>}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.160",
3
+ "version": "1.2.163",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {