protobuf-platform 1.0.121 → 1.0.122

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/bonus/bonus_pb.js CHANGED
@@ -21,6 +21,19 @@ var global = (function() {
21
21
  return Function('return this')();
22
22
  }.call(null));
23
23
 
24
+ goog.exportSymbol('proto.bonus.ActivationRule', null, global);
25
+ goog.exportSymbol('proto.bonus.BonusItem', null, global);
26
+ goog.exportSymbol('proto.bonus.BonusItemRequest', null, global);
27
+ goog.exportSymbol('proto.bonus.BonusItemsResponse', null, global);
28
+ goog.exportSymbol('proto.bonus.BonusRequest', null, global);
29
+ goog.exportSymbol('proto.bonus.BonusRequest.RequestCase', null, global);
30
+ goog.exportSymbol('proto.bonus.BonusResponse', null, global);
31
+ goog.exportSymbol('proto.bonus.BonusReward', null, global);
32
+ goog.exportSymbol('proto.bonus.BonusStatusResponse', null, global);
33
+ goog.exportSymbol('proto.bonus.File', null, global);
34
+ goog.exportSymbol('proto.bonus.GetBonusRequest', null, global);
35
+ goog.exportSymbol('proto.bonus.GetFileRequest', null, global);
36
+ goog.exportSymbol('proto.bonus.PaginationRequest', null, global);
24
37
  goog.exportSymbol('proto.bonus.PingRequest', null, global);
25
38
  goog.exportSymbol('proto.bonus.PongResponse', null, global);
26
39
  /**
@@ -65,6 +78,258 @@ if (goog.DEBUG && !COMPILED) {
65
78
  */
66
79
  proto.bonus.PongResponse.displayName = 'proto.bonus.PongResponse';
67
80
  }
81
+ /**
82
+ * Generated by JsPbCodeGenerator.
83
+ * @param {Array=} opt_data Optional initial data array, typically from a
84
+ * server response, or constructed directly in Javascript. The array is used
85
+ * in place and becomes part of the constructed object. It is not cloned.
86
+ * If no data is provided, the constructed object will be empty, but still
87
+ * valid.
88
+ * @extends {jspb.Message}
89
+ * @constructor
90
+ */
91
+ proto.bonus.File = function(opt_data) {
92
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
93
+ };
94
+ goog.inherits(proto.bonus.File, jspb.Message);
95
+ if (goog.DEBUG && !COMPILED) {
96
+ /**
97
+ * @public
98
+ * @override
99
+ */
100
+ proto.bonus.File.displayName = 'proto.bonus.File';
101
+ }
102
+ /**
103
+ * Generated by JsPbCodeGenerator.
104
+ * @param {Array=} opt_data Optional initial data array, typically from a
105
+ * server response, or constructed directly in Javascript. The array is used
106
+ * in place and becomes part of the constructed object. It is not cloned.
107
+ * If no data is provided, the constructed object will be empty, but still
108
+ * valid.
109
+ * @extends {jspb.Message}
110
+ * @constructor
111
+ */
112
+ proto.bonus.GetFileRequest = function(opt_data) {
113
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
114
+ };
115
+ goog.inherits(proto.bonus.GetFileRequest, jspb.Message);
116
+ if (goog.DEBUG && !COMPILED) {
117
+ /**
118
+ * @public
119
+ * @override
120
+ */
121
+ proto.bonus.GetFileRequest.displayName = 'proto.bonus.GetFileRequest';
122
+ }
123
+ /**
124
+ * Generated by JsPbCodeGenerator.
125
+ * @param {Array=} opt_data Optional initial data array, typically from a
126
+ * server response, or constructed directly in Javascript. The array is used
127
+ * in place and becomes part of the constructed object. It is not cloned.
128
+ * If no data is provided, the constructed object will be empty, but still
129
+ * valid.
130
+ * @extends {jspb.Message}
131
+ * @constructor
132
+ */
133
+ proto.bonus.PaginationRequest = function(opt_data) {
134
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
135
+ };
136
+ goog.inherits(proto.bonus.PaginationRequest, jspb.Message);
137
+ if (goog.DEBUG && !COMPILED) {
138
+ /**
139
+ * @public
140
+ * @override
141
+ */
142
+ proto.bonus.PaginationRequest.displayName = 'proto.bonus.PaginationRequest';
143
+ }
144
+ /**
145
+ * Generated by JsPbCodeGenerator.
146
+ * @param {Array=} opt_data Optional initial data array, typically from a
147
+ * server response, or constructed directly in Javascript. The array is used
148
+ * in place and becomes part of the constructed object. It is not cloned.
149
+ * If no data is provided, the constructed object will be empty, but still
150
+ * valid.
151
+ * @extends {jspb.Message}
152
+ * @constructor
153
+ */
154
+ proto.bonus.BonusRequest = function(opt_data) {
155
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.bonus.BonusRequest.oneofGroups_);
156
+ };
157
+ goog.inherits(proto.bonus.BonusRequest, jspb.Message);
158
+ if (goog.DEBUG && !COMPILED) {
159
+ /**
160
+ * @public
161
+ * @override
162
+ */
163
+ proto.bonus.BonusRequest.displayName = 'proto.bonus.BonusRequest';
164
+ }
165
+ /**
166
+ * Generated by JsPbCodeGenerator.
167
+ * @param {Array=} opt_data Optional initial data array, typically from a
168
+ * server response, or constructed directly in Javascript. The array is used
169
+ * in place and becomes part of the constructed object. It is not cloned.
170
+ * If no data is provided, the constructed object will be empty, but still
171
+ * valid.
172
+ * @extends {jspb.Message}
173
+ * @constructor
174
+ */
175
+ proto.bonus.ActivationRule = function(opt_data) {
176
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
177
+ };
178
+ goog.inherits(proto.bonus.ActivationRule, jspb.Message);
179
+ if (goog.DEBUG && !COMPILED) {
180
+ /**
181
+ * @public
182
+ * @override
183
+ */
184
+ proto.bonus.ActivationRule.displayName = 'proto.bonus.ActivationRule';
185
+ }
186
+ /**
187
+ * Generated by JsPbCodeGenerator.
188
+ * @param {Array=} opt_data Optional initial data array, typically from a
189
+ * server response, or constructed directly in Javascript. The array is used
190
+ * in place and becomes part of the constructed object. It is not cloned.
191
+ * If no data is provided, the constructed object will be empty, but still
192
+ * valid.
193
+ * @extends {jspb.Message}
194
+ * @constructor
195
+ */
196
+ proto.bonus.BonusReward = function(opt_data) {
197
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
198
+ };
199
+ goog.inherits(proto.bonus.BonusReward, jspb.Message);
200
+ if (goog.DEBUG && !COMPILED) {
201
+ /**
202
+ * @public
203
+ * @override
204
+ */
205
+ proto.bonus.BonusReward.displayName = 'proto.bonus.BonusReward';
206
+ }
207
+ /**
208
+ * Generated by JsPbCodeGenerator.
209
+ * @param {Array=} opt_data Optional initial data array, typically from a
210
+ * server response, or constructed directly in Javascript. The array is used
211
+ * in place and becomes part of the constructed object. It is not cloned.
212
+ * If no data is provided, the constructed object will be empty, but still
213
+ * valid.
214
+ * @extends {jspb.Message}
215
+ * @constructor
216
+ */
217
+ proto.bonus.BonusItemRequest = function(opt_data) {
218
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.bonus.BonusItemRequest.repeatedFields_, null);
219
+ };
220
+ goog.inherits(proto.bonus.BonusItemRequest, jspb.Message);
221
+ if (goog.DEBUG && !COMPILED) {
222
+ /**
223
+ * @public
224
+ * @override
225
+ */
226
+ proto.bonus.BonusItemRequest.displayName = 'proto.bonus.BonusItemRequest';
227
+ }
228
+ /**
229
+ * Generated by JsPbCodeGenerator.
230
+ * @param {Array=} opt_data Optional initial data array, typically from a
231
+ * server response, or constructed directly in Javascript. The array is used
232
+ * in place and becomes part of the constructed object. It is not cloned.
233
+ * If no data is provided, the constructed object will be empty, but still
234
+ * valid.
235
+ * @extends {jspb.Message}
236
+ * @constructor
237
+ */
238
+ proto.bonus.GetBonusRequest = function(opt_data) {
239
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
240
+ };
241
+ goog.inherits(proto.bonus.GetBonusRequest, jspb.Message);
242
+ if (goog.DEBUG && !COMPILED) {
243
+ /**
244
+ * @public
245
+ * @override
246
+ */
247
+ proto.bonus.GetBonusRequest.displayName = 'proto.bonus.GetBonusRequest';
248
+ }
249
+ /**
250
+ * Generated by JsPbCodeGenerator.
251
+ * @param {Array=} opt_data Optional initial data array, typically from a
252
+ * server response, or constructed directly in Javascript. The array is used
253
+ * in place and becomes part of the constructed object. It is not cloned.
254
+ * If no data is provided, the constructed object will be empty, but still
255
+ * valid.
256
+ * @extends {jspb.Message}
257
+ * @constructor
258
+ */
259
+ proto.bonus.BonusResponse = function(opt_data) {
260
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
261
+ };
262
+ goog.inherits(proto.bonus.BonusResponse, jspb.Message);
263
+ if (goog.DEBUG && !COMPILED) {
264
+ /**
265
+ * @public
266
+ * @override
267
+ */
268
+ proto.bonus.BonusResponse.displayName = 'proto.bonus.BonusResponse';
269
+ }
270
+ /**
271
+ * Generated by JsPbCodeGenerator.
272
+ * @param {Array=} opt_data Optional initial data array, typically from a
273
+ * server response, or constructed directly in Javascript. The array is used
274
+ * in place and becomes part of the constructed object. It is not cloned.
275
+ * If no data is provided, the constructed object will be empty, but still
276
+ * valid.
277
+ * @extends {jspb.Message}
278
+ * @constructor
279
+ */
280
+ proto.bonus.BonusItem = function(opt_data) {
281
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.bonus.BonusItem.repeatedFields_, null);
282
+ };
283
+ goog.inherits(proto.bonus.BonusItem, jspb.Message);
284
+ if (goog.DEBUG && !COMPILED) {
285
+ /**
286
+ * @public
287
+ * @override
288
+ */
289
+ proto.bonus.BonusItem.displayName = 'proto.bonus.BonusItem';
290
+ }
291
+ /**
292
+ * Generated by JsPbCodeGenerator.
293
+ * @param {Array=} opt_data Optional initial data array, typically from a
294
+ * server response, or constructed directly in Javascript. The array is used
295
+ * in place and becomes part of the constructed object. It is not cloned.
296
+ * If no data is provided, the constructed object will be empty, but still
297
+ * valid.
298
+ * @extends {jspb.Message}
299
+ * @constructor
300
+ */
301
+ proto.bonus.BonusItemsResponse = function(opt_data) {
302
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.bonus.BonusItemsResponse.repeatedFields_, null);
303
+ };
304
+ goog.inherits(proto.bonus.BonusItemsResponse, jspb.Message);
305
+ if (goog.DEBUG && !COMPILED) {
306
+ /**
307
+ * @public
308
+ * @override
309
+ */
310
+ proto.bonus.BonusItemsResponse.displayName = 'proto.bonus.BonusItemsResponse';
311
+ }
312
+ /**
313
+ * Generated by JsPbCodeGenerator.
314
+ * @param {Array=} opt_data Optional initial data array, typically from a
315
+ * server response, or constructed directly in Javascript. The array is used
316
+ * in place and becomes part of the constructed object. It is not cloned.
317
+ * If no data is provided, the constructed object will be empty, but still
318
+ * valid.
319
+ * @extends {jspb.Message}
320
+ * @constructor
321
+ */
322
+ proto.bonus.BonusStatusResponse = function(opt_data) {
323
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
324
+ };
325
+ goog.inherits(proto.bonus.BonusStatusResponse, jspb.Message);
326
+ if (goog.DEBUG && !COMPILED) {
327
+ /**
328
+ * @public
329
+ * @override
330
+ */
331
+ proto.bonus.BonusStatusResponse.displayName = 'proto.bonus.BonusStatusResponse';
332
+ }
68
333
 
69
334
 
70
335
 
@@ -325,4 +590,4039 @@ proto.bonus.PongResponse.prototype.setPong = function(value) {
325
590
  };
326
591
 
327
592
 
