protobuf-platform 1.2.160 → 1.2.161
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 +1 -5
- package/game/game_pb.js +12 -215
- package/package.json +1 -1
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
|
|
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.
|
|
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.
|
|
20033
|
-
reader.readMessage(value,proto.game.
|
|
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.
|
|
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
|
|
20210
|
-
* @return {!Array<!proto.game.
|
|
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.
|
|
20214
|
-
jspb.Message.getRepeatedWrapperField(this, proto.game.
|
|
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.
|
|
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.
|
|
20206
|
+
* @param {!proto.game.ProviderItem=} opt_value
|
|
20229
20207
|
* @param {number=} opt_index
|
|
20230
|
-
* @return {!proto.game.
|
|
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.
|
|
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>}
|