protobuf-platform 1.2.291 → 1.2.292

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
@@ -436,6 +436,11 @@ message IntegratorSettingsResponse { string data = 1; }
436
436
  message IntegratorSelfValidationRequest { string vendor = 1; }
437
437
  message IntegratorSelfValidationResponse { string data = 1; }
438
438
  //Game CRUD
439
+ message GameImages {
440
+ optional string portrait = 1;
441
+ optional string landscape = 2;
442
+ optional string square = 3;
443
+ }
439
444
  message GameItem {
440
445
  optional int32 id = 1;
441
446
  optional ProviderItem provider = 2;
@@ -461,6 +466,7 @@ message GameItem {
461
466
  optional bool is_vip = 22;
462
467
  repeated string devices = 23;
463
468
  optional bool is_hidden = 24;
469
+ optional GameImages images = 25;
464
470
  }
465
471
  //Game CRUD | Requests
466
472
  message GameRequest {
package/game/game_pb.js CHANGED
@@ -64,6 +64,7 @@ goog.exportSymbol('proto.game.FreeSpinSettingsResponse', null, global);
64
64
  goog.exportSymbol('proto.game.FreeSpinStatusRequest', null, global);
65
65
  goog.exportSymbol('proto.game.GameConfigCheckResponse', null, global);
66
66
  goog.exportSymbol('proto.game.GameGeo', null, global);
67
+ goog.exportSymbol('proto.game.GameImages', null, global);
67
68
  goog.exportSymbol('proto.game.GameImagesParsingTechnicalResponse', null, global);
68
69
  goog.exportSymbol('proto.game.GameItem', null, global);
69
70
  goog.exportSymbol('proto.game.GameItemRequest', null, global);
@@ -1396,6 +1397,27 @@ if (goog.DEBUG && !COMPILED) {
1396
1397
  */
1397
1398
  proto.game.IntegratorSelfValidationResponse.displayName = 'proto.game.IntegratorSelfValidationResponse';
1398
1399
  }
1400
+ /**
1401
+ * Generated by JsPbCodeGenerator.
1402
+ * @param {Array=} opt_data Optional initial data array, typically from a
1403
+ * server response, or constructed directly in Javascript. The array is used
1404
+ * in place and becomes part of the constructed object. It is not cloned.
1405
+ * If no data is provided, the constructed object will be empty, but still
1406
+ * valid.
1407
+ * @extends {jspb.Message}
1408
+ * @constructor
1409
+ */
1410
+ proto.game.GameImages = function(opt_data) {
1411
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1412
+ };
1413
+ goog.inherits(proto.game.GameImages, jspb.Message);
1414
+ if (goog.DEBUG && !COMPILED) {
1415
+ /**
1416
+ * @public
1417
+ * @override
1418
+ */
1419
+ proto.game.GameImages.displayName = 'proto.game.GameImages';
1420
+ }
1399
1421
  /**
1400
1422
  * Generated by JsPbCodeGenerator.
1401
1423
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -17785,6 +17807,250 @@ proto.game.IntegratorSelfValidationResponse.prototype.setData = function(value)
17785
17807
 
17786
17808
 
17787
17809
 
17810
+
17811
+
17812
+ if (jspb.Message.GENERATE_TO_OBJECT) {
17813
+ /**
17814
+ * Creates an object representation of this proto.
17815
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
17816
+ * Optional fields that are not set will be set to undefined.
17817
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
17818
+ * For the list of reserved names please see:
17819
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
17820
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
17821
+ * JSPB instance for transitional soy proto support:
17822
+ * http://goto/soy-param-migration
17823
+ * @return {!Object}
17824
+ */
17825
+ proto.game.GameImages.prototype.toObject = function(opt_includeInstance) {
17826
+ return proto.game.GameImages.toObject(opt_includeInstance, this);
17827
+ };
17828
+
17829
+
17830
+ /**
17831
+ * Static version of the {@see toObject} method.
17832
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
17833
+ * the JSPB instance for transitional soy proto support:
17834
+ * http://goto/soy-param-migration
17835
+ * @param {!proto.game.GameImages} msg The msg instance to transform.
17836
+ * @return {!Object}
17837
+ * @suppress {unusedLocalVariables} f is only used for nested messages
17838
+ */
17839
+ proto.game.GameImages.toObject = function(includeInstance, msg) {
17840
+ var f, obj = {
17841
+ portrait: jspb.Message.getFieldWithDefault(msg, 1, ""),
17842
+ landscape: jspb.Message.getFieldWithDefault(msg, 2, ""),
17843
+ square: jspb.Message.getFieldWithDefault(msg, 3, "")
17844
+ };
17845
+
17846
+ if (includeInstance) {
17847
+ obj.$jspbMessageInstance = msg;
17848
+ }
17849
+ return obj;
17850
+ };
17851
+ }
17852
+
17853
+
17854
+ /**
17855
+ * Deserializes binary data (in protobuf wire format).
17856
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
17857
+ * @return {!proto.game.GameImages}
17858
+ */
17859
+ proto.game.GameImages.deserializeBinary = function(bytes) {
17860
+ var reader = new jspb.BinaryReader(bytes);
17861
+ var msg = new proto.game.GameImages;
17862
+ return proto.game.GameImages.deserializeBinaryFromReader(msg, reader);
17863
+ };
17864
+
17865
+
17866
+ /**
17867
+ * Deserializes binary data (in protobuf wire format) from the
17868
+ * given reader into the given message object.
17869
+ * @param {!proto.game.GameImages} msg The message object to deserialize into.
17870
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
17871
+ * @return {!proto.game.GameImages}
17872
+ */
17873
+ proto.game.GameImages.deserializeBinaryFromReader = function(msg, reader) {
17874
+ while (reader.nextField()) {
17875
+ if (reader.isEndGroup()) {
17876
+ break;
17877
+ }
17878
+ var field = reader.getFieldNumber();
17879
+ switch (field) {
17880
+ case 1:
17881
+ var value = /** @type {string} */ (reader.readString());
17882
+ msg.setPortrait(value);
17883
+ break;
17884
+ case 2:
17885
+ var value = /** @type {string} */ (reader.readString());
17886
+ msg.setLandscape(value);
17887
+ break;
17888
+ case 3:
17889
+ var value = /** @type {string} */ (reader.readString());
17890
+ msg.setSquare(value);
17891
+ break;
17892
+ default:
17893
+ reader.skipField();
17894
+ break;
17895
+ }
17896
+ }
17897
+ return msg;
17898
+ };
17899
+
17900
+
17901
+ /**
17902
+ * Serializes the message to binary data (in protobuf wire format).
17903
+ * @return {!Uint8Array}
17904
+ */
17905
+ proto.game.GameImages.prototype.serializeBinary = function() {
17906
+ var writer = new jspb.BinaryWriter();
17907
+ proto.game.GameImages.serializeBinaryToWriter(this, writer);
17908
+ return writer.getResultBuffer();
17909
+ };
17910
+
17911
+
17912
+ /**
17913
+ * Serializes the given message to binary data (in protobuf wire
17914
+ * format), writing to the given BinaryWriter.
17915
+ * @param {!proto.game.GameImages} message
17916
+ * @param {!jspb.BinaryWriter} writer
17917
+ * @suppress {unusedLocalVariables} f is only used for nested messages
17918
+ */
17919
+ proto.game.GameImages.serializeBinaryToWriter = function(message, writer) {
17920
+ var f = undefined;
17921
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
17922
+ if (f != null) {
17923
+ writer.writeString(
17924
+ 1,
17925
+ f
17926
+ );
17927
+ }
17928
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
17929
+ if (f != null) {
17930
+ writer.writeString(
17931
+ 2,
17932
+ f
17933
+ );
17934
+ }
17935
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
17936
+ if (f != null) {
17937
+ writer.writeString(
17938
+ 3,
17939
+ f
17940
+ );
17941
+ }
17942
+ };
17943
+
17944
+
17945
+ /**
17946
+ * optional string portrait = 1;
17947
+ * @return {string}
17948
+ */
17949
+ proto.game.GameImages.prototype.getPortrait = function() {
17950
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
17951
+ };
17952
+
17953
+
17954
+ /**
17955
+ * @param {string} value
17956
+ * @return {!proto.game.GameImages} returns this
17957
+ */
17958
+ proto.game.GameImages.prototype.setPortrait = function(value) {
17959
+ return jspb.Message.setField(this, 1, value);
17960
+ };
17961
+
17962
+
17963
+ /**
17964
+ * Clears the field making it undefined.
17965
+ * @return {!proto.game.GameImages} returns this
17966
+ */
17967
+ proto.game.GameImages.prototype.clearPortrait = function() {
17968
+ return jspb.Message.setField(this, 1, undefined);
17969
+ };
17970
+
17971
+
17972
+ /**
17973
+ * Returns whether this field is set.
17974
+ * @return {boolean}
17975
+ */
17976
+ proto.game.GameImages.prototype.hasPortrait = function() {
17977
+ return jspb.Message.getField(this, 1) != null;
17978
+ };
17979
+
17980
+
17981
+ /**
17982
+ * optional string landscape = 2;
17983
+ * @return {string}
17984
+ */
17985
+ proto.game.GameImages.prototype.getLandscape = function() {
17986
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
17987
+ };
17988
+
17989
+
17990
+ /**
17991
+ * @param {string} value
17992
+ * @return {!proto.game.GameImages} returns this
17993
+ */
17994
+ proto.game.GameImages.prototype.setLandscape = function(value) {
17995
+ return jspb.Message.setField(this, 2, value);
17996
+ };
17997
+
17998
+
17999
+ /**
18000
+ * Clears the field making it undefined.
18001
+ * @return {!proto.game.GameImages} returns this
18002
+ */
18003
+ proto.game.GameImages.prototype.clearLandscape = function() {
18004
+ return jspb.Message.setField(this, 2, undefined);
18005
+ };
18006
+
18007
+
18008
+ /**
18009
+ * Returns whether this field is set.
18010
+ * @return {boolean}
18011
+ */
18012
+ proto.game.GameImages.prototype.hasLandscape = function() {
18013
+ return jspb.Message.getField(this, 2) != null;
18014
+ };
18015
+
18016
+
18017
+ /**
18018
+ * optional string square = 3;
18019
+ * @return {string}
18020
+ */
18021
+ proto.game.GameImages.prototype.getSquare = function() {
18022
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
18023
+ };
18024
+
18025
+
18026
+ /**
18027
+ * @param {string} value
18028
+ * @return {!proto.game.GameImages} returns this
18029
+ */
18030
+ proto.game.GameImages.prototype.setSquare = function(value) {
18031
+ return jspb.Message.setField(this, 3, value);
18032
+ };
18033
+
18034
+
18035
+ /**
18036
+ * Clears the field making it undefined.
18037
+ * @return {!proto.game.GameImages} returns this
18038
+ */
18039
+ proto.game.GameImages.prototype.clearSquare = function() {
18040
+ return jspb.Message.setField(this, 3, undefined);
18041
+ };
18042
+
18043
+
18044
+ /**
18045
+ * Returns whether this field is set.
18046
+ * @return {boolean}
18047
+ */
18048
+ proto.game.GameImages.prototype.hasSquare = function() {
18049
+ return jspb.Message.getField(this, 3) != null;
18050
+ };
18051
+
18052
+
18053
+
17788
18054
  /**
17789
18055
  * List of repeated fields within this message type.
17790
18056
  * @private {!Array<number>}
@@ -17846,7 +18112,8 @@ proto.game.GameItem.toObject = function(includeInstance, msg) {
17846
18112
  isTop: jspb.Message.getBooleanFieldWithDefault(msg, 21, false),
17847
18113
  isVip: jspb.Message.getBooleanFieldWithDefault(msg, 22, false),
17848
18114
  devicesList: (f = jspb.Message.getRepeatedField(msg, 23)) == null ? undefined : f,
17849
- isHidden: jspb.Message.getBooleanFieldWithDefault(msg, 24, false)
18115
+ isHidden: jspb.Message.getBooleanFieldWithDefault(msg, 24, false),
18116
+ images: (f = msg.getImages()) && proto.game.GameImages.toObject(includeInstance, f)
17850
18117
  };
17851
18118
 
17852
18119
  if (includeInstance) {
@@ -17980,6 +18247,11 @@ proto.game.GameItem.deserializeBinaryFromReader = function(msg, reader) {
17980
18247
  var value = /** @type {boolean} */ (reader.readBool());
17981
18248
  msg.setIsHidden(value);
17982
18249
  break;
18250
+ case 25:
18251
+ var value = new proto.game.GameImages;
18252
+ reader.readMessage(value,proto.game.GameImages.deserializeBinaryFromReader);
18253
+ msg.setImages(value);
18254
+ break;
17983
18255
  default:
17984
18256
  reader.skipField();
17985
18257
  break;
@@ -18178,6 +18450,14 @@ proto.game.GameItem.serializeBinaryToWriter = function(message, writer) {
18178
18450
  f
18179
18451
  );
18180
18452
  }
