protobuf-platform 1.0.117 → 1.0.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/game/game.proto CHANGED
@@ -49,6 +49,8 @@ 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);
52
54
  //Cross Services
53
55
  rpc getGamesByUuids(GamesUuids) returns (GamePoorItemsResponse);
54
56
  rpc getGameScopesByIds(ScopeRequest) returns (ScopeResponse);
@@ -391,4 +393,12 @@ message ScopeRequest {
391
393
  }
392
394
  message ScopeResponse {
393
395
  string data = 1;
396
+ }
397
+ //Free Spins
398
+ message FreeSpinSettingsRequest {
399
+ string game_uuid = 1;
400
+ string currency = 2;
401
+ }
402
+ message FreeSpinSettingsResponse {
403
+ string data = 1;
394
404
  }
@@ -114,6 +114,28 @@ 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_FreeSpinSettingsRequest(arg) {
118
+ if (!(arg instanceof game_pb.FreeSpinSettingsRequest)) {
119
+ throw new Error('Expected argument of type game.FreeSpinSettingsRequest');
120
+ }
121
+ return Buffer.from(arg.serializeBinary());
122
+ }
123
+
124
+ function deserialize_game_FreeSpinSettingsRequest(buffer_arg) {
125
+ return game_pb.FreeSpinSettingsRequest.deserializeBinary(new Uint8Array(buffer_arg));
126
+ }
127
+
128
+ function serialize_game_FreeSpinSettingsResponse(arg) {
129
+ if (!(arg instanceof game_pb.FreeSpinSettingsResponse)) {
130
+ throw new Error('Expected argument of type game.FreeSpinSettingsResponse');
131
+ }
132
+ return Buffer.from(arg.serializeBinary());
133
+ }
134
+
135
+ function deserialize_game_FreeSpinSettingsResponse(buffer_arg) {
136
+ return game_pb.FreeSpinSettingsResponse.deserializeBinary(new Uint8Array(buffer_arg));
137
+ }
138
+
117
139
  function serialize_game_GameItemsResponse(arg) {
118
140
  if (!(arg instanceof game_pb.GameItemsResponse)) {
119
141
  throw new Error('Expected argument of type game.GameItemsResponse');
@@ -1002,6 +1024,18 @@ processedVendorActionCallback: {
1002
1024
  responseSerialize: serialize_game_IntegratorSelfValidationResponse,
1003
1025
  responseDeserialize: deserialize_game_IntegratorSelfValidationResponse,
1004
1026
  },
1027
+ // Free Spins
1028
+ getFreeSpinsSettings: {
1029
+ path: '/game.Game/getFreeSpinsSettings',
1030
+ requestStream: false,
1031
+ responseStream: false,
1032
+ requestType: game_pb.FreeSpinSettingsRequest,
1033
+ responseType: game_pb.FreeSpinSettingsResponse,
1034
+ requestSerialize: serialize_game_FreeSpinSettingsRequest,
1035
+ requestDeserialize: deserialize_game_FreeSpinSettingsRequest,
1036
+ responseSerialize: serialize_game_FreeSpinSettingsResponse,
1037
+ responseDeserialize: deserialize_game_FreeSpinSettingsResponse,
1038
+ },
1005
1039
  // Cross Services
1006
1040
  getGamesByUuids: {
1007
1041
  path: '/game.Game/getGamesByUuids',
package/game/game_pb.js CHANGED
@@ -37,6 +37,8 @@ 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.FreeSpinSettingsRequest', null, global);
41
+ goog.exportSymbol('proto.game.FreeSpinSettingsResponse', null, global);
40
42
  goog.exportSymbol('proto.game.GameItem', null, global);
41
43
  goog.exportSymbol('proto.game.GameItemRequest', null, global);
42
44
  goog.exportSymbol('proto.game.GameItemsResponse', null, global);
@@ -1390,6 +1392,48 @@ if (goog.DEBUG && !COMPILED) {
1390
1392
  */
1391
1393
  proto.game.ScopeResponse.displayName = 'proto.game.ScopeResponse';
1392
1394
  }
1395
+ /**
1396
+ * Generated by JsPbCodeGenerator.
1397
+ * @param {Array=} opt_data Optional initial data array, typically from a
1398
+ * server response, or constructed directly in Javascript. The array is used
1399
+ * in place and becomes part of the constructed object. It is not cloned.
1400
+ * If no data is provided, the constructed object will be empty, but still
1401
+ * valid.
1402
+ * @extends {jspb.Message}
1403
+ * @constructor
1404
+ */
1405
+ proto.game.FreeSpinSettingsRequest = function(opt_data) {
1406
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1407
+ };
1408
+ goog.inherits(proto.game.FreeSpinSettingsRequest, jspb.Message);
1409
+ if (goog.DEBUG && !COMPILED) {
1410
+ /**
1411
+ * @public
1412
+ * @override
1413
+ */
1414
+ proto.game.FreeSpinSettingsRequest.displayName = 'proto.game.FreeSpinSettingsRequest';
1415
+ }
1416
+ /**
1417
+ * Generated by JsPbCodeGenerator.
1418
+ * @param {Array=} opt_data Optional initial data array, typically from a
1419
+ * server response, or constructed directly in Javascript. The array is used
1420
+ * in place and becomes part of the constructed object. It is not cloned.
1421
+ * If no data is provided, the constructed object will be empty, but still
1422
+ * valid.
1423
+ * @extends {jspb.Message}
1424
+ * @constructor
1425
+ */
1426
+ proto.game.FreeSpinSettingsResponse = function(opt_data) {
1427
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1428
+ };
1429
+ goog.inherits(proto.game.FreeSpinSettingsResponse, jspb.Message);
1430
+ if (goog.DEBUG && !COMPILED) {
1431
+ /**
1432
+ * @public
1433
+ * @override
1434
+ */
1435
+ proto.game.FreeSpinSettingsResponse.displayName = 'proto.game.FreeSpinSettingsResponse';
1436
+ }
1393
1437
 
1394
1438
 
1395
1439
 
@@ -16761,4 +16805,294 @@ proto.game.ScopeResponse.prototype.setData = function(value) {
16761
16805
  };
16762
16806
 
16763
16807
 
16808
+
16809
+
16810
+
16811
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16812
+ /**
16813
+ * Creates an object representation of this proto.
16814
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16815
+ * Optional fields that are not set will be set to undefined.
16816
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16817
+ * For the list of reserved names please see:
16818
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
16819
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
16820
+ * JSPB instance for transitional soy proto support:
16821
+ * http://goto/soy-param-migration
16822
+ * @return {!Object}
16823
+ */
16824
+ proto.game.FreeSpinSettingsRequest.prototype.toObject = function(opt_includeInstance) {
16825
+ return proto.game.FreeSpinSettingsRequest.toObject(opt_includeInstance, this);
16826
+ };
16827
+
16828
+
16829
+ /**
16830
+ * Static version of the {@see toObject} method.
16831
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
16832
+ * the JSPB instance for transitional soy proto support:
16833
+ * http://goto/soy-param-migration
16834
+ * @param {!proto.game.FreeSpinSettingsRequest} msg The msg instance to transform.
16835
+ * @return {!Object}
16836
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16837
+ */
16838
+ proto.game.FreeSpinSettingsRequest.toObject = function(includeInstance, msg) {
16839
+ var f, obj = {
16840
+ gameUuid: jspb.Message.getFieldWithDefault(msg, 1, ""),
16841
+ currency: jspb.Message.getFieldWithDefault(msg, 2, "")
16842
+ };
16843
+
16844
+ if (includeInstance) {
16845
+ obj.$jspbMessageInstance = msg;
16846
+ }
16847
+ return obj;
16848
+ };
16849
+ }
16850
+
16851
+
16852
+ /**
16853
+ * Deserializes binary data (in protobuf wire format).
16854
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
16855
+ * @return {!proto.game.FreeSpinSettingsRequest}
16856
+ */
16857
+ proto.game.FreeSpinSettingsRequest.deserializeBinary = function(bytes) {
16858
+ var reader = new jspb.BinaryReader(bytes);
16859
+ var msg = new proto.game.FreeSpinSettingsRequest;
16860
+ return proto.game.FreeSpinSettingsRequest.deserializeBinaryFromReader(msg, reader);
16861
+ };
16862
+
16863
+
16864
+ /**
16865
+ * Deserializes binary data (in protobuf wire format) from the
16866
+ * given reader into the given message object.
16867
+ * @param {!proto.game.FreeSpinSettingsRequest} msg The message object to deserialize into.
16868
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16869
+ * @return {!proto.game.FreeSpinSettingsRequest}
16870
+ */
16871
+ proto.game.FreeSpinSettingsRequest.deserializeBinaryFromReader = function(msg, reader) {
16872
+ while (reader.nextField()) {
16873
+ if (reader.isEndGroup()) {
16874
+ break;
16875
+ }
16876
+ var field = reader.getFieldNumber();
16877
+ switch (field) {
16878
+ case 1:
16879
+ var value = /** @type {string} */ (reader.readString());
16880
+ msg.setGameUuid(value);
16881
+ break;
16882
+ case 2:
16883
+ var value = /** @type {string} */ (reader.readString());
16884
+ msg.setCurrency(value);
16885
+ break;
16886
+ default:
16887
+ reader.skipField();
16888
+ break;
16889
+ }
16890
+ }
16891
+ return msg;
16892
+ };
16893
+
16894
+
16895
+ /**
16896
+ * Serializes the message to binary data (in protobuf wire format).
16897
+ * @return {!Uint8Array}
16898
+ */
16899
+ proto.game.FreeSpinSettingsRequest.prototype.serializeBinary = function() {
16900
+ var writer = new jspb.BinaryWriter();
16901
+ proto.game.FreeSpinSettingsRequest.serializeBinaryToWriter(this, writer);
16902
+ return writer.getResultBuffer();
16903
+ };
16904
+
16905
+
16906
+ /**
16907
+ * Serializes the given message to binary data (in protobuf wire
16908
+ * format), writing to the given BinaryWriter.
16909
+ * @param {!proto.game.FreeSpinSettingsRequest} message
16910
+ * @param {!jspb.BinaryWriter} writer
16911
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16912
+ */
16913
+ proto.game.FreeSpinSettingsRequest.serializeBinaryToWriter = function(message, writer) {
16914
+ var f = undefined;
16915
+ f = message.getGameUuid();
16916
+ if (f.length > 0) {
16917
+ writer.writeString(
16918
+ 1,
16919
+ f
16920
+ );
16921
+ }
16922
+ f = message.getCurrency();
16923
+ if (f.length > 0) {
16924
+ writer.writeString(
16925
+ 2,
16926
+ f
16927
+ );
16928
+ }
16929
+ };
16930
+
16931
+
16932
+ /**
16933
+ * optional string game_uuid = 1;
16934
+ * @return {string}
16935
+ */
16936
+ proto.game.FreeSpinSettingsRequest.prototype.getGameUuid = function() {
16937
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
16938
+ };
16939
+
16940
+
16941
+ /**
16942
+ * @param {string} value
16943
+ * @return {!proto.game.FreeSpinSettingsRequest} returns this
16944
+ */
16945
+ proto.game.FreeSpinSettingsRequest.prototype.setGameUuid = function(value) {
16946
+ return jspb.Message.setProto3StringField(this, 1, value);
16947
+ };
16948
+
16949
+
16950
+ /**
16951
+ * optional string currency = 2;
16952
+ * @return {string}
16953
+ */
16954
+ proto.game.FreeSpinSettingsRequest.prototype.getCurrency = function() {
16955
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
16956
+ };
16957
+
16958
+
16959
+ /**
16960
+ * @param {string} value
16961
+ * @return {!proto.game.FreeSpinSettingsRequest} returns this
16962
+ */
16963
+ proto.game.FreeSpinSettingsRequest.prototype.setCurrency = function(value) {
16964
+ return jspb.Message.setProto3StringField(this, 2, value);
16965
+ };
16966
+
16967
+
16968
+
16969
+
16970
+
16971
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16972
+ /**
16973
+ * Creates an object representation of this proto.
16974
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16975
+ * Optional fields that are not set will be set to undefined.
16976
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16977
+ * For the list of reserved names please see:
16978
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
16979
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
16980
+ * JSPB instance for transitional soy proto support:
16981
+ * http://goto/soy-param-migration
16982
+ * @return {!Object}
16983
+ */
16984
+ proto.game.FreeSpinSettingsResponse.prototype.toObject = function(opt_includeInstance) {
16985
+ return proto.game.FreeSpinSettingsResponse.toObject(opt_includeInstance, this);
16986
+ };
16987
+
16988
+
16989
+ /**
16990
+ * Static version of the {@see toObject} method.
16991
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
16992
+ * the JSPB instance for transitional soy proto support:
16993
+ * http://goto/soy-param-migration
16994
+ * @param {!proto.game.FreeSpinSettingsResponse} msg The msg instance to transform.
16995
+ * @return {!Object}
16996
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16997
+ */
16998
+ proto.game.FreeSpinSettingsResponse.toObject = function(includeInstance, msg) {
16999
+ var f, obj = {
17000
+ data: jspb.Message.getFieldWithDefault(msg, 1, "")
17001
+ };
17002
+
17003
+ if (includeInstance) {
17004
+ obj.$jspbMessageInstance = msg;
17005
+ }
17006
+ return obj;
17007
+ };
17008
+ }
17009
+
17010
+
17011
+ /**
17012
+ * Deserializes binary data (in protobuf wire format).
17013
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
17014
+ * @return {!proto.game.FreeSpinSettingsResponse}
17015
+ */
17016
+ proto.game.FreeSpinSettingsResponse.deserializeBinary = function(bytes) {
17017
+ var reader = new jspb.BinaryReader(bytes);
17018
+ var msg = new proto.game.FreeSpinSettingsResponse;
17019
+ return proto.game.FreeSpinSettingsResponse.deserializeBinaryFromReader(msg, reader);
17020
+ };
17021
+
17022
+
17023
+ /**
17024
+ * Deserializes binary data (in protobuf wire format) from the
17025
+ * given reader into the given message object.
17026
+ * @param {!proto.game.FreeSpinSettingsResponse} msg The message object to deserialize into.
17027
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
17028
+ * @return {!proto.game.FreeSpinSettingsResponse}
17029
+ */
17030
+ proto.game.FreeSpinSettingsResponse.deserializeBinaryFromReader = function(msg, reader) {
17031
+ while (reader.nextField()) {
17032
+ if (reader.isEndGroup()) {
17033
+ break;
17034
+ }
17035
+ var field = reader.getFieldNumber();
17036
+ switch (field) {
17037
+ case 1:
17038
+ var value = /** @type {string} */ (reader.readString());
17039
+ msg.setData(value);
17040
+ break;
17041
+ default:
17042
+ reader.skipField();
17043
+ break;
17044
+ }
17045
+ }
17046
+ return msg;
17047
+ };
17048
+
17049
+
17050
+ /**
17051
+ * Serializes the message to binary data (in protobuf wire format).
17052
+ * @return {!Uint8Array}
17053
+ */
17054
+ proto.game.FreeSpinSettingsResponse.prototype.serializeBinary = function() {
17055
+ var writer = new jspb.BinaryWriter();
17056
+ proto.game.FreeSpinSettingsResponse.serializeBinaryToWriter(this, writer);
17057
+ return writer.getResultBuffer();
17058
+ };
17059
+
17060
+
17061
+ /**
17062
+ * Serializes the given message to binary data (in protobuf wire
17063
+ * format), writing to the given BinaryWriter.
17064
+ * @param {!proto.game.FreeSpinSettingsResponse} message
17065
+ * @param {!jspb.BinaryWriter} writer
17066
+ * @suppress {unusedLocalVariables} f is only used for nested messages
17067
+ */
17068
+ proto.game.FreeSpinSettingsResponse.serializeBinaryToWriter = function(message, writer) {
17069
+ var f = undefined;
17070
+ f = message.getData();
17071
+ if (f.length > 0) {
17072
+ writer.writeString(
17073
+ 1,
17074
+ f
17075
+ );
17076
+ }
17077
+ };
17078
+
17079
+
17080
+ /**
17081
+ * optional string data = 1;
17082
+ * @return {string}
17083
+ */
17084
+ proto.game.FreeSpinSettingsResponse.prototype.getData = function() {
17085
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
17086
+ };
17087
+
17088
+
17089
+ /**
17090
+ * @param {string} value
17091
+ * @return {!proto.game.FreeSpinSettingsResponse} returns this
17092
+ */
17093
+ proto.game.FreeSpinSettingsResponse.prototype.setData = function(value) {
17094
+ return jspb.Message.setProto3StringField(this, 1, value);
17095
+ };
17096
+
17097
+
16764
17098
  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.118",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {