protobuf-platform 1.2.351 → 1.2.354
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/bet/bet.proto +15 -0
- package/bet/bet_grpc_pb.js +33 -0
- package/bet/bet_pb.js +638 -7
- package/cms/cms.proto +1 -0
- package/cms/cms_pb.js +49 -1
- package/package.json +1 -1
package/bet/bet.proto
CHANGED
|
@@ -34,6 +34,7 @@ service Bet {
|
|
|
34
34
|
// Games aggregation
|
|
35
35
|
rpc getWinRates(PaginationRequest) returns (WinRatesResponse);
|
|
36
36
|
rpc getLastWins(PaginationRequest) returns (WinRatesResponse);
|
|
37
|
+
rpc getTopWinByMultiplier(TopWinByMultiplierRequest) returns (WinRateItem);
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
message PingRequest { string ping = 1; }
|
|
@@ -205,6 +206,12 @@ message TestBetResult {
|
|
|
205
206
|
}
|
|
206
207
|
|
|
207
208
|
//Win Rates
|
|
209
|
+
message WinRateGameImages {
|
|
210
|
+
optional string portrait = 1;
|
|
211
|
+
optional string landscape = 2;
|
|
212
|
+
optional string square = 3;
|
|
213
|
+
}
|
|
214
|
+
|
|
208
215
|
message WinRateItem {
|
|
209
216
|
float amount = 1;
|
|
210
217
|
string game_title = 2;
|
|
@@ -216,6 +223,14 @@ message WinRateItem {
|
|
|
216
223
|
optional string currency = 8;
|
|
217
224
|
optional float multiplier = 9;
|
|
218
225
|
optional int32 has_demo = 10;
|
|
226
|
+
optional WinRateGameImages images = 11;
|
|
227
|
+
optional int32 game_id = 12;
|
|
228
|
+
optional string game_uuid = 13;
|
|
229
|
+
optional string created_at = 14;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
message TopWinByMultiplierRequest {
|
|
233
|
+
optional int32 days = 1;
|
|
219
234
|
}
|
|
220
235
|
message WinRatesResponse {
|
|
221
236
|
repeated WinRateItem items = 1;
|
package/bet/bet_grpc_pb.js
CHANGED
|
@@ -224,6 +224,28 @@ function deserialize_bet_SportBetsHistoryResponse(buffer_arg) {
|
|
|
224
224
|
return bet_pb.SportBetsHistoryResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
225
225
|
}
|
|
226
226
|
|
|
227
|
+
function serialize_bet_TopWinByMultiplierRequest(arg) {
|
|
228
|
+
if (!(arg instanceof bet_pb.TopWinByMultiplierRequest)) {
|
|
229
|
+
throw new Error('Expected argument of type bet.TopWinByMultiplierRequest');
|
|
230
|
+
}
|
|
231
|
+
return Buffer.from(arg.serializeBinary());
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
function deserialize_bet_TopWinByMultiplierRequest(buffer_arg) {
|
|
235
|
+
return bet_pb.TopWinByMultiplierRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
function serialize_bet_WinRateItem(arg) {
|
|
239
|
+
if (!(arg instanceof bet_pb.WinRateItem)) {
|
|
240
|
+
throw new Error('Expected argument of type bet.WinRateItem');
|
|
241
|
+
}
|
|
242
|
+
return Buffer.from(arg.serializeBinary());
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
function deserialize_bet_WinRateItem(buffer_arg) {
|
|
246
|
+
return bet_pb.WinRateItem.deserializeBinary(new Uint8Array(buffer_arg));
|
|
247
|
+
}
|
|
248
|
+
|
|
227
249
|
function serialize_bet_WinRatesResponse(arg) {
|
|
228
250
|
if (!(arg instanceof bet_pb.WinRatesResponse)) {
|
|
229
251
|
throw new Error('Expected argument of type bet.WinRatesResponse');
|
|
@@ -400,6 +422,17 @@ getWinRates: {
|
|
|
400
422
|
responseSerialize: serialize_bet_WinRatesResponse,
|
|
401
423
|
responseDeserialize: deserialize_bet_WinRatesResponse,
|
|
402
424
|
},
|
|
425
|
+
getTopWinByMultiplier: {
|
|
426
|
+
path: '/bet.Bet/getTopWinByMultiplier',
|
|
427
|
+
requestStream: false,
|
|
428
|
+
responseStream: false,
|
|
429
|
+
requestType: bet_pb.TopWinByMultiplierRequest,
|
|
430
|
+
responseType: bet_pb.WinRateItem,
|
|
431
|
+
requestSerialize: serialize_bet_TopWinByMultiplierRequest,
|
|
432
|
+
requestDeserialize: deserialize_bet_TopWinByMultiplierRequest,
|
|
433
|
+
responseSerialize: serialize_bet_WinRateItem,
|
|
434
|
+
responseDeserialize: deserialize_bet_WinRateItem,
|
|
435
|
+
},
|
|
403
436
|
};
|
|
404
437
|
|
|
405
438
|
exports.BetClient = grpc.makeGenericClientConstructor(BetService, 'Bet');
|
package/bet/bet_pb.js
CHANGED
|
@@ -46,8 +46,10 @@ goog.exportSymbol('proto.bet.SportBetsHistoryResponse', null, global);
|
|
|
46
46
|
goog.exportSymbol('proto.bet.SportEventInfo', null, global);
|
|
47
47
|
goog.exportSymbol('proto.bet.SportOutcomeItem', null, global);
|
|
48
48
|
goog.exportSymbol('proto.bet.TestBetResult', null, global);
|
|
49
|
+
goog.exportSymbol('proto.bet.TopWinByMultiplierRequest', null, global);
|
|
49
50
|
goog.exportSymbol('proto.bet.UserBetItem', null, global);
|
|
50
51
|
goog.exportSymbol('proto.bet.UserSearchRequest', null, global);
|
|
52
|
+
goog.exportSymbol('proto.bet.WinRateGameImages', null, global);
|
|
51
53
|
goog.exportSymbol('proto.bet.WinRateItem', null, global);
|
|
52
54
|
goog.exportSymbol('proto.bet.WinRatesResponse', null, global);
|
|
53
55
|
/**
|
|
@@ -533,6 +535,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
533
535
|
*/
|
|
534
536
|
proto.bet.TestBetResult.displayName = 'proto.bet.TestBetResult';
|
|
535
537
|
}
|
|
538
|
+
/**
|
|
539
|
+
* Generated by JsPbCodeGenerator.
|
|
540
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
541
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
542
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
543
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
544
|
+
* valid.
|
|
545
|
+
* @extends {jspb.Message}
|
|
546
|
+
* @constructor
|
|
547
|
+
*/
|
|
548
|
+
proto.bet.WinRateGameImages = function(opt_data) {
|
|
549
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
550
|
+
};
|
|
551
|
+
goog.inherits(proto.bet.WinRateGameImages, jspb.Message);
|
|
552
|
+
if (goog.DEBUG && !COMPILED) {
|
|
553
|
+
/**
|
|
554
|
+
* @public
|
|
555
|
+
* @override
|
|
556
|
+
*/
|
|
557
|
+
proto.bet.WinRateGameImages.displayName = 'proto.bet.WinRateGameImages';
|
|
558
|
+
}
|
|
536
559
|
/**
|
|
537
560
|
* Generated by JsPbCodeGenerator.
|
|
538
561
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -554,6 +577,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
554
577
|
*/
|
|
555
578
|
proto.bet.WinRateItem.displayName = 'proto.bet.WinRateItem';
|
|
556
579
|
}
|
|
580
|
+
/**
|
|
581
|
+
* Generated by JsPbCodeGenerator.
|
|
582
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
583
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
584
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
585
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
586
|
+
* valid.
|
|
587
|
+
* @extends {jspb.Message}
|
|
588
|
+
* @constructor
|
|
589
|
+
*/
|
|
590
|
+
proto.bet.TopWinByMultiplierRequest = function(opt_data) {
|
|
591
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
592
|
+
};
|
|
593
|
+
goog.inherits(proto.bet.TopWinByMultiplierRequest, jspb.Message);
|
|
594
|
+
if (goog.DEBUG && !COMPILED) {
|
|
595
|
+
/**
|
|
596
|
+
* @public
|
|
597
|
+
* @override
|
|
598
|
+
*/
|
|
599
|
+
proto.bet.TopWinByMultiplierRequest.displayName = 'proto.bet.TopWinByMultiplierRequest';
|
|
600
|
+
}
|
|
557
601
|
/**
|
|
558
602
|
* Generated by JsPbCodeGenerator.
|
|
559
603
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -7938,6 +7982,250 @@ proto.bet.TestBetResult.prototype.hasDispatchResponseBody = function() {
|
|
|
7938
7982
|
|
|
7939
7983
|
|
|
7940
7984
|
|
|
7985
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7986
|
+
/**
|
|
7987
|
+
* Creates an object representation of this proto.
|
|
7988
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7989
|
+
* Optional fields that are not set will be set to undefined.
|
|
7990
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7991
|
+
* For the list of reserved names please see:
|
|
7992
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7993
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7994
|
+
* JSPB instance for transitional soy proto support:
|
|
7995
|
+
* http://goto/soy-param-migration
|
|
7996
|
+
* @return {!Object}
|
|
7997
|
+
*/
|
|
7998
|
+
proto.bet.WinRateGameImages.prototype.toObject = function(opt_includeInstance) {
|
|
7999
|
+
return proto.bet.WinRateGameImages.toObject(opt_includeInstance, this);
|
|
8000
|
+
};
|
|
8001
|
+
|
|
8002
|
+
|
|
8003
|
+
/**
|
|
8004
|
+
* Static version of the {@see toObject} method.
|
|
8005
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8006
|
+
* the JSPB instance for transitional soy proto support:
|
|
8007
|
+
* http://goto/soy-param-migration
|
|
8008
|
+
* @param {!proto.bet.WinRateGameImages} msg The msg instance to transform.
|
|
8009
|
+
* @return {!Object}
|
|
8010
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8011
|
+
*/
|
|
8012
|
+
proto.bet.WinRateGameImages.toObject = function(includeInstance, msg) {
|
|
8013
|
+
var f, obj = {
|
|
8014
|
+
portrait: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
8015
|
+
landscape: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
8016
|
+
square: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
8017
|
+
};
|
|
8018
|
+
|
|
8019
|
+
if (includeInstance) {
|
|
8020
|
+
obj.$jspbMessageInstance = msg;
|
|
8021
|
+
}
|
|
8022
|
+
return obj;
|
|
8023
|
+
};
|
|
8024
|
+
}
|
|
8025
|
+
|
|
8026
|
+
|
|
8027
|
+
/**
|
|
8028
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8029
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8030
|
+
* @return {!proto.bet.WinRateGameImages}
|
|
8031
|
+
*/
|
|
8032
|
+
proto.bet.WinRateGameImages.deserializeBinary = function(bytes) {
|
|
8033
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8034
|
+
var msg = new proto.bet.WinRateGameImages;
|
|
8035
|
+
return proto.bet.WinRateGameImages.deserializeBinaryFromReader(msg, reader);
|
|
8036
|
+
};
|
|
8037
|
+
|
|
8038
|
+
|
|
8039
|
+
/**
|
|
8040
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
8041
|
+
* given reader into the given message object.
|
|
8042
|
+
* @param {!proto.bet.WinRateGameImages} msg The message object to deserialize into.
|
|
8043
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8044
|
+
* @return {!proto.bet.WinRateGameImages}
|
|
8045
|
+
*/
|
|
8046
|
+
proto.bet.WinRateGameImages.deserializeBinaryFromReader = function(msg, reader) {
|
|
8047
|
+
while (reader.nextField()) {
|
|
8048
|
+
if (reader.isEndGroup()) {
|
|
8049
|
+
break;
|
|
8050
|
+
}
|
|
8051
|
+
var field = reader.getFieldNumber();
|
|
8052
|
+
switch (field) {
|
|
8053
|
+
case 1:
|
|
8054
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8055
|
+
msg.setPortrait(value);
|
|
8056
|
+
break;
|
|
8057
|
+
case 2:
|
|
8058
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8059
|
+
msg.setLandscape(value);
|
|
8060
|
+
break;
|
|
8061
|
+
case 3:
|
|
8062
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8063
|
+
msg.setSquare(value);
|
|
8064
|
+
break;
|
|
8065
|
+
default:
|
|
8066
|
+
reader.skipField();
|
|
8067
|
+
break;
|
|
8068
|
+
}
|
|
8069
|
+
}
|
|
8070
|
+
return msg;
|
|
8071
|
+
};
|
|
8072
|
+
|
|
8073
|
+
|
|
8074
|
+
/**
|
|
8075
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
8076
|
+
* @return {!Uint8Array}
|
|
8077
|
+
*/
|
|
8078
|
+
proto.bet.WinRateGameImages.prototype.serializeBinary = function() {
|
|
8079
|
+
var writer = new jspb.BinaryWriter();
|
|
8080
|
+
proto.bet.WinRateGameImages.serializeBinaryToWriter(this, writer);
|
|
8081
|
+
return writer.getResultBuffer();
|
|
8082
|
+
};
|
|
8083
|
+
|
|
8084
|
+
|
|
8085
|
+
/**
|
|
8086
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
8087
|
+
* format), writing to the given BinaryWriter.
|
|
8088
|
+
* @param {!proto.bet.WinRateGameImages} message
|
|
8089
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8090
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8091
|
+
*/
|
|
8092
|
+
proto.bet.WinRateGameImages.serializeBinaryToWriter = function(message, writer) {
|
|
8093
|
+
var f = undefined;
|
|
8094
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
8095
|
+
if (f != null) {
|
|
8096
|
+
writer.writeString(
|
|
8097
|
+
1,
|
|
8098
|
+
f
|
|
8099
|
+
);
|
|
8100
|
+
}
|
|
8101
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
8102
|
+
if (f != null) {
|
|
8103
|
+
writer.writeString(
|
|
8104
|
+
2,
|
|
8105
|
+
f
|
|
8106
|
+
);
|
|
8107
|
+
}
|
|
8108
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
8109
|
+
if (f != null) {
|
|
8110
|
+
writer.writeString(
|
|
8111
|
+
3,
|
|
8112
|
+
f
|
|
8113
|
+
);
|
|
8114
|
+
}
|
|
8115
|
+
};
|
|
8116
|
+
|
|
8117
|
+
|
|
8118
|
+
/**
|
|
8119
|
+
* optional string portrait = 1;
|
|
8120
|
+
* @return {string}
|
|
8121
|
+
*/
|
|
8122
|
+
proto.bet.WinRateGameImages.prototype.getPortrait = function() {
|
|
8123
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
8124
|
+
};
|
|
8125
|
+
|
|
8126
|
+
|
|
8127
|
+
/**
|
|
8128
|
+
* @param {string} value
|
|
8129
|
+
* @return {!proto.bet.WinRateGameImages} returns this
|
|
8130
|
+
*/
|
|
8131
|
+
proto.bet.WinRateGameImages.prototype.setPortrait = function(value) {
|
|
8132
|
+
return jspb.Message.setField(this, 1, value);
|
|
8133
|
+
};
|
|
8134
|
+
|
|
8135
|
+
|
|
8136
|
+
/**
|
|
8137
|
+
* Clears the field making it undefined.
|
|
8138
|
+
* @return {!proto.bet.WinRateGameImages} returns this
|
|
8139
|
+
*/
|
|
8140
|
+
proto.bet.WinRateGameImages.prototype.clearPortrait = function() {
|
|
8141
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
8142
|
+
};
|
|
8143
|
+
|
|
8144
|
+
|
|
8145
|
+
/**
|
|
8146
|
+
* Returns whether this field is set.
|
|
8147
|
+
* @return {boolean}
|
|
8148
|
+
*/
|
|
8149
|
+
proto.bet.WinRateGameImages.prototype.hasPortrait = function() {
|
|
8150
|
+
return jspb.Message.getField(this, 1) != null;
|
|
8151
|
+
};
|
|
8152
|
+
|
|
8153
|
+
|
|
8154
|
+
/**
|
|
8155
|
+
* optional string landscape = 2;
|
|
8156
|
+
* @return {string}
|
|
8157
|
+
*/
|
|
8158
|
+
proto.bet.WinRateGameImages.prototype.getLandscape = function() {
|
|
8159
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
8160
|
+
};
|
|
8161
|
+
|
|
8162
|
+
|
|
8163
|
+
/**
|
|
8164
|
+
* @param {string} value
|
|
8165
|
+
* @return {!proto.bet.WinRateGameImages} returns this
|
|
8166
|
+
*/
|
|
8167
|
+
proto.bet.WinRateGameImages.prototype.setLandscape = function(value) {
|
|
8168
|
+
return jspb.Message.setField(this, 2, value);
|
|
8169
|
+
};
|
|
8170
|
+
|
|
8171
|
+
|
|
8172
|
+
/**
|
|
8173
|
+
* Clears the field making it undefined.
|
|
8174
|
+
* @return {!proto.bet.WinRateGameImages} returns this
|
|
8175
|
+
*/
|
|
8176
|
+
proto.bet.WinRateGameImages.prototype.clearLandscape = function() {
|
|
8177
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
8178
|
+
};
|
|
8179
|
+
|
|
8180
|
+
|
|
8181
|
+
/**
|
|
8182
|
+
* Returns whether this field is set.
|
|
8183
|
+
* @return {boolean}
|
|
8184
|
+
*/
|
|
8185
|
+
proto.bet.WinRateGameImages.prototype.hasLandscape = function() {
|
|
8186
|
+
return jspb.Message.getField(this, 2) != null;
|
|
8187
|
+
};
|
|
8188
|
+
|
|
8189
|
+
|
|
8190
|
+
/**
|
|
8191
|
+
* optional string square = 3;
|
|
8192
|
+
* @return {string}
|
|
8193
|
+
*/
|
|
8194
|
+
proto.bet.WinRateGameImages.prototype.getSquare = function() {
|
|
8195
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
8196
|
+
};
|
|
8197
|
+
|
|
8198
|
+
|
|
8199
|
+
/**
|
|
8200
|
+
* @param {string} value
|
|
8201
|
+
* @return {!proto.bet.WinRateGameImages} returns this
|
|
8202
|
+
*/
|
|
8203
|
+
proto.bet.WinRateGameImages.prototype.setSquare = function(value) {
|
|
8204
|
+
return jspb.Message.setField(this, 3, value);
|
|
8205
|
+
};
|
|
8206
|
+
|
|
8207
|
+
|
|
8208
|
+
/**
|
|
8209
|
+
* Clears the field making it undefined.
|
|
8210
|
+
* @return {!proto.bet.WinRateGameImages} returns this
|
|
8211
|
+
*/
|
|
8212
|
+
proto.bet.WinRateGameImages.prototype.clearSquare = function() {
|
|
8213
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
8214
|
+
};
|
|
8215
|
+
|
|
8216
|
+
|
|
8217
|
+
/**
|
|
8218
|
+
* Returns whether this field is set.
|
|
8219
|
+
* @return {boolean}
|
|
8220
|
+
*/
|
|
8221
|
+
proto.bet.WinRateGameImages.prototype.hasSquare = function() {
|
|
8222
|
+
return jspb.Message.getField(this, 3) != null;
|
|
8223
|
+
};
|
|
8224
|
+
|
|
8225
|
+
|
|
8226
|
+
|
|
8227
|
+
|
|
8228
|
+
|
|
7941
8229
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7942
8230
|
/**
|
|
7943
8231
|
* Creates an object representation of this proto.
|
|
@@ -7976,7 +8264,11 @@ proto.bet.WinRateItem.toObject = function(includeInstance, msg) {
|
|
|
7976
8264
|
userNickname: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
7977
8265
|
currency: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
7978
8266
|
multiplier: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0),
|
|
7979
|
-
hasDemo: jspb.Message.getFieldWithDefault(msg, 10, 0)
|
|
8267
|
+
hasDemo: jspb.Message.getFieldWithDefault(msg, 10, 0),
|
|
8268
|
+
images: (f = msg.getImages()) && proto.bet.WinRateGameImages.toObject(includeInstance, f),
|
|
8269
|
+
gameId: jspb.Message.getFieldWithDefault(msg, 12, 0),
|
|
8270
|
+
gameUuid: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
8271
|
+
createdAt: jspb.Message.getFieldWithDefault(msg, 14, "")
|
|
7980
8272
|
};
|
|
7981
8273
|
|
|
7982
8274
|
if (includeInstance) {
|
|
@@ -8053,6 +8345,23 @@ proto.bet.WinRateItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
8053
8345
|
var value = /** @type {number} */ (reader.readInt32());
|
|
8054
8346
|
msg.setHasDemo(value);
|
|
8055
8347
|
break;
|
|
8348
|
+
case 11:
|
|
8349
|
+
var value = new proto.bet.WinRateGameImages;
|
|
8350
|
+
reader.readMessage(value,proto.bet.WinRateGameImages.deserializeBinaryFromReader);
|
|
8351
|
+
msg.setImages(value);
|
|
8352
|
+
break;
|
|
8353
|
+
case 12:
|
|
8354
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
8355
|
+
msg.setGameId(value);
|
|
8356
|
+
break;
|
|
8357
|
+
case 13:
|
|
8358
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8359
|
+
msg.setGameUuid(value);
|
|
8360
|
+
break;
|
|
8361
|
+
case 14:
|
|
8362
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8363
|
+
msg.setCreatedAt(value);
|
|
8364
|
+
break;
|
|
8056
8365
|
default:
|
|
8057
8366
|
reader.skipField();
|
|
8058
8367
|
break;
|
|
@@ -8152,12 +8461,41 @@ proto.bet.WinRateItem.serializeBinaryToWriter = function(message, writer) {
|
|
|
8152
8461
|
f
|
|
8153
8462
|
);
|
|
8154
8463
|
}
|
|
8155
|
-
|
|
8156
|
-
|
|
8157
|
-
|
|
8158
|
-
|
|
8159
|
-
|
|
8160
|
-
|
|
8464
|
+
f = message.getImages();
|
|
8465
|
+
if (f != null) {
|
|
8466
|
+
writer.writeMessage(
|
|
8467
|
+
11,
|
|
8468
|
+
f,
|
|
8469
|
+
proto.bet.WinRateGameImages.serializeBinaryToWriter
|
|
8470
|
+
);
|
|
8471
|
+
}
|
|
8472
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 12));
|
|
8473
|
+
if (f != null) {
|
|
8474
|
+
writer.writeInt32(
|
|
8475
|
+
12,
|
|
8476
|
+
f
|
|
8477
|
+
);
|
|
8478
|
+
}
|
|
8479
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 13));
|
|
8480
|
+
if (f != null) {
|
|
8481
|
+
writer.writeString(
|
|
8482
|
+
13,
|
|
8483
|
+
f
|
|
8484
|
+
);
|
|
8485
|
+
}
|
|
8486
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 14));
|
|
8487
|
+
if (f != null) {
|
|
8488
|
+
writer.writeString(
|
|
8489
|
+
14,
|
|
8490
|
+
f
|
|
8491
|
+
);
|
|
8492
|
+
}
|
|
8493
|
+
};
|
|
8494
|
+
|
|
8495
|
+
|
|
8496
|
+
/**
|
|
8497
|
+
* optional float amount = 1;
|
|
8498
|
+
* @return {number}
|
|
8161
8499
|
*/
|
|
8162
8500
|
proto.bet.WinRateItem.prototype.getAmount = function() {
|
|
8163
8501
|
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
|
|
@@ -8461,6 +8799,299 @@ proto.bet.WinRateItem.prototype.hasHasDemo = function() {
|
|
|
8461
8799
|
};
|
|
8462
8800
|
|
|
8463
8801
|
|
|
8802
|
+
/**
|
|
8803
|
+
* optional WinRateGameImages images = 11;
|
|
8804
|
+
* @return {?proto.bet.WinRateGameImages}
|
|
8805
|
+
*/
|
|
8806
|
+
proto.bet.WinRateItem.prototype.getImages = function() {
|
|
8807
|
+
return /** @type{?proto.bet.WinRateGameImages} */ (
|
|
8808
|
+
jspb.Message.getWrapperField(this, proto.bet.WinRateGameImages, 11));
|
|
8809
|
+
};
|
|
8810
|
+
|
|
8811
|
+
|
|
8812
|
+
/**
|
|
8813
|
+
* @param {?proto.bet.WinRateGameImages|undefined} value
|
|
8814
|
+
* @return {!proto.bet.WinRateItem} returns this
|
|
8815
|
+
*/
|
|
8816
|
+
proto.bet.WinRateItem.prototype.setImages = function(value) {
|
|
8817
|
+
return jspb.Message.setWrapperField(this, 11, value);
|
|
8818
|
+
};
|
|
8819
|
+
|
|
8820
|
+
|
|
8821
|
+
/**
|
|
8822
|
+
* Clears the message field making it undefined.
|
|
8823
|
+
* @return {!proto.bet.WinRateItem} returns this
|
|
8824
|
+
*/
|
|
8825
|
+
proto.bet.WinRateItem.prototype.clearImages = function() {
|
|
8826
|
+
return this.setImages(undefined);
|
|
8827
|
+
};
|
|
8828
|
+
|
|
8829
|
+
|
|
8830
|
+
/**
|
|
8831
|
+
* Returns whether this field is set.
|
|
8832
|
+
* @return {boolean}
|
|
8833
|
+
*/
|
|
8834
|
+
proto.bet.WinRateItem.prototype.hasImages = function() {
|
|
8835
|
+
return jspb.Message.getField(this, 11) != null;
|
|
8836
|
+
};
|
|
8837
|
+
|
|
8838
|
+
|
|
8839
|
+
/**
|
|
8840
|
+
* optional int32 game_id = 12;
|
|
8841
|
+
* @return {number}
|
|
8842
|
+
*/
|
|
8843
|
+
proto.bet.WinRateItem.prototype.getGameId = function() {
|
|
8844
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
|
|
8845
|
+
};
|
|
8846
|
+
|
|
8847
|
+
|
|
8848
|
+
/**
|
|
8849
|
+
* @param {number} value
|
|
8850
|
+
* @return {!proto.bet.WinRateItem} returns this
|
|
8851
|
+
*/
|
|
8852
|
+
proto.bet.WinRateItem.prototype.setGameId = function(value) {
|
|
8853
|
+
return jspb.Message.setField(this, 12, value);
|
|
8854
|
+
};
|
|
8855
|
+
|
|
8856
|
+
|
|
8857
|
+
/**
|
|
8858
|
+
* Clears the field making it undefined.
|
|
8859
|
+
* @return {!proto.bet.WinRateItem} returns this
|
|
8860
|
+
*/
|
|
8861
|
+
proto.bet.WinRateItem.prototype.clearGameId = function() {
|
|
8862
|
+
return jspb.Message.setField(this, 12, undefined);
|
|
8863
|
+
};
|
|
8864
|
+
|
|
8865
|
+
|
|
8866
|
+
/**
|
|
8867
|
+
* Returns whether this field is set.
|
|
8868
|
+
* @return {boolean}
|
|
8869
|
+
*/
|
|
8870
|
+
proto.bet.WinRateItem.prototype.hasGameId = function() {
|
|
8871
|
+
return jspb.Message.getField(this, 12) != null;
|
|
8872
|
+
};
|
|
8873
|
+
|
|
8874
|
+
|
|
8875
|
+
/**
|
|
8876
|
+
* optional string game_uuid = 13;
|
|
8877
|
+
* @return {string}
|
|
8878
|
+
*/
|
|
8879
|
+
proto.bet.WinRateItem.prototype.getGameUuid = function() {
|
|
8880
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
|
|
8881
|
+
};
|
|
8882
|
+
|
|
8883
|
+
|
|
8884
|
+
/**
|
|
8885
|
+
* @param {string} value
|
|
8886
|
+
* @return {!proto.bet.WinRateItem} returns this
|
|
8887
|
+
*/
|
|
8888
|
+
proto.bet.WinRateItem.prototype.setGameUuid = function(value) {
|
|
8889
|
+
return jspb.Message.setField(this, 13, value);
|
|
8890
|
+
};
|
|
8891
|
+
|
|
8892
|
+
|
|
8893
|
+
/**
|
|
8894
|
+
* Clears the field making it undefined.
|
|
8895
|
+
* @return {!proto.bet.WinRateItem} returns this
|
|
8896
|
+
*/
|
|
8897
|
+
proto.bet.WinRateItem.prototype.clearGameUuid = function() {
|
|
8898
|
+
return jspb.Message.setField(this, 13, undefined);
|
|
8899
|
+
};
|
|
8900
|
+
|
|
8901
|
+
|
|
8902
|
+
/**
|
|
8903
|
+
* Returns whether this field is set.
|
|
8904
|
+
* @return {boolean}
|
|
8905
|
+
*/
|
|
8906
|
+
proto.bet.WinRateItem.prototype.hasGameUuid = function() {
|
|
8907
|
+
return jspb.Message.getField(this, 13) != null;
|
|
8908
|
+
};
|
|
8909
|
+
|
|
8910
|
+
|
|
8911
|
+
/**
|
|
8912
|
+
* optional string created_at = 14;
|
|
8913
|
+
* @return {string}
|
|
8914
|
+
*/
|
|
8915
|
+
proto.bet.WinRateItem.prototype.getCreatedAt = function() {
|
|
8916
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
|
|
8917
|
+
};
|
|
8918
|
+
|
|
8919
|
+
|
|
8920
|
+
/**
|
|
8921
|
+
* @param {string} value
|
|
8922
|
+
* @return {!proto.bet.WinRateItem} returns this
|
|
8923
|
+
*/
|
|
8924
|
+
proto.bet.WinRateItem.prototype.setCreatedAt = function(value) {
|
|
8925
|
+
return jspb.Message.setField(this, 14, value);
|
|
8926
|
+
};
|
|
8927
|
+
|
|
8928
|
+
|
|
8929
|
+
/**
|
|
8930
|
+
* Clears the field making it undefined.
|
|
8931
|
+
* @return {!proto.bet.WinRateItem} returns this
|
|
8932
|
+
*/
|
|
8933
|
+
proto.bet.WinRateItem.prototype.clearCreatedAt = function() {
|
|
8934
|
+
return jspb.Message.setField(this, 14, undefined);
|
|
8935
|
+
};
|
|
8936
|
+
|
|
8937
|
+
|
|
8938
|
+
/**
|
|
8939
|
+
* Returns whether this field is set.
|
|
8940
|
+
* @return {boolean}
|
|
8941
|
+
*/
|
|
8942
|
+
proto.bet.WinRateItem.prototype.hasCreatedAt = function() {
|
|
8943
|
+
return jspb.Message.getField(this, 14) != null;
|
|
8944
|
+
};
|
|
8945
|
+
|
|
8946
|
+
|
|
8947
|
+
|
|
8948
|
+
|
|
8949
|
+
|
|
8950
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8951
|
+
/**
|
|
8952
|
+
* Creates an object representation of this proto.
|
|
8953
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8954
|
+
* Optional fields that are not set will be set to undefined.
|
|
8955
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8956
|
+
* For the list of reserved names please see:
|
|
8957
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8958
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8959
|
+
* JSPB instance for transitional soy proto support:
|
|
8960
|
+
* http://goto/soy-param-migration
|
|
8961
|
+
* @return {!Object}
|
|
8962
|
+
*/
|
|
8963
|
+
proto.bet.TopWinByMultiplierRequest.prototype.toObject = function(opt_includeInstance) {
|
|
8964
|
+
return proto.bet.TopWinByMultiplierRequest.toObject(opt_includeInstance, this);
|
|
8965
|
+
};
|
|
8966
|
+
|
|
8967
|
+
|
|
8968
|
+
/**
|
|
8969
|
+
* Static version of the {@see toObject} method.
|
|
8970
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8971
|
+
* the JSPB instance for transitional soy proto support:
|
|
8972
|
+
* http://goto/soy-param-migration
|
|
8973
|
+
* @param {!proto.bet.TopWinByMultiplierRequest} msg The msg instance to transform.
|
|
8974
|
+
* @return {!Object}
|
|
8975
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8976
|
+
*/
|
|
8977
|
+
proto.bet.TopWinByMultiplierRequest.toObject = function(includeInstance, msg) {
|
|
8978
|
+
var f, obj = {
|
|
8979
|
+
days: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
8980
|
+
};
|
|
8981
|
+
|
|
8982
|
+
if (includeInstance) {
|
|
8983
|
+
obj.$jspbMessageInstance = msg;
|
|
8984
|
+
}
|
|
8985
|
+
return obj;
|
|
8986
|
+
};
|
|
8987
|
+
}
|
|
8988
|
+
|
|
8989
|
+
|
|
8990
|
+
/**
|
|
8991
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8992
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8993
|
+
* @return {!proto.bet.TopWinByMultiplierRequest}
|
|
8994
|
+
*/
|
|
8995
|
+
proto.bet.TopWinByMultiplierRequest.deserializeBinary = function(bytes) {
|
|
8996
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8997
|
+
var msg = new proto.bet.TopWinByMultiplierRequest;
|
|
8998
|
+
return proto.bet.TopWinByMultiplierRequest.deserializeBinaryFromReader(msg, reader);
|
|
8999
|
+
};
|
|
9000
|
+
|
|
9001
|
+
|
|
9002
|
+
/**
|
|
9003
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
9004
|
+
* given reader into the given message object.
|
|
9005
|
+
* @param {!proto.bet.TopWinByMultiplierRequest} msg The message object to deserialize into.
|
|
9006
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
9007
|
+
* @return {!proto.bet.TopWinByMultiplierRequest}
|
|
9008
|
+
*/
|
|
9009
|
+
proto.bet.TopWinByMultiplierRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
9010
|
+
while (reader.nextField()) {
|
|
9011
|
+
if (reader.isEndGroup()) {
|
|
9012
|
+
break;
|
|
9013
|
+
}
|
|
9014
|
+
var field = reader.getFieldNumber();
|
|
9015
|
+
switch (field) {
|
|
9016
|
+
case 1:
|
|
9017
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
9018
|
+
msg.setDays(value);
|
|
9019
|
+
break;
|
|
9020
|
+
default:
|
|
9021
|
+
reader.skipField();
|
|
9022
|
+
break;
|
|
9023
|
+
}
|
|
9024
|
+
}
|
|
9025
|
+
return msg;
|
|
9026
|
+
};
|
|
9027
|
+
|
|
9028
|
+
|
|
9029
|
+
/**
|
|
9030
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
9031
|
+
* @return {!Uint8Array}
|
|
9032
|
+
*/
|
|
9033
|
+
proto.bet.TopWinByMultiplierRequest.prototype.serializeBinary = function() {
|
|
9034
|
+
var writer = new jspb.BinaryWriter();
|
|
9035
|
+
proto.bet.TopWinByMultiplierRequest.serializeBinaryToWriter(this, writer);
|
|
9036
|
+
return writer.getResultBuffer();
|
|
9037
|
+
};
|
|
9038
|
+
|
|
9039
|
+
|
|
9040
|
+
/**
|
|
9041
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
9042
|
+
* format), writing to the given BinaryWriter.
|
|
9043
|
+
* @param {!proto.bet.TopWinByMultiplierRequest} message
|
|
9044
|
+
* @param {!jspb.BinaryWriter} writer
|
|
9045
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
9046
|
+
*/
|
|
9047
|
+
proto.bet.TopWinByMultiplierRequest.serializeBinaryToWriter = function(message, writer) {
|
|
9048
|
+
var f = undefined;
|
|
9049
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
|
9050
|
+
if (f != null) {
|
|
9051
|
+
writer.writeInt32(
|
|
9052
|
+
1,
|
|
9053
|
+
f
|
|
9054
|
+
);
|
|
9055
|
+
}
|
|
9056
|
+
};
|
|
9057
|
+
|
|
9058
|
+
|
|
9059
|
+
/**
|
|
9060
|
+
* optional int32 days = 1;
|
|
9061
|
+
* @return {number}
|
|
9062
|
+
*/
|
|
9063
|
+
proto.bet.TopWinByMultiplierRequest.prototype.getDays = function() {
|
|
9064
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
9065
|
+
};
|
|
9066
|
+
|
|
9067
|
+
|
|
9068
|
+
/**
|
|
9069
|
+
* @param {number} value
|
|
9070
|
+
* @return {!proto.bet.TopWinByMultiplierRequest} returns this
|
|
9071
|
+
*/
|
|
9072
|
+
proto.bet.TopWinByMultiplierRequest.prototype.setDays = function(value) {
|
|
9073
|
+
return jspb.Message.setField(this, 1, value);
|
|
9074
|
+
};
|
|
9075
|
+
|
|
9076
|
+
|
|
9077
|
+
/**
|
|
9078
|
+
* Clears the field making it undefined.
|
|
9079
|
+
* @return {!proto.bet.TopWinByMultiplierRequest} returns this
|
|
9080
|
+
*/
|
|
9081
|
+
proto.bet.TopWinByMultiplierRequest.prototype.clearDays = function() {
|
|
9082
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
9083
|
+
};
|
|
9084
|
+
|
|
9085
|
+
|
|
9086
|
+
/**
|
|
9087
|
+
* Returns whether this field is set.
|
|
9088
|
+
* @return {boolean}
|
|
9089
|
+
*/
|
|
9090
|
+
proto.bet.TopWinByMultiplierRequest.prototype.hasDays = function() {
|
|
9091
|
+
return jspb.Message.getField(this, 1) != null;
|
|
9092
|
+
};
|
|
9093
|
+
|
|
9094
|
+
|
|
8464
9095
|
|
|
8465
9096
|
/**
|
|
8466
9097
|
* List of repeated fields within this message type.
|
package/cms/cms.proto
CHANGED
|
@@ -662,6 +662,7 @@ message CustomWidgetRow {
|
|
|
662
662
|
optional int32 priority_order = 2;
|
|
663
663
|
optional string config = 3; // JSON string; item-type-specific settings
|
|
664
664
|
optional string item_key = 4; // stable row id; backend-generated when missing
|
|
665
|
+
optional string data = 5; // JSON string; CMS-enriched payload, separate from config
|
|
665
666
|
}
|
|
666
667
|
message CustomWidgetItem {
|
|
667
668
|
optional int32 id = 1;
|
package/cms/cms_pb.js
CHANGED
|
@@ -27956,7 +27956,8 @@ proto.cms.CustomWidgetRow.toObject = function(includeInstance, msg) {
|
|
|
27956
27956
|
itemType: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
27957
27957
|
priorityOrder: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
27958
27958
|
config: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
27959
|
-
itemKey: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
27959
|
+
itemKey: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
27960
|
+
data: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
27960
27961
|
};
|
|
27961
27962
|
|
|
27962
27963
|
if (includeInstance) {
|
|
@@ -28009,6 +28010,10 @@ proto.cms.CustomWidgetRow.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
28009
28010
|
var value = /** @type {string} */ (reader.readString());
|
|
28010
28011
|
msg.setItemKey(value);
|
|
28011
28012
|
break;
|
|
28013
|
+
case 5:
|
|
28014
|
+
var value = /** @type {string} */ (reader.readString());
|
|
28015
|
+
msg.setData(value);
|
|
28016
|
+
break;
|
|
28012
28017
|
default:
|
|
28013
28018
|
reader.skipField();
|
|
28014
28019
|
break;
|
|
@@ -28066,6 +28071,13 @@ proto.cms.CustomWidgetRow.serializeBinaryToWriter = function(message, writer) {
|
|
|
28066
28071
|
f
|
|
28067
28072
|
);
|
|
28068
28073
|
}
|
|
28074
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
28075
|
+
if (f != null) {
|
|
28076
|
+
writer.writeString(
|
|
28077
|
+
5,
|
|
28078
|
+
f
|
|
28079
|
+
);
|
|
28080
|
+
}
|
|
28069
28081
|
};
|
|
28070
28082
|
|
|
28071
28083
|
|
|
@@ -28213,6 +28225,42 @@ proto.cms.CustomWidgetRow.prototype.hasItemKey = function() {
|
|
|
28213
28225
|
};
|
|
28214
28226
|
|
|
28215
28227
|
|
|
28228
|
+
/**
|
|
28229
|
+
* optional string data = 5;
|
|
28230
|
+
* @return {string}
|
|
28231
|
+
*/
|
|
28232
|
+
proto.cms.CustomWidgetRow.prototype.getData = function() {
|
|
28233
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
28234
|
+
};
|
|
28235
|
+
|
|
28236
|
+
|
|
28237
|
+
/**
|
|
28238
|
+
* @param {string} value
|
|
28239
|
+
* @return {!proto.cms.CustomWidgetRow} returns this
|
|
28240
|
+
*/
|
|
28241
|
+
proto.cms.CustomWidgetRow.prototype.setData = function(value) {
|
|
28242
|
+
return jspb.Message.setField(this, 5, value);
|
|
28243
|
+
};
|
|
28244
|
+
|
|
28245
|
+
|
|
28246
|
+
/**
|
|
28247
|
+
* Clears the field making it undefined.
|
|
28248
|
+
* @return {!proto.cms.CustomWidgetRow} returns this
|
|
28249
|
+
*/
|
|
28250
|
+
proto.cms.CustomWidgetRow.prototype.clearData = function() {
|
|
28251
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
28252
|
+
};
|
|
28253
|
+
|
|
28254
|
+
|
|
28255
|
+
/**
|
|
28256
|
+
* Returns whether this field is set.
|
|
28257
|
+
* @return {boolean}
|
|
28258
|
+
*/
|
|
28259
|
+
proto.cms.CustomWidgetRow.prototype.hasData = function() {
|
|
28260
|
+
return jspb.Message.getField(this, 5) != null;
|
|
28261
|
+
};
|
|
28262
|
+
|
|
28263
|
+
|
|
28216
28264
|
|
|
28217
28265
|
/**
|
|
28218
28266
|
* List of repeated fields within this message type.
|