protobuf-platform 1.0.60 → 1.0.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/game/game_pb.js CHANGED
@@ -36,15 +36,31 @@ goog.exportSymbol('proto.game.CollectionRequest.RequestCase', null, global);
36
36
  goog.exportSymbol('proto.game.CollectionResponse', null, global);
37
37
  goog.exportSymbol('proto.game.CollectionStatusResponse', null, global);
38
38
  goog.exportSymbol('proto.game.File', null, global);
39
+ goog.exportSymbol('proto.game.GameItem', null, global);
40
+ goog.exportSymbol('proto.game.GameItemRequest', null, global);
41
+ goog.exportSymbol('proto.game.GameItemsResponse', null, global);
42
+ goog.exportSymbol('proto.game.GameRequest', null, global);
43
+ goog.exportSymbol('proto.game.GameRequest.RequestCase', null, global);
44
+ goog.exportSymbol('proto.game.GameResponse', null, global);
45
+ goog.exportSymbol('proto.game.GameStatusResponse', null, global);
39
46
  goog.exportSymbol('proto.game.GetCategoryRequest', null, global);
40
47
  goog.exportSymbol('proto.game.GetCollectionRequest', null, global);
41
48
  goog.exportSymbol('proto.game.GetFileRequest', null, global);
49
+ goog.exportSymbol('proto.game.GetGameRequest', null, global);
50
+ goog.exportSymbol('proto.game.GetProviderRequest', null, global);
42
51
  goog.exportSymbol('proto.game.GetTagRequest', null, global);
43
52
  goog.exportSymbol('proto.game.PaginationRequest', null, global);
44
53
  goog.exportSymbol('proto.game.ParseGamesRequest', null, global);
45
54
  goog.exportSymbol('proto.game.ParseGamesResponse', null, global);
46
55
  goog.exportSymbol('proto.game.PingRequest', null, global);
47
56
  goog.exportSymbol('proto.game.PongResponse', null, global);
57
+ goog.exportSymbol('proto.game.ProviderItem', null, global);
58
+ goog.exportSymbol('proto.game.ProviderItemRequest', null, global);
59
+ goog.exportSymbol('proto.game.ProviderItemsResponse', null, global);
60
+ goog.exportSymbol('proto.game.ProviderRequest', null, global);
61
+ goog.exportSymbol('proto.game.ProviderRequest.RequestCase', null, global);
62
+ goog.exportSymbol('proto.game.ProviderResponse', null, global);
63
+ goog.exportSymbol('proto.game.ProviderStatusResponse', null, global);
48
64
  goog.exportSymbol('proto.game.TagItem', null, global);
49
65
  goog.exportSymbol('proto.game.TagItemRequest', null, global);
50
66
  goog.exportSymbol('proto.game.TagItemsResponse', null, global);
@@ -598,6 +614,153 @@ if (goog.DEBUG && !COMPILED) {
598
614
  */
599
615
  proto.game.TagStatusResponse.displayName = 'proto.game.TagStatusResponse';
600
616
  }
617
+ /**
618
+ * Generated by JsPbCodeGenerator.
619
+ * @param {Array=} opt_data Optional initial data array, typically from a
620
+ * server response, or constructed directly in Javascript. The array is used
621
+ * in place and becomes part of the constructed object. It is not cloned.
622
+ * If no data is provided, the constructed object will be empty, but still
623
+ * valid.
624
+ * @extends {jspb.Message}
625
+ * @constructor
626
+ */
627
+ proto.game.ProviderItem = function(opt_data) {
628
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
629
+ };
630
+ goog.inherits(proto.game.ProviderItem, jspb.Message);
631
+ if (goog.DEBUG && !COMPILED) {
632
+ /**
633
+ * @public
634
+ * @override
635
+ */
636
+ proto.game.ProviderItem.displayName = 'proto.game.ProviderItem';
637
+ }
638
+ /**
639
+ * Generated by JsPbCodeGenerator.
640
+ * @param {Array=} opt_data Optional initial data array, typically from a
641
+ * server response, or constructed directly in Javascript. The array is used
642
+ * in place and becomes part of the constructed object. It is not cloned.
643
+ * If no data is provided, the constructed object will be empty, but still
644
+ * valid.
645
+ * @extends {jspb.Message}
646
+ * @constructor
647
+ */
648
+ proto.game.ProviderRequest = function(opt_data) {
649
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.game.ProviderRequest.oneofGroups_);
650
+ };
651
+ goog.inherits(proto.game.ProviderRequest, jspb.Message);
652
+ if (goog.DEBUG && !COMPILED) {
653
+ /**
654
+ * @public
655
+ * @override
656
+ */
657
+ proto.game.ProviderRequest.displayName = 'proto.game.ProviderRequest';
658
+ }
659
+ /**
660
+ * Generated by JsPbCodeGenerator.
661
+ * @param {Array=} opt_data Optional initial data array, typically from a
662
+ * server response, or constructed directly in Javascript. The array is used
663
+ * in place and becomes part of the constructed object. It is not cloned.
664
+ * If no data is provided, the constructed object will be empty, but still
665
+ * valid.
666
+ * @extends {jspb.Message}
667
+ * @constructor
668
+ */
669
+ proto.game.ProviderItemRequest = function(opt_data) {
670
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
671
+ };
672
+ goog.inherits(proto.game.ProviderItemRequest, jspb.Message);
673
+ if (goog.DEBUG && !COMPILED) {
674
+ /**
675
+ * @public
676
+ * @override
677
+ */
678
+ proto.game.ProviderItemRequest.displayName = 'proto.game.ProviderItemRequest';
679
+ }
680
+ /**
681
+ * Generated by JsPbCodeGenerator.
682
+ * @param {Array=} opt_data Optional initial data array, typically from a
683
+ * server response, or constructed directly in Javascript. The array is used
684
+ * in place and becomes part of the constructed object. It is not cloned.
685
+ * If no data is provided, the constructed object will be empty, but still
686
+ * valid.
687
+ * @extends {jspb.Message}
688
+ * @constructor
689
+ */
690
+ proto.game.GetProviderRequest = function(opt_data) {
691
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
692
+ };
693
+ goog.inherits(proto.game.GetProviderRequest, jspb.Message);
694
+ if (goog.DEBUG && !COMPILED) {
695
+ /**
696
+ * @public
697
+ * @override
698
+ */
699
+ proto.game.GetProviderRequest.displayName = 'proto.game.GetProviderRequest';
700
+ }
701
+ /**
702
+ * Generated by JsPbCodeGenerator.
703
+ * @param {Array=} opt_data Optional initial data array, typically from a
704
+ * server response, or constructed directly in Javascript. The array is used
705
+ * in place and becomes part of the constructed object. It is not cloned.
706
+ * If no data is provided, the constructed object will be empty, but still
707
+ * valid.
708
+ * @extends {jspb.Message}
709
+ * @constructor
710
+ */
711
+ proto.game.ProviderResponse = function(opt_data) {
712
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
713
+ };
714
+ goog.inherits(proto.game.ProviderResponse, jspb.Message);
715
+ if (goog.DEBUG && !COMPILED) {
716
+ /**
717
+ * @public
718
+ * @override
719
+ */
720
+ proto.game.ProviderResponse.displayName = 'proto.game.ProviderResponse';
721
+ }
722
+ /**
723
+ * Generated by JsPbCodeGenerator.
724
+ * @param {Array=} opt_data Optional initial data array, typically from a
725
+ * server response, or constructed directly in Javascript. The array is used
726
+ * in place and becomes part of the constructed object. It is not cloned.
727
+ * If no data is provided, the constructed object will be empty, but still
728
+ * valid.
729
+ * @extends {jspb.Message}
730
+ * @constructor
731
+ */
732
+ proto.game.ProviderItemsResponse = function(opt_data) {
733
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.ProviderItemsResponse.repeatedFields_, null);
734
+ };
735
+ goog.inherits(proto.game.ProviderItemsResponse, jspb.Message);
736
+ if (goog.DEBUG && !COMPILED) {
737
+ /**
738
+ * @public
739
+ * @override
740
+ */
741
+ proto.game.ProviderItemsResponse.displayName = 'proto.game.ProviderItemsResponse';
742
+ }
743
+ /**
744
+ * Generated by JsPbCodeGenerator.
745
+ * @param {Array=} opt_data Optional initial data array, typically from a
746
+ * server response, or constructed directly in Javascript. The array is used
747
+ * in place and becomes part of the constructed object. It is not cloned.
748
+ * If no data is provided, the constructed object will be empty, but still
749
+ * valid.
750
+ * @extends {jspb.Message}
751
+ * @constructor
752
+ */
753
+ proto.game.ProviderStatusResponse = function(opt_data) {
754
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
755
+ };
756
+ goog.inherits(proto.game.ProviderStatusResponse, jspb.Message);
757
+ if (goog.DEBUG && !COMPILED) {
758
+ /**
759
+ * @public
760
+ * @override
761
+ */
762
+ proto.game.ProviderStatusResponse.displayName = 'proto.game.ProviderStatusResponse';
763
+ }
601
764
  /**
602
765
  * Generated by JsPbCodeGenerator.
603
766
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -640,6 +803,153 @@ if (goog.DEBUG && !COMPILED) {
640
803
  */
641
804
  proto.game.ParseGamesResponse.displayName = 'proto.game.ParseGamesResponse';
642
805
  }
806
+ /**
807
+ * Generated by JsPbCodeGenerator.
808
+ * @param {Array=} opt_data Optional initial data array, typically from a
809
+ * server response, or constructed directly in Javascript. The array is used
810
+ * in place and becomes part of the constructed object. It is not cloned.
811
+ * If no data is provided, the constructed object will be empty, but still
812
+ * valid.
813
+ * @extends {jspb.Message}
814
+ * @constructor
815
+ */
816
+ proto.game.GameItem = function(opt_data) {
817
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
818
+ };
819
+ goog.inherits(proto.game.GameItem, jspb.Message);
820
+ if (goog.DEBUG && !COMPILED) {
821
+ /**
822
+ * @public
823
+ * @override
824
+ */
825
+ proto.game.GameItem.displayName = 'proto.game.GameItem';
826
+ }
827
+ /**
828
+ * Generated by JsPbCodeGenerator.
829
+ * @param {Array=} opt_data Optional initial data array, typically from a
830
+ * server response, or constructed directly in Javascript. The array is used
831
+ * in place and becomes part of the constructed object. It is not cloned.
832
+ * If no data is provided, the constructed object will be empty, but still
833
+ * valid.
834
+ * @extends {jspb.Message}
835
+ * @constructor
836
+ */
837
+ proto.game.GameRequest = function(opt_data) {
838
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.game.GameRequest.oneofGroups_);
839
+ };
840
+ goog.inherits(proto.game.GameRequest, jspb.Message);
841
+ if (goog.DEBUG && !COMPILED) {
842
+ /**
843
+ * @public
844
+ * @override
845
+ */
846
+ proto.game.GameRequest.displayName = 'proto.game.GameRequest';
847
+ }
848
+ /**
849
+ * Generated by JsPbCodeGenerator.
850
+ * @param {Array=} opt_data Optional initial data array, typically from a
851
+ * server response, or constructed directly in Javascript. The array is used
852
+ * in place and becomes part of the constructed object. It is not cloned.
853
+ * If no data is provided, the constructed object will be empty, but still
854
+ * valid.
855
+ * @extends {jspb.Message}
856
+ * @constructor
857
+ */
858
+ proto.game.GameItemRequest = function(opt_data) {
859
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
860
+ };
861
+ goog.inherits(proto.game.GameItemRequest, jspb.Message);
862
+ if (goog.DEBUG && !COMPILED) {
863
+ /**
864
+ * @public
865
+ * @override
866
+ */
867
+ proto.game.GameItemRequest.displayName = 'proto.game.GameItemRequest';
868
+ }
869
+ /**
870
+ * Generated by JsPbCodeGenerator.
871
+ * @param {Array=} opt_data Optional initial data array, typically from a
872
+ * server response, or constructed directly in Javascript. The array is used
873
+ * in place and becomes part of the constructed object. It is not cloned.
874
+ * If no data is provided, the constructed object will be empty, but still
875
+ * valid.
876
+ * @extends {jspb.Message}
877
+ * @constructor
878
+ */
879
+ proto.game.GetGameRequest = function(opt_data) {
880
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
881
+ };
882
+ goog.inherits(proto.game.GetGameRequest, jspb.Message);
883
+ if (goog.DEBUG && !COMPILED) {
884
+ /**
885
+ * @public
886
+ * @override
887
+ */
888
+ proto.game.GetGameRequest.displayName = 'proto.game.GetGameRequest';
889
+ }
890
+ /**
891
+ * Generated by JsPbCodeGenerator.
892
+ * @param {Array=} opt_data Optional initial data array, typically from a
893
+ * server response, or constructed directly in Javascript. The array is used
894
+ * in place and becomes part of the constructed object. It is not cloned.
895
+ * If no data is provided, the constructed object will be empty, but still
896
+ * valid.
897
+ * @extends {jspb.Message}
898
+ * @constructor
899
+ */
900
+ proto.game.GameResponse = function(opt_data) {
901
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
902
+ };
903
+ goog.inherits(proto.game.GameResponse, jspb.Message);
904
+ if (goog.DEBUG && !COMPILED) {
905
+ /**
906
+ * @public
907
+ * @override
908
+ */
909
+ proto.game.GameResponse.displayName = 'proto.game.GameResponse';
910
+ }
911
+ /**
912
+ * Generated by JsPbCodeGenerator.
913
+ * @param {Array=} opt_data Optional initial data array, typically from a
914
+ * server response, or constructed directly in Javascript. The array is used
915
+ * in place and becomes part of the constructed object. It is not cloned.
916
+ * If no data is provided, the constructed object will be empty, but still
917
+ * valid.
918
+ * @extends {jspb.Message}
919
+ * @constructor
920
+ */
921
+ proto.game.GameItemsResponse = function(opt_data) {
922
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.GameItemsResponse.repeatedFields_, null);
923
+ };
924
+ goog.inherits(proto.game.GameItemsResponse, jspb.Message);
925
+ if (goog.DEBUG && !COMPILED) {
926
+ /**
927
+ * @public
928
+ * @override
929
+ */
930
+ proto.game.GameItemsResponse.displayName = 'proto.game.GameItemsResponse';
931
+ }
932
+ /**
933
+ * Generated by JsPbCodeGenerator.
934
+ * @param {Array=} opt_data Optional initial data array, typically from a
935
+ * server response, or constructed directly in Javascript. The array is used
936
+ * in place and becomes part of the constructed object. It is not cloned.
937
+ * If no data is provided, the constructed object will be empty, but still
938
+ * valid.
939
+ * @extends {jspb.Message}
940
+ * @constructor
941
+ */
942
+ proto.game.GameStatusResponse = function(opt_data) {
943
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
944
+ };
945
+ goog.inherits(proto.game.GameStatusResponse, jspb.Message);
946
+ if (goog.DEBUG && !COMPILED) {
947
+ /**
948
+ * @public
949
+ * @override
950
+ */
951
+ proto.game.GameStatusResponse.displayName = 'proto.game.GameStatusResponse';
952
+ }
643
953
 
644
954
 
645
955
 
@@ -6646,8 +6956,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
6646
6956
  * http://goto/soy-param-migration
6647
6957
  * @return {!Object}
6648
6958
  */
