protobuf-platform 1.2.117 → 1.2.118

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.118",
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,33 @@ 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
+
35
+ // Launch response with rendered Betby widget.
36
+ message LaunchBetbyResponse {
37
+ // Rendered HTML snippet to inject on frontend.
38
+ string html = 1;
39
+
40
+ // Launch mode: "guest" or "player".
41
+ optional string mode = 2;
42
+
43
+ // Internal sportsbook session identifier on our side.
44
+ optional string session_id = 3;
14
45
  }
@@ -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,570 @@ 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
+ };
640
+
641
+ if (includeInstance) {
642
+ obj.$jspbMessageInstance = msg;
643
+ }
644
+ return obj;
645
+ };
646
+ }
647
+
648
+
649
+ /**
650
+ * Deserializes binary data (in protobuf wire format).
651
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
652
+ * @return {!proto.sport.LaunchBetbyRequest}
653
+ */
654
+ proto.sport.LaunchBetbyRequest.deserializeBinary = function(bytes) {
655
+ var reader = new jspb.BinaryReader(bytes);
656
+ var msg = new proto.sport.LaunchBetbyRequest;
657
+ return proto.sport.LaunchBetbyRequest.deserializeBinaryFromReader(msg, reader);
658
+ };
659
+
660
+
661
+ /**
662
+ * Deserializes binary data (in protobuf wire format) from the
663
+ * given reader into the given message object.
664
+ * @param {!proto.sport.LaunchBetbyRequest} msg The message object to deserialize into.
665
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
666
+ * @return {!proto.sport.LaunchBetbyRequest}
667
+ */
668
+ proto.sport.LaunchBetbyRequest.deserializeBinaryFromReader = function(msg, reader) {
669
+ while (reader.nextField()) {
670
+ if (reader.isEndGroup()) {
671
+ break;
672
+ }
673
+ var field = reader.getFieldNumber();
674
+ switch (field) {
675
+ case 1:
676
+ var value = /** @type {string} */ (reader.readString());
677
+ msg.setUserId(value);
678
+ break;
679
+ case 2:
680
+ var value = /** @type {string} */ (reader.readString());
681
+ msg.setCurrency(value);
682
+ break;
683
+ case 3:
684
+ var value = /** @type {string} */ (reader.readString());
685
+ msg.setLanguage(value);
686
+ break;
687
+ case 4:
688
+ var value = /** @type {string} */ (reader.readString());
689
+ msg.setReturnUrl(value);
690
+ break;
691
+ case 5:
692
+ var value = /** @type {string} */ (reader.readString());
693
+ msg.setClientIp(value);
694
+ break;
695
+ default:
696
+ reader.skipField();
697
+ break;
698
+ }
699
+ }
700
+ return msg;
701
+ };
702
+
703
+
704
+ /**
705
+ * Serializes the message to binary data (in protobuf wire format).
706
+ * @return {!Uint8Array}
707
+ */
708
+ proto.sport.LaunchBetbyRequest.prototype.serializeBinary = function() {
709
+ var writer = new jspb.BinaryWriter();
710
+ proto.sport.LaunchBetbyRequest.serializeBinaryToWriter(this, writer);
711
+ return writer.getResultBuffer();
712
+ };
713
+
714
+
715
+ /**
716
+ * Serializes the given message to binary data (in protobuf wire
717
+ * format), writing to the given BinaryWriter.
718
+ * @param {!proto.sport.LaunchBetbyRequest} message
719
+ * @param {!jspb.BinaryWriter} writer
720
+ * @suppress {unusedLocalVariables} f is only used for nested messages
721
+ */
722
+ proto.sport.LaunchBetbyRequest.serializeBinaryToWriter = function(message, writer) {
723
+ var f = undefined;
724
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
725
+ if (f != null) {
726
+ writer.writeString(
727
+ 1,
728
+ f
729
+ );
730
+ }
731
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
732
+ if (f != null) {
733
+ writer.writeString(
734
+ 2,
735
+ f
736
+ );
737
+ }
738
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
739
+ if (f != null) {
740
+ writer.writeString(
741
+ 3,
742
+ f
743
+ );
744
+ }
745
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
746
+ if (f != null) {
747
+ writer.writeString(
748
+ 4,
749
+ f
750
+ );
751
+ }
752
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
753
+ if (f != null) {
754
+ writer.writeString(
755
+ 5,
756
+ f
757
+ );
758
+ }
759
+ };
760
+
761
+
762
+ /**
763
+ * optional string user_id = 1;
764
+ * @return {string}
765
+ */
766
+ proto.sport.LaunchBetbyRequest.prototype.getUserId = function() {
767
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
768
+ };
769
+
770
+
771
+ /**
772
+ * @param {string} value
773
+ * @return {!proto.sport.LaunchBetbyRequest} returns this
774
+ */
775
+ proto.sport.LaunchBetbyRequest.prototype.setUserId = function(value) {
776
+ return jspb.Message.setField(this, 1, value);
777
+ };
778
+
779
+
780
+ /**
781
+ * Clears the field making it undefined.
782
+ * @return {!proto.sport.LaunchBetbyRequest} returns this
783
+ */
784
+ proto.sport.LaunchBetbyRequest.prototype.clearUserId = function() {
785
+ return jspb.Message.setField(this, 1, undefined);
786
+ };
787
+
788
+
789
+ /**
790
+ * Returns whether this field is set.
791
+ * @return {boolean}
792
+ */
793
+ proto.sport.LaunchBetbyRequest.prototype.hasUserId = function() {
794
+ return jspb.Message.getField(this, 1) != null;
795
+ };
796
+
797
+
798
+ /**
799
+ * optional string currency = 2;
800
+ * @return {string}
801
+ */
802
+ proto.sport.LaunchBetbyRequest.prototype.getCurrency = function() {
803
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
804
+ };
805
+
806
+
807
+ /**
808
+ * @param {string} value
809
+ * @return {!proto.sport.LaunchBetbyRequest} returns this
810
+ */
811
+ proto.sport.LaunchBetbyRequest.prototype.setCurrency = function(value) {
812
+ return jspb.Message.setField(this, 2, value);
813
+ };
814
+
815
+
816
+ /**
817
+ * Clears the field making it undefined.
818
+ * @return {!proto.sport.LaunchBetbyRequest} returns this
819
+ */
820
+ proto.sport.LaunchBetbyRequest.prototype.clearCurrency = function() {
821
+ return jspb.Message.setField(this, 2, undefined);
822
+ };
823
+
824
+
825
+ /**
826
+ * Returns whether this field is set.
827
+ * @return {boolean}
828
+ */
829
+ proto.sport.LaunchBetbyRequest.prototype.hasCurrency = function() {
830
+ return jspb.Message.getField(this, 2) != null;
831
+ };
832
+
833
+
834
+ /**
835
+ * optional string language = 3;
836
+ * @return {string}
837
+ */
838
+ proto.sport.LaunchBetbyRequest.prototype.getLanguage = function() {
839
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
840
+ };
841
+
842
+
843
+ /**
844
+ * @param {string} value
845
+ * @return {!proto.sport.LaunchBetbyRequest} returns this
846
+ */
847
+ proto.sport.LaunchBetbyRequest.prototype.setLanguage = function(value) {
848
+ return jspb.Message.setField(this, 3, value);
849
+ };
850
+
851
+
852
+ /**
853
+ * Clears the field making it undefined.
854
+ * @return {!proto.sport.LaunchBetbyRequest} returns this
855
+ */
856
+ proto.sport.LaunchBetbyRequest.prototype.clearLanguage = function() {
857
+ return jspb.Message.setField(this, 3, undefined);
858
+ };
859
+
860
+
861
+ /**
862
+ * Returns whether this field is set.
863
+ * @return {boolean}
864
+ */
865
+ proto.sport.LaunchBetbyRequest.prototype.hasLanguage = function() {
866
+ return jspb.Message.getField(this, 3) != null;
867
+ };
868
+
869
+
870
+ /**
871
+ * optional string return_url = 4;
872
+ * @return {string}
873
+ */
874
+ proto.sport.LaunchBetbyRequest.prototype.getReturnUrl = function() {
875
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
876
+ };
877
+
878
+
879
+ /**
880
+ * @param {string} value
881
+ * @return {!proto.sport.LaunchBetbyRequest} returns this
882
+ */
883
+ proto.sport.LaunchBetbyRequest.prototype.setReturnUrl = function(value) {
884
+ return jspb.Message.setField(this, 4, value);
885
+ };
886
+
887
+
888
+ /**
889
+ * Clears the field making it undefined.
890
+ * @return {!proto.sport.LaunchBetbyRequest} returns this
891
+ */
892
+ proto.sport.LaunchBetbyRequest.prototype.clearReturnUrl = function() {
893
+ return jspb.Message.setField(this, 4, undefined);
894
+ };
895
+
896
+
897
+ /**
898
+ * Returns whether this field is set.
899
+ * @return {boolean}
900
+ */
901
+ proto.sport.LaunchBetbyRequest.prototype.hasReturnUrl = function() {
902
+ return jspb.Message.getField(this, 4) != null;
903
+ };
904
+
905
+
906
+ /**
907
+ * optional string client_ip = 5;
908
+ * @return {string}
909
+ */
910
+ proto.sport.LaunchBetbyRequest.prototype.getClientIp = function() {
911
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
912
+ };
913
+
914
+
915
+ /**
916
+ * @param {string} value
917
+ * @return {!proto.sport.LaunchBetbyRequest} returns this
918
+ */
919
+ proto.sport.LaunchBetbyRequest.prototype.setClientIp = function(value) {
920
+ return jspb.Message.setField(this, 5, value);
921
+ };
922
+
923
+
924
+ /**
925
+ * Clears the field making it undefined.
926
+ * @return {!proto.sport.LaunchBetbyRequest} returns this
927
+ */
928
+ proto.sport.LaunchBetbyRequest.prototype.clearClientIp = function() {
929
+ return jspb.Message.setField(this, 5, undefined);
930
+ };
931
+
932
+
933
+ /**
934
+ * Returns whether this field is set.
935
+ * @return {boolean}
936
+ */
937
+ proto.sport.LaunchBetbyRequest.prototype.hasClientIp = function() {
938
+ return jspb.Message.getField(this, 5) != null;
939
+ };
940
+
941
+
942
+
943
+
944
+
945
+ if (jspb.Message.GENERATE_TO_OBJECT) {
946
+ /**
947
+ * Creates an object representation of this proto.
948
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
949
+ * Optional fields that are not set will be set to undefined.
950
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
951
+ * For the list of reserved names please see:
952
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
953
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
954
+ * JSPB instance for transitional soy proto support:
955
+ * http://goto/soy-param-migration
956
+ * @return {!Object}
957
+ */
958
+ proto.sport.LaunchBetbyResponse.prototype.toObject = function(opt_includeInstance) {
959
+ return proto.sport.LaunchBetbyResponse.toObject(opt_includeInstance, this);
960
+ };
961
+
962
+
963
+ /**
964
+ * Static version of the {@see toObject} method.
965
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
966
+ * the JSPB instance for transitional soy proto support:
967
+ * http://goto/soy-param-migration
968
+ * @param {!proto.sport.LaunchBetbyResponse} msg The msg instance to transform.
969
+ * @return {!Object}
970
+ * @suppress {unusedLocalVariables} f is only used for nested messages
971
+ */
972
+ proto.sport.LaunchBetbyResponse.toObject = function(includeInstance, msg) {
973
+ var f, obj = {
974
+ html: jspb.Message.getFieldWithDefault(msg, 1, ""),
975
+ mode: jspb.Message.getFieldWithDefault(msg, 2, ""),
976
+ sessionId: jspb.Message.getFieldWithDefault(msg, 3, "")
977
+ };
978
+
979
+ if (includeInstance) {
980
+ obj.$jspbMessageInstance = msg;
981
+ }
982
+ return obj;
983
+ };
984
+ }
985
+
986
+
987
+ /**
988
+ * Deserializes binary data (in protobuf wire format).
989
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
990
+ * @return {!proto.sport.LaunchBetbyResponse}
991
+ */
992
+ proto.sport.LaunchBetbyResponse.deserializeBinary = function(bytes) {
993
+ var reader = new jspb.BinaryReader(bytes);
994
+ var msg = new proto.sport.LaunchBetbyResponse;
995
+ return proto.sport.LaunchBetbyResponse.deserializeBinaryFromReader(msg, reader);
996
+ };
997
+
998
+
999
+ /**
1000
+ * Deserializes binary data (in protobuf wire format) from the
1001
+ * given reader into the given message object.
1002
+ * @param {!proto.sport.LaunchBetbyResponse} msg The message object to deserialize into.
1003
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1004
+ * @return {!proto.sport.LaunchBetbyResponse}
1005
+ */
1006
+ proto.sport.LaunchBetbyResponse.deserializeBinaryFromReader = function(msg, reader) {
1007
+ while (reader.nextField()) {
1008
+ if (reader.isEndGroup()) {
1009
+ break;
1010
+ }
1011
+ var field = reader.getFieldNumber();
1012
+ switch (field) {
1013
+ case 1:
1014
+ var value = /** @type {string} */ (reader.readString());
1015
+ msg.setHtml(value);
1016
+ break;
1017
+ case 2:
1018
+ var value = /** @type {string} */ (reader.readString());
1019
+ msg.setMode(value);
1020
+ break;
1021
+ case 3:
1022
+ var value = /** @type {string} */ (reader.readString());
1023
+ msg.setSessionId(value);
1024
+ break;
1025
+ default:
1026
+ reader.skipField();
1027
+ break;
1028
+ }
1029
+ }
1030
+ return msg;
1031
+ };
1032
+
1033
+
1034
+ /**
1035
+ * Serializes the message to binary data (in protobuf wire format).
1036
+ * @return {!Uint8Array}
1037
+ */
1038
+ proto.sport.LaunchBetbyResponse.prototype.serializeBinary = function() {
1039
+ var writer = new jspb.BinaryWriter();
1040
+ proto.sport.LaunchBetbyResponse.serializeBinaryToWriter(this, writer);
1041
+ return writer.getResultBuffer();
1042
+ };
1043
+
1044
+
1045
+ /**
1046
+ * Serializes the given message to binary data (in protobuf wire
1047
+ * format), writing to the given BinaryWriter.
1048
+ * @param {!proto.sport.LaunchBetbyResponse} message
1049
+ * @param {!jspb.BinaryWriter} writer
1050
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1051
+ */
1052
+ proto.sport.LaunchBetbyResponse.serializeBinaryToWriter = function(message, writer) {
1053
+ var f = undefined;
1054
+ f = message.getHtml();
1055
+ if (f.length > 0) {
1056
+ writer.writeString(
1057
+ 1,
1058
+ f
1059
+ );
1060
+ }
1061
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
1062
+ if (f != null) {
1063
+ writer.writeString(
1064
+ 2,
1065
+ f
1066
+ );
1067
+ }
1068
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
1069
+ if (f != null) {
1070
+ writer.writeString(
1071
+ 3,
1072
+ f
1073
+ );
1074
+ }
1075
+ };
1076
+
1077
+
1078
+ /**
1079
+ * optional string html = 1;
1080
+ * @return {string}
1081
+ */
1082
+ proto.sport.LaunchBetbyResponse.prototype.getHtml = function() {
1083
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1084
+ };
1085
+
1086
+
1087
+ /**
1088
+ * @param {string} value
1089
+ * @return {!proto.sport.LaunchBetbyResponse} returns this
1090
+ */
1091
+ proto.sport.LaunchBetbyResponse.prototype.setHtml = function(value) {
1092
+ return jspb.Message.setProto3StringField(this, 1, value);
1093
+ };
1094
+
1095
+
1096
+ /**
1097
+ * optional string mode = 2;
1098
+ * @return {string}
1099
+ */
1100
+ proto.sport.LaunchBetbyResponse.prototype.getMode = function() {
1101
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1102
+ };
1103
+
1104
+
1105
+ /**
1106
+ * @param {string} value
1107
+ * @return {!proto.sport.LaunchBetbyResponse} returns this
1108
+ */
1109
+ proto.sport.LaunchBetbyResponse.prototype.setMode = function(value) {
1110
+ return jspb.Message.setField(this, 2, value);
1111
+ };
1112
+
1113
+
1114
+ /**
1115
+ * Clears the field making it undefined.
1116
+ * @return {!proto.sport.LaunchBetbyResponse} returns this
1117
+ */
1118
+ proto.sport.LaunchBetbyResponse.prototype.clearMode = function() {
1119
+ return jspb.Message.setField(this, 2, undefined);
1120
+ };
1121
+
1122
+
1123
+ /**
1124
+ * Returns whether this field is set.
1125
+ * @return {boolean}
1126
+ */
1127
+ proto.sport.LaunchBetbyResponse.prototype.hasMode = function() {
1128
+ return jspb.Message.getField(this, 2) != null;
1129
+ };
1130
+
1131
+
1132
+ /**
1133
+ * optional string session_id = 3;
1134
+ * @return {string}
1135
+ */
1136
+ proto.sport.LaunchBetbyResponse.prototype.getSessionId = function() {
1137
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1138
+ };
1139
+
1140
+
1141
+ /**
1142
+ * @param {string} value
1143
+ * @return {!proto.sport.LaunchBetbyResponse} returns this
1144
+ */
1145
+ proto.sport.LaunchBetbyResponse.prototype.setSessionId = function(value) {
1146
+ return jspb.Message.setField(this, 3, value);
1147
+ };
1148
+
1149
+
1150
+ /**
1151
+ * Clears the field making it undefined.
1152
+ * @return {!proto.sport.LaunchBetbyResponse} returns this
1153
+ */
1154
+ proto.sport.LaunchBetbyResponse.prototype.clearSessionId = function() {
1155
+ return jspb.Message.setField(this, 3, undefined);
1156
+ };
1157
+
1158
+
1159
+ /**
1160
+ * Returns whether this field is set.
1161
+ * @return {boolean}
1162
+ */
1163
+ proto.sport.LaunchBetbyResponse.prototype.hasSessionId = function() {
1164
+ return jspb.Message.getField(this, 3) != null;
1165
+ };
1166
+
1167
+
558
1168
  goog.object.extend(exports, proto.sport);