18453
+ f = message.getImages();
18454
+ if (f != null) {
18455
+ writer.writeMessage(
18456
+ 25,
18457
+ f,
18458
+ proto.game.GameImages.serializeBinaryToWriter
18459
+ );
18460
+ }
18181
18461
  };
18182
18462
 
18183
18463
 
@@ -19047,6 +19327,43 @@ proto.game.GameItem.prototype.hasIsHidden = function() {
19047
19327
  };
19048
19328
 
19049
19329
 
19330
+ /**
19331
+ * optional GameImages images = 25;
19332
+ * @return {?proto.game.GameImages}
19333
+ */
19334
+ proto.game.GameItem.prototype.getImages = function() {
19335
+ return /** @type{?proto.game.GameImages} */ (
19336
+ jspb.Message.getWrapperField(this, proto.game.GameImages, 25));
19337
+ };
19338
+
19339
+
19340
+ /**
19341
+ * @param {?proto.game.GameImages|undefined} value
19342
+ * @return {!proto.game.GameItem} returns this
19343
+ */
19344
+ proto.game.GameItem.prototype.setImages = function(value) {
19345
+ return jspb.Message.setWrapperField(this, 25, value);
19346
+ };
19347
+
19348
+
19349
+ /**
19350
+ * Clears the message field making it undefined.
19351
+ * @return {!proto.game.GameItem} returns this
19352
+ */
19353
+ proto.game.GameItem.prototype.clearImages = function() {
19354
+ return this.setImages(undefined);
19355
+ };
19356
+
19357
+
19358
+ /**
19359
+ * Returns whether this field is set.
19360
+ * @return {boolean}
19361
+ */
19362
+ proto.game.GameItem.prototype.hasImages = function() {
19363
+ return jspb.Message.getField(this, 25) != null;
19364
+ };
19365
+
19366
+
19050
19367
 
19051
19368
  /**
19052
19369
  * Oneof group definitions for this message. Each group defines the field
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.291",
3
+ "version": "1.2.292",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {