protobuf-platform 1.0.78 → 1.0.80
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 +2 -0
- package/game/game_pb.js +304 -0
- package/package.json +1 -1
- package/user/user.proto +4 -0
- package/user/user_pb.js +194 -2
package/game/game.proto
CHANGED
@@ -242,6 +242,8 @@ message ProviderStatusResponse {
|
|
242
242
|
//Games Common
|
243
243
|
message ParseGamesRequest { string vendor = 1; }
|
244
244
|
message ParseGamesResponse { string data = 1; }
|
245
|
+
message IntegratorSettingsRequest { string route = 1; }
|
246
|
+
message IntegratorSettingsResponse { string data = 1; }
|
245
247
|
//Game CRUD
|
246
248
|
message GameItem {
|
247
249
|
optional int32 id = 1;
|
package/game/game_pb.js
CHANGED
@@ -55,6 +55,8 @@ goog.exportSymbol('proto.game.GetTagRequest', null, global);
|
|
55
55
|
goog.exportSymbol('proto.game.InitDemoGameSessionRequest', null, global);
|
56
56
|
goog.exportSymbol('proto.game.InitGameSessionRequest', null, global);
|
57
57
|
goog.exportSymbol('proto.game.InitGameSessionResponse', null, global);
|
58
|
+
goog.exportSymbol('proto.game.IntegratorSettingsRequest', null, global);
|
59
|
+
goog.exportSymbol('proto.game.IntegratorSettingsResponse', null, global);
|
58
60
|
goog.exportSymbol('proto.game.PaginationRequest', null, global);
|
59
61
|
goog.exportSymbol('proto.game.ParseGamesRequest', null, global);
|
60
62
|
goog.exportSymbol('proto.game.ParseGamesResponse', null, global);
|
@@ -878,6 +880,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
878
880
|
*/
|
879
881
|
proto.game.ParseGamesResponse.displayName = 'proto.game.ParseGamesResponse';
|
880
882
|
}
|
883
|
+
/**
|
884
|
+
* Generated by JsPbCodeGenerator.
|
885
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
886
|
+
* server response, or constructed directly in Javascript. The array is used
|
887
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
888
|
+
* If no data is provided, the constructed object will be empty, but still
|
889
|
+
* valid.
|
890
|
+
* @extends {jspb.Message}
|
891
|
+
* @constructor
|
892
|
+
*/
|
893
|
+
proto.game.IntegratorSettingsRequest = function(opt_data) {
|
894
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
895
|
+
};
|
896
|
+
goog.inherits(proto.game.IntegratorSettingsRequest, jspb.Message);
|
897
|
+
if (goog.DEBUG && !COMPILED) {
|
898
|
+
/**
|
899
|
+
* @public
|
900
|
+
* @override
|
901
|
+
*/
|
902
|
+
proto.game.IntegratorSettingsRequest.displayName = 'proto.game.IntegratorSettingsRequest';
|
903
|
+
}
|
904
|
+
/**
|
905
|
+
* Generated by JsPbCodeGenerator.
|
906
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
907
|
+
* server response, or constructed directly in Javascript. The array is used
|
908
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
909
|
+
* If no data is provided, the constructed object will be empty, but still
|
910
|
+
* valid.
|
911
|
+
* @extends {jspb.Message}
|
912
|
+
* @constructor
|
913
|
+
*/
|
914
|
+
proto.game.IntegratorSettingsResponse = function(opt_data) {
|
915
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
916
|
+
};
|
917
|
+
goog.inherits(proto.game.IntegratorSettingsResponse, jspb.Message);
|
918
|
+
if (goog.DEBUG && !COMPILED) {
|
919
|
+
/**
|
920
|
+
* @public
|
921
|
+
* @override
|
922
|
+
*/
|
923
|
+
proto.game.IntegratorSettingsResponse.displayName = 'proto.game.IntegratorSettingsResponse';
|
924
|
+
}
|
881
925
|
/**
|
882
926
|
* Generated by JsPbCodeGenerator.
|
883
927
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -10041,6 +10085,266 @@ proto.game.ParseGamesResponse.prototype.setData = function(value) {
|
|
10041
10085
|
|
10042
10086
|
|
10043
10087
|
|
10088
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
10089
|
+
/**
|
10090
|
+
* Creates an object representation of this proto.
|
10091
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
10092
|
+
* Optional fields that are not set will be set to undefined.
|
10093
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
10094
|
+
* For the list of reserved names please see:
|
10095
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
10096
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
10097
|
+
* JSPB instance for transitional soy proto support:
|
10098
|
+
* http://goto/soy-param-migration
|
10099
|
+
* @return {!Object}
|
10100
|
+
*/
|
10101
|
+
proto.game.IntegratorSettingsRequest.prototype.toObject = function(opt_includeInstance) {
|
10102
|
+
return proto.game.IntegratorSettingsRequest.toObject(opt_includeInstance, this);
|
10103
|
+
};
|
10104
|
+
|
10105
|
+
|
10106
|
+
/**
|
10107
|
+
* Static version of the {@see toObject} method.
|
10108
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
10109
|
+
* the JSPB instance for transitional soy proto support:
|
10110
|
+
* http://goto/soy-param-migration
|
10111
|
+
* @param {!proto.game.IntegratorSettingsRequest} msg The msg instance to transform.
|
10112
|
+
* @return {!Object}
|
10113
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
10114
|
+
*/
|
10115
|
+
proto.game.IntegratorSettingsRequest.toObject = function(includeInstance, msg) {
|
10116
|
+
var f, obj = {
|
10117
|
+
route: jspb.Message.getFieldWithDefault(msg, 1, "")
|
10118
|
+
};
|
10119
|
+
|
10120
|
+
if (includeInstance) {
|
10121
|
+
obj.$jspbMessageInstance = msg;
|
10122
|
+
}
|
10123
|
+
return obj;
|
10124
|
+
};
|
10125
|
+
}
|
10126
|
+
|
10127
|
+
|
10128
|
+
/**
|
10129
|
+
* Deserializes binary data (in protobuf wire format).
|
10130
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
10131
|
+
* @return {!proto.game.IntegratorSettingsRequest}
|
10132
|
+
*/
|
10133
|
+
proto.game.IntegratorSettingsRequest.deserializeBinary = function(bytes) {
|
10134
|
+
var reader = new jspb.BinaryReader(bytes);
|
10135
|
+
var msg = new proto.game.IntegratorSettingsRequest;
|
10136
|
+
return proto.game.IntegratorSettingsRequest.deserializeBinaryFromReader(msg, reader);
|
10137
|
+
};
|
10138
|
+
|
10139
|
+
|
10140
|
+
/**
|
10141
|
+
* Deserializes binary data (in protobuf wire format) from the
|
10142
|
+
* given reader into the given message object.
|
10143
|
+
* @param {!proto.game.IntegratorSettingsRequest} msg The message object to deserialize into.
|
10144
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
10145
|
+
* @return {!proto.game.IntegratorSettingsRequest}
|
10146
|
+
*/
|
10147
|
+
proto.game.IntegratorSettingsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
10148
|
+
while (reader.nextField()) {
|
10149
|
+
if (reader.isEndGroup()) {
|
10150
|
+
break;
|
10151
|
+
}
|
10152
|
+
var field = reader.getFieldNumber();
|
10153
|
+
switch (field) {
|
10154
|
+
case 1:
|
10155
|
+
var value = /** @type {string} */ (reader.readString());
|
10156
|
+
msg.setRoute(value);
|
10157
|
+
break;
|
10158
|
+
default:
|
10159
|
+
reader.skipField();
|
10160
|
+
break;
|
10161
|
+
}
|
10162
|
+
}
|
10163
|
+
return msg;
|
10164
|
+
};
|
10165
|
+
|
10166
|
+
|
10167
|
+
/**
|
10168
|
+
* Serializes the message to binary data (in protobuf wire format).
|
10169
|
+
* @return {!Uint8Array}
|
10170
|
+
*/
|
10171
|
+
proto.game.IntegratorSettingsRequest.prototype.serializeBinary = function() {
|
10172
|
+
var writer = new jspb.BinaryWriter();
|
10173
|
+
proto.game.IntegratorSettingsRequest.serializeBinaryToWriter(this, writer);
|
10174
|
+
return writer.getResultBuffer();
|
10175
|
+
};
|
10176
|
+
|
10177
|
+
|
10178
|
+
/**
|
10179
|
+
* Serializes the given message to binary data (in protobuf wire
|
10180
|
+
* format), writing to the given BinaryWriter.
|
10181
|
+
* @param {!proto.game.IntegratorSettingsRequest} message
|
10182
|
+
* @param {!jspb.BinaryWriter} writer
|
10183
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
10184
|
+
*/
|
10185
|
+
proto.game.IntegratorSettingsRequest.serializeBinaryToWriter = function(message, writer) {
|
10186
|
+
var f = undefined;
|
10187
|
+
f = message.getRoute();
|
10188
|
+
if (f.length > 0) {
|
10189
|
+
writer.writeString(
|
10190
|
+
1,
|
10191
|
+
f
|
10192
|
+
);
|
10193
|
+
}
|
10194
|
+
};
|
10195
|
+
|
10196
|
+
|
10197
|
+
/**
|
10198
|
+
* optional string route = 1;
|
10199
|
+
* @return {string}
|
10200
|
+
*/
|
10201
|
+
proto.game.IntegratorSettingsRequest.prototype.getRoute = function() {
|
10202
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
10203
|
+
};
|
10204
|
+
|
10205
|
+
|
10206
|
+
/**
|
10207
|
+
* @param {string} value
|
10208
|
+
* @return {!proto.game.IntegratorSettingsRequest} returns this
|
10209
|
+
*/
|
10210
|
+
proto.game.IntegratorSettingsRequest.prototype.setRoute = function(value) {
|
10211
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
10212
|
+
};
|
10213
|
+
|
10214
|
+
|
10215
|
+
|
10216
|
+
|
10217
|
+
|
10218
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
10219
|
+
/**
|
10220
|
+
* Creates an object representation of this proto.
|
10221
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
10222
|
+
* Optional fields that are not set will be set to undefined.
|
10223
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
10224
|
+
* For the list of reserved names please see:
|
10225
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
10226
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
10227
|
+
* JSPB instance for transitional soy proto support:
|
10228
|
+
* http://goto/soy-param-migration
|
10229
|
+
* @return {!Object}
|
10230
|
+
*/
|
10231
|
+
proto.game.IntegratorSettingsResponse.prototype.toObject = function(opt_includeInstance) {
|
10232
|
+
return proto.game.IntegratorSettingsResponse.toObject(opt_includeInstance, this);
|
10233
|
+
};
|
10234
|
+
|
10235
|
+
|
10236
|
+
/**
|
10237
|
+
* Static version of the {@see toObject} method.
|
10238
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
10239
|
+
* the JSPB instance for transitional soy proto support:
|
10240
|
+
* http://goto/soy-param-migration
|
10241
|
+
* @param {!proto.game.IntegratorSettingsResponse} msg The msg instance to transform.
|
10242
|
+
* @return {!Object}
|
10243
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
10244
|
+
*/
|
10245
|
+
proto.game.IntegratorSettingsResponse.toObject = function(includeInstance, msg) {
|
10246
|
+
var f, obj = {
|
10247
|
+
data: jspb.Message.getFieldWithDefault(msg, 1, "")
|
10248
|
+
};
|
10249
|
+
|
10250
|
+
if (includeInstance) {
|
10251
|
+
obj.$jspbMessageInstance = msg;
|
10252
|
+
}
|
10253
|
+
return obj;
|
10254
|
+
};
|
10255
|
+
}
|
10256
|
+
|
10257
|
+
|
10258
|
+
/**
|
10259
|
+
* Deserializes binary data (in protobuf wire format).
|
10260
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
10261
|
+
* @return {!proto.game.IntegratorSettingsResponse}
|
10262
|
+
*/
|
10263
|
+
proto.game.IntegratorSettingsResponse.deserializeBinary = function(bytes) {
|
10264
|
+
var reader = new jspb.BinaryReader(bytes);
|
10265
|
+
var msg = new proto.game.IntegratorSettingsResponse;
|
10266
|
+
return proto.game.IntegratorSettingsResponse.deserializeBinaryFromReader(msg, reader);
|
10267
|
+
};
|
10268
|
+
|
10269
|
+
|
10270
|
+
/**
|
10271
|
+
* Deserializes binary data (in protobuf wire format) from the
|
10272
|
+
* given reader into the given message object.
|
10273
|
+
* @param {!proto.game.IntegratorSettingsResponse} msg The message object to deserialize into.
|
10274
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
10275
|
+
* @return {!proto.game.IntegratorSettingsResponse}
|
10276
|
+
*/
|
10277
|
+
proto.game.IntegratorSettingsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
10278
|
+
while (reader.nextField()) {
|
10279
|
+
if (reader.isEndGroup()) {
|
10280
|
+
break;
|
10281
|
+
}
|
10282
|
+
var field = reader.getFieldNumber();
|
10283
|
+
switch (field) {
|
10284
|
+
case 1:
|
10285
|
+
var value = /** @type {string} */ (reader.readString());
|
10286
|
+
msg.setData(value);
|
10287
|
+
break;
|
10288
|
+
default:
|
10289
|
+
reader.skipField();
|
10290
|
+
break;
|
10291
|
+
}
|
10292
|
+
}
|
10293
|
+
return msg;
|
10294
|
+
};
|
10295
|
+
|
10296
|
+
|
10297
|
+
/**
|
10298
|
+
* Serializes the message to binary data (in protobuf wire format).
|
10299
|
+
* @return {!Uint8Array}
|
10300
|
+
*/
|
10301
|
+
proto.game.IntegratorSettingsResponse.prototype.serializeBinary = function() {
|
10302
|
+
var writer = new jspb.BinaryWriter();
|
10303
|
+
proto.game.IntegratorSettingsResponse.serializeBinaryToWriter(this, writer);
|
10304
|
+
return writer.getResultBuffer();
|
10305
|
+
};
|
10306
|
+
|
10307
|
+
|
10308
|
+
/**
|
10309
|
+
* Serializes the given message to binary data (in protobuf wire
|
10310
|
+
* format), writing to the given BinaryWriter.
|
10311
|
+
* @param {!proto.game.IntegratorSettingsResponse} message
|
10312
|
+
* @param {!jspb.BinaryWriter} writer
|
10313
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
10314
|
+
*/
|
10315
|
+
proto.game.IntegratorSettingsResponse.serializeBinaryToWriter = function(message, writer) {
|
10316
|
+
var f = undefined;
|
10317
|
+
f = message.getData();
|
10318
|
+
if (f.length > 0) {
|
10319
|
+
writer.writeString(
|
10320
|
+
1,
|
10321
|
+
f
|
10322
|
+
);
|
10323
|
+
}
|
10324
|
+
};
|
10325
|
+
|
10326
|
+
|
10327
|
+
/**
|
10328
|
+
* optional string data = 1;
|
10329
|
+
* @return {string}
|
10330
|
+
*/
|
10331
|
+
proto.game.IntegratorSettingsResponse.prototype.getData = function() {
|
10332
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
10333
|
+
};
|
10334
|
+
|
10335
|
+
|
10336
|
+
/**
|
10337
|
+
* @param {string} value
|
10338
|
+
* @return {!proto.game.IntegratorSettingsResponse} returns this
|
10339
|
+
*/
|
10340
|
+
proto.game.IntegratorSettingsResponse.prototype.setData = function(value) {
|
10341
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
10342
|
+
};
|
10343
|
+
|
10344
|
+
|
10345
|
+
|
10346
|
+
|
10347
|
+
|
10044
10348
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
10045
10349
|
/**
|
10046
10350
|
* Creates an object representation of this proto.
|
package/package.json
CHANGED
package/user/user.proto
CHANGED
@@ -47,6 +47,7 @@ message LoginRequest {
|
|
47
47
|
}
|
48
48
|
message UserDataRequest {
|
49
49
|
string public_id = 1;
|
50
|
+
optional string requested_area = 2;
|
50
51
|
}
|
51
52
|
message UserDataResponse {
|
52
53
|
int32 id = 1;
|
@@ -60,6 +61,9 @@ message UserDataResponse {
|
|
60
61
|
optional string locale = 9;
|
61
62
|
optional string permissions = 10;
|
62
63
|
optional string role_name = 11;
|
64
|
+
optional float balance_real = 12;
|
65
|
+
optional float balance_bonus = 13;
|
66
|
+
optional string balance_type = 14;
|
63
67
|
}
|
64
68
|
//Permissions
|
65
69
|
message RolePermissionRequest {
|
package/user/user_pb.js
CHANGED
@@ -1749,7 +1749,8 @@ proto.user.UserDataRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1749
1749
|
*/
|
1750
1750
|
proto.user.UserDataRequest.toObject = function(includeInstance, msg) {
|
1751
1751
|
var f, obj = {
|
1752
|
-
publicId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
1752
|
+
publicId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
1753
|
+
requestedArea: jspb.Message.getFieldWithDefault(msg, 2, "")
|
1753
1754
|
};
|
1754
1755
|
|
1755
1756
|
if (includeInstance) {
|
@@ -1790,6 +1791,10 @@ proto.user.UserDataRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1790
1791
|
var value = /** @type {string} */ (reader.readString());
|
1791
1792
|
msg.setPublicId(value);
|
1792
1793
|
break;
|
1794
|
+
case 2:
|
1795
|
+
var value = /** @type {string} */ (reader.readString());
|
1796
|
+
msg.setRequestedArea(value);
|
1797
|
+
break;
|
1793
1798
|
default:
|
1794
1799
|
reader.skipField();
|
1795
1800
|
break;
|
@@ -1826,6 +1831,13 @@ proto.user.UserDataRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1826
1831
|
f
|
1827
1832
|
);
|
1828
1833
|
}
|
1834
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
1835
|
+
if (f != null) {
|
1836
|
+
writer.writeString(
|
1837
|
+
2,
|
1838
|
+
f
|
1839
|
+
);
|
1840
|
+
}
|
1829
1841
|
};
|
1830
1842
|
|
1831
1843
|
|
@@ -1847,6 +1859,42 @@ proto.user.UserDataRequest.prototype.setPublicId = function(value) {
|
|
1847
1859
|
};
|
1848
1860
|
|
1849
1861
|
|
1862
|
+
/**
|
1863
|
+
* optional string requested_area = 2;
|
1864
|
+
* @return {string}
|
1865
|
+
*/
|
1866
|
+
proto.user.UserDataRequest.prototype.getRequestedArea = function() {
|
1867
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
1868
|
+
};
|
1869
|
+
|
1870
|
+
|
1871
|
+
/**
|
1872
|
+
* @param {string} value
|
1873
|
+
* @return {!proto.user.UserDataRequest} returns this
|
1874
|
+
*/
|
1875
|
+
proto.user.UserDataRequest.prototype.setRequestedArea = function(value) {
|
1876
|
+
return jspb.Message.setField(this, 2, value);
|
1877
|
+
};
|
1878
|
+
|
1879
|
+
|
1880
|
+
/**
|
1881
|
+
* Clears the field making it undefined.
|
1882
|
+
* @return {!proto.user.UserDataRequest} returns this
|
1883
|
+
*/
|
1884
|
+
proto.user.UserDataRequest.prototype.clearRequestedArea = function() {
|
1885
|
+
return jspb.Message.setField(this, 2, undefined);
|
1886
|
+
};
|
1887
|
+
|
1888
|
+
|
1889
|
+
/**
|
1890
|
+
* Returns whether this field is set.
|
1891
|
+
* @return {boolean}
|
1892
|
+
*/
|
1893
|
+
proto.user.UserDataRequest.prototype.hasRequestedArea = function() {
|
1894
|
+
return jspb.Message.getField(this, 2) != null;
|
1895
|
+
};
|
1896
|
+
|
1897
|
+
|
1850
1898
|
|
1851
1899
|
|
1852
1900
|
|
@@ -1889,7 +1937,10 @@ proto.user.UserDataResponse.toObject = function(includeInstance, msg) {
|
|
1889
1937
|
birthday: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
1890
1938
|
locale: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
1891
1939
|
permissions: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
1892
|
-
roleName: jspb.Message.getFieldWithDefault(msg, 11, "")
|
1940
|
+
roleName: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
1941
|
+
balanceReal: jspb.Message.getFloatingPointFieldWithDefault(msg, 12, 0.0),
|
1942
|
+
balanceBonus: jspb.Message.getFloatingPointFieldWithDefault(msg, 13, 0.0),
|
1943
|
+
balanceType: jspb.Message.getFieldWithDefault(msg, 14, "")
|
1893
1944
|
};
|
1894
1945
|
|
1895
1946
|
if (includeInstance) {
|
@@ -1970,6 +2021,18 @@ proto.user.UserDataResponse.deserializeBinaryFromReader = function(msg, reader)
|
|
1970
2021
|
var value = /** @type {string} */ (reader.readString());
|
1971
2022
|
msg.setRoleName(value);
|
1972
2023
|
break;
|
2024
|
+
case 12:
|
2025
|
+
var value = /** @type {number} */ (reader.readFloat());
|
2026
|
+
msg.setBalanceReal(value);
|
2027
|
+
break;
|
2028
|
+
case 13:
|
2029
|
+
var value = /** @type {number} */ (reader.readFloat());
|
2030
|
+
msg.setBalanceBonus(value);
|
2031
|
+
break;
|
2032
|
+
case 14:
|
2033
|
+
var value = /** @type {string} */ (reader.readString());
|
2034
|
+
msg.setBalanceType(value);
|
2035
|
+
break;
|
1973
2036
|
default:
|
1974
2037
|
reader.skipField();
|
1975
2038
|
break;
|
@@ -2076,6 +2139,27 @@ proto.user.UserDataResponse.serializeBinaryToWriter = function(message, writer)
|
|
2076
2139
|
f
|
2077
2140
|
);
|
2078
2141
|
}
|
2142
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 12));
|
2143
|
+
if (f != null) {
|
2144
|
+
writer.writeFloat(
|
2145
|
+
12,
|
2146
|
+
f
|
2147
|
+
);
|
2148
|
+
}
|
2149
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 13));
|
2150
|
+
if (f != null) {
|
2151
|
+
writer.writeFloat(
|
2152
|
+
13,
|
2153
|
+
f
|
2154
|
+
);
|
2155
|
+
}
|
2156
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 14));
|
2157
|
+
if (f != null) {
|
2158
|
+
writer.writeString(
|
2159
|
+
14,
|
2160
|
+
f
|
2161
|
+
);
|
2162
|
+
}
|
2079
2163
|
};
|
2080
2164
|
|
2081
2165
|
|
@@ -2421,6 +2505,114 @@ proto.user.UserDataResponse.prototype.hasRoleName = function() {
|
|
2421
2505
|
};
|
2422
2506
|
|
2423
2507
|
|
2508
|
+
/**
|
2509
|
+
* optional float balance_real = 12;
|
2510
|
+
* @return {number}
|
2511
|
+
*/
|
2512
|
+
proto.user.UserDataResponse.prototype.getBalanceReal = function() {
|
2513
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 12, 0.0));
|
2514
|
+
};
|
2515
|
+
|
2516
|
+
|
2517
|
+
/**
|
2518
|
+
* @param {number} value
|
2519
|
+
* @return {!proto.user.UserDataResponse} returns this
|
2520
|
+
*/
|
2521
|
+
proto.user.UserDataResponse.prototype.setBalanceReal = function(value) {
|
2522
|
+
return jspb.Message.setField(this, 12, value);
|
2523
|
+
};
|
2524
|
+
|
2525
|
+
|
2526
|
+
/**
|
2527
|
+
* Clears the field making it undefined.
|
2528
|
+
* @return {!proto.user.UserDataResponse} returns this
|
2529
|
+
*/
|
2530
|
+
proto.user.UserDataResponse.prototype.clearBalanceReal = function() {
|
2531
|
+
return jspb.Message.setField(this, 12, undefined);
|
2532
|
+
};
|
2533
|
+
|
2534
|
+
|
2535
|
+
/**
|
2536
|
+
* Returns whether this field is set.
|
2537
|
+
* @return {boolean}
|
2538
|
+
*/
|
2539
|
+
proto.user.UserDataResponse.prototype.hasBalanceReal = function() {
|
2540
|
+
return jspb.Message.getField(this, 12) != null;
|
2541
|
+
};
|
2542
|
+
|
2543
|
+
|
2544
|
+
/**
|
2545
|
+
* optional float balance_bonus = 13;
|
2546
|
+
* @return {number}
|
2547
|
+
*/
|
2548
|
+
proto.user.UserDataResponse.prototype.getBalanceBonus = function() {
|
2549
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 13, 0.0));
|
2550
|
+
};
|
2551
|
+
|
2552
|
+
|
2553
|
+
/**
|
2554
|
+
* @param {number} value
|
2555
|
+
* @return {!proto.user.UserDataResponse} returns this
|
2556
|
+
*/
|
2557
|
+
proto.user.UserDataResponse.prototype.setBalanceBonus = function(value) {
|
2558
|
+
return jspb.Message.setField(this, 13, value);
|
2559
|
+
};
|
2560
|
+
|
2561
|
+
|
2562
|
+
/**
|
2563
|
+
* Clears the field making it undefined.
|
2564
|
+
* @return {!proto.user.UserDataResponse} returns this
|
2565
|
+
*/
|
2566
|
+
proto.user.UserDataResponse.prototype.clearBalanceBonus = function() {
|
2567
|
+
return jspb.Message.setField(this, 13, undefined);
|
2568
|
+
};
|
2569
|
+
|
2570
|
+
|
2571
|
+
/**
|
2572
|
+
* Returns whether this field is set.
|
2573
|
+
* @return {boolean}
|
2574
|
+
*/
|
2575
|
+
proto.user.UserDataResponse.prototype.hasBalanceBonus = function() {
|
2576
|
+
return jspb.Message.getField(this, 13) != null;
|
2577
|
+
};
|
2578
|
+
|
2579
|
+
|
2580
|
+
/**
|
2581
|
+
* optional string balance_type = 14;
|
2582
|
+
* @return {string}
|
2583
|
+
*/
|
2584
|
+
proto.user.UserDataResponse.prototype.getBalanceType = function() {
|
2585
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
|
2586
|
+
};
|
2587
|
+
|
2588
|
+
|
2589
|
+
/**
|
2590
|
+
* @param {string} value
|
2591
|
+
* @return {!proto.user.UserDataResponse} returns this
|
2592
|
+
*/
|
2593
|
+
proto.user.UserDataResponse.prototype.setBalanceType = function(value) {
|
2594
|
+
return jspb.Message.setField(this, 14, value);
|
2595
|
+
};
|
2596
|
+
|
2597
|
+
|
2598
|
+
/**
|
2599
|
+
* Clears the field making it undefined.
|
2600
|
+
* @return {!proto.user.UserDataResponse} returns this
|
2601
|
+
*/
|
2602
|
+
proto.user.UserDataResponse.prototype.clearBalanceType = function() {
|
2603
|
+
return jspb.Message.setField(this, 14, undefined);
|
2604
|
+
};
|
2605
|
+
|
2606
|
+
|
2607
|
+
/**
|
2608
|
+
* Returns whether this field is set.
|
2609
|
+
* @return {boolean}
|
2610
|
+
*/
|
2611
|
+
proto.user.UserDataResponse.prototype.hasBalanceType = function() {
|
2612
|
+
return jspb.Message.getField(this, 14) != null;
|
2613
|
+
};
|
2614
|
+
|
2615
|
+
|
2424
2616
|
|
2425
2617
|
|
2426
2618
|
|