protobuf-platform 1.2.117 → 1.2.119

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.117",
3
+ "version": "1.2.119",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/sport/sport.proto CHANGED
@@ -4,6 +4,8 @@ package sport;
4
4
 
5
5
  service Sport {
6
6
  rpc checkConnection(PingRequest) returns (PongResponse);
7
+ // Launch Betby sportsbook widget for user or guest.
8
+ rpc launchBetby(LaunchBetbyRequest) returns (LaunchBetbyResponse);
7
9
  }
8
10
  message PingRequest { string ping = 1; }
9
11
  message PongResponse { string pong = 1; }
@@ -11,4 +13,35 @@ message PaginationRequest {
11
13
  int32 limit = 1;
12
14
  int32 offset = 2;
13
15
  optional string order = 3;
16
+ }
17
+ // Launch request for Betby sportsbook.
18
+ message LaunchBetbyRequest {
19
+ // Optional: internal user identifier, empty for guest.
20
+ optional string user_id = 1;
21
+
22
+ // Player currency, e.g. "EUR".
23
+ optional string currency = 2;
24
+
25
+ // Player language, e.g. "en-US".
26
+ optional string language = 3;
27
+
28
+ // URL to return player after sportsbook session end.
29
+ optional string return_url = 4;
30
+
31
+ // Client IP address for Betby (X-Client-Ip).
32
+ optional string client_ip = 5;
33
+
34
+ optional string player_name = 6;
35
+ }
36
+
37
+ // Launch response with rendered Betby widget.
38
+ message LaunchBetbyResponse {
39
+ // Rendered HTML snippet to inject on frontend.
40
+ string html = 1;
41
+
42
+ // Launch mode: "guest" or "player".
43
+ optional string mode = 2;
44
+
45
+ // Internal sportsbook session identifier on our side.
46
+ optional string session_id = 3;
14
47
  }
@@ -4,6 +4,28 @@
4
4
  var grpc = require('@grpc/grpc-js');
5
5
  var sport_pb = require('./sport_pb.js');
6
6
 
