protobuf-platform 1.1.54 → 1.1.56

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.
@@ -33,6 +33,7 @@ message DashboardRequest {
33
33
  message DashboardResponse {
34
34
  optional int32 active_users_count = 1;
35
35
  optional int32 registrations_count = 2;
36
+ optional int32 login_count = 3;
36
37
  }
37
38
  //Global
38
39
  message GlobalCasinoItem {
@@ -1307,7 +1307,8 @@ proto.analytic.DashboardResponse.prototype.toObject = function(opt_includeInstan
1307
1307
  proto.analytic.DashboardResponse.toObject = function(includeInstance, msg) {
1308
1308
  var f, obj = {
1309
1309
  activeUsersCount: jspb.Message.getFieldWithDefault(msg, 1, 0),
1310
- registrationsCount: jspb.Message.getFieldWithDefault(msg, 2, 0)
1310
+ registrationsCount: jspb.Message.getFieldWithDefault(msg, 2, 0),
1311
+ loginCount: jspb.Message.getFieldWithDefault(msg, 3, 0)
1311
1312
  };
1312
1313
 
1313
1314
  if (includeInstance) {
@@ -1352,6 +1353,10 @@ proto.analytic.DashboardResponse.deserializeBinaryFromReader = function(msg, rea
1352
1353
  var value = /** @type {number} */ (reader.readInt32());
1353
1354
  msg.setRegistrationsCount(value);
1354
1355
  break;
1356
+ case 3:
1357
+ var value = /** @type {number} */ (reader.readInt32());
1358
+ msg.setLoginCount(value);
1359
+ break;
1355
1360
  default:
1356
1361
  reader.skipField();
1357
1362
  break;
@@ -1395,6 +1400,13 @@ proto.analytic.DashboardResponse.serializeBinaryToWriter = function(message, wri
1395
1400
  f
1396
1401
  );
1397
1402
  }
1403
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
1404
+ if (f != null) {
1405
+ writer.writeInt32(
1406
+ 3,
1407
+ f
1408
+ );
1409
+ }
1398
1410
  };
1399
1411
 
1400
1412
 
@@ -1470,6 +1482,42 @@ proto.analytic.DashboardResponse.prototype.hasRegistrationsCount = function() {
1470
1482
  };
1471
1483
 
1472
1484
 
1485
+ /**
1486
+ * optional int32 login_count = 3;
1487
+ * @return {number}
1488
+ */
1489
+ proto.analytic.DashboardResponse.prototype.getLoginCount = function() {
1490
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1491
+ };
1492
+
1493
+
1494
+ /**
1495
+ * @param {number} value
1496
+ * @return {!proto.analytic.DashboardResponse} returns this
1497
+ */
1498
+ proto.analytic.DashboardResponse.prototype.setLoginCount = function(value) {
1499
+ return jspb.Message.setField(this, 3, value);
1500
+ };
1501
+
1502
+
1503
+ /**
1504
+ * Clears the field making it undefined.
1505
+ * @return {!proto.analytic.DashboardResponse} returns this
1506
+ */
1507
+ proto.analytic.DashboardResponse.prototype.clearLoginCount = function() {
1508
+ return jspb.Message.setField(this, 3, undefined);
1509
+ };
1510
+
1511
+
1512
+ /**
1513
+ * Returns whether this field is set.
1514
+ * @return {boolean}
1515
+ */
1516
+ proto.analytic.DashboardResponse.prototype.hasLoginCount = function() {
1517
+ return jspb.Message.getField(this, 3) != null;
1518
+ };
1519
+
1520
+
1473
1521
 
1474
1522
 
1475
1523
 
package/game/game.proto CHANGED
@@ -106,6 +106,10 @@ message PaginationRequest {
106
106
  optional WagerSearchRequest wager_search_params = 5;
107
107
  optional CashBackSearchRequest cash_back_search_params = 6;
108
108
  optional TournamentSearchRequest tournament_search_params = 7;
109
+ optional ProviderSearchRequest provider_search_params = 8;
110
+ optional CategorySearchRequest category_search_params = 9;
111
+ optional CollectionSearchRequest collection_search_params = 10;
112
+ optional TagSearchRequest tag_search_params = 11;
109
113
  }
110
114
  message GameSearchRequest {
111
115
  optional int32 is_active = 1;
@@ -139,6 +143,23 @@ message TournamentSearchRequest {
139
143
  optional int32 tournament_id = 1;
140
144
  optional string game_title = 2;
141
145
  }
146
+ message ProviderSearchRequest {
147
+ optional string provider_title = 1;
148
+ optional int32 is_active = 2;
149
+ }
150
+ message CategorySearchRequest {
151
+ optional string category_title = 1;
152
+ optional int32 is_active = 2;
153
+ }
154
+ message CollectionSearchRequest {
155
+ optional string collection_title = 1;
156
+ optional int32 is_active = 2;
157
+ repeated int32 category_ids = 3;
158
+ }
159
+ message TagSearchRequest {
160
+ optional string tag_title = 1;
161
+ optional int32 is_active = 2;
162
+ }
142
163
  //Media
143
164
  message File { bytes media = 1; }
144
165
  message GetFileRequest { string file_name = 1; string instance_type = 2; }
package/game/game_pb.js CHANGED
@@ -33,6 +33,7 @@ goog.exportSymbol('proto.game.CategoryItemsResponse', null, global);
33
33
  goog.exportSymbol('proto.game.CategoryRequest', null, global);
34
34
  goog.exportSymbol('proto.game.CategoryRequest.RequestCase', null, global);
35
35
  goog.exportSymbol('proto.game.CategoryResponse', null, global);
36
+ goog.exportSymbol('proto.game.CategorySearchRequest', null, global);
36
37
  goog.exportSymbol('proto.game.CategoryStatusResponse', null, global);
37
38
  goog.exportSymbol('proto.game.CollectionGamesRequest', null, global);
38
39
  goog.exportSymbol('proto.game.CollectionItem', null, global);
@@ -41,6 +42,7 @@ goog.exportSymbol('proto.game.CollectionItemsResponse', null, global);
41
42
  goog.exportSymbol('proto.game.CollectionRequest', null, global);
42
43
  goog.exportSymbol('proto.game.CollectionRequest.RequestCase', null, global);
43
44
  goog.exportSymbol('proto.game.CollectionResponse', null, global);
45
+ goog.exportSymbol('proto.game.CollectionSearchRequest', null, global);
44
46
  goog.exportSymbol('proto.game.CollectionStatusResponse', null, global);
45
47
  goog.exportSymbol('proto.game.DashboardRequest', null, global);
46
48
  goog.exportSymbol('proto.game.DashboardResponse', null, global);
@@ -95,6 +97,7 @@ goog.exportSymbol('proto.game.ProviderPoorItemsResponse', null, global);
95
97
  goog.exportSymbol('proto.game.ProviderRequest', null, global);
96
98
  goog.exportSymbol('proto.game.ProviderRequest.RequestCase', null, global);
97
99
  goog.exportSymbol('proto.game.ProviderResponse', null, global);
100
+ goog.exportSymbol('proto.game.ProviderSearchRequest', null, global);
98
101
  goog.exportSymbol('proto.game.ProviderStatusResponse', null, global);
99
102
  goog.exportSymbol('proto.game.ProvidersIds', null, global);
100
103
  goog.exportSymbol('proto.game.SEOAttribute', null, global);
@@ -113,6 +116,7 @@ goog.exportSymbol('proto.game.TagItemsResponse', null, global);
113
116
  goog.exportSymbol('proto.game.TagRequest', null, global);
114
117
  goog.exportSymbol('proto.game.TagRequest.RequestCase', null, global);
115
118
  goog.exportSymbol('proto.game.TagResponse', null, global);
119
+ goog.exportSymbol('proto.game.TagSearchRequest', null, global);
116
120
  goog.exportSymbol('proto.game.TagStatusResponse', null, global);
117
121
  goog.exportSymbol('proto.game.TournamentGamesRequest', null, global);
118
122
  goog.exportSymbol('proto.game.TournamentSearchRequest', null, global);
@@ -272,6 +276,90 @@ if (goog.DEBUG && !COMPILED) {
272
276
  */
273
277
  proto.game.TournamentSearchRequest.displayName = 'proto.game.TournamentSearchRequest';
274
278
  }
279
+ /**
280
+ * Generated by JsPbCodeGenerator.
281
+ * @param {Array=} opt_data Optional initial data array, typically from a
282
+ * server response, or constructed directly in Javascript. The array is used
283
+ * in place and becomes part of the constructed object. It is not cloned.
284
+ * If no data is provided, the constructed object will be empty, but still
285
+ * valid.
286
+ * @extends {jspb.Message}
287
+ * @constructor
288
+ */
289
+ proto.game.ProviderSearchRequest = function(opt_data) {
290
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
291
+ };
292
+ goog.inherits(proto.game.ProviderSearchRequest, jspb.Message);
293
+ if (goog.DEBUG && !COMPILED) {
294
+ /**
295
+ * @public
296
+ * @override
297
+ */
298
+ proto.game.ProviderSearchRequest.displayName = 'proto.game.ProviderSearchRequest';
299
+ }
300
+ /**
301
+ * Generated by JsPbCodeGenerator.
302
+ * @param {Array=} opt_data Optional initial data array, typically from a
303
+ * server response, or constructed directly in Javascript. The array is used
304
+ * in place and becomes part of the constructed object. It is not cloned.
305
+ * If no data is provided, the constructed object will be empty, but still
306
+ * valid.
307
+ * @extends {jspb.Message}
308
+ * @constructor
309
+ */
310
+ proto.game.CategorySearchRequest = function(opt_data) {
311
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
312
+ };
313
+ goog.inherits(proto.game.CategorySearchRequest, jspb.Message);
314
+ if (goog.DEBUG && !COMPILED) {
315
+ /**
316
+ * @public
317
+ * @override
318
+ */
319
+ proto.game.CategorySearchRequest.displayName = 'proto.game.CategorySearchRequest';
320
+ }
321
+ /**
322
+ * Generated by JsPbCodeGenerator.
323
+ * @param {Array=} opt_data Optional initial data array, typically from a
324
+ * server response, or constructed directly in Javascript. The array is used
325
+ * in place and becomes part of the constructed object. It is not cloned.
326
+ * If no data is provided, the constructed object will be empty, but still
327
+ * valid.
328
+ * @extends {jspb.Message}
329
+ * @constructor
330
+ */
331
+ proto.game.CollectionSearchRequest = function(opt_data) {
332
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.CollectionSearchRequest.repeatedFields_, null);
333
+ };
334
+ goog.inherits(proto.game.CollectionSearchRequest, jspb.Message);
335
+ if (goog.DEBUG && !COMPILED) {
336
+ /**
337
+ * @public
338
+ * @override
339
+ */
340
+ proto.game.CollectionSearchRequest.displayName = 'proto.game.CollectionSearchRequest';
341
+ }
342
+ /**
343
+ * Generated by JsPbCodeGenerator.
344
+ * @param {Array=} opt_data Optional initial data array, typically from a
345
+ * server response, or constructed directly in Javascript. The array is used
346
+ * in place and becomes part of the constructed object. It is not cloned.
347
+ * If no data is provided, the constructed object will be empty, but still
348
+ * valid.
349
+ * @extends {jspb.Message}
350
+ * @constructor
351
+ */
352
+ proto.game.TagSearchRequest = function(opt_data) {
353
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
354
+ };
355
+ goog.inherits(proto.game.TagSearchRequest, jspb.Message);
356
+ if (goog.DEBUG && !COMPILED) {
357
+ /**
358
+ * @public
359
+ * @override
360
+ */
361
+ proto.game.TagSearchRequest.displayName = 'proto.game.TagSearchRequest';
362
+ }
275
363
  /**
276
364
  * Generated by JsPbCodeGenerator.
277
365
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -2502,7 +2590,11 @@ proto.game.PaginationRequest.toObject = function(includeInstance, msg) {
2502
2590
  gameSearchParams: (f = msg.getGameSearchParams()) && proto.game.GameSearchRequest.toObject(includeInstance, f),
2503
2591
  wagerSearchParams: (f = msg.getWagerSearchParams()) && proto.game.WagerSearchRequest.toObject(includeInstance, f),
2504
2592
  cashBackSearchParams: (f = msg.getCashBackSearchParams()) && proto.game.CashBackSearchRequest.toObject(includeInstance, f),
2505
- tournamentSearchParams: (f = msg.getTournamentSearchParams()) && proto.game.TournamentSearchRequest.toObject(includeInstance, f)
2593
+ tournamentSearchParams: (f = msg.getTournamentSearchParams()) && proto.game.TournamentSearchRequest.toObject(includeInstance, f),
2594
+ providerSearchParams: (f = msg.getProviderSearchParams()) && proto.game.ProviderSearchRequest.toObject(includeInstance, f),
2595
+ categorySearchParams: (f = msg.getCategorySearchParams()) && proto.game.CategorySearchRequest.toObject(includeInstance, f),
2596
+ collectionSearchParams: (f = msg.getCollectionSearchParams()) && proto.game.CollectionSearchRequest.toObject(includeInstance, f),
2597
+ tagSearchParams: (f = msg.getTagSearchParams()) && proto.game.TagSearchRequest.toObject(includeInstance, f)
2506
2598
  };
2507
2599
 
2508
2600
  if (includeInstance) {
@@ -2571,6 +2663,26 @@ proto.game.PaginationRequest.deserializeBinaryFromReader = function(msg, reader)
2571
2663
  reader.readMessage(value,proto.game.TournamentSearchRequest.deserializeBinaryFromReader);
2572
2664
  msg.setTournamentSearchParams(value);
2573
2665
  break;
2666
+ case 8:
2667
+ var value = new proto.game.ProviderSearchRequest;
2668
+ reader.readMessage(value,proto.game.ProviderSearchRequest.deserializeBinaryFromReader);
2669
+ msg.setProviderSearchParams(value);
2670
+ break;
2671
+ case 9:
2672
+ var value = new proto.game.CategorySearchRequest;
2673
+ reader.readMessage(value,proto.game.CategorySearchRequest.deserializeBinaryFromReader);
2674
+ msg.setCategorySearchParams(value);
2675
+ break;
2676
+ case 10:
2677
+ var value = new proto.game.CollectionSearchRequest;
2678
+ reader.readMessage(value,proto.game.CollectionSearchRequest.deserializeBinaryFromReader);
2679
+ msg.setCollectionSearchParams(value);
2680
+ break;
2681
+ case 11:
2682
+ var value = new proto.game.TagSearchRequest;
2683
+ reader.readMessage(value,proto.game.TagSearchRequest.deserializeBinaryFromReader);
2684
+ msg.setTagSearchParams(value);
2685
+ break;
2574
2686
  default:
2575
2687
  reader.skipField();
2576
2688
  break;
@@ -2653,6 +2765,38 @@ proto.game.PaginationRequest.serializeBinaryToWriter = function(message, writer)
2653
2765
  proto.game.TournamentSearchRequest.serializeBinaryToWriter
2654
2766
  );
2655
2767
  }
2768
+ f = message.getProviderSearchParams();
2769
+ if (f != null) {
2770
+ writer.writeMessage(
2771
+ 8,
2772
+ f,
2773
+ proto.game.ProviderSearchRequest.serializeBinaryToWriter
2774
+ );
2775
+ }
2776
+ f = message.getCategorySearchParams();
2777
+ if (f != null) {
2778
+ writer.writeMessage(
2779
+ 9,
2780
+ f,
2781
+ proto.game.CategorySearchRequest.serializeBinaryToWriter
2782
+ );
2783
+ }
2784
+ f = message.getCollectionSearchParams();
2785
+ if (f != null) {
2786
+ writer.writeMessage(
2787
+ 10,
2788
+ f,
2789
+ proto.game.CollectionSearchRequest.serializeBinaryToWriter
2790
+ );
2791
+ }
2792
+ f = message.getTagSearchParams();
2793
+ if (f != null) {
2794
+ writer.writeMessage(
2795
+ 11,
2796
+ f,
2797
+ proto.game.TagSearchRequest.serializeBinaryToWriter
2798
+ );
2799
+ }
2656
2800
  };
2657
2801
 
2658
2802
 
@@ -2876,6 +3020,154 @@ proto.game.PaginationRequest.prototype.hasTournamentSearchParams = function() {
2876
3020
  };
2877
3021
 
2878
3022
 
3023
+ /**
3024
+ * optional ProviderSearchRequest provider_search_params = 8;
3025
+ * @return {?proto.game.ProviderSearchRequest}
3026
+ */
3027
+ proto.game.PaginationRequest.prototype.getProviderSearchParams = function() {
3028
+ return /** @type{?proto.game.ProviderSearchRequest} */ (
3029
+ jspb.Message.getWrapperField(this, proto.game.ProviderSearchRequest, 8));
3030
+ };
3031
+
3032
+
3033
+ /**
3034
+ * @param {?proto.game.ProviderSearchRequest|undefined} value
3035
+ * @return {!proto.game.PaginationRequest} returns this
3036
+ */
3037
+ proto.game.PaginationRequest.prototype.setProviderSearchParams = function(value) {
3038
+ return jspb.Message.setWrapperField(this, 8, value);
3039
+ };
3040
+
3041
+
3042
+ /**
3043
+ * Clears the message field making it undefined.
3044
+ * @return {!proto.game.PaginationRequest} returns this
3045
+ */
3046
+ proto.game.PaginationRequest.prototype.clearProviderSearchParams = function() {
3047
+ return this.setProviderSearchParams(undefined);
3048
+ };
3049
+
3050
+
3051
+ /**
3052
+ * Returns whether this field is set.
3053
+ * @return {boolean}
3054
+ */
3055
+ proto.game.PaginationRequest.prototype.hasProviderSearchParams = function() {
3056
+ return jspb.Message.getField(this, 8) != null;
3057
+ };
3058
+
3059
+
3060
+ /**
3061
+ * optional CategorySearchRequest category_search_params = 9;
3062
+ * @return {?proto.game.CategorySearchRequest}
3063
+ */
3064
+ proto.game.PaginationRequest.prototype.getCategorySearchParams = function() {
3065
+ return /** @type{?proto.game.CategorySearchRequest} */ (
3066
+ jspb.Message.getWrapperField(this, proto.game.CategorySearchRequest, 9));
3067
+ };
3068
+
3069
+
3070
+ /**
3071
+ * @param {?proto.game.CategorySearchRequest|undefined} value
3072
+ * @return {!proto.game.PaginationRequest} returns this
3073
+ */
3074
+ proto.game.PaginationRequest.prototype.setCategorySearchParams = function(value) {
3075
+ return jspb.Message.setWrapperField(this, 9, value);
3076
+ };
3077
+
3078
+
3079
+ /**
3080
+ * Clears the message field making it undefined.
3081
+ * @return {!proto.game.PaginationRequest} returns this
3082
+ */
3083
+ proto.game.PaginationRequest.prototype.clearCategorySearchParams = function() {
3084
+ return this.setCategorySearchParams(undefined);
3085
+ };
3086
+
3087
+
3088
+ /**
3089
+ * Returns whether this field is set.
3090
+ * @return {boolean}
3091
+ */
3092
+ proto.game.PaginationRequest.prototype.hasCategorySearchParams = function() {
3093
+ return jspb.Message.getField(this, 9) != null;
3094
+ };
3095
+
3096
+
3097
+ /**
3098
+ * optional CollectionSearchRequest collection_search_params = 10;
3099
+ * @return {?proto.game.CollectionSearchRequest}
3100
+ */
3101
+ proto.game.PaginationRequest.prototype.getCollectionSearchParams = function() {
3102
+ return /** @type{?proto.game.CollectionSearchRequest} */ (
3103
+ jspb.Message.getWrapperField(this, proto.game.CollectionSearchRequest, 10));
3104
+ };
3105
+
3106
+
3107
+ /**
3108
+ * @param {?proto.game.CollectionSearchRequest|undefined} value
3109
+ * @return {!proto.game.PaginationRequest} returns this
3110
+ */
3111
+ proto.game.PaginationRequest.prototype.setCollectionSearchParams = function(value) {
3112
+ return jspb.Message.setWrapperField(this, 10, value);
3113
+ };
3114
+
3115
+
3116
+ /**
3117
+ * Clears the message field making it undefined.
3118
+ * @return {!proto.game.PaginationRequest} returns this
3119
+ */
3120
+ proto.game.PaginationRequest.prototype.clearCollectionSearchParams = function() {
3121
+ return this.setCollectionSearchParams(undefined);
3122
+ };
3123
+
3124
+
3125
+ /**
3126
+ * Returns whether this field is set.
3127
+ * @return {boolean}
3128
+ */
3129
+ proto.game.PaginationRequest.prototype.hasCollectionSearchParams = function() {
3130
+ return jspb.Message.getField(this, 10) != null;
3131
+ };
3132
+
3133
+
3134
+ /**
3135
+ * optional TagSearchRequest tag_search_params = 11;
3136
+ * @return {?proto.game.TagSearchRequest}
3137
+ */
3138
+ proto.game.PaginationRequest.prototype.getTagSearchParams = function() {
3139
+ return /** @type{?proto.game.TagSearchRequest} */ (
3140
+ jspb.Message.getWrapperField(this, proto.game.TagSearchRequest, 11));
3141
+ };
3142
+
3143
+
3144
+ /**
3145
+ * @param {?proto.game.TagSearchRequest|undefined} value
3146
+ * @return {!proto.game.PaginationRequest} returns this
3147
+ */
3148
+ proto.game.PaginationRequest.prototype.setTagSearchParams = function(value) {
3149
+ return jspb.Message.setWrapperField(this, 11, value);
3150
+ };
3151
+
3152
+
3153
+ /**
3154
+ * Clears the message field making it undefined.
3155
+ * @return {!proto.game.PaginationRequest} returns this
3156
+ */
3157
+ proto.game.PaginationRequest.prototype.clearTagSearchParams = function() {
3158
+ return this.setTagSearchParams(undefined);
3159
+ };
3160
+
3161
+
3162
+ /**
3163
+ * Returns whether this field is set.
3164
+ * @return {boolean}
3165
+ */
3166
+ proto.game.PaginationRequest.prototype.hasTagSearchParams = function() {
3167
+ return jspb.Message.getField(this, 11) != null;
3168
+ };
3169
+
3170
+
2879
3171
 
2880
3172
  /**
2881
3173
  * List of repeated fields within this message type.
@@ -4471,6 +4763,848 @@ proto.game.TournamentSearchRequest.prototype.hasGameTitle = function() {
4471
4763
 
4472
4764
 
4473
4765
 
4766
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4767
+ /**
4768
+ * Creates an object representation of this proto.
4769
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4770
+ * Optional fields that are not set will be set to undefined.
4771
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4772
+ * For the list of reserved names please see:
4773
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4774
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4775
+ * JSPB instance for transitional soy proto support:
4776
+ * http://goto/soy-param-migration
4777
+ * @return {!Object}
4778
+ */
4779
+ proto.game.ProviderSearchRequest.prototype.toObject = function(opt_includeInstance) {
4780
+ return proto.game.ProviderSearchRequest.toObject(opt_includeInstance, this);
4781
+ };
4782
+
4783
+
4784
+ /**
4785
+ * Static version of the {@see toObject} method.
4786
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4787
+ * the JSPB instance for transitional soy proto support:
4788
+ * http://goto/soy-param-migration
4789
+ * @param {!proto.game.ProviderSearchRequest} msg The msg instance to transform.
4790
+ * @return {!Object}
4791
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4792
+ */
4793
+ proto.game.ProviderSearchRequest.toObject = function(includeInstance, msg) {
4794
+ var f, obj = {
4795
+ providerTitle: jspb.Message.getFieldWithDefault(msg, 1, ""),
4796
+ isActive: jspb.Message.getFieldWithDefault(msg, 2, 0)
4797
+ };
4798
+
4799
+ if (includeInstance) {
4800
+ obj.$jspbMessageInstance = msg;
4801
+ }
4802
+ return obj;
4803
+ };
4804
+ }
4805
+
4806
+
4807
+ /**
4808
+ * Deserializes binary data (in protobuf wire format).
4809
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4810
+ * @return {!proto.game.ProviderSearchRequest}
4811
+ */
4812
+ proto.game.ProviderSearchRequest.deserializeBinary = function(bytes) {
4813
+ var reader = new jspb.BinaryReader(bytes);
4814
+ var msg = new proto.game.ProviderSearchRequest;
4815
+ return proto.game.ProviderSearchRequest.deserializeBinaryFromReader(msg, reader);
4816
+ };
4817
+
4818
+
4819
+ /**
4820
+ * Deserializes binary data (in protobuf wire format) from the
4821
+ * given reader into the given message object.
4822
+ * @param {!proto.game.ProviderSearchRequest} msg The message object to deserialize into.
4823
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4824
+ * @return {!proto.game.ProviderSearchRequest}
4825
+ */
4826
+ proto.game.ProviderSearchRequest.deserializeBinaryFromReader = function(msg, reader) {
4827
+ while (reader.nextField()) {
4828
+ if (reader.isEndGroup()) {
4829
+ break;
4830
+ }
4831
+ var field = reader.getFieldNumber();
4832
+ switch (field) {
4833
+ case 1:
4834
+ var value = /** @type {string} */ (reader.readString());
4835
+ msg.setProviderTitle(value);
4836
+ break;
4837
+ case 2:
4838
+ var value = /** @type {number} */ (reader.readInt32());
4839
+ msg.setIsActive(value);
4840
+ break;
4841
+ default:
4842
+ reader.skipField();
4843
+ break;
4844
+ }
4845
+ }
4846
+ return msg;
4847
+ };
4848
+
4849
+
4850
+ /**
4851
+ * Serializes the message to binary data (in protobuf wire format).
4852
+ * @return {!Uint8Array}
4853
+ */
4854
+ proto.game.ProviderSearchRequest.prototype.serializeBinary = function() {
4855
+ var writer = new jspb.BinaryWriter();
4856
+ proto.game.ProviderSearchRequest.serializeBinaryToWriter(this, writer);
4857
+ return writer.getResultBuffer();
4858
+ };
4859
+
4860
+
4861
+ /**
4862
+ * Serializes the given message to binary data (in protobuf wire
4863
+ * format), writing to the given BinaryWriter.
4864
+ * @param {!proto.game.ProviderSearchRequest} message
4865
+ * @param {!jspb.BinaryWriter} writer
4866
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4867
+ */
4868
+ proto.game.ProviderSearchRequest.serializeBinaryToWriter = function(message, writer) {
4869
+ var f = undefined;
4870
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
4871
+ if (f != null) {
4872
+ writer.writeString(
4873
+ 1,
4874
+ f
4875
+ );
4876
+ }
4877
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
4878
+ if (f != null) {
4879
+ writer.writeInt32(
4880
+ 2,
4881
+ f
4882
+ );
4883
+ }
4884
+ };
4885
+
4886
+
4887
+ /**
4888
+ * optional string provider_title = 1;
4889
+ * @return {string}
4890
+ */
4891
+ proto.game.ProviderSearchRequest.prototype.getProviderTitle = function() {
4892
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4893
+ };
4894
+
4895
+
4896
+ /**
4897
+ * @param {string} value
4898
+ * @return {!proto.game.ProviderSearchRequest} returns this
4899
+ */
4900
+ proto.game.ProviderSearchRequest.prototype.setProviderTitle = function(value) {
4901
+ return jspb.Message.setField(this, 1, value);
4902
+ };
4903
+
4904
+
4905
+ /**
4906
+ * Clears the field making it undefined.
4907
+ * @return {!proto.game.ProviderSearchRequest} returns this
4908
+ */
4909
+ proto.game.ProviderSearchRequest.prototype.clearProviderTitle = function() {
4910
+ return jspb.Message.setField(this, 1, undefined);
4911
+ };
4912
+
4913
+
4914
+ /**
4915
+ * Returns whether this field is set.
4916
+ * @return {boolean}
4917
+ */
4918
+ proto.game.ProviderSearchRequest.prototype.hasProviderTitle = function() {
4919
+ return jspb.Message.getField(this, 1) != null;
4920
+ };
4921
+
4922
+
4923
+ /**
4924
+ * optional int32 is_active = 2;
4925
+ * @return {number}
4926
+ */
4927
+ proto.game.ProviderSearchRequest.prototype.getIsActive = function() {
4928
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
4929
+ };
4930
+
4931
+
4932
+ /**
4933
+ * @param {number} value
4934
+ * @return {!proto.game.ProviderSearchRequest} returns this
4935
+ */
4936
+ proto.game.ProviderSearchRequest.prototype.setIsActive = function(value) {
4937
+ return jspb.Message.setField(this, 2, value);
4938
+ };
4939
+
4940
+
4941
+ /**
4942
+ * Clears the field making it undefined.
4943
+ * @return {!proto.game.ProviderSearchRequest} returns this
4944
+ */
4945
+ proto.game.ProviderSearchRequest.prototype.clearIsActive = function() {
4946
+ return jspb.Message.setField(this, 2, undefined);
4947
+ };
4948
+
4949
+
4950
+ /**
4951
+ * Returns whether this field is set.
4952
+ * @return {boolean}
4953
+ */
4954
+ proto.game.ProviderSearchRequest.prototype.hasIsActive = function() {
4955
+ return jspb.Message.getField(this, 2) != null;
4956
+ };
4957
+
4958
+
4959
+
4960
+
4961
+
4962
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4963
+ /**
4964
+ * Creates an object representation of this proto.
4965
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4966
+ * Optional fields that are not set will be set to undefined.
4967
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4968
+ * For the list of reserved names please see:
4969
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4970
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4971
+ * JSPB instance for transitional soy proto support:
4972
+ * http://goto/soy-param-migration
4973
+ * @return {!Object}
4974
+ */
4975
+ proto.game.CategorySearchRequest.prototype.toObject = function(opt_includeInstance) {
4976
+ return proto.game.CategorySearchRequest.toObject(opt_includeInstance, this);
4977
+ };
4978
+
4979
+
4980
+ /**
4981
+ * Static version of the {@see toObject} method.
4982
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4983
+ * the JSPB instance for transitional soy proto support:
4984
+ * http://goto/soy-param-migration
4985
+ * @param {!proto.game.CategorySearchRequest} msg The msg instance to transform.
4986
+ * @return {!Object}
4987
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4988
+ */
4989
+ proto.game.CategorySearchRequest.toObject = function(includeInstance, msg) {
4990
+ var f, obj = {
4991
+ categoryTitle: jspb.Message.getFieldWithDefault(msg, 1, ""),
4992
+ isActive: jspb.Message.getFieldWithDefault(msg, 2, 0)
4993
+ };
4994
+
4995
+ if (includeInstance) {
4996
+ obj.$jspbMessageInstance = msg;
4997
+ }
4998
+ return obj;
4999
+ };
5000
+ }
5001
+
5002
+
5003
+ /**
5004
+ * Deserializes binary data (in protobuf wire format).
5005
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5006
+ * @return {!proto.game.CategorySearchRequest}
5007
+ */
5008
+ proto.game.CategorySearchRequest.deserializeBinary = function(bytes) {
5009
+ var reader = new jspb.BinaryReader(bytes);
5010
+ var msg = new proto.game.CategorySearchRequest;
5011
+ return proto.game.CategorySearchRequest.deserializeBinaryFromReader(msg, reader);
5012
+ };
5013
+
5014
+
5015
+ /**
5016
+ * Deserializes binary data (in protobuf wire format) from the
5017
+ * given reader into the given message object.
5018
+ * @param {!proto.game.CategorySearchRequest} msg The message object to deserialize into.
5019
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5020
+ * @return {!proto.game.CategorySearchRequest}
5021
+ */
5022
+ proto.game.CategorySearchRequest.deserializeBinaryFromReader = function(msg, reader) {
5023
+ while (reader.nextField()) {
5024
+ if (reader.isEndGroup()) {
5025
+ break;
5026
+ }
5027
+ var field = reader.getFieldNumber();
5028
+ switch (field) {
5029
+ case 1:
5030
+ var value = /** @type {string} */ (reader.readString());
5031
+ msg.setCategoryTitle(value);
5032
+ break;
5033
+ case 2:
5034
+ var value = /** @type {number} */ (reader.readInt32());
5035
+ msg.setIsActive(value);
5036
+ break;
5037
+ default:
5038
+ reader.skipField();
5039
+ break;
5040
+ }
5041
+ }
5042
+ return msg;
5043
+ };
5044
+
5045
+
5046
+ /**
5047
+ * Serializes the message to binary data (in protobuf wire format).
5048
+ * @return {!Uint8Array}
5049
+ */
5050
+ proto.game.CategorySearchRequest.prototype.serializeBinary = function() {
5051
+ var writer = new jspb.BinaryWriter();
5052
+ proto.game.CategorySearchRequest.serializeBinaryToWriter(this, writer);
5053
+ return writer.getResultBuffer();
5054
+ };
5055
+
5056
+
5057
+ /**
5058
+ * Serializes the given message to binary data (in protobuf wire
5059
+ * format), writing to the given BinaryWriter.
5060
+ * @param {!proto.game.CategorySearchRequest} message
5061
+ * @param {!jspb.BinaryWriter} writer
5062
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5063
+ */
5064
+ proto.game.CategorySearchRequest.serializeBinaryToWriter = function(message, writer) {
5065
+ var f = undefined;
5066
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
5067
+ if (f != null) {
5068
+ writer.writeString(
5069
+ 1,
5070
+ f
5071
+ );
5072
+ }
5073
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
5074
+ if (f != null) {
5075
+ writer.writeInt32(
5076
+ 2,
5077
+ f
5078
+ );
5079
+ }
5080
+ };
5081
+
5082
+
5083
+ /**
5084
+ * optional string category_title = 1;
5085
+ * @return {string}
5086
+ */
5087
+ proto.game.CategorySearchRequest.prototype.getCategoryTitle = function() {
5088
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
5089
+ };
5090
+
5091
+
5092
+ /**
5093
+ * @param {string} value
5094
+ * @return {!proto.game.CategorySearchRequest} returns this
5095
+ */
5096
+ proto.game.CategorySearchRequest.prototype.setCategoryTitle = function(value) {
5097
+ return jspb.Message.setField(this, 1, value);
5098
+ };
5099
+
5100
+
5101
+ /**
5102
+ * Clears the field making it undefined.
5103
+ * @return {!proto.game.CategorySearchRequest} returns this
5104
+ */
5105
+ proto.game.CategorySearchRequest.prototype.clearCategoryTitle = function() {
5106
+ return jspb.Message.setField(this, 1, undefined);
5107
+ };
5108
+
5109
+
5110
+ /**
5111
+ * Returns whether this field is set.
5112
+ * @return {boolean}
5113
+ */
5114
+ proto.game.CategorySearchRequest.prototype.hasCategoryTitle = function() {
5115
+ return jspb.Message.getField(this, 1) != null;
5116
+ };
5117
+
5118
+
5119
+ /**
5120
+ * optional int32 is_active = 2;
5121
+ * @return {number}
5122
+ */
5123
+ proto.game.CategorySearchRequest.prototype.getIsActive = function() {
5124
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
5125
+ };
5126
+
5127
+
5128
+ /**
5129
+ * @param {number} value
5130
+ * @return {!proto.game.CategorySearchRequest} returns this
5131
+ */
5132
+ proto.game.CategorySearchRequest.prototype.setIsActive = function(value) {
5133
+ return jspb.Message.setField(this, 2, value);
5134
+ };
5135
+
5136
+
5137
+ /**
5138
+ * Clears the field making it undefined.
5139
+ * @return {!proto.game.CategorySearchRequest} returns this
5140
+ */
5141
+ proto.game.CategorySearchRequest.prototype.clearIsActive = function() {
5142
+ return jspb.Message.setField(this, 2, undefined);
5143
+ };
5144
+
5145
+
5146
+ /**
5147
+ * Returns whether this field is set.
5148
+ * @return {boolean}
5149
+ */
5150
+ proto.game.CategorySearchRequest.prototype.hasIsActive = function() {
5151
+ return jspb.Message.getField(this, 2) != null;
5152
+ };
5153
+
5154
+
5155
+
5156
+ /**
5157
+ * List of repeated fields within this message type.
5158
+ * @private {!Array<number>}
5159
+ * @const
5160
+ */
5161
+ proto.game.CollectionSearchRequest.repeatedFields_ = [3];
5162
+
5163
+
5164
+
5165
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5166
+ /**
5167
+ * Creates an object representation of this proto.
5168
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5169
+ * Optional fields that are not set will be set to undefined.
5170
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5171
+ * For the list of reserved names please see:
5172
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5173
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5174
+ * JSPB instance for transitional soy proto support:
5175
+ * http://goto/soy-param-migration
5176
+ * @return {!Object}
5177
+ */
5178
+ proto.game.CollectionSearchRequest.prototype.toObject = function(opt_includeInstance) {
5179
+ return proto.game.CollectionSearchRequest.toObject(opt_includeInstance, this);
5180
+ };
5181
+
5182
+
5183
+ /**
5184
+ * Static version of the {@see toObject} method.
5185
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5186
+ * the JSPB instance for transitional soy proto support:
5187
+ * http://goto/soy-param-migration
5188
+ * @param {!proto.game.CollectionSearchRequest} msg The msg instance to transform.
5189
+ * @return {!Object}
5190
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5191
+ */
5192
+ proto.game.CollectionSearchRequest.toObject = function(includeInstance, msg) {
5193
+ var f, obj = {
5194
+ collectionTitle: jspb.Message.getFieldWithDefault(msg, 1, ""),
5195
+ isActive: jspb.Message.getFieldWithDefault(msg, 2, 0),
5196
+ categoryIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
5197
+ };
5198
+
5199
+ if (includeInstance) {
5200
+ obj.$jspbMessageInstance = msg;
5201
+ }
5202
+ return obj;
5203
+ };
5204
+ }
5205
+
5206
+
5207
+ /**
5208
+ * Deserializes binary data (in protobuf wire format).
5209
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5210
+ * @return {!proto.game.CollectionSearchRequest}
5211
+ */
5212
+ proto.game.CollectionSearchRequest.deserializeBinary = function(bytes) {
5213
+ var reader = new jspb.BinaryReader(bytes);
5214
+ var msg = new proto.game.CollectionSearchRequest;
5215
+ return proto.game.CollectionSearchRequest.deserializeBinaryFromReader(msg, reader);
5216
+ };
5217
+
5218
+
5219
+ /**
5220
+ * Deserializes binary data (in protobuf wire format) from the
5221
+ * given reader into the given message object.
5222
+ * @param {!proto.game.CollectionSearchRequest} msg The message object to deserialize into.
5223
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5224
+ * @return {!proto.game.CollectionSearchRequest}
5225
+ */
5226
+ proto.game.CollectionSearchRequest.deserializeBinaryFromReader = function(msg, reader) {
5227
+ while (reader.nextField()) {
5228
+ if (reader.isEndGroup()) {
5229
+ break;
5230
+ }
5231
+ var field = reader.getFieldNumber();
5232
+ switch (field) {
5233
+ case 1:
5234
+ var value = /** @type {string} */ (reader.readString());
5235
+ msg.setCollectionTitle(value);
5236
+ break;
5237
+ case 2:
5238
+ var value = /** @type {number} */ (reader.readInt32());
5239
+ msg.setIsActive(value);
5240
+ break;
5241
+ case 3:
5242
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
5243
+ for (var i = 0; i < values.length; i++) {
5244
+ msg.addCategoryIds(values[i]);
5245
+ }
5246
+ break;
5247
+ default:
5248
+ reader.skipField();
5249
+ break;
5250
+ }
5251
+ }
5252
+ return msg;
5253
+ };
5254
+
5255
+
5256
+ /**
5257
+ * Serializes the message to binary data (in protobuf wire format).
5258
+ * @return {!Uint8Array}
5259
+ */
5260
+ proto.game.CollectionSearchRequest.prototype.serializeBinary = function() {
5261
+ var writer = new jspb.BinaryWriter();
5262
+ proto.game.CollectionSearchRequest.serializeBinaryToWriter(this, writer);
5263
+ return writer.getResultBuffer();
5264
+ };
5265
+
5266
+
5267
+ /**
5268
+ * Serializes the given message to binary data (in protobuf wire
5269
+ * format), writing to the given BinaryWriter.
5270
+ * @param {!proto.game.CollectionSearchRequest} message
5271
+ * @param {!jspb.BinaryWriter} writer
5272
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5273
+ */
5274
+ proto.game.CollectionSearchRequest.serializeBinaryToWriter = function(message, writer) {
5275
+ var f = undefined;
5276
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
5277
+ if (f != null) {
5278
+ writer.writeString(
5279
+ 1,
5280
+ f
5281
+ );
5282
+ }
5283
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
5284
+ if (f != null) {
5285
+ writer.writeInt32(
5286
+ 2,
5287
+ f
5288
+ );
5289
+ }
5290
+ f = message.getCategoryIdsList();
5291
+ if (f.length > 0) {
5292
+ writer.writePackedInt32(
5293
+ 3,
5294
+ f
5295
+ );
5296
+ }
5297
+ };
5298
+
5299
+
5300
+ /**
5301
+ * optional string collection_title = 1;
5302
+ * @return {string}
5303
+ */
5304
+ proto.game.CollectionSearchRequest.prototype.getCollectionTitle = function() {
5305
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
5306
+ };
5307
+
5308
+
5309
+ /**
5310
+ * @param {string} value
5311
+ * @return {!proto.game.CollectionSearchRequest} returns this
5312
+ */
5313
+ proto.game.CollectionSearchRequest.prototype.setCollectionTitle = function(value) {
5314
+ return jspb.Message.setField(this, 1, value);
5315
+ };
5316
+
5317
+
5318
+ /**
5319
+ * Clears the field making it undefined.
5320
+ * @return {!proto.game.CollectionSearchRequest} returns this
5321
+ */
5322
+ proto.game.CollectionSearchRequest.prototype.clearCollectionTitle = function() {
5323
+ return jspb.Message.setField(this, 1, undefined);
5324
+ };
5325
+
5326
+
5327
+ /**
5328
+ * Returns whether this field is set.
5329
+ * @return {boolean}
5330
+ */
5331
+ proto.game.CollectionSearchRequest.prototype.hasCollectionTitle = function() {
5332
+ return jspb.Message.getField(this, 1) != null;
5333
+ };
5334
+
5335
+
5336
+ /**
5337
+ * optional int32 is_active = 2;
5338
+ * @return {number}
5339
+ */
5340
+ proto.game.CollectionSearchRequest.prototype.getIsActive = function() {
5341
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
5342
+ };
5343
+
5344
+
5345
+ /**
5346
+ * @param {number} value
5347
+ * @return {!proto.game.CollectionSearchRequest} returns this
5348
+ */
5349
+ proto.game.CollectionSearchRequest.prototype.setIsActive = function(value) {
5350
+ return jspb.Message.setField(this, 2, value);
5351
+ };
5352
+
5353
+
5354
+ /**
5355
+ * Clears the field making it undefined.
5356
+ * @return {!proto.game.CollectionSearchRequest} returns this
5357
+ */
5358
+ proto.game.CollectionSearchRequest.prototype.clearIsActive = function() {
5359
+ return jspb.Message.setField(this, 2, undefined);
5360
+ };
5361
+
5362
+
5363
+ /**
5364
+ * Returns whether this field is set.
5365
+ * @return {boolean}
5366
+ */
5367
+ proto.game.CollectionSearchRequest.prototype.hasIsActive = function() {
5368
+ return jspb.Message.getField(this, 2) != null;
5369
+ };
5370
+
5371
+
5372
+ /**
5373
+ * repeated int32 category_ids = 3;
5374
+ * @return {!Array<number>}
5375
+ */
5376
+ proto.game.CollectionSearchRequest.prototype.getCategoryIdsList = function() {
5377
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 3));
5378
+ };
5379
+
5380
+
5381
+ /**
5382
+ * @param {!Array<number>} value
5383
+ * @return {!proto.game.CollectionSearchRequest} returns this
5384
+ */
5385
+ proto.game.CollectionSearchRequest.prototype.setCategoryIdsList = function(value) {
5386
+ return jspb.Message.setField(this, 3, value || []);
5387
+ };
5388
+
5389
+
5390
+ /**
5391
+ * @param {number} value
5392
+ * @param {number=} opt_index
5393
+ * @return {!proto.game.CollectionSearchRequest} returns this
5394
+ */
5395
+ proto.game.CollectionSearchRequest.prototype.addCategoryIds = function(value, opt_index) {
5396
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
5397
+ };
5398
+
5399
+
5400
+ /**
5401
+ * Clears the list making it empty but non-null.
5402
+ * @return {!proto.game.CollectionSearchRequest} returns this
5403
+ */
5404
+ proto.game.CollectionSearchRequest.prototype.clearCategoryIdsList = function() {
5405
+ return this.setCategoryIdsList([]);
5406
+ };
5407
+
5408
+
5409
+
5410
+
5411
+
5412
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5413
+ /**
5414
+ * Creates an object representation of this proto.
5415
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5416
+ * Optional fields that are not set will be set to undefined.
5417
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5418
+ * For the list of reserved names please see:
5419
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5420
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5421
+ * JSPB instance for transitional soy proto support:
5422
+ * http://goto/soy-param-migration
5423
+ * @return {!Object}
5424
+ */
5425
+ proto.game.TagSearchRequest.prototype.toObject = function(opt_includeInstance) {
5426
+ return proto.game.TagSearchRequest.toObject(opt_includeInstance, this);
5427
+ };
5428
+
5429
+
5430
+ /**
5431
+ * Static version of the {@see toObject} method.
5432
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5433
+ * the JSPB instance for transitional soy proto support:
5434
+ * http://goto/soy-param-migration
5435
+ * @param {!proto.game.TagSearchRequest} msg The msg instance to transform.
5436
+ * @return {!Object}
5437
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5438
+ */
5439
+ proto.game.TagSearchRequest.toObject = function(includeInstance, msg) {
5440
+ var f, obj = {
5441
+ tagTitle: jspb.Message.getFieldWithDefault(msg, 1, ""),
5442
+ isActive: jspb.Message.getFieldWithDefault(msg, 2, 0)
5443
+ };
5444
+
5445
+ if (includeInstance) {
5446
+ obj.$jspbMessageInstance = msg;
5447
+ }
5448
+ return obj;
5449
+ };
5450
+ }
5451
+
5452
+
5453
+ /**
5454
+ * Deserializes binary data (in protobuf wire format).
5455
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5456
+ * @return {!proto.game.TagSearchRequest}
5457
+ */
5458
+ proto.game.TagSearchRequest.deserializeBinary = function(bytes) {
5459
+ var reader = new jspb.BinaryReader(bytes);
5460
+ var msg = new proto.game.TagSearchRequest;
5461
+ return proto.game.TagSearchRequest.deserializeBinaryFromReader(msg, reader);
5462
+ };
5463
+
5464
+
5465
+ /**
5466
+ * Deserializes binary data (in protobuf wire format) from the
5467
+ * given reader into the given message object.
5468
+ * @param {!proto.game.TagSearchRequest} msg The message object to deserialize into.
5469
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5470
+ * @return {!proto.game.TagSearchRequest}
5471
+ */
5472
+ proto.game.TagSearchRequest.deserializeBinaryFromReader = function(msg, reader) {
5473
+ while (reader.nextField()) {
5474
+ if (reader.isEndGroup()) {
5475
+ break;
5476
+ }
5477
+ var field = reader.getFieldNumber();
5478
+ switch (field) {
5479
+ case 1:
5480
+ var value = /** @type {string} */ (reader.readString());
5481
+ msg.setTagTitle(value);
5482
+ break;
5483
+ case 2:
5484
+ var value = /** @type {number} */ (reader.readInt32());
5485
+ msg.setIsActive(value);
5486
+ break;
5487
+ default:
5488
+ reader.skipField();
5489
+ break;
5490
+ }
5491
+ }
5492
+ return msg;
5493
+ };
5494
+
5495
+
5496
+ /**
5497
+ * Serializes the message to binary data (in protobuf wire format).
5498
+ * @return {!Uint8Array}
5499
+ */
5500
+ proto.game.TagSearchRequest.prototype.serializeBinary = function() {
5501
+ var writer = new jspb.BinaryWriter();
5502
+ proto.game.TagSearchRequest.serializeBinaryToWriter(this, writer);
5503
+ return writer.getResultBuffer();
5504
+ };
5505
+
5506
+
5507
+ /**
5508
+ * Serializes the given message to binary data (in protobuf wire
5509
+ * format), writing to the given BinaryWriter.
5510
+ * @param {!proto.game.TagSearchRequest} message
5511
+ * @param {!jspb.BinaryWriter} writer
5512
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5513
+ */
5514
+ proto.game.TagSearchRequest.serializeBinaryToWriter = function(message, writer) {
5515
+ var f = undefined;
5516
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
5517
+ if (f != null) {
5518
+ writer.writeString(
5519
+ 1,
5520
+ f
5521
+ );
5522
+ }
5523
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
5524
+ if (f != null) {
5525
+ writer.writeInt32(
5526
+ 2,
5527
+ f
5528
+ );
5529
+ }
5530
+ };
5531
+
5532
+
5533
+ /**
5534
+ * optional string tag_title = 1;
5535
+ * @return {string}
5536
+ */
5537
+ proto.game.TagSearchRequest.prototype.getTagTitle = function() {
5538
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
5539
+ };
5540
+
5541
+
5542
+ /**
5543
+ * @param {string} value
5544
+ * @return {!proto.game.TagSearchRequest} returns this
5545
+ */
5546
+ proto.game.TagSearchRequest.prototype.setTagTitle = function(value) {
5547
+ return jspb.Message.setField(this, 1, value);
5548
+ };
5549
+
5550
+
5551
+ /**
5552
+ * Clears the field making it undefined.
5553
+ * @return {!proto.game.TagSearchRequest} returns this
5554
+ */
5555
+ proto.game.TagSearchRequest.prototype.clearTagTitle = function() {
5556
+ return jspb.Message.setField(this, 1, undefined);
5557
+ };
5558
+
5559
+
5560
+ /**
5561
+ * Returns whether this field is set.
5562
+ * @return {boolean}
5563
+ */
5564
+ proto.game.TagSearchRequest.prototype.hasTagTitle = function() {
5565
+ return jspb.Message.getField(this, 1) != null;
5566
+ };
5567
+
5568
+
5569
+ /**
5570
+ * optional int32 is_active = 2;
5571
+ * @return {number}
5572
+ */
5573
+ proto.game.TagSearchRequest.prototype.getIsActive = function() {
5574
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
5575
+ };
5576
+
5577
+
5578
+ /**
5579
+ * @param {number} value
5580
+ * @return {!proto.game.TagSearchRequest} returns this
5581
+ */
5582
+ proto.game.TagSearchRequest.prototype.setIsActive = function(value) {
5583
+ return jspb.Message.setField(this, 2, value);
5584
+ };
5585
+
5586
+
5587
+ /**
5588
+ * Clears the field making it undefined.
5589
+ * @return {!proto.game.TagSearchRequest} returns this
5590
+ */
5591
+ proto.game.TagSearchRequest.prototype.clearIsActive = function() {
5592
+ return jspb.Message.setField(this, 2, undefined);
5593
+ };
5594
+
5595
+
5596
+ /**
5597
+ * Returns whether this field is set.
5598
+ * @return {boolean}
5599
+ */
5600
+ proto.game.TagSearchRequest.prototype.hasIsActive = function() {
5601
+ return jspb.Message.getField(this, 2) != null;
5602
+ };
5603
+
5604
+
5605
+
5606
+
5607
+
4474
5608
  if (jspb.Message.GENERATE_TO_OBJECT) {
4475
5609
  /**
4476
5610
  * Creates an object representation of this proto.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.1.54",
3
+ "version": "1.1.56",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {