protobuf-platform 1.0.117 → 1.0.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/game/game.proto CHANGED
@@ -49,6 +49,9 @@ service Game {
49
49
  rpc processedVendorActionCallback(VendorActionRequest) returns (VendorActionResponse);
50
50
  rpc getIntegratorSettings(IntegratorSettingsRequest) returns (IntegratorSettingsResponse);
51
51
  rpc vendorSelfValidation(IntegratorSelfValidationRequest) returns (IntegratorSelfValidationResponse);
52
+ //Free Spins
53
+ rpc getFreeSpinsSettings(FreeSpinSettingsRequest) returns (FreeSpinSettingsResponse);
54
+ rpc setFreeSpins(FreeSpinCampaignRequest) returns (FreeSpinCampaignResponse);
52
55
  //Cross Services
53
56
  rpc getGamesByUuids(GamesUuids) returns (GamePoorItemsResponse);
54
57
  rpc getGameScopesByIds(ScopeRequest) returns (ScopeResponse);
@@ -391,4 +394,28 @@ message ScopeRequest {
391
394
  }
392
395
  message ScopeResponse {
393
396
  string data = 1;
397
+ }
398
+ //Free Spins
399
+ message FreeSpinSettingsRequest {
400
+ string game_uuid = 1;
401
+ string currency = 2;
402
+ }
403
+ message FreeSpinSettingsResponse {
404
+ string data = 1;
405
+ }
406
+ message FreeSpinCampaignRequest {
407
+ string game_uuid = 1;
408
+ string currency = 2;
409
+ string player_id = 3;
410
+ string player_name = 4;
411
+ int32 valid_from = 5;
412
+ int32 valid_until = 6;
413
+ int32 quantity = 7;
414
+ string freespin_id = 8;
415
+ optional int32 bet_id = 9;
416
+ optional float denomination = 10;
417
+ optional int32 total_bet_id = 11;
418
+ }
419
+ message FreeSpinCampaignResponse {
420
+ string data = 1;
394
421
  }
@@ -114,6 +114,50 @@ function deserialize_game_File(buffer_arg) {
114
114
  return game_pb.File.deserializeBinary(new Uint8Array(buffer_arg));
115
115
  }
116
116
 
117
+ function serialize_game_FreeSpinCampaignRequest(arg) {
118
+ if (!(arg instanceof game_pb.FreeSpinCampaignRequest)) {
119
+ throw new Error('Expected argument of type game.FreeSpinCampaignRequest');
120
+ }
121
+ return Buffer.from(arg.serializeBinary());
122
+ }
123
+
124
+ function deserialize_game_FreeSpinCampaignRequest(buffer_arg) {
125
+ return game_pb.FreeSpinCampaignRequest.deserializeBinary(new Uint8Array(buffer_arg));
126
+ }
127
+
128
+ function serialize_game_FreeSpinCampaignResponse(arg) {
129
+ if (!(arg instanceof game_pb.FreeSpinCampaignResponse)) {
130
+ throw new Error('Expected argument of type game.FreeSpinCampaignResponse');
131
+ }
132
+ return Buffer.from(arg.serializeBinary());
133
+ }
134
+
135
+ function deserialize_game_FreeSpinCampaignResponse(buffer_arg) {
136
+ return game_pb.FreeSpinCampaignResponse.deserializeBinary(new Uint8Array(buffer_arg));
137
+ }
138
+
139
+ function serialize_game_FreeSpinSettingsRequest(arg) {
140
+ if (!(arg instanceof game_pb.FreeSpinSettingsRequest)) {
141
+ throw new Error('Expected argument of type game.FreeSpinSettingsRequest');
142
+ }
143
+ return Buffer.from(arg.serializeBinary());
144
+ }
145
+
146
+ function deserialize_game_FreeSpinSettingsRequest(buffer_arg) {
147
+ return game_pb.FreeSpinSettingsRequest.deserializeBinary(new Uint8Array(buffer_arg));
148
+ }
149
+
150
+ function serialize_game_FreeSpinSettingsResponse(arg) {
151
+ if (!(arg instanceof game_pb.FreeSpinSettingsResponse)) {
152
+ throw new Error('Expected argument of type game.FreeSpinSettingsResponse');
153
+ }
154
+ return Buffer.from(arg.serializeBinary());
155
+ }
156
+
157
+ function deserialize_game_FreeSpinSettingsResponse(buffer_arg) {
158
+ return game_pb.FreeSpinSettingsResponse.deserializeBinary(new Uint8Array(buffer_arg));
159
+ }
160
+
117
161
  function serialize_game_GameItemsResponse(arg) {
118
162
  if (!(arg instanceof game_pb.GameItemsResponse)) {
119
163
  throw new Error('Expected argument of type game.GameItemsResponse');
@@ -1002,6 +1046,29 @@ processedVendorActionCallback: {
1002
1046
  responseSerialize: serialize_game_IntegratorSelfValidationResponse,
1003
1047
  responseDeserialize: deserialize_game_IntegratorSelfValidationResponse,
1004
1048
  },
1049
+ // Free Spins
1050
+ getFreeSpinsSettings: {
1051
+ path: '/game.Game/getFreeSpinsSettings',
1052
+ requestStream: false,
1053
+ responseStream: false,
1054
+ requestType: game_pb.FreeSpinSettingsRequest,
1055
+ responseType: game_pb.FreeSpinSettingsResponse,
1056
+ requestSerialize: serialize_game_FreeSpinSettingsRequest,
1057
+ requestDeserialize: deserialize_game_FreeSpinSettingsRequest,
1058
+ responseSerialize: serialize_game_FreeSpinSettingsResponse,
1059
+ responseDeserialize: deserialize_game_FreeSpinSettingsResponse,
1060
+ },
1061
+ setFreeSpins: {
1062
+ path: '/game.Game/setFreeSpins',
1063
+ requestStream: false,
1064
+ responseStream: false,
1065
+ requestType: game_pb.FreeSpinCampaignRequest,
1066
+ responseType: game_pb.FreeSpinCampaignResponse,
1067
+ requestSerialize: serialize_game_FreeSpinCampaignRequest,
1068
+ requestDeserialize: deserialize_game_FreeSpinCampaignRequest,
1069
+ responseSerialize: serialize_game_FreeSpinCampaignResponse,
1070
+ responseDeserialize: deserialize_game_FreeSpinCampaignResponse,
1071
+ },
1005
1072
  // Cross Services
1006
1073
  getGamesByUuids: {
1007
1074
  path: '/game.Game/getGamesByUuids',
package/game/game_pb.js CHANGED
@@ -37,6 +37,10 @@ goog.exportSymbol('proto.game.CollectionRequest.RequestCase', null, global);
37
37
  goog.exportSymbol('proto.game.CollectionResponse', null, global);
38
38
  goog.exportSymbol('proto.game.CollectionStatusResponse', null, global);
39
39
  goog.exportSymbol('proto.game.File', null, global);
40
+ goog.exportSymbol('proto.game.FreeSpinCampaignRequest', null, global);
41
+ goog.exportSymbol('proto.game.FreeSpinCampaignResponse', null, global);
42
+ goog.exportSymbol('proto.game.FreeSpinSettingsRequest', null, global);
43
+ goog.exportSymbol('proto.game.FreeSpinSettingsResponse', null, global);
40
44
  goog.exportSymbol('proto.game.GameItem', null, global);
41
45
  goog.exportSymbol('proto.game.GameItemRequest', null, global);
42
46
  goog.exportSymbol('proto.game.GameItemsResponse', null, global);
@@ -1390,6 +1394,90 @@ if (goog.DEBUG && !COMPILED) {
1390
1394
  */
1391
1395
  proto.game.ScopeResponse.displayName = 'proto.game.ScopeResponse';
1392
1396
  }
1397
+ /**
1398
+ * Generated by JsPbCodeGenerator.
1399
+ * @param {Array=} opt_data Optional initial data array, typically from a
1400
+ * server response, or constructed directly in Javascript. The array is used
1401
+ * in place and becomes part of the constructed object. It is not cloned.
1402
+ * If no data is provided, the constructed object will be empty, but still
1403
+ * valid.
1404
+ * @extends {jspb.Message}
1405
+ * @constructor
1406
+ */
1407
+ proto.game.FreeSpinSettingsRequest = function(opt_data) {
1408
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1409
+ };
1410
+ goog.inherits(proto.game.FreeSpinSettingsRequest, jspb.Message);
1411
+ if (goog.DEBUG && !COMPILED) {
1412
+ /**
1413
+ * @public
1414
+ * @override
1415
+ */
1416
+ proto.game.FreeSpinSettingsRequest.displayName = 'proto.game.FreeSpinSettingsRequest';
1417
+ }
1418
+ /**
1419
+ * Generated by JsPbCodeGenerator.
1420
+ * @param {Array=} opt_data Optional initial data array, typically from a
1421
+ * server response, or constructed directly in Javascript. The array is used
1422
+ * in place and becomes part of the constructed object. It is not cloned.
1423
+ * If no data is provided, the constructed object will be empty, but still
1424
+ * valid.
1425
+ * @extends {jspb.Message}
1426
+ * @constructor
1427
+ */
1428
+ proto.game.FreeSpinSettingsResponse = function(opt_data) {
1429
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1430
+ };
1431
+ goog.inherits(proto.game.FreeSpinSettingsResponse, jspb.Message);
1432
+ if (goog.DEBUG && !COMPILED) {
1433
+ /**
1434
+ * @public
1435
+ * @override
1436
+ */
1437
+ proto.game.FreeSpinSettingsResponse.displayName = 'proto.game.FreeSpinSettingsResponse';
1438
+ }
1439
+ /**
1440
+ * Generated by JsPbCodeGenerator.
1441
+ * @param {Array=} opt_data Optional initial data array, typically from a
1442
+ * server response, or constructed directly in Javascript. The array is used
1443
+ * in place and becomes part of the constructed object. It is not cloned.
1444
+ * If no data is provided, the constructed object will be empty, but still
1445
+ * valid.
1446
+ * @extends {jspb.Message}
1447
+ * @constructor
1448
+ */
1449
+ proto.game.FreeSpinCampaignRequest = function(opt_data) {
1450
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1451
+ };
1452
+ goog.inherits(proto.game.FreeSpinCampaignRequest, jspb.Message);
1453
+ if (goog.DEBUG && !COMPILED) {
1454
+ /**
1455
+ * @public
1456
+ * @override
1457
+ */
1458
+ proto.game.FreeSpinCampaignRequest.displayName = 'proto.game.FreeSpinCampaignRequest';
1459
+ }
1460
+ /**
1461
+ * Generated by JsPbCodeGenerator.
1462
+ * @param {Array=} opt_data Optional initial data array, typically from a
1463
+ * server response, or constructed directly in Javascript. The array is used
1464
+ * in place and becomes part of the constructed object. It is not cloned.
1465
+ * If no data is provided, the constructed object will be empty, but still
1466
+ * valid.
1467
+ * @extends {jspb.Message}
1468
+ * @constructor
1469
+ */
1470
+ proto.game.FreeSpinCampaignResponse = function(opt_data) {
1471
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1472
+ };
1473
+ goog.inherits(proto.game.FreeSpinCampaignResponse, jspb.Message);
1474
+ if (goog.DEBUG && !COMPILED) {
1475
+ /**
1476
+ * @public
1477
+ * @override
1478
+ */
1479
+ proto.game.FreeSpinCampaignResponse.displayName = 'proto.game.FreeSpinCampaignResponse';
1480
+ }
1393
1481
 
1394
1482
 
1395
1483
 
@@ -16761,4 +16849,908 @@ proto.game.ScopeResponse.prototype.setData = function(value) {
16761
16849
  };
16762
16850
 
16763
16851
 
16852
+
16853
+
16854
+
16855
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16856
+ /**
16857
+ * Creates an object representation of this proto.
16858
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16859
+ * Optional fields that are not set will be set to undefined.
16860
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16861
+ * For the list of reserved names please see:
16862
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
16863
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
16864
+ * JSPB instance for transitional soy proto support:
16865
+ * http://goto/soy-param-migration
16866
+ * @return {!Object}
16867
+ */
16868
+ proto.game.FreeSpinSettingsRequest.prototype.toObject = function(opt_includeInstance) {
16869
+ return proto.game.FreeSpinSettingsRequest.toObject(opt_includeInstance, this);
16870
+ };
16871
+
16872
+
16873
+ /**
16874
+ * Static version of the {@see toObject} method.
16875
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
16876
+ * the JSPB instance for transitional soy proto support:
16877
+ * http://goto/soy-param-migration
16878
+ * @param {!proto.game.FreeSpinSettingsRequest} msg The msg instance to transform.
16879
+ * @return {!Object}
16880
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16881
+ */
16882
+ proto.game.FreeSpinSettingsRequest.toObject = function(includeInstance, msg) {
16883
+ var f, obj = {
16884
+ gameUuid: jspb.Message.getFieldWithDefault(msg, 1, ""),
16885
+ currency: jspb.Message.getFieldWithDefault(msg, 2, "")
16886
+ };
16887
+
16888
+ if (includeInstance) {
16889
+ obj.$jspbMessageInstance = msg;
16890
+ }
16891
+ return obj;
16892
+ };
16893
+ }
16894
+
16895
+
16896
+ /**
16897
+ * Deserializes binary data (in protobuf wire format).
16898
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
16899
+ * @return {!proto.game.FreeSpinSettingsRequest}
16900
+ */
16901
+ proto.game.FreeSpinSettingsRequest.deserializeBinary = function(bytes) {
16902
+ var reader = new jspb.BinaryReader(bytes);
16903
+ var msg = new proto.game.FreeSpinSettingsRequest;
16904
+ return proto.game.FreeSpinSettingsRequest.deserializeBinaryFromReader(msg, reader);
16905
+ };
16906
+
16907
+
16908
+ /**
16909
+ * Deserializes binary data (in protobuf wire format) from the
16910
+ * given reader into the given message object.
16911
+ * @param {!proto.game.FreeSpinSettingsRequest} msg The message object to deserialize into.
16912
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16913
+ * @return {!proto.game.FreeSpinSettingsRequest}
16914
+ */
16915
+ proto.game.FreeSpinSettingsRequest.deserializeBinaryFromReader = function(msg, reader) {
16916
+ while (reader.nextField()) {
16917
+ if (reader.isEndGroup()) {
16918
+ break;
16919
+ }
16920
+ var field = reader.getFieldNumber();
16921
+ switch (field) {
16922
+ case 1:
16923
+ var value = /** @type {string} */ (reader.readString());
16924
+ msg.setGameUuid(value);
16925
+ break;
16926
+ case 2:
16927
+ var value = /** @type {string} */ (reader.readString());
16928
+ msg.setCurrency(value);
16929
+ break;
16930
+ default:
16931
+ reader.skipField();
16932
+ break;
16933
+ }
16934
+ }
16935
+ return msg;
16936
+ };
16937
+
16938
+
16939
+ /**
16940
+ * Serializes the message to binary data (in protobuf wire format).
16941
+ * @return {!Uint8Array}
16942
+ */
16943
+ proto.game.FreeSpinSettingsRequest.prototype.serializeBinary = function() {
16944
+ var writer = new jspb.BinaryWriter();
16945
+ proto.game.FreeSpinSettingsRequest.serializeBinaryToWriter(this, writer);
16946
+ return writer.getResultBuffer();
16947
+ };
16948
+
16949
+
16950
+ /**
16951
+ * Serializes the given message to binary data (in protobuf wire
16952
+ * format), writing to the given BinaryWriter.
16953
+ * @param {!proto.game.FreeSpinSettingsRequest} message
16954
+ * @param {!jspb.BinaryWriter} writer
16955
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16956
+ */
16957
+ proto.game.FreeSpinSettingsRequest.serializeBinaryToWriter = function(message, writer) {
16958
+ var f = undefined;
16959
+ f = message.getGameUuid();
16960
+ if (f.length > 0) {
16961
+ writer.writeString(
16962
+ 1,
16963
+ f
16964
+ );
16965
+ }
16966
+ f = message.getCurrency();
16967
+ if (f.length > 0) {
16968
+ writer.writeString(
16969
+ 2,
16970
+ f
16971
+ );
16972
+ }
16973
+ };
16974
+
16975
+
16976
+ /**
16977
+ * optional string game_uuid = 1;
16978
+ * @return {string}
16979
+ */
16980
+ proto.game.FreeSpinSettingsRequest.prototype.getGameUuid = function() {
16981
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
16982
+ };
16983
+
16984
+
16985
+ /**
16986
+ * @param {string} value
16987
+ * @return {!proto.game.FreeSpinSettingsRequest} returns this
16988
+ */
16989
+ proto.game.FreeSpinSettingsRequest.prototype.setGameUuid = function(value) {
16990
+ return jspb.Message.setProto3StringField(this, 1, value);
16991
+ };
16992
+
16993
+
16994
+ /**
16995
+ * optional string currency = 2;
16996
+ * @return {string}
16997
+ */
16998
+ proto.game.FreeSpinSettingsRequest.prototype.getCurrency = function() {
16999
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
17000
+ };
17001
+
17002
+
17003
+ /**
17004
+ * @param {string} value
17005
+ * @return {!proto.game.FreeSpinSettingsRequest} returns this
17006
+ */
17007
+ proto.game.FreeSpinSettingsRequest.prototype.setCurrency = function(value) {
17008
+ return jspb.Message.setProto3StringField(this, 2, value);
17009
+ };
17010
+
17011
+
17012
+
17013
+
17014
+
17015
+ if (jspb.Message.GENERATE_TO_OBJECT) {
17016
+ /**
17017
+ * Creates an object representation of this proto.
17018
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
17019
+ * Optional fields that are not set will be set to undefined.
17020
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
17021
+ * For the list of reserved names please see:
17022
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
17023
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
17024
+ * JSPB instance for transitional soy proto support:
17025
+ * http://goto/soy-param-migration
17026
+ * @return {!Object}
17027
+ */
17028
+ proto.game.FreeSpinSettingsResponse.prototype.toObject = function(opt_includeInstance) {
17029
+ return proto.game.FreeSpinSettingsResponse.toObject(opt_includeInstance, this);
17030
+ };
17031
+
17032
+
17033
+ /**
17034
+ * Static version of the {@see toObject} method.
17035
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
17036
+ * the JSPB instance for transitional soy proto support:
17037
+ * http://goto/soy-param-migration
17038
+ * @param {!proto.game.FreeSpinSettingsResponse} msg The msg instance to transform.
17039
+ * @return {!Object}
17040
+ * @suppress {unusedLocalVariables} f is only used for nested messages
17041
+ */
17042
+ proto.game.FreeSpinSettingsResponse.toObject = function(includeInstance, msg) {
17043
+ var f, obj = {
17044
+ data: jspb.Message.getFieldWithDefault(msg, 1, "")
17045
+ };
17046
+
17047
+ if (includeInstance) {
17048
+ obj.$jspbMessageInstance = msg;
17049
+ }
17050
+ return obj;
17051
+ };
17052
+ }
17053
+
17054
+
17055
+ /**
17056
+ * Deserializes binary data (in protobuf wire format).
17057
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
17058
+ * @return {!proto.game.FreeSpinSettingsResponse}
17059
+ */
17060
+ proto.game.FreeSpinSettingsResponse.deserializeBinary = function(bytes) {
17061
+ var reader = new jspb.BinaryReader(bytes);
17062
+ var msg = new proto.game.FreeSpinSettingsResponse;
17063
+ return proto.game.FreeSpinSettingsResponse.deserializeBinaryFromReader(msg, reader);
17064
+ };
17065
+
17066
+
17067
+ /**
17068
+ * Deserializes binary data (in protobuf wire format) from the
17069
+ * given reader into the given message object.
17070
+ * @param {!proto.game.FreeSpinSettingsResponse} msg The message object to deserialize into.
17071
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
17072
+ * @return {!proto.game.FreeSpinSettingsResponse}
17073
+ */
17074
+ proto.game.FreeSpinSettingsResponse.deserializeBinaryFromReader = function(msg, reader) {
17075
+ while (reader.nextField()) {
17076
+ if (reader.isEndGroup()) {
17077
+ break;
17078
+ }
17079
+ var field = reader.getFieldNumber();
17080
+ switch (field) {
17081
+ case 1:
17082
+ var value = /** @type {string} */ (reader.readString());
17083
+ msg.setData(value);
17084
+ break;
17085
+ default:
17086
+ reader.skipField();
17087
+ break;
17088
+ }
17089
+ }
17090
+ return msg;
17091
+ };
17092
+
17093
+
17094
+ /**
17095
+ * Serializes the message to binary data (in protobuf wire format).
17096
+ * @return {!Uint8Array}
17097
+ */
17098
+ proto.game.FreeSpinSettingsResponse.prototype.serializeBinary = function() {
17099
+ var writer = new jspb.BinaryWriter();
17100
+ proto.game.FreeSpinSettingsResponse.serializeBinaryToWriter(this, writer);
17101
+ return writer.getResultBuffer();
17102
+ };
17103
+
17104
+
17105
+ /**
17106
+ * Serializes the given message to binary data (in protobuf wire
17107
+ * format), writing to the given BinaryWriter.
17108
+ * @param {!proto.game.FreeSpinSettingsResponse} message
17109
+ * @param {!jspb.BinaryWriter} writer
17110
+ * @suppress {unusedLocalVariables} f is only used for nested messages
17111
+ */
17112
+ proto.game.FreeSpinSettingsResponse.serializeBinaryToWriter = function(message, writer) {
17113
+ var f = undefined;
17114
+ f = message.getData();
17115
+ if (f.length > 0) {
17116
+ writer.writeString(
17117
+ 1,
17118
+ f
17119
+ );
17120
+ }
17121
+ };
17122
+
17123
+
17124
+ /**
17125
+ * optional string data = 1;
17126
+ * @return {string}
17127
+ */
17128
+ proto.game.FreeSpinSettingsResponse.prototype.getData = function() {
17129
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
17130
+ };
17131
+
17132
+
17133
+ /**
17134
+ * @param {string} value
17135
+ * @return {!proto.game.FreeSpinSettingsResponse} returns this
17136
+ */
17137
+ proto.game.FreeSpinSettingsResponse.prototype.setData = function(value) {
17138
+ return jspb.Message.setProto3StringField(this, 1, value);
17139
+ };
17140
+
17141
+
17142
+
17143
+
17144
+
17145
+ if (jspb.Message.GENERATE_TO_OBJECT) {
17146
+ /**
17147
+ * Creates an object representation of this proto.
17148
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
17149
+ * Optional fields that are not set will be set to undefined.
17150
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
17151
+ * For the list of reserved names please see:
17152
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
17153
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
17154
+ * JSPB instance for transitional soy proto support:
17155
+ * http://goto/soy-param-migration
17156
+ * @return {!Object}
17157
+ */
17158
+ proto.game.FreeSpinCampaignRequest.prototype.toObject = function(opt_includeInstance) {
17159
+ return proto.game.FreeSpinCampaignRequest.toObject(opt_includeInstance, this);
17160
+ };
17161
+
17162
+
17163
+ /**
17164
+ * Static version of the {@see toObject} method.
17165
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
17166
+ * the JSPB instance for transitional soy proto support:
17167
+ * http://goto/soy-param-migration
17168
+ * @param {!proto.game.FreeSpinCampaignRequest} msg The msg instance to transform.
17169
+ * @return {!Object}
17170
+ * @suppress {unusedLocalVariables} f is only used for nested messages
17171
+ */
17172
+ proto.game.FreeSpinCampaignRequest.toObject = function(includeInstance, msg) {
17173
+ var f, obj = {
17174
+ gameUuid: jspb.Message.getFieldWithDefault(msg, 1, ""),
17175
+ currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
17176
+ playerId: jspb.Message.getFieldWithDefault(msg, 3, ""),
17177
+ playerName: jspb.Message.getFieldWithDefault(msg, 4, ""),
17178
+ validFrom: jspb.Message.getFieldWithDefault(msg, 5, 0),
17179
+ validUntil: jspb.Message.getFieldWithDefault(msg, 6, 0),
17180
+ quantity: jspb.Message.getFieldWithDefault(msg, 7, 0),
17181
+ freespinId: jspb.Message.getFieldWithDefault(msg, 8, ""),
17182
+ betId: jspb.Message.getFieldWithDefault(msg, 9, 0),
17183
+ denomination: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0),
17184
+ totalBetId: jspb.Message.getFieldWithDefault(msg, 11, 0)
17185
+ };
17186
+
17187
+ if (includeInstance) {
17188
+ obj.$jspbMessageInstance = msg;
17189
+ }
17190
+ return obj;
17191
+ };
17192
+ }
17193
+
17194
+
17195
+ /**
17196
+ * Deserializes binary data (in protobuf wire format).
17197
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
17198
+ * @return {!proto.game.FreeSpinCampaignRequest}
17199
+ */
17200
+ proto.game.FreeSpinCampaignRequest.deserializeBinary = function(bytes) {
17201
+ var reader = new jspb.BinaryReader(bytes);
17202
+ var msg = new proto.game.FreeSpinCampaignRequest;
17203
+ return proto.game.FreeSpinCampaignRequest.deserializeBinaryFromReader(msg, reader);
17204
+ };
17205
+
17206
+
17207
+ /**
17208
+ * Deserializes binary data (in protobuf wire format) from the
17209
+ * given reader into the given message object.
17210
+ * @param {!proto.game.FreeSpinCampaignRequest} msg The message object to deserialize into.
17211
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
17212
+ * @return {!proto.game.FreeSpinCampaignRequest}
17213
+ */
17214
+ proto.game.FreeSpinCampaignRequest.deserializeBinaryFromReader = function(msg, reader) {
17215
+ while (reader.nextField()) {
17216
+ if (reader.isEndGroup()) {
17217
+ break;
17218
+ }
17219
+ var field = reader.getFieldNumber();
17220
+ switch (field) {
17221
+ case 1:
17222
+ var value = /** @type {string} */ (reader.readString());
17223
+ msg.setGameUuid(value);
17224
+ break;
17225
+ case 2:
17226
+ var value = /** @type {string} */ (reader.readString());
17227
+ msg.setCurrency(value);
17228
+ break;
17229
+ case 3:
17230
+ var value = /** @type {string} */ (reader.readString());
17231
+ msg.setPlayerId(value);
17232
+ break;
17233
+ case 4:
17234
+ var value = /** @type {string} */ (reader.readString());
17235
+ msg.setPlayerName(value);
17236
+ break;
17237
+ case 5:
17238
+ var value = /** @type {number} */ (reader.readInt32());
17239
+ msg.setValidFrom(value);
17240
+ break;
17241
+ case 6:
17242
+ var value = /** @type {number} */ (reader.readInt32());
17243
+ msg.setValidUntil(value);
17244
+ break;
17245
+ case 7:
17246
+ var value = /** @type {number} */ (reader.readInt32());
17247
+ msg.setQuantity(value);
17248
+ break;
17249
+ case 8:
17250
+ var value = /** @type {string} */ (reader.readString());
17251
+ msg.setFreespinId(value);
17252
+ break;
17253
+ case 9:
17254
+ var value = /** @type {number} */ (reader.readInt32());
17255
+ msg.setBetId(value);
17256
+ break;
17257
+ case 10:
17258
+ var value = /** @type {number} */ (reader.readFloat());
17259
+ msg.setDenomination(value);
17260
+ break;
17261
+ case 11:
17262
+ var value = /** @type {number} */ (reader.readInt32());
17263
+ msg.setTotalBetId(value);
17264
+ break;
17265
+ default:
17266
+ reader.skipField();
17267
+ break;
17268
+ }
17269
+ }
17270
+ return msg;
17271
+ };
17272
+
17273
+
17274
+ /**
17275
+ * Serializes the message to binary data (in protobuf wire format).
17276
+ * @return {!Uint8Array}
17277
+ */
17278
+ proto.game.FreeSpinCampaignRequest.prototype.serializeBinary = function() {
17279
+ var writer = new jspb.BinaryWriter();
17280
+ proto.game.FreeSpinCampaignRequest.serializeBinaryToWriter(this, writer);
17281
+ return writer.getResultBuffer();
17282
+ };
17283
+
17284
+
17285
+ /**
17286
+ * Serializes the given message to binary data (in protobuf wire
17287
+ * format), writing to the given BinaryWriter.
17288
+ * @param {!proto.game.FreeSpinCampaignRequest} message
17289
+ * @param {!jspb.BinaryWriter} writer
17290
+ * @suppress {unusedLocalVariables} f is only used for nested messages
17291
+ */
17292
+ proto.game.FreeSpinCampaignRequest.serializeBinaryToWriter = function(message, writer) {
17293
+ var f = undefined;
17294
+ f = message.getGameUuid();
17295
+ if (f.length > 0) {
17296
+ writer.writeString(
17297
+ 1,
17298
+ f
17299
+ );
17300
+ }
17301
+ f = message.getCurrency();
17302
+ if (f.length > 0) {
17303
+ writer.writeString(
17304
+ 2,
17305
+ f
17306
+ );
17307
+ }
17308
+ f = message.getPlayerId();
17309
+ if (f.length > 0) {
17310
+ writer.writeString(
17311
+ 3,
17312
+ f
17313
+ );
17314
+ }
17315
+ f = message.getPlayerName();
17316
+ if (f.length > 0) {
17317
+ writer.writeString(
17318
+ 4,
17319
+ f
17320
+ );
17321
+ }
17322
+ f = message.getValidFrom();
17323
+ if (f !== 0) {
17324
+ writer.writeInt32(
17325
+ 5,
17326
+ f
17327
+ );
17328
+ }
17329
+ f = message.getValidUntil();
17330
+ if (f !== 0) {
17331
+ writer.writeInt32(
17332
+ 6,
17333
+ f
17334
+ );
17335
+ }
17336
+ f = message.getQuantity();
17337
+ if (f !== 0) {
17338
+ writer.writeInt32(
17339
+ 7,
17340
+ f
17341
+ );
17342
+ }
17343
+ f = message.getFreespinId();
17344
+ if (f.length > 0) {
17345
+ writer.writeString(
17346
+ 8,
17347
+ f
17348
+ );
17349
+ }
17350
+ f = /** @type {number} */ (jspb.Message.getField(message, 9));
17351
+ if (f != null) {
17352
+ writer.writeInt32(
17353
+ 9,
17354
+ f
17355
+ );
17356
+ }
17357
+ f = /** @type {number} */ (jspb.Message.getField(message, 10));
17358
+ if (f != null) {
17359
+ writer.writeFloat(
17360
+ 10,
17361
+ f
17362
+ );
17363
+ }
17364
+ f = /** @type {number} */ (jspb.Message.getField(message, 11));
17365
+ if (f != null) {
17366
+ writer.writeInt32(
17367
+ 11,
17368
+ f
17369
+ );
17370
+ }
17371
+ };
17372
+
17373
+
17374
+ /**
17375
+ * optional string game_uuid = 1;
17376
+ * @return {string}
17377
+ */
17378
+ proto.game.FreeSpinCampaignRequest.prototype.getGameUuid = function() {
17379
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
17380
+ };
17381
+
17382
+
17383
+ /**
17384
+ * @param {string} value
17385
+ * @return {!proto.game.FreeSpinCampaignRequest} returns this
17386
+ */
17387
+ proto.game.FreeSpinCampaignRequest.prototype.setGameUuid = function(value) {
17388
+ return jspb.Message.setProto3StringField(this, 1, value);
17389
+ };
17390
+
17391
+
17392
+ /**
17393
+ * optional string currency = 2;
17394
+ * @return {string}
17395
+ */
17396
+ proto.game.FreeSpinCampaignRequest.prototype.getCurrency = function() {
17397
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
17398
+ };
17399
+
17400
+
17401
+ /**
17402
+ * @param {string} value
17403
+ * @return {!proto.game.FreeSpinCampaignRequest} returns this
17404
+ */
17405
+ proto.game.FreeSpinCampaignRequest.prototype.setCurrency = function(value) {
17406
+ return jspb.Message.setProto3StringField(this, 2, value);
17407
+ };
17408
+
17409
+
17410
+ /**
17411
+ * optional string player_id = 3;
17412
+ * @return {string}
17413
+ */
17414
+ proto.game.FreeSpinCampaignRequest.prototype.getPlayerId = function() {
17415
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
17416
+ };
17417
+
17418
+
17419
+ /**
17420
+ * @param {string} value
17421
+ * @return {!proto.game.FreeSpinCampaignRequest} returns this
17422
+ */
17423
+ proto.game.FreeSpinCampaignRequest.prototype.setPlayerId = function(value) {
17424
+ return jspb.Message.setProto3StringField(this, 3, value);
17425
+ };
17426
+
17427
+
17428
+ /**
17429
+ * optional string player_name = 4;
17430
+ * @return {string}
17431
+ */
17432
+ proto.game.FreeSpinCampaignRequest.prototype.getPlayerName = function() {
17433
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
17434
+ };
17435
+
17436
+
17437
+ /**
17438
+ * @param {string} value
17439
+ * @return {!proto.game.FreeSpinCampaignRequest} returns this
17440
+ */
17441
+ proto.game.FreeSpinCampaignRequest.prototype.setPlayerName = function(value) {
17442
+ return jspb.Message.setProto3StringField(this, 4, value);
17443
+ };
17444
+
17445
+
17446
+ /**
17447
+ * optional int32 valid_from = 5;
17448
+ * @return {number}
17449
+ */
17450
+ proto.game.FreeSpinCampaignRequest.prototype.getValidFrom = function() {
17451
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
17452
+ };
17453
+
17454
+
17455
+ /**
17456
+ * @param {number} value
17457
+ * @return {!proto.game.FreeSpinCampaignRequest} returns this
17458
+ */
17459
+ proto.game.FreeSpinCampaignRequest.prototype.setValidFrom = function(value) {
17460
+ return jspb.Message.setProto3IntField(this, 5, value);
17461
+ };
17462
+
17463
+
17464
+ /**
17465
+ * optional int32 valid_until = 6;
17466
+ * @return {number}
17467
+ */
17468
+ proto.game.FreeSpinCampaignRequest.prototype.getValidUntil = function() {
17469
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
17470
+ };
17471
+
17472
+
17473
+ /**
17474
+ * @param {number} value
17475
+ * @return {!proto.game.FreeSpinCampaignRequest} returns this
17476
+ */
17477
+ proto.game.FreeSpinCampaignRequest.prototype.setValidUntil = function(value) {
17478
+ return jspb.Message.setProto3IntField(this, 6, value);
17479
+ };
17480
+
17481
+
17482
+ /**
17483
+ * optional int32 quantity = 7;
17484
+ * @return {number}
17485
+ */
17486
+ proto.game.FreeSpinCampaignRequest.prototype.getQuantity = function() {
17487
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
17488
+ };
17489
+
17490
+
17491
+ /**
17492
+ * @param {number} value
17493
+ * @return {!proto.game.FreeSpinCampaignRequest} returns this
17494
+ */
17495
+ proto.game.FreeSpinCampaignRequest.prototype.setQuantity = function(value) {
17496
+ return jspb.Message.setProto3IntField(this, 7, value);
17497
+ };
17498
+
17499
+
17500
+ /**
17501
+ * optional string freespin_id = 8;
17502
+ * @return {string}
17503
+ */
17504
+ proto.game.FreeSpinCampaignRequest.prototype.getFreespinId = function() {
17505
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
17506
+ };
17507
+
17508
+
17509
+ /**
17510
+ * @param {string} value
17511
+ * @return {!proto.game.FreeSpinCampaignRequest} returns this
17512
+ */
17513
+ proto.game.FreeSpinCampaignRequest.prototype.setFreespinId = function(value) {
17514
+ return jspb.Message.setProto3StringField(this, 8, value);
17515
+ };
17516
+
17517
+
17518
+ /**
17519
+ * optional int32 bet_id = 9;
17520
+ * @return {number}
17521
+ */
17522
+ proto.game.FreeSpinCampaignRequest.prototype.getBetId = function() {
17523
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
17524
+ };
17525
+
17526
+
17527
+ /**
17528
+ * @param {number} value
17529
+ * @return {!proto.game.FreeSpinCampaignRequest} returns this
17530
+ */
17531
+ proto.game.FreeSpinCampaignRequest.prototype.setBetId = function(value) {
17532
+ return jspb.Message.setField(this, 9, value);
17533
+ };
17534
+
17535
+
17536
+ /**
17537
+ * Clears the field making it undefined.
17538
+ * @return {!proto.game.FreeSpinCampaignRequest} returns this
17539
+ */
17540
+ proto.game.FreeSpinCampaignRequest.prototype.clearBetId = function() {
17541
+ return jspb.Message.setField(this, 9, undefined);
17542
+ };
17543
+
17544
+
17545
+ /**
17546
+ * Returns whether this field is set.
17547
+ * @return {boolean}
17548
+ */
17549
+ proto.game.FreeSpinCampaignRequest.prototype.hasBetId = function() {
17550
+ return jspb.Message.getField(this, 9) != null;
17551
+ };
17552
+
17553
+
17554
+ /**
17555
+ * optional float denomination = 10;
17556
+ * @return {number}
17557
+ */
17558
+ proto.game.FreeSpinCampaignRequest.prototype.getDenomination = function() {
17559
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 10, 0.0));
17560
+ };
17561
+
17562
+
17563
+ /**
17564
+ * @param {number} value
17565
+ * @return {!proto.game.FreeSpinCampaignRequest} returns this
17566
+ */
17567
+ proto.game.FreeSpinCampaignRequest.prototype.setDenomination = function(value) {
17568
+ return jspb.Message.setField(this, 10, value);
17569
+ };
17570
+
17571
+
17572
+ /**
17573
+ * Clears the field making it undefined.
17574
+ * @return {!proto.game.FreeSpinCampaignRequest} returns this
17575
+ */
17576
+ proto.game.FreeSpinCampaignRequest.prototype.clearDenomination = function() {
17577
+ return jspb.Message.setField(this, 10, undefined);
17578
+ };
17579
+
17580
+
17581
+ /**
17582
+ * Returns whether this field is set.
17583
+ * @return {boolean}
17584
+ */
17585
+ proto.game.FreeSpinCampaignRequest.prototype.hasDenomination = function() {
17586
+ return jspb.Message.getField(this, 10) != null;
17587
+ };
17588
+
17589
+
17590
+ /**
17591
+ * optional int32 total_bet_id = 11;
17592
+ * @return {number}
17593
+ */
17594
+ proto.game.FreeSpinCampaignRequest.prototype.getTotalBetId = function() {
17595
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
17596
+ };
17597
+
17598
+
17599
+ /**
17600
+ * @param {number} value
17601
+ * @return {!proto.game.FreeSpinCampaignRequest} returns this
17602
+ */
17603
+ proto.game.FreeSpinCampaignRequest.prototype.setTotalBetId = function(value) {
17604
+ return jspb.Message.setField(this, 11, value);
17605
+ };
17606
+
17607
+
17608
+ /**
17609
+ * Clears the field making it undefined.
17610
+ * @return {!proto.game.FreeSpinCampaignRequest} returns this
17611
+ */
17612
+ proto.game.FreeSpinCampaignRequest.prototype.clearTotalBetId = function() {
17613
+ return jspb.Message.setField(this, 11, undefined);
17614
+ };
17615
+
17616
+
17617
+ /**
17618
+ * Returns whether this field is set.
17619
+ * @return {boolean}
17620
+ */
17621
+ proto.game.FreeSpinCampaignRequest.prototype.hasTotalBetId = function() {
17622
+ return jspb.Message.getField(this, 11) != null;
17623
+ };
17624
+
17625
+
17626
+
17627
+
17628
+
17629
+ if (jspb.Message.GENERATE_TO_OBJECT) {
17630
+ /**
17631
+ * Creates an object representation of this proto.
17632
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
17633
+ * Optional fields that are not set will be set to undefined.
17634
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
17635
+ * For the list of reserved names please see:
17636
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
17637
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
17638
+ * JSPB instance for transitional soy proto support:
17639
+ * http://goto/soy-param-migration
17640
+ * @return {!Object}
17641
+ */
17642
+ proto.game.FreeSpinCampaignResponse.prototype.toObject = function(opt_includeInstance) {
17643
+ return proto.game.FreeSpinCampaignResponse.toObject(opt_includeInstance, this);
17644
+ };
17645
+
17646
+
17647
+ /**
17648
+ * Static version of the {@see toObject} method.
17649
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
17650
+ * the JSPB instance for transitional soy proto support:
17651
+ * http://goto/soy-param-migration
17652
+ * @param {!proto.game.FreeSpinCampaignResponse} msg The msg instance to transform.
17653
+ * @return {!Object}
17654
+ * @suppress {unusedLocalVariables} f is only used for nested messages
17655
+ */
17656
+ proto.game.FreeSpinCampaignResponse.toObject = function(includeInstance, msg) {
17657
+ var f, obj = {
17658
+ data: jspb.Message.getFieldWithDefault(msg, 1, "")
17659
+ };
17660
+
17661
+ if (includeInstance) {
17662
+ obj.$jspbMessageInstance = msg;
17663
+ }
17664
+ return obj;
17665
+ };
17666
+ }
17667
+
17668
+
17669
+ /**
17670
+ * Deserializes binary data (in protobuf wire format).
17671
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
17672
+ * @return {!proto.game.FreeSpinCampaignResponse}
17673
+ */
17674
+ proto.game.FreeSpinCampaignResponse.deserializeBinary = function(bytes) {
17675
+ var reader = new jspb.BinaryReader(bytes);
17676
+ var msg = new proto.game.FreeSpinCampaignResponse;
17677
+ return proto.game.FreeSpinCampaignResponse.deserializeBinaryFromReader(msg, reader);
17678
+ };
17679
+
17680
+
17681
+ /**
17682
+ * Deserializes binary data (in protobuf wire format) from the
17683
+ * given reader into the given message object.
17684
+ * @param {!proto.game.FreeSpinCampaignResponse} msg The message object to deserialize into.
17685
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
17686
+ * @return {!proto.game.FreeSpinCampaignResponse}
17687
+ */
17688
+ proto.game.FreeSpinCampaignResponse.deserializeBinaryFromReader = function(msg, reader) {
17689
+ while (reader.nextField()) {
17690
+ if (reader.isEndGroup()) {
17691
+ break;
17692
+ }
17693
+ var field = reader.getFieldNumber();
17694
+ switch (field) {
17695
+ case 1:
17696
+ var value = /** @type {string} */ (reader.readString());
17697
+ msg.setData(value);
17698
+ break;
17699
+ default:
17700
+ reader.skipField();
17701
+ break;
17702
+ }
17703
+ }
17704
+ return msg;
17705
+ };
17706
+
17707
+
17708
+ /**
17709
+ * Serializes the message to binary data (in protobuf wire format).
17710
+ * @return {!Uint8Array}
17711
+ */
17712
+ proto.game.FreeSpinCampaignResponse.prototype.serializeBinary = function() {
17713
+ var writer = new jspb.BinaryWriter();
17714
+ proto.game.FreeSpinCampaignResponse.serializeBinaryToWriter(this, writer);
17715
+ return writer.getResultBuffer();
17716
+ };
17717
+
17718
+
17719
+ /**
17720
+ * Serializes the given message to binary data (in protobuf wire
17721
+ * format), writing to the given BinaryWriter.
17722
+ * @param {!proto.game.FreeSpinCampaignResponse} message
17723
+ * @param {!jspb.BinaryWriter} writer
17724
+ * @suppress {unusedLocalVariables} f is only used for nested messages
17725
+ */
17726
+ proto.game.FreeSpinCampaignResponse.serializeBinaryToWriter = function(message, writer) {
17727
+ var f = undefined;
17728
+ f = message.getData();
17729
+ if (f.length > 0) {
17730
+ writer.writeString(
17731
+ 1,
17732
+ f
17733
+ );
17734
+ }
17735
+ };
17736
+
17737
+
17738
+ /**
17739
+ * optional string data = 1;
17740
+ * @return {string}
17741
+ */
17742
+ proto.game.FreeSpinCampaignResponse.prototype.getData = function() {
17743
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
17744
+ };
17745
+
17746
+
17747
+ /**
17748
+ * @param {string} value
17749
+ * @return {!proto.game.FreeSpinCampaignResponse} returns this
17750
+ */
17751
+ proto.game.FreeSpinCampaignResponse.prototype.setData = function(value) {
17752
+ return jspb.Message.setProto3StringField(this, 1, value);
17753
+ };
17754
+
17755
+
16764
17756
  goog.object.extend(exports, proto.game);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.117",
3
+ "version": "1.0.119",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {