protobuf-platform 1.2.622 → 1.2.626

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
@@ -110,6 +110,8 @@ service Game {
110
110
  rpc resolveGameUuidsForBetHistoryFilter(ResolveGameUuidsForBetHistoryFilterRequest) returns (ResolveGameUuidsForBetHistoryFilterResponse);
111
111
  /** Lightweight batch read for Category → Collections hierarchy enrichment. */
112
112
  rpc getCategoryHierarchyByIds(CategoryHierarchyRequest) returns (CategoryHierarchyResponse);
113
+ /** Public active category with active direct collections; unknown/inactive slugs return NOT_FOUND. */
114
+ rpc getCategoryBySlug(GetCategoryBySlugRequest) returns (CategoryHierarchyItem);
113
115
  rpc getProviderCatalogBatch(CatalogCursorRequest) returns (ProviderCatalogBatchResponse);
114
116
  rpc getGameCatalogBatch(CatalogCursorRequest) returns (GameCatalogBatchResponse);
115
117
  //Wager lists
@@ -725,6 +727,15 @@ message GameItemsResponse {
725
727
  repeated GameItem items = 1;
726
728
  optional int32 total_pages = 2;
727
729
  optional int32 total_items = 3;
730
+ map<string, GameSearchScope> scopes = 4;
731
+ }
732
+ /** Public display fields shared by category, collection and tag search scopes. */
733
+ message GameSearchScope {
734
+ string title = 1;
735
+ string slug = 2;
736
+ optional string description = 3;
737
+ optional string image = 4;
738
+ optional string icon = 5;
728
739
  }
729
740
  message GameStatusResponse {
730
741
  string status = 1;
@@ -1323,6 +1334,11 @@ message TagSnapshotItem {
1323
1334
  message TagSnapshotItemsResponse {
1324
1335
  repeated TagSnapshotItem items = 1;
1325
1336
  }
1337
+ /** Public category lookup with optional localized display metadata. */
1338
+ message GetCategoryBySlugRequest {
1339
+ string slug = 1;
1340
+ optional string locale = 2;
1341
+ }
1326
1342
  /** Lightweight batch read for Category → Collections hierarchy enrichment. */
1327
1343
  message CategoryHierarchyRequest {
1328
1344
  repeated int32 ids = 1;
@@ -1349,4 +1365,4 @@ message CategoryHierarchyItem {
1349
1365
  }
1350
1366
  message CategoryHierarchyResponse {
1351
1367
  repeated CategoryHierarchyItem items = 1;
1352
- }
1368
+ }
@@ -103,6 +103,17 @@ function deserialize_game_CatalogCursorRequest(buffer_arg) {
103
103
  return game_pb.CatalogCursorRequest.deserializeBinary(new Uint8Array(buffer_arg));
104
104
  }
105
105
 
106
+ function serialize_game_CategoryHierarchyItem(arg) {
107
+ if (!(arg instanceof game_pb.CategoryHierarchyItem)) {
108
+ throw new Error('Expected argument of type game.CategoryHierarchyItem');
109
+ }
110
+ return Buffer.from(arg.serializeBinary());
111
+ }
112
+
113
+ function deserialize_game_CategoryHierarchyItem(buffer_arg) {
114
+ return game_pb.CategoryHierarchyItem.deserializeBinary(new Uint8Array(buffer_arg));
115
+ }
116
+
106
117
  function serialize_game_CategoryHierarchyRequest(arg) {
107
118
  if (!(arg instanceof game_pb.CategoryHierarchyRequest)) {
108
119
  throw new Error('Expected argument of type game.CategoryHierarchyRequest');
@@ -598,6 +609,17 @@ function deserialize_game_GetCashBackListRequest(buffer_arg) {
598
609
  return game_pb.GetCashBackListRequest.deserializeBinary(new Uint8Array(buffer_arg));
599
610
  }
600
611
 
612
+ function serialize_game_GetCategoryBySlugRequest(arg) {
613
+ if (!(arg instanceof game_pb.GetCategoryBySlugRequest)) {
614
+ throw new Error('Expected argument of type game.GetCategoryBySlugRequest');
615
+ }
616
+ return Buffer.from(arg.serializeBinary());
617
+ }
618
+
619
+ function deserialize_game_GetCategoryBySlugRequest(buffer_arg) {
620
+ return game_pb.GetCategoryBySlugRequest.deserializeBinary(new Uint8Array(buffer_arg));
621
+ }
622
+
601
623
  function serialize_game_GetCategoryRequest(arg) {
602
624
  if (!(arg instanceof game_pb.GetCategoryRequest)) {
603
625
  throw new Error('Expected argument of type game.GetCategoryRequest');
@@ -2505,6 +2527,18 @@ getCategoryHierarchyByIds: {
2505
2527
  responseSerialize: serialize_game_CategoryHierarchyResponse,
2506
2528
  responseDeserialize: deserialize_game_CategoryHierarchyResponse,
2507
2529
  },
2530
+ // * Public active category with active direct collections; unknown/inactive slugs return NOT_FOUND.
2531
+ getCategoryBySlug: {
2532
+ path: '/game.Game/getCategoryBySlug',
2533
+ requestStream: false,
2534
+ responseStream: false,
2535
+ requestType: game_pb.GetCategoryBySlugRequest,
2536
+ responseType: game_pb.CategoryHierarchyItem,
2537
+ requestSerialize: serialize_game_GetCategoryBySlugRequest,
2538
+ requestDeserialize: deserialize_game_GetCategoryBySlugRequest,
2539
+ responseSerialize: serialize_game_CategoryHierarchyItem,
2540
+ responseDeserialize: deserialize_game_CategoryHierarchyItem,
2541
+ },
2508
2542
  getProviderCatalogBatch: {
2509
2543
  path: '/game.Game/getProviderCatalogBatch',
2510
2544
  requestStream: false,
package/game/game_pb.js CHANGED
@@ -98,6 +98,7 @@ goog.exportSymbol('proto.game.GameRequest', null, global);
98
98
  goog.exportSymbol('proto.game.GameRequest.RequestCase', null, global);
99
99
  goog.exportSymbol('proto.game.GameResponse', null, global);
100
100
  goog.exportSymbol('proto.game.GameSearchRequest', null, global);
101
+ goog.exportSymbol('proto.game.GameSearchScope', null, global);
101
102
  goog.exportSymbol('proto.game.GameSnapshotItem', null, global);
102
103
  goog.exportSymbol('proto.game.GameSnapshotItemsResponse', null, global);
103
104
  goog.exportSymbol('proto.game.GameStatusResponse', null, global);
@@ -109,6 +110,7 @@ goog.exportSymbol('proto.game.GeoRestrictionRequest', null, global);
109
110
  goog.exportSymbol('proto.game.GeoRestrictionResponse', null, global);
110
111
  goog.exportSymbol('proto.game.GeoRestrictionStatusResponse', null, global);
111
112
  goog.exportSymbol('proto.game.GetCashBackListRequest', null, global);
113
+ goog.exportSymbol('proto.game.GetCategoryBySlugRequest', null, global);
112
114
  goog.exportSymbol('proto.game.GetCategoryRequest', null, global);
113
115
  goog.exportSymbol('proto.game.GetCollectionRequest', null, global);
114
116
  goog.exportSymbol('proto.game.GetCollectionSnapshotsByIdsRequest', null, global);
@@ -2082,6 +2084,27 @@ if (goog.DEBUG && !COMPILED) {
2082
2084
  */
2083
2085
  proto.game.GameItemsResponse.displayName = 'proto.game.GameItemsResponse';
2084
2086
  }
2087
+ /**
2088
+ * Generated by JsPbCodeGenerator.
2089
+ * @param {Array=} opt_data Optional initial data array, typically from a
2090
+ * server response, or constructed directly in Javascript. The array is used
2091
+ * in place and becomes part of the constructed object. It is not cloned.
2092
+ * If no data is provided, the constructed object will be empty, but still
2093
+ * valid.
2094
+ * @extends {jspb.Message}
2095
+ * @constructor
2096
+ */
2097
+ proto.game.GameSearchScope = function(opt_data) {
2098
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2099
+ };
2100
+ goog.inherits(proto.game.GameSearchScope, jspb.Message);
2101
+ if (goog.DEBUG && !COMPILED) {
2102
+ /**
2103
+ * @public
2104
+ * @override
2105
+ */
2106
+ proto.game.GameSearchScope.displayName = 'proto.game.GameSearchScope';
2107
+ }
2085
2108
  /**
2086
2109
  * Generated by JsPbCodeGenerator.
2087
2110
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -4035,6 +4058,27 @@ if (goog.DEBUG && !COMPILED) {
4035
4058
  */
4036
4059
  proto.game.TagSnapshotItemsResponse.displayName = 'proto.game.TagSnapshotItemsResponse';
4037
4060
  }
4061
+ /**
4062
+ * Generated by JsPbCodeGenerator.
4063
+ * @param {Array=} opt_data Optional initial data array, typically from a
4064
+ * server response, or constructed directly in Javascript. The array is used
4065
+ * in place and becomes part of the constructed object. It is not cloned.
4066
+ * If no data is provided, the constructed object will be empty, but still
4067
+ * valid.
4068
+ * @extends {jspb.Message}
4069
+ * @constructor
4070
+ */
4071
+ proto.game.GetCategoryBySlugRequest = function(opt_data) {
4072
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4073
+ };
4074
+ goog.inherits(proto.game.GetCategoryBySlugRequest, jspb.Message);
4075
+ if (goog.DEBUG && !COMPILED) {
4076
+ /**
4077
+ * @public
4078
+ * @override
4079
+ */
4080
+ proto.game.GetCategoryBySlugRequest.displayName = 'proto.game.GetCategoryBySlugRequest';
4081
+ }
4038
4082
  /**
4039
4083
  * Generated by JsPbCodeGenerator.
4040
4084
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -29936,7 +29980,8 @@ proto.game.GameItemsResponse.toObject = function(includeInstance, msg) {
29936
29980
  itemsList: jspb.Message.toObjectList(msg.getItemsList(),
29937
29981
  proto.game.GameItem.toObject, includeInstance),
29938
29982
  totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
29939
- totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
29983
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0),
29984
+ scopesMap: (f = msg.getScopesMap()) ? f.toObject(includeInstance, proto.game.GameSearchScope.toObject) : []
29940
29985
  };
29941
29986
 
29942
29987
  if (includeInstance) {
@@ -29986,6 +30031,12 @@ proto.game.GameItemsResponse.deserializeBinaryFromReader = function(msg, reader)
29986
30031
  var value = /** @type {number} */ (reader.readInt32());
29987
30032
  msg.setTotalItems(value);
29988
30033
  break;
30034
+ case 4:
30035
+ var value = msg.getScopesMap();
30036
+ reader.readMessage(value, function(message, reader) {
30037
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.game.GameSearchScope.deserializeBinaryFromReader, "", new proto.game.GameSearchScope());
30038
+ });
30039
+ break;
29989
30040
  default:
29990
30041
  reader.skipField();
29991
30042
  break;
@@ -30037,6 +30088,10 @@ proto.game.GameItemsResponse.serializeBinaryToWriter = function(message, writer)
30037
30088
  f
30038
30089
  );
30039
30090
  }
30091
+ f = message.getScopesMap(true);
30092
+ if (f && f.getLength() > 0) {
30093
+ f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.game.GameSearchScope.serializeBinaryToWriter);
30094
+ }
30040
30095
  };
30041
30096
 
30042
30097
 
@@ -30150,6 +30205,332 @@ proto.game.GameItemsResponse.prototype.hasTotalItems = function() {
30150
30205
  };
30151
30206
 
30152
30207
 
30208
+ /**
30209
+ * map<string, GameSearchScope> scopes = 4;
30210
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
30211
+ * empty, instead returning `undefined`
30212
+ * @return {!jspb.Map<string,!proto.game.GameSearchScope>}
30213
+ */
30214
+ proto.game.GameItemsResponse.prototype.getScopesMap = function(opt_noLazyCreate) {
30215
+ return /** @type {!jspb.Map<string,!proto.game.GameSearchScope>} */ (
30216
+ jspb.Message.getMapField(this, 4, opt_noLazyCreate,
30217
+ proto.game.GameSearchScope));
30218
+ };
30219
+
30220
+
30221
+ /**
30222
+ * Clears values from the map. The map will be non-null.
30223
+ * @return {!proto.game.GameItemsResponse} returns this
30224
+ */
30225
+ proto.game.GameItemsResponse.prototype.clearScopesMap = function() {
30226
+ this.getScopesMap().clear();
30227
+ return this;};
30228
+
30229
+
30230
+
30231
+
30232
+
30233
+ if (jspb.Message.GENERATE_TO_OBJECT) {
30234
+ /**
30235
+ * Creates an object representation of this proto.
30236
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
30237
+ * Optional fields that are not set will be set to undefined.
30238
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
30239
+ * For the list of reserved names please see:
30240
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
30241
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
30242
+ * JSPB instance for transitional soy proto support:
30243
+ * http://goto/soy-param-migration
30244
+ * @return {!Object}
30245
+ */
30246
+ proto.game.GameSearchScope.prototype.toObject = function(opt_includeInstance) {
30247
+ return proto.game.GameSearchScope.toObject(opt_includeInstance, this);
30248
+ };
30249
+
30250
+
30251
+ /**
30252
+ * Static version of the {@see toObject} method.
30253
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
30254
+ * the JSPB instance for transitional soy proto support:
30255
+ * http://goto/soy-param-migration
30256
+ * @param {!proto.game.GameSearchScope} msg The msg instance to transform.
30257
+ * @return {!Object}
30258
+ * @suppress {unusedLocalVariables} f is only used for nested messages
30259
+ */
30260
+ proto.game.GameSearchScope.toObject = function(includeInstance, msg) {
30261
+ var f, obj = {
30262
+ title: jspb.Message.getFieldWithDefault(msg, 1, ""),
30263
+ slug: jspb.Message.getFieldWithDefault(msg, 2, ""),
30264
+ description: jspb.Message.getFieldWithDefault(msg, 3, ""),
30265
+ image: jspb.Message.getFieldWithDefault(msg, 4, ""),
30266
+ icon: jspb.Message.getFieldWithDefault(msg, 5, "")
30267
+ };
30268
+
30269
+ if (includeInstance) {
30270
+ obj.$jspbMessageInstance = msg;
30271
+ }
30272
+ return obj;
30273
+ };
30274
+ }
30275
+
30276
+
30277
+ /**
30278
+ * Deserializes binary data (in protobuf wire format).
30279
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
30280
+ * @return {!proto.game.GameSearchScope}
30281
+ */
30282
+ proto.game.GameSearchScope.deserializeBinary = function(bytes) {
30283
+ var reader = new jspb.BinaryReader(bytes);
30284
+ var msg = new proto.game.GameSearchScope;
30285
+ return proto.game.GameSearchScope.deserializeBinaryFromReader(msg, reader);
30286
+ };
30287
+
30288
+
30289
+ /**
30290
+ * Deserializes binary data (in protobuf wire format) from the
30291
+ * given reader into the given message object.
30292
+ * @param {!proto.game.GameSearchScope} msg The message object to deserialize into.
30293
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
30294
+ * @return {!proto.game.GameSearchScope}
30295
+ */
30296
+ proto.game.GameSearchScope.deserializeBinaryFromReader = function(msg, reader) {
30297
+ while (reader.nextField()) {
30298
+ if (reader.isEndGroup()) {
30299
+ break;
30300
+ }
30301
+ var field = reader.getFieldNumber();
30302
+ switch (field) {
30303
+ case 1:
30304
+ var value = /** @type {string} */ (reader.readString());
30305
+ msg.setTitle(value);
30306
+ break;
30307
+ case 2:
30308
+ var value = /** @type {string} */ (reader.readString());
30309
+ msg.setSlug(value);
30310
+ break;
30311
+ case 3:
30312
+ var value = /** @type {string} */ (reader.readString());
30313
+ msg.setDescription(value);
30314
+ break;
30315
+ case 4:
30316
+ var value = /** @type {string} */ (reader.readString());
30317
+ msg.setImage(value);
30318
+ break;
30319
+ case 5:
30320
+ var value = /** @type {string} */ (reader.readString());
30321
+ msg.setIcon(value);
30322
+ break;
30323
+ default:
30324
+ reader.skipField();
30325
+ break;
30326
+ }
30327
+ }
30328
+ return msg;
30329
+ };
30330
+
30331
+
30332
+ /**
30333
+ * Serializes the message to binary data (in protobuf wire format).
30334
+ * @return {!Uint8Array}
30335
+ */
30336
+ proto.game.GameSearchScope.prototype.serializeBinary = function() {
30337
+ var writer = new jspb.BinaryWriter();
30338
+ proto.game.GameSearchScope.serializeBinaryToWriter(this, writer);
30339
+ return writer.getResultBuffer();
30340
+ };
30341
+
30342
+
30343
+ /**
30344
+ * Serializes the given message to binary data (in protobuf wire
30345
+ * format), writing to the given BinaryWriter.
30346
+ * @param {!proto.game.GameSearchScope} message
30347
+ * @param {!jspb.BinaryWriter} writer
30348
+ * @suppress {unusedLocalVariables} f is only used for nested messages
30349
+ */
30350
+ proto.game.GameSearchScope.serializeBinaryToWriter = function(message, writer) {
30351
+ var f = undefined;
30352
+ f = message.getTitle();
30353
+ if (f.length > 0) {
30354
+ writer.writeString(
30355
+ 1,
30356
+ f
30357
+ );
30358
+ }
30359
+ f = message.getSlug();
30360
+ if (f.length > 0) {
30361
+ writer.writeString(
30362
+ 2,
30363
+ f
30364
+ );
30365
+ }
30366
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
30367
+ if (f != null) {
30368
+ writer.writeString(
30369
+ 3,
30370
+ f
30371
+ );
30372
+ }
30373
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
30374
+ if (f != null) {
30375
+ writer.writeString(
30376
+ 4,
30377
+ f
30378
+ );
30379
+ }
30380
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
30381
+ if (f != null) {
30382
+ writer.writeString(
30383
+ 5,
30384
+ f
30385
+ );
30386
+ }
30387
+ };
30388
+
30389
+
30390
+ /**
30391
+ * optional string title = 1;
30392
+ * @return {string}
30393
+ */
30394
+ proto.game.GameSearchScope.prototype.getTitle = function() {
30395
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
30396
+ };
30397
+
30398
+
30399
+ /**
30400
+ * @param {string} value
30401
+ * @return {!proto.game.GameSearchScope} returns this
30402
+ */
30403
+ proto.game.GameSearchScope.prototype.setTitle = function(value) {
30404
+ return jspb.Message.setProto3StringField(this, 1, value);
30405
+ };
30406
+
30407
+
30408
+ /**
30409
+ * optional string slug = 2;
30410
+ * @return {string}
30411
+ */
30412
+ proto.game.GameSearchScope.prototype.getSlug = function() {
30413
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
30414
+ };
30415
+
30416
+
30417
+ /**
30418
+ * @param {string} value
30419
+ * @return {!proto.game.GameSearchScope} returns this
30420
+ */
30421
+ proto.game.GameSearchScope.prototype.setSlug = function(value) {
30422
+ return jspb.Message.setProto3StringField(this, 2, value);
30423
+ };
30424
+
30425
+
30426
+ /**
30427
+ * optional string description = 3;
30428
+ * @return {string}
30429
+ */
30430
+ proto.game.GameSearchScope.prototype.getDescription = function() {
30431
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
30432
+ };
30433
+
30434
+
30435
+ /**
30436
+ * @param {string} value
30437
+ * @return {!proto.game.GameSearchScope} returns this
30438
+ */
30439
+ proto.game.GameSearchScope.prototype.setDescription = function(value) {
30440
+ return jspb.Message.setField(this, 3, value);
30441
+ };
30442
+
30443
+
30444
+ /**
30445
+ * Clears the field making it undefined.
30446
+ * @return {!proto.game.GameSearchScope} returns this
30447
+ */
30448
+ proto.game.GameSearchScope.prototype.clearDescription = function() {
30449
+ return jspb.Message.setField(this, 3, undefined);
30450
+ };
30451
+
30452
+
30453
+ /**
30454
+ * Returns whether this field is set.
30455
+ * @return {boolean}
30456
+ */
30457
+ proto.game.GameSearchScope.prototype.hasDescription = function() {
30458
+ return jspb.Message.getField(this, 3) != null;
30459
+ };
30460
+
30461
+
30462
+ /**
30463
+ * optional string image = 4;
30464
+ * @return {string}
30465
+ */
30466
+ proto.game.GameSearchScope.prototype.getImage = function() {
30467
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
30468
+ };
30469
+
30470
+
30471
+ /**
30472
+ * @param {string} value
30473
+ * @return {!proto.game.GameSearchScope} returns this
30474
+ */
30475
+ proto.game.GameSearchScope.prototype.setImage = function(value) {
30476
+ return jspb.Message.setField(this, 4, value);
30477
+ };
30478
+
30479
+
30480
+ /**
30481
+ * Clears the field making it undefined.
30482
+ * @return {!proto.game.GameSearchScope} returns this
30483
+ */
30484
+ proto.game.GameSearchScope.prototype.clearImage = function() {
30485
+ return jspb.Message.setField(this, 4, undefined);
30486
+ };
30487
+
30488
+
30489
+ /**
30490
+ * Returns whether this field is set.
30491
+ * @return {boolean}
30492
+ */
30493
+ proto.game.GameSearchScope.prototype.hasImage = function() {
30494
+ return jspb.Message.getField(this, 4) != null;
30495
+ };
30496
+
30497
+
30498
+ /**
30499
+ * optional string icon = 5;
30500
+ * @return {string}
30501
+ */
30502
+ proto.game.GameSearchScope.prototype.getIcon = function() {
30503
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
30504
+ };
30505
+
30506
+
30507
+ /**
30508
+ * @param {string} value
30509
+ * @return {!proto.game.GameSearchScope} returns this
30510
+ */
30511
+ proto.game.GameSearchScope.prototype.setIcon = function(value) {
30512
+ return jspb.Message.setField(this, 5, value);
30513
+ };
30514
+
30515
+
30516
+ /**
30517
+ * Clears the field making it undefined.
30518
+ * @return {!proto.game.GameSearchScope} returns this
30519
+ */
30520
+ proto.game.GameSearchScope.prototype.clearIcon = function() {
30521
+ return jspb.Message.setField(this, 5, undefined);
30522
+ };
30523
+
30524
+
30525
+ /**
30526
+ * Returns whether this field is set.
30527
+ * @return {boolean}
30528
+ */
30529
+ proto.game.GameSearchScope.prototype.hasIcon = function() {
30530
+ return jspb.Message.getField(this, 5) != null;
30531
+ };
30532
+
30533
+
30153
30534
 
30154
30535
 
30155
30536
 
@@ -56761,6 +57142,184 @@ proto.game.TagSnapshotItemsResponse.prototype.clearItemsList = function() {
56761
57142
 
56762
57143
 
56763
57144
 
57145
+
57146
+
57147
+ if (jspb.Message.GENERATE_TO_OBJECT) {
57148
+ /**
57149
+ * Creates an object representation of this proto.
57150
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
57151
+ * Optional fields that are not set will be set to undefined.
57152
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
57153
+ * For the list of reserved names please see:
57154
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
57155
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
57156
+ * JSPB instance for transitional soy proto support:
57157
+ * http://goto/soy-param-migration
57158
+ * @return {!Object}
57159
+ */
57160
+ proto.game.GetCategoryBySlugRequest.prototype.toObject = function(opt_includeInstance) {
57161
+ return proto.game.GetCategoryBySlugRequest.toObject(opt_includeInstance, this);
57162
+ };
57163
+
57164
+
57165
+ /**
57166
+ * Static version of the {@see toObject} method.
57167
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
57168
+ * the JSPB instance for transitional soy proto support:
57169
+ * http://goto/soy-param-migration
57170
+ * @param {!proto.game.GetCategoryBySlugRequest} msg The msg instance to transform.
57171
+ * @return {!Object}
57172
+ * @suppress {unusedLocalVariables} f is only used for nested messages
57173
+ */
57174
+ proto.game.GetCategoryBySlugRequest.toObject = function(includeInstance, msg) {
57175
+ var f, obj = {
57176
+ slug: jspb.Message.getFieldWithDefault(msg, 1, ""),
57177
+ locale: jspb.Message.getFieldWithDefault(msg, 2, "")
57178
+ };
57179
+
57180
+ if (includeInstance) {
57181
+ obj.$jspbMessageInstance = msg;
57182
+ }
57183
+ return obj;
57184
+ };
57185
+ }
57186
+
57187
+
57188
+ /**
57189
+ * Deserializes binary data (in protobuf wire format).
57190
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
57191
+ * @return {!proto.game.GetCategoryBySlugRequest}
57192
+ */
57193
+ proto.game.GetCategoryBySlugRequest.deserializeBinary = function(bytes) {
57194
+ var reader = new jspb.BinaryReader(bytes);
57195
+ var msg = new proto.game.GetCategoryBySlugRequest;
57196
+ return proto.game.GetCategoryBySlugRequest.deserializeBinaryFromReader(msg, reader);
57197
+ };
57198
+
57199
+
57200
+ /**
57201
+ * Deserializes binary data (in protobuf wire format) from the
57202
+ * given reader into the given message object.
57203
+ * @param {!proto.game.GetCategoryBySlugRequest} msg The message object to deserialize into.
57204
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
57205
+ * @return {!proto.game.GetCategoryBySlugRequest}
57206
+ */
57207
+ proto.game.GetCategoryBySlugRequest.deserializeBinaryFromReader = function(msg, reader) {
57208
+ while (reader.nextField()) {
57209
+ if (reader.isEndGroup()) {
57210
+ break;
57211
+ }
57212
+ var field = reader.getFieldNumber();
57213
+ switch (field) {
57214
+ case 1:
57215
+ var value = /** @type {string} */ (reader.readString());
57216
+ msg.setSlug(value);
57217
+ break;
57218
+ case 2:
57219
+ var value = /** @type {string} */ (reader.readString());
57220
+ msg.setLocale(value);
57221
+ break;
57222
+ default:
57223
+ reader.skipField();
57224
+ break;
57225
+ }
57226
+ }
57227
+ return msg;
57228
+ };
57229
+
57230
+
57231
+ /**
57232
+ * Serializes the message to binary data (in protobuf wire format).
57233
+ * @return {!Uint8Array}
57234
+ */
57235
+ proto.game.GetCategoryBySlugRequest.prototype.serializeBinary = function() {
57236
+ var writer = new jspb.BinaryWriter();
57237
+ proto.game.GetCategoryBySlugRequest.serializeBinaryToWriter(this, writer);
57238
+ return writer.getResultBuffer();
57239
+ };
57240
+
57241
+
57242
+ /**
57243
+ * Serializes the given message to binary data (in protobuf wire
57244
+ * format), writing to the given BinaryWriter.
57245
+ * @param {!proto.game.GetCategoryBySlugRequest} message
57246
+ * @param {!jspb.BinaryWriter} writer
57247
+ * @suppress {unusedLocalVariables} f is only used for nested messages
57248
+ */
57249
+ proto.game.GetCategoryBySlugRequest.serializeBinaryToWriter = function(message, writer) {
57250
+ var f = undefined;
57251
+ f = message.getSlug();
57252
+ if (f.length > 0) {
57253
+ writer.writeString(
57254
+ 1,
57255
+ f
57256
+ );
57257
+ }
57258
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
57259
+ if (f != null) {
57260
+ writer.writeString(
57261
+ 2,
57262
+ f
57263
+ );
57264
+ }
57265
+ };
57266
+
57267
+
57268
+ /**
57269
+ * optional string slug = 1;
57270
+ * @return {string}
57271
+ */
57272
+ proto.game.GetCategoryBySlugRequest.prototype.getSlug = function() {
57273
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
57274
+ };
57275
+
57276
+
57277
+ /**
57278
+ * @param {string} value
57279
+ * @return {!proto.game.GetCategoryBySlugRequest} returns this
57280
+ */
57281
+ proto.game.GetCategoryBySlugRequest.prototype.setSlug = function(value) {
57282
+ return jspb.Message.setProto3StringField(this, 1, value);
57283
+ };
57284
+
57285
+
57286
+ /**
57287
+ * optional string locale = 2;
57288
+ * @return {string}
57289
+ */
57290
+ proto.game.GetCategoryBySlugRequest.prototype.getLocale = function() {
57291
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
57292
+ };
57293
+
57294
+
57295
+ /**
57296
+ * @param {string} value
57297
+ * @return {!proto.game.GetCategoryBySlugRequest} returns this
57298
+ */
57299
+ proto.game.GetCategoryBySlugRequest.prototype.setLocale = function(value) {
57300
+ return jspb.Message.setField(this, 2, value);
57301
+ };
57302
+
57303
+
57304
+ /**
57305
+ * Clears the field making it undefined.
57306
+ * @return {!proto.game.GetCategoryBySlugRequest} returns this
57307
+ */
57308
+ proto.game.GetCategoryBySlugRequest.prototype.clearLocale = function() {
57309
+ return jspb.Message.setField(this, 2, undefined);
57310
+ };
57311
+
57312
+
57313
+ /**
57314
+ * Returns whether this field is set.
57315
+ * @return {boolean}
57316
+ */
57317
+ proto.game.GetCategoryBySlugRequest.prototype.hasLocale = function() {
57318
+ return jspb.Message.getField(this, 2) != null;
57319
+ };
57320
+
57321
+
57322
+
56764
57323
  /**
56765
57324
  * List of repeated fields within this message type.
56766
57325
  * @private {!Array<number>}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.622",
3
+ "version": "1.2.626",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {