protobuf-platform 1.2.624 → 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 +9 -0
- package/game/game_pb.js +360 -1
- package/package.json +1 -1
package/game/game.proto
CHANGED
|
@@ -727,6 +727,15 @@ message GameItemsResponse {
|
|
|
727
727
|
repeated GameItem items = 1;
|
|
728
728
|
optional int32 total_pages = 2;
|
|
729
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;
|
|
730
739
|
}
|
|
731
740
|
message GameStatusResponse {
|
|
732
741
|
string status = 1;
|
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);
|
|
@@ -2083,6 +2084,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
2083
2084
|
*/
|
|
2084
2085
|
proto.game.GameItemsResponse.displayName = 'proto.game.GameItemsResponse';
|
|
2085
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
|
+
}
|
|
2086
2108
|
/**
|
|
2087
2109
|
* Generated by JsPbCodeGenerator.
|
|
2088
2110
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -29958,7 +29980,8 @@ proto.game.GameItemsResponse.toObject = function(includeInstance, msg) {
|
|
|
29958
29980
|
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
29959
29981
|
proto.game.GameItem.toObject, includeInstance),
|
|
29960
29982
|
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
29961
|
-
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) : []
|
|
29962
29985
|
};
|
|
29963
29986
|
|
|
29964
29987
|
if (includeInstance) {
|
|
@@ -30008,6 +30031,12 @@ proto.game.GameItemsResponse.deserializeBinaryFromReader = function(msg, reader)
|
|
|
30008
30031
|
var value = /** @type {number} */ (reader.readInt32());
|
|
30009
30032
|
msg.setTotalItems(value);
|
|
30010
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;
|
|
30011
30040
|
default:
|
|
30012
30041
|
reader.skipField();
|
|
30013
30042
|
break;
|
|
@@ -30059,6 +30088,10 @@ proto.game.GameItemsResponse.serializeBinaryToWriter = function(message, writer)
|
|
|
30059
30088
|
f
|
|
30060
30089
|
);
|
|
30061
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
|
+
}
|
|
30062
30095
|
};
|
|
30063
30096
|
|
|
30064
30097
|
|
|
@@ -30172,6 +30205,332 @@ proto.game.GameItemsResponse.prototype.hasTotalItems = function() {
|
|
|
30172
30205
|
};
|
|
30173
30206
|
|
|
30174
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
|
+
|
|
30175
30534
|
|
|
30176
30535
|
|
|
30177
30536
|
|