593
+
594
+
595
+
596
+ if (jspb.Message.GENERATE_TO_OBJECT) {
597
+ /**
598
+ * Creates an object representation of this proto.
599
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
600
+ * Optional fields that are not set will be set to undefined.
601
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
602
+ * For the list of reserved names please see:
603
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
604
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
605
+ * JSPB instance for transitional soy proto support:
606
+ * http://goto/soy-param-migration
607
+ * @return {!Object}
608
+ */
609
+ proto.bonus.File.prototype.toObject = function(opt_includeInstance) {
610
+ return proto.bonus.File.toObject(opt_includeInstance, this);
611
+ };
612
+
613
+
614
+ /**
615
+ * Static version of the {@see toObject} method.
616
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
617
+ * the JSPB instance for transitional soy proto support:
618
+ * http://goto/soy-param-migration
619
+ * @param {!proto.bonus.File} msg The msg instance to transform.
620
+ * @return {!Object}
621
+ * @suppress {unusedLocalVariables} f is only used for nested messages
622
+ */
623
+ proto.bonus.File.toObject = function(includeInstance, msg) {
624
+ var f, obj = {
625
+ media: msg.getMedia_asB64()
626
+ };
627
+
628
+ if (includeInstance) {
629
+ obj.$jspbMessageInstance = msg;
630
+ }
631
+ return obj;
632
+ };
633
+ }
634
+
635
+
636
+ /**
637
+ * Deserializes binary data (in protobuf wire format).
638
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
639
+ * @return {!proto.bonus.File}
640
+ */
641
+ proto.bonus.File.deserializeBinary = function(bytes) {
642
+ var reader = new jspb.BinaryReader(bytes);
643
+ var msg = new proto.bonus.File;
644
+ return proto.bonus.File.deserializeBinaryFromReader(msg, reader);
645
+ };
646
+
647
+
648
+ /**
649
+ * Deserializes binary data (in protobuf wire format) from the
650
+ * given reader into the given message object.
651
+ * @param {!proto.bonus.File} msg The message object to deserialize into.
652
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
653
+ * @return {!proto.bonus.File}
654
+ */
655
+ proto.bonus.File.deserializeBinaryFromReader = function(msg, reader) {
656
+ while (reader.nextField()) {
657
+ if (reader.isEndGroup()) {
658
+ break;
659
+ }
660
+ var field = reader.getFieldNumber();
661
+ switch (field) {
662
+ case 1:
663
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
664
+ msg.setMedia(value);
665
+ break;
666
+ default:
667
+ reader.skipField();
668
+ break;
669
+ }
670
+ }
671
+ return msg;
672
+ };
673
+
674
+
675
+ /**
676
+ * Serializes the message to binary data (in protobuf wire format).
677
+ * @return {!Uint8Array}
678
+ */
679
+ proto.bonus.File.prototype.serializeBinary = function() {
680
+ var writer = new jspb.BinaryWriter();
681
+ proto.bonus.File.serializeBinaryToWriter(this, writer);
682
+ return writer.getResultBuffer();
683
+ };
684
+
685
+
686
+ /**
687
+ * Serializes the given message to binary data (in protobuf wire
688
+ * format), writing to the given BinaryWriter.
689
+ * @param {!proto.bonus.File} message
690
+ * @param {!jspb.BinaryWriter} writer
691
+ * @suppress {unusedLocalVariables} f is only used for nested messages
692
+ */
693
+ proto.bonus.File.serializeBinaryToWriter = function(message, writer) {
694
+ var f = undefined;
695
+ f = message.getMedia_asU8();
696
+ if (f.length > 0) {
697
+ writer.writeBytes(
698
+ 1,
699
+ f
700
+ );
701
+ }
702
+ };
703
+
704
+
705
+ /**
706
+ * optional bytes media = 1;
707
+ * @return {!(string|Uint8Array)}
708
+ */
709
+ proto.bonus.File.prototype.getMedia = function() {
710
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
711
+ };
712
+
713
+
714
+ /**
715
+ * optional bytes media = 1;
716
+ * This is a type-conversion wrapper around `getMedia()`
717
+ * @return {string}
718
+ */
719
+ proto.bonus.File.prototype.getMedia_asB64 = function() {
720
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
721
+ this.getMedia()));
722
+ };
723
+
724
+
725
+ /**
726
+ * optional bytes media = 1;
727
+ * Note that Uint8Array is not supported on all browsers.
728
+ * @see http://caniuse.com/Uint8Array
729
+ * This is a type-conversion wrapper around `getMedia()`
730
+ * @return {!Uint8Array}
731
+ */
732
+ proto.bonus.File.prototype.getMedia_asU8 = function() {
733
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
734
+ this.getMedia()));
735
+ };
736
+
737
+
738
+ /**
739
+ * @param {!(string|Uint8Array)} value
740
+ * @return {!proto.bonus.File} returns this
741
+ */
742
+ proto.bonus.File.prototype.setMedia = function(value) {
743
+ return jspb.Message.setProto3BytesField(this, 1, value);
744
+ };
745
+
746
+
747
+
748
+
749
+
750
+ if (jspb.Message.GENERATE_TO_OBJECT) {
751
+ /**
752
+ * Creates an object representation of this proto.
753
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
754
+ * Optional fields that are not set will be set to undefined.
755
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
756
+ * For the list of reserved names please see:
757
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
758
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
759
+ * JSPB instance for transitional soy proto support:
760
+ * http://goto/soy-param-migration
761
+ * @return {!Object}
762
+ */
763
+ proto.bonus.GetFileRequest.prototype.toObject = function(opt_includeInstance) {
764
+ return proto.bonus.GetFileRequest.toObject(opt_includeInstance, this);
765
+ };
766
+
767
+
768
+ /**
769
+ * Static version of the {@see toObject} method.
770
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
771
+ * the JSPB instance for transitional soy proto support:
772
+ * http://goto/soy-param-migration
773
+ * @param {!proto.bonus.GetFileRequest} msg The msg instance to transform.
774
+ * @return {!Object}
775
+ * @suppress {unusedLocalVariables} f is only used for nested messages
776
+ */
777
+ proto.bonus.GetFileRequest.toObject = function(includeInstance, msg) {
778
+ var f, obj = {
779
+ fileName: jspb.Message.getFieldWithDefault(msg, 1, ""),
780
+ instanceType: jspb.Message.getFieldWithDefault(msg, 2, "")
781
+ };
782
+
783
+ if (includeInstance) {
784
+ obj.$jspbMessageInstance = msg;
785
+ }
786
+ return obj;
787
+ };
788
+ }
789
+
790
+
791
+ /**
792
+ * Deserializes binary data (in protobuf wire format).
793
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
794
+ * @return {!proto.bonus.GetFileRequest}
795
+ */
796
+ proto.bonus.GetFileRequest.deserializeBinary = function(bytes) {
797
+ var reader = new jspb.BinaryReader(bytes);
798
+ var msg = new proto.bonus.GetFileRequest;
799
+ return proto.bonus.GetFileRequest.deserializeBinaryFromReader(msg, reader);
800
+ };
801
+
802
+
803
+ /**
804
+ * Deserializes binary data (in protobuf wire format) from the
805
+ * given reader into the given message object.
806
+ * @param {!proto.bonus.GetFileRequest} msg The message object to deserialize into.
807
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
808
+ * @return {!proto.bonus.GetFileRequest}
809
+ */
810
+ proto.bonus.GetFileRequest.deserializeBinaryFromReader = function(msg, reader) {
811
+ while (reader.nextField()) {
812
+ if (reader.isEndGroup()) {
813
+ break;
814
+ }
815
+ var field = reader.getFieldNumber();
816
+ switch (field) {
817
+ case 1:
818
+ var value = /** @type {string} */ (reader.readString());
819
+ msg.setFileName(value);
820
+ break;
821
+ case 2:
822
+ var value = /** @type {string} */ (reader.readString());
823
+ msg.setInstanceType(value);
824
+ break;
825
+ default:
826
+ reader.skipField();
827
+ break;
828
+ }
829
+ }
830
+ return msg;
831
+ };
832
+
833
+
834
+ /**
835
+ * Serializes the message to binary data (in protobuf wire format).
836
+ * @return {!Uint8Array}
837
+ */
838
+ proto.bonus.GetFileRequest.prototype.serializeBinary = function() {
839
+ var writer = new jspb.BinaryWriter();
840
+ proto.bonus.GetFileRequest.serializeBinaryToWriter(this, writer);
841
+ return writer.getResultBuffer();
842
+ };
843
+
844
+
845
+ /**
846
+ * Serializes the given message to binary data (in protobuf wire
847
+ * format), writing to the given BinaryWriter.
848
+ * @param {!proto.bonus.GetFileRequest} message
849
+ * @param {!jspb.BinaryWriter} writer
850
+ * @suppress {unusedLocalVariables} f is only used for nested messages
851
+ */
852
+ proto.bonus.GetFileRequest.serializeBinaryToWriter = function(message, writer) {
853
+ var f = undefined;
854
+ f = message.getFileName();
855
+ if (f.length > 0) {
856
+ writer.writeString(
857
+ 1,
858
+ f
859
+ );
860
+ }
861
+ f = message.getInstanceType();
862
+ if (f.length > 0) {
863
+ writer.writeString(
864
+ 2,
865
+ f
866
+ );
867
+ }
868
+ };
869
+
870
+
871
+ /**
872
+ * optional string file_name = 1;
873
+ * @return {string}
874
+ */
875
+ proto.bonus.GetFileRequest.prototype.getFileName = function() {
876
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
877
+ };
878
+
879
+
880
+ /**
881
+ * @param {string} value
882
+ * @return {!proto.bonus.GetFileRequest} returns this
883
+ */
884
+ proto.bonus.GetFileRequest.prototype.setFileName = function(value) {
885
+ return jspb.Message.setProto3StringField(this, 1, value);
886
+ };
887
+
888
+
889
+ /**
890
+ * optional string instance_type = 2;
891
+ * @return {string}
892
+ */
893
+ proto.bonus.GetFileRequest.prototype.getInstanceType = function() {
894
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
895
+ };
896
+
897
+
898
+ /**
899
+ * @param {string} value
900
+ * @return {!proto.bonus.GetFileRequest} returns this
901
+ */
902
+ proto.bonus.GetFileRequest.prototype.setInstanceType = function(value) {
903
+ return jspb.Message.setProto3StringField(this, 2, value);
904
+ };
905
+
906
+
907
+
908
+
909
+
910
+ if (jspb.Message.GENERATE_TO_OBJECT) {
911
+ /**
912
+ * Creates an object representation of this proto.
913
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
914
+ * Optional fields that are not set will be set to undefined.
915
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
916
+ * For the list of reserved names please see:
917
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
918
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
919
+ * JSPB instance for transitional soy proto support:
920
+ * http://goto/soy-param-migration
921
+ * @return {!Object}
922
+ */
923
+ proto.bonus.PaginationRequest.prototype.toObject = function(opt_includeInstance) {
924
+ return proto.bonus.PaginationRequest.toObject(opt_includeInstance, this);
925
+ };
926
+
927
+
928
+ /**
929
+ * Static version of the {@see toObject} method.
930
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
931
+ * the JSPB instance for transitional soy proto support:
932
+ * http://goto/soy-param-migration
933
+ * @param {!proto.bonus.PaginationRequest} msg The msg instance to transform.
934
+ * @return {!Object}
935
+ * @suppress {unusedLocalVariables} f is only used for nested messages
936
+ */
937
+ proto.bonus.PaginationRequest.toObject = function(includeInstance, msg) {
938
+ var f, obj = {
939
+ limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
940
+ offset: jspb.Message.getFieldWithDefault(msg, 2, 0)
941
+ };
942
+
943
+ if (includeInstance) {
944
+ obj.$jspbMessageInstance = msg;
945
+ }
946
+ return obj;
947
+ };
948
+ }
949
+
950
+
951
+ /**
952
+ * Deserializes binary data (in protobuf wire format).
953
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
954
+ * @return {!proto.bonus.PaginationRequest}
955
+ */
956
+ proto.bonus.PaginationRequest.deserializeBinary = function(bytes) {
957
+ var reader = new jspb.BinaryReader(bytes);
958
+ var msg = new proto.bonus.PaginationRequest;
959
+ return proto.bonus.PaginationRequest.deserializeBinaryFromReader(msg, reader);
960
+ };
961
+
962
+
963
+ /**
964
+ * Deserializes binary data (in protobuf wire format) from the
965
+ * given reader into the given message object.
966
+ * @param {!proto.bonus.PaginationRequest} msg The message object to deserialize into.
967
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
968
+ * @return {!proto.bonus.PaginationRequest}
969
+ */
970
+ proto.bonus.PaginationRequest.deserializeBinaryFromReader = function(msg, reader) {
971
+ while (reader.nextField()) {
972
+ if (reader.isEndGroup()) {
973
+ break;
974
+ }
975
+ var field = reader.getFieldNumber();
976
+ switch (field) {
977
+ case 1:
978
+ var value = /** @type {number} */ (reader.readInt32());
979
+ msg.setLimit(value);
980
+ break;
981
+ case 2:
982
+ var value = /** @type {number} */ (reader.readInt32());
983
+ msg.setOffset(value);
984
+ break;
985
+ default:
986
+ reader.skipField();
987
+ break;
988
+ }
989
+ }
990
+ return msg;
991
+ };
992
+
993
+
994
+ /**
995
+ * Serializes the message to binary data (in protobuf wire format).
996
+ * @return {!Uint8Array}
997
+ */
998
+ proto.bonus.PaginationRequest.prototype.serializeBinary = function() {
999
+ var writer = new jspb.BinaryWriter();
1000
+ proto.bonus.PaginationRequest.serializeBinaryToWriter(this, writer);
1001
+ return writer.getResultBuffer();
1002
+ };
1003
+
1004
+
1005
+ /**
1006
+ * Serializes the given message to binary data (in protobuf wire
1007
+ * format), writing to the given BinaryWriter.
1008
+ * @param {!proto.bonus.PaginationRequest} message
1009
+ * @param {!jspb.BinaryWriter} writer
1010
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1011
+ */
1012
+ proto.bonus.PaginationRequest.serializeBinaryToWriter = function(message, writer) {
1013
+ var f = undefined;
1014
+ f = message.getLimit();
1015
+ if (f !== 0) {
1016
+ writer.writeInt32(
1017
+ 1,
1018
+ f
1019
+ );
1020
+ }
1021
+ f = message.getOffset();
1022
+ if (f !== 0) {
1023
+ writer.writeInt32(
1024
+ 2,
1025
+ f
1026
+ );
1027
+ }
1028
+ };
1029
+
1030
+
1031
+ /**
1032
+ * optional int32 limit = 1;
1033
+ * @return {number}
1034
+ */
1035
+ proto.bonus.PaginationRequest.prototype.getLimit = function() {
1036
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1037
+ };
1038
+
1039
+
1040
+ /**
1041
+ * @param {number} value
1042
+ * @return {!proto.bonus.PaginationRequest} returns this
1043
+ */
1044
+ proto.bonus.PaginationRequest.prototype.setLimit = function(value) {
1045
+ return jspb.Message.setProto3IntField(this, 1, value);
1046
+ };
1047
+
1048
+
1049
+ /**
1050
+ * optional int32 offset = 2;
1051
+ * @return {number}
1052
+ */
1053
+ proto.bonus.PaginationRequest.prototype.getOffset = function() {
1054
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1055
+ };
1056
+
1057
+
1058
+ /**
1059
+ * @param {number} value
1060
+ * @return {!proto.bonus.PaginationRequest} returns this
1061
+ */
1062
+ proto.bonus.PaginationRequest.prototype.setOffset = function(value) {
1063
+ return jspb.Message.setProto3IntField(this, 2, value);
1064
+ };
1065
+
1066
+
1067
+
1068
+ /**
1069
+ * Oneof group definitions for this message. Each group defines the field
1070
+ * numbers belonging to that group. When of these fields' value is set, all
1071
+ * other fields in the group are cleared. During deserialization, if multiple
1072
+ * fields are encountered for a group, only the last value seen will be kept.
1073
+ * @private {!Array<!Array<number>>}
1074
+ * @const
1075
+ */
1076
+ proto.bonus.BonusRequest.oneofGroups_ = [[1,2]];
1077
+
1078
+ /**
1079
+ * @enum {number}
1080
+ */
1081
+ proto.bonus.BonusRequest.RequestCase = {
1082
+ REQUEST_NOT_SET: 0,
1083
+ BONUS_DATA: 1,
1084
+ FILE: 2
1085
+ };
1086
+
1087
+ /**
1088
+ * @return {proto.bonus.BonusRequest.RequestCase}
1089
+ */
1090
+ proto.bonus.BonusRequest.prototype.getRequestCase = function() {
1091
+ return /** @type {proto.bonus.BonusRequest.RequestCase} */(jspb.Message.computeOneofCase(this, proto.bonus.BonusRequest.oneofGroups_[0]));
1092
+ };
1093
+
1094
+
1095
+
1096
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1097
+ /**
1098
+ * Creates an object representation of this proto.
1099
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1100
+ * Optional fields that are not set will be set to undefined.
1101
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1102
+ * For the list of reserved names please see:
1103
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1104
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1105
+ * JSPB instance for transitional soy proto support:
1106
+ * http://goto/soy-param-migration
1107
+ * @return {!Object}
1108
+ */
1109
+ proto.bonus.BonusRequest.prototype.toObject = function(opt_includeInstance) {
1110
+ return proto.bonus.BonusRequest.toObject(opt_includeInstance, this);
1111
+ };
1112
+
1113
+
1114
+ /**
1115
+ * Static version of the {@see toObject} method.
1116
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1117
+ * the JSPB instance for transitional soy proto support:
1118
+ * http://goto/soy-param-migration
1119
+ * @param {!proto.bonus.BonusRequest} msg The msg instance to transform.
1120
+ * @return {!Object}
1121
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1122
+ */
1123
+ proto.bonus.BonusRequest.toObject = function(includeInstance, msg) {
1124
+ var f, obj = {
1125
+ bonusData: (f = msg.getBonusData()) && proto.bonus.BonusItemRequest.toObject(includeInstance, f),
1126
+ file: (f = msg.getFile()) && proto.bonus.File.toObject(includeInstance, f)
1127
+ };
1128
+
1129
+ if (includeInstance) {
1130
+ obj.$jspbMessageInstance = msg;
1131
+ }
1132
+ return obj;
1133
+ };
1134
+ }
1135
+
1136
+
1137
+ /**
1138
+ * Deserializes binary data (in protobuf wire format).
1139
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1140
+ * @return {!proto.bonus.BonusRequest}
1141
+ */
1142
+ proto.bonus.BonusRequest.deserializeBinary = function(bytes) {
1143
+ var reader = new jspb.BinaryReader(bytes);
1144
+ var msg = new proto.bonus.BonusRequest;
1145
+ return proto.bonus.BonusRequest.deserializeBinaryFromReader(msg, reader);
1146
+ };
1147
+
1148
+
1149
+ /**
1150
+ * Deserializes binary data (in protobuf wire format) from the
1151
+ * given reader into the given message object.
1152
+ * @param {!proto.bonus.BonusRequest} msg The message object to deserialize into.
1153
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1154
+ * @return {!proto.bonus.BonusRequest}
1155
+ */
1156
+ proto.bonus.BonusRequest.deserializeBinaryFromReader = function(msg, reader) {
1157
+ while (reader.nextField()) {
1158
+ if (reader.isEndGroup()) {
1159
+ break;
1160
+ }
1161
+ var field = reader.getFieldNumber();
1162
+ switch (field) {
1163
+ case 1:
1164
+ var value = new proto.bonus.BonusItemRequest;
1165
+ reader.readMessage(value,proto.bonus.BonusItemRequest.deserializeBinaryFromReader);
1166
+ msg.setBonusData(value);
1167
+ break;
1168
+ case 2:
1169
+ var value = new proto.bonus.File;
1170
+ reader.readMessage(value,proto.bonus.File.deserializeBinaryFromReader);
1171
+ msg.setFile(value);
1172
+ break;
1173
+ default:
1174
+ reader.skipField();
1175
+ break;
1176
+ }
1177
+ }
1178
+ return msg;
1179
+ };
1180
+
1181
+
1182
+ /**
1183
+ * Serializes the message to binary data (in protobuf wire format).
1184
+ * @return {!Uint8Array}
1185
+ */
1186
+ proto.bonus.BonusRequest.prototype.serializeBinary = function() {
1187
+ var writer = new jspb.BinaryWriter();
1188
+ proto.bonus.BonusRequest.serializeBinaryToWriter(this, writer);
1189
+ return writer.getResultBuffer();
1190
+ };
1191
+
1192
+
1193
+ /**
1194
+ * Serializes the given message to binary data (in protobuf wire
1195
+ * format), writing to the given BinaryWriter.
1196
+ * @param {!proto.bonus.BonusRequest} message
1197
+ * @param {!jspb.BinaryWriter} writer
1198
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1199
+ */
1200
+ proto.bonus.BonusRequest.serializeBinaryToWriter = function(message, writer) {
1201
+ var f = undefined;
1202
+ f = message.getBonusData();
1203
+ if (f != null) {
1204
+ writer.writeMessage(
1205
+ 1,
1206
+ f,
1207
+ proto.bonus.BonusItemRequest.serializeBinaryToWriter
1208
+ );
1209
+ }
1210
+ f = message.getFile();
1211
+ if (f != null) {
1212
+ writer.writeMessage(
1213
+ 2,
1214
+ f,
1215
+ proto.bonus.File.serializeBinaryToWriter
1216
+ );
1217
+ }
1218
+ };
1219
+
1220
+
1221
+ /**
1222
+ * optional BonusItemRequest bonus_data = 1;
1223
+ * @return {?proto.bonus.BonusItemRequest}
1224
+ */
1225
+ proto.bonus.BonusRequest.prototype.getBonusData = function() {
1226
+ return /** @type{?proto.bonus.BonusItemRequest} */ (
1227
+ jspb.Message.getWrapperField(this, proto.bonus.BonusItemRequest, 1));
1228
+ };
1229
+
1230
+
1231
+ /**
1232
+ * @param {?proto.bonus.BonusItemRequest|undefined} value
1233
+ * @return {!proto.bonus.BonusRequest} returns this
1234
+ */
1235
+ proto.bonus.BonusRequest.prototype.setBonusData = function(value) {
1236
+ return jspb.Message.setOneofWrapperField(this, 1, proto.bonus.BonusRequest.oneofGroups_[0], value);
1237
+ };
1238
+
1239
+
1240
+ /**
1241
+ * Clears the message field making it undefined.
1242
+ * @return {!proto.bonus.BonusRequest} returns this
1243
+ */
1244
+ proto.bonus.BonusRequest.prototype.clearBonusData = function() {
1245
+ return this.setBonusData(undefined);
1246
+ };
1247
+
1248
+
1249
+ /**
1250
+ * Returns whether this field is set.
1251
+ * @return {boolean}
1252
+ */
1253
+ proto.bonus.BonusRequest.prototype.hasBonusData = function() {
1254
+ return jspb.Message.getField(this, 1) != null;
1255
+ };
1256
+
1257
+
1258
+ /**
1259
+ * optional File file = 2;
1260
+ * @return {?proto.bonus.File}
1261
+ */
1262
+ proto.bonus.BonusRequest.prototype.getFile = function() {
1263
+ return /** @type{?proto.bonus.File} */ (
1264
+ jspb.Message.getWrapperField(this, proto.bonus.File, 2));
1265
+ };
1266
+
1267
+
1268
+ /**
1269
+ * @param {?proto.bonus.File|undefined} value
1270
+ * @return {!proto.bonus.BonusRequest} returns this
1271
+ */
1272
+ proto.bonus.BonusRequest.prototype.setFile = function(value) {
1273
+ return jspb.Message.setOneofWrapperField(this, 2, proto.bonus.BonusRequest.oneofGroups_[0], value);
1274
+ };
1275
+
1276
+
1277
+ /**
1278
+ * Clears the message field making it undefined.
1279
+ * @return {!proto.bonus.BonusRequest} returns this
1280
+ */
1281
+ proto.bonus.BonusRequest.prototype.clearFile = function() {
1282
+ return this.setFile(undefined);
1283
+ };
1284
+
1285
+
1286
+ /**
1287
+ * Returns whether this field is set.
1288
+ * @return {boolean}
1289
+ */
1290
+ proto.bonus.BonusRequest.prototype.hasFile = function() {
1291
+ return jspb.Message.getField(this, 2) != null;
1292
+ };
1293
+
1294
+
1295
+
1296
+
1297
+
1298
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1299
+ /**
1300
+ * Creates an object representation of this proto.
1301
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1302
+ * Optional fields that are not set will be set to undefined.
1303
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1304
+ * For the list of reserved names please see:
1305
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1306
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1307
+ * JSPB instance for transitional soy proto support:
1308
+ * http://goto/soy-param-migration
1309
+ * @return {!Object}
1310
+ */
1311
+ proto.bonus.ActivationRule.prototype.toObject = function(opt_includeInstance) {
1312
+ return proto.bonus.ActivationRule.toObject(opt_includeInstance, this);
1313
+ };
1314
+
1315
+
1316
+ /**
1317
+ * Static version of the {@see toObject} method.
1318
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1319
+ * the JSPB instance for transitional soy proto support:
1320
+ * http://goto/soy-param-migration
1321
+ * @param {!proto.bonus.ActivationRule} msg The msg instance to transform.
1322
+ * @return {!Object}
1323
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1324
+ */
1325
+ proto.bonus.ActivationRule.toObject = function(includeInstance, msg) {
1326
+ var f, obj = {
1327
+ type: jspb.Message.getFieldWithDefault(msg, 1, ""),
1328
+ currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
1329
+ config: jspb.Message.getFieldWithDefault(msg, 3, "")
1330
+ };
1331
+
1332
+ if (includeInstance) {
1333
+ obj.$jspbMessageInstance = msg;
1334
+ }
1335
+ return obj;
1336
+ };
1337
+ }
1338
+
1339
+
1340
+ /**
1341
+ * Deserializes binary data (in protobuf wire format).
1342
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1343
+ * @return {!proto.bonus.ActivationRule}
1344
+ */
1345
+ proto.bonus.ActivationRule.deserializeBinary = function(bytes) {
1346
+ var reader = new jspb.BinaryReader(bytes);
1347
+ var msg = new proto.bonus.ActivationRule;
1348
+ return proto.bonus.ActivationRule.deserializeBinaryFromReader(msg, reader);
1349
+ };
1350
+
1351
+
1352
+ /**
1353
+ * Deserializes binary data (in protobuf wire format) from the
1354
+ * given reader into the given message object.
1355
+ * @param {!proto.bonus.ActivationRule} msg The message object to deserialize into.
1356
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1357
+ * @return {!proto.bonus.ActivationRule}
1358
+ */
1359
+ proto.bonus.ActivationRule.deserializeBinaryFromReader = function(msg, reader) {
1360
+ while (reader.nextField()) {
1361
+ if (reader.isEndGroup()) {
1362
+ break;
1363
+ }
1364
+ var field = reader.getFieldNumber();
1365
+ switch (field) {
1366
+ case 1:
1367
+ var value = /** @type {string} */ (reader.readString());
1368
+ msg.setType(value);
1369
+ break;
1370
+ case 2:
1371
+ var value = /** @type {string} */ (reader.readString());
1372
+ msg.setCurrency(value);
1373
+ break;
1374
+ case 3:
1375
+ var value = /** @type {string} */ (reader.readString());
1376
+ msg.setConfig(value);
1377
+ break;
1378
+ default:
1379
+ reader.skipField();
1380
+ break;
1381
+ }
1382
+ }
1383
+ return msg;
1384
+ };
1385
+
1386
+
1387
+ /**
1388
+ * Serializes the message to binary data (in protobuf wire format).
1389
+ * @return {!Uint8Array}
1390
+ */
1391
+ proto.bonus.ActivationRule.prototype.serializeBinary = function() {
1392
+ var writer = new jspb.BinaryWriter();
1393
+ proto.bonus.ActivationRule.serializeBinaryToWriter(this, writer);
1394
+ return writer.getResultBuffer();
1395
+ };
1396
+
1397
+
1398
+ /**
1399
+ * Serializes the given message to binary data (in protobuf wire
1400
+ * format), writing to the given BinaryWriter.
1401
+ * @param {!proto.bonus.ActivationRule} message
1402
+ * @param {!jspb.BinaryWriter} writer
1403
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1404
+ */
1405
+ proto.bonus.ActivationRule.serializeBinaryToWriter = function(message, writer) {
1406
+ var f = undefined;
1407
+ f = message.getType();
1408
+ if (f.length > 0) {
1409
+ writer.writeString(
1410
+ 1,
1411
+ f
1412
+ );
1413
+ }
1414
+ f = message.getCurrency();
1415
+ if (f.length > 0) {
1416
+ writer.writeString(
1417
+ 2,
1418
+ f
1419
+ );
1420
+ }
1421
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
1422
+ if (f != null) {
1423
+ writer.writeString(
1424
+ 3,
1425
+ f
1426
+ );
1427
+ }
1428
+ };
1429
+
1430
+
1431
+ /**
1432
+ * optional string type = 1;
1433
+ * @return {string}
1434
+ */
1435
+ proto.bonus.ActivationRule.prototype.getType = function() {
1436
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1437
+ };
1438
+
1439
+
1440
+ /**
1441
+ * @param {string} value
1442
+ * @return {!proto.bonus.ActivationRule} returns this
1443
+ */
1444
+ proto.bonus.ActivationRule.prototype.setType = function(value) {
1445
+ return jspb.Message.setProto3StringField(this, 1, value);
1446
+ };
1447
+
1448
+
1449
+ /**
1450
+ * optional string currency = 2;
1451
+ * @return {string}
1452
+ */
1453
+ proto.bonus.ActivationRule.prototype.getCurrency = function() {
1454
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1455
+ };
1456
+
1457
+
1458
+ /**
1459
+ * @param {string} value
1460
+ * @return {!proto.bonus.ActivationRule} returns this
1461
+ */
1462
+ proto.bonus.ActivationRule.prototype.setCurrency = function(value) {
1463
+ return jspb.Message.setProto3StringField(this, 2, value);
1464
+ };
1465
+
1466
+
1467
+ /**
1468
+ * optional string config = 3;
1469
+ * @return {string}
1470
+ */
1471
+ proto.bonus.ActivationRule.prototype.getConfig = function() {
1472
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1473
+ };
1474
+
1475
+
1476
+ /**
1477
+ * @param {string} value
1478
+ * @return {!proto.bonus.ActivationRule} returns this
1479
+ */
1480
+ proto.bonus.ActivationRule.prototype.setConfig = function(value) {
1481
+ return jspb.Message.setField(this, 3, value);
1482
+ };
1483
+
1484
+
1485
+ /**
1486
+ * Clears the field making it undefined.
1487
+ * @return {!proto.bonus.ActivationRule} returns this
1488
+ */
1489
+ proto.bonus.ActivationRule.prototype.clearConfig = function() {
1490
+ return jspb.Message.setField(this, 3, undefined);
1491
+ };
1492
+
1493
+
1494
+ /**
1495
+ * Returns whether this field is set.
1496
+ * @return {boolean}
1497
+ */
1498
+ proto.bonus.ActivationRule.prototype.hasConfig = function() {
1499
+ return jspb.Message.getField(this, 3) != null;
1500
+ };
1501
+
1502
+
1503
+
1504
+
1505
+
1506
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1507
+ /**
1508
+ * Creates an object representation of this proto.
1509
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1510
+ * Optional fields that are not set will be set to undefined.
1511
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1512
+ * For the list of reserved names please see:
1513
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1514
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1515
+ * JSPB instance for transitional soy proto support:
1516
+ * http://goto/soy-param-migration
1517
+ * @return {!Object}
1518
+ */
1519
+ proto.bonus.BonusReward.prototype.toObject = function(opt_includeInstance) {
1520
+ return proto.bonus.BonusReward.toObject(opt_includeInstance, this);
1521
+ };
1522
+
1523
+
1524
+ /**
1525
+ * Static version of the {@see toObject} method.
1526
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1527
+ * the JSPB instance for transitional soy proto support:
1528
+ * http://goto/soy-param-migration
1529
+ * @param {!proto.bonus.BonusReward} msg The msg instance to transform.
1530
+ * @return {!Object}
1531
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1532
+ */
1533
+ proto.bonus.BonusReward.toObject = function(includeInstance, msg) {
1534
+ var f, obj = {
1535
+ type: jspb.Message.getFieldWithDefault(msg, 1, ""),
1536
+ currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
1537
+ config: jspb.Message.getFieldWithDefault(msg, 3, "")
1538
+ };
1539
+
1540
+ if (includeInstance) {
1541
+ obj.$jspbMessageInstance = msg;
1542
+ }
1543
+ return obj;
1544
+ };
1545
+ }
1546
+
1547
+
1548
+ /**
1549
+ * Deserializes binary data (in protobuf wire format).
1550
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1551
+ * @return {!proto.bonus.BonusReward}
1552
+ */
1553
+ proto.bonus.BonusReward.deserializeBinary = function(bytes) {
1554
+ var reader = new jspb.BinaryReader(bytes);
1555
+ var msg = new proto.bonus.BonusReward;
1556
+ return proto.bonus.BonusReward.deserializeBinaryFromReader(msg, reader);
1557
+ };
1558
+
1559
+
1560
+ /**
1561
+ * Deserializes binary data (in protobuf wire format) from the
1562
+ * given reader into the given message object.
1563
+ * @param {!proto.bonus.BonusReward} msg The message object to deserialize into.
1564
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1565
+ * @return {!proto.bonus.BonusReward}
1566
+ */
1567
+ proto.bonus.BonusReward.deserializeBinaryFromReader = function(msg, reader) {
1568
+ while (reader.nextField()) {
1569
+ if (reader.isEndGroup()) {
1570
+ break;
1571
+ }
1572
+ var field = reader.getFieldNumber();
1573
+ switch (field) {
1574
+ case 1:
1575
+ var value = /** @type {string} */ (reader.readString());
1576
+ msg.setType(value);
1577
+ break;
1578
+ case 2:
1579
+ var value = /** @type {string} */ (reader.readString());
1580
+ msg.setCurrency(value);
1581
+ break;
1582
+ case 3:
1583
+ var value = /** @type {string} */ (reader.readString());
1584
+ msg.setConfig(value);
1585
+ break;
1586
+ default:
1587
+ reader.skipField();
1588
+ break;
1589
+ }
1590
+ }
1591
+ return msg;
1592
+ };
1593
+
1594
+
1595
+ /**
1596
+ * Serializes the message to binary data (in protobuf wire format).
1597
+ * @return {!Uint8Array}
1598
+ */
1599
+ proto.bonus.BonusReward.prototype.serializeBinary = function() {
1600
+ var writer = new jspb.BinaryWriter();
1601
+ proto.bonus.BonusReward.serializeBinaryToWriter(this, writer);
1602
+ return writer.getResultBuffer();
1603
+ };
1604
+
1605
+
1606
+ /**
1607
+ * Serializes the given message to binary data (in protobuf wire
1608
+ * format), writing to the given BinaryWriter.
1609
+ * @param {!proto.bonus.BonusReward} message
1610
+ * @param {!jspb.BinaryWriter} writer
1611
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1612
+ */
1613
+ proto.bonus.BonusReward.serializeBinaryToWriter = function(message, writer) {
1614
+ var f = undefined;
1615
+ f = message.getType();
1616
+ if (f.length > 0) {
1617
+ writer.writeString(
1618
+ 1,
1619
+ f
1620
+ );
1621
+ }
1622
+ f = message.getCurrency();
1623
+ if (f.length > 0) {
1624
+ writer.writeString(
1625
+ 2,
1626
+ f
1627
+ );
1628
+ }
1629
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
1630
+ if (f != null) {
1631
+ writer.writeString(
1632
+ 3,
1633
+ f
1634
+ );
1635
+ }
1636
+ };
1637
+
1638
+
1639
+ /**
1640
+ * optional string type = 1;
1641
+ * @return {string}
1642
+ */
1643
+ proto.bonus.BonusReward.prototype.getType = function() {
1644
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1645
+ };
1646
+
1647
+
1648
+ /**
1649
+ * @param {string} value
1650
+ * @return {!proto.bonus.BonusReward} returns this
1651
+ */
1652
+ proto.bonus.BonusReward.prototype.setType = function(value) {
1653
+ return jspb.Message.setProto3StringField(this, 1, value);
1654
+ };
1655
+
1656
+
1657
+ /**
1658
+ * optional string currency = 2;
1659
+ * @return {string}
1660
+ */
1661
+ proto.bonus.BonusReward.prototype.getCurrency = function() {
1662
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1663
+ };
1664
+
1665
+
1666
+ /**
1667
+ * @param {string} value
1668
+ * @return {!proto.bonus.BonusReward} returns this
1669
+ */
1670
+ proto.bonus.BonusReward.prototype.setCurrency = function(value) {
1671
+ return jspb.Message.setProto3StringField(this, 2, value);
1672
+ };
1673
+
1674
+
1675
+ /**
1676
+ * optional string config = 3;
1677
+ * @return {string}
1678
+ */
1679
+ proto.bonus.BonusReward.prototype.getConfig = function() {
1680
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1681
+ };
1682
+
1683
+
1684
+ /**
1685
+ * @param {string} value
1686
+ * @return {!proto.bonus.BonusReward} returns this
1687
+ */
1688
+ proto.bonus.BonusReward.prototype.setConfig = function(value) {
1689
+ return jspb.Message.setField(this, 3, value);
1690
+ };
1691
+
1692
+
1693
+ /**
1694
+ * Clears the field making it undefined.
1695
+ * @return {!proto.bonus.BonusReward} returns this
1696
+ */
1697
+ proto.bonus.BonusReward.prototype.clearConfig = function() {
1698
+ return jspb.Message.setField(this, 3, undefined);
1699
+ };
1700
+
1701
+
1702
+ /**
1703
+ * Returns whether this field is set.
1704
+ * @return {boolean}
1705
+ */
1706
+ proto.bonus.BonusReward.prototype.hasConfig = function() {
1707
+ return jspb.Message.getField(this, 3) != null;
1708
+ };
1709
+
1710
+
1711
+
1712
+ /**
1713
+ * List of repeated fields within this message type.
1714
+ * @private {!Array<number>}
1715
+ * @const
1716
+ */
1717
+ proto.bonus.BonusItemRequest.repeatedFields_ = [20,21];
1718
+
1719
+
1720
+
1721
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1722
+ /**
1723
+ * Creates an object representation of this proto.
1724
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1725
+ * Optional fields that are not set will be set to undefined.
1726
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1727
+ * For the list of reserved names please see:
1728
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1729
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1730
+ * JSPB instance for transitional soy proto support:
1731
+ * http://goto/soy-param-migration
1732
+ * @return {!Object}
1733
+ */
1734
+ proto.bonus.BonusItemRequest.prototype.toObject = function(opt_includeInstance) {
1735
+ return proto.bonus.BonusItemRequest.toObject(opt_includeInstance, this);
1736
+ };
1737
+
1738
+
1739
+ /**
1740
+ * Static version of the {@see toObject} method.
1741
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1742
+ * the JSPB instance for transitional soy proto support:
1743
+ * http://goto/soy-param-migration
1744
+ * @param {!proto.bonus.BonusItemRequest} msg The msg instance to transform.
1745
+ * @return {!Object}
1746
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1747
+ */
1748
+ proto.bonus.BonusItemRequest.toObject = function(includeInstance, msg) {
1749
+ var f, obj = {
1750
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1751
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
1752
+ description: jspb.Message.getFieldWithDefault(msg, 3, ""),
1753
+ fileName: jspb.Message.getFieldWithDefault(msg, 4, ""),
1754
+ fileType: jspb.Message.getFieldWithDefault(msg, 5, ""),
1755
+ status: jspb.Message.getFieldWithDefault(msg, 6, ""),
1756
+ type: jspb.Message.getFieldWithDefault(msg, 7, ""),
1757
+ wagerX: jspb.Message.getFieldWithDefault(msg, 8, 0),
1758
+ payoutX: jspb.Message.getFieldWithDefault(msg, 9, 0),
1759
+ isRealWagering: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
1760
+ isBonusWagering: jspb.Message.getBooleanFieldWithDefault(msg, 11, false),
1761
+ repeatCount: jspb.Message.getFieldWithDefault(msg, 12, 0),
1762
+ wagerGamesListId: jspb.Message.getFieldWithDefault(msg, 13, 0),
1763
+ startedAt: jspb.Message.getFieldWithDefault(msg, 14, ""),
1764
+ finishedAt: jspb.Message.getFieldWithDefault(msg, 15, ""),
1765
+ showPreviousAt: jspb.Message.getFieldWithDefault(msg, 16, ""),
1766
+ claimPeriodInHours: jspb.Message.getFieldWithDefault(msg, 17, 0),
1767
+ activationPeriodInHours: jspb.Message.getFieldWithDefault(msg, 18, 0),
1768
+ wageringPeriodInHours: jspb.Message.getFieldWithDefault(msg, 19, 0),
1769
+ activationRulesList: jspb.Message.toObjectList(msg.getActivationRulesList(),
1770
+ proto.bonus.ActivationRule.toObject, includeInstance),
1771
+ rewardsList: jspb.Message.toObjectList(msg.getRewardsList(),
1772
+ proto.bonus.BonusReward.toObject, includeInstance)
1773
+ };
1774
+
1775
+ if (includeInstance) {
1776
+ obj.$jspbMessageInstance = msg;
1777
+ }
1778
+ return obj;
1779
+ };
1780
+ }
1781
+
1782
+
1783
+ /**
1784
+ * Deserializes binary data (in protobuf wire format).
1785
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1786
+ * @return {!proto.bonus.BonusItemRequest}
1787
+ */
1788
+ proto.bonus.BonusItemRequest.deserializeBinary = function(bytes) {
1789
+ var reader = new jspb.BinaryReader(bytes);
1790
+ var msg = new proto.bonus.BonusItemRequest;
1791
+ return proto.bonus.BonusItemRequest.deserializeBinaryFromReader(msg, reader);
1792
+ };
1793
+
1794
+
1795
+ /**
1796
+ * Deserializes binary data (in protobuf wire format) from the
1797
+ * given reader into the given message object.
1798
+ * @param {!proto.bonus.BonusItemRequest} msg The message object to deserialize into.
1799
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1800
+ * @return {!proto.bonus.BonusItemRequest}
1801
+ */
1802
+ proto.bonus.BonusItemRequest.deserializeBinaryFromReader = function(msg, reader) {
1803
+ while (reader.nextField()) {
1804
+ if (reader.isEndGroup()) {
1805
+ break;
1806
+ }
1807
+ var field = reader.getFieldNumber();
1808
+ switch (field) {
1809
+ case 1:
1810
+ var value = /** @type {number} */ (reader.readInt32());
1811
+ msg.setId(value);
1812
+ break;
1813
+ case 2:
1814
+ var value = /** @type {string} */ (reader.readString());
1815
+ msg.setTitle(value);
1816
+ break;
1817
+ case 3:
1818
+ var value = /** @type {string} */ (reader.readString());
1819
+ msg.setDescription(value);
1820
+ break;
1821
+ case 4:
1822
+ var value = /** @type {string} */ (reader.readString());
1823
+ msg.setFileName(value);
1824
+ break;
1825
+ case 5:
1826
+ var value = /** @type {string} */ (reader.readString());
1827
+ msg.setFileType(value);
1828
+ break;
1829
+ case 6:
1830
+ var value = /** @type {string} */ (reader.readString());
1831
+ msg.setStatus(value);
1832
+ break;
1833
+ case 7:
1834
+ var value = /** @type {string} */ (reader.readString());
1835
+ msg.setType(value);
1836
+ break;
1837
+ case 8:
1838
+ var value = /** @type {number} */ (reader.readInt32());
1839
+ msg.setWagerX(value);
1840
+ break;
1841
+ case 9:
1842
+ var value = /** @type {number} */ (reader.readInt32());
1843
+ msg.setPayoutX(value);
1844
+ break;
1845
+ case 10:
1846
+ var value = /** @type {boolean} */ (reader.readBool());
1847
+ msg.setIsRealWagering(value);
1848
+ break;
1849
+ case 11:
1850
+ var value = /** @type {boolean} */ (reader.readBool());
1851
+ msg.setIsBonusWagering(value);
1852
+ break;
1853
+ case 12:
1854
+ var value = /** @type {number} */ (reader.readInt32());
1855
+ msg.setRepeatCount(value);
1856
+ break;
1857
+ case 13:
1858
+ var value = /** @type {number} */ (reader.readInt32());
1859
+ msg.setWagerGamesListId(value);
1860
+ break;
1861
+ case 14:
1862
+ var value = /** @type {string} */ (reader.readString());
1863
+ msg.setStartedAt(value);
1864
+ break;
1865
+ case 15:
1866
+ var value = /** @type {string} */ (reader.readString());
1867
+ msg.setFinishedAt(value);
1868
+ break;
1869
+ case 16:
1870
+ var value = /** @type {string} */ (reader.readString());
1871
+ msg.setShowPreviousAt(value);
1872
+ break;
1873
+ case 17:
1874
+ var value = /** @type {number} */ (reader.readInt32());
1875
+ msg.setClaimPeriodInHours(value);
1876
+ break;
1877
+ case 18:
1878
+ var value = /** @type {number} */ (reader.readInt32());
1879
+ msg.setActivationPeriodInHours(value);
1880
+ break;
1881
+ case 19:
1882
+ var value = /** @type {number} */ (reader.readInt32());
1883
+ msg.setWageringPeriodInHours(value);
1884
+ break;
1885
+ case 20:
1886
+ var value = new proto.bonus.ActivationRule;
1887
+ reader.readMessage(value,proto.bonus.ActivationRule.deserializeBinaryFromReader);
1888
+ msg.addActivationRules(value);
1889
+ break;
1890
+ case 21:
1891
+ var value = new proto.bonus.BonusReward;
1892
+ reader.readMessage(value,proto.bonus.BonusReward.deserializeBinaryFromReader);
1893
+ msg.addRewards(value);
1894
+ break;
1895
+ default:
1896
+ reader.skipField();
1897
+ break;
1898
+ }
1899
+ }
1900
+ return msg;
1901
+ };
1902
+
1903
+
1904
+ /**
1905
+ * Serializes the message to binary data (in protobuf wire format).
1906
+ * @return {!Uint8Array}
1907
+ */
1908
+ proto.bonus.BonusItemRequest.prototype.serializeBinary = function() {
1909
+ var writer = new jspb.BinaryWriter();
1910
+ proto.bonus.BonusItemRequest.serializeBinaryToWriter(this, writer);
1911
+ return writer.getResultBuffer();
1912
+ };
1913
+
1914
+
1915
+ /**
1916
+ * Serializes the given message to binary data (in protobuf wire
1917
+ * format), writing to the given BinaryWriter.
1918
+ * @param {!proto.bonus.BonusItemRequest} message
1919
+ * @param {!jspb.BinaryWriter} writer
1920
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1921
+ */
1922
+ proto.bonus.BonusItemRequest.serializeBinaryToWriter = function(message, writer) {
1923
+ var f = undefined;
1924
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
1925
+ if (f != null) {
1926
+ writer.writeInt32(
1927
+ 1,
1928
+ f
1929
+ );
1930
+ }
1931
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
1932
+ if (f != null) {
1933
+ writer.writeString(
1934
+ 2,
1935
+ f
1936
+ );
1937
+ }
1938
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
1939
+ if (f != null) {
1940
+ writer.writeString(
1941
+ 3,
1942
+ f
1943
+ );
1944
+ }
1945
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
1946
+ if (f != null) {
1947
+ writer.writeString(
1948
+ 4,
1949
+ f
1950
+ );
1951
+ }
1952
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
1953
+ if (f != null) {
1954
+ writer.writeString(
1955
+ 5,
1956
+ f
1957
+ );
1958
+ }
1959
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
1960
+ if (f != null) {
1961
+ writer.writeString(
1962
+ 6,
1963
+ f
1964
+ );
1965
+ }
1966
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
1967
+ if (f != null) {
1968
+ writer.writeString(
1969
+ 7,
1970
+ f
1971
+ );
1972
+ }
1973
+ f = /** @type {number} */ (jspb.Message.getField(message, 8));
1974
+ if (f != null) {
1975
+ writer.writeInt32(
1976
+ 8,
1977
+ f
1978
+ );
1979
+ }
1980
+ f = /** @type {number} */ (jspb.Message.getField(message, 9));
1981
+ if (f != null) {
1982
+ writer.writeInt32(
1983
+ 9,
1984
+ f
1985
+ );
1986
+ }
1987
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 10));
1988
+ if (f != null) {
1989
+ writer.writeBool(
1990
+ 10,
1991
+ f
1992
+ );
1993
+ }
1994
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 11));
1995
+ if (f != null) {
1996
+ writer.writeBool(
1997
+ 11,
1998
+ f
1999
+ );
2000
+ }
2001
+ f = /** @type {number} */ (jspb.Message.getField(message, 12));
2002
+ if (f != null) {
2003
+ writer.writeInt32(
2004
+ 12,
2005
+ f
2006
+ );
2007
+ }
2008
+ f = /** @type {number} */ (jspb.Message.getField(message, 13));
2009
+ if (f != null) {
2010
+ writer.writeInt32(
2011
+ 13,
2012
+ f
2013
+ );
2014
+ }
2015
+ f = /** @type {string} */ (jspb.Message.getField(message, 14));
2016
+ if (f != null) {
2017
+ writer.writeString(
2018
+ 14,
2019
+ f
2020
+ );
2021
+ }
2022
+ f = /** @type {string} */ (jspb.Message.getField(message, 15));
2023
+ if (f != null) {
2024
+ writer.writeString(
2025
+ 15,
2026
+ f
2027
+ );
2028
+ }
2029
+ f = /** @type {string} */ (jspb.Message.getField(message, 16));
2030
+ if (f != null) {
2031
+ writer.writeString(
2032
+ 16,
2033
+ f
2034
+ );
2035
+ }
2036
+ f = /** @type {number} */ (jspb.Message.getField(message, 17));
2037
+ if (f != null) {
2038
+ writer.writeInt32(
2039
+ 17,
2040
+ f
2041
+ );
2042
+ }
2043
+ f = /** @type {number} */ (jspb.Message.getField(message, 18));
2044
+ if (f != null) {
2045
+ writer.writeInt32(
2046
+ 18,
2047
+ f
2048
+ );
2049
+ }
2050
+ f = /** @type {number} */ (jspb.Message.getField(message, 19));
2051
+ if (f != null) {
2052
+ writer.writeInt32(
2053
+ 19,
2054
+ f
2055
+ );
2056
+ }
2057
+ f = message.getActivationRulesList();
2058
+ if (f.length > 0) {
2059
+ writer.writeRepeatedMessage(
2060
+ 20,
2061
+ f,
2062
+ proto.bonus.ActivationRule.serializeBinaryToWriter
2063
+ );
2064
+ }
2065
+ f = message.getRewardsList();
2066
+ if (f.length > 0) {
2067
+ writer.writeRepeatedMessage(
2068
+ 21,
2069
+ f,
2070
+ proto.bonus.BonusReward.serializeBinaryToWriter
2071
+ );
2072
+ }
2073
+ };
2074
+
2075
+
2076
+ /**
2077
+ * optional int32 id = 1;
2078
+ * @return {number}
2079
+ */
2080
+ proto.bonus.BonusItemRequest.prototype.getId = function() {
2081
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2082
+ };
2083
+
2084
+
2085
+ /**
2086
+ * @param {number} value
2087
+ * @return {!proto.bonus.BonusItemRequest} returns this
2088
+ */
2089
+ proto.bonus.BonusItemRequest.prototype.setId = function(value) {
2090
+ return jspb.Message.setField(this, 1, value);
2091
+ };
2092
+
2093
+
2094
+ /**
2095
+ * Clears the field making it undefined.
2096
+ * @return {!proto.bonus.BonusItemRequest} returns this
2097
+ */
2098
+ proto.bonus.BonusItemRequest.prototype.clearId = function() {
2099
+ return jspb.Message.setField(this, 1, undefined);
2100
+ };
2101
+
2102
+
2103
+ /**
2104
+ * Returns whether this field is set.
2105
+ * @return {boolean}
2106
+ */
2107
+ proto.bonus.BonusItemRequest.prototype.hasId = function() {
2108
+ return jspb.Message.getField(this, 1) != null;
2109
+ };
2110
+
2111
+
2112
+ /**
2113
+ * optional string title = 2;
2114
+ * @return {string}
2115
+ */
2116
+ proto.bonus.BonusItemRequest.prototype.getTitle = function() {
2117
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2118
+ };
2119
+
2120
+
2121
+ /**
2122
+ * @param {string} value
2123
+ * @return {!proto.bonus.BonusItemRequest} returns this
2124
+ */
2125
+ proto.bonus.BonusItemRequest.prototype.setTitle = function(value) {
2126
+ return jspb.Message.setField(this, 2, value);
2127
+ };
2128
+
2129
+
2130
+ /**
2131
+ * Clears the field making it undefined.
2132
+ * @return {!proto.bonus.BonusItemRequest} returns this
2133
+ */
2134
+ proto.bonus.BonusItemRequest.prototype.clearTitle = function() {
2135
+ return jspb.Message.setField(this, 2, undefined);
2136
+ };
2137
+
2138
+
2139
+ /**
2140
+ * Returns whether this field is set.
2141
+ * @return {boolean}
2142
+ */
2143
+ proto.bonus.BonusItemRequest.prototype.hasTitle = function() {
2144
+ return jspb.Message.getField(this, 2) != null;
2145
+ };
2146
+
2147
+
2148
+ /**
2149
+ * optional string description = 3;
2150
+ * @return {string}
2151
+ */
2152
+ proto.bonus.BonusItemRequest.prototype.getDescription = function() {
2153
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2154
+ };
2155
+
2156
+
2157
+ /**
2158
+ * @param {string} value
2159
+ * @return {!proto.bonus.BonusItemRequest} returns this
2160
+ */
2161
+ proto.bonus.BonusItemRequest.prototype.setDescription = function(value) {
2162
+ return jspb.Message.setField(this, 3, value);
2163
+ };
2164
+
2165
+
2166
+ /**
2167
+ * Clears the field making it undefined.
2168
+ * @return {!proto.bonus.BonusItemRequest} returns this
2169
+ */
2170
+ proto.bonus.BonusItemRequest.prototype.clearDescription = function() {
2171
+ return jspb.Message.setField(this, 3, undefined);
2172
+ };
2173
+
2174
+
2175
+ /**
2176
+ * Returns whether this field is set.
2177
+ * @return {boolean}
2178
+ */
2179
+ proto.bonus.BonusItemRequest.prototype.hasDescription = function() {
2180
+ return jspb.Message.getField(this, 3) != null;
2181
+ };
2182
+
2183
+
2184
+ /**
2185
+ * optional string file_name = 4;
2186
+ * @return {string}
2187
+ */
2188
+ proto.bonus.BonusItemRequest.prototype.getFileName = function() {
2189
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2190
+ };
2191
+
2192
+
2193
+ /**
2194
+ * @param {string} value
2195
+ * @return {!proto.bonus.BonusItemRequest} returns this
2196
+ */
2197
+ proto.bonus.BonusItemRequest.prototype.setFileName = function(value) {
2198
+ return jspb.Message.setField(this, 4, value);
2199
+ };
2200
+
2201
+
2202
+ /**
2203
+ * Clears the field making it undefined.
2204
+ * @return {!proto.bonus.BonusItemRequest} returns this
2205
+ */
2206
+ proto.bonus.BonusItemRequest.prototype.clearFileName = function() {
2207
+ return jspb.Message.setField(this, 4, undefined);
2208
+ };
2209
+
2210
+
2211
+ /**
2212
+ * Returns whether this field is set.
2213
+ * @return {boolean}
2214
+ */
2215
+ proto.bonus.BonusItemRequest.prototype.hasFileName = function() {
2216
+ return jspb.Message.getField(this, 4) != null;
2217
+ };
2218
+
2219
+
2220
+ /**
2221
+ * optional string file_type = 5;
2222
+ * @return {string}
2223
+ */
2224
+ proto.bonus.BonusItemRequest.prototype.getFileType = function() {
2225
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2226
+ };
2227
+
2228
+
2229
+ /**
2230
+ * @param {string} value
2231
+ * @return {!proto.bonus.BonusItemRequest} returns this
2232
+ */
2233
+ proto.bonus.BonusItemRequest.prototype.setFileType = function(value) {
2234
+ return jspb.Message.setField(this, 5, value);
2235
+ };
2236
+
2237
+
2238
+ /**
2239
+ * Clears the field making it undefined.
2240
+ * @return {!proto.bonus.BonusItemRequest} returns this
2241
+ */
2242
+ proto.bonus.BonusItemRequest.prototype.clearFileType = function() {
2243
+ return jspb.Message.setField(this, 5, undefined);
2244
+ };
2245
+
2246
+
2247
+ /**
2248
+ * Returns whether this field is set.
2249
+ * @return {boolean}
2250
+ */
2251
+ proto.bonus.BonusItemRequest.prototype.hasFileType = function() {
2252
+ return jspb.Message.getField(this, 5) != null;
2253
+ };
2254
+
2255
+
2256
+ /**
2257
+ * optional string status = 6;
2258
+ * @return {string}
2259
+ */
2260
+ proto.bonus.BonusItemRequest.prototype.getStatus = function() {
2261
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
2262
+ };
2263
+
2264
+
2265
+ /**
2266
+ * @param {string} value
2267
+ * @return {!proto.bonus.BonusItemRequest} returns this
2268
+ */
2269
+ proto.bonus.BonusItemRequest.prototype.setStatus = function(value) {
2270
+ return jspb.Message.setField(this, 6, value);
2271
+ };
2272
+
2273
+
2274
+ /**
2275
+ * Clears the field making it undefined.
2276
+ * @return {!proto.bonus.BonusItemRequest} returns this
2277
+ */
2278
+ proto.bonus.BonusItemRequest.prototype.clearStatus = function() {
2279
+ return jspb.Message.setField(this, 6, undefined);
2280
+ };
2281
+
2282
+
2283
+ /**
2284
+ * Returns whether this field is set.
2285
+ * @return {boolean}
2286
+ */
2287
+ proto.bonus.BonusItemRequest.prototype.hasStatus = function() {
2288
+ return jspb.Message.getField(this, 6) != null;
2289
+ };
2290
+
2291
+
2292
+ /**
2293
+ * optional string type = 7;
2294
+ * @return {string}
2295
+ */
2296
+ proto.bonus.BonusItemRequest.prototype.getType = function() {
2297
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
2298
+ };
2299
+
2300
+
2301
+ /**
2302
+ * @param {string} value
2303
+ * @return {!proto.bonus.BonusItemRequest} returns this
2304
+ */
2305
+ proto.bonus.BonusItemRequest.prototype.setType = function(value) {
2306
+ return jspb.Message.setField(this, 7, value);
2307
+ };
2308
+
2309
+
2310
+ /**
2311
+ * Clears the field making it undefined.
2312
+ * @return {!proto.bonus.BonusItemRequest} returns this
2313
+ */
2314
+ proto.bonus.BonusItemRequest.prototype.clearType = function() {
2315
+ return jspb.Message.setField(this, 7, undefined);
2316
+ };
2317
+
2318
+
2319
+ /**
2320
+ * Returns whether this field is set.
2321
+ * @return {boolean}
2322
+ */
2323
+ proto.bonus.BonusItemRequest.prototype.hasType = function() {
2324
+ return jspb.Message.getField(this, 7) != null;
2325
+ };
2326
+
2327
+
2328
+ /**
2329
+ * optional int32 wager_x = 8;
2330
+ * @return {number}
2331
+ */
2332
+ proto.bonus.BonusItemRequest.prototype.getWagerX = function() {
2333
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
2334
+ };
2335
+
2336
+
2337
+ /**
2338
+ * @param {number} value
2339
+ * @return {!proto.bonus.BonusItemRequest} returns this
2340
+ */
2341
+ proto.bonus.BonusItemRequest.prototype.setWagerX = function(value) {
2342
+ return jspb.Message.setField(this, 8, value);
2343
+ };
2344
+
2345
+
2346
+ /**
2347
+ * Clears the field making it undefined.
2348
+ * @return {!proto.bonus.BonusItemRequest} returns this
2349
+ */
2350
+ proto.bonus.BonusItemRequest.prototype.clearWagerX = function() {
2351
+ return jspb.Message.setField(this, 8, undefined);
2352
+ };
2353
+
2354
+
2355
+ /**
2356
+ * Returns whether this field is set.
2357
+ * @return {boolean}
2358
+ */
2359
+ proto.bonus.BonusItemRequest.prototype.hasWagerX = function() {
2360
+ return jspb.Message.getField(this, 8) != null;
2361
+ };
2362
+
2363
+
2364
+ /**
2365
+ * optional int32 payout_x = 9;
2366
+ * @return {number}
2367
+ */
2368
+ proto.bonus.BonusItemRequest.prototype.getPayoutX = function() {
2369
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
2370
+ };
2371
+
2372
+
2373
+ /**
2374
+ * @param {number} value
2375
+ * @return {!proto.bonus.BonusItemRequest} returns this
2376
+ */
2377
+ proto.bonus.BonusItemRequest.prototype.setPayoutX = function(value) {
2378
+ return jspb.Message.setField(this, 9, value);
2379
+ };
2380
+
2381
+
2382
+ /**
2383
+ * Clears the field making it undefined.
2384
+ * @return {!proto.bonus.BonusItemRequest} returns this
2385
+ */
2386
+ proto.bonus.BonusItemRequest.prototype.clearPayoutX = function() {
2387
+ return jspb.Message.setField(this, 9, undefined);
2388
+ };
2389
+
2390
+
2391
+ /**
2392
+ * Returns whether this field is set.
2393
+ * @return {boolean}
2394
+ */
2395
+ proto.bonus.BonusItemRequest.prototype.hasPayoutX = function() {
2396
+ return jspb.Message.getField(this, 9) != null;
2397
+ };
2398
+
2399
+
2400
+ /**
2401
+ * optional bool is_real_wagering = 10;
2402
+ * @return {boolean}
2403
+ */
2404
+ proto.bonus.BonusItemRequest.prototype.getIsRealWagering = function() {
2405
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false));
2406
+ };
2407
+
2408
+
2409
+ /**
2410
+ * @param {boolean} value
2411
+ * @return {!proto.bonus.BonusItemRequest} returns this
2412
+ */
2413
+ proto.bonus.BonusItemRequest.prototype.setIsRealWagering = function(value) {
2414
+ return jspb.Message.setField(this, 10, value);
2415
+ };
2416
+
2417
+
2418
+ /**
2419
+ * Clears the field making it undefined.
2420
+ * @return {!proto.bonus.BonusItemRequest} returns this
2421
+ */
2422
+ proto.bonus.BonusItemRequest.prototype.clearIsRealWagering = function() {
2423
+ return jspb.Message.setField(this, 10, undefined);
2424
+ };
2425
+
2426
+
2427
+ /**
2428
+ * Returns whether this field is set.
2429
+ * @return {boolean}
2430
+ */
2431
+ proto.bonus.BonusItemRequest.prototype.hasIsRealWagering = function() {
2432
+ return jspb.Message.getField(this, 10) != null;
2433
+ };
2434
+
2435
+
2436
+ /**
2437
+ * optional bool is_bonus_wagering = 11;
2438
+ * @return {boolean}
2439
+ */
2440
+ proto.bonus.BonusItemRequest.prototype.getIsBonusWagering = function() {
2441
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false));
2442
+ };
2443
+
2444
+
2445
+ /**
2446
+ * @param {boolean} value
2447
+ * @return {!proto.bonus.BonusItemRequest} returns this
2448
+ */
2449
+ proto.bonus.BonusItemRequest.prototype.setIsBonusWagering = function(value) {
2450
+ return jspb.Message.setField(this, 11, value);
2451
+ };
2452
+
2453
+
2454
+ /**
2455
+ * Clears the field making it undefined.
2456
+ * @return {!proto.bonus.BonusItemRequest} returns this
2457
+ */
2458
+ proto.bonus.BonusItemRequest.prototype.clearIsBonusWagering = function() {
2459
+ return jspb.Message.setField(this, 11, undefined);
2460
+ };
2461
+
2462
+
2463
+ /**
2464
+ * Returns whether this field is set.
2465
+ * @return {boolean}
2466
+ */
2467
+ proto.bonus.BonusItemRequest.prototype.hasIsBonusWagering = function() {
2468
+ return jspb.Message.getField(this, 11) != null;
2469
+ };
2470
+
2471
+
2472
+ /**
2473
+ * optional int32 repeat_count = 12;
2474
+ * @return {number}
2475
+ */
2476
+ proto.bonus.BonusItemRequest.prototype.getRepeatCount = function() {
2477
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
2478
+ };
2479
+
2480
+
2481
+ /**
2482
+ * @param {number} value
2483
+ * @return {!proto.bonus.BonusItemRequest} returns this
2484
+ */
2485
+ proto.bonus.BonusItemRequest.prototype.setRepeatCount = function(value) {
2486
+ return jspb.Message.setField(this, 12, value);
2487
+ };
2488
+
2489
+
2490
+ /**
2491
+ * Clears the field making it undefined.
2492
+ * @return {!proto.bonus.BonusItemRequest} returns this
2493
+ */
2494
+ proto.bonus.BonusItemRequest.prototype.clearRepeatCount = function() {
2495
+ return jspb.Message.setField(this, 12, undefined);
2496
+ };
2497
+
2498
+
2499
+ /**
2500
+ * Returns whether this field is set.
2501
+ * @return {boolean}
2502
+ */
2503
+ proto.bonus.BonusItemRequest.prototype.hasRepeatCount = function() {
2504
+ return jspb.Message.getField(this, 12) != null;
2505
+ };
2506
+
2507
+
2508
+ /**
2509
+ * optional int32 wager_games_list_id = 13;
2510
+ * @return {number}
2511
+ */
2512
+ proto.bonus.BonusItemRequest.prototype.getWagerGamesListId = function() {
2513
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
2514
+ };
2515
+
2516
+
2517
+ /**
2518
+ * @param {number} value
2519
+ * @return {!proto.bonus.BonusItemRequest} returns this
2520
+ */
2521
+ proto.bonus.BonusItemRequest.prototype.setWagerGamesListId = function(value) {
2522
+ return jspb.Message.setField(this, 13, value);
2523
+ };
2524
+
2525
+
2526
+ /**
2527
+ * Clears the field making it undefined.
2528
+ * @return {!proto.bonus.BonusItemRequest} returns this
2529
+ */
2530
+ proto.bonus.BonusItemRequest.prototype.clearWagerGamesListId = function() {
2531
+ return jspb.Message.setField(this, 13, undefined);
2532
+ };
2533
+
2534
+
2535
+ /**
2536
+ * Returns whether this field is set.
2537
+ * @return {boolean}
2538
+ */
2539
+ proto.bonus.BonusItemRequest.prototype.hasWagerGamesListId = function() {
2540
+ return jspb.Message.getField(this, 13) != null;
2541
+ };
2542
+
2543
+
2544
+ /**
2545
+ * optional string started_at = 14;
2546
+ * @return {string}
2547
+ */
2548
+ proto.bonus.BonusItemRequest.prototype.getStartedAt = function() {
2549
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
2550
+ };
2551
+
2552
+
2553
+ /**
2554
+ * @param {string} value
2555
+ * @return {!proto.bonus.BonusItemRequest} returns this
2556
+ */
2557
+ proto.bonus.BonusItemRequest.prototype.setStartedAt = function(value) {
2558
+ return jspb.Message.setField(this, 14, value);
2559
+ };
2560
+
2561
+
2562
+ /**
2563
+ * Clears the field making it undefined.
2564
+ * @return {!proto.bonus.BonusItemRequest} returns this
2565
+ */
2566
+ proto.bonus.BonusItemRequest.prototype.clearStartedAt = function() {
2567
+ return jspb.Message.setField(this, 14, undefined);
2568
+ };
2569
+
2570
+
2571
+ /**
2572
+ * Returns whether this field is set.
2573
+ * @return {boolean}
2574
+ */
2575
+ proto.bonus.BonusItemRequest.prototype.hasStartedAt = function() {
2576
+ return jspb.Message.getField(this, 14) != null;
2577
+ };
2578
+
2579
+
2580
+ /**
2581
+ * optional string finished_at = 15;
2582
+ * @return {string}
2583
+ */
2584
+ proto.bonus.BonusItemRequest.prototype.getFinishedAt = function() {
2585
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
2586
+ };
2587
+
2588
+
2589
+ /**
2590
+ * @param {string} value
2591
+ * @return {!proto.bonus.BonusItemRequest} returns this
2592
+ */
2593
+ proto.bonus.BonusItemRequest.prototype.setFinishedAt = function(value) {
2594
+ return jspb.Message.setField(this, 15, value);
2595
+ };
2596
+
2597
+
2598
+ /**
2599
+ * Clears the field making it undefined.
2600
+ * @return {!proto.bonus.BonusItemRequest} returns this
2601
+ */
2602
+ proto.bonus.BonusItemRequest.prototype.clearFinishedAt = function() {
2603
+ return jspb.Message.setField(this, 15, undefined);
2604
+ };
2605
+
2606
+
2607
+ /**
2608
+ * Returns whether this field is set.
2609
+ * @return {boolean}
2610
+ */
2611
+ proto.bonus.BonusItemRequest.prototype.hasFinishedAt = function() {
2612
+ return jspb.Message.getField(this, 15) != null;
2613
+ };
2614
+
2615
+
2616
+ /**
2617
+ * optional string show_previous_at = 16;
2618
+ * @return {string}
2619
+ */
2620
+ proto.bonus.BonusItemRequest.prototype.getShowPreviousAt = function() {
2621
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
2622
+ };
2623
+
2624
+
2625
+ /**
2626
+ * @param {string} value
2627
+ * @return {!proto.bonus.BonusItemRequest} returns this
2628
+ */
2629
+ proto.bonus.BonusItemRequest.prototype.setShowPreviousAt = function(value) {
2630
+ return jspb.Message.setField(this, 16, value);
2631
+ };
2632
+
2633
+
2634
+ /**
2635
+ * Clears the field making it undefined.
2636
+ * @return {!proto.bonus.BonusItemRequest} returns this
2637
+ */
2638
+ proto.bonus.BonusItemRequest.prototype.clearShowPreviousAt = function() {
2639
+ return jspb.Message.setField(this, 16, undefined);
2640
+ };
2641
+
2642
+
2643
+ /**
2644
+ * Returns whether this field is set.
2645
+ * @return {boolean}
2646
+ */
2647
+ proto.bonus.BonusItemRequest.prototype.hasShowPreviousAt = function() {
2648
+ return jspb.Message.getField(this, 16) != null;
2649
+ };
2650
+
2651
+
2652
+ /**
2653
+ * optional int32 claim_period_in_hours = 17;
2654
+ * @return {number}
2655
+ */
2656
+ proto.bonus.BonusItemRequest.prototype.getClaimPeriodInHours = function() {
2657
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0));
2658
+ };
2659
+
2660
+
2661
+ /**
2662
+ * @param {number} value
2663
+ * @return {!proto.bonus.BonusItemRequest} returns this
2664
+ */
2665
+ proto.bonus.BonusItemRequest.prototype.setClaimPeriodInHours = function(value) {
2666
+ return jspb.Message.setField(this, 17, value);
2667
+ };
2668
+
2669
+
2670
+ /**
2671
+ * Clears the field making it undefined.
2672
+ * @return {!proto.bonus.BonusItemRequest} returns this
2673
+ */
2674
+ proto.bonus.BonusItemRequest.prototype.clearClaimPeriodInHours = function() {
2675
+ return jspb.Message.setField(this, 17, undefined);
2676
+ };
2677
+
2678
+
2679
+ /**
2680
+ * Returns whether this field is set.
2681
+ * @return {boolean}
2682
+ */
2683
+ proto.bonus.BonusItemRequest.prototype.hasClaimPeriodInHours = function() {
2684
+ return jspb.Message.getField(this, 17) != null;
2685
+ };
2686
+
2687
+
2688
+ /**
2689
+ * optional int32 activation_period_in_hours = 18;
2690
+ * @return {number}
2691
+ */
2692
+ proto.bonus.BonusItemRequest.prototype.getActivationPeriodInHours = function() {
2693
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0));
2694
+ };
2695
+
2696
+
2697
+ /**
2698
+ * @param {number} value
2699
+ * @return {!proto.bonus.BonusItemRequest} returns this
2700
+ */
2701
+ proto.bonus.BonusItemRequest.prototype.setActivationPeriodInHours = function(value) {
2702
+ return jspb.Message.setField(this, 18, value);
2703
+ };
2704
+
2705
+
2706
+ /**
2707
+ * Clears the field making it undefined.
2708
+ * @return {!proto.bonus.BonusItemRequest} returns this
2709
+ */
2710
+ proto.bonus.BonusItemRequest.prototype.clearActivationPeriodInHours = function() {
2711
+ return jspb.Message.setField(this, 18, undefined);
2712
+ };
2713
+
2714
+
2715
+ /**
2716
+ * Returns whether this field is set.
2717
+ * @return {boolean}
2718
+ */
2719
+ proto.bonus.BonusItemRequest.prototype.hasActivationPeriodInHours = function() {
2720
+ return jspb.Message.getField(this, 18) != null;
2721
+ };
2722
+
2723
+
2724
+ /**
2725
+ * optional int32 wagering_period_in_hours = 19;
2726
+ * @return {number}
2727
+ */
2728
+ proto.bonus.BonusItemRequest.prototype.getWageringPeriodInHours = function() {
2729
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0));
2730
+ };
2731
+
2732
+
2733
+ /**
2734
+ * @param {number} value
2735
+ * @return {!proto.bonus.BonusItemRequest} returns this
2736
+ */
2737
+ proto.bonus.BonusItemRequest.prototype.setWageringPeriodInHours = function(value) {
2738
+ return jspb.Message.setField(this, 19, value);
2739
+ };
2740
+
2741
+
2742
+ /**
2743
+ * Clears the field making it undefined.
2744
+ * @return {!proto.bonus.BonusItemRequest} returns this
2745
+ */
2746
+ proto.bonus.BonusItemRequest.prototype.clearWageringPeriodInHours = function() {
2747
+ return jspb.Message.setField(this, 19, undefined);
2748
+ };
2749
+
2750
+
2751
+ /**
2752
+ * Returns whether this field is set.
2753
+ * @return {boolean}
2754
+ */
2755
+ proto.bonus.BonusItemRequest.prototype.hasWageringPeriodInHours = function() {
2756
+ return jspb.Message.getField(this, 19) != null;
2757
+ };
2758
+
2759
+
2760
+ /**
2761
+ * repeated ActivationRule activation_rules = 20;
2762
+ * @return {!Array<!proto.bonus.ActivationRule>}
2763
+ */
2764
+ proto.bonus.BonusItemRequest.prototype.getActivationRulesList = function() {
2765
+ return /** @type{!Array<!proto.bonus.ActivationRule>} */ (
2766
+ jspb.Message.getRepeatedWrapperField(this, proto.bonus.ActivationRule, 20));
2767
+ };
2768
+
2769
+
2770
+ /**
2771
+ * @param {!Array<!proto.bonus.ActivationRule>} value
2772
+ * @return {!proto.bonus.BonusItemRequest} returns this
2773
+ */
2774
+ proto.bonus.BonusItemRequest.prototype.setActivationRulesList = function(value) {
2775
+ return jspb.Message.setRepeatedWrapperField(this, 20, value);
2776
+ };
2777
+
2778
+
2779
+ /**
2780
+ * @param {!proto.bonus.ActivationRule=} opt_value
2781
+ * @param {number=} opt_index
2782
+ * @return {!proto.bonus.ActivationRule}
2783
+ */
2784
+ proto.bonus.BonusItemRequest.prototype.addActivationRules = function(opt_value, opt_index) {
2785
+ return jspb.Message.addToRepeatedWrapperField(this, 20, opt_value, proto.bonus.ActivationRule, opt_index);
2786
+ };
2787
+
2788
+
2789
+ /**
2790
+ * Clears the list making it empty but non-null.
2791
+ * @return {!proto.bonus.BonusItemRequest} returns this
2792
+ */
2793
+ proto.bonus.BonusItemRequest.prototype.clearActivationRulesList = function() {
2794
+ return this.setActivationRulesList([]);
2795
+ };
2796
+
2797
+
2798
+ /**
2799
+ * repeated BonusReward rewards = 21;
2800
+ * @return {!Array<!proto.bonus.BonusReward>}
2801
+ */
2802
+ proto.bonus.BonusItemRequest.prototype.getRewardsList = function() {
2803
+ return /** @type{!Array<!proto.bonus.BonusReward>} */ (
2804
+ jspb.Message.getRepeatedWrapperField(this, proto.bonus.BonusReward, 21));
2805
+ };
2806
+
2807
+
2808
+ /**
2809
+ * @param {!Array<!proto.bonus.BonusReward>} value
2810
+ * @return {!proto.bonus.BonusItemRequest} returns this
2811
+ */
2812
+ proto.bonus.BonusItemRequest.prototype.setRewardsList = function(value) {
2813
+ return jspb.Message.setRepeatedWrapperField(this, 21, value);
2814
+ };
2815
+
2816
+
2817
+ /**
2818
+ * @param {!proto.bonus.BonusReward=} opt_value
2819
+ * @param {number=} opt_index
2820
+ * @return {!proto.bonus.BonusReward}
2821
+ */
2822
+ proto.bonus.BonusItemRequest.prototype.addRewards = function(opt_value, opt_index) {
2823
+ return jspb.Message.addToRepeatedWrapperField(this, 21, opt_value, proto.bonus.BonusReward, opt_index);
2824
+ };
2825
+
2826
+
2827
+ /**
2828
+ * Clears the list making it empty but non-null.
2829
+ * @return {!proto.bonus.BonusItemRequest} returns this
2830
+ */
2831
+ proto.bonus.BonusItemRequest.prototype.clearRewardsList = function() {
2832
+ return this.setRewardsList([]);
2833
+ };
2834
+
2835
+
2836
+
2837
+
2838
+
2839
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2840
+ /**
2841
+ * Creates an object representation of this proto.
2842
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2843
+ * Optional fields that are not set will be set to undefined.
2844
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2845
+ * For the list of reserved names please see:
2846
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2847
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2848
+ * JSPB instance for transitional soy proto support:
2849
+ * http://goto/soy-param-migration
2850
+ * @return {!Object}
2851
+ */
2852
+ proto.bonus.GetBonusRequest.prototype.toObject = function(opt_includeInstance) {
2853
+ return proto.bonus.GetBonusRequest.toObject(opt_includeInstance, this);
2854
+ };
2855
+
2856
+
2857
+ /**
2858
+ * Static version of the {@see toObject} method.
2859
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2860
+ * the JSPB instance for transitional soy proto support:
2861
+ * http://goto/soy-param-migration
2862
+ * @param {!proto.bonus.GetBonusRequest} msg The msg instance to transform.
2863
+ * @return {!Object}
2864
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2865
+ */
2866
+ proto.bonus.GetBonusRequest.toObject = function(includeInstance, msg) {
2867
+ var f, obj = {
2868
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
2869
+ };
2870
+
2871
+ if (includeInstance) {
2872
+ obj.$jspbMessageInstance = msg;
2873
+ }
2874
+ return obj;
2875
+ };
2876
+ }
2877
+
2878
+
2879
+ /**
2880
+ * Deserializes binary data (in protobuf wire format).
2881
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2882
+ * @return {!proto.bonus.GetBonusRequest}
2883
+ */
2884
+ proto.bonus.GetBonusRequest.deserializeBinary = function(bytes) {
2885
+ var reader = new jspb.BinaryReader(bytes);
2886
+ var msg = new proto.bonus.GetBonusRequest;
2887
+ return proto.bonus.GetBonusRequest.deserializeBinaryFromReader(msg, reader);
2888
+ };
2889
+
2890
+
2891
+ /**
2892
+ * Deserializes binary data (in protobuf wire format) from the
2893
+ * given reader into the given message object.
2894
+ * @param {!proto.bonus.GetBonusRequest} msg The message object to deserialize into.
2895
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2896
+ * @return {!proto.bonus.GetBonusRequest}
2897
+ */
2898
+ proto.bonus.GetBonusRequest.deserializeBinaryFromReader = function(msg, reader) {
2899
+ while (reader.nextField()) {
2900
+ if (reader.isEndGroup()) {
2901
+ break;
2902
+ }
2903
+ var field = reader.getFieldNumber();
2904
+ switch (field) {
2905
+ case 1:
2906
+ var value = /** @type {number} */ (reader.readInt32());
2907
+ msg.setId(value);
2908
+ break;
2909
+ default:
2910
+ reader.skipField();
2911
+ break;
2912
+ }
2913
+ }
2914
+ return msg;
2915
+ };
2916
+
2917
+
2918
+ /**
2919
+ * Serializes the message to binary data (in protobuf wire format).
2920
+ * @return {!Uint8Array}
2921
+ */
2922
+ proto.bonus.GetBonusRequest.prototype.serializeBinary = function() {
2923
+ var writer = new jspb.BinaryWriter();
2924
+ proto.bonus.GetBonusRequest.serializeBinaryToWriter(this, writer);
2925
+ return writer.getResultBuffer();
2926
+ };
2927
+
2928
+
2929
+ /**
2930
+ * Serializes the given message to binary data (in protobuf wire
2931
+ * format), writing to the given BinaryWriter.
2932
+ * @param {!proto.bonus.GetBonusRequest} message
2933
+ * @param {!jspb.BinaryWriter} writer
2934
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2935
+ */
2936
+ proto.bonus.GetBonusRequest.serializeBinaryToWriter = function(message, writer) {
2937
+ var f = undefined;
2938
+ f = message.getId();
2939
+ if (f !== 0) {
2940
+ writer.writeInt32(
2941
+ 1,
2942
+ f
2943
+ );
2944
+ }
2945
+ };
2946
+
2947
+
2948
+ /**
2949
+ * optional int32 id = 1;
2950
+ * @return {number}
2951
+ */
2952
+ proto.bonus.GetBonusRequest.prototype.getId = function() {
2953
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2954
+ };
2955
+
2956
+
2957
+ /**
2958
+ * @param {number} value
2959
+ * @return {!proto.bonus.GetBonusRequest} returns this
2960
+ */
2961
+ proto.bonus.GetBonusRequest.prototype.setId = function(value) {
2962
+ return jspb.Message.setProto3IntField(this, 1, value);
2963
+ };
2964
+
2965
+
2966
+
2967
+
2968
+
2969
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2970
+ /**
2971
+ * Creates an object representation of this proto.
2972
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2973
+ * Optional fields that are not set will be set to undefined.
2974
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2975
+ * For the list of reserved names please see:
2976
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2977
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2978
+ * JSPB instance for transitional soy proto support:
2979
+ * http://goto/soy-param-migration
2980
+ * @return {!Object}
2981
+ */
2982
+ proto.bonus.BonusResponse.prototype.toObject = function(opt_includeInstance) {
2983
+ return proto.bonus.BonusResponse.toObject(opt_includeInstance, this);
2984
+ };
2985
+
2986
+
2987
+ /**
2988
+ * Static version of the {@see toObject} method.
2989
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2990
+ * the JSPB instance for transitional soy proto support:
2991
+ * http://goto/soy-param-migration
2992
+ * @param {!proto.bonus.BonusResponse} msg The msg instance to transform.
2993
+ * @return {!Object}
2994
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2995
+ */
2996
+ proto.bonus.BonusResponse.toObject = function(includeInstance, msg) {
2997
+ var f, obj = {
2998
+ data: (f = msg.getData()) && proto.bonus.BonusItem.toObject(includeInstance, f)
2999
+ };
3000
+
3001
+ if (includeInstance) {
3002
+ obj.$jspbMessageInstance = msg;
3003
+ }
3004
+ return obj;
3005
+ };
3006
+ }
3007
+
3008
+
3009
+ /**
3010
+ * Deserializes binary data (in protobuf wire format).
3011
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3012
+ * @return {!proto.bonus.BonusResponse}
3013
+ */
3014
+ proto.bonus.BonusResponse.deserializeBinary = function(bytes) {
3015
+ var reader = new jspb.BinaryReader(bytes);
3016
+ var msg = new proto.bonus.BonusResponse;
3017
+ return proto.bonus.BonusResponse.deserializeBinaryFromReader(msg, reader);
3018
+ };
3019
+
3020
+
3021
+ /**
3022
+ * Deserializes binary data (in protobuf wire format) from the
3023
+ * given reader into the given message object.
3024
+ * @param {!proto.bonus.BonusResponse} msg The message object to deserialize into.
3025
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3026
+ * @return {!proto.bonus.BonusResponse}
3027
+ */
3028
+ proto.bonus.BonusResponse.deserializeBinaryFromReader = function(msg, reader) {
3029
+ while (reader.nextField()) {
3030
+ if (reader.isEndGroup()) {
3031
+ break;
3032
+ }
3033
+ var field = reader.getFieldNumber();
3034
+ switch (field) {
3035
+ case 1:
3036
+ var value = new proto.bonus.BonusItem;
3037
+ reader.readMessage(value,proto.bonus.BonusItem.deserializeBinaryFromReader);
3038
+ msg.setData(value);
3039
+ break;
3040
+ default:
3041
+ reader.skipField();
3042
+ break;
3043
+ }
3044
+ }
3045
+ return msg;
3046
+ };
3047
+
3048
+
3049
+ /**
3050
+ * Serializes the message to binary data (in protobuf wire format).
3051
+ * @return {!Uint8Array}
3052
+ */
3053
+ proto.bonus.BonusResponse.prototype.serializeBinary = function() {
3054
+ var writer = new jspb.BinaryWriter();
3055
+ proto.bonus.BonusResponse.serializeBinaryToWriter(this, writer);
3056
+ return writer.getResultBuffer();
3057
+ };
3058
+
3059
+
3060
+ /**
3061
+ * Serializes the given message to binary data (in protobuf wire
3062
+ * format), writing to the given BinaryWriter.
3063
+ * @param {!proto.bonus.BonusResponse} message
3064
+ * @param {!jspb.BinaryWriter} writer
3065
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3066
+ */
3067
+ proto.bonus.BonusResponse.serializeBinaryToWriter = function(message, writer) {
3068
+ var f = undefined;
3069
+ f = message.getData();
3070
+ if (f != null) {
3071
+ writer.writeMessage(
3072
+ 1,
3073
+ f,
3074
+ proto.bonus.BonusItem.serializeBinaryToWriter
3075
+ );
3076
+ }
3077
+ };
3078
+
3079
+
3080
+ /**
3081
+ * optional BonusItem data = 1;
3082
+ * @return {?proto.bonus.BonusItem}
3083
+ */
3084
+ proto.bonus.BonusResponse.prototype.getData = function() {
3085
+ return /** @type{?proto.bonus.BonusItem} */ (
3086
+ jspb.Message.getWrapperField(this, proto.bonus.BonusItem, 1));
3087
+ };
3088
+
3089
+
3090
+ /**
3091
+ * @param {?proto.bonus.BonusItem|undefined} value
3092
+ * @return {!proto.bonus.BonusResponse} returns this
3093
+ */
3094
+ proto.bonus.BonusResponse.prototype.setData = function(value) {
3095
+ return jspb.Message.setWrapperField(this, 1, value);
3096
+ };
3097
+
3098
+
3099
+ /**
3100
+ * Clears the message field making it undefined.
3101
+ * @return {!proto.bonus.BonusResponse} returns this
3102
+ */
3103
+ proto.bonus.BonusResponse.prototype.clearData = function() {
3104
+ return this.setData(undefined);
3105
+ };
3106
+
3107
+
3108
+ /**
3109
+ * Returns whether this field is set.
3110
+ * @return {boolean}
3111
+ */
3112
+ proto.bonus.BonusResponse.prototype.hasData = function() {
3113
+ return jspb.Message.getField(this, 1) != null;
3114
+ };
3115
+
3116
+
3117
+
3118
+ /**
3119
+ * List of repeated fields within this message type.
3120
+ * @private {!Array<number>}
3121
+ * @const
3122
+ */
3123
+ proto.bonus.BonusItem.repeatedFields_ = [20,21];
3124
+
3125
+
3126
+
3127
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3128
+ /**
3129
+ * Creates an object representation of this proto.
3130
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3131
+ * Optional fields that are not set will be set to undefined.
3132
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3133
+ * For the list of reserved names please see:
3134
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3135
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3136
+ * JSPB instance for transitional soy proto support:
3137
+ * http://goto/soy-param-migration
3138
+ * @return {!Object}
3139
+ */
3140
+ proto.bonus.BonusItem.prototype.toObject = function(opt_includeInstance) {
3141
+ return proto.bonus.BonusItem.toObject(opt_includeInstance, this);
3142
+ };
3143
+
3144
+
3145
+ /**
3146
+ * Static version of the {@see toObject} method.
3147
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3148
+ * the JSPB instance for transitional soy proto support:
3149
+ * http://goto/soy-param-migration
3150
+ * @param {!proto.bonus.BonusItem} msg The msg instance to transform.
3151
+ * @return {!Object}
3152
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3153
+ */
3154
+ proto.bonus.BonusItem.toObject = function(includeInstance, msg) {
3155
+ var f, obj = {
3156
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
3157
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
3158
+ description: jspb.Message.getFieldWithDefault(msg, 3, ""),
3159
+ fileName: jspb.Message.getFieldWithDefault(msg, 4, ""),
3160
+ fileType: jspb.Message.getFieldWithDefault(msg, 5, ""),
3161
+ status: jspb.Message.getFieldWithDefault(msg, 6, ""),
3162
+ type: jspb.Message.getFieldWithDefault(msg, 7, ""),
3163
+ wagerX: jspb.Message.getFieldWithDefault(msg, 8, 0),
3164
+ payoutX: jspb.Message.getFieldWithDefault(msg, 9, 0),
3165
+ isRealWagering: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
3166
+ isBonusWagering: jspb.Message.getBooleanFieldWithDefault(msg, 11, false),
3167
+ repeatCount: jspb.Message.getFieldWithDefault(msg, 12, 0),
3168
+ wagerGamesListId: jspb.Message.getFieldWithDefault(msg, 13, 0),
3169
+ startedAt: jspb.Message.getFieldWithDefault(msg, 14, ""),
3170
+ finishedAt: jspb.Message.getFieldWithDefault(msg, 15, ""),
3171
+ showPreviousAt: jspb.Message.getFieldWithDefault(msg, 16, ""),
3172
+ claimPeriodInHours: jspb.Message.getFieldWithDefault(msg, 17, 0),
3173
+ activationPeriodInHours: jspb.Message.getFieldWithDefault(msg, 18, 0),
3174
+ wageringPeriodInHours: jspb.Message.getFieldWithDefault(msg, 19, 0),
3175
+ activationRulesList: jspb.Message.toObjectList(msg.getActivationRulesList(),
3176
+ proto.bonus.ActivationRule.toObject, includeInstance),
3177
+ rewardsList: jspb.Message.toObjectList(msg.getRewardsList(),
3178
+ proto.bonus.BonusReward.toObject, includeInstance)
3179
+ };
3180
+
3181
+ if (includeInstance) {
3182
+ obj.$jspbMessageInstance = msg;
3183
+ }
3184
+ return obj;
3185
+ };
3186
+ }
3187
+
3188
+
3189
+ /**
3190
+ * Deserializes binary data (in protobuf wire format).
3191
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3192
+ * @return {!proto.bonus.BonusItem}
3193
+ */
3194
+ proto.bonus.BonusItem.deserializeBinary = function(bytes) {
3195
+ var reader = new jspb.BinaryReader(bytes);
3196
+ var msg = new proto.bonus.BonusItem;
3197
+ return proto.bonus.BonusItem.deserializeBinaryFromReader(msg, reader);
3198
+ };
3199
+
3200
+
3201
+ /**
3202
+ * Deserializes binary data (in protobuf wire format) from the
3203
+ * given reader into the given message object.
3204
+ * @param {!proto.bonus.BonusItem} msg The message object to deserialize into.
3205
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3206
+ * @return {!proto.bonus.BonusItem}
3207
+ */
3208
+ proto.bonus.BonusItem.deserializeBinaryFromReader = function(msg, reader) {
3209
+ while (reader.nextField()) {
3210
+ if (reader.isEndGroup()) {
3211
+ break;
3212
+ }
3213
+ var field = reader.getFieldNumber();
3214
+ switch (field) {
3215
+ case 1:
3216
+ var value = /** @type {number} */ (reader.readInt32());
3217
+ msg.setId(value);
3218
+ break;
3219
+ case 2:
3220
+ var value = /** @type {string} */ (reader.readString());
3221
+ msg.setTitle(value);
3222
+ break;
3223
+ case 3:
3224
+ var value = /** @type {string} */ (reader.readString());
3225
+ msg.setDescription(value);
3226
+ break;
3227
+ case 4:
3228
+ var value = /** @type {string} */ (reader.readString());
3229
+ msg.setFileName(value);
3230
+ break;
3231
+ case 5:
3232
+ var value = /** @type {string} */ (reader.readString());
3233
+ msg.setFileType(value);
3234
+ break;
3235
+ case 6:
3236
+ var value = /** @type {string} */ (reader.readString());
3237
+ msg.setStatus(value);
3238
+ break;
3239
+ case 7:
3240
+ var value = /** @type {string} */ (reader.readString());
3241
+ msg.setType(value);
3242
+ break;
3243
+ case 8:
3244
+ var value = /** @type {number} */ (reader.readInt32());
3245
+ msg.setWagerX(value);
3246
+ break;
3247
+ case 9:
3248
+ var value = /** @type {number} */ (reader.readInt32());
3249
+ msg.setPayoutX(value);
3250
+ break;
3251
+ case 10:
3252
+ var value = /** @type {boolean} */ (reader.readBool());
3253
+ msg.setIsRealWagering(value);
3254
+ break;
3255
+ case 11:
3256
+ var value = /** @type {boolean} */ (reader.readBool());
3257
+ msg.setIsBonusWagering(value);
3258
+ break;
3259
+ case 12:
3260
+ var value = /** @type {number} */ (reader.readInt32());
3261
+ msg.setRepeatCount(value);
3262
+ break;
3263
+ case 13:
3264
+ var value = /** @type {number} */ (reader.readInt32());
3265
+ msg.setWagerGamesListId(value);
3266
+ break;
3267
+ case 14:
3268
+ var value = /** @type {string} */ (reader.readString());
3269
+ msg.setStartedAt(value);
3270
+ break;
3271
+ case 15:
3272
+ var value = /** @type {string} */ (reader.readString());
3273
+ msg.setFinishedAt(value);
3274
+ break;
3275
+ case 16:
3276
+ var value = /** @type {string} */ (reader.readString());
3277
+ msg.setShowPreviousAt(value);
3278
+ break;
3279
+ case 17:
3280
+ var value = /** @type {number} */ (reader.readInt32());
3281
+ msg.setClaimPeriodInHours(value);
3282
+ break;
3283
+ case 18:
3284
+ var value = /** @type {number} */ (reader.readInt32());
3285
+ msg.setActivationPeriodInHours(value);
3286
+ break;
3287
+ case 19:
3288
+ var value = /** @type {number} */ (reader.readInt32());
3289
+ msg.setWageringPeriodInHours(value);
3290
+ break;
3291
+ case 20:
3292
+ var value = new proto.bonus.ActivationRule;
3293
+ reader.readMessage(value,proto.bonus.ActivationRule.deserializeBinaryFromReader);
3294
+ msg.addActivationRules(value);
3295
+ break;
3296
+ case 21:
3297
+ var value = new proto.bonus.BonusReward;
3298
+ reader.readMessage(value,proto.bonus.BonusReward.deserializeBinaryFromReader);
3299
+ msg.addRewards(value);
3300
+ break;
3301
+ default:
3302
+ reader.skipField();
3303
+ break;
3304
+ }
3305
+ }
3306
+ return msg;
3307
+ };
3308
+
3309
+
3310
+ /**
3311
+ * Serializes the message to binary data (in protobuf wire format).
3312
+ * @return {!Uint8Array}
3313
+ */
3314
+ proto.bonus.BonusItem.prototype.serializeBinary = function() {
3315
+ var writer = new jspb.BinaryWriter();
3316
+ proto.bonus.BonusItem.serializeBinaryToWriter(this, writer);
3317
+ return writer.getResultBuffer();
3318
+ };
3319
+
3320
+
3321
+ /**
3322
+ * Serializes the given message to binary data (in protobuf wire
3323
+ * format), writing to the given BinaryWriter.
3324
+ * @param {!proto.bonus.BonusItem} message
3325
+ * @param {!jspb.BinaryWriter} writer
3326
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3327
+ */
3328
+ proto.bonus.BonusItem.serializeBinaryToWriter = function(message, writer) {
3329
+ var f = undefined;
3330
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
3331
+ if (f != null) {
3332
+ writer.writeInt32(
3333
+ 1,
3334
+ f
3335
+ );
3336
+ }
3337
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
3338
+ if (f != null) {
3339
+ writer.writeString(
3340
+ 2,
3341
+ f
3342
+ );
3343
+ }
3344
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
3345
+ if (f != null) {
3346
+ writer.writeString(
3347
+ 3,
3348
+ f
3349
+ );
3350
+ }
3351
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
3352
+ if (f != null) {
3353
+ writer.writeString(
3354
+ 4,
3355
+ f
3356
+ );
3357
+ }
3358
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
3359
+ if (f != null) {
3360
+ writer.writeString(
3361
+ 5,
3362
+ f
3363
+ );
3364
+ }
3365
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
3366
+ if (f != null) {
3367
+ writer.writeString(
3368
+ 6,
3369
+ f
3370
+ );
3371
+ }
3372
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
3373
+ if (f != null) {
3374
+ writer.writeString(
3375
+ 7,
3376
+ f
3377
+ );
3378
+ }
3379
+ f = /** @type {number} */ (jspb.Message.getField(message, 8));
3380
+ if (f != null) {
3381
+ writer.writeInt32(
3382
+ 8,
3383
+ f
3384
+ );
3385
+ }
3386
+ f = /** @type {number} */ (jspb.Message.getField(message, 9));
3387
+ if (f != null) {
3388
+ writer.writeInt32(
3389
+ 9,
3390
+ f
3391
+ );
3392
+ }
3393
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 10));
3394
+ if (f != null) {
3395
+ writer.writeBool(
3396
+ 10,
3397
+ f
3398
+ );
3399
+ }
3400
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 11));
3401
+ if (f != null) {
3402
+ writer.writeBool(
3403
+ 11,
3404
+ f
3405
+ );
3406
+ }
3407
+ f = /** @type {number} */ (jspb.Message.getField(message, 12));
3408
+ if (f != null) {
3409
+ writer.writeInt32(
3410
+ 12,
3411
+ f
3412
+ );
3413
+ }
3414
+ f = /** @type {number} */ (jspb.Message.getField(message, 13));
3415
+ if (f != null) {
3416
+ writer.writeInt32(
3417
+ 13,
3418
+ f
3419
+ );
3420
+ }
3421
+ f = /** @type {string} */ (jspb.Message.getField(message, 14));
3422
+ if (f != null) {
3423
+ writer.writeString(
3424
+ 14,
3425
+ f
3426
+ );
3427
+ }
3428
+ f = /** @type {string} */ (jspb.Message.getField(message, 15));
3429
+ if (f != null) {
3430
+ writer.writeString(
3431
+ 15,
3432
+ f
3433
+ );
3434
+ }
3435
+ f = /** @type {string} */ (jspb.Message.getField(message, 16));
3436
+ if (f != null) {
3437
+ writer.writeString(
3438
+ 16,
3439
+ f
3440
+ );
3441
+ }
3442
+ f = /** @type {number} */ (jspb.Message.getField(message, 17));
3443
+ if (f != null) {
3444
+ writer.writeInt32(
3445
+ 17,
3446
+ f
3447
+ );
3448
+ }
3449
+ f = /** @type {number} */ (jspb.Message.getField(message, 18));
3450
+ if (f != null) {
3451
+ writer.writeInt32(
3452
+ 18,
3453
+ f
3454
+ );
3455
+ }
3456
+ f = /** @type {number} */ (jspb.Message.getField(message, 19));
3457
+ if (f != null) {
3458
+ writer.writeInt32(
3459
+ 19,
3460
+ f
3461
+ );
3462
+ }
3463
+ f = message.getActivationRulesList();
3464
+ if (f.length > 0) {
3465
+ writer.writeRepeatedMessage(
3466
+ 20,
3467
+ f,
3468
+ proto.bonus.ActivationRule.serializeBinaryToWriter
3469
+ );
3470
+ }
3471
+ f = message.getRewardsList();
3472
+ if (f.length > 0) {
3473
+ writer.writeRepeatedMessage(
3474
+ 21,
3475
+ f,
3476
+ proto.bonus.BonusReward.serializeBinaryToWriter
3477
+ );
3478
+ }
3479
+ };
3480
+
3481
+
3482
+ /**
3483
+ * optional int32 id = 1;
3484
+ * @return {number}
3485
+ */
3486
+ proto.bonus.BonusItem.prototype.getId = function() {
3487
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3488
+ };
3489
+
3490
+
3491
+ /**
3492
+ * @param {number} value
3493
+ * @return {!proto.bonus.BonusItem} returns this
3494
+ */
3495
+ proto.bonus.BonusItem.prototype.setId = function(value) {
3496
+ return jspb.Message.setField(this, 1, value);
3497
+ };
3498
+
3499
+
3500
+ /**
3501
+ * Clears the field making it undefined.
3502
+ * @return {!proto.bonus.BonusItem} returns this
3503
+ */
3504
+ proto.bonus.BonusItem.prototype.clearId = function() {
3505
+ return jspb.Message.setField(this, 1, undefined);
3506
+ };
3507
+
3508
+
3509
+ /**
3510
+ * Returns whether this field is set.
3511
+ * @return {boolean}
3512
+ */
3513
+ proto.bonus.BonusItem.prototype.hasId = function() {
3514
+ return jspb.Message.getField(this, 1) != null;
3515
+ };
3516
+
3517
+
3518
+ /**
3519
+ * optional string title = 2;
3520
+ * @return {string}
3521
+ */
3522
+ proto.bonus.BonusItem.prototype.getTitle = function() {
3523
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3524
+ };
3525
+
3526
+
3527
+ /**
3528
+ * @param {string} value
3529
+ * @return {!proto.bonus.BonusItem} returns this
3530
+ */
3531
+ proto.bonus.BonusItem.prototype.setTitle = function(value) {
3532
+ return jspb.Message.setField(this, 2, value);
3533
+ };
3534
+
3535
+
3536
+ /**
3537
+ * Clears the field making it undefined.
3538
+ * @return {!proto.bonus.BonusItem} returns this
3539
+ */
3540
+ proto.bonus.BonusItem.prototype.clearTitle = function() {
3541
+ return jspb.Message.setField(this, 2, undefined);
3542
+ };
3543
+
3544
+
3545
+ /**
3546
+ * Returns whether this field is set.
3547
+ * @return {boolean}
3548
+ */
3549
+ proto.bonus.BonusItem.prototype.hasTitle = function() {
3550
+ return jspb.Message.getField(this, 2) != null;
3551
+ };
3552
+
3553
+
3554
+ /**
3555
+ * optional string description = 3;
3556
+ * @return {string}
3557
+ */
3558
+ proto.bonus.BonusItem.prototype.getDescription = function() {
3559
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3560
+ };
3561
+
3562
+
3563
+ /**
3564
+ * @param {string} value
3565
+ * @return {!proto.bonus.BonusItem} returns this
3566
+ */
3567
+ proto.bonus.BonusItem.prototype.setDescription = function(value) {
3568
+ return jspb.Message.setField(this, 3, value);
3569
+ };
3570
+
3571
+
3572
+ /**
3573
+ * Clears the field making it undefined.
3574
+ * @return {!proto.bonus.BonusItem} returns this
3575
+ */
3576
+ proto.bonus.BonusItem.prototype.clearDescription = function() {
3577
+ return jspb.Message.setField(this, 3, undefined);
3578
+ };
3579
+
3580
+
3581
+ /**
3582
+ * Returns whether this field is set.
3583
+ * @return {boolean}
3584
+ */
3585
+ proto.bonus.BonusItem.prototype.hasDescription = function() {
3586
+ return jspb.Message.getField(this, 3) != null;
3587
+ };
3588
+
3589
+
3590
+ /**
3591
+ * optional string file_name = 4;
3592
+ * @return {string}
3593
+ */
3594
+ proto.bonus.BonusItem.prototype.getFileName = function() {
3595
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3596
+ };
3597
+
3598
+
3599
+ /**
3600
+ * @param {string} value
3601
+ * @return {!proto.bonus.BonusItem} returns this
3602
+ */
3603
+ proto.bonus.BonusItem.prototype.setFileName = function(value) {
3604
+ return jspb.Message.setField(this, 4, value);
3605
+ };
3606
+
3607
+
3608
+ /**
3609
+ * Clears the field making it undefined.
3610
+ * @return {!proto.bonus.BonusItem} returns this
3611
+ */
3612
+ proto.bonus.BonusItem.prototype.clearFileName = function() {
3613
+ return jspb.Message.setField(this, 4, undefined);
3614
+ };
3615
+
3616
+
3617
+ /**
3618
+ * Returns whether this field is set.
3619
+ * @return {boolean}
3620
+ */
3621
+ proto.bonus.BonusItem.prototype.hasFileName = function() {
3622
+ return jspb.Message.getField(this, 4) != null;
3623
+ };
3624
+
3625
+
3626
+ /**
3627
+ * optional string file_type = 5;
3628
+ * @return {string}
3629
+ */
3630
+ proto.bonus.BonusItem.prototype.getFileType = function() {
3631
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3632
+ };
3633
+
3634
+
3635
+ /**
3636
+ * @param {string} value
3637
+ * @return {!proto.bonus.BonusItem} returns this
3638
+ */
3639
+ proto.bonus.BonusItem.prototype.setFileType = function(value) {
3640
+ return jspb.Message.setField(this, 5, value);
3641
+ };
3642
+
3643
+
3644
+ /**
3645
+ * Clears the field making it undefined.
3646
+ * @return {!proto.bonus.BonusItem} returns this
3647
+ */
3648
+ proto.bonus.BonusItem.prototype.clearFileType = function() {
3649
+ return jspb.Message.setField(this, 5, undefined);
3650
+ };
3651
+
3652
+
3653
+ /**
3654
+ * Returns whether this field is set.
3655
+ * @return {boolean}
3656
+ */
3657
+ proto.bonus.BonusItem.prototype.hasFileType = function() {
3658
+ return jspb.Message.getField(this, 5) != null;
3659
+ };
3660
+
3661
+
3662
+ /**
3663
+ * optional string status = 6;
3664
+ * @return {string}
3665
+ */
3666
+ proto.bonus.BonusItem.prototype.getStatus = function() {
3667
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
3668
+ };
3669
+
3670
+
3671
+ /**
3672
+ * @param {string} value
3673
+ * @return {!proto.bonus.BonusItem} returns this
3674
+ */
3675
+ proto.bonus.BonusItem.prototype.setStatus = function(value) {
3676
+ return jspb.Message.setField(this, 6, value);
3677
+ };
3678
+
3679
+
3680
+ /**
3681
+ * Clears the field making it undefined.
3682
+ * @return {!proto.bonus.BonusItem} returns this
3683
+ */
3684
+ proto.bonus.BonusItem.prototype.clearStatus = function() {
3685
+ return jspb.Message.setField(this, 6, undefined);
3686
+ };
3687
+
3688
+
3689
+ /**
3690
+ * Returns whether this field is set.
3691
+ * @return {boolean}
3692
+ */
3693
+ proto.bonus.BonusItem.prototype.hasStatus = function() {
3694
+ return jspb.Message.getField(this, 6) != null;
3695
+ };
3696
+
3697
+
3698
+ /**
3699
+ * optional string type = 7;
3700
+ * @return {string}
3701
+ */
3702
+ proto.bonus.BonusItem.prototype.getType = function() {
3703
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
3704
+ };
3705
+
3706
+
3707
+ /**
3708
+ * @param {string} value
3709
+ * @return {!proto.bonus.BonusItem} returns this
3710
+ */
3711
+ proto.bonus.BonusItem.prototype.setType = function(value) {
3712
+ return jspb.Message.setField(this, 7, value);
3713
+ };
3714
+
3715
+
3716
+ /**
3717
+ * Clears the field making it undefined.
3718
+ * @return {!proto.bonus.BonusItem} returns this
3719
+ */
3720
+ proto.bonus.BonusItem.prototype.clearType = function() {
3721
+ return jspb.Message.setField(this, 7, undefined);
3722
+ };
3723
+
3724
+
3725
+ /**
3726
+ * Returns whether this field is set.
3727
+ * @return {boolean}
3728
+ */
3729
+ proto.bonus.BonusItem.prototype.hasType = function() {
3730
+ return jspb.Message.getField(this, 7) != null;
3731
+ };
3732
+
3733
+
3734
+ /**
3735
+ * optional int32 wager_x = 8;
3736
+ * @return {number}
3737
+ */
3738
+ proto.bonus.BonusItem.prototype.getWagerX = function() {
3739
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
3740
+ };
3741
+
3742
+
3743
+ /**
3744
+ * @param {number} value
3745
+ * @return {!proto.bonus.BonusItem} returns this
3746
+ */
3747
+ proto.bonus.BonusItem.prototype.setWagerX = function(value) {
3748
+ return jspb.Message.setField(this, 8, value);
3749
+ };
3750
+
3751
+
3752
+ /**
3753
+ * Clears the field making it undefined.
3754
+ * @return {!proto.bonus.BonusItem} returns this
3755
+ */
3756
+ proto.bonus.BonusItem.prototype.clearWagerX = function() {
3757
+ return jspb.Message.setField(this, 8, undefined);
3758
+ };
3759
+
3760
+
3761
+ /**
3762
+ * Returns whether this field is set.
3763
+ * @return {boolean}
3764
+ */
3765
+ proto.bonus.BonusItem.prototype.hasWagerX = function() {
3766
+ return jspb.Message.getField(this, 8) != null;
3767
+ };
3768
+
3769
+
3770
+ /**
3771
+ * optional int32 payout_x = 9;
3772
+ * @return {number}
3773
+ */
3774
+ proto.bonus.BonusItem.prototype.getPayoutX = function() {
3775
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
3776
+ };
3777
+
3778
+
3779
+ /**
3780
+ * @param {number} value
3781
+ * @return {!proto.bonus.BonusItem} returns this
3782
+ */
3783
+ proto.bonus.BonusItem.prototype.setPayoutX = function(value) {
3784
+ return jspb.Message.setField(this, 9, value);
3785
+ };
3786
+
3787
+
3788
+ /**
3789
+ * Clears the field making it undefined.
3790
+ * @return {!proto.bonus.BonusItem} returns this
3791
+ */
3792
+ proto.bonus.BonusItem.prototype.clearPayoutX = function() {
3793
+ return jspb.Message.setField(this, 9, undefined);
3794
+ };
3795
+
3796
+
3797
+ /**
3798
+ * Returns whether this field is set.
3799
+ * @return {boolean}
3800
+ */
3801
+ proto.bonus.BonusItem.prototype.hasPayoutX = function() {
3802
+ return jspb.Message.getField(this, 9) != null;
3803
+ };
3804
+
3805
+
3806
+ /**
3807
+ * optional bool is_real_wagering = 10;
3808
+ * @return {boolean}
3809
+ */
3810
+ proto.bonus.BonusItem.prototype.getIsRealWagering = function() {
3811
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false));
3812
+ };
3813
+
3814
+
3815
+ /**
3816
+ * @param {boolean} value
3817
+ * @return {!proto.bonus.BonusItem} returns this
3818
+ */
3819
+ proto.bonus.BonusItem.prototype.setIsRealWagering = function(value) {
3820
+ return jspb.Message.setField(this, 10, value);
3821
+ };
3822
+
3823
+
3824
+ /**
3825
+ * Clears the field making it undefined.
3826
+ * @return {!proto.bonus.BonusItem} returns this
3827
+ */
3828
+ proto.bonus.BonusItem.prototype.clearIsRealWagering = function() {
3829
+ return jspb.Message.setField(this, 10, undefined);
3830
+ };
3831
+
3832
+
3833
+ /**
3834
+ * Returns whether this field is set.
3835
+ * @return {boolean}
3836
+ */
3837
+ proto.bonus.BonusItem.prototype.hasIsRealWagering = function() {
3838
+ return jspb.Message.getField(this, 10) != null;
3839
+ };
3840
+
3841
+
3842
+ /**
3843
+ * optional bool is_bonus_wagering = 11;
3844
+ * @return {boolean}
3845
+ */
3846
+ proto.bonus.BonusItem.prototype.getIsBonusWagering = function() {
3847
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false));
3848
+ };
3849
+
3850
+
3851
+ /**
3852
+ * @param {boolean} value
3853
+ * @return {!proto.bonus.BonusItem} returns this
3854
+ */
3855
+ proto.bonus.BonusItem.prototype.setIsBonusWagering = function(value) {
3856
+ return jspb.Message.setField(this, 11, value);
3857
+ };
3858
+
3859
+
3860
+ /**
3861
+ * Clears the field making it undefined.
3862
+ * @return {!proto.bonus.BonusItem} returns this
3863
+ */
3864
+ proto.bonus.BonusItem.prototype.clearIsBonusWagering = function() {
3865
+ return jspb.Message.setField(this, 11, undefined);
3866
+ };
3867
+
3868
+
3869
+ /**
3870
+ * Returns whether this field is set.
3871
+ * @return {boolean}
3872
+ */
3873
+ proto.bonus.BonusItem.prototype.hasIsBonusWagering = function() {
3874
+ return jspb.Message.getField(this, 11) != null;
3875
+ };
3876
+
3877
+
3878
+ /**
3879
+ * optional int32 repeat_count = 12;
3880
+ * @return {number}
3881
+ */
3882
+ proto.bonus.BonusItem.prototype.getRepeatCount = function() {
3883
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
3884
+ };
3885
+
3886
+
3887
+ /**
3888
+ * @param {number} value
3889
+ * @return {!proto.bonus.BonusItem} returns this
3890
+ */
3891
+ proto.bonus.BonusItem.prototype.setRepeatCount = function(value) {
3892
+ return jspb.Message.setField(this, 12, value);
3893
+ };
3894
+
3895
+
3896
+ /**
3897
+ * Clears the field making it undefined.
3898
+ * @return {!proto.bonus.BonusItem} returns this
3899
+ */
3900
+ proto.bonus.BonusItem.prototype.clearRepeatCount = function() {
3901
+ return jspb.Message.setField(this, 12, undefined);
3902
+ };
3903
+
3904
+
3905
+ /**
3906
+ * Returns whether this field is set.
3907
+ * @return {boolean}
3908
+ */
3909
+ proto.bonus.BonusItem.prototype.hasRepeatCount = function() {
3910
+ return jspb.Message.getField(this, 12) != null;
3911
+ };
3912
+
3913
+
3914
+ /**
3915
+ * optional int32 wager_games_list_id = 13;
3916
+ * @return {number}
3917
+ */
3918
+ proto.bonus.BonusItem.prototype.getWagerGamesListId = function() {
3919
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
3920
+ };
3921
+
3922
+
3923
+ /**
3924
+ * @param {number} value
3925
+ * @return {!proto.bonus.BonusItem} returns this
3926
+ */
3927
+ proto.bonus.BonusItem.prototype.setWagerGamesListId = function(value) {
3928
+ return jspb.Message.setField(this, 13, value);
3929
+ };
3930
+
3931
+
3932
+ /**
3933
+ * Clears the field making it undefined.
3934
+ * @return {!proto.bonus.BonusItem} returns this
3935
+ */
3936
+ proto.bonus.BonusItem.prototype.clearWagerGamesListId = function() {
3937
+ return jspb.Message.setField(this, 13, undefined);
3938
+ };
3939
+
3940
+
3941
+ /**
3942
+ * Returns whether this field is set.
3943
+ * @return {boolean}
3944
+ */
3945
+ proto.bonus.BonusItem.prototype.hasWagerGamesListId = function() {
3946
+ return jspb.Message.getField(this, 13) != null;
3947
+ };
3948
+
3949
+
3950
+ /**
3951
+ * optional string started_at = 14;
3952
+ * @return {string}
3953
+ */
3954
+ proto.bonus.BonusItem.prototype.getStartedAt = function() {
3955
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
3956
+ };
3957
+
3958
+
3959
+ /**
3960
+ * @param {string} value
3961
+ * @return {!proto.bonus.BonusItem} returns this
3962
+ */
3963
+ proto.bonus.BonusItem.prototype.setStartedAt = function(value) {
3964
+ return jspb.Message.setField(this, 14, value);
3965
+ };
3966
+
3967
+
3968
+ /**
3969
+ * Clears the field making it undefined.
3970
+ * @return {!proto.bonus.BonusItem} returns this
3971
+ */
3972
+ proto.bonus.BonusItem.prototype.clearStartedAt = function() {
3973
+ return jspb.Message.setField(this, 14, undefined);
3974
+ };
3975
+
3976
+
3977
+ /**
3978
+ * Returns whether this field is set.
3979
+ * @return {boolean}
3980
+ */
3981
+ proto.bonus.BonusItem.prototype.hasStartedAt = function() {
3982
+ return jspb.Message.getField(this, 14) != null;
3983
+ };
3984
+
3985
+
3986
+ /**
3987
+ * optional string finished_at = 15;
3988
+ * @return {string}
3989
+ */
3990
+ proto.bonus.BonusItem.prototype.getFinishedAt = function() {
3991
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
3992
+ };
3993
+
3994
+
3995
+ /**
3996
+ * @param {string} value
3997
+ * @return {!proto.bonus.BonusItem} returns this
3998
+ */
3999
+ proto.bonus.BonusItem.prototype.setFinishedAt = function(value) {
4000
+ return jspb.Message.setField(this, 15, value);
4001
+ };
4002
+
4003
+
4004
+ /**
4005
+ * Clears the field making it undefined.
4006
+ * @return {!proto.bonus.BonusItem} returns this
4007
+ */
4008
+ proto.bonus.BonusItem.prototype.clearFinishedAt = function() {
4009
+ return jspb.Message.setField(this, 15, undefined);
4010
+ };
4011
+
4012
+
4013
+ /**
4014
+ * Returns whether this field is set.
4015
+ * @return {boolean}
4016
+ */
4017
+ proto.bonus.BonusItem.prototype.hasFinishedAt = function() {
4018
+ return jspb.Message.getField(this, 15) != null;
4019
+ };
4020
+
4021
+
4022
+ /**
4023
+ * optional string show_previous_at = 16;
4024
+ * @return {string}
4025
+ */
4026
+ proto.bonus.BonusItem.prototype.getShowPreviousAt = function() {
4027
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
4028
+ };
4029
+
4030
+
4031
+ /**
4032
+ * @param {string} value
4033
+ * @return {!proto.bonus.BonusItem} returns this
4034
+ */
4035
+ proto.bonus.BonusItem.prototype.setShowPreviousAt = function(value) {
4036
+ return jspb.Message.setField(this, 16, value);
4037
+ };
4038
+
4039
+
4040
+ /**
4041
+ * Clears the field making it undefined.
4042
+ * @return {!proto.bonus.BonusItem} returns this
4043
+ */
4044
+ proto.bonus.BonusItem.prototype.clearShowPreviousAt = function() {
4045
+ return jspb.Message.setField(this, 16, undefined);
4046
+ };
4047
+
4048
+
4049
+ /**
4050
+ * Returns whether this field is set.
4051
+ * @return {boolean}
4052
+ */
4053
+ proto.bonus.BonusItem.prototype.hasShowPreviousAt = function() {
4054
+ return jspb.Message.getField(this, 16) != null;
4055
+ };
4056
+
4057
+
4058
+ /**
4059
+ * optional int32 claim_period_in_hours = 17;
4060
+ * @return {number}
4061
+ */
4062
+ proto.bonus.BonusItem.prototype.getClaimPeriodInHours = function() {
4063
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0));
4064
+ };
4065
+
4066
+
4067
+ /**
4068
+ * @param {number} value
4069
+ * @return {!proto.bonus.BonusItem} returns this
4070
+ */
4071
+ proto.bonus.BonusItem.prototype.setClaimPeriodInHours = function(value) {
4072
+ return jspb.Message.setField(this, 17, value);
4073
+ };
4074
+
4075
+
4076
+ /**
4077
+ * Clears the field making it undefined.
4078
+ * @return {!proto.bonus.BonusItem} returns this
4079
+ */
4080
+ proto.bonus.BonusItem.prototype.clearClaimPeriodInHours = function() {
4081
+ return jspb.Message.setField(this, 17, undefined);
4082
+ };
4083
+
4084
+
4085
+ /**
4086
+ * Returns whether this field is set.
4087
+ * @return {boolean}
4088
+ */
4089
+ proto.bonus.BonusItem.prototype.hasClaimPeriodInHours = function() {
4090
+ return jspb.Message.getField(this, 17) != null;
4091
+ };
4092
+
4093
+
4094
+ /**
4095
+ * optional int32 activation_period_in_hours = 18;
4096
+ * @return {number}
4097
+ */
4098
+ proto.bonus.BonusItem.prototype.getActivationPeriodInHours = function() {
4099
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0));
4100
+ };
4101
+
4102
+
4103
+ /**
4104
+ * @param {number} value
4105
+ * @return {!proto.bonus.BonusItem} returns this
4106
+ */
4107
+ proto.bonus.BonusItem.prototype.setActivationPeriodInHours = function(value) {
4108
+ return jspb.Message.setField(this, 18, value);
4109
+ };
4110
+
4111
+
4112
+ /**
4113
+ * Clears the field making it undefined.
4114
+ * @return {!proto.bonus.BonusItem} returns this
4115
+ */
4116
+ proto.bonus.BonusItem.prototype.clearActivationPeriodInHours = function() {
4117
+ return jspb.Message.setField(this, 18, undefined);
4118
+ };
4119
+
4120
+
4121
+ /**
4122
+ * Returns whether this field is set.
4123
+ * @return {boolean}
4124
+ */
4125
+ proto.bonus.BonusItem.prototype.hasActivationPeriodInHours = function() {
4126
+ return jspb.Message.getField(this, 18) != null;
4127
+ };
4128
+
4129
+
4130
+ /**
4131
+ * optional int32 wagering_period_in_hours = 19;
4132
+ * @return {number}
4133
+ */
4134
+ proto.bonus.BonusItem.prototype.getWageringPeriodInHours = function() {
4135
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0));
4136
+ };
4137
+
4138
+
4139
+ /**
4140
+ * @param {number} value
4141
+ * @return {!proto.bonus.BonusItem} returns this
4142
+ */
4143
+ proto.bonus.BonusItem.prototype.setWageringPeriodInHours = function(value) {
4144
+ return jspb.Message.setField(this, 19, value);
4145
+ };
4146
+
4147
+
4148
+ /**
4149
+ * Clears the field making it undefined.
4150
+ * @return {!proto.bonus.BonusItem} returns this
4151
+ */
4152
+ proto.bonus.BonusItem.prototype.clearWageringPeriodInHours = function() {
4153
+ return jspb.Message.setField(this, 19, undefined);
4154
+ };
4155
+
4156
+
4157
+ /**
4158
+ * Returns whether this field is set.
4159
+ * @return {boolean}
4160
+ */
4161
+ proto.bonus.BonusItem.prototype.hasWageringPeriodInHours = function() {
4162
+ return jspb.Message.getField(this, 19) != null;
4163
+ };
4164
+
4165
+
4166
+ /**
4167
+ * repeated ActivationRule activation_rules = 20;
4168
+ * @return {!Array<!proto.bonus.ActivationRule>}
4169
+ */
4170
+ proto.bonus.BonusItem.prototype.getActivationRulesList = function() {
4171
+ return /** @type{!Array<!proto.bonus.ActivationRule>} */ (
4172
+ jspb.Message.getRepeatedWrapperField(this, proto.bonus.ActivationRule, 20));
4173
+ };
4174
+
4175
+
4176
+ /**
4177
+ * @param {!Array<!proto.bonus.ActivationRule>} value
4178
+ * @return {!proto.bonus.BonusItem} returns this
4179
+ */
4180
+ proto.bonus.BonusItem.prototype.setActivationRulesList = function(value) {
4181
+ return jspb.Message.setRepeatedWrapperField(this, 20, value);
4182
+ };
4183
+
4184
+
4185
+ /**
4186
+ * @param {!proto.bonus.ActivationRule=} opt_value
4187
+ * @param {number=} opt_index
4188
+ * @return {!proto.bonus.ActivationRule}
4189
+ */
4190
+ proto.bonus.BonusItem.prototype.addActivationRules = function(opt_value, opt_index) {
4191
+ return jspb.Message.addToRepeatedWrapperField(this, 20, opt_value, proto.bonus.ActivationRule, opt_index);
4192
+ };
4193
+
4194
+
4195
+ /**
4196
+ * Clears the list making it empty but non-null.
4197
+ * @return {!proto.bonus.BonusItem} returns this
4198
+ */
4199
+ proto.bonus.BonusItem.prototype.clearActivationRulesList = function() {
4200
+ return this.setActivationRulesList([]);
4201
+ };
4202
+
4203
+
4204
+ /**
4205
+ * repeated BonusReward rewards = 21;
4206
+ * @return {!Array<!proto.bonus.BonusReward>}
4207
+ */
4208
+ proto.bonus.BonusItem.prototype.getRewardsList = function() {
4209
+ return /** @type{!Array<!proto.bonus.BonusReward>} */ (
4210
+ jspb.Message.getRepeatedWrapperField(this, proto.bonus.BonusReward, 21));
4211
+ };
4212
+
4213
+
4214
+ /**
4215
+ * @param {!Array<!proto.bonus.BonusReward>} value
4216
+ * @return {!proto.bonus.BonusItem} returns this
4217
+ */
4218
+ proto.bonus.BonusItem.prototype.setRewardsList = function(value) {
4219
+ return jspb.Message.setRepeatedWrapperField(this, 21, value);
4220
+ };
4221
+
4222
+
4223
+ /**
4224
+ * @param {!proto.bonus.BonusReward=} opt_value
4225
+ * @param {number=} opt_index
4226
+ * @return {!proto.bonus.BonusReward}
4227
+ */
4228
+ proto.bonus.BonusItem.prototype.addRewards = function(opt_value, opt_index) {
4229
+ return jspb.Message.addToRepeatedWrapperField(this, 21, opt_value, proto.bonus.BonusReward, opt_index);
4230
+ };
4231
+
4232
+
4233
+ /**
4234
+ * Clears the list making it empty but non-null.
4235
+ * @return {!proto.bonus.BonusItem} returns this
4236
+ */
4237
+ proto.bonus.BonusItem.prototype.clearRewardsList = function() {
4238
+ return this.setRewardsList([]);
4239
+ };
4240
+
4241
+
4242
+
4243
+ /**
4244
+ * List of repeated fields within this message type.
4245
+ * @private {!Array<number>}
4246
+ * @const
4247
+ */
4248
+ proto.bonus.BonusItemsResponse.repeatedFields_ = [1];
4249
+
4250
+
4251
+
4252
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4253
+ /**
4254
+ * Creates an object representation of this proto.
4255
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4256
+ * Optional fields that are not set will be set to undefined.
4257
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4258
+ * For the list of reserved names please see:
4259
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4260
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4261
+ * JSPB instance for transitional soy proto support:
4262
+ * http://goto/soy-param-migration
4263
+ * @return {!Object}
4264
+ */
4265
+ proto.bonus.BonusItemsResponse.prototype.toObject = function(opt_includeInstance) {
4266
+ return proto.bonus.BonusItemsResponse.toObject(opt_includeInstance, this);
4267
+ };
4268
+
4269
+
4270
+ /**
4271
+ * Static version of the {@see toObject} method.
4272
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4273
+ * the JSPB instance for transitional soy proto support:
4274
+ * http://goto/soy-param-migration
4275
+ * @param {!proto.bonus.BonusItemsResponse} msg The msg instance to transform.
4276
+ * @return {!Object}
4277
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4278
+ */
4279
+ proto.bonus.BonusItemsResponse.toObject = function(includeInstance, msg) {
4280
+ var f, obj = {
4281
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
4282
+ proto.bonus.BonusItem.toObject, includeInstance),
4283
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
4284
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
4285
+ };
4286
+
4287
+ if (includeInstance) {
4288
+ obj.$jspbMessageInstance = msg;
4289
+ }
4290
+ return obj;
4291
+ };
4292
+ }
4293
+
4294
+
4295
+ /**
4296
+ * Deserializes binary data (in protobuf wire format).
4297
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4298
+ * @return {!proto.bonus.BonusItemsResponse}
4299
+ */
4300
+ proto.bonus.BonusItemsResponse.deserializeBinary = function(bytes) {
4301
+ var reader = new jspb.BinaryReader(bytes);
4302
+ var msg = new proto.bonus.BonusItemsResponse;
4303
+ return proto.bonus.BonusItemsResponse.deserializeBinaryFromReader(msg, reader);
4304
+ };
4305
+
4306
+
4307
+ /**
4308
+ * Deserializes binary data (in protobuf wire format) from the
4309
+ * given reader into the given message object.
4310
+ * @param {!proto.bonus.BonusItemsResponse} msg The message object to deserialize into.
4311
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4312
+ * @return {!proto.bonus.BonusItemsResponse}
4313
+ */
4314
+ proto.bonus.BonusItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
4315
+ while (reader.nextField()) {
4316
+ if (reader.isEndGroup()) {
4317
+ break;
4318
+ }
4319
+ var field = reader.getFieldNumber();
4320
+ switch (field) {
4321
+ case 1:
4322
+ var value = new proto.bonus.BonusItem;
4323
+ reader.readMessage(value,proto.bonus.BonusItem.deserializeBinaryFromReader);
4324
+ msg.addItems(value);
4325
+ break;
4326
+ case 2:
4327
+ var value = /** @type {number} */ (reader.readInt32());
4328
+ msg.setTotalPages(value);
4329
+ break;
4330
+ case 3:
4331
+ var value = /** @type {number} */ (reader.readInt32());
4332
+ msg.setTotalItems(value);
4333
+ break;
4334
+ default:
4335
+ reader.skipField();
4336
+ break;
4337
+ }
4338
+ }
4339
+ return msg;
4340
+ };
4341
+
4342
+
4343
+ /**
4344
+ * Serializes the message to binary data (in protobuf wire format).
4345
+ * @return {!Uint8Array}
4346
+ */
4347
+ proto.bonus.BonusItemsResponse.prototype.serializeBinary = function() {
4348
+ var writer = new jspb.BinaryWriter();
4349
+ proto.bonus.BonusItemsResponse.serializeBinaryToWriter(this, writer);
4350
+ return writer.getResultBuffer();
4351
+ };
4352
+
4353
+
4354
+ /**
4355
+ * Serializes the given message to binary data (in protobuf wire
4356
+ * format), writing to the given BinaryWriter.
4357
+ * @param {!proto.bonus.BonusItemsResponse} message
4358
+ * @param {!jspb.BinaryWriter} writer
4359
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4360
+ */
4361
+ proto.bonus.BonusItemsResponse.serializeBinaryToWriter = function(message, writer) {
4362
+ var f = undefined;
4363
+ f = message.getItemsList();
4364
+ if (f.length > 0) {
4365
+ writer.writeRepeatedMessage(
4366
+ 1,
4367
+ f,
4368
+ proto.bonus.BonusItem.serializeBinaryToWriter
4369
+ );
4370
+ }
4371
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
4372
+ if (f != null) {
4373
+ writer.writeInt32(
4374
+ 2,
4375
+ f
4376
+ );
4377
+ }
4378
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
4379
+ if (f != null) {
4380
+ writer.writeInt32(
4381
+ 3,
4382
+ f
4383
+ );
4384
+ }
4385
+ };
4386
+
4387
+
4388
+ /**
4389
+ * repeated BonusItem items = 1;
4390
+ * @return {!Array<!proto.bonus.BonusItem>}
4391
+ */
4392
+ proto.bonus.BonusItemsResponse.prototype.getItemsList = function() {
4393
+ return /** @type{!Array<!proto.bonus.BonusItem>} */ (
4394
+ jspb.Message.getRepeatedWrapperField(this, proto.bonus.BonusItem, 1));
4395
+ };
4396
+
4397
+
4398
+ /**
4399
+ * @param {!Array<!proto.bonus.BonusItem>} value
4400
+ * @return {!proto.bonus.BonusItemsResponse} returns this
4401
+ */
4402
+ proto.bonus.BonusItemsResponse.prototype.setItemsList = function(value) {
4403
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
4404
+ };
4405
+
4406
+
4407
+ /**
4408
+ * @param {!proto.bonus.BonusItem=} opt_value
4409
+ * @param {number=} opt_index
4410
+ * @return {!proto.bonus.BonusItem}
4411
+ */
4412
+ proto.bonus.BonusItemsResponse.prototype.addItems = function(opt_value, opt_index) {
4413
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.bonus.BonusItem, opt_index);
4414
+ };
4415
+
4416
+
4417
+ /**
4418
+ * Clears the list making it empty but non-null.
4419
+ * @return {!proto.bonus.BonusItemsResponse} returns this
4420
+ */
4421
+ proto.bonus.BonusItemsResponse.prototype.clearItemsList = function() {
4422
+ return this.setItemsList([]);
4423
+ };
4424
+
4425
+
4426
+ /**
4427
+ * optional int32 total_pages = 2;
4428
+ * @return {number}
4429
+ */
4430
+ proto.bonus.BonusItemsResponse.prototype.getTotalPages = function() {
4431
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
4432
+ };
4433
+
4434
+
4435
+ /**
4436
+ * @param {number} value
4437
+ * @return {!proto.bonus.BonusItemsResponse} returns this
4438
+ */
4439
+ proto.bonus.BonusItemsResponse.prototype.setTotalPages = function(value) {
4440
+ return jspb.Message.setField(this, 2, value);
4441
+ };
4442
+
4443
+
4444
+ /**
4445
+ * Clears the field making it undefined.
4446
+ * @return {!proto.bonus.BonusItemsResponse} returns this
4447
+ */
4448
+ proto.bonus.BonusItemsResponse.prototype.clearTotalPages = function() {
4449
+ return jspb.Message.setField(this, 2, undefined);
4450
+ };
4451
+
4452
+
4453
+ /**
4454
+ * Returns whether this field is set.
4455
+ * @return {boolean}
4456
+ */
4457
+ proto.bonus.BonusItemsResponse.prototype.hasTotalPages = function() {
4458
+ return jspb.Message.getField(this, 2) != null;
4459
+ };
4460
+
4461
+
4462
+ /**
4463
+ * optional int32 total_items = 3;
4464
+ * @return {number}
4465
+ */
4466
+ proto.bonus.BonusItemsResponse.prototype.getTotalItems = function() {
4467
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
4468
+ };
4469
+
4470
+
4471
+ /**
4472
+ * @param {number} value
4473
+ * @return {!proto.bonus.BonusItemsResponse} returns this
4474
+ */
4475
+ proto.bonus.BonusItemsResponse.prototype.setTotalItems = function(value) {
4476
+ return jspb.Message.setField(this, 3, value);
4477
+ };
4478
+
4479
+
4480
+ /**
4481
+ * Clears the field making it undefined.
4482
+ * @return {!proto.bonus.BonusItemsResponse} returns this
4483
+ */
4484
+ proto.bonus.BonusItemsResponse.prototype.clearTotalItems = function() {
4485
+ return jspb.Message.setField(this, 3, undefined);
4486
+ };
4487
+
4488
+
4489
+ /**
4490
+ * Returns whether this field is set.
4491
+ * @return {boolean}
4492
+ */
4493
+ proto.bonus.BonusItemsResponse.prototype.hasTotalItems = function() {
4494
+ return jspb.Message.getField(this, 3) != null;
4495
+ };
4496
+
4497
+
4498
+
4499
+
4500
+
4501
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4502
+ /**
4503
+ * Creates an object representation of this proto.
4504
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4505
+ * Optional fields that are not set will be set to undefined.
4506
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4507
+ * For the list of reserved names please see:
4508
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4509
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4510
+ * JSPB instance for transitional soy proto support:
4511
+ * http://goto/soy-param-migration
4512
+ * @return {!Object}
4513
+ */
4514
+ proto.bonus.BonusStatusResponse.prototype.toObject = function(opt_includeInstance) {
4515
+ return proto.bonus.BonusStatusResponse.toObject(opt_includeInstance, this);
4516
+ };
4517
+
4518
+
4519
+ /**
4520
+ * Static version of the {@see toObject} method.
4521
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4522
+ * the JSPB instance for transitional soy proto support:
4523
+ * http://goto/soy-param-migration
4524
+ * @param {!proto.bonus.BonusStatusResponse} msg The msg instance to transform.
4525
+ * @return {!Object}
4526
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4527
+ */
4528
+ proto.bonus.BonusStatusResponse.toObject = function(includeInstance, msg) {
4529
+ var f, obj = {
4530
+ status: jspb.Message.getFieldWithDefault(msg, 1, "")
4531
+ };
4532
+
4533
+ if (includeInstance) {
4534
+ obj.$jspbMessageInstance = msg;
4535
+ }
4536
+ return obj;
4537
+ };
4538
+ }
4539
+
4540
+
4541
+ /**
4542
+ * Deserializes binary data (in protobuf wire format).
4543
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4544
+ * @return {!proto.bonus.BonusStatusResponse}
4545
+ */
4546
+ proto.bonus.BonusStatusResponse.deserializeBinary = function(bytes) {
4547
+ var reader = new jspb.BinaryReader(bytes);
4548
+ var msg = new proto.bonus.BonusStatusResponse;
4549
+ return proto.bonus.BonusStatusResponse.deserializeBinaryFromReader(msg, reader);
4550
+ };
4551
+
4552
+
4553
+ /**
4554
+ * Deserializes binary data (in protobuf wire format) from the
4555
+ * given reader into the given message object.
4556
+ * @param {!proto.bonus.BonusStatusResponse} msg The message object to deserialize into.
4557
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4558
+ * @return {!proto.bonus.BonusStatusResponse}
4559
+ */
4560
+ proto.bonus.BonusStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
4561
+ while (reader.nextField()) {
4562
+ if (reader.isEndGroup()) {
4563
+ break;
4564
+ }
4565
+ var field = reader.getFieldNumber();
4566
+ switch (field) {
4567
+ case 1:
4568
+ var value = /** @type {string} */ (reader.readString());
4569
+ msg.setStatus(value);
4570
+ break;
4571
+ default:
4572
+ reader.skipField();
4573
+ break;
4574
+ }
4575
+ }
4576
+ return msg;
4577
+ };
4578
+
4579
+
4580
+ /**
4581
+ * Serializes the message to binary data (in protobuf wire format).
4582
+ * @return {!Uint8Array}
4583
+ */
4584
+ proto.bonus.BonusStatusResponse.prototype.serializeBinary = function() {
4585
+ var writer = new jspb.BinaryWriter();
4586
+ proto.bonus.BonusStatusResponse.serializeBinaryToWriter(this, writer);
4587
+ return writer.getResultBuffer();
4588
+ };
4589
+
4590
+
4591
+ /**
4592
+ * Serializes the given message to binary data (in protobuf wire
4593
+ * format), writing to the given BinaryWriter.
4594
+ * @param {!proto.bonus.BonusStatusResponse} message
4595
+ * @param {!jspb.BinaryWriter} writer
4596
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4597
+ */
4598
+ proto.bonus.BonusStatusResponse.serializeBinaryToWriter = function(message, writer) {
4599
+ var f = undefined;
4600
+ f = message.getStatus();
4601
+ if (f.length > 0) {
4602
+ writer.writeString(
4603
+ 1,
4604
+ f
4605
+ );
4606
+ }
4607
+ };
4608
+
4609
+
4610
+ /**
4611
+ * optional string status = 1;
4612
+ * @return {string}
4613
+ */
4614
+ proto.bonus.BonusStatusResponse.prototype.getStatus = function() {
4615
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4616
+ };
4617
+
4618
+
4619
+ /**
4620
+ * @param {string} value
4621
+ * @return {!proto.bonus.BonusStatusResponse} returns this
4622
+ */
4623
+ proto.bonus.BonusStatusResponse.prototype.setStatus = function(value) {
4624
+ return jspb.Message.setProto3StringField(this, 1, value);
4625
+ };
4626
+
4627
+
328
4628
  goog.object.extend(exports, proto.bonus);