protobuf-platform 1.0.64 → 1.0.66
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 +8 -4
- package/game/game_pb.js +406 -214
- package/package.json +1 -1
package/game/game.proto
CHANGED
@@ -133,10 +133,6 @@ message CollectionGamesRequest {
|
|
133
133
|
string game_ids = 2;
|
134
134
|
optional string geo = 3;
|
135
135
|
}
|
136
|
-
message SearchGamesIntoCollectionsRequest {
|
137
|
-
string collection_slugs = 1;
|
138
|
-
optional string geo = 2;
|
139
|
-
}
|
140
136
|
|
141
137
|
//Tag CRUD
|
142
138
|
message TagItem {
|
@@ -235,6 +231,8 @@ message GameItem {
|
|
235
231
|
optional string type = 8;
|
236
232
|
optional int32 is_mobile = 9;
|
237
233
|
optional int32 has_free_spins = 10;
|
234
|
+
optional string collections = 11;
|
235
|
+
optional string tags = 12;
|
238
236
|
}
|
239
237
|
//Game CRUD | Requests
|
240
238
|
message GameRequest {
|
@@ -270,4 +268,10 @@ message GameItemsResponse {
|
|
270
268
|
}
|
271
269
|
message GameStatusResponse {
|
272
270
|
string status = 1;
|
271
|
+
}
|
272
|
+
message SearchGamesIntoCollectionsRequest {
|
273
|
+
string collection_slugs = 1;
|
274
|
+
optional string geo = 2;
|
275
|
+
optional int32 limit = 3;
|
276
|
+
optional int32 offset = 4;
|
273
277
|
}
|
package/game/game_pb.js
CHANGED
@@ -490,27 +490,6 @@ if (goog.DEBUG && !COMPILED) {
|
|
490
490
|
*/
|
491
491
|
proto.game.CollectionGamesRequest.displayName = 'proto.game.CollectionGamesRequest';
|
492
492
|
}
|
493
|
-
/**
|
494
|
-
* Generated by JsPbCodeGenerator.
|
495
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
496
|
-
* server response, or constructed directly in Javascript. The array is used
|
497
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
498
|
-
* If no data is provided, the constructed object will be empty, but still
|
499
|
-
* valid.
|
500
|
-
* @extends {jspb.Message}
|
501
|
-
* @constructor
|
502
|
-
*/
|
503
|
-
proto.game.SearchGamesIntoCollectionsRequest = function(opt_data) {
|
504
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
505
|
-
};
|
506
|
-
goog.inherits(proto.game.SearchGamesIntoCollectionsRequest, jspb.Message);
|
507
|
-
if (goog.DEBUG && !COMPILED) {
|
508
|
-
/**
|
509
|
-
* @public
|
510
|
-
* @override
|
511
|
-
*/
|
512
|
-
proto.game.SearchGamesIntoCollectionsRequest.displayName = 'proto.game.SearchGamesIntoCollectionsRequest';
|
513
|
-
}
|
514
493
|
/**
|
515
494
|
* Generated by JsPbCodeGenerator.
|
516
495
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -994,6 +973,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
994
973
|
*/
|
995
974
|
proto.game.GameStatusResponse.displayName = 'proto.game.GameStatusResponse';
|
996
975
|
}
|
976
|
+
/**
|
977
|
+
* Generated by JsPbCodeGenerator.
|
978
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
979
|
+
* server response, or constructed directly in Javascript. The array is used
|
980
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
981
|
+
* If no data is provided, the constructed object will be empty, but still
|
982
|
+
* valid.
|
983
|
+
* @extends {jspb.Message}
|
984
|
+
* @constructor
|
985
|
+
*/
|
986
|
+
proto.game.SearchGamesIntoCollectionsRequest = function(opt_data) {
|
987
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
988
|
+
};
|
989
|
+
goog.inherits(proto.game.SearchGamesIntoCollectionsRequest, jspb.Message);
|
990
|
+
if (goog.DEBUG && !COMPILED) {
|
991
|
+
/**
|
992
|
+
* @public
|
993
|
+
* @override
|
994
|
+
*/
|
995
|
+
proto.game.SearchGamesIntoCollectionsRequest.displayName = 'proto.game.SearchGamesIntoCollectionsRequest';
|
996
|
+
}
|
997
997
|
|
998
998
|
|
999
999
|
|
@@ -5476,184 +5476,6 @@ proto.game.CollectionGamesRequest.prototype.hasGeo = function() {
|
|
5476
5476
|
|
5477
5477
|
|
5478
5478
|
|
5479
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
5480
|
-
/**
|
5481
|
-
* Creates an object representation of this proto.
|
5482
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
5483
|
-
* Optional fields that are not set will be set to undefined.
|
5484
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
5485
|
-
* For the list of reserved names please see:
|
5486
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
5487
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
5488
|
-
* JSPB instance for transitional soy proto support:
|
5489
|
-
* http://goto/soy-param-migration
|
5490
|
-
* @return {!Object}
|
5491
|
-
*/
|
5492
|
-
proto.game.SearchGamesIntoCollectionsRequest.prototype.toObject = function(opt_includeInstance) {
|
5493
|
-
return proto.game.SearchGamesIntoCollectionsRequest.toObject(opt_includeInstance, this);
|
5494
|
-
};
|
5495
|
-
|
5496
|
-
|
5497
|
-
/**
|
5498
|
-
* Static version of the {@see toObject} method.
|
5499
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
5500
|
-
* the JSPB instance for transitional soy proto support:
|
5501
|
-
* http://goto/soy-param-migration
|
5502
|
-
* @param {!proto.game.SearchGamesIntoCollectionsRequest} msg The msg instance to transform.
|
5503
|
-
* @return {!Object}
|
5504
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5505
|
-
*/
|
5506
|
-
proto.game.SearchGamesIntoCollectionsRequest.toObject = function(includeInstance, msg) {
|
5507
|
-
var f, obj = {
|
5508
|
-
collectionSlugs: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
5509
|
-
geo: jspb.Message.getFieldWithDefault(msg, 2, "")
|
5510
|
-
};
|
5511
|
-
|
5512
|
-
if (includeInstance) {
|
5513
|
-
obj.$jspbMessageInstance = msg;
|
5514
|
-
}
|
5515
|
-
return obj;
|
5516
|
-
};
|
5517
|
-
}
|
5518
|
-
|
5519
|
-
|
5520
|
-
/**
|
5521
|
-
* Deserializes binary data (in protobuf wire format).
|
5522
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
5523
|
-
* @return {!proto.game.SearchGamesIntoCollectionsRequest}
|
5524
|
-
*/
|
5525
|
-
proto.game.SearchGamesIntoCollectionsRequest.deserializeBinary = function(bytes) {
|
5526
|
-
var reader = new jspb.BinaryReader(bytes);
|
5527
|
-
var msg = new proto.game.SearchGamesIntoCollectionsRequest;
|
5528
|
-
return proto.game.SearchGamesIntoCollectionsRequest.deserializeBinaryFromReader(msg, reader);
|
5529
|
-
};
|
5530
|
-
|
5531
|
-
|
5532
|
-
/**
|
5533
|
-
* Deserializes binary data (in protobuf wire format) from the
|
5534
|
-
* given reader into the given message object.
|
5535
|
-
* @param {!proto.game.SearchGamesIntoCollectionsRequest} msg The message object to deserialize into.
|
5536
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
5537
|
-
* @return {!proto.game.SearchGamesIntoCollectionsRequest}
|
5538
|
-
*/
|
5539
|
-
proto.game.SearchGamesIntoCollectionsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
5540
|
-
while (reader.nextField()) {
|
5541
|
-
if (reader.isEndGroup()) {
|
5542
|
-
break;
|
5543
|
-
}
|
5544
|
-
var field = reader.getFieldNumber();
|
5545
|
-
switch (field) {
|
5546
|
-
case 1:
|
5547
|
-
var value = /** @type {string} */ (reader.readString());
|
5548
|
-
msg.setCollectionSlugs(value);
|
5549
|
-
break;
|
5550
|
-
case 2:
|
5551
|
-
var value = /** @type {string} */ (reader.readString());
|
5552
|
-
msg.setGeo(value);
|
5553
|
-
break;
|
5554
|
-
default:
|
5555
|
-
reader.skipField();
|
5556
|
-
break;
|
5557
|
-
}
|
5558
|
-
}
|
5559
|
-
return msg;
|
5560
|
-
};
|
5561
|
-
|
5562
|
-
|
5563
|
-
/**
|
5564
|
-
* Serializes the message to binary data (in protobuf wire format).
|
5565
|
-
* @return {!Uint8Array}
|
5566
|
-
*/
|
5567
|
-
proto.game.SearchGamesIntoCollectionsRequest.prototype.serializeBinary = function() {
|
5568
|
-
var writer = new jspb.BinaryWriter();
|
5569
|
-
proto.game.SearchGamesIntoCollectionsRequest.serializeBinaryToWriter(this, writer);
|
5570
|
-
return writer.getResultBuffer();
|
5571
|
-
};
|
5572
|
-
|
5573
|
-
|
5574
|
-
/**
|
5575
|
-
* Serializes the given message to binary data (in protobuf wire
|
5576
|
-
* format), writing to the given BinaryWriter.
|
5577
|
-
* @param {!proto.game.SearchGamesIntoCollectionsRequest} message
|
5578
|
-
* @param {!jspb.BinaryWriter} writer
|
5579
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5580
|
-
*/
|
5581
|
-
proto.game.SearchGamesIntoCollectionsRequest.serializeBinaryToWriter = function(message, writer) {
|
5582
|
-
var f = undefined;
|
5583
|
-
f = message.getCollectionSlugs();
|
5584
|
-
if (f.length > 0) {
|
5585
|
-
writer.writeString(
|
5586
|
-
1,
|
5587
|
-
f
|
5588
|
-
);
|
5589
|
-
}
|
5590
|
-
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
5591
|
-
if (f != null) {
|
5592
|
-
writer.writeString(
|
5593
|
-
2,
|
5594
|
-
f
|
5595
|
-
);
|
5596
|
-
}
|
5597
|
-
};
|
5598
|
-
|
5599
|
-
|
5600
|
-
/**
|
5601
|
-
* optional string collection_slugs = 1;
|
5602
|
-
* @return {string}
|
5603
|
-
*/
|
5604
|
-
proto.game.SearchGamesIntoCollectionsRequest.prototype.getCollectionSlugs = function() {
|
5605
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
5606
|
-
};
|
5607
|
-
|
5608
|
-
|
5609
|
-
/**
|
5610
|
-
* @param {string} value
|
5611
|
-
* @return {!proto.game.SearchGamesIntoCollectionsRequest} returns this
|
5612
|
-
*/
|
5613
|
-
proto.game.SearchGamesIntoCollectionsRequest.prototype.setCollectionSlugs = function(value) {
|
5614
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
5615
|
-
};
|
5616
|
-
|
5617
|
-
|
5618
|
-
/**
|
5619
|
-
* optional string geo = 2;
|
5620
|
-
* @return {string}
|
5621
|
-
*/
|
5622
|
-
proto.game.SearchGamesIntoCollectionsRequest.prototype.getGeo = function() {
|
5623
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
5624
|
-
};
|
5625
|
-
|
5626
|
-
|
5627
|
-
/**
|
5628
|
-
* @param {string} value
|
5629
|
-
* @return {!proto.game.SearchGamesIntoCollectionsRequest} returns this
|
5630
|
-
*/
|
5631
|
-
proto.game.SearchGamesIntoCollectionsRequest.prototype.setGeo = function(value) {
|
5632
|
-
return jspb.Message.setField(this, 2, value);
|
5633
|
-
};
|
5634
|
-
|
5635
|
-
|
5636
|
-
/**
|
5637
|
-
* Clears the field making it undefined.
|
5638
|
-
* @return {!proto.game.SearchGamesIntoCollectionsRequest} returns this
|
5639
|
-
*/
|
5640
|
-
proto.game.SearchGamesIntoCollectionsRequest.prototype.clearGeo = function() {
|
5641
|
-
return jspb.Message.setField(this, 2, undefined);
|
5642
|
-
};
|
5643
|
-
|
5644
|
-
|
5645
|
-
/**
|
5646
|
-
* Returns whether this field is set.
|
5647
|
-
* @return {boolean}
|
5648
|
-
*/
|
5649
|
-
proto.game.SearchGamesIntoCollectionsRequest.prototype.hasGeo = function() {
|
5650
|
-
return jspb.Message.getField(this, 2) != null;
|
5651
|
-
};
|
5652
|
-
|
5653
|
-
|
5654
|
-
|
5655
|
-
|
5656
|
-
|
5657
5479
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
5658
5480
|
/**
|
5659
5481
|
* Creates an object representation of this proto.
|
@@ -9390,7 +9212,9 @@ proto.game.GameItem.toObject = function(includeInstance, msg) {
|
|
9390
9212
|
image: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
9391
9213
|
type: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
9392
9214
|
isMobile: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
9393
|
-
hasFreeSpins: jspb.Message.getFieldWithDefault(msg, 10, 0)
|
9215
|
+
hasFreeSpins: jspb.Message.getFieldWithDefault(msg, 10, 0),
|
9216
|
+
collections: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
9217
|
+
tags: jspb.Message.getFieldWithDefault(msg, 12, "")
|
9394
9218
|
};
|
9395
9219
|
|
9396
9220
|
if (includeInstance) {
|
@@ -9468,6 +9292,14 @@ proto.game.GameItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
9468
9292
|
var value = /** @type {number} */ (reader.readInt32());
|
9469
9293
|
msg.setHasFreeSpins(value);
|
9470
9294
|
break;
|
9295
|
+
case 11:
|
9296
|
+
var value = /** @type {string} */ (reader.readString());
|
9297
|
+
msg.setCollections(value);
|
9298
|
+
break;
|
9299
|
+
case 12:
|
9300
|
+
var value = /** @type {string} */ (reader.readString());
|
9301
|
+
msg.setTags(value);
|
9302
|
+
break;
|
9471
9303
|
default:
|
9472
9304
|
reader.skipField();
|
9473
9305
|
break;
|
@@ -9568,6 +9400,20 @@ proto.game.GameItem.serializeBinaryToWriter = function(message, writer) {
|
|
9568
9400
|
f
|
9569
9401
|
);
|
9570
9402
|
}
|
9403
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 11));
|
9404
|
+
if (f != null) {
|
9405
|
+
writer.writeString(
|
9406
|
+
11,
|
9407
|
+
f
|
9408
|
+
);
|
9409
|
+
}
|
9410
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 12));
|
9411
|
+
if (f != null) {
|
9412
|
+
writer.writeString(
|
9413
|
+
12,
|
9414
|
+
f
|
9415
|
+
);
|
9416
|
+
}
|
9571
9417
|
};
|
9572
9418
|
|
9573
9419
|
|
@@ -9932,28 +9778,100 @@ proto.game.GameItem.prototype.hasHasFreeSpins = function() {
|
|
9932
9778
|
};
|
9933
9779
|
|
9934
9780
|
|
9935
|
-
|
9936
9781
|
/**
|
9937
|
-
*
|
9938
|
-
*
|
9939
|
-
* other fields in the group are cleared. During deserialization, if multiple
|
9940
|
-
* fields are encountered for a group, only the last value seen will be kept.
|
9941
|
-
* @private {!Array<!Array<number>>}
|
9942
|
-
* @const
|
9782
|
+
* optional string collections = 11;
|
9783
|
+
* @return {string}
|
9943
9784
|
*/
|
9944
|
-
proto.game.
|
9785
|
+
proto.game.GameItem.prototype.getCollections = function() {
|
9786
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
9787
|
+
};
|
9788
|
+
|
9945
9789
|
|
9946
9790
|
/**
|
9947
|
-
* @
|
9791
|
+
* @param {string} value
|
9792
|
+
* @return {!proto.game.GameItem} returns this
|
9948
9793
|
*/
|
9949
|
-
proto.game.
|
9950
|
-
|
9951
|
-
GAME_DATA: 1,
|
9952
|
-
FILE: 2
|
9794
|
+
proto.game.GameItem.prototype.setCollections = function(value) {
|
9795
|
+
return jspb.Message.setField(this, 11, value);
|
9953
9796
|
};
|
9954
9797
|
|
9798
|
+
|
9955
9799
|
/**
|
9956
|
-
*
|
9800
|
+
* Clears the field making it undefined.
|
9801
|
+
* @return {!proto.game.GameItem} returns this
|
9802
|
+
*/
|
9803
|
+
proto.game.GameItem.prototype.clearCollections = function() {
|
9804
|
+
return jspb.Message.setField(this, 11, undefined);
|
9805
|
+
};
|
9806
|
+
|
9807
|
+
|
9808
|
+
/**
|
9809
|
+
* Returns whether this field is set.
|
9810
|
+
* @return {boolean}
|
9811
|
+
*/
|
9812
|
+
proto.game.GameItem.prototype.hasCollections = function() {
|
9813
|
+
return jspb.Message.getField(this, 11) != null;
|
9814
|
+
};
|
9815
|
+
|
9816
|
+
|
9817
|
+
/**
|
9818
|
+
* optional string tags = 12;
|
9819
|
+
* @return {string}
|
9820
|
+
*/
|
9821
|
+
proto.game.GameItem.prototype.getTags = function() {
|
9822
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
|
9823
|
+
};
|
9824
|
+
|
9825
|
+
|
9826
|
+
/**
|
9827
|
+
* @param {string} value
|
9828
|
+
* @return {!proto.game.GameItem} returns this
|
9829
|
+
*/
|
9830
|
+
proto.game.GameItem.prototype.setTags = function(value) {
|
9831
|
+
return jspb.Message.setField(this, 12, value);
|
9832
|
+
};
|
9833
|
+
|
9834
|
+
|
9835
|
+
/**
|
9836
|
+
* Clears the field making it undefined.
|
9837
|
+
* @return {!proto.game.GameItem} returns this
|
9838
|
+
*/
|
9839
|
+
proto.game.GameItem.prototype.clearTags = function() {
|
9840
|
+
return jspb.Message.setField(this, 12, undefined);
|
9841
|
+
};
|
9842
|
+
|
9843
|
+
|
9844
|
+
/**
|
9845
|
+
* Returns whether this field is set.
|
9846
|
+
* @return {boolean}
|
9847
|
+
*/
|
9848
|
+
proto.game.GameItem.prototype.hasTags = function() {
|
9849
|
+
return jspb.Message.getField(this, 12) != null;
|
9850
|
+
};
|
9851
|
+
|
9852
|
+
|
9853
|
+
|
9854
|
+
/**
|
9855
|
+
* Oneof group definitions for this message. Each group defines the field
|
9856
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
9857
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
9858
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
9859
|
+
* @private {!Array<!Array<number>>}
|
9860
|
+
* @const
|
9861
|
+
*/
|
9862
|
+
proto.game.GameRequest.oneofGroups_ = [[1,2]];
|
9863
|
+
|
9864
|
+
/**
|
9865
|
+
* @enum {number}
|
9866
|
+
*/
|
9867
|
+
proto.game.GameRequest.RequestCase = {
|
9868
|
+
REQUEST_NOT_SET: 0,
|
9869
|
+
GAME_DATA: 1,
|
9870
|
+
FILE: 2
|
9871
|
+
};
|
9872
|
+
|
9873
|
+
/**
|
9874
|
+
* @return {proto.game.GameRequest.RequestCase}
|
9957
9875
|
*/
|
9958
9876
|
proto.game.GameRequest.prototype.getRequestCase = function() {
|
9959
9877
|
return /** @type {proto.game.GameRequest.RequestCase} */(jspb.Message.computeOneofCase(this, proto.game.GameRequest.oneofGroups_[0]));
|
@@ -11458,4 +11376,278 @@ proto.game.GameStatusResponse.prototype.setStatus = function(value) {
|
|
11458
11376
|
};
|
11459
11377
|
|
11460
11378
|
|
11379
|
+
|
11380
|
+
|
11381
|
+
|
11382
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
11383
|
+
/**
|
11384
|
+
* Creates an object representation of this proto.
|
11385
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
11386
|
+
* Optional fields that are not set will be set to undefined.
|
11387
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
11388
|
+
* For the list of reserved names please see:
|
11389
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
11390
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
11391
|
+
* JSPB instance for transitional soy proto support:
|
11392
|
+
* http://goto/soy-param-migration
|
11393
|
+
* @return {!Object}
|
11394
|
+
*/
|
11395
|
+
proto.game.SearchGamesIntoCollectionsRequest.prototype.toObject = function(opt_includeInstance) {
|
11396
|
+
return proto.game.SearchGamesIntoCollectionsRequest.toObject(opt_includeInstance, this);
|
11397
|
+
};
|
11398
|
+
|
11399
|
+
|
11400
|
+
/**
|
11401
|
+
* Static version of the {@see toObject} method.
|
11402
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
11403
|
+
* the JSPB instance for transitional soy proto support:
|
11404
|
+
* http://goto/soy-param-migration
|
11405
|
+
* @param {!proto.game.SearchGamesIntoCollectionsRequest} msg The msg instance to transform.
|
11406
|
+
* @return {!Object}
|
11407
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
11408
|
+
*/
|
11409
|
+
proto.game.SearchGamesIntoCollectionsRequest.toObject = function(includeInstance, msg) {
|
11410
|
+
var f, obj = {
|
11411
|
+
collectionSlugs: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
11412
|
+
geo: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
11413
|
+
limit: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
11414
|
+
offset: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
11415
|
+
};
|
11416
|
+
|
11417
|
+
if (includeInstance) {
|
11418
|
+
obj.$jspbMessageInstance = msg;
|
11419
|
+
}
|
11420
|
+
return obj;
|
11421
|
+
};
|
11422
|
+
}
|
11423
|
+
|
11424
|
+
|
11425
|
+
/**
|
11426
|
+
* Deserializes binary data (in protobuf wire format).
|
11427
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
11428
|
+
* @return {!proto.game.SearchGamesIntoCollectionsRequest}
|
11429
|
+
*/
|
11430
|
+
proto.game.SearchGamesIntoCollectionsRequest.deserializeBinary = function(bytes) {
|
11431
|
+
var reader = new jspb.BinaryReader(bytes);
|
11432
|
+
var msg = new proto.game.SearchGamesIntoCollectionsRequest;
|
11433
|
+
return proto.game.SearchGamesIntoCollectionsRequest.deserializeBinaryFromReader(msg, reader);
|
11434
|
+
};
|
11435
|
+
|
11436
|
+
|
11437
|
+
/**
|
11438
|
+
* Deserializes binary data (in protobuf wire format) from the
|
11439
|
+
* given reader into the given message object.
|
11440
|
+
* @param {!proto.game.SearchGamesIntoCollectionsRequest} msg The message object to deserialize into.
|
11441
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
11442
|
+
* @return {!proto.game.SearchGamesIntoCollectionsRequest}
|
11443
|
+
*/
|
11444
|
+
proto.game.SearchGamesIntoCollectionsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
11445
|
+
while (reader.nextField()) {
|
11446
|
+
if (reader.isEndGroup()) {
|
11447
|
+
break;
|
11448
|
+
}
|
11449
|
+
var field = reader.getFieldNumber();
|
11450
|
+
switch (field) {
|
11451
|
+
case 1:
|
11452
|
+
var value = /** @type {string} */ (reader.readString());
|
11453
|
+
msg.setCollectionSlugs(value);
|
11454
|
+
break;
|
11455
|
+
case 2:
|
11456
|
+
var value = /** @type {string} */ (reader.readString());
|
11457
|
+
msg.setGeo(value);
|
11458
|
+
break;
|
11459
|
+
case 3:
|
11460
|
+
var value = /** @type {number} */ (reader.readInt32());
|
11461
|
+
msg.setLimit(value);
|
11462
|
+
break;
|
11463
|
+
case 4:
|
11464
|
+
var value = /** @type {number} */ (reader.readInt32());
|
11465
|
+
msg.setOffset(value);
|
11466
|
+
break;
|
11467
|
+
default:
|
11468
|
+
reader.skipField();
|
11469
|
+
break;
|
11470
|
+
}
|
11471
|
+
}
|
11472
|
+
return msg;
|
11473
|
+
};
|
11474
|
+
|
11475
|
+
|
11476
|
+
/**
|
11477
|
+
* Serializes the message to binary data (in protobuf wire format).
|
11478
|
+
* @return {!Uint8Array}
|
11479
|
+
*/
|
11480
|
+
proto.game.SearchGamesIntoCollectionsRequest.prototype.serializeBinary = function() {
|
11481
|
+
var writer = new jspb.BinaryWriter();
|
11482
|
+
proto.game.SearchGamesIntoCollectionsRequest.serializeBinaryToWriter(this, writer);
|
11483
|
+
return writer.getResultBuffer();
|
11484
|
+
};
|
11485
|
+
|
11486
|
+
|
11487
|
+
/**
|
11488
|
+
* Serializes the given message to binary data (in protobuf wire
|
11489
|
+
* format), writing to the given BinaryWriter.
|
11490
|
+
* @param {!proto.game.SearchGamesIntoCollectionsRequest} message
|
11491
|
+
* @param {!jspb.BinaryWriter} writer
|
11492
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
11493
|
+
*/
|
11494
|
+
proto.game.SearchGamesIntoCollectionsRequest.serializeBinaryToWriter = function(message, writer) {
|
11495
|
+
var f = undefined;
|
11496
|
+
f = message.getCollectionSlugs();
|
11497
|
+
if (f.length > 0) {
|
11498
|
+
writer.writeString(
|
11499
|
+
1,
|
11500
|
+
f
|
11501
|
+
);
|
11502
|
+
}
|
11503
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
11504
|
+
if (f != null) {
|
11505
|
+
writer.writeString(
|
11506
|
+
2,
|
11507
|
+
f
|
11508
|
+
);
|
11509
|
+
}
|
11510
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
11511
|
+
if (f != null) {
|
11512
|
+
writer.writeInt32(
|
11513
|
+
3,
|
11514
|
+
f
|
11515
|
+
);
|
11516
|
+
}
|
11517
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
11518
|
+
if (f != null) {
|
11519
|
+
writer.writeInt32(
|
11520
|
+
4,
|
11521
|
+
f
|
11522
|
+
);
|
11523
|
+
}
|
11524
|
+
};
|
11525
|
+
|
11526
|
+
|
11527
|
+
/**
|
11528
|
+
* optional string collection_slugs = 1;
|
11529
|
+
* @return {string}
|
11530
|
+
*/
|
11531
|
+
proto.game.SearchGamesIntoCollectionsRequest.prototype.getCollectionSlugs = function() {
|
11532
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
11533
|
+
};
|
11534
|
+
|
11535
|
+
|
11536
|
+
/**
|
11537
|
+
* @param {string} value
|
11538
|
+
* @return {!proto.game.SearchGamesIntoCollectionsRequest} returns this
|
11539
|
+
*/
|
11540
|
+
proto.game.SearchGamesIntoCollectionsRequest.prototype.setCollectionSlugs = function(value) {
|
11541
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
11542
|
+
};
|
11543
|
+
|
11544
|
+
|
11545
|
+
/**
|
11546
|
+
* optional string geo = 2;
|
11547
|
+
* @return {string}
|
11548
|
+
*/
|
11549
|
+
proto.game.SearchGamesIntoCollectionsRequest.prototype.getGeo = function() {
|
11550
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
11551
|
+
};
|
11552
|
+
|
11553
|
+
|
11554
|
+
/**
|
11555
|
+
* @param {string} value
|
11556
|
+
* @return {!proto.game.SearchGamesIntoCollectionsRequest} returns this
|
11557
|
+
*/
|
11558
|
+
proto.game.SearchGamesIntoCollectionsRequest.prototype.setGeo = function(value) {
|
11559
|
+
return jspb.Message.setField(this, 2, value);
|
11560
|
+
};
|
11561
|
+
|
11562
|
+
|
11563
|
+
/**
|
11564
|
+
* Clears the field making it undefined.
|
11565
|
+
* @return {!proto.game.SearchGamesIntoCollectionsRequest} returns this
|
11566
|
+
*/
|
11567
|
+
proto.game.SearchGamesIntoCollectionsRequest.prototype.clearGeo = function() {
|
11568
|
+
return jspb.Message.setField(this, 2, undefined);
|
11569
|
+
};
|
11570
|
+
|
11571
|
+
|
11572
|
+
/**
|
11573
|
+
* Returns whether this field is set.
|
11574
|
+
* @return {boolean}
|
11575
|
+
*/
|
11576
|
+
proto.game.SearchGamesIntoCollectionsRequest.prototype.hasGeo = function() {
|
11577
|
+
return jspb.Message.getField(this, 2) != null;
|
11578
|
+
};
|
11579
|
+
|
11580
|
+
|
11581
|
+
/**
|
11582
|
+
* optional int32 limit = 3;
|
11583
|
+
* @return {number}
|
11584
|
+
*/
|
11585
|
+
proto.game.SearchGamesIntoCollectionsRequest.prototype.getLimit = function() {
|
11586
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
11587
|
+
};
|
11588
|
+
|
11589
|
+
|
11590
|
+
/**
|
11591
|
+
* @param {number} value
|
11592
|
+
* @return {!proto.game.SearchGamesIntoCollectionsRequest} returns this
|
11593
|
+
*/
|
11594
|
+
proto.game.SearchGamesIntoCollectionsRequest.prototype.setLimit = function(value) {
|
11595
|
+
return jspb.Message.setField(this, 3, value);
|
11596
|
+
};
|
11597
|
+
|
11598
|
+
|
11599
|
+
/**
|
11600
|
+
* Clears the field making it undefined.
|
11601
|
+
* @return {!proto.game.SearchGamesIntoCollectionsRequest} returns this
|
11602
|
+
*/
|
11603
|
+
proto.game.SearchGamesIntoCollectionsRequest.prototype.clearLimit = function() {
|
11604
|
+
return jspb.Message.setField(this, 3, undefined);
|
11605
|
+
};
|
11606
|
+
|
11607
|
+
|
11608
|
+
/**
|
11609
|
+
* Returns whether this field is set.
|
11610
|
+
* @return {boolean}
|
11611
|
+
*/
|
11612
|
+
proto.game.SearchGamesIntoCollectionsRequest.prototype.hasLimit = function() {
|
11613
|
+
return jspb.Message.getField(this, 3) != null;
|
11614
|
+
};
|
11615
|
+
|
11616
|
+
|
11617
|
+
/**
|
11618
|
+
* optional int32 offset = 4;
|
11619
|
+
* @return {number}
|
11620
|
+
*/
|
11621
|
+
proto.game.SearchGamesIntoCollectionsRequest.prototype.getOffset = function() {
|
11622
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
11623
|
+
};
|
11624
|
+
|
11625
|
+
|
11626
|
+
/**
|
11627
|
+
* @param {number} value
|
11628
|
+
* @return {!proto.game.SearchGamesIntoCollectionsRequest} returns this
|
11629
|
+
*/
|
11630
|
+
proto.game.SearchGamesIntoCollectionsRequest.prototype.setOffset = function(value) {
|
11631
|
+
return jspb.Message.setField(this, 4, value);
|
11632
|
+
};
|
11633
|
+
|
11634
|
+
|
11635
|
+
/**
|
11636
|
+
* Clears the field making it undefined.
|
11637
|
+
* @return {!proto.game.SearchGamesIntoCollectionsRequest} returns this
|
11638
|
+
*/
|
11639
|
+
proto.game.SearchGamesIntoCollectionsRequest.prototype.clearOffset = function() {
|
11640
|
+
return jspb.Message.setField(this, 4, undefined);
|
11641
|
+
};
|
11642
|
+
|
11643
|
+
|
11644
|
+
/**
|
11645
|
+
* Returns whether this field is set.
|
11646
|
+
* @return {boolean}
|
11647
|
+
*/
|
11648
|
+
proto.game.SearchGamesIntoCollectionsRequest.prototype.hasOffset = function() {
|
11649
|
+
return jspb.Message.getField(this, 4) != null;
|
11650
|
+
};
|
11651
|
+
|
11652
|
+
|
11461
11653
|
goog.object.extend(exports, proto.game);
|