6649
- proto.game.ParseGamesRequest.prototype.toObject = function(opt_includeInstance) {
6650
- return proto.game.ParseGamesRequest.toObject(opt_includeInstance, this);
6959
+ proto.game.ProviderItem.prototype.toObject = function(opt_includeInstance) {
6960
+ return proto.game.ProviderItem.toObject(opt_includeInstance, this);
6651
6961
  };
6652
6962
 
6653
6963
 
@@ -6656,16 +6966,3728 @@ proto.game.ParseGamesRequest.prototype.toObject = function(opt_includeInstance)
6656
6966
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6657
6967
  * the JSPB instance for transitional soy proto support:
6658
6968
  * http://goto/soy-param-migration
6659
- * @param {!proto.game.ParseGamesRequest} msg The msg instance to transform.
6969
+ * @param {!proto.game.ProviderItem} msg The msg instance to transform.
6660
6970
  * @return {!Object}
6661
6971
  * @suppress {unusedLocalVariables} f is only used for nested messages
6662
6972
  */
6663
- proto.game.ParseGamesRequest.toObject = function(includeInstance, msg) {
6973
+ proto.game.ProviderItem.toObject = function(includeInstance, msg) {
6664
6974
  var f, obj = {
6665
- vendor: jspb.Message.getFieldWithDefault(msg, 1, "")
6666
- };
6667
-
6668
- if (includeInstance) {
6975
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
6976
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
6977
+ slug: jspb.Message.getFieldWithDefault(msg, 3, ""),
6978
+ description: jspb.Message.getFieldWithDefault(msg, 4, ""),
6979
+ isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
6980
+ image: jspb.Message.getFieldWithDefault(msg, 6, "")
6981
+ };
6982
+
6983
+ if (includeInstance) {
6984
+ obj.$jspbMessageInstance = msg;
6985
+ }
6986
+ return obj;
6987
+ };
6988
+ }
6989
+
6990
+
6991
+ /**
6992
+ * Deserializes binary data (in protobuf wire format).
6993
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6994
+ * @return {!proto.game.ProviderItem}
6995
+ */
6996
+ proto.game.ProviderItem.deserializeBinary = function(bytes) {
6997
+ var reader = new jspb.BinaryReader(bytes);
6998
+ var msg = new proto.game.ProviderItem;
6999
+ return proto.game.ProviderItem.deserializeBinaryFromReader(msg, reader);
7000
+ };
7001
+
7002
+
7003
+ /**
7004
+ * Deserializes binary data (in protobuf wire format) from the
7005
+ * given reader into the given message object.
7006
+ * @param {!proto.game.ProviderItem} msg The message object to deserialize into.
7007
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7008
+ * @return {!proto.game.ProviderItem}
7009
+ */
7010
+ proto.game.ProviderItem.deserializeBinaryFromReader = function(msg, reader) {
7011
+ while (reader.nextField()) {
7012
+ if (reader.isEndGroup()) {
7013
+ break;
7014
+ }
7015
+ var field = reader.getFieldNumber();
7016
+ switch (field) {
7017
+ case 1:
7018
+ var value = /** @type {number} */ (reader.readInt32());
7019
+ msg.setId(value);
7020
+ break;
7021
+ case 2:
7022
+ var value = /** @type {string} */ (reader.readString());
7023
+ msg.setTitle(value);
7024
+ break;
7025
+ case 3:
7026
+ var value = /** @type {string} */ (reader.readString());
7027
+ msg.setSlug(value);
7028
+ break;
7029
+ case 4:
7030
+ var value = /** @type {string} */ (reader.readString());
7031
+ msg.setDescription(value);
7032
+ break;
7033
+ case 5:
7034
+ var value = /** @type {number} */ (reader.readInt32());
7035
+ msg.setIsActive(value);
7036
+ break;
7037
+ case 6:
7038
+ var value = /** @type {string} */ (reader.readString());
7039
+ msg.setImage(value);
7040
+ break;
7041
+ default:
7042
+ reader.skipField();
7043
+ break;
7044
+ }
7045
+ }
7046
+ return msg;
7047
+ };
7048
+
7049
+
7050
+ /**
7051
+ * Serializes the message to binary data (in protobuf wire format).
7052
+ * @return {!Uint8Array}
7053
+ */
7054
+ proto.game.ProviderItem.prototype.serializeBinary = function() {
7055
+ var writer = new jspb.BinaryWriter();
7056
+ proto.game.ProviderItem.serializeBinaryToWriter(this, writer);
7057
+ return writer.getResultBuffer();
7058
+ };
7059
+
7060
+
7061
+ /**
7062
+ * Serializes the given message to binary data (in protobuf wire
7063
+ * format), writing to the given BinaryWriter.
7064
+ * @param {!proto.game.ProviderItem} message
7065
+ * @param {!jspb.BinaryWriter} writer
7066
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7067
+ */
7068
+ proto.game.ProviderItem.serializeBinaryToWriter = function(message, writer) {
7069
+ var f = undefined;
7070
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
7071
+ if (f != null) {
7072
+ writer.writeInt32(
7073
+ 1,
7074
+ f
7075
+ );
7076
+ }
7077
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
7078
+ if (f != null) {
7079
+ writer.writeString(
7080
+ 2,
7081
+ f
7082
+ );
7083
+ }
7084
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
7085
+ if (f != null) {
7086
+ writer.writeString(
7087
+ 3,
7088
+ f
7089
+ );
7090
+ }
7091
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
7092
+ if (f != null) {
7093
+ writer.writeString(
7094
+ 4,
7095
+ f
7096
+ );
7097
+ }
7098
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
7099
+ if (f != null) {
7100
+ writer.writeInt32(
7101
+ 5,
7102
+ f
7103
+ );
7104
+ }
7105
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
7106
+ if (f != null) {
7107
+ writer.writeString(
7108
+ 6,
7109
+ f
7110
+ );
7111
+ }
7112
+ };
7113
+
7114
+
7115
+ /**
7116
+ * optional int32 id = 1;
7117
+ * @return {number}
7118
+ */
7119
+ proto.game.ProviderItem.prototype.getId = function() {
7120
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
7121
+ };
7122
+
7123
+
7124
+ /**
7125
+ * @param {number} value
7126
+ * @return {!proto.game.ProviderItem} returns this
7127
+ */
7128
+ proto.game.ProviderItem.prototype.setId = function(value) {
7129
+ return jspb.Message.setField(this, 1, value);
7130
+ };
7131
+
7132
+
7133
+ /**
7134
+ * Clears the field making it undefined.
7135
+ * @return {!proto.game.ProviderItem} returns this
7136
+ */
7137
+ proto.game.ProviderItem.prototype.clearId = function() {
7138
+ return jspb.Message.setField(this, 1, undefined);
7139
+ };
7140
+
7141
+
7142
+ /**
7143
+ * Returns whether this field is set.
7144
+ * @return {boolean}
7145
+ */
7146
+ proto.game.ProviderItem.prototype.hasId = function() {
7147
+ return jspb.Message.getField(this, 1) != null;
7148
+ };
7149
+
7150
+
7151
+ /**
7152
+ * optional string title = 2;
7153
+ * @return {string}
7154
+ */
7155
+ proto.game.ProviderItem.prototype.getTitle = function() {
7156
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
7157
+ };
7158
+
7159
+
7160
+ /**
7161
+ * @param {string} value
7162
+ * @return {!proto.game.ProviderItem} returns this
7163
+ */
7164
+ proto.game.ProviderItem.prototype.setTitle = function(value) {
7165
+ return jspb.Message.setField(this, 2, value);
7166
+ };
7167
+
7168
+
7169
+ /**
7170
+ * Clears the field making it undefined.
7171
+ * @return {!proto.game.ProviderItem} returns this
7172
+ */
7173
+ proto.game.ProviderItem.prototype.clearTitle = function() {
7174
+ return jspb.Message.setField(this, 2, undefined);
7175
+ };
7176
+
7177
+
7178
+ /**
7179
+ * Returns whether this field is set.
7180
+ * @return {boolean}
7181
+ */
7182
+ proto.game.ProviderItem.prototype.hasTitle = function() {
7183
+ return jspb.Message.getField(this, 2) != null;
7184
+ };
7185
+
7186
+
7187
+ /**
7188
+ * optional string slug = 3;
7189
+ * @return {string}
7190
+ */
7191
+ proto.game.ProviderItem.prototype.getSlug = function() {
7192
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
7193
+ };
7194
+
7195
+
7196
+ /**
7197
+ * @param {string} value
7198
+ * @return {!proto.game.ProviderItem} returns this
7199
+ */
7200
+ proto.game.ProviderItem.prototype.setSlug = function(value) {
7201
+ return jspb.Message.setField(this, 3, value);
7202
+ };
7203
+
7204
+
7205
+ /**
7206
+ * Clears the field making it undefined.
7207
+ * @return {!proto.game.ProviderItem} returns this
7208
+ */
7209
+ proto.game.ProviderItem.prototype.clearSlug = function() {
7210
+ return jspb.Message.setField(this, 3, undefined);
7211
+ };
7212
+
7213
+
7214
+ /**
7215
+ * Returns whether this field is set.
7216
+ * @return {boolean}
7217
+ */
7218
+ proto.game.ProviderItem.prototype.hasSlug = function() {
7219
+ return jspb.Message.getField(this, 3) != null;
7220
+ };
7221
+
7222
+
7223
+ /**
7224
+ * optional string description = 4;
7225
+ * @return {string}
7226
+ */
7227
+ proto.game.ProviderItem.prototype.getDescription = function() {
7228
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
7229
+ };
7230
+
7231
+
7232
+ /**
7233
+ * @param {string} value
7234
+ * @return {!proto.game.ProviderItem} returns this
7235
+ */
7236
+ proto.game.ProviderItem.prototype.setDescription = function(value) {
7237
+ return jspb.Message.setField(this, 4, value);
7238
+ };
7239
+
7240
+
7241
+ /**
7242
+ * Clears the field making it undefined.
7243
+ * @return {!proto.game.ProviderItem} returns this
7244
+ */
7245
+ proto.game.ProviderItem.prototype.clearDescription = function() {
7246
+ return jspb.Message.setField(this, 4, undefined);
7247
+ };
7248
+
7249
+
7250
+ /**
7251
+ * Returns whether this field is set.
7252
+ * @return {boolean}
7253
+ */
7254
+ proto.game.ProviderItem.prototype.hasDescription = function() {
7255
+ return jspb.Message.getField(this, 4) != null;
7256
+ };
7257
+
7258
+
7259
+ /**
7260
+ * optional int32 is_active = 5;
7261
+ * @return {number}
7262
+ */
7263
+ proto.game.ProviderItem.prototype.getIsActive = function() {
7264
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
7265
+ };
7266
+
7267
+
7268
+ /**
7269
+ * @param {number} value
7270
+ * @return {!proto.game.ProviderItem} returns this
7271
+ */
7272
+ proto.game.ProviderItem.prototype.setIsActive = function(value) {
7273
+ return jspb.Message.setField(this, 5, value);
7274
+ };
7275
+
7276
+
7277
+ /**
7278
+ * Clears the field making it undefined.
7279
+ * @return {!proto.game.ProviderItem} returns this
7280
+ */
7281
+ proto.game.ProviderItem.prototype.clearIsActive = function() {
7282
+ return jspb.Message.setField(this, 5, undefined);
7283
+ };
7284
+
7285
+
7286
+ /**
7287
+ * Returns whether this field is set.
7288
+ * @return {boolean}
7289
+ */
7290
+ proto.game.ProviderItem.prototype.hasIsActive = function() {
7291
+ return jspb.Message.getField(this, 5) != null;
7292
+ };
7293
+
7294
+
7295
+ /**
7296
+ * optional string image = 6;
7297
+ * @return {string}
7298
+ */
7299
+ proto.game.ProviderItem.prototype.getImage = function() {
7300
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
7301
+ };
7302
+
7303
+
7304
+ /**
7305
+ * @param {string} value
7306
+ * @return {!proto.game.ProviderItem} returns this
7307
+ */
7308
+ proto.game.ProviderItem.prototype.setImage = function(value) {
7309
+ return jspb.Message.setField(this, 6, value);
7310
+ };
7311
+
7312
+
7313
+ /**
7314
+ * Clears the field making it undefined.
7315
+ * @return {!proto.game.ProviderItem} returns this
7316
+ */
7317
+ proto.game.ProviderItem.prototype.clearImage = function() {
7318
+ return jspb.Message.setField(this, 6, undefined);
7319
+ };
7320
+
7321
+
7322
+ /**
7323
+ * Returns whether this field is set.
7324
+ * @return {boolean}
7325
+ */
7326
+ proto.game.ProviderItem.prototype.hasImage = function() {
7327
+ return jspb.Message.getField(this, 6) != null;
7328
+ };
7329
+
7330
+
7331
+
7332
+ /**
7333
+ * Oneof group definitions for this message. Each group defines the field
7334
+ * numbers belonging to that group. When of these fields' value is set, all
7335
+ * other fields in the group are cleared. During deserialization, if multiple
7336
+ * fields are encountered for a group, only the last value seen will be kept.
7337
+ * @private {!Array<!Array<number>>}
7338
+ * @const
7339
+ */
7340
+ proto.game.ProviderRequest.oneofGroups_ = [[1,2]];
7341
+
7342
+ /**
7343
+ * @enum {number}
7344
+ */
7345
+ proto.game.ProviderRequest.RequestCase = {
7346
+ REQUEST_NOT_SET: 0,
7347
+ PROVIDER_DATA: 1,
7348
+ FILE: 2
7349
+ };
7350
+
7351
+ /**
7352
+ * @return {proto.game.ProviderRequest.RequestCase}
7353
+ */
7354
+ proto.game.ProviderRequest.prototype.getRequestCase = function() {
7355
+ return /** @type {proto.game.ProviderRequest.RequestCase} */(jspb.Message.computeOneofCase(this, proto.game.ProviderRequest.oneofGroups_[0]));
7356
+ };
7357
+
7358
+
7359
+
7360
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7361
+ /**
7362
+ * Creates an object representation of this proto.
7363
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7364
+ * Optional fields that are not set will be set to undefined.
7365
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7366
+ * For the list of reserved names please see:
7367
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7368
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7369
+ * JSPB instance for transitional soy proto support:
7370
+ * http://goto/soy-param-migration
7371
+ * @return {!Object}
7372
+ */
7373
+ proto.game.ProviderRequest.prototype.toObject = function(opt_includeInstance) {
7374
+ return proto.game.ProviderRequest.toObject(opt_includeInstance, this);
7375
+ };
7376
+
7377
+
7378
+ /**
7379
+ * Static version of the {@see toObject} method.
7380
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7381
+ * the JSPB instance for transitional soy proto support:
7382
+ * http://goto/soy-param-migration
7383
+ * @param {!proto.game.ProviderRequest} msg The msg instance to transform.
7384
+ * @return {!Object}
7385
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7386
+ */
7387
+ proto.game.ProviderRequest.toObject = function(includeInstance, msg) {
7388
+ var f, obj = {
7389
+ providerData: (f = msg.getProviderData()) && proto.game.ProviderItemRequest.toObject(includeInstance, f),
7390
+ file: (f = msg.getFile()) && proto.game.File.toObject(includeInstance, f)
7391
+ };
7392
+
7393
+ if (includeInstance) {
7394
+ obj.$jspbMessageInstance = msg;
7395
+ }
7396
+ return obj;
7397
+ };
7398
+ }
7399
+
7400
+
7401
+ /**
7402
+ * Deserializes binary data (in protobuf wire format).
7403
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7404
+ * @return {!proto.game.ProviderRequest}
7405
+ */
7406
+ proto.game.ProviderRequest.deserializeBinary = function(bytes) {
7407
+ var reader = new jspb.BinaryReader(bytes);
7408
+ var msg = new proto.game.ProviderRequest;
7409
+ return proto.game.ProviderRequest.deserializeBinaryFromReader(msg, reader);
7410
+ };
7411
+
7412
+
7413
+ /**
7414
+ * Deserializes binary data (in protobuf wire format) from the
7415
+ * given reader into the given message object.
7416
+ * @param {!proto.game.ProviderRequest} msg The message object to deserialize into.
7417
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7418
+ * @return {!proto.game.ProviderRequest}
7419
+ */
7420
+ proto.game.ProviderRequest.deserializeBinaryFromReader = function(msg, reader) {
7421
+ while (reader.nextField()) {
7422
+ if (reader.isEndGroup()) {
7423
+ break;
7424
+ }
7425
+ var field = reader.getFieldNumber();
7426
+ switch (field) {
7427
+ case 1:
7428
+ var value = new proto.game.ProviderItemRequest;
7429
+ reader.readMessage(value,proto.game.ProviderItemRequest.deserializeBinaryFromReader);
7430
+ msg.setProviderData(value);
7431
+ break;
7432
+ case 2:
7433
+ var value = new proto.game.File;
7434
+ reader.readMessage(value,proto.game.File.deserializeBinaryFromReader);
7435
+ msg.setFile(value);
7436
+ break;
7437
+ default:
7438
+ reader.skipField();
7439
+ break;
7440
+ }
7441
+ }
7442
+ return msg;
7443
+ };
7444
+
7445
+
7446
+ /**
7447
+ * Serializes the message to binary data (in protobuf wire format).
7448
+ * @return {!Uint8Array}
7449
+ */
7450
+ proto.game.ProviderRequest.prototype.serializeBinary = function() {
7451
+ var writer = new jspb.BinaryWriter();
7452
+ proto.game.ProviderRequest.serializeBinaryToWriter(this, writer);
7453
+ return writer.getResultBuffer();
7454
+ };
7455
+
7456
+
7457
+ /**
7458
+ * Serializes the given message to binary data (in protobuf wire
7459
+ * format), writing to the given BinaryWriter.
7460
+ * @param {!proto.game.ProviderRequest} message
7461
+ * @param {!jspb.BinaryWriter} writer
7462
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7463
+ */
7464
+ proto.game.ProviderRequest.serializeBinaryToWriter = function(message, writer) {
7465
+ var f = undefined;
7466
+ f = message.getProviderData();
7467
+ if (f != null) {
7468
+ writer.writeMessage(
7469
+ 1,
7470
+ f,
7471
+ proto.game.ProviderItemRequest.serializeBinaryToWriter
7472
+ );
7473
+ }
7474
+ f = message.getFile();
7475
+ if (f != null) {
7476
+ writer.writeMessage(
7477
+ 2,
7478
+ f,
7479
+ proto.game.File.serializeBinaryToWriter
7480
+ );
7481
+ }
7482
+ };
7483
+
7484
+
7485
+ /**
7486
+ * optional ProviderItemRequest provider_data = 1;
7487
+ * @return {?proto.game.ProviderItemRequest}
7488
+ */
7489
+ proto.game.ProviderRequest.prototype.getProviderData = function() {
7490
+ return /** @type{?proto.game.ProviderItemRequest} */ (
7491
+ jspb.Message.getWrapperField(this, proto.game.ProviderItemRequest, 1));
7492
+ };
7493
+
7494
+
7495
+ /**
7496
+ * @param {?proto.game.ProviderItemRequest|undefined} value
7497
+ * @return {!proto.game.ProviderRequest} returns this
7498
+ */
7499
+ proto.game.ProviderRequest.prototype.setProviderData = function(value) {
7500
+ return jspb.Message.setOneofWrapperField(this, 1, proto.game.ProviderRequest.oneofGroups_[0], value);
7501
+ };
7502
+
7503
+
7504
+ /**
7505
+ * Clears the message field making it undefined.
7506
+ * @return {!proto.game.ProviderRequest} returns this
7507
+ */
7508
+ proto.game.ProviderRequest.prototype.clearProviderData = function() {
7509
+ return this.setProviderData(undefined);
7510
+ };
7511
+
7512
+
7513
+ /**
7514
+ * Returns whether this field is set.
7515
+ * @return {boolean}
7516
+ */
7517
+ proto.game.ProviderRequest.prototype.hasProviderData = function() {
7518
+ return jspb.Message.getField(this, 1) != null;
7519
+ };
7520
+
7521
+
7522
+ /**
7523
+ * optional File file = 2;
7524
+ * @return {?proto.game.File}
7525
+ */
7526
+ proto.game.ProviderRequest.prototype.getFile = function() {
7527
+ return /** @type{?proto.game.File} */ (
7528
+ jspb.Message.getWrapperField(this, proto.game.File, 2));
7529
+ };
7530
+
7531
+
7532
+ /**
7533
+ * @param {?proto.game.File|undefined} value
7534
+ * @return {!proto.game.ProviderRequest} returns this
7535
+ */
7536
+ proto.game.ProviderRequest.prototype.setFile = function(value) {
7537
+ return jspb.Message.setOneofWrapperField(this, 2, proto.game.ProviderRequest.oneofGroups_[0], value);
7538
+ };
7539
+
7540
+
7541
+ /**
7542
+ * Clears the message field making it undefined.
7543
+ * @return {!proto.game.ProviderRequest} returns this
7544
+ */
7545
+ proto.game.ProviderRequest.prototype.clearFile = function() {
7546
+ return this.setFile(undefined);
7547
+ };
7548
+
7549
+
7550
+ /**
7551
+ * Returns whether this field is set.
7552
+ * @return {boolean}
7553
+ */
7554
+ proto.game.ProviderRequest.prototype.hasFile = function() {
7555
+ return jspb.Message.getField(this, 2) != null;
7556
+ };
7557
+
7558
+
7559
+
7560
+
7561
+
7562
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7563
+ /**
7564
+ * Creates an object representation of this proto.
7565
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7566
+ * Optional fields that are not set will be set to undefined.
7567
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7568
+ * For the list of reserved names please see:
7569
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7570
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7571
+ * JSPB instance for transitional soy proto support:
7572
+ * http://goto/soy-param-migration
7573
+ * @return {!Object}
7574
+ */
7575
+ proto.game.ProviderItemRequest.prototype.toObject = function(opt_includeInstance) {
7576
+ return proto.game.ProviderItemRequest.toObject(opt_includeInstance, this);
7577
+ };
7578
+
7579
+
7580
+ /**
7581
+ * Static version of the {@see toObject} method.
7582
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7583
+ * the JSPB instance for transitional soy proto support:
7584
+ * http://goto/soy-param-migration
7585
+ * @param {!proto.game.ProviderItemRequest} msg The msg instance to transform.
7586
+ * @return {!Object}
7587
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7588
+ */
7589
+ proto.game.ProviderItemRequest.toObject = function(includeInstance, msg) {
7590
+ var f, obj = {
7591
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
7592
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
7593
+ slug: jspb.Message.getFieldWithDefault(msg, 3, ""),
7594
+ description: jspb.Message.getFieldWithDefault(msg, 4, ""),
7595
+ isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
7596
+ fileName: jspb.Message.getFieldWithDefault(msg, 6, ""),
7597
+ fileType: jspb.Message.getFieldWithDefault(msg, 7, "")
7598
+ };
7599
+
7600
+ if (includeInstance) {
7601
+ obj.$jspbMessageInstance = msg;
7602
+ }
7603
+ return obj;
7604
+ };
7605
+ }
7606
+
7607
+
7608
+ /**
7609
+ * Deserializes binary data (in protobuf wire format).
7610
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7611
+ * @return {!proto.game.ProviderItemRequest}
7612
+ */
7613
+ proto.game.ProviderItemRequest.deserializeBinary = function(bytes) {
7614
+ var reader = new jspb.BinaryReader(bytes);
7615
+ var msg = new proto.game.ProviderItemRequest;
7616
+ return proto.game.ProviderItemRequest.deserializeBinaryFromReader(msg, reader);
7617
+ };
7618
+
7619
+
7620
+ /**
7621
+ * Deserializes binary data (in protobuf wire format) from the
7622
+ * given reader into the given message object.
7623
+ * @param {!proto.game.ProviderItemRequest} msg The message object to deserialize into.
7624
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7625
+ * @return {!proto.game.ProviderItemRequest}
7626
+ */
7627
+ proto.game.ProviderItemRequest.deserializeBinaryFromReader = function(msg, reader) {
7628
+ while (reader.nextField()) {
7629
+ if (reader.isEndGroup()) {
7630
+ break;
7631
+ }
7632
+ var field = reader.getFieldNumber();
7633
+ switch (field) {
7634
+ case 1:
7635
+ var value = /** @type {number} */ (reader.readInt32());
7636
+ msg.setId(value);
7637
+ break;
7638
+ case 2:
7639
+ var value = /** @type {string} */ (reader.readString());
7640
+ msg.setTitle(value);
7641
+ break;
7642
+ case 3:
7643
+ var value = /** @type {string} */ (reader.readString());
7644
+ msg.setSlug(value);
7645
+ break;
7646
+ case 4:
7647
+ var value = /** @type {string} */ (reader.readString());
7648
+ msg.setDescription(value);
7649
+ break;
7650
+ case 5:
7651
+ var value = /** @type {number} */ (reader.readInt32());
7652
+ msg.setIsActive(value);
7653
+ break;
7654
+ case 6:
7655
+ var value = /** @type {string} */ (reader.readString());
7656
+ msg.setFileName(value);
7657
+ break;
7658
+ case 7:
7659
+ var value = /** @type {string} */ (reader.readString());
7660
+ msg.setFileType(value);
7661
+ break;
7662
+ default:
7663
+ reader.skipField();
7664
+ break;
7665
+ }
7666
+ }
7667
+ return msg;
7668
+ };
7669
+
7670
+
7671
+ /**
7672
+ * Serializes the message to binary data (in protobuf wire format).
7673
+ * @return {!Uint8Array}
7674
+ */
7675
+ proto.game.ProviderItemRequest.prototype.serializeBinary = function() {
7676
+ var writer = new jspb.BinaryWriter();
7677
+ proto.game.ProviderItemRequest.serializeBinaryToWriter(this, writer);
7678
+ return writer.getResultBuffer();
7679
+ };
7680
+
7681
+
7682
+ /**
7683
+ * Serializes the given message to binary data (in protobuf wire
7684
+ * format), writing to the given BinaryWriter.
7685
+ * @param {!proto.game.ProviderItemRequest} message
7686
+ * @param {!jspb.BinaryWriter} writer
7687
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7688
+ */
7689
+ proto.game.ProviderItemRequest.serializeBinaryToWriter = function(message, writer) {
7690
+ var f = undefined;
7691
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
7692
+ if (f != null) {
7693
+ writer.writeInt32(
7694
+ 1,
7695
+ f
7696
+ );
7697
+ }
7698
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
7699
+ if (f != null) {
7700
+ writer.writeString(
7701
+ 2,
7702
+ f
7703
+ );
7704
+ }
7705
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
7706
+ if (f != null) {
7707
+ writer.writeString(
7708
+ 3,
7709
+ f
7710
+ );
7711
+ }
7712
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
7713
+ if (f != null) {
7714
+ writer.writeString(
7715
+ 4,
7716
+ f
7717
+ );
7718
+ }
7719
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
7720
+ if (f != null) {
7721
+ writer.writeInt32(
7722
+ 5,
7723
+ f
7724
+ );
7725
+ }
7726
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
7727
+ if (f != null) {
7728
+ writer.writeString(
7729
+ 6,
7730
+ f
7731
+ );
7732
+ }
7733
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
7734
+ if (f != null) {
7735
+ writer.writeString(
7736
+ 7,
7737
+ f
7738
+ );
7739
+ }
7740
+ };
7741
+
7742
+
7743
+ /**
7744
+ * optional int32 id = 1;
7745
+ * @return {number}
7746
+ */
7747
+ proto.game.ProviderItemRequest.prototype.getId = function() {
7748
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
7749
+ };
7750
+
7751
+
7752
+ /**
7753
+ * @param {number} value
7754
+ * @return {!proto.game.ProviderItemRequest} returns this
7755
+ */
7756
+ proto.game.ProviderItemRequest.prototype.setId = function(value) {
7757
+ return jspb.Message.setField(this, 1, value);
7758
+ };
7759
+
7760
+
7761
+ /**
7762
+ * Clears the field making it undefined.
7763
+ * @return {!proto.game.ProviderItemRequest} returns this
7764
+ */
7765
+ proto.game.ProviderItemRequest.prototype.clearId = function() {
7766
+ return jspb.Message.setField(this, 1, undefined);
7767
+ };
7768
+
7769
+
7770
+ /**
7771
+ * Returns whether this field is set.
7772
+ * @return {boolean}
7773
+ */
7774
+ proto.game.ProviderItemRequest.prototype.hasId = function() {
7775
+ return jspb.Message.getField(this, 1) != null;
7776
+ };
7777
+
7778
+
7779
+ /**
7780
+ * optional string title = 2;
7781
+ * @return {string}
7782
+ */
7783
+ proto.game.ProviderItemRequest.prototype.getTitle = function() {
7784
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
7785
+ };
7786
+
7787
+
7788
+ /**
7789
+ * @param {string} value
7790
+ * @return {!proto.game.ProviderItemRequest} returns this
7791
+ */
7792
+ proto.game.ProviderItemRequest.prototype.setTitle = function(value) {
7793
+ return jspb.Message.setField(this, 2, value);
7794
+ };
7795
+
7796
+
7797
+ /**
7798
+ * Clears the field making it undefined.
7799
+ * @return {!proto.game.ProviderItemRequest} returns this
7800
+ */
7801
+ proto.game.ProviderItemRequest.prototype.clearTitle = function() {
7802
+ return jspb.Message.setField(this, 2, undefined);
7803
+ };
7804
+
7805
+
7806
+ /**
7807
+ * Returns whether this field is set.
7808
+ * @return {boolean}
7809
+ */
7810
+ proto.game.ProviderItemRequest.prototype.hasTitle = function() {
7811
+ return jspb.Message.getField(this, 2) != null;
7812
+ };
7813
+
7814
+
7815
+ /**
7816
+ * optional string slug = 3;
7817
+ * @return {string}
7818
+ */
7819
+ proto.game.ProviderItemRequest.prototype.getSlug = function() {
7820
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
7821
+ };
7822
+
7823
+
7824
+ /**
7825
+ * @param {string} value
7826
+ * @return {!proto.game.ProviderItemRequest} returns this
7827
+ */
7828
+ proto.game.ProviderItemRequest.prototype.setSlug = function(value) {
7829
+ return jspb.Message.setField(this, 3, value);
7830
+ };
7831
+
7832
+
7833
+ /**
7834
+ * Clears the field making it undefined.
7835
+ * @return {!proto.game.ProviderItemRequest} returns this
7836
+ */
7837
+ proto.game.ProviderItemRequest.prototype.clearSlug = function() {
7838
+ return jspb.Message.setField(this, 3, undefined);
7839
+ };
7840
+
7841
+
7842
+ /**
7843
+ * Returns whether this field is set.
7844
+ * @return {boolean}
7845
+ */
7846
+ proto.game.ProviderItemRequest.prototype.hasSlug = function() {
7847
+ return jspb.Message.getField(this, 3) != null;
7848
+ };
7849
+
7850
+
7851
+ /**
7852
+ * optional string description = 4;
7853
+ * @return {string}
7854
+ */
7855
+ proto.game.ProviderItemRequest.prototype.getDescription = function() {
7856
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
7857
+ };
7858
+
7859
+
7860
+ /**
7861
+ * @param {string} value
7862
+ * @return {!proto.game.ProviderItemRequest} returns this
7863
+ */
7864
+ proto.game.ProviderItemRequest.prototype.setDescription = function(value) {
7865
+ return jspb.Message.setField(this, 4, value);
7866
+ };
7867
+
7868
+
7869
+ /**
7870
+ * Clears the field making it undefined.
7871
+ * @return {!proto.game.ProviderItemRequest} returns this
7872
+ */
7873
+ proto.game.ProviderItemRequest.prototype.clearDescription = function() {
7874
+ return jspb.Message.setField(this, 4, undefined);
7875
+ };
7876
+
7877
+
7878
+ /**
7879
+ * Returns whether this field is set.
7880
+ * @return {boolean}
7881
+ */
7882
+ proto.game.ProviderItemRequest.prototype.hasDescription = function() {
7883
+ return jspb.Message.getField(this, 4) != null;
7884
+ };
7885
+
7886
+
7887
+ /**
7888
+ * optional int32 is_active = 5;
7889
+ * @return {number}
7890
+ */
7891
+ proto.game.ProviderItemRequest.prototype.getIsActive = function() {
7892
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
7893
+ };
7894
+
7895
+
7896
+ /**
7897
+ * @param {number} value
7898
+ * @return {!proto.game.ProviderItemRequest} returns this
7899
+ */
7900
+ proto.game.ProviderItemRequest.prototype.setIsActive = function(value) {
7901
+ return jspb.Message.setField(this, 5, value);
7902
+ };
7903
+
7904
+
7905
+ /**
7906
+ * Clears the field making it undefined.
7907
+ * @return {!proto.game.ProviderItemRequest} returns this
7908
+ */
7909
+ proto.game.ProviderItemRequest.prototype.clearIsActive = function() {
7910
+ return jspb.Message.setField(this, 5, undefined);
7911
+ };
7912
+
7913
+
7914
+ /**
7915
+ * Returns whether this field is set.
7916
+ * @return {boolean}
7917
+ */
7918
+ proto.game.ProviderItemRequest.prototype.hasIsActive = function() {
7919
+ return jspb.Message.getField(this, 5) != null;
7920
+ };
7921
+
7922
+
7923
+ /**
7924
+ * optional string file_name = 6;
7925
+ * @return {string}
7926
+ */
7927
+ proto.game.ProviderItemRequest.prototype.getFileName = function() {
7928
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
7929
+ };
7930
+
7931
+
7932
+ /**
7933
+ * @param {string} value
7934
+ * @return {!proto.game.ProviderItemRequest} returns this
7935
+ */
7936
+ proto.game.ProviderItemRequest.prototype.setFileName = function(value) {
7937
+ return jspb.Message.setField(this, 6, value);
7938
+ };
7939
+
7940
+
7941
+ /**
7942
+ * Clears the field making it undefined.
7943
+ * @return {!proto.game.ProviderItemRequest} returns this
7944
+ */
7945
+ proto.game.ProviderItemRequest.prototype.clearFileName = function() {
7946
+ return jspb.Message.setField(this, 6, undefined);
7947
+ };
7948
+
7949
+
7950
+ /**
7951
+ * Returns whether this field is set.
7952
+ * @return {boolean}
7953
+ */
7954
+ proto.game.ProviderItemRequest.prototype.hasFileName = function() {
7955
+ return jspb.Message.getField(this, 6) != null;
7956
+ };
7957
+
7958
+
7959
+ /**
7960
+ * optional string file_type = 7;
7961
+ * @return {string}
7962
+ */
7963
+ proto.game.ProviderItemRequest.prototype.getFileType = function() {
7964
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
7965
+ };
7966
+
7967
+
7968
+ /**
7969
+ * @param {string} value
7970
+ * @return {!proto.game.ProviderItemRequest} returns this
7971
+ */
7972
+ proto.game.ProviderItemRequest.prototype.setFileType = function(value) {
7973
+ return jspb.Message.setField(this, 7, value);
7974
+ };
7975
+
7976
+
7977
+ /**
7978
+ * Clears the field making it undefined.
7979
+ * @return {!proto.game.ProviderItemRequest} returns this
7980
+ */
7981
+ proto.game.ProviderItemRequest.prototype.clearFileType = function() {
7982
+ return jspb.Message.setField(this, 7, undefined);
7983
+ };
7984
+
7985
+
7986
+ /**
7987
+ * Returns whether this field is set.
7988
+ * @return {boolean}
7989
+ */
7990
+ proto.game.ProviderItemRequest.prototype.hasFileType = function() {
7991
+ return jspb.Message.getField(this, 7) != null;
7992
+ };
7993
+
7994
+
7995
+
7996
+
7997
+
7998
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7999
+ /**
8000
+ * Creates an object representation of this proto.
8001
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8002
+ * Optional fields that are not set will be set to undefined.
8003
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8004
+ * For the list of reserved names please see:
8005
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8006
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8007
+ * JSPB instance for transitional soy proto support:
8008
+ * http://goto/soy-param-migration
8009
+ * @return {!Object}
8010
+ */
8011
+ proto.game.GetProviderRequest.prototype.toObject = function(opt_includeInstance) {
8012
+ return proto.game.GetProviderRequest.toObject(opt_includeInstance, this);
8013
+ };
8014
+
8015
+
8016
+ /**
8017
+ * Static version of the {@see toObject} method.
8018
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8019
+ * the JSPB instance for transitional soy proto support:
8020
+ * http://goto/soy-param-migration
8021
+ * @param {!proto.game.GetProviderRequest} msg The msg instance to transform.
8022
+ * @return {!Object}
8023
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8024
+ */
8025
+ proto.game.GetProviderRequest.toObject = function(includeInstance, msg) {
8026
+ var f, obj = {
8027
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
8028
+ };
8029
+
8030
+ if (includeInstance) {
8031
+ obj.$jspbMessageInstance = msg;
8032
+ }
8033
+ return obj;
8034
+ };
8035
+ }
8036
+
8037
+
8038
+ /**
8039
+ * Deserializes binary data (in protobuf wire format).
8040
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8041
+ * @return {!proto.game.GetProviderRequest}
8042
+ */
8043
+ proto.game.GetProviderRequest.deserializeBinary = function(bytes) {
8044
+ var reader = new jspb.BinaryReader(bytes);
8045
+ var msg = new proto.game.GetProviderRequest;
8046
+ return proto.game.GetProviderRequest.deserializeBinaryFromReader(msg, reader);
8047
+ };
8048
+
8049
+
8050
+ /**
8051
+ * Deserializes binary data (in protobuf wire format) from the
8052
+ * given reader into the given message object.
8053
+ * @param {!proto.game.GetProviderRequest} msg The message object to deserialize into.
8054
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8055
+ * @return {!proto.game.GetProviderRequest}
8056
+ */
8057
+ proto.game.GetProviderRequest.deserializeBinaryFromReader = function(msg, reader) {
8058
+ while (reader.nextField()) {
8059
+ if (reader.isEndGroup()) {
8060
+ break;
8061
+ }
8062
+ var field = reader.getFieldNumber();
8063
+ switch (field) {
8064
+ case 1:
8065
+ var value = /** @type {number} */ (reader.readInt32());
8066
+ msg.setId(value);
8067
+ break;
8068
+ default:
8069
+ reader.skipField();
8070
+ break;
8071
+ }
8072
+ }
8073
+ return msg;
8074
+ };
8075
+
8076
+
8077
+ /**
8078
+ * Serializes the message to binary data (in protobuf wire format).
8079
+ * @return {!Uint8Array}
8080
+ */
8081
+ proto.game.GetProviderRequest.prototype.serializeBinary = function() {
8082
+ var writer = new jspb.BinaryWriter();
8083
+ proto.game.GetProviderRequest.serializeBinaryToWriter(this, writer);
8084
+ return writer.getResultBuffer();
8085
+ };
8086
+
8087
+
8088
+ /**
8089
+ * Serializes the given message to binary data (in protobuf wire
8090
+ * format), writing to the given BinaryWriter.
8091
+ * @param {!proto.game.GetProviderRequest} message
8092
+ * @param {!jspb.BinaryWriter} writer
8093
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8094
+ */
8095
+ proto.game.GetProviderRequest.serializeBinaryToWriter = function(message, writer) {
8096
+ var f = undefined;
8097
+ f = message.getId();
8098
+ if (f !== 0) {
8099
+ writer.writeInt32(
8100
+ 1,
8101
+ f
8102
+ );
8103
+ }
8104
+ };
8105
+
8106
+
8107
+ /**
8108
+ * optional int32 id = 1;
8109
+ * @return {number}
8110
+ */
8111
+ proto.game.GetProviderRequest.prototype.getId = function() {
8112
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
8113
+ };
8114
+
8115
+
8116
+ /**
8117
+ * @param {number} value
8118
+ * @return {!proto.game.GetProviderRequest} returns this
8119
+ */
8120
+ proto.game.GetProviderRequest.prototype.setId = function(value) {
8121
+ return jspb.Message.setProto3IntField(this, 1, value);
8122
+ };
8123
+
8124
+
8125
+
8126
+
8127
+
8128
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8129
+ /**
8130
+ * Creates an object representation of this proto.
8131
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8132
+ * Optional fields that are not set will be set to undefined.
8133
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8134
+ * For the list of reserved names please see:
8135
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8136
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8137
+ * JSPB instance for transitional soy proto support:
8138
+ * http://goto/soy-param-migration
8139
+ * @return {!Object}
8140
+ */
8141
+ proto.game.ProviderResponse.prototype.toObject = function(opt_includeInstance) {
8142
+ return proto.game.ProviderResponse.toObject(opt_includeInstance, this);
8143
+ };
8144
+
8145
+
8146
+ /**
8147
+ * Static version of the {@see toObject} method.
8148
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8149
+ * the JSPB instance for transitional soy proto support:
8150
+ * http://goto/soy-param-migration
8151
+ * @param {!proto.game.ProviderResponse} msg The msg instance to transform.
8152
+ * @return {!Object}
8153
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8154
+ */
8155
+ proto.game.ProviderResponse.toObject = function(includeInstance, msg) {
8156
+ var f, obj = {
8157
+ data: (f = msg.getData()) && proto.game.ProviderItem.toObject(includeInstance, f)
8158
+ };
8159
+
8160
+ if (includeInstance) {
8161
+ obj.$jspbMessageInstance = msg;
8162
+ }
8163
+ return obj;
8164
+ };
8165
+ }
8166
+
8167
+
8168
+ /**
8169
+ * Deserializes binary data (in protobuf wire format).
8170
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8171
+ * @return {!proto.game.ProviderResponse}
8172
+ */
8173
+ proto.game.ProviderResponse.deserializeBinary = function(bytes) {
8174
+ var reader = new jspb.BinaryReader(bytes);
8175
+ var msg = new proto.game.ProviderResponse;
8176
+ return proto.game.ProviderResponse.deserializeBinaryFromReader(msg, reader);
8177
+ };
8178
+
8179
+
8180
+ /**
8181
+ * Deserializes binary data (in protobuf wire format) from the
8182
+ * given reader into the given message object.
8183
+ * @param {!proto.game.ProviderResponse} msg The message object to deserialize into.
8184
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8185
+ * @return {!proto.game.ProviderResponse}
8186
+ */
8187
+ proto.game.ProviderResponse.deserializeBinaryFromReader = function(msg, reader) {
8188
+ while (reader.nextField()) {
8189
+ if (reader.isEndGroup()) {
8190
+ break;
8191
+ }
8192
+ var field = reader.getFieldNumber();
8193
+ switch (field) {
8194
+ case 1:
8195
+ var value = new proto.game.ProviderItem;
8196
+ reader.readMessage(value,proto.game.ProviderItem.deserializeBinaryFromReader);
8197
+ msg.setData(value);
8198
+ break;
8199
+ default:
8200
+ reader.skipField();
8201
+ break;
8202
+ }
8203
+ }
8204
+ return msg;
8205
+ };
8206
+
8207
+
8208
+ /**
8209
+ * Serializes the message to binary data (in protobuf wire format).
8210
+ * @return {!Uint8Array}
8211
+ */
8212
+ proto.game.ProviderResponse.prototype.serializeBinary = function() {
8213
+ var writer = new jspb.BinaryWriter();
8214
+ proto.game.ProviderResponse.serializeBinaryToWriter(this, writer);
8215
+ return writer.getResultBuffer();
8216
+ };
8217
+
8218
+
8219
+ /**
8220
+ * Serializes the given message to binary data (in protobuf wire
8221
+ * format), writing to the given BinaryWriter.
8222
+ * @param {!proto.game.ProviderResponse} message
8223
+ * @param {!jspb.BinaryWriter} writer
8224
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8225
+ */
8226
+ proto.game.ProviderResponse.serializeBinaryToWriter = function(message, writer) {
8227
+ var f = undefined;
8228
+ f = message.getData();
8229
+ if (f != null) {
8230
+ writer.writeMessage(
8231
+ 1,
8232
+ f,
8233
+ proto.game.ProviderItem.serializeBinaryToWriter
8234
+ );
8235
+ }
8236
+ };
8237
+
8238
+
8239
+ /**
8240
+ * optional ProviderItem data = 1;
8241
+ * @return {?proto.game.ProviderItem}
8242
+ */
8243
+ proto.game.ProviderResponse.prototype.getData = function() {
8244
+ return /** @type{?proto.game.ProviderItem} */ (
8245
+ jspb.Message.getWrapperField(this, proto.game.ProviderItem, 1));
8246
+ };
8247
+
8248
+
8249
+ /**
8250
+ * @param {?proto.game.ProviderItem|undefined} value
8251
+ * @return {!proto.game.ProviderResponse} returns this
8252
+ */
8253
+ proto.game.ProviderResponse.prototype.setData = function(value) {
8254
+ return jspb.Message.setWrapperField(this, 1, value);
8255
+ };
8256
+
8257
+
8258
+ /**
8259
+ * Clears the message field making it undefined.
8260
+ * @return {!proto.game.ProviderResponse} returns this
8261
+ */
8262
+ proto.game.ProviderResponse.prototype.clearData = function() {
8263
+ return this.setData(undefined);
8264
+ };
8265
+
8266
+
8267
+ /**
8268
+ * Returns whether this field is set.
8269
+ * @return {boolean}
8270
+ */
8271
+ proto.game.ProviderResponse.prototype.hasData = function() {
8272
+ return jspb.Message.getField(this, 1) != null;
8273
+ };
8274
+
8275
+
8276
+
8277
+ /**
8278
+ * List of repeated fields within this message type.
8279
+ * @private {!Array<number>}
8280
+ * @const
8281
+ */
8282
+ proto.game.ProviderItemsResponse.repeatedFields_ = [1];
8283
+
8284
+
8285
+
8286
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8287
+ /**
8288
+ * Creates an object representation of this proto.
8289
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8290
+ * Optional fields that are not set will be set to undefined.
8291
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8292
+ * For the list of reserved names please see:
8293
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8294
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8295
+ * JSPB instance for transitional soy proto support:
8296
+ * http://goto/soy-param-migration
8297
+ * @return {!Object}
8298
+ */
8299
+ proto.game.ProviderItemsResponse.prototype.toObject = function(opt_includeInstance) {
8300
+ return proto.game.ProviderItemsResponse.toObject(opt_includeInstance, this);
8301
+ };
8302
+
8303
+
8304
+ /**
8305
+ * Static version of the {@see toObject} method.
8306
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8307
+ * the JSPB instance for transitional soy proto support:
8308
+ * http://goto/soy-param-migration
8309
+ * @param {!proto.game.ProviderItemsResponse} msg The msg instance to transform.
8310
+ * @return {!Object}
8311
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8312
+ */
8313
+ proto.game.ProviderItemsResponse.toObject = function(includeInstance, msg) {
8314
+ var f, obj = {
8315
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
8316
+ proto.game.ProviderItem.toObject, includeInstance),
8317
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
8318
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
8319
+ };
8320
+
8321
+ if (includeInstance) {
8322
+ obj.$jspbMessageInstance = msg;
8323
+ }
8324
+ return obj;
8325
+ };
8326
+ }
8327
+
8328
+
8329
+ /**
8330
+ * Deserializes binary data (in protobuf wire format).
8331
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8332
+ * @return {!proto.game.ProviderItemsResponse}
8333
+ */
8334
+ proto.game.ProviderItemsResponse.deserializeBinary = function(bytes) {
8335
+ var reader = new jspb.BinaryReader(bytes);
8336
+ var msg = new proto.game.ProviderItemsResponse;
8337
+ return proto.game.ProviderItemsResponse.deserializeBinaryFromReader(msg, reader);
8338
+ };
8339
+
8340
+
8341
+ /**
8342
+ * Deserializes binary data (in protobuf wire format) from the
8343
+ * given reader into the given message object.
8344
+ * @param {!proto.game.ProviderItemsResponse} msg The message object to deserialize into.
8345
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8346
+ * @return {!proto.game.ProviderItemsResponse}
8347
+ */
8348
+ proto.game.ProviderItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
8349
+ while (reader.nextField()) {
8350
+ if (reader.isEndGroup()) {
8351
+ break;
8352
+ }
8353
+ var field = reader.getFieldNumber();
8354
+ switch (field) {
8355
+ case 1:
8356
+ var value = new proto.game.ProviderItem;
8357
+ reader.readMessage(value,proto.game.ProviderItem.deserializeBinaryFromReader);
8358
+ msg.addItems(value);
8359
+ break;
8360
+ case 2:
8361
+ var value = /** @type {number} */ (reader.readInt32());
8362
+ msg.setTotalPages(value);
8363
+ break;
8364
+ case 3:
8365
+ var value = /** @type {number} */ (reader.readInt32());
8366
+ msg.setTotalItems(value);
8367
+ break;
8368
+ default:
8369
+ reader.skipField();
8370
+ break;
8371
+ }
8372
+ }
8373
+ return msg;
8374
+ };
8375
+
8376
+
8377
+ /**
8378
+ * Serializes the message to binary data (in protobuf wire format).
8379
+ * @return {!Uint8Array}
8380
+ */
8381
+ proto.game.ProviderItemsResponse.prototype.serializeBinary = function() {
8382
+ var writer = new jspb.BinaryWriter();
8383
+ proto.game.ProviderItemsResponse.serializeBinaryToWriter(this, writer);
8384
+ return writer.getResultBuffer();
8385
+ };
8386
+
8387
+
8388
+ /**
8389
+ * Serializes the given message to binary data (in protobuf wire
8390
+ * format), writing to the given BinaryWriter.
8391
+ * @param {!proto.game.ProviderItemsResponse} message
8392
+ * @param {!jspb.BinaryWriter} writer
8393
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8394
+ */
8395
+ proto.game.ProviderItemsResponse.serializeBinaryToWriter = function(message, writer) {
8396
+ var f = undefined;
8397
+ f = message.getItemsList();
8398
+ if (f.length > 0) {
8399
+ writer.writeRepeatedMessage(
8400
+ 1,
8401
+ f,
8402
+ proto.game.ProviderItem.serializeBinaryToWriter
8403
+ );
8404
+ }
8405
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
8406
+ if (f != null) {
8407
+ writer.writeInt32(
8408
+ 2,
8409
+ f
8410
+ );
8411
+ }
8412
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
8413
+ if (f != null) {
8414
+ writer.writeInt32(
8415
+ 3,
8416
+ f
8417
+ );
8418
+ }
8419
+ };
8420
+
8421
+
8422
+ /**
8423
+ * repeated ProviderItem items = 1;
8424
+ * @return {!Array<!proto.game.ProviderItem>}
8425
+ */
8426
+ proto.game.ProviderItemsResponse.prototype.getItemsList = function() {
8427
+ return /** @type{!Array<!proto.game.ProviderItem>} */ (
8428
+ jspb.Message.getRepeatedWrapperField(this, proto.game.ProviderItem, 1));
8429
+ };
8430
+
8431
+
8432
+ /**
8433
+ * @param {!Array<!proto.game.ProviderItem>} value
8434
+ * @return {!proto.game.ProviderItemsResponse} returns this
8435
+ */
8436
+ proto.game.ProviderItemsResponse.prototype.setItemsList = function(value) {
8437
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
8438
+ };
8439
+
8440
+
8441
+ /**
8442
+ * @param {!proto.game.ProviderItem=} opt_value
8443
+ * @param {number=} opt_index
8444
+ * @return {!proto.game.ProviderItem}
8445
+ */
8446
+ proto.game.ProviderItemsResponse.prototype.addItems = function(opt_value, opt_index) {
8447
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.game.ProviderItem, opt_index);
8448
+ };
8449
+
8450
+
8451
+ /**
8452
+ * Clears the list making it empty but non-null.
8453
+ * @return {!proto.game.ProviderItemsResponse} returns this
8454
+ */
8455
+ proto.game.ProviderItemsResponse.prototype.clearItemsList = function() {
8456
+ return this.setItemsList([]);
8457
+ };
8458
+
8459
+
8460
+ /**
8461
+ * optional int32 total_pages = 2;
8462
+ * @return {number}
8463
+ */
8464
+ proto.game.ProviderItemsResponse.prototype.getTotalPages = function() {
8465
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
8466
+ };
8467
+
8468
+
8469
+ /**
8470
+ * @param {number} value
8471
+ * @return {!proto.game.ProviderItemsResponse} returns this
8472
+ */
8473
+ proto.game.ProviderItemsResponse.prototype.setTotalPages = function(value) {
8474
+ return jspb.Message.setField(this, 2, value);
8475
+ };
8476
+
8477
+
8478
+ /**
8479
+ * Clears the field making it undefined.
8480
+ * @return {!proto.game.ProviderItemsResponse} returns this
8481
+ */
8482
+ proto.game.ProviderItemsResponse.prototype.clearTotalPages = function() {
8483
+ return jspb.Message.setField(this, 2, undefined);
8484
+ };
8485
+
8486
+
8487
+ /**
8488
+ * Returns whether this field is set.
8489
+ * @return {boolean}
8490
+ */
8491
+ proto.game.ProviderItemsResponse.prototype.hasTotalPages = function() {
8492
+ return jspb.Message.getField(this, 2) != null;
8493
+ };
8494
+
8495
+
8496
+ /**
8497
+ * optional int32 total_items = 3;
8498
+ * @return {number}
8499
+ */
8500
+ proto.game.ProviderItemsResponse.prototype.getTotalItems = function() {
8501
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
8502
+ };
8503
+
8504
+
8505
+ /**
8506
+ * @param {number} value
8507
+ * @return {!proto.game.ProviderItemsResponse} returns this
8508
+ */
8509
+ proto.game.ProviderItemsResponse.prototype.setTotalItems = function(value) {
8510
+ return jspb.Message.setField(this, 3, value);
8511
+ };
8512
+
8513
+
8514
+ /**
8515
+ * Clears the field making it undefined.
8516
+ * @return {!proto.game.ProviderItemsResponse} returns this
8517
+ */
8518
+ proto.game.ProviderItemsResponse.prototype.clearTotalItems = function() {
8519
+ return jspb.Message.setField(this, 3, undefined);
8520
+ };
8521
+
8522
+
8523
+ /**
8524
+ * Returns whether this field is set.
8525
+ * @return {boolean}
8526
+ */
8527
+ proto.game.ProviderItemsResponse.prototype.hasTotalItems = function() {
8528
+ return jspb.Message.getField(this, 3) != null;
8529
+ };
8530
+
8531
+
8532
+
8533
+
8534
+
8535
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8536
+ /**
8537
+ * Creates an object representation of this proto.
8538
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8539
+ * Optional fields that are not set will be set to undefined.
8540
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8541
+ * For the list of reserved names please see:
8542
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8543
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8544
+ * JSPB instance for transitional soy proto support:
8545
+ * http://goto/soy-param-migration
8546
+ * @return {!Object}
8547
+ */
8548
+ proto.game.ProviderStatusResponse.prototype.toObject = function(opt_includeInstance) {
8549
+ return proto.game.ProviderStatusResponse.toObject(opt_includeInstance, this);
8550
+ };
8551
+
8552
+
8553
+ /**
8554
+ * Static version of the {@see toObject} method.
8555
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8556
+ * the JSPB instance for transitional soy proto support:
8557
+ * http://goto/soy-param-migration
8558
+ * @param {!proto.game.ProviderStatusResponse} msg The msg instance to transform.
8559
+ * @return {!Object}
8560
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8561
+ */
8562
+ proto.game.ProviderStatusResponse.toObject = function(includeInstance, msg) {
8563
+ var f, obj = {
8564
+ status: jspb.Message.getFieldWithDefault(msg, 1, "")
8565
+ };
8566
+
8567
+ if (includeInstance) {
8568
+ obj.$jspbMessageInstance = msg;
8569
+ }
8570
+ return obj;
8571
+ };
8572
+ }
8573
+
8574
+
8575
+ /**
8576
+ * Deserializes binary data (in protobuf wire format).
8577
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8578
+ * @return {!proto.game.ProviderStatusResponse}
8579
+ */
8580
+ proto.game.ProviderStatusResponse.deserializeBinary = function(bytes) {
8581
+ var reader = new jspb.BinaryReader(bytes);
8582
+ var msg = new proto.game.ProviderStatusResponse;
8583
+ return proto.game.ProviderStatusResponse.deserializeBinaryFromReader(msg, reader);
8584
+ };
8585
+
8586
+
8587
+ /**
8588
+ * Deserializes binary data (in protobuf wire format) from the
8589
+ * given reader into the given message object.
8590
+ * @param {!proto.game.ProviderStatusResponse} msg The message object to deserialize into.
8591
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8592
+ * @return {!proto.game.ProviderStatusResponse}
8593
+ */
8594
+ proto.game.ProviderStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
8595
+ while (reader.nextField()) {
8596
+ if (reader.isEndGroup()) {
8597
+ break;
8598
+ }
8599
+ var field = reader.getFieldNumber();
8600
+ switch (field) {
8601
+ case 1:
8602
+ var value = /** @type {string} */ (reader.readString());
8603
+ msg.setStatus(value);
8604
+ break;
8605
+ default:
8606
+ reader.skipField();
8607
+ break;
8608
+ }
8609
+ }
8610
+ return msg;
8611
+ };
8612
+
8613
+
8614
+ /**
8615
+ * Serializes the message to binary data (in protobuf wire format).
8616
+ * @return {!Uint8Array}
8617
+ */
8618
+ proto.game.ProviderStatusResponse.prototype.serializeBinary = function() {
8619
+ var writer = new jspb.BinaryWriter();
8620
+ proto.game.ProviderStatusResponse.serializeBinaryToWriter(this, writer);
8621
+ return writer.getResultBuffer();
8622
+ };
8623
+
8624
+
8625
+ /**
8626
+ * Serializes the given message to binary data (in protobuf wire
8627
+ * format), writing to the given BinaryWriter.
8628
+ * @param {!proto.game.ProviderStatusResponse} message
8629
+ * @param {!jspb.BinaryWriter} writer
8630
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8631
+ */
8632
+ proto.game.ProviderStatusResponse.serializeBinaryToWriter = function(message, writer) {
8633
+ var f = undefined;
8634
+ f = message.getStatus();
8635
+ if (f.length > 0) {
8636
+ writer.writeString(
8637
+ 1,
8638
+ f
8639
+ );
8640
+ }
8641
+ };
8642
+
8643
+
8644
+ /**
8645
+ * optional string status = 1;
8646
+ * @return {string}
8647
+ */
8648
+ proto.game.ProviderStatusResponse.prototype.getStatus = function() {
8649
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
8650
+ };
8651
+
8652
+
8653
+ /**
8654
+ * @param {string} value
8655
+ * @return {!proto.game.ProviderStatusResponse} returns this
8656
+ */
8657
+ proto.game.ProviderStatusResponse.prototype.setStatus = function(value) {
8658
+ return jspb.Message.setProto3StringField(this, 1, value);
8659
+ };
8660
+
8661
+
8662
+
8663
+
8664
+
8665
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8666
+ /**
8667
+ * Creates an object representation of this proto.
8668
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8669
+ * Optional fields that are not set will be set to undefined.
8670
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8671
+ * For the list of reserved names please see:
8672
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8673
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8674
+ * JSPB instance for transitional soy proto support:
8675
+ * http://goto/soy-param-migration
8676
+ * @return {!Object}
8677
+ */
8678
+ proto.game.ParseGamesRequest.prototype.toObject = function(opt_includeInstance) {
8679
+ return proto.game.ParseGamesRequest.toObject(opt_includeInstance, this);
8680
+ };
8681
+
8682
+
8683
+ /**
8684
+ * Static version of the {@see toObject} method.
8685
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8686
+ * the JSPB instance for transitional soy proto support:
8687
+ * http://goto/soy-param-migration
8688
+ * @param {!proto.game.ParseGamesRequest} msg The msg instance to transform.
8689
+ * @return {!Object}
8690
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8691
+ */
8692
+ proto.game.ParseGamesRequest.toObject = function(includeInstance, msg) {
8693
+ var f, obj = {
8694
+ vendor: jspb.Message.getFieldWithDefault(msg, 1, "")
8695
+ };
8696
+
8697
+ if (includeInstance) {
8698
+ obj.$jspbMessageInstance = msg;
8699
+ }
8700
+ return obj;
8701
+ };
8702
+ }
8703
+
8704
+
8705
+ /**
8706
+ * Deserializes binary data (in protobuf wire format).
8707
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8708
+ * @return {!proto.game.ParseGamesRequest}
8709
+ */
8710
+ proto.game.ParseGamesRequest.deserializeBinary = function(bytes) {
8711
+ var reader = new jspb.BinaryReader(bytes);
8712
+ var msg = new proto.game.ParseGamesRequest;
8713
+ return proto.game.ParseGamesRequest.deserializeBinaryFromReader(msg, reader);
8714
+ };
8715
+
8716
+
8717
+ /**
8718
+ * Deserializes binary data (in protobuf wire format) from the
8719
+ * given reader into the given message object.
8720
+ * @param {!proto.game.ParseGamesRequest} msg The message object to deserialize into.
8721
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8722
+ * @return {!proto.game.ParseGamesRequest}
8723
+ */
8724
+ proto.game.ParseGamesRequest.deserializeBinaryFromReader = function(msg, reader) {
8725
+ while (reader.nextField()) {
8726
+ if (reader.isEndGroup()) {
8727
+ break;
8728
+ }
8729
+ var field = reader.getFieldNumber();
8730
+ switch (field) {
8731
+ case 1:
8732
+ var value = /** @type {string} */ (reader.readString());
8733
+ msg.setVendor(value);
8734
+ break;
8735
+ default:
8736
+ reader.skipField();
8737
+ break;
8738
+ }
8739
+ }
8740
+ return msg;
8741
+ };
8742
+
8743
+
8744
+ /**
8745
+ * Serializes the message to binary data (in protobuf wire format).
8746
+ * @return {!Uint8Array}
8747
+ */
8748
+ proto.game.ParseGamesRequest.prototype.serializeBinary = function() {
8749
+ var writer = new jspb.BinaryWriter();
8750
+ proto.game.ParseGamesRequest.serializeBinaryToWriter(this, writer);
8751
+ return writer.getResultBuffer();
8752
+ };
8753
+
8754
+
8755
+ /**
8756
+ * Serializes the given message to binary data (in protobuf wire
8757
+ * format), writing to the given BinaryWriter.
8758
+ * @param {!proto.game.ParseGamesRequest} message
8759
+ * @param {!jspb.BinaryWriter} writer
8760
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8761
+ */
8762
+ proto.game.ParseGamesRequest.serializeBinaryToWriter = function(message, writer) {
8763
+ var f = undefined;
8764
+ f = message.getVendor();
8765
+ if (f.length > 0) {
8766
+ writer.writeString(
8767
+ 1,
8768
+ f
8769
+ );
8770
+ }
8771
+ };
8772
+
8773
+
8774
+ /**
8775
+ * optional string vendor = 1;
8776
+ * @return {string}
8777
+ */
8778
+ proto.game.ParseGamesRequest.prototype.getVendor = function() {
8779
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
8780
+ };
8781
+
8782
+
8783
+ /**
8784
+ * @param {string} value
8785
+ * @return {!proto.game.ParseGamesRequest} returns this
8786
+ */
8787
+ proto.game.ParseGamesRequest.prototype.setVendor = function(value) {
8788
+ return jspb.Message.setProto3StringField(this, 1, value);
8789
+ };
8790
+
8791
+
8792
+
8793
+
8794
+
8795
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8796
+ /**
8797
+ * Creates an object representation of this proto.
8798
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8799
+ * Optional fields that are not set will be set to undefined.
8800
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8801
+ * For the list of reserved names please see:
8802
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8803
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8804
+ * JSPB instance for transitional soy proto support:
8805
+ * http://goto/soy-param-migration
8806
+ * @return {!Object}
8807
+ */
8808
+ proto.game.ParseGamesResponse.prototype.toObject = function(opt_includeInstance) {
8809
+ return proto.game.ParseGamesResponse.toObject(opt_includeInstance, this);
8810
+ };
8811
+
8812
+
8813
+ /**
8814
+ * Static version of the {@see toObject} method.
8815
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8816
+ * the JSPB instance for transitional soy proto support:
8817
+ * http://goto/soy-param-migration
8818
+ * @param {!proto.game.ParseGamesResponse} msg The msg instance to transform.
8819
+ * @return {!Object}
8820
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8821
+ */
8822
+ proto.game.ParseGamesResponse.toObject = function(includeInstance, msg) {
8823
+ var f, obj = {
8824
+ data: jspb.Message.getFieldWithDefault(msg, 1, "")
8825
+ };
8826
+
8827
+ if (includeInstance) {
8828
+ obj.$jspbMessageInstance = msg;
8829
+ }
8830
+ return obj;
8831
+ };
8832
+ }
8833
+
8834
+
8835
+ /**
8836
+ * Deserializes binary data (in protobuf wire format).
8837
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8838
+ * @return {!proto.game.ParseGamesResponse}
8839
+ */
8840
+ proto.game.ParseGamesResponse.deserializeBinary = function(bytes) {
8841
+ var reader = new jspb.BinaryReader(bytes);
8842
+ var msg = new proto.game.ParseGamesResponse;
8843
+ return proto.game.ParseGamesResponse.deserializeBinaryFromReader(msg, reader);
8844
+ };
8845
+
8846
+
8847
+ /**
8848
+ * Deserializes binary data (in protobuf wire format) from the
8849
+ * given reader into the given message object.
8850
+ * @param {!proto.game.ParseGamesResponse} msg The message object to deserialize into.
8851
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8852
+ * @return {!proto.game.ParseGamesResponse}
8853
+ */
8854
+ proto.game.ParseGamesResponse.deserializeBinaryFromReader = function(msg, reader) {
8855
+ while (reader.nextField()) {
8856
+ if (reader.isEndGroup()) {
8857
+ break;
8858
+ }
8859
+ var field = reader.getFieldNumber();
8860
+ switch (field) {
8861
+ case 1:
8862
+ var value = /** @type {string} */ (reader.readString());
8863
+ msg.setData(value);
8864
+ break;
8865
+ default:
8866
+ reader.skipField();
8867
+ break;
8868
+ }
8869
+ }
8870
+ return msg;
8871
+ };
8872
+
8873
+
8874
+ /**
8875
+ * Serializes the message to binary data (in protobuf wire format).
8876
+ * @return {!Uint8Array}
8877
+ */
8878
+ proto.game.ParseGamesResponse.prototype.serializeBinary = function() {
8879
+ var writer = new jspb.BinaryWriter();
8880
+ proto.game.ParseGamesResponse.serializeBinaryToWriter(this, writer);
8881
+ return writer.getResultBuffer();
8882
+ };
8883
+
8884
+
8885
+ /**
8886
+ * Serializes the given message to binary data (in protobuf wire
8887
+ * format), writing to the given BinaryWriter.
8888
+ * @param {!proto.game.ParseGamesResponse} message
8889
+ * @param {!jspb.BinaryWriter} writer
8890
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8891
+ */
8892
+ proto.game.ParseGamesResponse.serializeBinaryToWriter = function(message, writer) {
8893
+ var f = undefined;
8894
+ f = message.getData();
8895
+ if (f.length > 0) {
8896
+ writer.writeString(
8897
+ 1,
8898
+ f
8899
+ );
8900
+ }
8901
+ };
8902
+
8903
+
8904
+ /**
8905
+ * optional string data = 1;
8906
+ * @return {string}
8907
+ */
8908
+ proto.game.ParseGamesResponse.prototype.getData = function() {
8909
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
8910
+ };
8911
+
8912
+
8913
+ /**
8914
+ * @param {string} value
8915
+ * @return {!proto.game.ParseGamesResponse} returns this
8916
+ */
8917
+ proto.game.ParseGamesResponse.prototype.setData = function(value) {
8918
+ return jspb.Message.setProto3StringField(this, 1, value);
8919
+ };
8920
+
8921
+
8922
+
8923
+
8924
+
8925
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8926
+ /**
8927
+ * Creates an object representation of this proto.
8928
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8929
+ * Optional fields that are not set will be set to undefined.
8930
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8931
+ * For the list of reserved names please see:
8932
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8933
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8934
+ * JSPB instance for transitional soy proto support:
8935
+ * http://goto/soy-param-migration
8936
+ * @return {!Object}
8937
+ */
8938
+ proto.game.GameItem.prototype.toObject = function(opt_includeInstance) {
8939
+ return proto.game.GameItem.toObject(opt_includeInstance, this);
8940
+ };
8941
+
8942
+
8943
+ /**
8944
+ * Static version of the {@see toObject} method.
8945
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8946
+ * the JSPB instance for transitional soy proto support:
8947
+ * http://goto/soy-param-migration
8948
+ * @param {!proto.game.GameItem} msg The msg instance to transform.
8949
+ * @return {!Object}
8950
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8951
+ */
8952
+ proto.game.GameItem.toObject = function(includeInstance, msg) {
8953
+ var f, obj = {
8954
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
8955
+ provider: (f = msg.getProvider()) && proto.game.ProviderItem.toObject(includeInstance, f),
8956
+ title: jspb.Message.getFieldWithDefault(msg, 3, ""),
8957
+ slug: jspb.Message.getFieldWithDefault(msg, 4, ""),
8958
+ description: jspb.Message.getFieldWithDefault(msg, 5, ""),
8959
+ isActive: jspb.Message.getFieldWithDefault(msg, 6, 0),
8960
+ image: jspb.Message.getFieldWithDefault(msg, 7, ""),
8961
+ type: jspb.Message.getFieldWithDefault(msg, 8, ""),
8962
+ isMobile: jspb.Message.getFieldWithDefault(msg, 9, 0),
8963
+ hasFreeSpins: jspb.Message.getFieldWithDefault(msg, 10, 0)
8964
+ };
8965
+
8966
+ if (includeInstance) {
8967
+ obj.$jspbMessageInstance = msg;
8968
+ }
8969
+ return obj;
8970
+ };
8971
+ }
8972
+
8973
+
8974
+ /**
8975
+ * Deserializes binary data (in protobuf wire format).
8976
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8977
+ * @return {!proto.game.GameItem}
8978
+ */
8979
+ proto.game.GameItem.deserializeBinary = function(bytes) {
8980
+ var reader = new jspb.BinaryReader(bytes);
8981
+ var msg = new proto.game.GameItem;
8982
+ return proto.game.GameItem.deserializeBinaryFromReader(msg, reader);
8983
+ };
8984
+
8985
+
8986
+ /**
8987
+ * Deserializes binary data (in protobuf wire format) from the
8988
+ * given reader into the given message object.
8989
+ * @param {!proto.game.GameItem} msg The message object to deserialize into.
8990
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8991
+ * @return {!proto.game.GameItem}
8992
+ */
8993
+ proto.game.GameItem.deserializeBinaryFromReader = function(msg, reader) {
8994
+ while (reader.nextField()) {
8995
+ if (reader.isEndGroup()) {
8996
+ break;
8997
+ }
8998
+ var field = reader.getFieldNumber();
8999
+ switch (field) {
9000
+ case 1:
9001
+ var value = /** @type {number} */ (reader.readInt32());
9002
+ msg.setId(value);
9003
+ break;
9004
+ case 2:
9005
+ var value = new proto.game.ProviderItem;
9006
+ reader.readMessage(value,proto.game.ProviderItem.deserializeBinaryFromReader);
9007
+ msg.setProvider(value);
9008
+ break;
9009
+ case 3:
9010
+ var value = /** @type {string} */ (reader.readString());
9011
+ msg.setTitle(value);
9012
+ break;
9013
+ case 4:
9014
+ var value = /** @type {string} */ (reader.readString());
9015
+ msg.setSlug(value);
9016
+ break;
9017
+ case 5:
9018
+ var value = /** @type {string} */ (reader.readString());
9019
+ msg.setDescription(value);
9020
+ break;
9021
+ case 6:
9022
+ var value = /** @type {number} */ (reader.readInt32());
9023
+ msg.setIsActive(value);
9024
+ break;
9025
+ case 7:
9026
+ var value = /** @type {string} */ (reader.readString());
9027
+ msg.setImage(value);
9028
+ break;
9029
+ case 8:
9030
+ var value = /** @type {string} */ (reader.readString());
9031
+ msg.setType(value);
9032
+ break;
9033
+ case 9:
9034
+ var value = /** @type {number} */ (reader.readInt32());
9035
+ msg.setIsMobile(value);
9036
+ break;
9037
+ case 10:
9038
+ var value = /** @type {number} */ (reader.readInt32());
9039
+ msg.setHasFreeSpins(value);
9040
+ break;
9041
+ default:
9042
+ reader.skipField();
9043
+ break;
9044
+ }
9045
+ }
9046
+ return msg;
9047
+ };
9048
+
9049
+
9050
+ /**
9051
+ * Serializes the message to binary data (in protobuf wire format).
9052
+ * @return {!Uint8Array}
9053
+ */
9054
+ proto.game.GameItem.prototype.serializeBinary = function() {
9055
+ var writer = new jspb.BinaryWriter();
9056
+ proto.game.GameItem.serializeBinaryToWriter(this, writer);
9057
+ return writer.getResultBuffer();
9058
+ };
9059
+
9060
+
9061
+ /**
9062
+ * Serializes the given message to binary data (in protobuf wire
9063
+ * format), writing to the given BinaryWriter.
9064
+ * @param {!proto.game.GameItem} message
9065
+ * @param {!jspb.BinaryWriter} writer
9066
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9067
+ */
9068
+ proto.game.GameItem.serializeBinaryToWriter = function(message, writer) {
9069
+ var f = undefined;
9070
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
9071
+ if (f != null) {
9072
+ writer.writeInt32(
9073
+ 1,
9074
+ f
9075
+ );
9076
+ }
9077
+ f = message.getProvider();
9078
+ if (f != null) {
9079
+ writer.writeMessage(
9080
+ 2,
9081
+ f,
9082
+ proto.game.ProviderItem.serializeBinaryToWriter
9083
+ );
9084
+ }
9085
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
9086
+ if (f != null) {
9087
+ writer.writeString(
9088
+ 3,
9089
+ f
9090
+ );
9091
+ }
9092
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
9093
+ if (f != null) {
9094
+ writer.writeString(
9095
+ 4,
9096
+ f
9097
+ );
9098
+ }
9099
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
9100
+ if (f != null) {
9101
+ writer.writeString(
9102
+ 5,
9103
+ f
9104
+ );
9105
+ }
9106
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
9107
+ if (f != null) {
9108
+ writer.writeInt32(
9109
+ 6,
9110
+ f
9111
+ );
9112
+ }
9113
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
9114
+ if (f != null) {
9115
+ writer.writeString(
9116
+ 7,
9117
+ f
9118
+ );
9119
+ }
9120
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
9121
+ if (f != null) {
9122
+ writer.writeString(
9123
+ 8,
9124
+ f
9125
+ );
9126
+ }
9127
+ f = /** @type {number} */ (jspb.Message.getField(message, 9));
9128
+ if (f != null) {
9129
+ writer.writeInt32(
9130
+ 9,
9131
+ f
9132
+ );
9133
+ }
9134
+ f = /** @type {number} */ (jspb.Message.getField(message, 10));
9135
+ if (f != null) {
9136
+ writer.writeInt32(
9137
+ 10,
9138
+ f
9139
+ );
9140
+ }
9141
+ };
9142
+
9143
+
9144
+ /**
9145
+ * optional int32 id = 1;
9146
+ * @return {number}
9147
+ */
9148
+ proto.game.GameItem.prototype.getId = function() {
9149
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
9150
+ };
9151
+
9152
+
9153
+ /**
9154
+ * @param {number} value
9155
+ * @return {!proto.game.GameItem} returns this
9156
+ */
9157
+ proto.game.GameItem.prototype.setId = function(value) {
9158
+ return jspb.Message.setField(this, 1, value);
9159
+ };
9160
+
9161
+
9162
+ /**
9163
+ * Clears the field making it undefined.
9164
+ * @return {!proto.game.GameItem} returns this
9165
+ */
9166
+ proto.game.GameItem.prototype.clearId = function() {
9167
+ return jspb.Message.setField(this, 1, undefined);
9168
+ };
9169
+
9170
+
9171
+ /**
9172
+ * Returns whether this field is set.
9173
+ * @return {boolean}
9174
+ */
9175
+ proto.game.GameItem.prototype.hasId = function() {
9176
+ return jspb.Message.getField(this, 1) != null;
9177
+ };
9178
+
9179
+
9180
+ /**
9181
+ * optional ProviderItem provider = 2;
9182
+ * @return {?proto.game.ProviderItem}
9183
+ */
9184
+ proto.game.GameItem.prototype.getProvider = function() {
9185
+ return /** @type{?proto.game.ProviderItem} */ (
9186
+ jspb.Message.getWrapperField(this, proto.game.ProviderItem, 2));
9187
+ };
9188
+
9189
+
9190
+ /**
9191
+ * @param {?proto.game.ProviderItem|undefined} value
9192
+ * @return {!proto.game.GameItem} returns this
9193
+ */
9194
+ proto.game.GameItem.prototype.setProvider = function(value) {
9195
+ return jspb.Message.setWrapperField(this, 2, value);
9196
+ };
9197
+
9198
+
9199
+ /**
9200
+ * Clears the message field making it undefined.
9201
+ * @return {!proto.game.GameItem} returns this
9202
+ */
9203
+ proto.game.GameItem.prototype.clearProvider = function() {
9204
+ return this.setProvider(undefined);
9205
+ };
9206
+
9207
+
9208
+ /**
9209
+ * Returns whether this field is set.
9210
+ * @return {boolean}
9211
+ */
9212
+ proto.game.GameItem.prototype.hasProvider = function() {
9213
+ return jspb.Message.getField(this, 2) != null;
9214
+ };
9215
+
9216
+
9217
+ /**
9218
+ * optional string title = 3;
9219
+ * @return {string}
9220
+ */
9221
+ proto.game.GameItem.prototype.getTitle = function() {
9222
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
9223
+ };
9224
+
9225
+
9226
+ /**
9227
+ * @param {string} value
9228
+ * @return {!proto.game.GameItem} returns this
9229
+ */
9230
+ proto.game.GameItem.prototype.setTitle = function(value) {
9231
+ return jspb.Message.setField(this, 3, value);
9232
+ };
9233
+
9234
+
9235
+ /**
9236
+ * Clears the field making it undefined.
9237
+ * @return {!proto.game.GameItem} returns this
9238
+ */
9239
+ proto.game.GameItem.prototype.clearTitle = function() {
9240
+ return jspb.Message.setField(this, 3, undefined);
9241
+ };
9242
+
9243
+
9244
+ /**
9245
+ * Returns whether this field is set.
9246
+ * @return {boolean}
9247
+ */
9248
+ proto.game.GameItem.prototype.hasTitle = function() {
9249
+ return jspb.Message.getField(this, 3) != null;
9250
+ };
9251
+
9252
+
9253
+ /**
9254
+ * optional string slug = 4;
9255
+ * @return {string}
9256
+ */
9257
+ proto.game.GameItem.prototype.getSlug = function() {
9258
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
9259
+ };
9260
+
9261
+
9262
+ /**
9263
+ * @param {string} value
9264
+ * @return {!proto.game.GameItem} returns this
9265
+ */
9266
+ proto.game.GameItem.prototype.setSlug = function(value) {
9267
+ return jspb.Message.setField(this, 4, value);
9268
+ };
9269
+
9270
+
9271
+ /**
9272
+ * Clears the field making it undefined.
9273
+ * @return {!proto.game.GameItem} returns this
9274
+ */
9275
+ proto.game.GameItem.prototype.clearSlug = function() {
9276
+ return jspb.Message.setField(this, 4, undefined);
9277
+ };
9278
+
9279
+
9280
+ /**
9281
+ * Returns whether this field is set.
9282
+ * @return {boolean}
9283
+ */
9284
+ proto.game.GameItem.prototype.hasSlug = function() {
9285
+ return jspb.Message.getField(this, 4) != null;
9286
+ };
9287
+
9288
+
9289
+ /**
9290
+ * optional string description = 5;
9291
+ * @return {string}
9292
+ */
9293
+ proto.game.GameItem.prototype.getDescription = function() {
9294
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
9295
+ };
9296
+
9297
+
9298
+ /**
9299
+ * @param {string} value
9300
+ * @return {!proto.game.GameItem} returns this
9301
+ */
9302
+ proto.game.GameItem.prototype.setDescription = function(value) {
9303
+ return jspb.Message.setField(this, 5, value);
9304
+ };
9305
+
9306
+
9307
+ /**
9308
+ * Clears the field making it undefined.
9309
+ * @return {!proto.game.GameItem} returns this
9310
+ */
9311
+ proto.game.GameItem.prototype.clearDescription = function() {
9312
+ return jspb.Message.setField(this, 5, undefined);
9313
+ };
9314
+
9315
+
9316
+ /**
9317
+ * Returns whether this field is set.
9318
+ * @return {boolean}
9319
+ */
9320
+ proto.game.GameItem.prototype.hasDescription = function() {
9321
+ return jspb.Message.getField(this, 5) != null;
9322
+ };
9323
+
9324
+
9325
+ /**
9326
+ * optional int32 is_active = 6;
9327
+ * @return {number}
9328
+ */
9329
+ proto.game.GameItem.prototype.getIsActive = function() {
9330
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
9331
+ };
9332
+
9333
+
9334
+ /**
9335
+ * @param {number} value
9336
+ * @return {!proto.game.GameItem} returns this
9337
+ */
9338
+ proto.game.GameItem.prototype.setIsActive = function(value) {
9339
+ return jspb.Message.setField(this, 6, value);
9340
+ };
9341
+
9342
+
9343
+ /**
9344
+ * Clears the field making it undefined.
9345
+ * @return {!proto.game.GameItem} returns this
9346
+ */
9347
+ proto.game.GameItem.prototype.clearIsActive = function() {
9348
+ return jspb.Message.setField(this, 6, undefined);
9349
+ };
9350
+
9351
+
9352
+ /**
9353
+ * Returns whether this field is set.
9354
+ * @return {boolean}
9355
+ */
9356
+ proto.game.GameItem.prototype.hasIsActive = function() {
9357
+ return jspb.Message.getField(this, 6) != null;
9358
+ };
9359
+
9360
+
9361
+ /**
9362
+ * optional string image = 7;
9363
+ * @return {string}
9364
+ */
9365
+ proto.game.GameItem.prototype.getImage = function() {
9366
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
9367
+ };
9368
+
9369
+
9370
+ /**
9371
+ * @param {string} value
9372
+ * @return {!proto.game.GameItem} returns this
9373
+ */
9374
+ proto.game.GameItem.prototype.setImage = function(value) {
9375
+ return jspb.Message.setField(this, 7, value);
9376
+ };
9377
+
9378
+
9379
+ /**
9380
+ * Clears the field making it undefined.
9381
+ * @return {!proto.game.GameItem} returns this
9382
+ */
9383
+ proto.game.GameItem.prototype.clearImage = function() {
9384
+ return jspb.Message.setField(this, 7, undefined);
9385
+ };
9386
+
9387
+
9388
+ /**
9389
+ * Returns whether this field is set.
9390
+ * @return {boolean}
9391
+ */
9392
+ proto.game.GameItem.prototype.hasImage = function() {
9393
+ return jspb.Message.getField(this, 7) != null;
9394
+ };
9395
+
9396
+
9397
+ /**
9398
+ * optional string type = 8;
9399
+ * @return {string}
9400
+ */
9401
+ proto.game.GameItem.prototype.getType = function() {
9402
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
9403
+ };
9404
+
9405
+
9406
+ /**
9407
+ * @param {string} value
9408
+ * @return {!proto.game.GameItem} returns this
9409
+ */
9410
+ proto.game.GameItem.prototype.setType = function(value) {
9411
+ return jspb.Message.setField(this, 8, value);
9412
+ };
9413
+
9414
+
9415
+ /**
9416
+ * Clears the field making it undefined.
9417
+ * @return {!proto.game.GameItem} returns this
9418
+ */
9419
+ proto.game.GameItem.prototype.clearType = function() {
9420
+ return jspb.Message.setField(this, 8, undefined);
9421
+ };
9422
+
9423
+
9424
+ /**
9425
+ * Returns whether this field is set.
9426
+ * @return {boolean}
9427
+ */
9428
+ proto.game.GameItem.prototype.hasType = function() {
9429
+ return jspb.Message.getField(this, 8) != null;
9430
+ };
9431
+
9432
+
9433
+ /**
9434
+ * optional int32 is_mobile = 9;
9435
+ * @return {number}
9436
+ */
9437
+ proto.game.GameItem.prototype.getIsMobile = function() {
9438
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
9439
+ };
9440
+
9441
+
9442
+ /**
9443
+ * @param {number} value
9444
+ * @return {!proto.game.GameItem} returns this
9445
+ */
9446
+ proto.game.GameItem.prototype.setIsMobile = function(value) {
9447
+ return jspb.Message.setField(this, 9, value);
9448
+ };
9449
+
9450
+
9451
+ /**
9452
+ * Clears the field making it undefined.
9453
+ * @return {!proto.game.GameItem} returns this
9454
+ */
9455
+ proto.game.GameItem.prototype.clearIsMobile = function() {
9456
+ return jspb.Message.setField(this, 9, undefined);
9457
+ };
9458
+
9459
+
9460
+ /**
9461
+ * Returns whether this field is set.
9462
+ * @return {boolean}
9463
+ */
9464
+ proto.game.GameItem.prototype.hasIsMobile = function() {
9465
+ return jspb.Message.getField(this, 9) != null;
9466
+ };
9467
+
9468
+
9469
+ /**
9470
+ * optional int32 has_free_spins = 10;
9471
+ * @return {number}
9472
+ */
9473
+ proto.game.GameItem.prototype.getHasFreeSpins = function() {
9474
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
9475
+ };
9476
+
9477
+
9478
+ /**
9479
+ * @param {number} value
9480
+ * @return {!proto.game.GameItem} returns this
9481
+ */
9482
+ proto.game.GameItem.prototype.setHasFreeSpins = function(value) {
9483
+ return jspb.Message.setField(this, 10, value);
9484
+ };
9485
+
9486
+
9487
+ /**
9488
+ * Clears the field making it undefined.
9489
+ * @return {!proto.game.GameItem} returns this
9490
+ */
9491
+ proto.game.GameItem.prototype.clearHasFreeSpins = function() {
9492
+ return jspb.Message.setField(this, 10, undefined);
9493
+ };
9494
+
9495
+
9496
+ /**
9497
+ * Returns whether this field is set.
9498
+ * @return {boolean}
9499
+ */
9500
+ proto.game.GameItem.prototype.hasHasFreeSpins = function() {
9501
+ return jspb.Message.getField(this, 10) != null;
9502
+ };
9503
+
9504
+
9505
+
9506
+ /**
9507
+ * Oneof group definitions for this message. Each group defines the field
9508
+ * numbers belonging to that group. When of these fields' value is set, all
9509
+ * other fields in the group are cleared. During deserialization, if multiple
9510
+ * fields are encountered for a group, only the last value seen will be kept.
9511
+ * @private {!Array<!Array<number>>}
9512
+ * @const
9513
+ */
9514
+ proto.game.GameRequest.oneofGroups_ = [[1,2]];
9515
+
9516
+ /**
9517
+ * @enum {number}
9518
+ */
9519
+ proto.game.GameRequest.RequestCase = {
9520
+ REQUEST_NOT_SET: 0,
9521
+ GAME_DATA: 1,
9522
+ FILE: 2
9523
+ };
9524
+
9525
+ /**
9526
+ * @return {proto.game.GameRequest.RequestCase}
9527
+ */
9528
+ proto.game.GameRequest.prototype.getRequestCase = function() {
9529
+ return /** @type {proto.game.GameRequest.RequestCase} */(jspb.Message.computeOneofCase(this, proto.game.GameRequest.oneofGroups_[0]));
9530
+ };
9531
+
9532
+
9533
+
9534
+ if (jspb.Message.GENERATE_TO_OBJECT) {
9535
+ /**
9536
+ * Creates an object representation of this proto.
9537
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
9538
+ * Optional fields that are not set will be set to undefined.
9539
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9540
+ * For the list of reserved names please see:
9541
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
9542
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
9543
+ * JSPB instance for transitional soy proto support:
9544
+ * http://goto/soy-param-migration
9545
+ * @return {!Object}
9546
+ */
9547
+ proto.game.GameRequest.prototype.toObject = function(opt_includeInstance) {
9548
+ return proto.game.GameRequest.toObject(opt_includeInstance, this);
9549
+ };
9550
+
9551
+
9552
+ /**
9553
+ * Static version of the {@see toObject} method.
9554
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
9555
+ * the JSPB instance for transitional soy proto support:
9556
+ * http://goto/soy-param-migration
9557
+ * @param {!proto.game.GameRequest} msg The msg instance to transform.
9558
+ * @return {!Object}
9559
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9560
+ */
9561
+ proto.game.GameRequest.toObject = function(includeInstance, msg) {
9562
+ var f, obj = {
9563
+ gameData: (f = msg.getGameData()) && proto.game.GameItemRequest.toObject(includeInstance, f),
9564
+ file: (f = msg.getFile()) && proto.game.File.toObject(includeInstance, f)
9565
+ };
9566
+
9567
+ if (includeInstance) {
9568
+ obj.$jspbMessageInstance = msg;
9569
+ }
9570
+ return obj;
9571
+ };
9572
+ }
9573
+
9574
+
9575
+ /**
9576
+ * Deserializes binary data (in protobuf wire format).
9577
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
9578
+ * @return {!proto.game.GameRequest}
9579
+ */
9580
+ proto.game.GameRequest.deserializeBinary = function(bytes) {
9581
+ var reader = new jspb.BinaryReader(bytes);
9582
+ var msg = new proto.game.GameRequest;
9583
+ return proto.game.GameRequest.deserializeBinaryFromReader(msg, reader);
9584
+ };
9585
+
9586
+
9587
+ /**
9588
+ * Deserializes binary data (in protobuf wire format) from the
9589
+ * given reader into the given message object.
9590
+ * @param {!proto.game.GameRequest} msg The message object to deserialize into.
9591
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9592
+ * @return {!proto.game.GameRequest}
9593
+ */
9594
+ proto.game.GameRequest.deserializeBinaryFromReader = function(msg, reader) {
9595
+ while (reader.nextField()) {
9596
+ if (reader.isEndGroup()) {
9597
+ break;
9598
+ }
9599
+ var field = reader.getFieldNumber();
9600
+ switch (field) {
9601
+ case 1:
9602
+ var value = new proto.game.GameItemRequest;
9603
+ reader.readMessage(value,proto.game.GameItemRequest.deserializeBinaryFromReader);
9604
+ msg.setGameData(value);
9605
+ break;
9606
+ case 2:
9607
+ var value = new proto.game.File;
9608
+ reader.readMessage(value,proto.game.File.deserializeBinaryFromReader);
9609
+ msg.setFile(value);
9610
+ break;
9611
+ default:
9612
+ reader.skipField();
9613
+ break;
9614
+ }
9615
+ }
9616
+ return msg;
9617
+ };
9618
+
9619
+
9620
+ /**
9621
+ * Serializes the message to binary data (in protobuf wire format).
9622
+ * @return {!Uint8Array}
9623
+ */
9624
+ proto.game.GameRequest.prototype.serializeBinary = function() {
9625
+ var writer = new jspb.BinaryWriter();
9626
+ proto.game.GameRequest.serializeBinaryToWriter(this, writer);
9627
+ return writer.getResultBuffer();
9628
+ };
9629
+
9630
+
9631
+ /**
9632
+ * Serializes the given message to binary data (in protobuf wire
9633
+ * format), writing to the given BinaryWriter.
9634
+ * @param {!proto.game.GameRequest} message
9635
+ * @param {!jspb.BinaryWriter} writer
9636
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9637
+ */
9638
+ proto.game.GameRequest.serializeBinaryToWriter = function(message, writer) {
9639
+ var f = undefined;
9640
+ f = message.getGameData();
9641
+ if (f != null) {
9642
+ writer.writeMessage(
9643
+ 1,
9644
+ f,
9645
+ proto.game.GameItemRequest.serializeBinaryToWriter
9646
+ );
9647
+ }
9648
+ f = message.getFile();
9649
+ if (f != null) {
9650
+ writer.writeMessage(
9651
+ 2,
9652
+ f,
9653
+ proto.game.File.serializeBinaryToWriter
9654
+ );
9655
+ }
9656
+ };
9657
+
9658
+
9659
+ /**
9660
+ * optional GameItemRequest game_data = 1;
9661
+ * @return {?proto.game.GameItemRequest}
9662
+ */
9663
+ proto.game.GameRequest.prototype.getGameData = function() {
9664
+ return /** @type{?proto.game.GameItemRequest} */ (
9665
+ jspb.Message.getWrapperField(this, proto.game.GameItemRequest, 1));
9666
+ };
9667
+
9668
+
9669
+ /**
9670
+ * @param {?proto.game.GameItemRequest|undefined} value
9671
+ * @return {!proto.game.GameRequest} returns this
9672
+ */
9673
+ proto.game.GameRequest.prototype.setGameData = function(value) {
9674
+ return jspb.Message.setOneofWrapperField(this, 1, proto.game.GameRequest.oneofGroups_[0], value);
9675
+ };
9676
+
9677
+
9678
+ /**
9679
+ * Clears the message field making it undefined.
9680
+ * @return {!proto.game.GameRequest} returns this
9681
+ */
9682
+ proto.game.GameRequest.prototype.clearGameData = function() {
9683
+ return this.setGameData(undefined);
9684
+ };
9685
+
9686
+
9687
+ /**
9688
+ * Returns whether this field is set.
9689
+ * @return {boolean}
9690
+ */
9691
+ proto.game.GameRequest.prototype.hasGameData = function() {
9692
+ return jspb.Message.getField(this, 1) != null;
9693
+ };
9694
+
9695
+
9696
+ /**
9697
+ * optional File file = 2;
9698
+ * @return {?proto.game.File}
9699
+ */
9700
+ proto.game.GameRequest.prototype.getFile = function() {
9701
+ return /** @type{?proto.game.File} */ (
9702
+ jspb.Message.getWrapperField(this, proto.game.File, 2));
9703
+ };
9704
+
9705
+
9706
+ /**
9707
+ * @param {?proto.game.File|undefined} value
9708
+ * @return {!proto.game.GameRequest} returns this
9709
+ */
9710
+ proto.game.GameRequest.prototype.setFile = function(value) {
9711
+ return jspb.Message.setOneofWrapperField(this, 2, proto.game.GameRequest.oneofGroups_[0], value);
9712
+ };
9713
+
9714
+
9715
+ /**
9716
+ * Clears the message field making it undefined.
9717
+ * @return {!proto.game.GameRequest} returns this
9718
+ */
9719
+ proto.game.GameRequest.prototype.clearFile = function() {
9720
+ return this.setFile(undefined);
9721
+ };
9722
+
9723
+
9724
+ /**
9725
+ * Returns whether this field is set.
9726
+ * @return {boolean}
9727
+ */
9728
+ proto.game.GameRequest.prototype.hasFile = function() {
9729
+ return jspb.Message.getField(this, 2) != null;
9730
+ };
9731
+
9732
+
9733
+
9734
+
9735
+
9736
+ if (jspb.Message.GENERATE_TO_OBJECT) {
9737
+ /**
9738
+ * Creates an object representation of this proto.
9739
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
9740
+ * Optional fields that are not set will be set to undefined.
9741
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9742
+ * For the list of reserved names please see:
9743
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
9744
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
9745
+ * JSPB instance for transitional soy proto support:
9746
+ * http://goto/soy-param-migration
9747
+ * @return {!Object}
9748
+ */
9749
+ proto.game.GameItemRequest.prototype.toObject = function(opt_includeInstance) {
9750
+ return proto.game.GameItemRequest.toObject(opt_includeInstance, this);
9751
+ };
9752
+
9753
+
9754
+ /**
9755
+ * Static version of the {@see toObject} method.
9756
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
9757
+ * the JSPB instance for transitional soy proto support:
9758
+ * http://goto/soy-param-migration
9759
+ * @param {!proto.game.GameItemRequest} msg The msg instance to transform.
9760
+ * @return {!Object}
9761
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9762
+ */
9763
+ proto.game.GameItemRequest.toObject = function(includeInstance, msg) {
9764
+ var f, obj = {
9765
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
9766
+ provider: (f = msg.getProvider()) && proto.game.ProviderItem.toObject(includeInstance, f),
9767
+ title: jspb.Message.getFieldWithDefault(msg, 3, ""),
9768
+ slug: jspb.Message.getFieldWithDefault(msg, 4, ""),
9769
+ description: jspb.Message.getFieldWithDefault(msg, 5, ""),
9770
+ isActive: jspb.Message.getFieldWithDefault(msg, 6, 0),
9771
+ fileName: jspb.Message.getFieldWithDefault(msg, 7, ""),
9772
+ fileType: jspb.Message.getFieldWithDefault(msg, 8, ""),
9773
+ type: jspb.Message.getFieldWithDefault(msg, 9, ""),
9774
+ isMobile: jspb.Message.getFieldWithDefault(msg, 10, 0),
9775
+ hasFreeSpins: jspb.Message.getFieldWithDefault(msg, 11, 0)
9776
+ };
9777
+
9778
+ if (includeInstance) {
9779
+ obj.$jspbMessageInstance = msg;
9780
+ }
9781
+ return obj;
9782
+ };
9783
+ }
9784
+
9785
+
9786
+ /**
9787
+ * Deserializes binary data (in protobuf wire format).
9788
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
9789
+ * @return {!proto.game.GameItemRequest}
9790
+ */
9791
+ proto.game.GameItemRequest.deserializeBinary = function(bytes) {
9792
+ var reader = new jspb.BinaryReader(bytes);
9793
+ var msg = new proto.game.GameItemRequest;
9794
+ return proto.game.GameItemRequest.deserializeBinaryFromReader(msg, reader);
9795
+ };
9796
+
9797
+
9798
+ /**
9799
+ * Deserializes binary data (in protobuf wire format) from the
9800
+ * given reader into the given message object.
9801
+ * @param {!proto.game.GameItemRequest} msg The message object to deserialize into.
9802
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9803
+ * @return {!proto.game.GameItemRequest}
9804
+ */
9805
+ proto.game.GameItemRequest.deserializeBinaryFromReader = function(msg, reader) {
9806
+ while (reader.nextField()) {
9807
+ if (reader.isEndGroup()) {
9808
+ break;
9809
+ }
9810
+ var field = reader.getFieldNumber();
9811
+ switch (field) {
9812
+ case 1:
9813
+ var value = /** @type {number} */ (reader.readInt32());
9814
+ msg.setId(value);
9815
+ break;
9816
+ case 2:
9817
+ var value = new proto.game.ProviderItem;
9818
+ reader.readMessage(value,proto.game.ProviderItem.deserializeBinaryFromReader);
9819
+ msg.setProvider(value);
9820
+ break;
9821
+ case 3:
9822
+ var value = /** @type {string} */ (reader.readString());
9823
+ msg.setTitle(value);
9824
+ break;
9825
+ case 4:
9826
+ var value = /** @type {string} */ (reader.readString());
9827
+ msg.setSlug(value);
9828
+ break;
9829
+ case 5:
9830
+ var value = /** @type {string} */ (reader.readString());
9831
+ msg.setDescription(value);
9832
+ break;
9833
+ case 6:
9834
+ var value = /** @type {number} */ (reader.readInt32());
9835
+ msg.setIsActive(value);
9836
+ break;
9837
+ case 7:
9838
+ var value = /** @type {string} */ (reader.readString());
9839
+ msg.setFileName(value);
9840
+ break;
9841
+ case 8:
9842
+ var value = /** @type {string} */ (reader.readString());
9843
+ msg.setFileType(value);
9844
+ break;
9845
+ case 9:
9846
+ var value = /** @type {string} */ (reader.readString());
9847
+ msg.setType(value);
9848
+ break;
9849
+ case 10:
9850
+ var value = /** @type {number} */ (reader.readInt32());
9851
+ msg.setIsMobile(value);
9852
+ break;
9853
+ case 11:
9854
+ var value = /** @type {number} */ (reader.readInt32());
9855
+ msg.setHasFreeSpins(value);
9856
+ break;
9857
+ default:
9858
+ reader.skipField();
9859
+ break;
9860
+ }
9861
+ }
9862
+ return msg;
9863
+ };
9864
+
9865
+
9866
+ /**
9867
+ * Serializes the message to binary data (in protobuf wire format).
9868
+ * @return {!Uint8Array}
9869
+ */
9870
+ proto.game.GameItemRequest.prototype.serializeBinary = function() {
9871
+ var writer = new jspb.BinaryWriter();
9872
+ proto.game.GameItemRequest.serializeBinaryToWriter(this, writer);
9873
+ return writer.getResultBuffer();
9874
+ };
9875
+
9876
+
9877
+ /**
9878
+ * Serializes the given message to binary data (in protobuf wire
9879
+ * format), writing to the given BinaryWriter.
9880
+ * @param {!proto.game.GameItemRequest} message
9881
+ * @param {!jspb.BinaryWriter} writer
9882
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9883
+ */
9884
+ proto.game.GameItemRequest.serializeBinaryToWriter = function(message, writer) {
9885
+ var f = undefined;
9886
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
9887
+ if (f != null) {
9888
+ writer.writeInt32(
9889
+ 1,
9890
+ f
9891
+ );
9892
+ }
9893
+ f = message.getProvider();
9894
+ if (f != null) {
9895
+ writer.writeMessage(
9896
+ 2,
9897
+ f,
9898
+ proto.game.ProviderItem.serializeBinaryToWriter
9899
+ );
9900
+ }
9901
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
9902
+ if (f != null) {
9903
+ writer.writeString(
9904
+ 3,
9905
+ f
9906
+ );
9907
+ }
9908
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
9909
+ if (f != null) {
9910
+ writer.writeString(
9911
+ 4,
9912
+ f
9913
+ );
9914
+ }
9915
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
9916
+ if (f != null) {
9917
+ writer.writeString(
9918
+ 5,
9919
+ f
9920
+ );
9921
+ }
9922
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
9923
+ if (f != null) {
9924
+ writer.writeInt32(
9925
+ 6,
9926
+ f
9927
+ );
9928
+ }
9929
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
9930
+ if (f != null) {
9931
+ writer.writeString(
9932
+ 7,
9933
+ f
9934
+ );
9935
+ }
9936
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
9937
+ if (f != null) {
9938
+ writer.writeString(
9939
+ 8,
9940
+ f
9941
+ );
9942
+ }
9943
+ f = /** @type {string} */ (jspb.Message.getField(message, 9));
9944
+ if (f != null) {
9945
+ writer.writeString(
9946
+ 9,
9947
+ f
9948
+ );
9949
+ }
9950
+ f = /** @type {number} */ (jspb.Message.getField(message, 10));
9951
+ if (f != null) {
9952
+ writer.writeInt32(
9953
+ 10,
9954
+ f
9955
+ );
9956
+ }
9957
+ f = /** @type {number} */ (jspb.Message.getField(message, 11));
9958
+ if (f != null) {
9959
+ writer.writeInt32(
9960
+ 11,
9961
+ f
9962
+ );
9963
+ }
9964
+ };
9965
+
9966
+
9967
+ /**
9968
+ * optional int32 id = 1;
9969
+ * @return {number}
9970
+ */
9971
+ proto.game.GameItemRequest.prototype.getId = function() {
9972
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
9973
+ };
9974
+
9975
+
9976
+ /**
9977
+ * @param {number} value
9978
+ * @return {!proto.game.GameItemRequest} returns this
9979
+ */
9980
+ proto.game.GameItemRequest.prototype.setId = function(value) {
9981
+ return jspb.Message.setField(this, 1, value);
9982
+ };
9983
+
9984
+
9985
+ /**
9986
+ * Clears the field making it undefined.
9987
+ * @return {!proto.game.GameItemRequest} returns this
9988
+ */
9989
+ proto.game.GameItemRequest.prototype.clearId = function() {
9990
+ return jspb.Message.setField(this, 1, undefined);
9991
+ };
9992
+
9993
+
9994
+ /**
9995
+ * Returns whether this field is set.
9996
+ * @return {boolean}
9997
+ */
9998
+ proto.game.GameItemRequest.prototype.hasId = function() {
9999
+ return jspb.Message.getField(this, 1) != null;
10000
+ };
10001
+
10002
+
10003
+ /**
10004
+ * optional ProviderItem provider = 2;
10005
+ * @return {?proto.game.ProviderItem}
10006
+ */
10007
+ proto.game.GameItemRequest.prototype.getProvider = function() {
10008
+ return /** @type{?proto.game.ProviderItem} */ (
10009
+ jspb.Message.getWrapperField(this, proto.game.ProviderItem, 2));
10010
+ };
10011
+
10012
+
10013
+ /**
10014
+ * @param {?proto.game.ProviderItem|undefined} value
10015
+ * @return {!proto.game.GameItemRequest} returns this
10016
+ */
10017
+ proto.game.GameItemRequest.prototype.setProvider = function(value) {
10018
+ return jspb.Message.setWrapperField(this, 2, value);
10019
+ };
10020
+
10021
+
10022
+ /**
10023
+ * Clears the message field making it undefined.
10024
+ * @return {!proto.game.GameItemRequest} returns this
10025
+ */
10026
+ proto.game.GameItemRequest.prototype.clearProvider = function() {
10027
+ return this.setProvider(undefined);
10028
+ };
10029
+
10030
+
10031
+ /**
10032
+ * Returns whether this field is set.
10033
+ * @return {boolean}
10034
+ */
10035
+ proto.game.GameItemRequest.prototype.hasProvider = function() {
10036
+ return jspb.Message.getField(this, 2) != null;
10037
+ };
10038
+
10039
+
10040
+ /**
10041
+ * optional string title = 3;
10042
+ * @return {string}
10043
+ */
10044
+ proto.game.GameItemRequest.prototype.getTitle = function() {
10045
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
10046
+ };
10047
+
10048
+
10049
+ /**
10050
+ * @param {string} value
10051
+ * @return {!proto.game.GameItemRequest} returns this
10052
+ */
10053
+ proto.game.GameItemRequest.prototype.setTitle = function(value) {
10054
+ return jspb.Message.setField(this, 3, value);
10055
+ };
10056
+
10057
+
10058
+ /**
10059
+ * Clears the field making it undefined.
10060
+ * @return {!proto.game.GameItemRequest} returns this
10061
+ */
10062
+ proto.game.GameItemRequest.prototype.clearTitle = function() {
10063
+ return jspb.Message.setField(this, 3, undefined);
10064
+ };
10065
+
10066
+
10067
+ /**
10068
+ * Returns whether this field is set.
10069
+ * @return {boolean}
10070
+ */
10071
+ proto.game.GameItemRequest.prototype.hasTitle = function() {
10072
+ return jspb.Message.getField(this, 3) != null;
10073
+ };
10074
+
10075
+
10076
+ /**
10077
+ * optional string slug = 4;
10078
+ * @return {string}
10079
+ */
10080
+ proto.game.GameItemRequest.prototype.getSlug = function() {
10081
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
10082
+ };
10083
+
10084
+
10085
+ /**
10086
+ * @param {string} value
10087
+ * @return {!proto.game.GameItemRequest} returns this
10088
+ */
10089
+ proto.game.GameItemRequest.prototype.setSlug = function(value) {
10090
+ return jspb.Message.setField(this, 4, value);
10091
+ };
10092
+
10093
+
10094
+ /**
10095
+ * Clears the field making it undefined.
10096
+ * @return {!proto.game.GameItemRequest} returns this
10097
+ */
10098
+ proto.game.GameItemRequest.prototype.clearSlug = function() {
10099
+ return jspb.Message.setField(this, 4, undefined);
10100
+ };
10101
+
10102
+
10103
+ /**
10104
+ * Returns whether this field is set.
10105
+ * @return {boolean}
10106
+ */
10107
+ proto.game.GameItemRequest.prototype.hasSlug = function() {
10108
+ return jspb.Message.getField(this, 4) != null;
10109
+ };
10110
+
10111
+
10112
+ /**
10113
+ * optional string description = 5;
10114
+ * @return {string}
10115
+ */
10116
+ proto.game.GameItemRequest.prototype.getDescription = function() {
10117
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
10118
+ };
10119
+
10120
+
10121
+ /**
10122
+ * @param {string} value
10123
+ * @return {!proto.game.GameItemRequest} returns this
10124
+ */
10125
+ proto.game.GameItemRequest.prototype.setDescription = function(value) {
10126
+ return jspb.Message.setField(this, 5, value);
10127
+ };
10128
+
10129
+
10130
+ /**
10131
+ * Clears the field making it undefined.
10132
+ * @return {!proto.game.GameItemRequest} returns this
10133
+ */
10134
+ proto.game.GameItemRequest.prototype.clearDescription = function() {
10135
+ return jspb.Message.setField(this, 5, undefined);
10136
+ };
10137
+
10138
+
10139
+ /**
10140
+ * Returns whether this field is set.
10141
+ * @return {boolean}
10142
+ */
10143
+ proto.game.GameItemRequest.prototype.hasDescription = function() {
10144
+ return jspb.Message.getField(this, 5) != null;
10145
+ };
10146
+
10147
+
10148
+ /**
10149
+ * optional int32 is_active = 6;
10150
+ * @return {number}
10151
+ */
10152
+ proto.game.GameItemRequest.prototype.getIsActive = function() {
10153
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
10154
+ };
10155
+
10156
+
10157
+ /**
10158
+ * @param {number} value
10159
+ * @return {!proto.game.GameItemRequest} returns this
10160
+ */
10161
+ proto.game.GameItemRequest.prototype.setIsActive = function(value) {
10162
+ return jspb.Message.setField(this, 6, value);
10163
+ };
10164
+
10165
+
10166
+ /**
10167
+ * Clears the field making it undefined.
10168
+ * @return {!proto.game.GameItemRequest} returns this
10169
+ */
10170
+ proto.game.GameItemRequest.prototype.clearIsActive = function() {
10171
+ return jspb.Message.setField(this, 6, undefined);
10172
+ };
10173
+
10174
+
10175
+ /**
10176
+ * Returns whether this field is set.
10177
+ * @return {boolean}
10178
+ */
10179
+ proto.game.GameItemRequest.prototype.hasIsActive = function() {
10180
+ return jspb.Message.getField(this, 6) != null;
10181
+ };
10182
+
10183
+
10184
+ /**
10185
+ * optional string file_name = 7;
10186
+ * @return {string}
10187
+ */
10188
+ proto.game.GameItemRequest.prototype.getFileName = function() {
10189
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
10190
+ };
10191
+
10192
+
10193
+ /**
10194
+ * @param {string} value
10195
+ * @return {!proto.game.GameItemRequest} returns this
10196
+ */
10197
+ proto.game.GameItemRequest.prototype.setFileName = function(value) {
10198
+ return jspb.Message.setField(this, 7, value);
10199
+ };
10200
+
10201
+
10202
+ /**
10203
+ * Clears the field making it undefined.
10204
+ * @return {!proto.game.GameItemRequest} returns this
10205
+ */
10206
+ proto.game.GameItemRequest.prototype.clearFileName = function() {
10207
+ return jspb.Message.setField(this, 7, undefined);
10208
+ };
10209
+
10210
+
10211
+ /**
10212
+ * Returns whether this field is set.
10213
+ * @return {boolean}
10214
+ */
10215
+ proto.game.GameItemRequest.prototype.hasFileName = function() {
10216
+ return jspb.Message.getField(this, 7) != null;
10217
+ };
10218
+
10219
+
10220
+ /**
10221
+ * optional string file_type = 8;
10222
+ * @return {string}
10223
+ */
10224
+ proto.game.GameItemRequest.prototype.getFileType = function() {
10225
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
10226
+ };
10227
+
10228
+
10229
+ /**
10230
+ * @param {string} value
10231
+ * @return {!proto.game.GameItemRequest} returns this
10232
+ */
10233
+ proto.game.GameItemRequest.prototype.setFileType = function(value) {
10234
+ return jspb.Message.setField(this, 8, value);
10235
+ };
10236
+
10237
+
10238
+ /**
10239
+ * Clears the field making it undefined.
10240
+ * @return {!proto.game.GameItemRequest} returns this
10241
+ */
10242
+ proto.game.GameItemRequest.prototype.clearFileType = function() {
10243
+ return jspb.Message.setField(this, 8, undefined);
10244
+ };
10245
+
10246
+
10247
+ /**
10248
+ * Returns whether this field is set.
10249
+ * @return {boolean}
10250
+ */
10251
+ proto.game.GameItemRequest.prototype.hasFileType = function() {
10252
+ return jspb.Message.getField(this, 8) != null;
10253
+ };
10254
+
10255
+
10256
+ /**
10257
+ * optional string type = 9;
10258
+ * @return {string}
10259
+ */
10260
+ proto.game.GameItemRequest.prototype.getType = function() {
10261
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
10262
+ };
10263
+
10264
+
10265
+ /**
10266
+ * @param {string} value
10267
+ * @return {!proto.game.GameItemRequest} returns this
10268
+ */
10269
+ proto.game.GameItemRequest.prototype.setType = function(value) {
10270
+ return jspb.Message.setField(this, 9, value);
10271
+ };
10272
+
10273
+
10274
+ /**
10275
+ * Clears the field making it undefined.
10276
+ * @return {!proto.game.GameItemRequest} returns this
10277
+ */
10278
+ proto.game.GameItemRequest.prototype.clearType = function() {
10279
+ return jspb.Message.setField(this, 9, undefined);
10280
+ };
10281
+
10282
+
10283
+ /**
10284
+ * Returns whether this field is set.
10285
+ * @return {boolean}
10286
+ */
10287
+ proto.game.GameItemRequest.prototype.hasType = function() {
10288
+ return jspb.Message.getField(this, 9) != null;
10289
+ };
10290
+
10291
+
10292
+ /**
10293
+ * optional int32 is_mobile = 10;
10294
+ * @return {number}
10295
+ */
10296
+ proto.game.GameItemRequest.prototype.getIsMobile = function() {
10297
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
10298
+ };
10299
+
10300
+
10301
+ /**
10302
+ * @param {number} value
10303
+ * @return {!proto.game.GameItemRequest} returns this
10304
+ */
10305
+ proto.game.GameItemRequest.prototype.setIsMobile = function(value) {
10306
+ return jspb.Message.setField(this, 10, value);
10307
+ };
10308
+
10309
+
10310
+ /**
10311
+ * Clears the field making it undefined.
10312
+ * @return {!proto.game.GameItemRequest} returns this
10313
+ */
10314
+ proto.game.GameItemRequest.prototype.clearIsMobile = function() {
10315
+ return jspb.Message.setField(this, 10, undefined);
10316
+ };
10317
+
10318
+
10319
+ /**
10320
+ * Returns whether this field is set.
10321
+ * @return {boolean}
10322
+ */
10323
+ proto.game.GameItemRequest.prototype.hasIsMobile = function() {
10324
+ return jspb.Message.getField(this, 10) != null;
10325
+ };
10326
+
10327
+
10328
+ /**
10329
+ * optional int32 has_free_spins = 11;
10330
+ * @return {number}
10331
+ */
10332
+ proto.game.GameItemRequest.prototype.getHasFreeSpins = function() {
10333
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
10334
+ };
10335
+
10336
+
10337
+ /**
10338
+ * @param {number} value
10339
+ * @return {!proto.game.GameItemRequest} returns this
10340
+ */
10341
+ proto.game.GameItemRequest.prototype.setHasFreeSpins = function(value) {
10342
+ return jspb.Message.setField(this, 11, value);
10343
+ };
10344
+
10345
+
10346
+ /**
10347
+ * Clears the field making it undefined.
10348
+ * @return {!proto.game.GameItemRequest} returns this
10349
+ */
10350
+ proto.game.GameItemRequest.prototype.clearHasFreeSpins = function() {
10351
+ return jspb.Message.setField(this, 11, undefined);
10352
+ };
10353
+
10354
+
10355
+ /**
10356
+ * Returns whether this field is set.
10357
+ * @return {boolean}
10358
+ */
10359
+ proto.game.GameItemRequest.prototype.hasHasFreeSpins = function() {
10360
+ return jspb.Message.getField(this, 11) != null;
10361
+ };
10362
+
10363
+
10364
+
10365
+
10366
+
10367
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10368
+ /**
10369
+ * Creates an object representation of this proto.
10370
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10371
+ * Optional fields that are not set will be set to undefined.
10372
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10373
+ * For the list of reserved names please see:
10374
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10375
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10376
+ * JSPB instance for transitional soy proto support:
10377
+ * http://goto/soy-param-migration
10378
+ * @return {!Object}
10379
+ */
10380
+ proto.game.GetGameRequest.prototype.toObject = function(opt_includeInstance) {
10381
+ return proto.game.GetGameRequest.toObject(opt_includeInstance, this);
10382
+ };
10383
+
10384
+
10385
+ /**
10386
+ * Static version of the {@see toObject} method.
10387
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10388
+ * the JSPB instance for transitional soy proto support:
10389
+ * http://goto/soy-param-migration
10390
+ * @param {!proto.game.GetGameRequest} msg The msg instance to transform.
10391
+ * @return {!Object}
10392
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10393
+ */
10394
+ proto.game.GetGameRequest.toObject = function(includeInstance, msg) {
10395
+ var f, obj = {
10396
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
10397
+ };
10398
+
10399
+ if (includeInstance) {
10400
+ obj.$jspbMessageInstance = msg;
10401
+ }
10402
+ return obj;
10403
+ };
10404
+ }
10405
+
10406
+
10407
+ /**
10408
+ * Deserializes binary data (in protobuf wire format).
10409
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
10410
+ * @return {!proto.game.GetGameRequest}
10411
+ */
10412
+ proto.game.GetGameRequest.deserializeBinary = function(bytes) {
10413
+ var reader = new jspb.BinaryReader(bytes);
10414
+ var msg = new proto.game.GetGameRequest;
10415
+ return proto.game.GetGameRequest.deserializeBinaryFromReader(msg, reader);
10416
+ };
10417
+
10418
+
10419
+ /**
10420
+ * Deserializes binary data (in protobuf wire format) from the
10421
+ * given reader into the given message object.
10422
+ * @param {!proto.game.GetGameRequest} msg The message object to deserialize into.
10423
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10424
+ * @return {!proto.game.GetGameRequest}
10425
+ */
10426
+ proto.game.GetGameRequest.deserializeBinaryFromReader = function(msg, reader) {
10427
+ while (reader.nextField()) {
10428
+ if (reader.isEndGroup()) {
10429
+ break;
10430
+ }
10431
+ var field = reader.getFieldNumber();
10432
+ switch (field) {
10433
+ case 1:
10434
+ var value = /** @type {number} */ (reader.readInt32());
10435
+ msg.setId(value);
10436
+ break;
10437
+ default:
10438
+ reader.skipField();
10439
+ break;
10440
+ }
10441
+ }
10442
+ return msg;
10443
+ };
10444
+
10445
+
10446
+ /**
10447
+ * Serializes the message to binary data (in protobuf wire format).
10448
+ * @return {!Uint8Array}
10449
+ */
10450
+ proto.game.GetGameRequest.prototype.serializeBinary = function() {
10451
+ var writer = new jspb.BinaryWriter();
10452
+ proto.game.GetGameRequest.serializeBinaryToWriter(this, writer);
10453
+ return writer.getResultBuffer();
10454
+ };
10455
+
10456
+
10457
+ /**
10458
+ * Serializes the given message to binary data (in protobuf wire
10459
+ * format), writing to the given BinaryWriter.
10460
+ * @param {!proto.game.GetGameRequest} message
10461
+ * @param {!jspb.BinaryWriter} writer
10462
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10463
+ */
10464
+ proto.game.GetGameRequest.serializeBinaryToWriter = function(message, writer) {
10465
+ var f = undefined;
10466
+ f = message.getId();
10467
+ if (f !== 0) {
10468
+ writer.writeInt32(
10469
+ 1,
10470
+ f
10471
+ );
10472
+ }
10473
+ };
10474
+
10475
+
10476
+ /**
10477
+ * optional int32 id = 1;
10478
+ * @return {number}
10479
+ */
10480
+ proto.game.GetGameRequest.prototype.getId = function() {
10481
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
10482
+ };
10483
+
10484
+
10485
+ /**
10486
+ * @param {number} value
10487
+ * @return {!proto.game.GetGameRequest} returns this
10488
+ */
10489
+ proto.game.GetGameRequest.prototype.setId = function(value) {
10490
+ return jspb.Message.setProto3IntField(this, 1, value);
10491
+ };
10492
+
10493
+
10494
+
10495
+
10496
+
10497
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10498
+ /**
10499
+ * Creates an object representation of this proto.
10500
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10501
+ * Optional fields that are not set will be set to undefined.
10502
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10503
+ * For the list of reserved names please see:
10504
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10505
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10506
+ * JSPB instance for transitional soy proto support:
10507
+ * http://goto/soy-param-migration
10508
+ * @return {!Object}
10509
+ */
10510
+ proto.game.GameResponse.prototype.toObject = function(opt_includeInstance) {
10511
+ return proto.game.GameResponse.toObject(opt_includeInstance, this);
10512
+ };
10513
+
10514
+
10515
+ /**
10516
+ * Static version of the {@see toObject} method.
10517
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10518
+ * the JSPB instance for transitional soy proto support:
10519
+ * http://goto/soy-param-migration
10520
+ * @param {!proto.game.GameResponse} msg The msg instance to transform.
10521
+ * @return {!Object}
10522
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10523
+ */
10524
+ proto.game.GameResponse.toObject = function(includeInstance, msg) {
10525
+ var f, obj = {
10526
+ data: (f = msg.getData()) && proto.game.GameItem.toObject(includeInstance, f)
10527
+ };
10528
+
10529
+ if (includeInstance) {
10530
+ obj.$jspbMessageInstance = msg;
10531
+ }
10532
+ return obj;
10533
+ };
10534
+ }
10535
+
10536
+
10537
+ /**
10538
+ * Deserializes binary data (in protobuf wire format).
10539
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
10540
+ * @return {!proto.game.GameResponse}
10541
+ */
10542
+ proto.game.GameResponse.deserializeBinary = function(bytes) {
10543
+ var reader = new jspb.BinaryReader(bytes);
10544
+ var msg = new proto.game.GameResponse;
10545
+ return proto.game.GameResponse.deserializeBinaryFromReader(msg, reader);
10546
+ };
10547
+
10548
+
10549
+ /**
10550
+ * Deserializes binary data (in protobuf wire format) from the
10551
+ * given reader into the given message object.
10552
+ * @param {!proto.game.GameResponse} msg The message object to deserialize into.
10553
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10554
+ * @return {!proto.game.GameResponse}
10555
+ */
10556
+ proto.game.GameResponse.deserializeBinaryFromReader = function(msg, reader) {
10557
+ while (reader.nextField()) {
10558
+ if (reader.isEndGroup()) {
10559
+ break;
10560
+ }
10561
+ var field = reader.getFieldNumber();
10562
+ switch (field) {
10563
+ case 1:
10564
+ var value = new proto.game.GameItem;
10565
+ reader.readMessage(value,proto.game.GameItem.deserializeBinaryFromReader);
10566
+ msg.setData(value);
10567
+ break;
10568
+ default:
10569
+ reader.skipField();
10570
+ break;
10571
+ }
10572
+ }
10573
+ return msg;
10574
+ };
10575
+
10576
+
10577
+ /**
10578
+ * Serializes the message to binary data (in protobuf wire format).
10579
+ * @return {!Uint8Array}
10580
+ */
10581
+ proto.game.GameResponse.prototype.serializeBinary = function() {
10582
+ var writer = new jspb.BinaryWriter();
10583
+ proto.game.GameResponse.serializeBinaryToWriter(this, writer);
10584
+ return writer.getResultBuffer();
10585
+ };
10586
+
10587
+
10588
+ /**
10589
+ * Serializes the given message to binary data (in protobuf wire
10590
+ * format), writing to the given BinaryWriter.
10591
+ * @param {!proto.game.GameResponse} message
10592
+ * @param {!jspb.BinaryWriter} writer
10593
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10594
+ */
10595
+ proto.game.GameResponse.serializeBinaryToWriter = function(message, writer) {
10596
+ var f = undefined;
10597
+ f = message.getData();
10598
+ if (f != null) {
10599
+ writer.writeMessage(
10600
+ 1,
10601
+ f,
10602
+ proto.game.GameItem.serializeBinaryToWriter
10603
+ );
10604
+ }
10605
+ };
10606
+
10607
+
10608
+ /**
10609
+ * optional GameItem data = 1;
10610
+ * @return {?proto.game.GameItem}
10611
+ */
10612
+ proto.game.GameResponse.prototype.getData = function() {
10613
+ return /** @type{?proto.game.GameItem} */ (
10614
+ jspb.Message.getWrapperField(this, proto.game.GameItem, 1));
10615
+ };
10616
+
10617
+
10618
+ /**
10619
+ * @param {?proto.game.GameItem|undefined} value
10620
+ * @return {!proto.game.GameResponse} returns this
10621
+ */
10622
+ proto.game.GameResponse.prototype.setData = function(value) {
10623
+ return jspb.Message.setWrapperField(this, 1, value);
10624
+ };
10625
+
10626
+
10627
+ /**
10628
+ * Clears the message field making it undefined.
10629
+ * @return {!proto.game.GameResponse} returns this
10630
+ */
10631
+ proto.game.GameResponse.prototype.clearData = function() {
10632
+ return this.setData(undefined);
10633
+ };
10634
+
10635
+
10636
+ /**
10637
+ * Returns whether this field is set.
10638
+ * @return {boolean}
10639
+ */
10640
+ proto.game.GameResponse.prototype.hasData = function() {
10641
+ return jspb.Message.getField(this, 1) != null;
10642
+ };
10643
+
10644
+
10645
+
10646
+ /**
10647
+ * List of repeated fields within this message type.
10648
+ * @private {!Array<number>}
10649
+ * @const
10650
+ */
10651
+ proto.game.GameItemsResponse.repeatedFields_ = [1];
10652
+
10653
+
10654
+
10655
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10656
+ /**
10657
+ * Creates an object representation of this proto.
10658
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10659
+ * Optional fields that are not set will be set to undefined.
10660
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10661
+ * For the list of reserved names please see:
10662
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10663
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10664
+ * JSPB instance for transitional soy proto support:
10665
+ * http://goto/soy-param-migration
10666
+ * @return {!Object}
10667
+ */
10668
+ proto.game.GameItemsResponse.prototype.toObject = function(opt_includeInstance) {
10669
+ return proto.game.GameItemsResponse.toObject(opt_includeInstance, this);
10670
+ };
10671
+
10672
+
10673
+ /**
10674
+ * Static version of the {@see toObject} method.
10675
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10676
+ * the JSPB instance for transitional soy proto support:
10677
+ * http://goto/soy-param-migration
10678
+ * @param {!proto.game.GameItemsResponse} msg The msg instance to transform.
10679
+ * @return {!Object}
10680
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10681
+ */
10682
+ proto.game.GameItemsResponse.toObject = function(includeInstance, msg) {
10683
+ var f, obj = {
10684
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
10685
+ proto.game.GameItem.toObject, includeInstance),
10686
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
10687
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
10688
+ };
10689
+
10690
+ if (includeInstance) {
6669
10691
  obj.$jspbMessageInstance = msg;
6670
10692
  }
