protobuf-platform 1.0.65 → 1.0.67
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 +15 -0
- package/game/game_grpc_pb.js +44 -0
- package/game/game_pb.js +637 -15
- package/package.json +1 -1
package/game/game.proto
CHANGED
@@ -24,6 +24,7 @@ service Game {
|
|
24
24
|
rpc updateSingleTag(stream TagRequest) returns (TagResponse);
|
25
25
|
rpc deleteSingleTag(GetTagRequest) returns (TagStatusResponse);
|
26
26
|
rpc readListTags(PaginationRequest) returns (TagItemsResponse);
|
27
|
+
rpc addGamesToTag(TagGamesRequest) returns (TagStatusResponse);
|
27
28
|
//Providers
|
28
29
|
rpc createSingleProvider(stream ProviderRequest) returns (ProviderResponse);
|
29
30
|
rpc readSingleProvider(GetProviderRequest) returns (ProviderResponse);
|
@@ -37,6 +38,7 @@ service Game {
|
|
37
38
|
rpc deleteSingleGame(GetGameRequest) returns (GameStatusResponse);
|
38
39
|
rpc readListGames(PaginationRequest) returns (GameItemsResponse);
|
39
40
|
rpc searchGamesByCollections(SearchGamesIntoCollectionsRequest) returns (GameItemsResponse);
|
41
|
+
rpc searchGamesByTags(SearchGamesIntoTagsRequest) returns (GameItemsResponse);
|
40
42
|
}
|
41
43
|
|
42
44
|
message PingRequest { string ping = 1; }
|
@@ -174,6 +176,11 @@ message TagItemsResponse {
|
|
174
176
|
message TagStatusResponse {
|
175
177
|
string status = 1;
|
176
178
|
}
|
179
|
+
message TagGamesRequest {
|
180
|
+
int32 id = 1;
|
181
|
+
string game_ids = 2;
|
182
|
+
optional string geo = 3;
|
183
|
+
}
|
177
184
|
|
178
185
|
//Provider CRUD
|
179
186
|
message ProviderItem {
|
@@ -231,6 +238,8 @@ message GameItem {
|
|
231
238
|
optional string type = 8;
|
232
239
|
optional int32 is_mobile = 9;
|
233
240
|
optional int32 has_free_spins = 10;
|
241
|
+
optional string collections = 11;
|
242
|
+
optional string tags = 12;
|
234
243
|
}
|
235
244
|
//Game CRUD | Requests
|
236
245
|
message GameRequest {
|
@@ -272,4 +281,10 @@ message SearchGamesIntoCollectionsRequest {
|
|
272
281
|
optional string geo = 2;
|
273
282
|
optional int32 limit = 3;
|
274
283
|
optional int32 offset = 4;
|
284
|
+
}
|
285
|
+
message SearchGamesIntoTagsRequest {
|
286
|
+
string tag_slugs = 1;
|
287
|
+
optional string geo = 2;
|
288
|
+
optional int32 limit = 3;
|
289
|
+
optional int32 offset = 4;
|
275
290
|
}
|
package/game/game_grpc_pb.js
CHANGED
@@ -334,6 +334,28 @@ function deserialize_game_SearchGamesIntoCollectionsRequest(buffer_arg) {
|
|
334
334
|
return game_pb.SearchGamesIntoCollectionsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
335
335
|
}
|
336
336
|
|
337
|
+
function serialize_game_SearchGamesIntoTagsRequest(arg) {
|
338
|
+
if (!(arg instanceof game_pb.SearchGamesIntoTagsRequest)) {
|
339
|
+
throw new Error('Expected argument of type game.SearchGamesIntoTagsRequest');
|
340
|
+
}
|
341
|
+
return Buffer.from(arg.serializeBinary());
|
342
|
+
}
|
343
|
+
|
344
|
+
function deserialize_game_SearchGamesIntoTagsRequest(buffer_arg) {
|
345
|
+
return game_pb.SearchGamesIntoTagsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
346
|
+
}
|
347
|
+
|
348
|
+
function serialize_game_TagGamesRequest(arg) {
|
349
|
+
if (!(arg instanceof game_pb.TagGamesRequest)) {
|
350
|
+
throw new Error('Expected argument of type game.TagGamesRequest');
|
351
|
+
}
|
352
|
+
return Buffer.from(arg.serializeBinary());
|
353
|
+
}
|
354
|
+
|
355
|
+
function deserialize_game_TagGamesRequest(buffer_arg) {
|
356
|
+
return game_pb.TagGamesRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
357
|
+
}
|
358
|
+
|
337
359
|
function serialize_game_TagItemsResponse(arg) {
|
338
360
|
if (!(arg instanceof game_pb.TagItemsResponse)) {
|
339
361
|
throw new Error('Expected argument of type game.TagItemsResponse');
|
@@ -581,6 +603,17 @@ createSingleTag: {
|
|
581
603
|
responseSerialize: serialize_game_TagItemsResponse,
|
582
604
|
responseDeserialize: deserialize_game_TagItemsResponse,
|
583
605
|
},
|
606
|
+
addGamesToTag: {
|
607
|
+
path: '/game.Game/addGamesToTag',
|
608
|
+
requestStream: false,
|
609
|
+
responseStream: false,
|
610
|
+
requestType: game_pb.TagGamesRequest,
|
611
|
+
responseType: game_pb.TagStatusResponse,
|
612
|
+
requestSerialize: serialize_game_TagGamesRequest,
|
613
|
+
requestDeserialize: deserialize_game_TagGamesRequest,
|
614
|
+
responseSerialize: serialize_game_TagStatusResponse,
|
615
|
+
responseDeserialize: deserialize_game_TagStatusResponse,
|
616
|
+
},
|
584
617
|
// Providers
|
585
618
|
createSingleProvider: {
|
586
619
|
path: '/game.Game/createSingleProvider',
|
@@ -704,6 +737,17 @@ parseGames: {
|
|
704
737
|
responseSerialize: serialize_game_GameItemsResponse,
|
705
738
|
responseDeserialize: deserialize_game_GameItemsResponse,
|
706
739
|
},
|
740
|
+
searchGamesByTags: {
|
741
|
+
path: '/game.Game/searchGamesByTags',
|
742
|
+
requestStream: false,
|
743
|
+
responseStream: false,
|
744
|
+
requestType: game_pb.SearchGamesIntoTagsRequest,
|
745
|
+
responseType: game_pb.GameItemsResponse,
|
746
|
+
requestSerialize: serialize_game_SearchGamesIntoTagsRequest,
|
747
|
+
requestDeserialize: deserialize_game_SearchGamesIntoTagsRequest,
|
748
|
+
responseSerialize: serialize_game_GameItemsResponse,
|
749
|
+
responseDeserialize: deserialize_game_GameItemsResponse,
|
750
|
+
},
|
707
751
|
};
|
708
752
|
|
709
753
|
exports.GameClient = grpc.makeGenericClientConstructor(GameService);
|
package/game/game_pb.js
CHANGED
@@ -63,6 +63,8 @@ goog.exportSymbol('proto.game.ProviderRequest.RequestCase', null, global);
|
|
63
63
|
goog.exportSymbol('proto.game.ProviderResponse', null, global);
|
64
64
|
goog.exportSymbol('proto.game.ProviderStatusResponse', null, global);
|
65
65
|
goog.exportSymbol('proto.game.SearchGamesIntoCollectionsRequest', null, global);
|
66
|
+
goog.exportSymbol('proto.game.SearchGamesIntoTagsRequest', null, global);
|
67
|
+
goog.exportSymbol('proto.game.TagGamesRequest', null, global);
|
66
68
|
goog.exportSymbol('proto.game.TagItem', null, global);
|
67
69
|
goog.exportSymbol('proto.game.TagItemRequest', null, global);
|
68
70
|
goog.exportSymbol('proto.game.TagItemsResponse', null, global);
|
@@ -637,6 +639,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
637
639
|
*/
|
638
640
|
proto.game.TagStatusResponse.displayName = 'proto.game.TagStatusResponse';
|
639
641
|
}
|
642
|
+
/**
|
643
|
+
* Generated by JsPbCodeGenerator.
|
644
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
645
|
+
* server response, or constructed directly in Javascript. The array is used
|
646
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
647
|
+
* If no data is provided, the constructed object will be empty, but still
|
648
|
+
* valid.
|
649
|
+
* @extends {jspb.Message}
|
650
|
+
* @constructor
|
651
|
+
*/
|
652
|
+
proto.game.TagGamesRequest = function(opt_data) {
|
653
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
654
|
+
};
|
655
|
+
goog.inherits(proto.game.TagGamesRequest, jspb.Message);
|
656
|
+
if (goog.DEBUG && !COMPILED) {
|
657
|
+
/**
|
658
|
+
* @public
|
659
|
+
* @override
|
660
|
+
*/
|
661
|
+
proto.game.TagGamesRequest.displayName = 'proto.game.TagGamesRequest';
|
662
|
+
}
|
640
663
|
/**
|
641
664
|
* Generated by JsPbCodeGenerator.
|
642
665
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -994,6 +1017,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
994
1017
|
*/
|
995
1018
|
proto.game.SearchGamesIntoCollectionsRequest.displayName = 'proto.game.SearchGamesIntoCollectionsRequest';
|
996
1019
|
}
|
1020
|
+
/**
|
1021
|
+
* Generated by JsPbCodeGenerator.
|
1022
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
1023
|
+
* server response, or constructed directly in Javascript. The array is used
|
1024
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
1025
|
+
* If no data is provided, the constructed object will be empty, but still
|
1026
|
+
* valid.
|
1027
|
+
* @extends {jspb.Message}
|
1028
|
+
* @constructor
|
1029
|
+
*/
|
1030
|
+
proto.game.SearchGamesIntoTagsRequest = function(opt_data) {
|
1031
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
1032
|
+
};
|
1033
|
+
goog.inherits(proto.game.SearchGamesIntoTagsRequest, jspb.Message);
|
1034
|
+
if (goog.DEBUG && !COMPILED) {
|
1035
|
+
/**
|
1036
|
+
* @public
|
1037
|
+
* @override
|
1038
|
+
*/
|
1039
|
+
proto.game.SearchGamesIntoTagsRequest.displayName = 'proto.game.SearchGamesIntoTagsRequest';
|
1040
|
+
}
|
997
1041
|
|
998
1042
|
|
999
1043
|
|
@@ -7195,6 +7239,214 @@ proto.game.TagStatusResponse.prototype.setStatus = function(value) {
|
|
7195
7239
|
|
7196
7240
|
|
7197
7241
|
|
7242
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
7243
|
+
/**
|
7244
|
+
* Creates an object representation of this proto.
|
7245
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
7246
|
+
* Optional fields that are not set will be set to undefined.
|
7247
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
7248
|
+
* For the list of reserved names please see:
|
7249
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
7250
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
7251
|
+
* JSPB instance for transitional soy proto support:
|
7252
|
+
* http://goto/soy-param-migration
|
7253
|
+
* @return {!Object}
|
7254
|
+
*/
|
7255
|
+
proto.game.TagGamesRequest.prototype.toObject = function(opt_includeInstance) {
|
7256
|
+
return proto.game.TagGamesRequest.toObject(opt_includeInstance, this);
|
7257
|
+
};
|
7258
|
+
|
7259
|
+
|
7260
|
+
/**
|
7261
|
+
* Static version of the {@see toObject} method.
|
7262
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
7263
|
+
* the JSPB instance for transitional soy proto support:
|
7264
|
+
* http://goto/soy-param-migration
|
7265
|
+
* @param {!proto.game.TagGamesRequest} msg The msg instance to transform.
|
7266
|
+
* @return {!Object}
|
7267
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
7268
|
+
*/
|
7269
|
+
proto.game.TagGamesRequest.toObject = function(includeInstance, msg) {
|
7270
|
+
var f, obj = {
|
7271
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
7272
|
+
gameIds: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
7273
|
+
geo: jspb.Message.getFieldWithDefault(msg, 3, "")
|
7274
|
+
};
|
7275
|
+
|
7276
|
+
if (includeInstance) {
|
7277
|
+
obj.$jspbMessageInstance = msg;
|
7278
|
+
}
|
7279
|
+
return obj;
|
7280
|
+
};
|
7281
|
+
}
|
7282
|
+
|
7283
|
+
|
7284
|
+
/**
|
7285
|
+
* Deserializes binary data (in protobuf wire format).
|
7286
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
7287
|
+
* @return {!proto.game.TagGamesRequest}
|
7288
|
+
*/
|
7289
|
+
proto.game.TagGamesRequest.deserializeBinary = function(bytes) {
|
7290
|
+
var reader = new jspb.BinaryReader(bytes);
|
7291
|
+
var msg = new proto.game.TagGamesRequest;
|
7292
|
+
return proto.game.TagGamesRequest.deserializeBinaryFromReader(msg, reader);
|
7293
|
+
};
|
7294
|
+
|
7295
|
+
|
7296
|
+
/**
|
7297
|
+
* Deserializes binary data (in protobuf wire format) from the
|
7298
|
+
* given reader into the given message object.
|
7299
|
+
* @param {!proto.game.TagGamesRequest} msg The message object to deserialize into.
|
7300
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
7301
|
+
* @return {!proto.game.TagGamesRequest}
|
7302
|
+
*/
|
7303
|
+
proto.game.TagGamesRequest.deserializeBinaryFromReader = function(msg, reader) {
|
7304
|
+
while (reader.nextField()) {
|
7305
|
+
if (reader.isEndGroup()) {
|
7306
|
+
break;
|
7307
|
+
}
|
7308
|
+
var field = reader.getFieldNumber();
|
7309
|
+
switch (field) {
|
7310
|
+
case 1:
|
7311
|
+
var value = /** @type {number} */ (reader.readInt32());
|
7312
|
+
msg.setId(value);
|
7313
|
+
break;
|
7314
|
+
case 2:
|
7315
|
+
var value = /** @type {string} */ (reader.readString());
|
7316
|
+
msg.setGameIds(value);
|
7317
|
+
break;
|
7318
|
+
case 3:
|
7319
|
+
var value = /** @type {string} */ (reader.readString());
|
7320
|
+
msg.setGeo(value);
|
7321
|
+
break;
|
7322
|
+
default:
|
7323
|
+
reader.skipField();
|
7324
|
+
break;
|
7325
|
+
}
|
7326
|
+
}
|
7327
|
+
return msg;
|
7328
|
+
};
|
7329
|
+
|
7330
|
+
|
7331
|
+
/**
|
7332
|
+
* Serializes the message to binary data (in protobuf wire format).
|
7333
|
+
* @return {!Uint8Array}
|
7334
|
+
*/
|
7335
|
+
proto.game.TagGamesRequest.prototype.serializeBinary = function() {
|
7336
|
+
var writer = new jspb.BinaryWriter();
|
7337
|
+
proto.game.TagGamesRequest.serializeBinaryToWriter(this, writer);
|
7338
|
+
return writer.getResultBuffer();
|
7339
|
+
};
|
7340
|
+
|
7341
|
+
|
7342
|
+
/**
|
7343
|
+
* Serializes the given message to binary data (in protobuf wire
|
7344
|
+
* format), writing to the given BinaryWriter.
|
7345
|
+
* @param {!proto.game.TagGamesRequest} message
|
7346
|
+
* @param {!jspb.BinaryWriter} writer
|
7347
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
7348
|
+
*/
|
7349
|
+
proto.game.TagGamesRequest.serializeBinaryToWriter = function(message, writer) {
|
7350
|
+
var f = undefined;
|
7351
|
+
f = message.getId();
|
7352
|
+
if (f !== 0) {
|
7353
|
+
writer.writeInt32(
|
7354
|
+
1,
|
7355
|
+
f
|
7356
|
+
);
|
7357
|
+
}
|
7358
|
+
f = message.getGameIds();
|
7359
|
+
if (f.length > 0) {
|
7360
|
+
writer.writeString(
|
7361
|
+
2,
|
7362
|
+
f
|
7363
|
+
);
|
7364
|
+
}
|
7365
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
7366
|
+
if (f != null) {
|
7367
|
+
writer.writeString(
|
7368
|
+
3,
|
7369
|
+
f
|
7370
|
+
);
|
7371
|
+
}
|
7372
|
+
};
|
7373
|
+
|
7374
|
+
|
7375
|
+
/**
|
7376
|
+
* optional int32 id = 1;
|
7377
|
+
* @return {number}
|
7378
|
+
*/
|
7379
|
+
proto.game.TagGamesRequest.prototype.getId = function() {
|
7380
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
7381
|
+
};
|
7382
|
+
|
7383
|
+
|
7384
|
+
/**
|
7385
|
+
* @param {number} value
|
7386
|
+
* @return {!proto.game.TagGamesRequest} returns this
|
7387
|
+
*/
|
7388
|
+
proto.game.TagGamesRequest.prototype.setId = function(value) {
|
7389
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
7390
|
+
};
|
7391
|
+
|
7392
|
+
|
7393
|
+
/**
|
7394
|
+
* optional string game_ids = 2;
|
7395
|
+
* @return {string}
|
7396
|
+
*/
|
7397
|
+
proto.game.TagGamesRequest.prototype.getGameIds = function() {
|
7398
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
7399
|
+
};
|
7400
|
+
|
7401
|
+
|
7402
|
+
/**
|
7403
|
+
* @param {string} value
|
7404
|
+
* @return {!proto.game.TagGamesRequest} returns this
|
7405
|
+
*/
|
7406
|
+
proto.game.TagGamesRequest.prototype.setGameIds = function(value) {
|
7407
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
7408
|
+
};
|
7409
|
+
|
7410
|
+
|
7411
|
+
/**
|
7412
|
+
* optional string geo = 3;
|
7413
|
+
* @return {string}
|
7414
|
+
*/
|
7415
|
+
proto.game.TagGamesRequest.prototype.getGeo = function() {
|
7416
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
7417
|
+
};
|
7418
|
+
|
7419
|
+
|
7420
|
+
/**
|
7421
|
+
* @param {string} value
|
7422
|
+
* @return {!proto.game.TagGamesRequest} returns this
|
7423
|
+
*/
|
7424
|
+
proto.game.TagGamesRequest.prototype.setGeo = function(value) {
|
7425
|
+
return jspb.Message.setField(this, 3, value);
|
7426
|
+
};
|
7427
|
+
|
7428
|
+
|
7429
|
+
/**
|
7430
|
+
* Clears the field making it undefined.
|
7431
|
+
* @return {!proto.game.TagGamesRequest} returns this
|
7432
|
+
*/
|
7433
|
+
proto.game.TagGamesRequest.prototype.clearGeo = function() {
|
7434
|
+
return jspb.Message.setField(this, 3, undefined);
|
7435
|
+
};
|
7436
|
+
|
7437
|
+
|
7438
|
+
/**
|
7439
|
+
* Returns whether this field is set.
|
7440
|
+
* @return {boolean}
|
7441
|
+
*/
|
7442
|
+
proto.game.TagGamesRequest.prototype.hasGeo = function() {
|
7443
|
+
return jspb.Message.getField(this, 3) != null;
|
7444
|
+
};
|
7445
|
+
|
7446
|
+
|
7447
|
+
|
7448
|
+
|
7449
|
+
|
7198
7450
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
7199
7451
|
/**
|
7200
7452
|
* Creates an object representation of this proto.
|
@@ -9212,7 +9464,9 @@ proto.game.GameItem.toObject = function(includeInstance, msg) {
|
|
9212
9464
|
image: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
9213
9465
|
type: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
9214
9466
|
isMobile: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
9215
|
-
hasFreeSpins: jspb.Message.getFieldWithDefault(msg, 10, 0)
|
9467
|
+
hasFreeSpins: jspb.Message.getFieldWithDefault(msg, 10, 0),
|
9468
|
+
collections: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
9469
|
+
tags: jspb.Message.getFieldWithDefault(msg, 12, "")
|
9216
9470
|
};
|
9217
9471
|
|
9218
9472
|
if (includeInstance) {
|
@@ -9290,6 +9544,14 @@ proto.game.GameItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
9290
9544
|
var value = /** @type {number} */ (reader.readInt32());
|
9291
9545
|
msg.setHasFreeSpins(value);
|
9292
9546
|
break;
|
9547
|
+
case 11:
|
9548
|
+
var value = /** @type {string} */ (reader.readString());
|
9549
|
+
msg.setCollections(value);
|
9550
|
+
break;
|
9551
|
+
case 12:
|
9552
|
+
var value = /** @type {string} */ (reader.readString());
|
9553
|
+
msg.setTags(value);
|
9554
|
+
break;
|
9293
9555
|
default:
|
9294
9556
|
reader.skipField();
|
9295
9557
|
break;
|
@@ -9390,6 +9652,20 @@ proto.game.GameItem.serializeBinaryToWriter = function(message, writer) {
|
|
9390
9652
|
f
|
9391
9653
|
);
|
9392
9654
|
}
|
9655
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 11));
|
9656
|
+
if (f != null) {
|
9657
|
+
writer.writeString(
|
9658
|
+
11,
|
9659
|
+
f
|
9660
|
+
);
|
9661
|
+
}
|
9662
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 12));
|
9663
|
+
if (f != null) {
|
9664
|
+
writer.writeString(
|
9665
|
+
12,
|
9666
|
+
f
|
9667
|
+
);
|
9668
|
+
}
|
9393
9669
|
};
|
9394
9670
|
|
9395
9671
|
|
@@ -9754,28 +10030,100 @@ proto.game.GameItem.prototype.hasHasFreeSpins = function() {
|
|
9754
10030
|
};
|
9755
10031
|
|
9756
10032
|
|
9757
|
-
|
9758
10033
|
/**
|
9759
|
-
*
|
9760
|
-
*
|
9761
|
-
* other fields in the group are cleared. During deserialization, if multiple
|
9762
|
-
* fields are encountered for a group, only the last value seen will be kept.
|
9763
|
-
* @private {!Array<!Array<number>>}
|
9764
|
-
* @const
|
10034
|
+
* optional string collections = 11;
|
10035
|
+
* @return {string}
|
9765
10036
|
*/
|
9766
|
-
proto.game.
|
10037
|
+
proto.game.GameItem.prototype.getCollections = function() {
|
10038
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
10039
|
+
};
|
10040
|
+
|
9767
10041
|
|
9768
10042
|
/**
|
9769
|
-
* @
|
10043
|
+
* @param {string} value
|
10044
|
+
* @return {!proto.game.GameItem} returns this
|
9770
10045
|
*/
|
9771
|
-
proto.game.
|
9772
|
-
|
9773
|
-
GAME_DATA: 1,
|
9774
|
-
FILE: 2
|
10046
|
+
proto.game.GameItem.prototype.setCollections = function(value) {
|
10047
|
+
return jspb.Message.setField(this, 11, value);
|
9775
10048
|
};
|
9776
10049
|
|
10050
|
+
|
9777
10051
|
/**
|
9778
|
-
*
|
10052
|
+
* Clears the field making it undefined.
|
10053
|
+
* @return {!proto.game.GameItem} returns this
|
10054
|
+
*/
|
10055
|
+
proto.game.GameItem.prototype.clearCollections = function() {
|
10056
|
+
return jspb.Message.setField(this, 11, undefined);
|
10057
|
+
};
|
10058
|
+
|
10059
|
+
|
10060
|
+
/**
|
10061
|
+
* Returns whether this field is set.
|
10062
|
+
* @return {boolean}
|
10063
|
+
*/
|
10064
|
+
proto.game.GameItem.prototype.hasCollections = function() {
|
10065
|
+
return jspb.Message.getField(this, 11) != null;
|
10066
|
+
};
|
10067
|
+
|
10068
|
+
|
10069
|
+
/**
|
10070
|
+
* optional string tags = 12;
|
10071
|
+
* @return {string}
|
10072
|
+
*/
|
10073
|
+
proto.game.GameItem.prototype.getTags = function() {
|
10074
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
|
10075
|
+
};
|
10076
|
+
|
10077
|
+
|
10078
|
+
/**
|
10079
|
+
* @param {string} value
|
10080
|
+
* @return {!proto.game.GameItem} returns this
|
10081
|
+
*/
|
10082
|
+
proto.game.GameItem.prototype.setTags = function(value) {
|
10083
|
+
return jspb.Message.setField(this, 12, value);
|
10084
|
+
};
|
10085
|
+
|
10086
|
+
|
10087
|
+
/**
|
10088
|
+
* Clears the field making it undefined.
|
10089
|
+
* @return {!proto.game.GameItem} returns this
|
10090
|
+
*/
|
10091
|
+
proto.game.GameItem.prototype.clearTags = function() {
|
10092
|
+
return jspb.Message.setField(this, 12, undefined);
|
10093
|
+
};
|
10094
|
+
|
10095
|
+
|
10096
|
+
/**
|
10097
|
+
* Returns whether this field is set.
|
10098
|
+
* @return {boolean}
|
10099
|
+
*/
|
10100
|
+
proto.game.GameItem.prototype.hasTags = function() {
|
10101
|
+
return jspb.Message.getField(this, 12) != null;
|
10102
|
+
};
|
10103
|
+
|
10104
|
+
|
10105
|
+
|
10106
|
+
/**
|
10107
|
+
* Oneof group definitions for this message. Each group defines the field
|
10108
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
10109
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
10110
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
10111
|
+
* @private {!Array<!Array<number>>}
|
10112
|
+
* @const
|
10113
|
+
*/
|
10114
|
+
proto.game.GameRequest.oneofGroups_ = [[1,2]];
|
10115
|
+
|
10116
|
+
/**
|
10117
|
+
* @enum {number}
|
10118
|
+
*/
|
10119
|
+
proto.game.GameRequest.RequestCase = {
|
10120
|
+
REQUEST_NOT_SET: 0,
|
10121
|
+
GAME_DATA: 1,
|
10122
|
+
FILE: 2
|
10123
|
+
};
|
10124
|
+
|
10125
|
+
/**
|
10126
|
+
* @return {proto.game.GameRequest.RequestCase}
|
9779
10127
|
*/
|
9780
10128
|
proto.game.GameRequest.prototype.getRequestCase = function() {
|
9781
10129
|
return /** @type {proto.game.GameRequest.RequestCase} */(jspb.Message.computeOneofCase(this, proto.game.GameRequest.oneofGroups_[0]));
|
@@ -11554,4 +11902,278 @@ proto.game.SearchGamesIntoCollectionsRequest.prototype.hasOffset = function() {
|
|
11554
11902
|
};
|
11555
11903
|
|
11556
11904
|
|
11905
|
+
|
11906
|
+
|
11907
|
+
|
11908
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
11909
|
+
/**
|
11910
|
+
* Creates an object representation of this proto.
|
11911
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
11912
|
+
* Optional fields that are not set will be set to undefined.
|
11913
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
11914
|
+
* For the list of reserved names please see:
|
11915
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
11916
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
11917
|
+
* JSPB instance for transitional soy proto support:
|
11918
|
+
* http://goto/soy-param-migration
|
11919
|
+
* @return {!Object}
|
11920
|
+
*/
|
11921
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.toObject = function(opt_includeInstance) {
|
11922
|
+
return proto.game.SearchGamesIntoTagsRequest.toObject(opt_includeInstance, this);
|
11923
|
+
};
|
11924
|
+
|
11925
|
+
|
11926
|
+
/**
|
11927
|
+
* Static version of the {@see toObject} method.
|
11928
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
11929
|
+
* the JSPB instance for transitional soy proto support:
|
11930
|
+
* http://goto/soy-param-migration
|
11931
|
+
* @param {!proto.game.SearchGamesIntoTagsRequest} msg The msg instance to transform.
|
11932
|
+
* @return {!Object}
|
11933
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
11934
|
+
*/
|
11935
|
+
proto.game.SearchGamesIntoTagsRequest.toObject = function(includeInstance, msg) {
|
11936
|
+
var f, obj = {
|
11937
|
+
tagSlugs: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
11938
|
+
geo: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
11939
|
+
limit: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
11940
|
+
offset: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
11941
|
+
};
|
11942
|
+
|
11943
|
+
if (includeInstance) {
|
11944
|
+
obj.$jspbMessageInstance = msg;
|
11945
|
+
}
|
11946
|
+
return obj;
|
11947
|
+
};
|
11948
|
+
}
|
11949
|
+
|
11950
|
+
|
11951
|
+
/**
|
11952
|
+
* Deserializes binary data (in protobuf wire format).
|
11953
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
11954
|
+
* @return {!proto.game.SearchGamesIntoTagsRequest}
|
11955
|
+
*/
|
11956
|
+
proto.game.SearchGamesIntoTagsRequest.deserializeBinary = function(bytes) {
|
11957
|
+
var reader = new jspb.BinaryReader(bytes);
|
11958
|
+
var msg = new proto.game.SearchGamesIntoTagsRequest;
|
11959
|
+
return proto.game.SearchGamesIntoTagsRequest.deserializeBinaryFromReader(msg, reader);
|
11960
|
+
};
|
11961
|
+
|
11962
|
+
|
11963
|
+
/**
|
11964
|
+
* Deserializes binary data (in protobuf wire format) from the
|
11965
|
+
* given reader into the given message object.
|
11966
|
+
* @param {!proto.game.SearchGamesIntoTagsRequest} msg The message object to deserialize into.
|
11967
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
11968
|
+
* @return {!proto.game.SearchGamesIntoTagsRequest}
|
11969
|
+
*/
|
11970
|
+
proto.game.SearchGamesIntoTagsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
11971
|
+
while (reader.nextField()) {
|
11972
|
+
if (reader.isEndGroup()) {
|
11973
|
+
break;
|
11974
|
+
}
|
11975
|
+
var field = reader.getFieldNumber();
|
11976
|
+
switch (field) {
|
11977
|
+
case 1:
|
11978
|
+
var value = /** @type {string} */ (reader.readString());
|
11979
|
+
msg.setTagSlugs(value);
|
11980
|
+
break;
|
11981
|
+
case 2:
|
11982
|
+
var value = /** @type {string} */ (reader.readString());
|
11983
|
+
msg.setGeo(value);
|
11984
|
+
break;
|
11985
|
+
case 3:
|
11986
|
+
var value = /** @type {number} */ (reader.readInt32());
|
11987
|
+
msg.setLimit(value);
|
11988
|
+
break;
|
11989
|
+
case 4:
|
11990
|
+
var value = /** @type {number} */ (reader.readInt32());
|
11991
|
+
msg.setOffset(value);
|
11992
|
+
break;
|
11993
|
+
default:
|
11994
|
+
reader.skipField();
|
11995
|
+
break;
|
11996
|
+
}
|
11997
|
+
}
|
11998
|
+
return msg;
|
11999
|
+
};
|
12000
|
+
|
12001
|
+
|
12002
|
+
/**
|
12003
|
+
* Serializes the message to binary data (in protobuf wire format).
|
12004
|
+
* @return {!Uint8Array}
|
12005
|
+
*/
|
12006
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.serializeBinary = function() {
|
12007
|
+
var writer = new jspb.BinaryWriter();
|
12008
|
+
proto.game.SearchGamesIntoTagsRequest.serializeBinaryToWriter(this, writer);
|
12009
|
+
return writer.getResultBuffer();
|
12010
|
+
};
|
12011
|
+
|
12012
|
+
|
12013
|
+
/**
|
12014
|
+
* Serializes the given message to binary data (in protobuf wire
|
12015
|
+
* format), writing to the given BinaryWriter.
|
12016
|
+
* @param {!proto.game.SearchGamesIntoTagsRequest} message
|
12017
|
+
* @param {!jspb.BinaryWriter} writer
|
12018
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
12019
|
+
*/
|
12020
|
+
proto.game.SearchGamesIntoTagsRequest.serializeBinaryToWriter = function(message, writer) {
|
12021
|
+
var f = undefined;
|
12022
|
+
f = message.getTagSlugs();
|
12023
|
+
if (f.length > 0) {
|
12024
|
+
writer.writeString(
|
12025
|
+
1,
|
12026
|
+
f
|
12027
|
+
);
|
12028
|
+
}
|
12029
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
12030
|
+
if (f != null) {
|
12031
|
+
writer.writeString(
|
12032
|
+
2,
|
12033
|
+
f
|
12034
|
+
);
|
12035
|
+
}
|
12036
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
12037
|
+
if (f != null) {
|
12038
|
+
writer.writeInt32(
|
12039
|
+
3,
|
12040
|
+
f
|
12041
|
+
);
|
12042
|
+
}
|
12043
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
12044
|
+
if (f != null) {
|
12045
|
+
writer.writeInt32(
|
12046
|
+
4,
|
12047
|
+
f
|
12048
|
+
);
|
12049
|
+
}
|
12050
|
+
};
|
12051
|
+
|
12052
|
+
|
12053
|
+
/**
|
12054
|
+
* optional string tag_slugs = 1;
|
12055
|
+
* @return {string}
|
12056
|
+
*/
|
12057
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.getTagSlugs = function() {
|
12058
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
12059
|
+
};
|
12060
|
+
|
12061
|
+
|
12062
|
+
/**
|
12063
|
+
* @param {string} value
|
12064
|
+
* @return {!proto.game.SearchGamesIntoTagsRequest} returns this
|
12065
|
+
*/
|
12066
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.setTagSlugs = function(value) {
|
12067
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
12068
|
+
};
|
12069
|
+
|
12070
|
+
|
12071
|
+
/**
|
12072
|
+
* optional string geo = 2;
|
12073
|
+
* @return {string}
|
12074
|
+
*/
|
12075
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.getGeo = function() {
|
12076
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
12077
|
+
};
|
12078
|
+
|
12079
|
+
|
12080
|
+
/**
|
12081
|
+
* @param {string} value
|
12082
|
+
* @return {!proto.game.SearchGamesIntoTagsRequest} returns this
|
12083
|
+
*/
|
12084
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.setGeo = function(value) {
|
12085
|
+
return jspb.Message.setField(this, 2, value);
|
12086
|
+
};
|
12087
|
+
|
12088
|
+
|
12089
|
+
/**
|
12090
|
+
* Clears the field making it undefined.
|
12091
|
+
* @return {!proto.game.SearchGamesIntoTagsRequest} returns this
|
12092
|
+
*/
|
12093
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.clearGeo = function() {
|
12094
|
+
return jspb.Message.setField(this, 2, undefined);
|
12095
|
+
};
|
12096
|
+
|
12097
|
+
|
12098
|
+
/**
|
12099
|
+
* Returns whether this field is set.
|
12100
|
+
* @return {boolean}
|
12101
|
+
*/
|
12102
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.hasGeo = function() {
|
12103
|
+
return jspb.Message.getField(this, 2) != null;
|
12104
|
+
};
|
12105
|
+
|
12106
|
+
|
12107
|
+
/**
|
12108
|
+
* optional int32 limit = 3;
|
12109
|
+
* @return {number}
|
12110
|
+
*/
|
12111
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.getLimit = function() {
|
12112
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
12113
|
+
};
|
12114
|
+
|
12115
|
+
|
12116
|
+
/**
|
12117
|
+
* @param {number} value
|
12118
|
+
* @return {!proto.game.SearchGamesIntoTagsRequest} returns this
|
12119
|
+
*/
|
12120
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.setLimit = function(value) {
|
12121
|
+
return jspb.Message.setField(this, 3, value);
|
12122
|
+
};
|
12123
|
+
|
12124
|
+
|
12125
|
+
/**
|
12126
|
+
* Clears the field making it undefined.
|
12127
|
+
* @return {!proto.game.SearchGamesIntoTagsRequest} returns this
|
12128
|
+
*/
|
12129
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.clearLimit = function() {
|
12130
|
+
return jspb.Message.setField(this, 3, undefined);
|
12131
|
+
};
|
12132
|
+
|
12133
|
+
|
12134
|
+
/**
|
12135
|
+
* Returns whether this field is set.
|
12136
|
+
* @return {boolean}
|
12137
|
+
*/
|
12138
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.hasLimit = function() {
|
12139
|
+
return jspb.Message.getField(this, 3) != null;
|
12140
|
+
};
|
12141
|
+
|
12142
|
+
|
12143
|
+
/**
|
12144
|
+
* optional int32 offset = 4;
|
12145
|
+
* @return {number}
|
12146
|
+
*/
|
12147
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.getOffset = function() {
|
12148
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
12149
|
+
};
|
12150
|
+
|
12151
|
+
|
12152
|
+
/**
|
12153
|
+
* @param {number} value
|
12154
|
+
* @return {!proto.game.SearchGamesIntoTagsRequest} returns this
|
12155
|
+
*/
|
12156
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.setOffset = function(value) {
|
12157
|
+
return jspb.Message.setField(this, 4, value);
|
12158
|
+
};
|
12159
|
+
|
12160
|
+
|
12161
|
+
/**
|
12162
|
+
* Clears the field making it undefined.
|
12163
|
+
* @return {!proto.game.SearchGamesIntoTagsRequest} returns this
|
12164
|
+
*/
|
12165
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.clearOffset = function() {
|
12166
|
+
return jspb.Message.setField(this, 4, undefined);
|
12167
|
+
};
|
12168
|
+
|
12169
|
+
|
12170
|
+
/**
|
12171
|
+
* Returns whether this field is set.
|
12172
|
+
* @return {boolean}
|
12173
|
+
*/
|
12174
|
+
proto.game.SearchGamesIntoTagsRequest.prototype.hasOffset = function() {
|
12175
|
+
return jspb.Message.getField(this, 4) != null;
|
12176
|
+
};
|
12177
|
+
|
12178
|
+
|
11557
12179
|
goog.object.extend(exports, proto.game);
|