protobuf-platform 1.1.3 → 1.1.5
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
@@ -14,6 +14,7 @@ service Tournament {
|
|
14
14
|
rpc setTournamentActivationRule(TournamentActivationRuleRequest) returns (TournamentStatusResponse);
|
15
15
|
rpc setTournamentScoringRule(TournamentScoringRuleRequest) returns (TournamentStatusResponse);
|
16
16
|
rpc setTournamentRewards(TournamentRewardsRequest) returns (TournamentStatusResponse);
|
17
|
+
rpc setTournamentContent(TournamentContentRequest) returns (TournamentStatusResponse);
|
17
18
|
//Tournament Statuses
|
18
19
|
rpc readListTournamentStatuses(PaginationRequest) returns (TournamentStatusItemsResponse);
|
19
20
|
}
|
@@ -133,3 +134,8 @@ message TournamentRewardsRequest {
|
|
133
134
|
int32 tournament_id = 1;
|
134
135
|
repeated RewardItem items = 2;
|
135
136
|
}
|
137
|
+
message TournamentContentRequest {
|
138
|
+
int32 tournament_id = 1;
|
139
|
+
string locale = 2;
|
140
|
+
string content = 3;
|
141
|
+
}
|
@@ -81,6 +81,17 @@ function deserialize_tournament_TournamentActivationRuleRequest(buffer_arg) {
|
|
81
81
|
return tournament_pb.TournamentActivationRuleRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
82
82
|
}
|
83
83
|
|
84
|
+
function serialize_tournament_TournamentContentRequest(arg) {
|
85
|
+
if (!(arg instanceof tournament_pb.TournamentContentRequest)) {
|
86
|
+
throw new Error('Expected argument of type tournament.TournamentContentRequest');
|
87
|
+
}
|
88
|
+
return Buffer.from(arg.serializeBinary());
|
89
|
+
}
|
90
|
+
|
91
|
+
function deserialize_tournament_TournamentContentRequest(buffer_arg) {
|
92
|
+
return tournament_pb.TournamentContentRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
93
|
+
}
|
94
|
+
|
84
95
|
function serialize_tournament_TournamentItemsResponse(arg) {
|
85
96
|
if (!(arg instanceof tournament_pb.TournamentItemsResponse)) {
|
86
97
|
throw new Error('Expected argument of type tournament.TournamentItemsResponse');
|
@@ -271,6 +282,17 @@ createSingleTournament: {
|
|
271
282
|
responseSerialize: serialize_tournament_TournamentStatusResponse,
|
272
283
|
responseDeserialize: deserialize_tournament_TournamentStatusResponse,
|
273
284
|
},
|
285
|
+
setTournamentContent: {
|
286
|
+
path: '/tournament.Tournament/setTournamentContent',
|
287
|
+
requestStream: false,
|
288
|
+
responseStream: false,
|
289
|
+
requestType: tournament_pb.TournamentContentRequest,
|
290
|
+
responseType: tournament_pb.TournamentStatusResponse,
|
291
|
+
requestSerialize: serialize_tournament_TournamentContentRequest,
|
292
|
+
requestDeserialize: deserialize_tournament_TournamentContentRequest,
|
293
|
+
responseSerialize: serialize_tournament_TournamentStatusResponse,
|
294
|
+
responseDeserialize: deserialize_tournament_TournamentStatusResponse,
|
295
|
+
},
|
274
296
|
// Tournament Statuses
|
275
297
|
readListTournamentStatuses: {
|
276
298
|
path: '/tournament.Tournament/readListTournamentStatuses',
|
@@ -31,6 +31,7 @@ goog.exportSymbol('proto.tournament.PongResponse', null, global);
|
|
31
31
|
goog.exportSymbol('proto.tournament.RewardItem', null, global);
|
32
32
|
goog.exportSymbol('proto.tournament.ScoringRule', null, global);
|
33
33
|
goog.exportSymbol('proto.tournament.TournamentActivationRuleRequest', null, global);
|
34
|
+
goog.exportSymbol('proto.tournament.TournamentContentRequest', null, global);
|
34
35
|
goog.exportSymbol('proto.tournament.TournamentItem', null, global);
|
35
36
|
goog.exportSymbol('proto.tournament.TournamentItemRequest', null, global);
|
36
37
|
goog.exportSymbol('proto.tournament.TournamentItemsResponse', null, global);
|
@@ -484,6 +485,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
484
485
|
*/
|
485
486
|
proto.tournament.TournamentRewardsRequest.displayName = 'proto.tournament.TournamentRewardsRequest';
|
486
487
|
}
|
488
|
+
/**
|
489
|
+
* Generated by JsPbCodeGenerator.
|
490
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
491
|
+
* server response, or constructed directly in Javascript. The array is used
|
492
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
493
|
+
* If no data is provided, the constructed object will be empty, but still
|
494
|
+
* valid.
|
495
|
+
* @extends {jspb.Message}
|
496
|
+
* @constructor
|
497
|
+
*/
|
498
|
+
proto.tournament.TournamentContentRequest = function(opt_data) {
|
499
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
500
|
+
};
|
501
|
+
goog.inherits(proto.tournament.TournamentContentRequest, jspb.Message);
|
502
|
+
if (goog.DEBUG && !COMPILED) {
|
503
|
+
/**
|
504
|
+
* @public
|
505
|
+
* @override
|
506
|
+
*/
|
507
|
+
proto.tournament.TournamentContentRequest.displayName = 'proto.tournament.TournamentContentRequest';
|
508
|
+
}
|
487
509
|
|
488
510
|
|
489
511
|
|
@@ -6460,4 +6482,194 @@ proto.tournament.TournamentRewardsRequest.prototype.clearItemsList = function()
|
|
6460
6482
|
};
|
6461
6483
|
|
6462
6484
|
|
6485
|
+
|
6486
|
+
|
6487
|
+
|
6488
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
6489
|
+
/**
|
6490
|
+
* Creates an object representation of this proto.
|
6491
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
6492
|
+
* Optional fields that are not set will be set to undefined.
|
6493
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
6494
|
+
* For the list of reserved names please see:
|
6495
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
6496
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
6497
|
+
* JSPB instance for transitional soy proto support:
|
6498
|
+
* http://goto/soy-param-migration
|
6499
|
+
* @return {!Object}
|
6500
|
+
*/
|
6501
|
+
proto.tournament.TournamentContentRequest.prototype.toObject = function(opt_includeInstance) {
|
6502
|
+
return proto.tournament.TournamentContentRequest.toObject(opt_includeInstance, this);
|
6503
|
+
};
|
6504
|
+
|
6505
|
+
|
6506
|
+
/**
|
6507
|
+
* Static version of the {@see toObject} method.
|
6508
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
6509
|
+
* the JSPB instance for transitional soy proto support:
|
6510
|
+
* http://goto/soy-param-migration
|
6511
|
+
* @param {!proto.tournament.TournamentContentRequest} msg The msg instance to transform.
|
6512
|
+
* @return {!Object}
|
6513
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6514
|
+
*/
|
6515
|
+
proto.tournament.TournamentContentRequest.toObject = function(includeInstance, msg) {
|
6516
|
+
var f, obj = {
|
6517
|
+
tournamentId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
6518
|
+
locale: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
6519
|
+
content: jspb.Message.getFieldWithDefault(msg, 3, "")
|
6520
|
+
};
|
6521
|
+
|
6522
|
+
if (includeInstance) {
|
6523
|
+
obj.$jspbMessageInstance = msg;
|
6524
|
+
}
|
6525
|
+
return obj;
|
6526
|
+
};
|
6527
|
+
}
|
6528
|
+
|
6529
|
+
|
6530
|
+
/**
|
6531
|
+
* Deserializes binary data (in protobuf wire format).
|
6532
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
6533
|
+
* @return {!proto.tournament.TournamentContentRequest}
|
6534
|
+
*/
|
6535
|
+
proto.tournament.TournamentContentRequest.deserializeBinary = function(bytes) {
|
6536
|
+
var reader = new jspb.BinaryReader(bytes);
|
6537
|
+
var msg = new proto.tournament.TournamentContentRequest;
|
6538
|
+
return proto.tournament.TournamentContentRequest.deserializeBinaryFromReader(msg, reader);
|
6539
|
+
};
|
6540
|
+
|
6541
|
+
|
6542
|
+
/**
|
6543
|
+
* Deserializes binary data (in protobuf wire format) from the
|
6544
|
+
* given reader into the given message object.
|
6545
|
+
* @param {!proto.tournament.TournamentContentRequest} msg The message object to deserialize into.
|
6546
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
6547
|
+
* @return {!proto.tournament.TournamentContentRequest}
|
6548
|
+
*/
|
6549
|
+
proto.tournament.TournamentContentRequest.deserializeBinaryFromReader = function(msg, reader) {
|
6550
|
+
while (reader.nextField()) {
|
6551
|
+
if (reader.isEndGroup()) {
|
6552
|
+
break;
|
6553
|
+
}
|
6554
|
+
var field = reader.getFieldNumber();
|
6555
|
+
switch (field) {
|
6556
|
+
case 1:
|
6557
|
+
var value = /** @type {number} */ (reader.readInt32());
|
6558
|
+
msg.setTournamentId(value);
|
6559
|
+
break;
|
6560
|
+
case 2:
|
6561
|
+
var value = /** @type {string} */ (reader.readString());
|
6562
|
+
msg.setLocale(value);
|
6563
|
+
break;
|
6564
|
+
case 3:
|
6565
|
+
var value = /** @type {string} */ (reader.readString());
|
6566
|
+
msg.setContent(value);
|
6567
|
+
break;
|
6568
|
+
default:
|
6569
|
+
reader.skipField();
|
6570
|
+
break;
|
6571
|
+
}
|
6572
|
+
}
|
6573
|
+
return msg;
|
6574
|
+
};
|
6575
|
+
|
6576
|
+
|
6577
|
+
/**
|
6578
|
+
* Serializes the message to binary data (in protobuf wire format).
|
6579
|
+
* @return {!Uint8Array}
|
6580
|
+
*/
|
6581
|
+
proto.tournament.TournamentContentRequest.prototype.serializeBinary = function() {
|
6582
|
+
var writer = new jspb.BinaryWriter();
|
6583
|
+
proto.tournament.TournamentContentRequest.serializeBinaryToWriter(this, writer);
|
6584
|
+
return writer.getResultBuffer();
|
6585
|
+
};
|
6586
|
+
|
6587
|
+
|
6588
|
+
/**
|
6589
|
+
* Serializes the given message to binary data (in protobuf wire
|
6590
|
+
* format), writing to the given BinaryWriter.
|
6591
|
+
* @param {!proto.tournament.TournamentContentRequest} message
|
6592
|
+
* @param {!jspb.BinaryWriter} writer
|
6593
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
6594
|
+
*/
|
6595
|
+
proto.tournament.TournamentContentRequest.serializeBinaryToWriter = function(message, writer) {
|
6596
|
+
var f = undefined;
|
6597
|
+
f = message.getTournamentId();
|
6598
|
+
if (f !== 0) {
|
6599
|
+
writer.writeInt32(
|
6600
|
+
1,
|
6601
|
+
f
|
6602
|
+
);
|
6603
|
+
}
|
6604
|
+
f = message.getLocale();
|
6605
|
+
if (f.length > 0) {
|
6606
|
+
writer.writeString(
|
6607
|
+
2,
|
6608
|
+
f
|
6609
|
+
);
|
6610
|
+
}
|
6611
|
+
f = message.getContent();
|
6612
|
+
if (f.length > 0) {
|
6613
|
+
writer.writeString(
|
6614
|
+
3,
|
6615
|
+
f
|
6616
|
+
);
|
6617
|
+
}
|
6618
|
+
};
|
6619
|
+
|
6620
|
+
|
6621
|
+
/**
|
6622
|
+
* optional int32 tournament_id = 1;
|
6623
|
+
* @return {number}
|
6624
|
+
*/
|
6625
|
+
proto.tournament.TournamentContentRequest.prototype.getTournamentId = function() {
|
6626
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
6627
|
+
};
|
6628
|
+
|
6629
|
+
|
6630
|
+
/**
|
6631
|
+
* @param {number} value
|
6632
|
+
* @return {!proto.tournament.TournamentContentRequest} returns this
|
6633
|
+
*/
|
6634
|
+
proto.tournament.TournamentContentRequest.prototype.setTournamentId = function(value) {
|
6635
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
6636
|
+
};
|
6637
|
+
|
6638
|
+
|
6639
|
+
/**
|
6640
|
+
* optional string locale = 2;
|
6641
|
+
* @return {string}
|
6642
|
+
*/
|
6643
|
+
proto.tournament.TournamentContentRequest.prototype.getLocale = function() {
|
6644
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
6645
|
+
};
|
6646
|
+
|
6647
|
+
|
6648
|
+
/**
|
6649
|
+
* @param {string} value
|
6650
|
+
* @return {!proto.tournament.TournamentContentRequest} returns this
|
6651
|
+
*/
|
6652
|
+
proto.tournament.TournamentContentRequest.prototype.setLocale = function(value) {
|
6653
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
6654
|
+
};
|
6655
|
+
|
6656
|
+
|
6657
|
+
/**
|
6658
|
+
* optional string content = 3;
|
6659
|
+
* @return {string}
|
6660
|
+
*/
|
6661
|
+
proto.tournament.TournamentContentRequest.prototype.getContent = function() {
|
6662
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
6663
|
+
};
|
6664
|
+
|
6665
|
+
|
6666
|
+
/**
|
6667
|
+
* @param {string} value
|
6668
|
+
* @return {!proto.tournament.TournamentContentRequest} returns this
|
6669
|
+
*/
|
6670
|
+
proto.tournament.TournamentContentRequest.prototype.setContent = function(value) {
|
6671
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
6672
|
+
};
|
6673
|
+
|
6674
|
+
|
6463
6675
|
goog.object.extend(exports, proto.tournament);
|