protobuf-platform 1.0.272 → 1.0.273

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
@@ -43,6 +43,7 @@ service Game {
43
43
  rpc readListGames(PaginationRequest) returns (GameItemsResponse);
44
44
  rpc searchGamesByCollections(SearchGamesIntoCollectionsRequest) returns (GameItemsResponse);
45
45
  rpc searchGamesByTags(SearchGamesIntoTagsRequest) returns (GameItemsResponse);
46
+ rpc searchGamesByProviders(SearchGamesIntoProvidersRequest) returns (GameItemsResponse);
46
47
  rpc initGameSession(InitGameSessionRequest) returns (InitGameSessionResponse);
47
48
  rpc initDemoGameSession(InitDemoGameSessionRequest) returns (InitGameSessionResponse);
48
49
  rpc getCollectionsByGeo(GameRelationsRequest) returns (GameRelationsResponse);
@@ -409,6 +410,14 @@ message SearchGamesIntoTagsRequest {
409
410
  optional bool is_mobile = 5;
410
411
  optional bool admin_side = 6;
411
412
  }
413
+ message SearchGamesIntoProvidersRequest {
414
+ string provider_slugs = 1;
415
+ optional string geo = 2;
416
+ optional int32 limit = 3;
417
+ optional int32 offset = 4;
418
+ optional bool is_mobile = 5;
419
+ optional bool admin_side = 6;
420
+ }
412
421
  message GamesPriorityRequest {
413
422
  int32 id = 1;
414
423
  string game_priorities = 2;
@@ -631,6 +631,17 @@ function deserialize_game_SearchGamesIntoCollectionsRequest(buffer_arg) {
631
631
  return game_pb.SearchGamesIntoCollectionsRequest.deserializeBinary(new Uint8Array(buffer_arg));
632
632
  }
633
633
 
634
+ function serialize_game_SearchGamesIntoProvidersRequest(arg) {
635
+ if (!(arg instanceof game_pb.SearchGamesIntoProvidersRequest)) {
636
+ throw new Error('Expected argument of type game.SearchGamesIntoProvidersRequest');
637
+ }
638
+ return Buffer.from(arg.serializeBinary());
639
+ }
640
+
641
+ function deserialize_game_SearchGamesIntoProvidersRequest(buffer_arg) {
642
+ return game_pb.SearchGamesIntoProvidersRequest.deserializeBinary(new Uint8Array(buffer_arg));
643
+ }
644
+
634
645
  function serialize_game_SearchGamesIntoTagsRequest(arg) {
635
646
  if (!(arg instanceof game_pb.SearchGamesIntoTagsRequest)) {
636
647
  throw new Error('Expected argument of type game.SearchGamesIntoTagsRequest');
@@ -1166,6 +1177,17 @@ parseGames: {
1166
1177
  responseSerialize: serialize_game_GameItemsResponse,
1167
1178
  responseDeserialize: deserialize_game_GameItemsResponse,
1168
1179
  },
1180
+ searchGamesByProviders: {
1181
+ path: '/game.Game/searchGamesByProviders',
1182
+ requestStream: false,
1183
+ responseStream: false,
1184
+ requestType: game_pb.SearchGamesIntoProvidersRequest,
1185
+ responseType: game_pb.GameItemsResponse,
1186
+ requestSerialize: serialize_game_SearchGamesIntoProvidersRequest,
1187
+ requestDeserialize: deserialize_game_SearchGamesIntoProvidersRequest,
1188
+ responseSerialize: serialize_game_GameItemsResponse,
1189
+ responseDeserialize: deserialize_game_GameItemsResponse,
1190
+ },
1169
1191
  initGameSession: {
1170
1192
  path: '/game.Game/initGameSession',
1171
1193
  requestStream: false,
package/game/game_pb.js CHANGED
@@ -94,6 +94,7 @@ goog.exportSymbol('proto.game.SEOInstanceResponse', null, global);
94
94
  goog.exportSymbol('proto.game.ScopeRequest', null, global);
95
95
  goog.exportSymbol('proto.game.ScopeResponse', null, global);
96
96
  goog.exportSymbol('proto.game.SearchGamesIntoCollectionsRequest', null, global);
97
+ goog.exportSymbol('proto.game.SearchGamesIntoProvidersRequest', null, global);
97
98
  goog.exportSymbol('proto.game.SearchGamesIntoTagsRequest', null, global);
98
99
  goog.exportSymbol('proto.game.TagGamesRequest', null, global);
99
100
  goog.exportSymbol('proto.game.TagItem', null, global);
@@ -1309,6 +1310,27 @@ if (goog.DEBUG && !COMPILED) {
1309
1310
  */
1310
1311
  proto.game.SearchGamesIntoTagsRequest.displayName = 'proto.game.SearchGamesIntoTagsRequest';
1311
1312
  }
1313
+ /**
1314
+ * Generated by JsPbCodeGenerator.
1315
+ * @param {Array=} opt_data Optional initial data array, typically from a
1316
+ * server response, or constructed directly in Javascript. The array is used
1317
+ * in place and becomes part of the constructed object. It is not cloned.
1318
+ * If no data is provided, the constructed object will be empty, but still
1319
+ * valid.
1320
+ * @extends {jspb.Message}
1321
+ * @constructor
1322
+ */
1323
+ proto.game.SearchGamesIntoProvidersRequest = function(opt_data) {
1324
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1325
+ };
1326
+ goog.inherits(proto.game.SearchGamesIntoProvidersRequest, jspb.Message);
1327
+ if (goog.DEBUG && !COMPILED) {
1328
+ /**
1329
+ * @public
1330
+ * @override
1331
+ */
1332
+ proto.game.SearchGamesIntoProvidersRequest.displayName = 'proto.game.SearchGamesIntoProvidersRequest';
1333
+ }
1312
1334
  /**
1313
1335
  * Generated by JsPbCodeGenerator.
1314
1336
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -17109,6 +17131,376 @@ proto.game.SearchGamesIntoTagsRequest.prototype.hasAdminSide = function() {
17109
17131
 
17110
17132
 
17111
17133
 
17134
+ if (jspb.Message.GENERATE_TO_OBJECT) {
17135
+ /**
17136
+ * Creates an object representation of this proto.
17137
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
17138
+ * Optional fields that are not set will be set to undefined.
17139
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
17140
+ * For the list of reserved names please see:
17141
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
17142
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
17143
+ * JSPB instance for transitional soy proto support:
17144
+ * http://goto/soy-param-migration
17145
+ * @return {!Object}
17146
+ */
17147
+ proto.game.SearchGamesIntoProvidersRequest.prototype.toObject = function(opt_includeInstance) {
17148
+ return proto.game.SearchGamesIntoProvidersRequest.toObject(opt_includeInstance, this);
17149
+ };
17150
+
17151
+
17152
+ /**
17153
+ * Static version of the {@see toObject} method.
17154
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
17155
+ * the JSPB instance for transitional soy proto support:
17156
+ * http://goto/soy-param-migration
17157
+ * @param {!proto.game.SearchGamesIntoProvidersRequest} msg The msg instance to transform.
17158
+ * @return {!Object}
17159
+ * @suppress {unusedLocalVariables} f is only used for nested messages
17160
+ */
17161
+ proto.game.SearchGamesIntoProvidersRequest.toObject = function(includeInstance, msg) {
17162
+ var f, obj = {
17163
+ providerSlugs: jspb.Message.getFieldWithDefault(msg, 1, ""),
17164
+ geo: jspb.Message.getFieldWithDefault(msg, 2, ""),
17165
+ limit: jspb.Message.getFieldWithDefault(msg, 3, 0),
17166
+ offset: jspb.Message.getFieldWithDefault(msg, 4, 0),
17167
+ isMobile: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
17168
+ adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 6, false)
17169
+ };
17170
+
17171
+ if (includeInstance) {
17172
+ obj.$jspbMessageInstance = msg;
17173
+ }
17174
+ return obj;
17175
+ };
17176
+ }
17177
+
17178
+
17179
+ /**
17180
+ * Deserializes binary data (in protobuf wire format).
17181
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
17182
+ * @return {!proto.game.SearchGamesIntoProvidersRequest}
17183
+ */
17184
+ proto.game.SearchGamesIntoProvidersRequest.deserializeBinary = function(bytes) {
17185
+ var reader = new jspb.BinaryReader(bytes);
17186
+ var msg = new proto.game.SearchGamesIntoProvidersRequest;
17187
+ return proto.game.SearchGamesIntoProvidersRequest.deserializeBinaryFromReader(msg, reader);
17188
+ };
17189
+
17190
+
17191
+ /**
17192
+ * Deserializes binary data (in protobuf wire format) from the
17193
+ * given reader into the given message object.
17194
+ * @param {!proto.game.SearchGamesIntoProvidersRequest} msg The message object to deserialize into.
17195
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
17196
+ * @return {!proto.game.SearchGamesIntoProvidersRequest}
17197
+ */
17198
+ proto.game.SearchGamesIntoProvidersRequest.deserializeBinaryFromReader = function(msg, reader) {
17199
+ while (reader.nextField()) {
17200
+ if (reader.isEndGroup()) {
17201
+ break;
17202
+ }
17203
+ var field = reader.getFieldNumber();
17204
+ switch (field) {
17205
+ case 1:
17206
+ var value = /** @type {string} */ (reader.readString());
17207
+ msg.setProviderSlugs(value);
17208
+ break;
17209
+ case 2:
17210
+ var value = /** @type {string} */ (reader.readString());
17211
+ msg.setGeo(value);
17212
+ break;
17213
+ case 3:
17214
+ var value = /** @type {number} */ (reader.readInt32());
17215
+ msg.setLimit(value);
17216
+ break;
17217
+ case 4:
17218
+ var value = /** @type {number} */ (reader.readInt32());
17219
+ msg.setOffset(value);
17220
+ break;
17221
+ case 5:
17222
+ var value = /** @type {boolean} */ (reader.readBool());
17223
+ msg.setIsMobile(value);
17224
+ break;
17225
+ case 6:
17226
+ var value = /** @type {boolean} */ (reader.readBool());
17227
+ msg.setAdminSide(value);
17228
+ break;
17229
+ default:
17230
+ reader.skipField();
17231
+ break;
17232
+ }
17233
+ }
17234
+ return msg;
17235
+ };
17236
+
17237
+
17238
+ /**
17239
+ * Serializes the message to binary data (in protobuf wire format).
17240
+ * @return {!Uint8Array}
17241
+ */
17242
+ proto.game.SearchGamesIntoProvidersRequest.prototype.serializeBinary = function() {
17243
+ var writer = new jspb.BinaryWriter();
17244
+ proto.game.SearchGamesIntoProvidersRequest.serializeBinaryToWriter(this, writer);
17245
+ return writer.getResultBuffer();
17246
+ };
17247
+
17248
+
17249
+ /**
17250
+ * Serializes the given message to binary data (in protobuf wire
17251
+ * format), writing to the given BinaryWriter.
17252
+ * @param {!proto.game.SearchGamesIntoProvidersRequest} message
17253
+ * @param {!jspb.BinaryWriter} writer
17254
+ * @suppress {unusedLocalVariables} f is only used for nested messages
17255
+ */
17256
+ proto.game.SearchGamesIntoProvidersRequest.serializeBinaryToWriter = function(message, writer) {
17257
+ var f = undefined;
17258
+ f = message.getProviderSlugs();
17259
+ if (f.length > 0) {
17260
+ writer.writeString(
17261
+ 1,
17262
+ f
17263
+ );
17264
+ }
17265
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
17266
+ if (f != null) {
17267
+ writer.writeString(
17268
+ 2,
17269
+ f
17270
+ );
17271
+ }
17272
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
17273
+ if (f != null) {
17274
+ writer.writeInt32(
17275
+ 3,
17276
+ f
17277
+ );
17278
+ }
17279
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
17280
+ if (f != null) {
17281
+ writer.writeInt32(
17282
+ 4,
17283
+ f
17284
+ );
17285
+ }
17286
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 5));
17287
+ if (f != null) {
17288
+ writer.writeBool(
17289
+ 5,
17290
+ f
17291
+ );
17292
+ }
17293
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 6));
17294
+ if (f != null) {
17295
+ writer.writeBool(
17296
+ 6,
17297
+ f
17298
+ );
17299
+ }
17300
+ };
17301
+
17302
+
17303
+ /**
17304
+ * optional string provider_slugs = 1;
17305
+ * @return {string}
17306
+ */
17307
+ proto.game.SearchGamesIntoProvidersRequest.prototype.getProviderSlugs = function() {
17308
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
17309
+ };
17310
+
17311
+
17312
+ /**
17313
+ * @param {string} value
17314
+ * @return {!proto.game.SearchGamesIntoProvidersRequest} returns this
17315
+ */
17316
+ proto.game.SearchGamesIntoProvidersRequest.prototype.setProviderSlugs = function(value) {
17317
+ return jspb.Message.setProto3StringField(this, 1, value);
17318
+ };
17319
+
17320
+
17321
+ /**
17322
+ * optional string geo = 2;
17323
+ * @return {string}
17324
+ */
17325
+ proto.game.SearchGamesIntoProvidersRequest.prototype.getGeo = function() {
17326
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
17327
+ };
17328
+
17329
+
17330
+ /**
17331
+ * @param {string} value
17332
+ * @return {!proto.game.SearchGamesIntoProvidersRequest} returns this
17333
+ */
17334
+ proto.game.SearchGamesIntoProvidersRequest.prototype.setGeo = function(value) {
17335
+ return jspb.Message.setField(this, 2, value);
17336
+ };
17337
+
17338
+
17339
+ /**
17340
+ * Clears the field making it undefined.
17341
+ * @return {!proto.game.SearchGamesIntoProvidersRequest} returns this
17342
+ */
17343
+ proto.game.SearchGamesIntoProvidersRequest.prototype.clearGeo = function() {
17344
+ return jspb.Message.setField(this, 2, undefined);
17345
+ };
17346
+
17347
+
17348
+ /**
17349
+ * Returns whether this field is set.
17350
+ * @return {boolean}
17351
+ */
17352
+ proto.game.SearchGamesIntoProvidersRequest.prototype.hasGeo = function() {
17353
+ return jspb.Message.getField(this, 2) != null;
17354
+ };
17355
+
17356
+
17357
+ /**
17358
+ * optional int32 limit = 3;
17359
+ * @return {number}
17360
+ */
17361
+ proto.game.SearchGamesIntoProvidersRequest.prototype.getLimit = function() {
17362
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
17363
+ };
17364
+
17365
+
17366
+ /**
17367
+ * @param {number} value
17368
+ * @return {!proto.game.SearchGamesIntoProvidersRequest} returns this
17369
+ */
17370
+ proto.game.SearchGamesIntoProvidersRequest.prototype.setLimit = function(value) {
17371
+ return jspb.Message.setField(this, 3, value);
17372
+ };
17373
+
17374
+
17375
+ /**
17376
+ * Clears the field making it undefined.
17377
+ * @return {!proto.game.SearchGamesIntoProvidersRequest} returns this
17378
+ */
17379
+ proto.game.SearchGamesIntoProvidersRequest.prototype.clearLimit = function() {
17380
+ return jspb.Message.setField(this, 3, undefined);
17381
+ };
17382
+
17383
+
17384
+ /**
17385
+ * Returns whether this field is set.
17386
+ * @return {boolean}
17387
+ */
17388
+ proto.game.SearchGamesIntoProvidersRequest.prototype.hasLimit = function() {
17389
+ return jspb.Message.getField(this, 3) != null;
17390
+ };
17391
+
17392
+
17393
+ /**
17394
+ * optional int32 offset = 4;
17395
+ * @return {number}
17396
+ */
17397
+ proto.game.SearchGamesIntoProvidersRequest.prototype.getOffset = function() {
17398
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
17399
+ };
17400
+
17401
+
17402
+ /**
17403
+ * @param {number} value
17404
+ * @return {!proto.game.SearchGamesIntoProvidersRequest} returns this
17405
+ */
17406
+ proto.game.SearchGamesIntoProvidersRequest.prototype.setOffset = function(value) {
17407
+ return jspb.Message.setField(this, 4, value);
17408
+ };
17409
+
17410
+
17411
+ /**
17412
+ * Clears the field making it undefined.
17413
+ * @return {!proto.game.SearchGamesIntoProvidersRequest} returns this
17414
+ */
17415
+ proto.game.SearchGamesIntoProvidersRequest.prototype.clearOffset = function() {
17416
+ return jspb.Message.setField(this, 4, undefined);
17417
+ };
17418
+
17419
+
17420
+ /**
17421
+ * Returns whether this field is set.
17422
+ * @return {boolean}
17423
+ */
17424
+ proto.game.SearchGamesIntoProvidersRequest.prototype.hasOffset = function() {
17425
+ return jspb.Message.getField(this, 4) != null;
17426
+ };
17427
+
17428
+
17429
+ /**
17430
+ * optional bool is_mobile = 5;
17431
+ * @return {boolean}
17432
+ */
17433
+ proto.game.SearchGamesIntoProvidersRequest.prototype.getIsMobile = function() {
17434
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
17435
+ };
17436
+
17437
+
17438
+ /**
17439
+ * @param {boolean} value
17440
+ * @return {!proto.game.SearchGamesIntoProvidersRequest} returns this
17441
+ */
17442
+ proto.game.SearchGamesIntoProvidersRequest.prototype.setIsMobile = function(value) {
17443
+ return jspb.Message.setField(this, 5, value);
17444
+ };
17445
+
17446
+
17447
+ /**
17448
+ * Clears the field making it undefined.
17449
+ * @return {!proto.game.SearchGamesIntoProvidersRequest} returns this
17450
+ */
17451
+ proto.game.SearchGamesIntoProvidersRequest.prototype.clearIsMobile = function() {
17452
+ return jspb.Message.setField(this, 5, undefined);
17453
+ };
17454
+
17455
+
17456
+ /**
17457
+ * Returns whether this field is set.
17458
+ * @return {boolean}
17459
+ */
17460
+ proto.game.SearchGamesIntoProvidersRequest.prototype.hasIsMobile = function() {
17461
+ return jspb.Message.getField(this, 5) != null;
17462
+ };
17463
+
17464
+
17465
+ /**
17466
+ * optional bool admin_side = 6;
17467
+ * @return {boolean}
17468
+ */
17469
+ proto.game.SearchGamesIntoProvidersRequest.prototype.getAdminSide = function() {
17470
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
17471
+ };
17472
+
17473
+
17474
+ /**
17475
+ * @param {boolean} value
17476
+ * @return {!proto.game.SearchGamesIntoProvidersRequest} returns this
17477
+ */
17478
+ proto.game.SearchGamesIntoProvidersRequest.prototype.setAdminSide = function(value) {
17479
+ return jspb.Message.setField(this, 6, value);
17480
+ };
17481
+
17482
+
17483
+ /**
17484
+ * Clears the field making it undefined.
17485
+ * @return {!proto.game.SearchGamesIntoProvidersRequest} returns this
17486
+ */
17487
+ proto.game.SearchGamesIntoProvidersRequest.prototype.clearAdminSide = function() {
17488
+ return jspb.Message.setField(this, 6, undefined);
17489
+ };
17490
+
17491
+
17492
+ /**
17493
+ * Returns whether this field is set.
17494
+ * @return {boolean}
17495
+ */
17496
+ proto.game.SearchGamesIntoProvidersRequest.prototype.hasAdminSide = function() {
17497
+ return jspb.Message.getField(this, 6) != null;
17498
+ };
17499
+
17500
+
17501
+
17502
+
17503
+
17112
17504
  if (jspb.Message.GENERATE_TO_OBJECT) {
17113
17505
  /**
17114
17506
  * Creates an object representation of this proto.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.272",
3
+ "version": "1.0.273",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {