protobuf-platform 1.2.15 → 1.2.16
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 +1 -1
- package/user/user.proto +5 -0
- package/user/user_pb.js +248 -0
package/package.json
CHANGED
package/user/user.proto
CHANGED
@@ -228,6 +228,11 @@ message UserActionRequest {
|
|
228
228
|
float action_amount = 2;
|
229
229
|
optional string balance_type = 3;
|
230
230
|
}
|
231
|
+
message UserActionResponse {
|
232
|
+
string status = 1;
|
233
|
+
optional float balance_real = 2;
|
234
|
+
optional float balance_bonus = 3;
|
235
|
+
}
|
231
236
|
//Permissions
|
232
237
|
message RolePermissionRequest {
|
233
238
|
string role = 1;
|
package/user/user_pb.js
CHANGED
@@ -79,6 +79,7 @@ goog.exportSymbol('proto.user.SumSubDocumentRequest.RequestCase', null, global);
|
|
79
79
|
goog.exportSymbol('proto.user.SumSubResponse', null, global);
|
80
80
|
goog.exportSymbol('proto.user.TournamentRulesInfoResponse', null, global);
|
81
81
|
goog.exportSymbol('proto.user.UserActionRequest', null, global);
|
82
|
+
goog.exportSymbol('proto.user.UserActionResponse', null, global);
|
82
83
|
goog.exportSymbol('proto.user.UserCookiesRequest', null, global);
|
83
84
|
goog.exportSymbol('proto.user.UserDataRequest', null, global);
|
84
85
|
goog.exportSymbol('proto.user.UserDataResponse', null, global);
|
@@ -449,6 +450,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
449
450
|
*/
|
450
451
|
proto.user.UserActionRequest.displayName = 'proto.user.UserActionRequest';
|
451
452
|
}
|
453
|
+
/**
|
454
|
+
* Generated by JsPbCodeGenerator.
|
455
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
456
|
+
* server response, or constructed directly in Javascript. The array is used
|
457
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
458
|
+
* If no data is provided, the constructed object will be empty, but still
|
459
|
+
* valid.
|
460
|
+
* @extends {jspb.Message}
|
461
|
+
* @constructor
|
462
|
+
*/
|
463
|
+
proto.user.UserActionResponse = function(opt_data) {
|
464
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
465
|
+
};
|
466
|
+
goog.inherits(proto.user.UserActionResponse, jspb.Message);
|
467
|
+
if (goog.DEBUG && !COMPILED) {
|
468
|
+
/**
|
469
|
+
* @public
|
470
|
+
* @override
|
471
|
+
*/
|
472
|
+
proto.user.UserActionResponse.displayName = 'proto.user.UserActionResponse';
|
473
|
+
}
|
452
474
|
/**
|
453
475
|
* Generated by JsPbCodeGenerator.
|
454
476
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -9377,6 +9399,232 @@ proto.user.UserActionRequest.prototype.hasBalanceType = function() {
|
|
9377
9399
|
|
9378
9400
|
|
9379
9401
|
|
9402
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
9403
|
+
/**
|
9404
|
+
* Creates an object representation of this proto.
|
9405
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
9406
|
+
* Optional fields that are not set will be set to undefined.
|
9407
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
9408
|
+
* For the list of reserved names please see:
|
9409
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
9410
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
9411
|
+
* JSPB instance for transitional soy proto support:
|
9412
|
+
* http://goto/soy-param-migration
|
9413
|
+
* @return {!Object}
|
9414
|
+
*/
|
9415
|
+
proto.user.UserActionResponse.prototype.toObject = function(opt_includeInstance) {
|
9416
|
+
return proto.user.UserActionResponse.toObject(opt_includeInstance, this);
|
9417
|
+
};
|
9418
|
+
|
9419
|
+
|
9420
|
+
/**
|
9421
|
+
* Static version of the {@see toObject} method.
|
9422
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
9423
|
+
* the JSPB instance for transitional soy proto support:
|
9424
|
+
* http://goto/soy-param-migration
|
9425
|
+
* @param {!proto.user.UserActionResponse} msg The msg instance to transform.
|
9426
|
+
* @return {!Object}
|
9427
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
9428
|
+
*/
|
9429
|
+
proto.user.UserActionResponse.toObject = function(includeInstance, msg) {
|
9430
|
+
var f, obj = {
|
9431
|
+
status: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
9432
|
+
balanceReal: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
|
9433
|
+
balanceBonus: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0)
|
9434
|
+
};
|
9435
|
+
|
9436
|
+
if (includeInstance) {
|
9437
|
+
obj.$jspbMessageInstance = msg;
|
9438
|
+
}
|
9439
|
+
return obj;
|
9440
|
+
};
|
9441
|
+
}
|
9442
|
+
|
9443
|
+
|
9444
|
+
/**
|
9445
|
+
* Deserializes binary data (in protobuf wire format).
|
9446
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
9447
|
+
* @return {!proto.user.UserActionResponse}
|
9448
|
+
*/
|
9449
|
+
proto.user.UserActionResponse.deserializeBinary = function(bytes) {
|
9450
|
+
var reader = new jspb.BinaryReader(bytes);
|
9451
|
+
var msg = new proto.user.UserActionResponse;
|
9452
|
+
return proto.user.UserActionResponse.deserializeBinaryFromReader(msg, reader);
|
9453
|
+
};
|
9454
|
+
|
9455
|
+
|
9456
|
+
/**
|
9457
|
+
* Deserializes binary data (in protobuf wire format) from the
|
9458
|
+
* given reader into the given message object.
|
9459
|
+
* @param {!proto.user.UserActionResponse} msg The message object to deserialize into.
|
9460
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
9461
|
+
* @return {!proto.user.UserActionResponse}
|
9462
|
+
*/
|
9463
|
+
proto.user.UserActionResponse.deserializeBinaryFromReader = function(msg, reader) {
|
9464
|
+
while (reader.nextField()) {
|
9465
|
+
if (reader.isEndGroup()) {
|
9466
|
+
break;
|
9467
|
+
}
|
9468
|
+
var field = reader.getFieldNumber();
|
9469
|
+
switch (field) {
|
9470
|
+
case 1:
|
9471
|
+
var value = /** @type {string} */ (reader.readString());
|
9472
|
+
msg.setStatus(value);
|
9473
|
+
break;
|
9474
|
+
case 2:
|
9475
|
+
var value = /** @type {number} */ (reader.readFloat());
|
9476
|
+
msg.setBalanceReal(value);
|
9477
|
+
break;
|
9478
|
+
case 3:
|
9479
|
+
var value = /** @type {number} */ (reader.readFloat());
|
9480
|
+
msg.setBalanceBonus(value);
|
9481
|
+
break;
|
9482
|
+
default:
|
9483
|
+
reader.skipField();
|
9484
|
+
break;
|
9485
|
+
}
|
9486
|
+
}
|
9487
|
+
return msg;
|
9488
|
+
};
|
9489
|
+
|
9490
|
+
|
9491
|
+
/**
|
9492
|
+
* Serializes the message to binary data (in protobuf wire format).
|
9493
|
+
* @return {!Uint8Array}
|
9494
|
+
*/
|
9495
|
+
proto.user.UserActionResponse.prototype.serializeBinary = function() {
|
9496
|
+
var writer = new jspb.BinaryWriter();
|
9497
|
+
proto.user.UserActionResponse.serializeBinaryToWriter(this, writer);
|
9498
|
+
return writer.getResultBuffer();
|
9499
|
+
};
|
9500
|
+
|
9501
|
+
|
9502
|
+
/**
|
9503
|
+
* Serializes the given message to binary data (in protobuf wire
|
9504
|
+
* format), writing to the given BinaryWriter.
|
9505
|
+
* @param {!proto.user.UserActionResponse} message
|
9506
|
+
* @param {!jspb.BinaryWriter} writer
|
9507
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
9508
|
+
*/
|
9509
|
+
proto.user.UserActionResponse.serializeBinaryToWriter = function(message, writer) {
|
9510
|
+
var f = undefined;
|
9511
|
+
f = message.getStatus();
|
9512
|
+
if (f.length > 0) {
|
9513
|
+
writer.writeString(
|
9514
|
+
1,
|
9515
|
+
f
|
9516
|
+
);
|
9517
|
+
}
|
9518
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
9519
|
+
if (f != null) {
|
9520
|
+
writer.writeFloat(
|
9521
|
+
2,
|
9522
|
+
f
|
9523
|
+
);
|
9524
|
+
}
|
9525
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
9526
|
+
if (f != null) {
|
9527
|
+
writer.writeFloat(
|
9528
|
+
3,
|
9529
|
+
f
|
9530
|
+
);
|
9531
|
+
}
|
9532
|
+
};
|
9533
|
+
|
9534
|
+
|
9535
|
+
/**
|
9536
|
+
* optional string status = 1;
|
9537
|
+
* @return {string}
|
9538
|
+
*/
|
9539
|
+
proto.user.UserActionResponse.prototype.getStatus = function() {
|
9540
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
9541
|
+
};
|
9542
|
+
|
9543
|
+
|
9544
|
+
/**
|
9545
|
+
* @param {string} value
|
9546
|
+
* @return {!proto.user.UserActionResponse} returns this
|
9547
|
+
*/
|
9548
|
+
proto.user.UserActionResponse.prototype.setStatus = function(value) {
|
9549
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
9550
|
+
};
|
9551
|
+
|
9552
|
+
|
9553
|
+
/**
|
9554
|
+
* optional float balance_real = 2;
|
9555
|
+
* @return {number}
|
9556
|
+
*/
|
9557
|
+
proto.user.UserActionResponse.prototype.getBalanceReal = function() {
|
9558
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
9559
|
+
};
|
9560
|
+
|
9561
|
+
|
9562
|
+
/**
|
9563
|
+
* @param {number} value
|
9564
|
+
* @return {!proto.user.UserActionResponse} returns this
|
9565
|
+
*/
|
9566
|
+
proto.user.UserActionResponse.prototype.setBalanceReal = function(value) {
|
9567
|
+
return jspb.Message.setField(this, 2, value);
|
9568
|
+
};
|
9569
|
+
|
9570
|
+
|
9571
|
+
/**
|
9572
|
+
* Clears the field making it undefined.
|
9573
|
+
* @return {!proto.user.UserActionResponse} returns this
|
9574
|
+
*/
|
9575
|
+
proto.user.UserActionResponse.prototype.clearBalanceReal = function() {
|
9576
|
+
return jspb.Message.setField(this, 2, undefined);
|
9577
|
+
};
|
9578
|
+
|
9579
|
+
|
9580
|
+
/**
|
9581
|
+
* Returns whether this field is set.
|
9582
|
+
* @return {boolean}
|
9583
|
+
*/
|
9584
|
+
proto.user.UserActionResponse.prototype.hasBalanceReal = function() {
|
9585
|
+
return jspb.Message.getField(this, 2) != null;
|
9586
|
+
};
|
9587
|
+
|
9588
|
+
|
9589
|
+
/**
|
9590
|
+
* optional float balance_bonus = 3;
|
9591
|
+
* @return {number}
|
9592
|
+
*/
|
9593
|
+
proto.user.UserActionResponse.prototype.getBalanceBonus = function() {
|
9594
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
|
9595
|
+
};
|
9596
|
+
|
9597
|
+
|
9598
|
+
/**
|
9599
|
+
* @param {number} value
|
9600
|
+
* @return {!proto.user.UserActionResponse} returns this
|
9601
|
+
*/
|
9602
|
+
proto.user.UserActionResponse.prototype.setBalanceBonus = function(value) {
|
9603
|
+
return jspb.Message.setField(this, 3, value);
|
9604
|
+
};
|
9605
|
+
|
9606
|
+
|
9607
|
+
/**
|
9608
|
+
* Clears the field making it undefined.
|
9609
|
+
* @return {!proto.user.UserActionResponse} returns this
|
9610
|
+
*/
|
9611
|
+
proto.user.UserActionResponse.prototype.clearBalanceBonus = function() {
|
9612
|
+
return jspb.Message.setField(this, 3, undefined);
|
9613
|
+
};
|
9614
|
+
|
9615
|
+
|
9616
|
+
/**
|
9617
|
+
* Returns whether this field is set.
|
9618
|
+
* @return {boolean}
|
9619
|
+
*/
|
9620
|
+
proto.user.UserActionResponse.prototype.hasBalanceBonus = function() {
|
9621
|
+
return jspb.Message.getField(this, 3) != null;
|
9622
|
+
};
|
9623
|
+
|
9624
|
+
|
9625
|
+
|
9626
|
+
|
9627
|
+
|
9380
9628
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
9381
9629
|
/**
|
9382
9630
|
* Creates an object representation of this proto.
|