7
+ function serialize_sport_LaunchBetbyRequest(arg) {
8
+ if (!(arg instanceof sport_pb.LaunchBetbyRequest)) {
9
+ throw new Error('Expected argument of type sport.LaunchBetbyRequest');
10
+ }
11
+ return Buffer.from(arg.serializeBinary());
12
+ }
13
+
14
+ function deserialize_sport_LaunchBetbyRequest(buffer_arg) {
15
+ return sport_pb.LaunchBetbyRequest.deserializeBinary(new Uint8Array(buffer_arg));
16
+ }
17
+
18
+ function serialize_sport_LaunchBetbyResponse(arg) {
19
+ if (!(arg instanceof sport_pb.LaunchBetbyResponse)) {
20
+ throw new Error('Expected argument of type sport.LaunchBetbyResponse');
21
+ }
22
+ return Buffer.from(arg.serializeBinary());
23
+ }
24
+
25
+ function deserialize_sport_LaunchBetbyResponse(buffer_arg) {
26
+ return sport_pb.LaunchBetbyResponse.deserializeBinary(new Uint8Array(buffer_arg));
27
+ }
28
+
7
29
  function serialize_sport_PingRequest(arg) {
8
30
  if (!(arg instanceof sport_pb.PingRequest)) {
9
31
  throw new Error('Expected argument of type sport.PingRequest');
@@ -39,6 +61,18 @@ var SportService = exports.SportService = {
39
61
  responseSerialize: serialize_sport_PongResponse,
40
62
  responseDeserialize: deserialize_sport_PongResponse,
41
63
  },
64
+ // Launch Betby sportsbook widget for user or guest.
65
+ launchBetby: {
66
+ path: '/sport.Sport/launchBetby',
67
+ requestStream: false,
68
+ responseStream: false,
69
+ requestType: sport_pb.LaunchBetbyRequest,
70
+ responseType: sport_pb.LaunchBetbyResponse,
71
+ requestSerialize: serialize_sport_LaunchBetbyRequest,
72
+ requestDeserialize: deserialize_sport_LaunchBetbyRequest,
73
+ responseSerialize: serialize_sport_LaunchBetbyResponse,
74
+ responseDeserialize: deserialize_sport_LaunchBetbyResponse,
75
+ },
42
76
  };
43
77
 
44
78
  exports.SportClient = grpc.makeGenericClientConstructor(SportService, 'Sport');
package/sport/sport_pb.js CHANGED
@@ -21,6 +21,8 @@ var global = (function() {
21
21
  return Function('return this')();
22
22
  }.call(null));
23
23
 
24
+ goog.exportSymbol('proto.sport.LaunchBetbyRequest', null, global);
25
+ goog.exportSymbol('proto.sport.LaunchBetbyResponse', null, global);
24
26
  goog.exportSymbol('proto.sport.PaginationRequest', null, global);
25
27
  goog.exportSymbol('proto.sport.PingRequest', null, global);
26
28
  goog.exportSymbol('proto.sport.PongResponse', null, global);
@@ -87,6 +89,48 @@ if (goog.DEBUG && !COMPILED) {
87
89
  */
88
90
  proto.sport.PaginationRequest.displayName = 'proto.sport.PaginationRequest';
89
91
  }
92
+ /**
93
+ * Generated by JsPbCodeGenerator.
94
+ * @param {Array=} opt_data Optional initial data array, typically from a
95
+ * server response, or constructed directly in Javascript. The array is used
96
+ * in place and becomes part of the constructed object. It is not cloned.
97
+ * If no data is provided, the constructed object will be empty, but still
98
+ * valid.
99
+ * @extends {jspb.Message}
100
+ * @constructor
101
+ */
102
+ proto.sport.LaunchBetbyRequest = function(opt_data) {
103
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
104
+ };
105
+ goog.inherits(proto.sport.LaunchBetbyRequest, jspb.Message);
106
+ if (goog.DEBUG && !COMPILED) {
107
+ /**
108
+ * @public
109
+ * @override
110
+ */
111
+ proto.sport.LaunchBetbyRequest.displayName = 'proto.sport.LaunchBetbyRequest';
112
+ }
113
+ /**
114
+ * Generated by JsPbCodeGenerator.
115
+ * @param {Array=} opt_data Optional initial data array, typically from a
116
+ * server response, or constructed directly in Javascript. The array is used
117
+ * in place and becomes part of the constructed object. It is not cloned.
118
+ * If no data is provided, the constructed object will be empty, but still
119
+ * valid.
120
+ * @extends {jspb.Message}
121
+ * @constructor
122
+ */
123
+ proto.sport.LaunchBetbyResponse = function(opt_data) {
124
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
125
+ };
126
+ goog.inherits(proto.sport.LaunchBetbyResponse, jspb.Message);
127
+ if (goog.DEBUG && !COMPILED) {
128
+ /**
129
+ * @public
130
+ * @override
131
+ */
132
+ proto.sport.LaunchBetbyResponse.displayName = 'proto.sport.LaunchBetbyResponse';
133
+ }
90
134
 
91
135
 
92
136
 
@@ -555,4 +599,618 @@ proto.sport.PaginationRequest.prototype.hasOrder = function() {
555
599
  };
556
600
 
557
601
 
602
+
603
+
604
+
605
+ if (jspb.Message.GENERATE_TO_OBJECT) {
606
+ /**
607
+ * Creates an object representation of this proto.
608
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
609
+ * Optional fields that are not set will be set to undefined.
610
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
611
+ * For the list of reserved names please see:
612
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
613
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
614
+ * JSPB instance for transitional soy proto support:
615
+ * http://goto/soy-param-migration
616
+ * @return {!Object}
617
+ */
618
+ proto.sport.LaunchBetbyRequest.prototype.toObject = function(opt_includeInstance) {
619
+ return proto.sport.LaunchBetbyRequest.toObject(opt_includeInstance, this);
620
+ };
621
+
622
+
623
+ /**
624
+ * Static version of the {@see toObject} method.
625
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
626
+ * the JSPB instance for transitional soy proto support:
627
+ * http://goto/soy-param-migration
628
+ * @param {!proto.sport.LaunchBetbyRequest} msg The msg instance to transform.
629
+ * @return {!Object}
630
+ * @suppress {unusedLocalVariables} f is only used for nested messages
631
+ */
632
+ proto.sport.LaunchBetbyRequest.toObject = function(includeInstance, msg) {
633
+ var f, obj = {
634
+ userId: jspb.Message.getFieldWithDefault(msg, 1, ""),
635
+ currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
636
+ language: jspb.Message.getFieldWithDefault(msg, 3, ""),
637
+ returnUrl: jspb.Message.getFieldWithDefault(msg, 4, ""),
638
+ clientIp: jspb.Message.getFieldWithDefault(msg, 5, ""),
639
+ playerName: jspb.Message.getFieldWithDefault(msg, 6, "")
640
+ };
641
+
642
+ if (includeInstance) {
643
+ obj.$jspbMessageInstance = msg;
644
+ }
645
+ return obj;
646
+ };
647
+ }
648
+
649
+
650
+ /**
651
+ * Deserializes binary data (in protobuf wire format).
652
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
653
+ * @return {!proto.sport.LaunchBetbyRequest}
654
+ */
655
+ proto.sport.LaunchBetbyRequest.deserializeBinary = function(bytes) {
656
+ var reader = new jspb.BinaryReader(bytes);
657
+ var msg = new proto.sport.LaunchBetbyRequest;
658
+ return proto.sport.LaunchBetbyRequest.deserializeBinaryFromReader(msg, reader);
659
+ };
660
+
661
+
662
+ /**
663
+ * Deserializes binary data (in protobuf wire format) from the
664
+ * given reader into the given message object.
665
+ * @param {!proto.sport.LaunchBetbyRequest} msg The message object to deserialize into.
666
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
667
+ * @return {!proto.sport.LaunchBetbyRequest}
668
+ */
669
+ proto.sport.LaunchBetbyRequest.deserializeBinaryFromReader = function(msg, reader) {
670
+ while (reader.nextField()) {
671
+ if (reader.isEndGroup()) {
672
+ break;
673
+ }
674
+ var field = reader.getFieldNumber();
675
+ switch (field) {
676
+ case 1:
677
+ var value = /** @type {string} */ (reader.readString());
678
+ msg.setUserId(value);
679
+ break;
680
+ case 2:
681
+ var value = /** @type {string} */ (reader.readString());
682
+ msg.setCurrency(value);
683
+ break;
684
+ case 3:
685
+ var value = /** @type {string} */ (reader.readString());
686
+ msg.setLanguage(value);
687
+ break;
688
+ case 4:
689
+ var value = /** @type {string} */ (reader.readString());
690
+ msg.setReturnUrl(value);
691
+ break;
692
+ case 5:
693
+ var value = /** @type {string} */ (reader.readString());
694
+ msg.setClientIp(value);
695
+ break;
696
+ case 6:
697
+ var value = /** @type {string} */ (reader.readString());
698
+ msg.setPlayerName(value);
699
+ break;
700
+ default:
701
+ reader.skipField();
702
+ break;
703
+ }
704
+ }
705
+ return msg;
706
+ };
707
+
708
+
709
+ /**
710
+ * Serializes the message to binary data (in protobuf wire format).
711
+ * @return {!Uint8Array}
712
+ */
713
+ proto.sport.LaunchBetbyRequest.prototype.serializeBinary = function() {
714
+ var writer = new jspb.BinaryWriter();
715
+ proto.sport.LaunchBetbyRequest.serializeBinaryToWriter(this, writer);
716
+ return writer.getResultBuffer();
717
+ };
718
+
719
+
720
+ /**
721
+ * Serializes the given message to binary data (in protobuf wire
722
+ * format), writing to the given BinaryWriter.
723
+ * @param {!proto.sport.LaunchBetbyRequest} message
724
+ * @param {!jspb.BinaryWriter} writer
725
+ * @suppress {unusedLocalVariables} f is only used for nested messages
726
+ */
727
+ proto.sport.LaunchBetbyRequest.serializeBinaryToWriter = function(message, writer) {
728
+ var f = undefined;
729
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
730
+ if (f != null) {
731
+ writer.writeString(
732
+ 1,
733
+ f
734
+ );
735
+ }
736
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
737
+ if (f != null) {
738
+ writer.writeString(
739
+ 2,
740
+ f
741
+ );
742
+ }
743
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
744
+ if (f != null) {
745
+ writer.writeString(
746
+ 3,
747
+ f
748
+ );
749
+ }
750
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
751
+ if (f != null) {
752
+ writer.writeString(
753
+ 4,
754
+ f
755
+ );
756
+ }
757
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
758
+ if (f != null) {
759
+ writer.writeString(
760
+ 5,
761
+ f
762
+ );
763
+ }
764
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
765
+ if (f != null) {
766
+ writer.writeString(
767
+ 6,
768
+ f
769
+ );
770
+ }
771
+ };
772
+
773
+
774
+ /**
775
+ * optional string user_id = 1;
776
+ * @return {string}
777
+ */
778
+ proto.sport.LaunchBetbyRequest.prototype.getUserId = function() {
779
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
780
+ };
781
+
782
+
783
+ /**
784
+ * @param {string} value
785
+ * @return {!proto.sport.LaunchBetbyRequest} returns this
786
+ */
787
+ proto.sport.LaunchBetbyRequest.prototype.setUserId = function(value) {
788
+ return jspb.Message.setField(this, 1, value);
789
+ };
790
+
791
+
792
+ /**
793
+ * Clears the field making it undefined.
794
+ * @return {!proto.sport.LaunchBetbyRequest} returns this
795
+ */
796
+ proto.sport.LaunchBetbyRequest.prototype.clearUserId = function() {
797
+ return jspb.Message.setField(this, 1, undefined);
798
+ };
799
+
800
+
801
+ /**
802
+ * Returns whether this field is set.
803
+ * @return {boolean}
804
+ */
805
+ proto.sport.LaunchBetbyRequest.prototype.hasUserId = function() {
806
+ return jspb.Message.getField(this, 1) != null;
807
+ };
808
+
809
+
810
+ /**
811
+ * optional string currency = 2;
812
+ * @return {string}
813
+ */
814
+ proto.sport.LaunchBetbyRequest.prototype.getCurrency = function() {
815
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
816
+ };
817
+
818
+
819
+ /**
820
+ * @param {string} value
821
+ * @return {!proto.sport.LaunchBetbyRequest} returns this
822
+ */
823
+ proto.sport.LaunchBetbyRequest.prototype.setCurrency = function(value) {
824
+ return jspb.Message.setField(this, 2, value);
825
+ };
826
+
827
+
828
+ /**
829
+ * Clears the field making it undefined.
830
+ * @return {!proto.sport.LaunchBetbyRequest} returns this
831
+ */
832
+ proto.sport.LaunchBetbyRequest.prototype.clearCurrency = function() {
833
+ return jspb.Message.setField(this, 2, undefined);
834
+ };
835
+
836
+
837
+ /**
838
+ * Returns whether this field is set.
839
+ * @return {boolean}
840
+ */
841
+ proto.sport.LaunchBetbyRequest.prototype.hasCurrency = function() {
842
+ return jspb.Message.getField(this, 2) != null;
843
+ };
844
+
845
+
846
+ /**
847
+ * optional string language = 3;
848
+ * @return {string}
849
+ */
850
+ proto.sport.LaunchBetbyRequest.prototype.getLanguage = function() {
851
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
852
+ };
853
+
854
+
855
+ /**
856
+ * @param {string} value
857
+ * @return {!proto.sport.LaunchBetbyRequest} returns this
858
+ */
859
+ proto.sport.LaunchBetbyRequest.prototype.setLanguage = function(value) {
860
+ return jspb.Message.setField(this, 3, value);
861
+ };
862
+
863
+
864
+ /**
865
+ * Clears the field making it undefined.
866
+ * @return {!proto.sport.LaunchBetbyRequest} returns this
867
+ */
868
+ proto.sport.LaunchBetbyRequest.prototype.clearLanguage = function() {
869
+ return jspb.Message.setField(this, 3, undefined);
870
+ };
871
+
872
+
873
+ /**
874
+ * Returns whether this field is set.
875
+ * @return {boolean}
876
+ */
877
+ proto.sport.LaunchBetbyRequest.prototype.hasLanguage = function() {
878
+ return jspb.Message.getField(this, 3) != null;
879
+ };
880
+
881
+
882
+ /**
883
+ * optional string return_url = 4;
884
+ * @return {string}
885
+ */
886
+ proto.sport.LaunchBetbyRequest.prototype.getReturnUrl = function() {
887
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
888
+ };
889
+
890
+
891
+ /**
892
+ * @param {string} value
893
+ * @return {!proto.sport.LaunchBetbyRequest} returns this
894
+ */
895
+ proto.sport.LaunchBetbyRequest.prototype.setReturnUrl = function(value) {
896
+ return jspb.Message.setField(this, 4, value);
897
+ };
898
+
899
+
900
+ /**
901
+ * Clears the field making it undefined.
902
+ * @return {!proto.sport.LaunchBetbyRequest} returns this
903
+ */
904
+ proto.sport.LaunchBetbyRequest.prototype.clearReturnUrl = function() {
905
+ return jspb.Message.setField(this, 4, undefined);
906
+ };
907
+
908
+
909
+ /**
910
+ * Returns whether this field is set.
911
+ * @return {boolean}
912
+ */
913
+ proto.sport.LaunchBetbyRequest.prototype.hasReturnUrl = function() {
914
+ return jspb.Message.getField(this, 4) != null;
915
+ };
916
+
917
+
918
+ /**
919
+ * optional string client_ip = 5;
920
+ * @return {string}
921
+ */
922
+ proto.sport.LaunchBetbyRequest.prototype.getClientIp = function() {
923
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
924
+ };
925
+
926
+
927
+ /**
928
+ * @param {string} value
929
+ * @return {!proto.sport.LaunchBetbyRequest} returns this
930
+ */
931
+ proto.sport.LaunchBetbyRequest.prototype.setClientIp = function(value) {
932
+ return jspb.Message.setField(this, 5, value);
933
+ };
934
+
935
+
936
+ /**
937
+ * Clears the field making it undefined.
938
+ * @return {!proto.sport.LaunchBetbyRequest} returns this
939
+ */
940
+ proto.sport.LaunchBetbyRequest.prototype.clearClientIp = function() {
941
+ return jspb.Message.setField(this, 5, undefined);
942
+ };
943
+
944
+
945
+ /**
946
+ * Returns whether this field is set.
947
+ * @return {boolean}
948
+ */
949
+ proto.sport.LaunchBetbyRequest.prototype.hasClientIp = function() {
950
+ return jspb.Message.getField(this, 5) != null;
951
+ };
952
+
953
+
954
+ /**
955
+ * optional string player_name = 6;
956
+ * @return {string}
957
+ */
958
+ proto.sport.LaunchBetbyRequest.prototype.getPlayerName = function() {
959
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
960
+ };
961
+
962
+
963
+ /**
964
+ * @param {string} value
965
+ * @return {!proto.sport.LaunchBetbyRequest} returns this
966
+ */
967
+ proto.sport.LaunchBetbyRequest.prototype.setPlayerName = function(value) {
968
+ return jspb.Message.setField(this, 6, value);
969
+ };
970
+
971
+
972
+ /**
973
+ * Clears the field making it undefined.
974
+ * @return {!proto.sport.LaunchBetbyRequest} returns this
975
+ */
976
+ proto.sport.LaunchBetbyRequest.prototype.clearPlayerName = function() {
977
+ return jspb.Message.setField(this, 6, undefined);
978
+ };
979
+
980
+
981
+ /**
982
+ * Returns whether this field is set.
983
+ * @return {boolean}
984
+ */
985
+ proto.sport.LaunchBetbyRequest.prototype.hasPlayerName = function() {
986
+ return jspb.Message.getField(this, 6) != null;
987
+ };
988
+
989
+
990
+
991
+
992
+
993
+ if (jspb.Message.GENERATE_TO_OBJECT) {
994
+ /**
995
+ * Creates an object representation of this proto.
996
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
997
+ * Optional fields that are not set will be set to undefined.
998
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
999
+ * For the list of reserved names please see:
1000
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1001
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1002
+ * JSPB instance for transitional soy proto support:
1003
+ * http://goto/soy-param-migration
1004
+ * @return {!Object}
1005
+ */
1006
+ proto.sport.LaunchBetbyResponse.prototype.toObject = function(opt_includeInstance) {
1007
+ return proto.sport.LaunchBetbyResponse.toObject(opt_includeInstance, this);
1008
+ };
1009
+
1010
+
1011
+ /**
1012
+ * Static version of the {@see toObject} method.
1013
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1014
+ * the JSPB instance for transitional soy proto support:
1015
+ * http://goto/soy-param-migration
1016
+ * @param {!proto.sport.LaunchBetbyResponse} msg The msg instance to transform.
1017
+ * @return {!Object}
1018
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1019
+ */
1020
+ proto.sport.LaunchBetbyResponse.toObject = function(includeInstance, msg) {
1021
+ var f, obj = {
1022
+ html: jspb.Message.getFieldWithDefault(msg, 1, ""),
1023
+ mode: jspb.Message.getFieldWithDefault(msg, 2, ""),
1024
+ sessionId: jspb.Message.getFieldWithDefault(msg, 3, "")
1025
+ };
1026
+
1027
+ if (includeInstance) {
1028
+ obj.$jspbMessageInstance = msg;
1029
+ }
1030
+ return obj;
1031
+ };
1032
+ }
1033
+
1034
+
1035
+ /**
1036
+ * Deserializes binary data (in protobuf wire format).
1037
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1038
+ * @return {!proto.sport.LaunchBetbyResponse}
1039
+ */
1040
+ proto.sport.LaunchBetbyResponse.deserializeBinary = function(bytes) {
1041
+ var reader = new jspb.BinaryReader(bytes);
1042
+ var msg = new proto.sport.LaunchBetbyResponse;
1043
+ return proto.sport.LaunchBetbyResponse.deserializeBinaryFromReader(msg, reader);
1044
+ };
1045
+
1046
+
1047
+ /**
1048
+ * Deserializes binary data (in protobuf wire format) from the
1049
+ * given reader into the given message object.
1050
+ * @param {!proto.sport.LaunchBetbyResponse} msg The message object to deserialize into.
1051
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1052
+ * @return {!proto.sport.LaunchBetbyResponse}
1053
+ */
1054
+ proto.sport.LaunchBetbyResponse.deserializeBinaryFromReader = function(msg, reader) {
1055
+ while (reader.nextField()) {
1056
+ if (reader.isEndGroup()) {
1057
+ break;
1058
+ }
1059
+ var field = reader.getFieldNumber();
1060
+ switch (field) {
1061
+ case 1:
1062
+ var value = /** @type {string} */ (reader.readString());
1063
+ msg.setHtml(value);
1064
+ break;
1065
+ case 2:
1066
+ var value = /** @type {string} */ (reader.readString());
1067
+ msg.setMode(value);
1068
+ break;
1069
+ case 3:
1070
+ var value = /** @type {string} */ (reader.readString());
1071
+ msg.setSessionId(value);
1072
+ break;
1073
+ default:
1074
+ reader.skipField();
1075
+ break;
1076
+ }
1077
+ }
1078
+ return msg;
1079
+ };
1080
+
1081
+
1082
+ /**
1083
+ * Serializes the message to binary data (in protobuf wire format).
1084
+ * @return {!Uint8Array}
1085
+ */
1086
+ proto.sport.LaunchBetbyResponse.prototype.serializeBinary = function() {
1087
+ var writer = new jspb.BinaryWriter();
1088
+ proto.sport.LaunchBetbyResponse.serializeBinaryToWriter(this, writer);
1089
+ return writer.getResultBuffer();
1090
+ };
1091
+
1092
+
1093
+ /**
1094
+ * Serializes the given message to binary data (in protobuf wire
1095
+ * format), writing to the given BinaryWriter.
1096
+ * @param {!proto.sport.LaunchBetbyResponse} message
1097
+ * @param {!jspb.BinaryWriter} writer
1098
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1099
+ */
1100
+ proto.sport.LaunchBetbyResponse.serializeBinaryToWriter = function(message, writer) {
1101
+ var f = undefined;
1102
+ f = message.getHtml();
1103
+ if (f.length > 0) {
1104
+ writer.writeString(
1105
+ 1,
1106
+ f
1107
+ );
1108
+ }
1109
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
1110
+ if (f != null) {
1111
+ writer.writeString(
1112
+ 2,
1113
+ f
1114
+ );
1115
+ }
1116
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
1117
+ if (f != null) {
1118
+ writer.writeString(
1119
+ 3,
1120
+ f
1121
+ );
1122
+ }
1123
+ };
1124
+
1125
+
1126
+ /**
1127
+ * optional string html = 1;
1128
+ * @return {string}
1129
+ */
1130
+ proto.sport.LaunchBetbyResponse.prototype.getHtml = function() {
1131
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1132
+ };
1133
+
1134
+
1135
+ /**
1136
+ * @param {string} value
1137
+ * @return {!proto.sport.LaunchBetbyResponse} returns this
1138
+ */
1139
+ proto.sport.LaunchBetbyResponse.prototype.setHtml = function(value) {
1140
+ return jspb.Message.setProto3StringField(this, 1, value);
1141
+ };
1142
+
1143
+
1144
+ /**
1145
+ * optional string mode = 2;
1146
+ * @return {string}
1147
+ */
1148
+ proto.sport.LaunchBetbyResponse.prototype.getMode = function() {
1149
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1150
+ };
1151
+
1152
+
1153
+ /**
1154
+ * @param {string} value
1155
+ * @return {!proto.sport.LaunchBetbyResponse} returns this
1156
+ */
1157
+ proto.sport.LaunchBetbyResponse.prototype.setMode = function(value) {
1158
+ return jspb.Message.setField(this, 2, value);
1159
+ };
1160
+
1161
+
1162
+ /**
1163
+ * Clears the field making it undefined.
1164
+ * @return {!proto.sport.LaunchBetbyResponse} returns this
1165
+ */
1166
+ proto.sport.LaunchBetbyResponse.prototype.clearMode = function() {
1167
+ return jspb.Message.setField(this, 2, undefined);
1168
+ };
1169
+
1170
+
1171
+ /**
1172
+ * Returns whether this field is set.
1173
+ * @return {boolean}
1174
+ */
1175
+ proto.sport.LaunchBetbyResponse.prototype.hasMode = function() {
1176
+ return jspb.Message.getField(this, 2) != null;
1177
+ };
1178
+
1179
+
1180
+ /**
1181
+ * optional string session_id = 3;
1182
+ * @return {string}
1183
+ */
1184
+ proto.sport.LaunchBetbyResponse.prototype.getSessionId = function() {
1185
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1186
+ };
1187
+
1188
+
1189
+ /**
1190
+ * @param {string} value
1191
+ * @return {!proto.sport.LaunchBetbyResponse} returns this
1192
+ */
1193
+ proto.sport.LaunchBetbyResponse.prototype.setSessionId = function(value) {
1194
+ return jspb.Message.setField(this, 3, value);
1195
+ };
1196
+
1197
+
1198
+ /**
1199
+ * Clears the field making it undefined.
1200
+ * @return {!proto.sport.LaunchBetbyResponse} returns this
1201
+ */
1202
+ proto.sport.LaunchBetbyResponse.prototype.clearSessionId = function() {
1203
+ return jspb.Message.setField(this, 3, undefined);
1204
+ };
1205
+
1206
+
1207
+ /**
1208
+ * Returns whether this field is set.
1209
+ * @return {boolean}
1210
+ */
1211
+ proto.sport.LaunchBetbyResponse.prototype.hasSessionId = function() {
1212
+ return jspb.Message.getField(this, 3) != null;
1213
+ };
1214
+
1215
+
558
1216
  goog.object.extend(exports, proto.sport);