6671
10693
  return obj;
@@ -6676,23 +10698,23 @@ proto.game.ParseGamesRequest.toObject = function(includeInstance, msg) {
6676
10698
  /**
6677
10699
  * Deserializes binary data (in protobuf wire format).
6678
10700
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
6679
- * @return {!proto.game.ParseGamesRequest}
10701
+ * @return {!proto.game.GameItemsResponse}
6680
10702
  */
6681
- proto.game.ParseGamesRequest.deserializeBinary = function(bytes) {
10703
+ proto.game.GameItemsResponse.deserializeBinary = function(bytes) {
6682
10704
  var reader = new jspb.BinaryReader(bytes);
6683
- var msg = new proto.game.ParseGamesRequest;
6684
- return proto.game.ParseGamesRequest.deserializeBinaryFromReader(msg, reader);
10705
+ var msg = new proto.game.GameItemsResponse;
10706
+ return proto.game.GameItemsResponse.deserializeBinaryFromReader(msg, reader);
6685
10707
  };
6686
10708
 
6687
10709
 
6688
10710
  /**
6689
10711
  * Deserializes binary data (in protobuf wire format) from the
6690
10712
  * given reader into the given message object.
6691
- * @param {!proto.game.ParseGamesRequest} msg The message object to deserialize into.
10713
+ * @param {!proto.game.GameItemsResponse} msg The message object to deserialize into.
6692
10714
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6693
- * @return {!proto.game.ParseGamesRequest}
10715
+ * @return {!proto.game.GameItemsResponse}
6694
10716
  */
6695
- proto.game.ParseGamesRequest.deserializeBinaryFromReader = function(msg, reader) {
10717
+ proto.game.GameItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
6696
10718
  while (reader.nextField()) {
6697
10719
  if (reader.isEndGroup()) {
6698
10720
  break;
@@ -6700,8 +10722,17 @@ proto.game.ParseGamesRequest.deserializeBinaryFromReader = function(msg, reader)
6700
10722
  var field = reader.getFieldNumber();
6701
10723
  switch (field) {
6702
10724
  case 1:
6703
- var value = /** @type {string} */ (reader.readString());
6704
- msg.setVendor(value);
10725
+ var value = new proto.game.GameItem;
10726
+ reader.readMessage(value,proto.game.GameItem.deserializeBinaryFromReader);
10727
+ msg.addItems(value);
10728
+ break;
10729
+ case 2:
10730
+ var value = /** @type {number} */ (reader.readInt32());
10731
+ msg.setTotalPages(value);
10732
+ break;
10733
+ case 3:
10734
+ var value = /** @type {number} */ (reader.readInt32());
10735
+ msg.setTotalItems(value);
6705
10736
  break;
6706
10737
  default:
6707
10738
  reader.skipField();
@@ -6716,9 +10747,9 @@ proto.game.ParseGamesRequest.deserializeBinaryFromReader = function(msg, reader)
6716
10747
  * Serializes the message to binary data (in protobuf wire format).
6717
10748
  * @return {!Uint8Array}
6718
10749
  */
6719
- proto.game.ParseGamesRequest.prototype.serializeBinary = function() {
10750
+ proto.game.GameItemsResponse.prototype.serializeBinary = function() {
6720
10751
  var writer = new jspb.BinaryWriter();
6721
- proto.game.ParseGamesRequest.serializeBinaryToWriter(this, writer);
10752
+ proto.game.GameItemsResponse.serializeBinaryToWriter(this, writer);
6722
10753
  return writer.getResultBuffer();
6723
10754
  };
6724
10755
 
@@ -6726,16 +10757,31 @@ proto.game.ParseGamesRequest.prototype.serializeBinary = function() {
6726
10757
  /**
6727
10758
  * Serializes the given message to binary data (in protobuf wire
6728
10759
  * format), writing to the given BinaryWriter.
6729
- * @param {!proto.game.ParseGamesRequest} message
10760
+ * @param {!proto.game.GameItemsResponse} message
6730
10761
  * @param {!jspb.BinaryWriter} writer
6731
10762
  * @suppress {unusedLocalVariables} f is only used for nested messages
6732
10763
  */
6733
- proto.game.ParseGamesRequest.serializeBinaryToWriter = function(message, writer) {
10764
+ proto.game.GameItemsResponse.serializeBinaryToWriter = function(message, writer) {
6734
10765
  var f = undefined;
6735
- f = message.getVendor();
10766
+ f = message.getItemsList();
6736
10767
  if (f.length > 0) {
6737
- writer.writeString(
10768
+ writer.writeRepeatedMessage(
6738
10769
  1,
10770
+ f,
10771
+ proto.game.GameItem.serializeBinaryToWriter
10772
+ );
10773
+ }
10774
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
10775
+ if (f != null) {
10776
+ writer.writeInt32(
10777
+ 2,
10778
+ f
10779
+ );
10780
+ }
10781
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
10782
+ if (f != null) {
10783
+ writer.writeInt32(
10784
+ 3,
6739
10785
  f
6740
10786
  );
6741
10787
  }
@@ -6743,20 +10789,112 @@ proto.game.ParseGamesRequest.serializeBinaryToWriter = function(message, writer)
6743
10789
 
6744
10790
 
6745
10791
  /**
6746
- * optional string vendor = 1;
6747
- * @return {string}
10792
+ * repeated GameItem items = 1;
10793
+ * @return {!Array<!proto.game.GameItem>}
6748
10794
  */
6749
- proto.game.ParseGamesRequest.prototype.getVendor = function() {
6750
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
10795
+ proto.game.GameItemsResponse.prototype.getItemsList = function() {
10796
+ return /** @type{!Array<!proto.game.GameItem>} */ (
10797
+ jspb.Message.getRepeatedWrapperField(this, proto.game.GameItem, 1));
6751
10798
  };
6752
10799
 
6753
10800
 
6754
10801
  /**
6755
- * @param {string} value
6756
- * @return {!proto.game.ParseGamesRequest} returns this
10802
+ * @param {!Array<!proto.game.GameItem>} value
10803
+ * @return {!proto.game.GameItemsResponse} returns this
10804
+ */
10805
+ proto.game.GameItemsResponse.prototype.setItemsList = function(value) {
10806
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
10807
+ };
10808
+
10809
+
10810
+ /**
10811
+ * @param {!proto.game.GameItem=} opt_value
10812
+ * @param {number=} opt_index
10813
+ * @return {!proto.game.GameItem}
6757
10814
  */
6758
- proto.game.ParseGamesRequest.prototype.setVendor = function(value) {
6759
- return jspb.Message.setProto3StringField(this, 1, value);
10815
+ proto.game.GameItemsResponse.prototype.addItems = function(opt_value, opt_index) {
10816
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.game.GameItem, opt_index);
10817
+ };
10818
+
10819
+
10820
+ /**
10821
+ * Clears the list making it empty but non-null.
10822
+ * @return {!proto.game.GameItemsResponse} returns this
10823
+ */
10824
+ proto.game.GameItemsResponse.prototype.clearItemsList = function() {
10825
+ return this.setItemsList([]);
10826
+ };
10827
+
10828
+
10829
+ /**
10830
+ * optional int32 total_pages = 2;
10831
+ * @return {number}
10832
+ */
10833
+ proto.game.GameItemsResponse.prototype.getTotalPages = function() {
10834
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
10835
+ };
10836
+
10837
+
10838
+ /**
10839
+ * @param {number} value
10840
+ * @return {!proto.game.GameItemsResponse} returns this
10841
+ */
10842
+ proto.game.GameItemsResponse.prototype.setTotalPages = function(value) {
10843
+ return jspb.Message.setField(this, 2, value);
10844
+ };
10845
+
10846
+
10847
+ /**
10848
+ * Clears the field making it undefined.
10849
+ * @return {!proto.game.GameItemsResponse} returns this
10850
+ */
10851
+ proto.game.GameItemsResponse.prototype.clearTotalPages = function() {
10852
+ return jspb.Message.setField(this, 2, undefined);
10853
+ };
10854
+
10855
+
10856
+ /**
10857
+ * Returns whether this field is set.
10858
+ * @return {boolean}
10859
+ */
10860
+ proto.game.GameItemsResponse.prototype.hasTotalPages = function() {
10861
+ return jspb.Message.getField(this, 2) != null;
10862
+ };
10863
+
10864
+
10865
+ /**
10866
+ * optional int32 total_items = 3;
10867
+ * @return {number}
10868
+ */
10869
+ proto.game.GameItemsResponse.prototype.getTotalItems = function() {
10870
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
10871
+ };
10872
+
10873
+
10874
+ /**
10875
+ * @param {number} value
10876
+ * @return {!proto.game.GameItemsResponse} returns this
10877
+ */
10878
+ proto.game.GameItemsResponse.prototype.setTotalItems = function(value) {
10879
+ return jspb.Message.setField(this, 3, value);
10880
+ };
10881
+
10882
+
10883
+ /**
10884
+ * Clears the field making it undefined.
10885
+ * @return {!proto.game.GameItemsResponse} returns this
10886
+ */
10887
+ proto.game.GameItemsResponse.prototype.clearTotalItems = function() {
10888
+ return jspb.Message.setField(this, 3, undefined);
10889
+ };
10890
+
10891
+
10892
+ /**
10893
+ * Returns whether this field is set.
10894
+ * @return {boolean}
10895
+ */
10896
+ proto.game.GameItemsResponse.prototype.hasTotalItems = function() {
10897
+ return jspb.Message.getField(this, 3) != null;
6760
10898
  };
6761
10899
 
6762
10900
 
@@ -6776,8 +10914,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
6776
10914
  * http://goto/soy-param-migration
6777
10915
  * @return {!Object}
6778
10916
  */
6779
- proto.game.ParseGamesResponse.prototype.toObject = function(opt_includeInstance) {
6780
- return proto.game.ParseGamesResponse.toObject(opt_includeInstance, this);
10917
+ proto.game.GameStatusResponse.prototype.toObject = function(opt_includeInstance) {
10918
+ return proto.game.GameStatusResponse.toObject(opt_includeInstance, this);
6781
10919
  };
6782
10920
 
6783
10921
 
@@ -6786,13 +10924,13 @@ proto.game.ParseGamesResponse.prototype.toObject = function(opt_includeInstance)
6786
10924
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6787
10925
  * the JSPB instance for transitional soy proto support:
6788
10926
  * http://goto/soy-param-migration
6789
- * @param {!proto.game.ParseGamesResponse} msg The msg instance to transform.
10927
+ * @param {!proto.game.GameStatusResponse} msg The msg instance to transform.
6790
10928
  * @return {!Object}
6791
10929
  * @suppress {unusedLocalVariables} f is only used for nested messages
6792
10930
  */
6793
- proto.game.ParseGamesResponse.toObject = function(includeInstance, msg) {
10931
+ proto.game.GameStatusResponse.toObject = function(includeInstance, msg) {
6794
10932
  var f, obj = {
6795
- data: jspb.Message.getFieldWithDefault(msg, 1, "")
10933
+ status: jspb.Message.getFieldWithDefault(msg, 1, "")
6796
10934
  };
6797
10935
 
6798
10936
  if (includeInstance) {
@@ -6806,23 +10944,23 @@ proto.game.ParseGamesResponse.toObject = function(includeInstance, msg) {
6806
10944
  /**
6807
10945
  * Deserializes binary data (in protobuf wire format).
6808
10946
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
6809
- * @return {!proto.game.ParseGamesResponse}
10947
+ * @return {!proto.game.GameStatusResponse}
6810
10948
  */
6811
- proto.game.ParseGamesResponse.deserializeBinary = function(bytes) {
10949
+ proto.game.GameStatusResponse.deserializeBinary = function(bytes) {
6812
10950
  var reader = new jspb.BinaryReader(bytes);
6813
- var msg = new proto.game.ParseGamesResponse;
6814
- return proto.game.ParseGamesResponse.deserializeBinaryFromReader(msg, reader);
10951
+ var msg = new proto.game.GameStatusResponse;
10952
+ return proto.game.GameStatusResponse.deserializeBinaryFromReader(msg, reader);
6815
10953
  };
6816
10954
 
6817
10955
 
6818
10956
  /**
6819
10957
  * Deserializes binary data (in protobuf wire format) from the
6820
10958
  * given reader into the given message object.
6821
- * @param {!proto.game.ParseGamesResponse} msg The message object to deserialize into.
10959
+ * @param {!proto.game.GameStatusResponse} msg The message object to deserialize into.
6822
10960
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6823
- * @return {!proto.game.ParseGamesResponse}
10961
+ * @return {!proto.game.GameStatusResponse}
6824
10962
  */
6825
- proto.game.ParseGamesResponse.deserializeBinaryFromReader = function(msg, reader) {
10963
+ proto.game.GameStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
6826
10964
  while (reader.nextField()) {
6827
10965
  if (reader.isEndGroup()) {
6828
10966
  break;
@@ -6831,7 +10969,7 @@ proto.game.ParseGamesResponse.deserializeBinaryFromReader = function(msg, reader
6831
10969
  switch (field) {
6832
10970
  case 1:
6833
10971
  var value = /** @type {string} */ (reader.readString());
6834
- msg.setData(value);
10972
+ msg.setStatus(value);
6835
10973
  break;
6836
10974
  default:
6837
10975
  reader.skipField();
@@ -6846,9 +10984,9 @@ proto.game.ParseGamesResponse.deserializeBinaryFromReader = function(msg, reader
6846
10984
  * Serializes the message to binary data (in protobuf wire format).
6847
10985
  * @return {!Uint8Array}
6848
10986
  */
6849
- proto.game.ParseGamesResponse.prototype.serializeBinary = function() {
10987
+ proto.game.GameStatusResponse.prototype.serializeBinary = function() {
6850
10988
  var writer = new jspb.BinaryWriter();
6851
- proto.game.ParseGamesResponse.serializeBinaryToWriter(this, writer);
10989
+ proto.game.GameStatusResponse.serializeBinaryToWriter(this, writer);
6852
10990
  return writer.getResultBuffer();
6853
10991
  };
6854
10992
 
@@ -6856,13 +10994,13 @@ proto.game.ParseGamesResponse.prototype.serializeBinary = function() {
6856
10994
  /**
6857
10995
  * Serializes the given message to binary data (in protobuf wire
6858
10996
  * format), writing to the given BinaryWriter.
6859
- * @param {!proto.game.ParseGamesResponse} message
10997
+ * @param {!proto.game.GameStatusResponse} message
6860
10998
  * @param {!jspb.BinaryWriter} writer
6861
10999
  * @suppress {unusedLocalVariables} f is only used for nested messages
6862
11000
  */
6863
- proto.game.ParseGamesResponse.serializeBinaryToWriter = function(message, writer) {
11001
+ proto.game.GameStatusResponse.serializeBinaryToWriter = function(message, writer) {
6864
11002
  var f = undefined;
6865
- f = message.getData();
11003
+ f = message.getStatus();
6866
11004
  if (f.length > 0) {
6867
11005
  writer.writeString(
6868
11006
  1,
@@ -6873,19 +11011,19 @@ proto.game.ParseGamesResponse.serializeBinaryToWriter = function(message, writer
6873
11011
 
6874
11012
 
6875
11013
  /**
6876
- * optional string data = 1;
11014
+ * optional string status = 1;
6877
11015
  * @return {string}
6878
11016
  */
6879
- proto.game.ParseGamesResponse.prototype.getData = function() {
11017
+ proto.game.GameStatusResponse.prototype.getStatus = function() {
6880
11018
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
6881
11019
  };
6882
11020
 
6883
11021
 
6884
11022
  /**
6885
11023
  * @param {string} value
6886
- * @return {!proto.game.ParseGamesResponse} returns this
11024
+ * @return {!proto.game.GameStatusResponse} returns this
6887
11025
  */
6888
- proto.game.ParseGamesResponse.prototype.setData = function(value) {
11026
+ proto.game.GameStatusResponse.prototype.setStatus = function(value) {
6889
11027
  return jspb.Message.setProto3StringField(this, 1, value);
6890
11028
  };
6891
11029