protobuf-platform 1.0.155 → 1.0.157
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 +21 -1
- package/game/game_grpc_pb.js +33 -0
- package/game/game_pb.js +1049 -129
- package/package.json +1 -1
package/game/game_pb.js
CHANGED
@@ -43,10 +43,14 @@ goog.exportSymbol('proto.game.FreeSpinCampaignResponse', null, global);
|
|
43
43
|
goog.exportSymbol('proto.game.FreeSpinSettingsRequest', null, global);
|
44
44
|
goog.exportSymbol('proto.game.FreeSpinSettingsResponse', null, global);
|
45
45
|
goog.exportSymbol('proto.game.FreeSpinStatusRequest', null, global);
|
46
|
+
goog.exportSymbol('proto.game.GameGeo', null, global);
|
46
47
|
goog.exportSymbol('proto.game.GameItem', null, global);
|
47
48
|
goog.exportSymbol('proto.game.GameItemRequest', null, global);
|
48
49
|
goog.exportSymbol('proto.game.GameItemsResponse', null, global);
|
49
50
|
goog.exportSymbol('proto.game.GamePoorItemsResponse', null, global);
|
51
|
+
goog.exportSymbol('proto.game.GameRelationItem', null, global);
|
52
|
+
goog.exportSymbol('proto.game.GameRelationsRequest', null, global);
|
53
|
+
goog.exportSymbol('proto.game.GameRelationsResponse', null, global);
|
50
54
|
goog.exportSymbol('proto.game.GameRequest', null, global);
|
51
55
|
goog.exportSymbol('proto.game.GameRequest.RequestCase', null, global);
|
52
56
|
goog.exportSymbol('proto.game.GameResponse', null, global);
|
@@ -1089,6 +1093,90 @@ if (goog.DEBUG && !COMPILED) {
|
|
1089
1093
|
*/
|
1090
1094
|
proto.game.GetGameRequest.displayName = 'proto.game.GetGameRequest';
|
1091
1095
|
}
|
1096
|
+
/**
|
1097
|
+
* Generated by JsPbCodeGenerator.
|
1098
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
1099
|
+
* server response, or constructed directly in Javascript. The array is used
|
1100
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
1101
|
+
* If no data is provided, the constructed object will be empty, but still
|
1102
|
+
* valid.
|
1103
|
+
* @extends {jspb.Message}
|
1104
|
+
* @constructor
|
1105
|
+
*/
|
1106
|
+
proto.game.GameRelationsRequest = function(opt_data) {
|
1107
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
1108
|
+
};
|
1109
|
+
goog.inherits(proto.game.GameRelationsRequest, jspb.Message);
|
1110
|
+
if (goog.DEBUG && !COMPILED) {
|
1111
|
+
/**
|
1112
|
+
* @public
|
1113
|
+
* @override
|
1114
|
+
*/
|
1115
|
+
proto.game.GameRelationsRequest.displayName = 'proto.game.GameRelationsRequest';
|
1116
|
+
}
|
1117
|
+
/**
|
1118
|
+
* Generated by JsPbCodeGenerator.
|
1119
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
1120
|
+
* server response, or constructed directly in Javascript. The array is used
|
1121
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
1122
|
+
* If no data is provided, the constructed object will be empty, but still
|
1123
|
+
* valid.
|
1124
|
+
* @extends {jspb.Message}
|
1125
|
+
* @constructor
|
1126
|
+
*/
|
1127
|
+
proto.game.GameRelationsResponse = function(opt_data) {
|
1128
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.game.GameRelationsResponse.repeatedFields_, null);
|
1129
|
+
};
|
1130
|
+
goog.inherits(proto.game.GameRelationsResponse, jspb.Message);
|
1131
|
+
if (goog.DEBUG && !COMPILED) {
|
1132
|
+
/**
|
1133
|
+
* @public
|
1134
|
+
* @override
|
1135
|
+
*/
|
1136
|
+
proto.game.GameRelationsResponse.displayName = 'proto.game.GameRelationsResponse';
|
1137
|
+
}
|
1138
|
+
/**
|
1139
|
+
* Generated by JsPbCodeGenerator.
|
1140
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
1141
|
+
* server response, or constructed directly in Javascript. The array is used
|
1142
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
1143
|
+
* If no data is provided, the constructed object will be empty, but still
|
1144
|
+
* valid.
|
1145
|
+
* @extends {jspb.Message}
|
1146
|
+
* @constructor
|
1147
|
+
*/
|
1148
|
+
proto.game.GameRelationItem = function(opt_data) {
|
1149
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.game.GameRelationItem.repeatedFields_, null);
|
1150
|
+
};
|
1151
|
+
goog.inherits(proto.game.GameRelationItem, jspb.Message);
|
1152
|
+
if (goog.DEBUG && !COMPILED) {
|
1153
|
+
/**
|
1154
|
+
* @public
|
1155
|
+
* @override
|
1156
|
+
*/
|
1157
|
+
proto.game.GameRelationItem.displayName = 'proto.game.GameRelationItem';
|
1158
|
+
}
|
1159
|
+
/**
|
1160
|
+
* Generated by JsPbCodeGenerator.
|
1161
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
1162
|
+
* server response, or constructed directly in Javascript. The array is used
|
1163
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
1164
|
+
* If no data is provided, the constructed object will be empty, but still
|
1165
|
+
* valid.
|
1166
|
+
* @extends {jspb.Message}
|
1167
|
+
* @constructor
|
1168
|
+
*/
|
1169
|
+
proto.game.GameGeo = function(opt_data) {
|
1170
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
1171
|
+
};
|
1172
|
+
goog.inherits(proto.game.GameGeo, jspb.Message);
|
1173
|
+
if (goog.DEBUG && !COMPILED) {
|
1174
|
+
/**
|
1175
|
+
* @public
|
1176
|
+
* @override
|
1177
|
+
*/
|
1178
|
+
proto.game.GameGeo.displayName = 'proto.game.GameGeo';
|
1179
|
+
}
|
1092
1180
|
/**
|
1093
1181
|
* Generated by JsPbCodeGenerator.
|
1094
1182
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -14127,8 +14215,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
14127
14215
|
* http://goto/soy-param-migration
|
14128
14216
|
* @return {!Object}
|
14129
14217
|
*/
|
14130
|
-
proto.game.
|
14131
|
-
return proto.game.
|
14218
|
+
proto.game.GameRelationsRequest.prototype.toObject = function(opt_includeInstance) {
|
14219
|
+
return proto.game.GameRelationsRequest.toObject(opt_includeInstance, this);
|
14132
14220
|
};
|
14133
14221
|
|
14134
14222
|
|
@@ -14137,13 +14225,14 @@ proto.game.GameResponse.prototype.toObject = function(opt_includeInstance) {
|
|
14137
14225
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
14138
14226
|
* the JSPB instance for transitional soy proto support:
|
14139
14227
|
* http://goto/soy-param-migration
|
14140
|
-
* @param {!proto.game.
|
14228
|
+
* @param {!proto.game.GameRelationsRequest} msg The msg instance to transform.
|
14141
14229
|
* @return {!Object}
|
14142
14230
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
14143
14231
|
*/
|
14144
|
-
proto.game.
|
14232
|
+
proto.game.GameRelationsRequest.toObject = function(includeInstance, msg) {
|
14145
14233
|
var f, obj = {
|
14146
|
-
|
14234
|
+
gameId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
14235
|
+
instanceType: jspb.Message.getFieldWithDefault(msg, 2, "")
|
14147
14236
|
};
|
14148
14237
|
|
14149
14238
|
if (includeInstance) {
|
@@ -14157,23 +14246,23 @@ proto.game.GameResponse.toObject = function(includeInstance, msg) {
|
|
14157
14246
|
/**
|
14158
14247
|
* Deserializes binary data (in protobuf wire format).
|
14159
14248
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
14160
|
-
* @return {!proto.game.
|
14249
|
+
* @return {!proto.game.GameRelationsRequest}
|
14161
14250
|
*/
|
14162
|
-
proto.game.
|
14251
|
+
proto.game.GameRelationsRequest.deserializeBinary = function(bytes) {
|
14163
14252
|
var reader = new jspb.BinaryReader(bytes);
|
14164
|
-
var msg = new proto.game.
|
14165
|
-
return proto.game.
|
14253
|
+
var msg = new proto.game.GameRelationsRequest;
|
14254
|
+
return proto.game.GameRelationsRequest.deserializeBinaryFromReader(msg, reader);
|
14166
14255
|
};
|
14167
14256
|
|
14168
14257
|
|
14169
14258
|
/**
|
14170
14259
|
* Deserializes binary data (in protobuf wire format) from the
|
14171
14260
|
* given reader into the given message object.
|
14172
|
-
* @param {!proto.game.
|
14261
|
+
* @param {!proto.game.GameRelationsRequest} msg The message object to deserialize into.
|
14173
14262
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
14174
|
-
* @return {!proto.game.
|
14263
|
+
* @return {!proto.game.GameRelationsRequest}
|
14175
14264
|
*/
|
14176
|
-
proto.game.
|
14265
|
+
proto.game.GameRelationsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
14177
14266
|
while (reader.nextField()) {
|
14178
14267
|
if (reader.isEndGroup()) {
|
14179
14268
|
break;
|
@@ -14181,9 +14270,12 @@ proto.game.GameResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
14181
14270
|
var field = reader.getFieldNumber();
|
14182
14271
|
switch (field) {
|
14183
14272
|
case 1:
|
14184
|
-
var value =
|
14185
|
-
|
14186
|
-
|
14273
|
+
var value = /** @type {number} */ (reader.readInt32());
|
14274
|
+
msg.setGameId(value);
|
14275
|
+
break;
|
14276
|
+
case 2:
|
14277
|
+
var value = /** @type {string} */ (reader.readString());
|
14278
|
+
msg.setInstanceType(value);
|
14187
14279
|
break;
|
14188
14280
|
default:
|
14189
14281
|
reader.skipField();
|
@@ -14198,9 +14290,9 @@ proto.game.GameResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
14198
14290
|
* Serializes the message to binary data (in protobuf wire format).
|
14199
14291
|
* @return {!Uint8Array}
|
14200
14292
|
*/
|
14201
|
-
proto.game.
|
14293
|
+
proto.game.GameRelationsRequest.prototype.serializeBinary = function() {
|
14202
14294
|
var writer = new jspb.BinaryWriter();
|
14203
|
-
proto.game.
|
14295
|
+
proto.game.GameRelationsRequest.serializeBinaryToWriter(this, writer);
|
14204
14296
|
return writer.getResultBuffer();
|
14205
14297
|
};
|
14206
14298
|
|
@@ -14208,57 +14300,62 @@ proto.game.GameResponse.prototype.serializeBinary = function() {
|
|
14208
14300
|
/**
|
14209
14301
|
* Serializes the given message to binary data (in protobuf wire
|
14210
14302
|
* format), writing to the given BinaryWriter.
|
14211
|
-
* @param {!proto.game.
|
14303
|
+
* @param {!proto.game.GameRelationsRequest} message
|
14212
14304
|
* @param {!jspb.BinaryWriter} writer
|
14213
14305
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
14214
14306
|
*/
|
14215
|
-
proto.game.
|
14307
|
+
proto.game.GameRelationsRequest.serializeBinaryToWriter = function(message, writer) {
|
14216
14308
|
var f = undefined;
|
14217
|
-
f = message.
|
14218
|
-
if (f
|
14219
|
-
writer.
|
14309
|
+
f = message.getGameId();
|
14310
|
+
if (f !== 0) {
|
14311
|
+
writer.writeInt32(
|
14220
14312
|
1,
|
14221
|
-
f
|
14222
|
-
|
14313
|
+
f
|
14314
|
+
);
|
14315
|
+
}
|
14316
|
+
f = message.getInstanceType();
|
14317
|
+
if (f.length > 0) {
|
14318
|
+
writer.writeString(
|
14319
|
+
2,
|
14320
|
+
f
|
14223
14321
|
);
|
14224
14322
|
}
|
14225
14323
|
};
|
14226
14324
|
|
14227
14325
|
|
14228
14326
|
/**
|
14229
|
-
* optional
|
14230
|
-
* @return {
|
14327
|
+
* optional int32 game_id = 1;
|
14328
|
+
* @return {number}
|
14231
14329
|
*/
|
14232
|
-
proto.game.
|
14233
|
-
return /** @type{
|
14234
|
-
jspb.Message.getWrapperField(this, proto.game.GameItem, 1));
|
14330
|
+
proto.game.GameRelationsRequest.prototype.getGameId = function() {
|
14331
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
14235
14332
|
};
|
14236
14333
|
|
14237
14334
|
|
14238
14335
|
/**
|
14239
|
-
* @param {
|
14240
|
-
* @return {!proto.game.
|
14241
|
-
*/
|
14242
|
-
proto.game.
|
14243
|
-
return jspb.Message.
|
14336
|
+
* @param {number} value
|
14337
|
+
* @return {!proto.game.GameRelationsRequest} returns this
|
14338
|
+
*/
|
14339
|
+
proto.game.GameRelationsRequest.prototype.setGameId = function(value) {
|
14340
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
14244
14341
|
};
|
14245
14342
|
|
14246
14343
|
|
14247
14344
|
/**
|
14248
|
-
*
|
14249
|
-
* @return {
|
14345
|
+
* optional string instance_type = 2;
|
14346
|
+
* @return {string}
|
14250
14347
|
*/
|
14251
|
-
proto.game.
|
14252
|
-
return
|
14348
|
+
proto.game.GameRelationsRequest.prototype.getInstanceType = function() {
|
14349
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
14253
14350
|
};
|
14254
14351
|
|
14255
14352
|
|
14256
14353
|
/**
|
14257
|
-
*
|
14258
|
-
* @return {
|
14354
|
+
* @param {string} value
|
14355
|
+
* @return {!proto.game.GameRelationsRequest} returns this
|
14259
14356
|
*/
|
14260
|
-
proto.game.
|
14261
|
-
return jspb.Message.
|
14357
|
+
proto.game.GameRelationsRequest.prototype.setInstanceType = function(value) {
|
14358
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
14262
14359
|
};
|
14263
14360
|
|
14264
14361
|
|
@@ -14268,7 +14365,7 @@ proto.game.GameResponse.prototype.hasData = function() {
|
|
14268
14365
|
* @private {!Array<number>}
|
14269
14366
|
* @const
|
14270
14367
|
*/
|
14271
|
-
proto.game.
|
14368
|
+
proto.game.GameRelationsResponse.repeatedFields_ = [1];
|
14272
14369
|
|
14273
14370
|
|
14274
14371
|
|
@@ -14285,8 +14382,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
14285
14382
|
* http://goto/soy-param-migration
|
14286
14383
|
* @return {!Object}
|
14287
14384
|
*/
|
14288
|
-
proto.game.
|
14289
|
-
return proto.game.
|
14385
|
+
proto.game.GameRelationsResponse.prototype.toObject = function(opt_includeInstance) {
|
14386
|
+
return proto.game.GameRelationsResponse.toObject(opt_includeInstance, this);
|
14290
14387
|
};
|
14291
14388
|
|
14292
14389
|
|
@@ -14295,16 +14392,14 @@ proto.game.GameItemsResponse.prototype.toObject = function(opt_includeInstance)
|
|
14295
14392
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
14296
14393
|
* the JSPB instance for transitional soy proto support:
|
14297
14394
|
* http://goto/soy-param-migration
|
14298
|
-
* @param {!proto.game.
|
14395
|
+
* @param {!proto.game.GameRelationsResponse} msg The msg instance to transform.
|
14299
14396
|
* @return {!Object}
|
14300
14397
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
14301
14398
|
*/
|
14302
|
-
proto.game.
|
14399
|
+
proto.game.GameRelationsResponse.toObject = function(includeInstance, msg) {
|
14303
14400
|
var f, obj = {
|
14304
14401
|
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
14305
|
-
proto.game.
|
14306
|
-
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
14307
|
-
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
14402
|
+
proto.game.GameRelationItem.toObject, includeInstance)
|
14308
14403
|
};
|
14309
14404
|
|
14310
14405
|
if (includeInstance) {
|
@@ -14318,23 +14413,23 @@ proto.game.GameItemsResponse.toObject = function(includeInstance, msg) {
|
|
14318
14413
|
/**
|
14319
14414
|
* Deserializes binary data (in protobuf wire format).
|
14320
14415
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
14321
|
-
* @return {!proto.game.
|
14416
|
+
* @return {!proto.game.GameRelationsResponse}
|
14322
14417
|
*/
|
14323
|
-
proto.game.
|
14418
|
+
proto.game.GameRelationsResponse.deserializeBinary = function(bytes) {
|
14324
14419
|
var reader = new jspb.BinaryReader(bytes);
|
14325
|
-
var msg = new proto.game.
|
14326
|
-
return proto.game.
|
14420
|
+
var msg = new proto.game.GameRelationsResponse;
|
14421
|
+
return proto.game.GameRelationsResponse.deserializeBinaryFromReader(msg, reader);
|
14327
14422
|
};
|
14328
14423
|
|
14329
14424
|
|
14330
14425
|
/**
|
14331
14426
|
* Deserializes binary data (in protobuf wire format) from the
|
14332
14427
|
* given reader into the given message object.
|
14333
|
-
* @param {!proto.game.
|
14428
|
+
* @param {!proto.game.GameRelationsResponse} msg The message object to deserialize into.
|
14334
14429
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
14335
|
-
* @return {!proto.game.
|
14430
|
+
* @return {!proto.game.GameRelationsResponse}
|
14336
14431
|
*/
|
14337
|
-
proto.game.
|
14432
|
+
proto.game.GameRelationsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
14338
14433
|
while (reader.nextField()) {
|
14339
14434
|
if (reader.isEndGroup()) {
|
14340
14435
|
break;
|
@@ -14342,18 +14437,10 @@ proto.game.GameItemsResponse.deserializeBinaryFromReader = function(msg, reader)
|
|
14342
14437
|
var field = reader.getFieldNumber();
|
14343
14438
|
switch (field) {
|
14344
14439
|
case 1:
|
14345
|
-
var value = new proto.game.
|
14346
|
-
reader.readMessage(value,proto.game.
|
14440
|
+
var value = new proto.game.GameRelationItem;
|
14441
|
+
reader.readMessage(value,proto.game.GameRelationItem.deserializeBinaryFromReader);
|
14347
14442
|
msg.addItems(value);
|
14348
14443
|
break;
|
14349
|
-
case 2:
|
14350
|
-
var value = /** @type {number} */ (reader.readInt32());
|
14351
|
-
msg.setTotalPages(value);
|
14352
|
-
break;
|
14353
|
-
case 3:
|
14354
|
-
var value = /** @type {number} */ (reader.readInt32());
|
14355
|
-
msg.setTotalItems(value);
|
14356
|
-
break;
|
14357
14444
|
default:
|
14358
14445
|
reader.skipField();
|
14359
14446
|
break;
|
@@ -14367,9 +14454,9 @@ proto.game.GameItemsResponse.deserializeBinaryFromReader = function(msg, reader)
|
|
14367
14454
|
* Serializes the message to binary data (in protobuf wire format).
|
14368
14455
|
* @return {!Uint8Array}
|
14369
14456
|
*/
|
14370
|
-
proto.game.
|
14457
|
+
proto.game.GameRelationsResponse.prototype.serializeBinary = function() {
|
14371
14458
|
var writer = new jspb.BinaryWriter();
|
14372
|
-
proto.game.
|
14459
|
+
proto.game.GameRelationsResponse.serializeBinaryToWriter(this, writer);
|
14373
14460
|
return writer.getResultBuffer();
|
14374
14461
|
};
|
14375
14462
|
|
@@ -14377,116 +14464,949 @@ proto.game.GameItemsResponse.prototype.serializeBinary = function() {
|
|
14377
14464
|
/**
|
14378
14465
|
* Serializes the given message to binary data (in protobuf wire
|
14379
14466
|
* format), writing to the given BinaryWriter.
|
14380
|
-
* @param {!proto.game.
|
14467
|
+
* @param {!proto.game.GameRelationsResponse} message
|
14381
14468
|
* @param {!jspb.BinaryWriter} writer
|
14382
14469
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
14383
14470
|
*/
|
14384
|
-
proto.game.
|
14471
|
+
proto.game.GameRelationsResponse.serializeBinaryToWriter = function(message, writer) {
|
14385
14472
|
var f = undefined;
|
14386
14473
|
f = message.getItemsList();
|
14387
14474
|
if (f.length > 0) {
|
14388
14475
|
writer.writeRepeatedMessage(
|
14389
14476
|
1,
|
14390
14477
|
f,
|
14391
|
-
proto.game.
|
14392
|
-
);
|
14393
|
-
}
|
14394
|
-
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
14395
|
-
if (f != null) {
|
14396
|
-
writer.writeInt32(
|
14397
|
-
2,
|
14398
|
-
f
|
14399
|
-
);
|
14400
|
-
}
|
14401
|
-
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
14402
|
-
if (f != null) {
|
14403
|
-
writer.writeInt32(
|
14404
|
-
3,
|
14405
|
-
f
|
14478
|
+
proto.game.GameRelationItem.serializeBinaryToWriter
|
14406
14479
|
);
|
14407
14480
|
}
|
14408
14481
|
};
|
14409
14482
|
|
14410
14483
|
|
14411
14484
|
/**
|
14412
|
-
* repeated
|
14413
|
-
* @return {!Array<!proto.game.
|
14485
|
+
* repeated GameRelationItem items = 1;
|
14486
|
+
* @return {!Array<!proto.game.GameRelationItem>}
|
14414
14487
|
*/
|
14415
|
-
proto.game.
|
14416
|
-
return /** @type{!Array<!proto.game.
|
14417
|
-
jspb.Message.getRepeatedWrapperField(this, proto.game.
|
14488
|
+
proto.game.GameRelationsResponse.prototype.getItemsList = function() {
|
14489
|
+
return /** @type{!Array<!proto.game.GameRelationItem>} */ (
|
14490
|
+
jspb.Message.getRepeatedWrapperField(this, proto.game.GameRelationItem, 1));
|
14418
14491
|
};
|
14419
14492
|
|
14420
14493
|
|
14421
14494
|
/**
|
14422
|
-
* @param {!Array<!proto.game.
|
14423
|
-
* @return {!proto.game.
|
14495
|
+
* @param {!Array<!proto.game.GameRelationItem>} value
|
14496
|
+
* @return {!proto.game.GameRelationsResponse} returns this
|
14424
14497
|
*/
|
14425
|
-
proto.game.
|
14498
|
+
proto.game.GameRelationsResponse.prototype.setItemsList = function(value) {
|
14426
14499
|
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
14427
14500
|
};
|
14428
14501
|
|
14429
14502
|
|
14430
14503
|
/**
|
14431
|
-
* @param {!proto.game.
|
14504
|
+
* @param {!proto.game.GameRelationItem=} opt_value
|
14432
14505
|
* @param {number=} opt_index
|
14433
|
-
* @return {!proto.game.
|
14506
|
+
* @return {!proto.game.GameRelationItem}
|
14434
14507
|
*/
|
14435
|
-
proto.game.
|
14436
|
-
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.game.
|
14508
|
+
proto.game.GameRelationsResponse.prototype.addItems = function(opt_value, opt_index) {
|
14509
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.game.GameRelationItem, opt_index);
|
14437
14510
|
};
|
14438
14511
|
|
14439
14512
|
|
14440
14513
|
/**
|
14441
14514
|
* Clears the list making it empty but non-null.
|
14442
|
-
* @return {!proto.game.
|
14515
|
+
* @return {!proto.game.GameRelationsResponse} returns this
|
14443
14516
|
*/
|
14444
|
-
proto.game.
|
14517
|
+
proto.game.GameRelationsResponse.prototype.clearItemsList = function() {
|
14445
14518
|
return this.setItemsList([]);
|
14446
14519
|
};
|
14447
14520
|
|
14448
14521
|
|
14522
|
+
|
14449
14523
|
/**
|
14450
|
-
*
|
14451
|
-
* @
|
14524
|
+
* List of repeated fields within this message type.
|
14525
|
+
* @private {!Array<number>}
|
14526
|
+
* @const
|
14452
14527
|
*/
|
14453
|
-
proto.game.
|
14454
|
-
|
14455
|
-
};
|
14528
|
+
proto.game.GameRelationItem.repeatedFields_ = [5];
|
14529
|
+
|
14456
14530
|
|
14457
14531
|
|
14532
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
14458
14533
|
/**
|
14459
|
-
*
|
14460
|
-
*
|
14534
|
+
* Creates an object representation of this proto.
|
14535
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
14536
|
+
* Optional fields that are not set will be set to undefined.
|
14537
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
14538
|
+
* For the list of reserved names please see:
|
14539
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
14540
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
14541
|
+
* JSPB instance for transitional soy proto support:
|
14542
|
+
* http://goto/soy-param-migration
|
14543
|
+
* @return {!Object}
|
14461
14544
|
*/
|
14462
|
-
proto.game.
|
14463
|
-
return
|
14545
|
+
proto.game.GameRelationItem.prototype.toObject = function(opt_includeInstance) {
|
14546
|
+
return proto.game.GameRelationItem.toObject(opt_includeInstance, this);
|
14464
14547
|
};
|
14465
14548
|
|
14466
14549
|
|
14467
14550
|
/**
|
14468
|
-
*
|
14469
|
-
* @
|
14551
|
+
* Static version of the {@see toObject} method.
|
14552
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
14553
|
+
* the JSPB instance for transitional soy proto support:
|
14554
|
+
* http://goto/soy-param-migration
|
14555
|
+
* @param {!proto.game.GameRelationItem} msg The msg instance to transform.
|
14556
|
+
* @return {!Object}
|
14557
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
14470
14558
|
*/
|
14471
|
-
proto.game.
|
14472
|
-
|
14559
|
+
proto.game.GameRelationItem.toObject = function(includeInstance, msg) {
|
14560
|
+
var f, obj = {
|
14561
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
14562
|
+
type: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
14563
|
+
title: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
14564
|
+
image: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
14565
|
+
gameGeoList: jspb.Message.toObjectList(msg.getGameGeoList(),
|
14566
|
+
proto.game.GameGeo.toObject, includeInstance)
|
14567
|
+
};
|
14568
|
+
|
14569
|
+
if (includeInstance) {
|
14570
|
+
obj.$jspbMessageInstance = msg;
|
14571
|
+
}
|
14572
|
+
return obj;
|
14473
14573
|
};
|
14574
|
+
}
|
14474
14575
|
|
14475
14576
|
|
14476
14577
|
/**
|
14477
|
-
*
|
14478
|
-
* @
|
14578
|
+
* Deserializes binary data (in protobuf wire format).
|
14579
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
14580
|
+
* @return {!proto.game.GameRelationItem}
|
14479
14581
|
*/
|
14480
|
-
proto.game.
|
14481
|
-
|
14582
|
+
proto.game.GameRelationItem.deserializeBinary = function(bytes) {
|
14583
|
+
var reader = new jspb.BinaryReader(bytes);
|
14584
|
+
var msg = new proto.game.GameRelationItem;
|
14585
|
+
return proto.game.GameRelationItem.deserializeBinaryFromReader(msg, reader);
|
14482
14586
|
};
|
14483
14587
|
|
14484
14588
|
|
14485
14589
|
/**
|
14486
|
-
*
|
14487
|
-
*
|
14488
|
-
|
14489
|
-
|
14590
|
+
* Deserializes binary data (in protobuf wire format) from the
|
14591
|
+
* given reader into the given message object.
|
14592
|
+
* @param {!proto.game.GameRelationItem} msg The message object to deserialize into.
|
14593
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
14594
|
+
* @return {!proto.game.GameRelationItem}
|
14595
|
+
*/
|
14596
|
+
proto.game.GameRelationItem.deserializeBinaryFromReader = function(msg, reader) {
|
14597
|
+
while (reader.nextField()) {
|
14598
|
+
if (reader.isEndGroup()) {
|
14599
|
+
break;
|
14600
|
+
}
|
14601
|
+
var field = reader.getFieldNumber();
|
14602
|
+
switch (field) {
|
14603
|
+
case 1:
|
14604
|
+
var value = /** @type {number} */ (reader.readInt32());
|
14605
|
+
msg.setId(value);
|
14606
|
+
break;
|
14607
|
+
case 2:
|
14608
|
+
var value = /** @type {string} */ (reader.readString());
|
14609
|
+
msg.setType(value);
|
14610
|
+
break;
|
14611
|
+
case 3:
|
14612
|
+
var value = /** @type {string} */ (reader.readString());
|
14613
|
+
msg.setTitle(value);
|
14614
|
+
break;
|
14615
|
+
case 4:
|
14616
|
+
var value = /** @type {string} */ (reader.readString());
|
14617
|
+
msg.setImage(value);
|
14618
|
+
break;
|
14619
|
+
case 5:
|
14620
|
+
var value = new proto.game.GameGeo;
|
14621
|
+
reader.readMessage(value,proto.game.GameGeo.deserializeBinaryFromReader);
|
14622
|
+
msg.addGameGeo(value);
|
14623
|
+
break;
|
14624
|
+
default:
|
14625
|
+
reader.skipField();
|
14626
|
+
break;
|
14627
|
+
}
|
14628
|
+
}
|
14629
|
+
return msg;
|
14630
|
+
};
|
14631
|
+
|
14632
|
+
|
14633
|
+
/**
|
14634
|
+
* Serializes the message to binary data (in protobuf wire format).
|
14635
|
+
* @return {!Uint8Array}
|
14636
|
+
*/
|
14637
|
+
proto.game.GameRelationItem.prototype.serializeBinary = function() {
|
14638
|
+
var writer = new jspb.BinaryWriter();
|
14639
|
+
proto.game.GameRelationItem.serializeBinaryToWriter(this, writer);
|
14640
|
+
return writer.getResultBuffer();
|
14641
|
+
};
|
14642
|
+
|
14643
|
+
|
14644
|
+
/**
|
14645
|
+
* Serializes the given message to binary data (in protobuf wire
|
14646
|
+
* format), writing to the given BinaryWriter.
|
14647
|
+
* @param {!proto.game.GameRelationItem} message
|
14648
|
+
* @param {!jspb.BinaryWriter} writer
|
14649
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
14650
|
+
*/
|
14651
|
+
proto.game.GameRelationItem.serializeBinaryToWriter = function(message, writer) {
|
14652
|
+
var f = undefined;
|
14653
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
14654
|
+
if (f != null) {
|
14655
|
+
writer.writeInt32(
|
14656
|
+
1,
|
14657
|
+
f
|
14658
|
+
);
|
14659
|
+
}
|
14660
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
14661
|
+
if (f != null) {
|
14662
|
+
writer.writeString(
|
14663
|
+
2,
|
14664
|
+
f
|
14665
|
+
);
|
14666
|
+
}
|
14667
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
14668
|
+
if (f != null) {
|
14669
|
+
writer.writeString(
|
14670
|
+
3,
|
14671
|
+
f
|
14672
|
+
);
|
14673
|
+
}
|
14674
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
14675
|
+
if (f != null) {
|
14676
|
+
writer.writeString(
|
14677
|
+
4,
|
14678
|
+
f
|
14679
|
+
);
|
14680
|
+
}
|
14681
|
+
f = message.getGameGeoList();
|
14682
|
+
if (f.length > 0) {
|
14683
|
+
writer.writeRepeatedMessage(
|
14684
|
+
5,
|
14685
|
+
f,
|
14686
|
+
proto.game.GameGeo.serializeBinaryToWriter
|
14687
|
+
);
|
14688
|
+
}
|
14689
|
+
};
|
14690
|
+
|
14691
|
+
|
14692
|
+
/**
|
14693
|
+
* optional int32 id = 1;
|
14694
|
+
* @return {number}
|
14695
|
+
*/
|
14696
|
+
proto.game.GameRelationItem.prototype.getId = function() {
|
14697
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
14698
|
+
};
|
14699
|
+
|
14700
|
+
|
14701
|
+
/**
|
14702
|
+
* @param {number} value
|
14703
|
+
* @return {!proto.game.GameRelationItem} returns this
|
14704
|
+
*/
|
14705
|
+
proto.game.GameRelationItem.prototype.setId = function(value) {
|
14706
|
+
return jspb.Message.setField(this, 1, value);
|
14707
|
+
};
|
14708
|
+
|
14709
|
+
|
14710
|
+
/**
|
14711
|
+
* Clears the field making it undefined.
|
14712
|
+
* @return {!proto.game.GameRelationItem} returns this
|
14713
|
+
*/
|
14714
|
+
proto.game.GameRelationItem.prototype.clearId = function() {
|
14715
|
+
return jspb.Message.setField(this, 1, undefined);
|
14716
|
+
};
|
14717
|
+
|
14718
|
+
|
14719
|
+
/**
|
14720
|
+
* Returns whether this field is set.
|
14721
|
+
* @return {boolean}
|
14722
|
+
*/
|
14723
|
+
proto.game.GameRelationItem.prototype.hasId = function() {
|
14724
|
+
return jspb.Message.getField(this, 1) != null;
|
14725
|
+
};
|
14726
|
+
|
14727
|
+
|
14728
|
+
/**
|
14729
|
+
* optional string type = 2;
|
14730
|
+
* @return {string}
|
14731
|
+
*/
|
14732
|
+
proto.game.GameRelationItem.prototype.getType = function() {
|
14733
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
14734
|
+
};
|
14735
|
+
|
14736
|
+
|
14737
|
+
/**
|
14738
|
+
* @param {string} value
|
14739
|
+
* @return {!proto.game.GameRelationItem} returns this
|
14740
|
+
*/
|
14741
|
+
proto.game.GameRelationItem.prototype.setType = function(value) {
|
14742
|
+
return jspb.Message.setField(this, 2, value);
|
14743
|
+
};
|
14744
|
+
|
14745
|
+
|
14746
|
+
/**
|
14747
|
+
* Clears the field making it undefined.
|
14748
|
+
* @return {!proto.game.GameRelationItem} returns this
|
14749
|
+
*/
|
14750
|
+
proto.game.GameRelationItem.prototype.clearType = function() {
|
14751
|
+
return jspb.Message.setField(this, 2, undefined);
|
14752
|
+
};
|
14753
|
+
|
14754
|
+
|
14755
|
+
/**
|
14756
|
+
* Returns whether this field is set.
|
14757
|
+
* @return {boolean}
|
14758
|
+
*/
|
14759
|
+
proto.game.GameRelationItem.prototype.hasType = function() {
|
14760
|
+
return jspb.Message.getField(this, 2) != null;
|
14761
|
+
};
|
14762
|
+
|
14763
|
+
|
14764
|
+
/**
|
14765
|
+
* optional string title = 3;
|
14766
|
+
* @return {string}
|
14767
|
+
*/
|
14768
|
+
proto.game.GameRelationItem.prototype.getTitle = function() {
|
14769
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
14770
|
+
};
|
14771
|
+
|
14772
|
+
|
14773
|
+
/**
|
14774
|
+
* @param {string} value
|
14775
|
+
* @return {!proto.game.GameRelationItem} returns this
|
14776
|
+
*/
|
14777
|
+
proto.game.GameRelationItem.prototype.setTitle = function(value) {
|
14778
|
+
return jspb.Message.setField(this, 3, value);
|
14779
|
+
};
|
14780
|
+
|
14781
|
+
|
14782
|
+
/**
|
14783
|
+
* Clears the field making it undefined.
|
14784
|
+
* @return {!proto.game.GameRelationItem} returns this
|
14785
|
+
*/
|
14786
|
+
proto.game.GameRelationItem.prototype.clearTitle = function() {
|
14787
|
+
return jspb.Message.setField(this, 3, undefined);
|
14788
|
+
};
|
14789
|
+
|
14790
|
+
|
14791
|
+
/**
|
14792
|
+
* Returns whether this field is set.
|
14793
|
+
* @return {boolean}
|
14794
|
+
*/
|
14795
|
+
proto.game.GameRelationItem.prototype.hasTitle = function() {
|
14796
|
+
return jspb.Message.getField(this, 3) != null;
|
14797
|
+
};
|
14798
|
+
|
14799
|
+
|
14800
|
+
/**
|
14801
|
+
* optional string image = 4;
|
14802
|
+
* @return {string}
|
14803
|
+
*/
|
14804
|
+
proto.game.GameRelationItem.prototype.getImage = function() {
|
14805
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
14806
|
+
};
|
14807
|
+
|
14808
|
+
|
14809
|
+
/**
|
14810
|
+
* @param {string} value
|
14811
|
+
* @return {!proto.game.GameRelationItem} returns this
|
14812
|
+
*/
|
14813
|
+
proto.game.GameRelationItem.prototype.setImage = function(value) {
|
14814
|
+
return jspb.Message.setField(this, 4, value);
|
14815
|
+
};
|
14816
|
+
|
14817
|
+
|
14818
|
+
/**
|
14819
|
+
* Clears the field making it undefined.
|
14820
|
+
* @return {!proto.game.GameRelationItem} returns this
|
14821
|
+
*/
|
14822
|
+
proto.game.GameRelationItem.prototype.clearImage = function() {
|
14823
|
+
return jspb.Message.setField(this, 4, undefined);
|
14824
|
+
};
|
14825
|
+
|
14826
|
+
|
14827
|
+
/**
|
14828
|
+
* Returns whether this field is set.
|
14829
|
+
* @return {boolean}
|
14830
|
+
*/
|
14831
|
+
proto.game.GameRelationItem.prototype.hasImage = function() {
|
14832
|
+
return jspb.Message.getField(this, 4) != null;
|
14833
|
+
};
|
14834
|
+
|
14835
|
+
|
14836
|
+
/**
|
14837
|
+
* repeated GameGeo game_geo = 5;
|
14838
|
+
* @return {!Array<!proto.game.GameGeo>}
|
14839
|
+
*/
|
14840
|
+
proto.game.GameRelationItem.prototype.getGameGeoList = function() {
|
14841
|
+
return /** @type{!Array<!proto.game.GameGeo>} */ (
|
14842
|
+
jspb.Message.getRepeatedWrapperField(this, proto.game.GameGeo, 5));
|
14843
|
+
};
|
14844
|
+
|
14845
|
+
|
14846
|
+
/**
|
14847
|
+
* @param {!Array<!proto.game.GameGeo>} value
|
14848
|
+
* @return {!proto.game.GameRelationItem} returns this
|
14849
|
+
*/
|
14850
|
+
proto.game.GameRelationItem.prototype.setGameGeoList = function(value) {
|
14851
|
+
return jspb.Message.setRepeatedWrapperField(this, 5, value);
|
14852
|
+
};
|
14853
|
+
|
14854
|
+
|
14855
|
+
/**
|
14856
|
+
* @param {!proto.game.GameGeo=} opt_value
|
14857
|
+
* @param {number=} opt_index
|
14858
|
+
* @return {!proto.game.GameGeo}
|
14859
|
+
*/
|
14860
|
+
proto.game.GameRelationItem.prototype.addGameGeo = function(opt_value, opt_index) {
|
14861
|
+
return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.game.GameGeo, opt_index);
|
14862
|
+
};
|
14863
|
+
|
14864
|
+
|
14865
|
+
/**
|
14866
|
+
* Clears the list making it empty but non-null.
|
14867
|
+
* @return {!proto.game.GameRelationItem} returns this
|
14868
|
+
*/
|
14869
|
+
proto.game.GameRelationItem.prototype.clearGameGeoList = function() {
|
14870
|
+
return this.setGameGeoList([]);
|
14871
|
+
};
|
14872
|
+
|
14873
|
+
|
14874
|
+
|
14875
|
+
|
14876
|
+
|
14877
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
14878
|
+
/**
|
14879
|
+
* Creates an object representation of this proto.
|
14880
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
14881
|
+
* Optional fields that are not set will be set to undefined.
|
14882
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
14883
|
+
* For the list of reserved names please see:
|
14884
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
14885
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
14886
|
+
* JSPB instance for transitional soy proto support:
|
14887
|
+
* http://goto/soy-param-migration
|
14888
|
+
* @return {!Object}
|
14889
|
+
*/
|
14890
|
+
proto.game.GameGeo.prototype.toObject = function(opt_includeInstance) {
|
14891
|
+
return proto.game.GameGeo.toObject(opt_includeInstance, this);
|
14892
|
+
};
|
14893
|
+
|
14894
|
+
|
14895
|
+
/**
|
14896
|
+
* Static version of the {@see toObject} method.
|
14897
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
14898
|
+
* the JSPB instance for transitional soy proto support:
|
14899
|
+
* http://goto/soy-param-migration
|
14900
|
+
* @param {!proto.game.GameGeo} msg The msg instance to transform.
|
14901
|
+
* @return {!Object}
|
14902
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
14903
|
+
*/
|
14904
|
+
proto.game.GameGeo.toObject = function(includeInstance, msg) {
|
14905
|
+
var f, obj = {
|
14906
|
+
geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
14907
|
+
geoId: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
14908
|
+
};
|
14909
|
+
|
14910
|
+
if (includeInstance) {
|
14911
|
+
obj.$jspbMessageInstance = msg;
|
14912
|
+
}
|
14913
|
+
return obj;
|
14914
|
+
};
|
14915
|
+
}
|
14916
|
+
|
14917
|
+
|
14918
|
+
/**
|
14919
|
+
* Deserializes binary data (in protobuf wire format).
|
14920
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
14921
|
+
* @return {!proto.game.GameGeo}
|
14922
|
+
*/
|
14923
|
+
proto.game.GameGeo.deserializeBinary = function(bytes) {
|
14924
|
+
var reader = new jspb.BinaryReader(bytes);
|
14925
|
+
var msg = new proto.game.GameGeo;
|
14926
|
+
return proto.game.GameGeo.deserializeBinaryFromReader(msg, reader);
|
14927
|
+
};
|
14928
|
+
|
14929
|
+
|
14930
|
+
/**
|
14931
|
+
* Deserializes binary data (in protobuf wire format) from the
|
14932
|
+
* given reader into the given message object.
|
14933
|
+
* @param {!proto.game.GameGeo} msg The message object to deserialize into.
|
14934
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
14935
|
+
* @return {!proto.game.GameGeo}
|
14936
|
+
*/
|
14937
|
+
proto.game.GameGeo.deserializeBinaryFromReader = function(msg, reader) {
|
14938
|
+
while (reader.nextField()) {
|
14939
|
+
if (reader.isEndGroup()) {
|
14940
|
+
break;
|
14941
|
+
}
|
14942
|
+
var field = reader.getFieldNumber();
|
14943
|
+
switch (field) {
|
14944
|
+
case 1:
|
14945
|
+
var value = /** @type {string} */ (reader.readString());
|
14946
|
+
msg.setGeo(value);
|
14947
|
+
break;
|
14948
|
+
case 2:
|
14949
|
+
var value = /** @type {number} */ (reader.readInt32());
|
14950
|
+
msg.setGeoId(value);
|
14951
|
+
break;
|
14952
|
+
default:
|
14953
|
+
reader.skipField();
|
14954
|
+
break;
|
14955
|
+
}
|
14956
|
+
}
|
14957
|
+
return msg;
|
14958
|
+
};
|
14959
|
+
|
14960
|
+
|
14961
|
+
/**
|
14962
|
+
* Serializes the message to binary data (in protobuf wire format).
|
14963
|
+
* @return {!Uint8Array}
|
14964
|
+
*/
|
14965
|
+
proto.game.GameGeo.prototype.serializeBinary = function() {
|
14966
|
+
var writer = new jspb.BinaryWriter();
|
14967
|
+
proto.game.GameGeo.serializeBinaryToWriter(this, writer);
|
14968
|
+
return writer.getResultBuffer();
|
14969
|
+
};
|
14970
|
+
|
14971
|
+
|
14972
|
+
/**
|
14973
|
+
* Serializes the given message to binary data (in protobuf wire
|
14974
|
+
* format), writing to the given BinaryWriter.
|
14975
|
+
* @param {!proto.game.GameGeo} message
|
14976
|
+
* @param {!jspb.BinaryWriter} writer
|
14977
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
14978
|
+
*/
|
14979
|
+
proto.game.GameGeo.serializeBinaryToWriter = function(message, writer) {
|
14980
|
+
var f = undefined;
|
14981
|
+
f = message.getGeo();
|
14982
|
+
if (f.length > 0) {
|
14983
|
+
writer.writeString(
|
14984
|
+
1,
|
14985
|
+
f
|
14986
|
+
);
|
14987
|
+
}
|
14988
|
+
f = message.getGeoId();
|
14989
|
+
if (f !== 0) {
|
14990
|
+
writer.writeInt32(
|
14991
|
+
2,
|
14992
|
+
f
|
14993
|
+
);
|
14994
|
+
}
|
14995
|
+
};
|
14996
|
+
|
14997
|
+
|
14998
|
+
/**
|
14999
|
+
* optional string geo = 1;
|
15000
|
+
* @return {string}
|
15001
|
+
*/
|
15002
|
+
proto.game.GameGeo.prototype.getGeo = function() {
|
15003
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
15004
|
+
};
|
15005
|
+
|
15006
|
+
|
15007
|
+
/**
|
15008
|
+
* @param {string} value
|
15009
|
+
* @return {!proto.game.GameGeo} returns this
|
15010
|
+
*/
|
15011
|
+
proto.game.GameGeo.prototype.setGeo = function(value) {
|
15012
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
15013
|
+
};
|
15014
|
+
|
15015
|
+
|
15016
|
+
/**
|
15017
|
+
* optional int32 geo_id = 2;
|
15018
|
+
* @return {number}
|
15019
|
+
*/
|
15020
|
+
proto.game.GameGeo.prototype.getGeoId = function() {
|
15021
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
15022
|
+
};
|
15023
|
+
|
15024
|
+
|
15025
|
+
/**
|
15026
|
+
* @param {number} value
|
15027
|
+
* @return {!proto.game.GameGeo} returns this
|
15028
|
+
*/
|
15029
|
+
proto.game.GameGeo.prototype.setGeoId = function(value) {
|
15030
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
15031
|
+
};
|
15032
|
+
|
15033
|
+
|
15034
|
+
|
15035
|
+
|
15036
|
+
|
15037
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
15038
|
+
/**
|
15039
|
+
* Creates an object representation of this proto.
|
15040
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
15041
|
+
* Optional fields that are not set will be set to undefined.
|
15042
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
15043
|
+
* For the list of reserved names please see:
|
15044
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
15045
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
15046
|
+
* JSPB instance for transitional soy proto support:
|
15047
|
+
* http://goto/soy-param-migration
|
15048
|
+
* @return {!Object}
|
15049
|
+
*/
|
15050
|
+
proto.game.GameResponse.prototype.toObject = function(opt_includeInstance) {
|
15051
|
+
return proto.game.GameResponse.toObject(opt_includeInstance, this);
|
15052
|
+
};
|
15053
|
+
|
15054
|
+
|
15055
|
+
/**
|
15056
|
+
* Static version of the {@see toObject} method.
|
15057
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
15058
|
+
* the JSPB instance for transitional soy proto support:
|
15059
|
+
* http://goto/soy-param-migration
|
15060
|
+
* @param {!proto.game.GameResponse} msg The msg instance to transform.
|
15061
|
+
* @return {!Object}
|
15062
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
15063
|
+
*/
|
15064
|
+
proto.game.GameResponse.toObject = function(includeInstance, msg) {
|
15065
|
+
var f, obj = {
|
15066
|
+
data: (f = msg.getData()) && proto.game.GameItem.toObject(includeInstance, f)
|
15067
|
+
};
|
15068
|
+
|
15069
|
+
if (includeInstance) {
|
15070
|
+
obj.$jspbMessageInstance = msg;
|
15071
|
+
}
|
15072
|
+
return obj;
|
15073
|
+
};
|
15074
|
+
}
|
15075
|
+
|
15076
|
+
|
15077
|
+
/**
|
15078
|
+
* Deserializes binary data (in protobuf wire format).
|
15079
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
15080
|
+
* @return {!proto.game.GameResponse}
|
15081
|
+
*/
|
15082
|
+
proto.game.GameResponse.deserializeBinary = function(bytes) {
|
15083
|
+
var reader = new jspb.BinaryReader(bytes);
|
15084
|
+
var msg = new proto.game.GameResponse;
|
15085
|
+
return proto.game.GameResponse.deserializeBinaryFromReader(msg, reader);
|
15086
|
+
};
|
15087
|
+
|
15088
|
+
|
15089
|
+
/**
|
15090
|
+
* Deserializes binary data (in protobuf wire format) from the
|
15091
|
+
* given reader into the given message object.
|
15092
|
+
* @param {!proto.game.GameResponse} msg The message object to deserialize into.
|
15093
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
15094
|
+
* @return {!proto.game.GameResponse}
|
15095
|
+
*/
|
15096
|
+
proto.game.GameResponse.deserializeBinaryFromReader = function(msg, reader) {
|
15097
|
+
while (reader.nextField()) {
|
15098
|
+
if (reader.isEndGroup()) {
|
15099
|
+
break;
|
15100
|
+
}
|
15101
|
+
var field = reader.getFieldNumber();
|
15102
|
+
switch (field) {
|
15103
|
+
case 1:
|
15104
|
+
var value = new proto.game.GameItem;
|
15105
|
+
reader.readMessage(value,proto.game.GameItem.deserializeBinaryFromReader);
|
15106
|
+
msg.setData(value);
|
15107
|
+
break;
|
15108
|
+
default:
|
15109
|
+
reader.skipField();
|
15110
|
+
break;
|
15111
|
+
}
|
15112
|
+
}
|
15113
|
+
return msg;
|
15114
|
+
};
|
15115
|
+
|
15116
|
+
|
15117
|
+
/**
|
15118
|
+
* Serializes the message to binary data (in protobuf wire format).
|
15119
|
+
* @return {!Uint8Array}
|
15120
|
+
*/
|
15121
|
+
proto.game.GameResponse.prototype.serializeBinary = function() {
|
15122
|
+
var writer = new jspb.BinaryWriter();
|
15123
|
+
proto.game.GameResponse.serializeBinaryToWriter(this, writer);
|
15124
|
+
return writer.getResultBuffer();
|
15125
|
+
};
|
15126
|
+
|
15127
|
+
|
15128
|
+
/**
|
15129
|
+
* Serializes the given message to binary data (in protobuf wire
|
15130
|
+
* format), writing to the given BinaryWriter.
|
15131
|
+
* @param {!proto.game.GameResponse} message
|
15132
|
+
* @param {!jspb.BinaryWriter} writer
|
15133
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
15134
|
+
*/
|
15135
|
+
proto.game.GameResponse.serializeBinaryToWriter = function(message, writer) {
|
15136
|
+
var f = undefined;
|
15137
|
+
f = message.getData();
|
15138
|
+
if (f != null) {
|
15139
|
+
writer.writeMessage(
|
15140
|
+
1,
|
15141
|
+
f,
|
15142
|
+
proto.game.GameItem.serializeBinaryToWriter
|
15143
|
+
);
|
15144
|
+
}
|
15145
|
+
};
|
15146
|
+
|
15147
|
+
|
15148
|
+
/**
|
15149
|
+
* optional GameItem data = 1;
|
15150
|
+
* @return {?proto.game.GameItem}
|
15151
|
+
*/
|
15152
|
+
proto.game.GameResponse.prototype.getData = function() {
|
15153
|
+
return /** @type{?proto.game.GameItem} */ (
|
15154
|
+
jspb.Message.getWrapperField(this, proto.game.GameItem, 1));
|
15155
|
+
};
|
15156
|
+
|
15157
|
+
|
15158
|
+
/**
|
15159
|
+
* @param {?proto.game.GameItem|undefined} value
|
15160
|
+
* @return {!proto.game.GameResponse} returns this
|
15161
|
+
*/
|
15162
|
+
proto.game.GameResponse.prototype.setData = function(value) {
|
15163
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
15164
|
+
};
|
15165
|
+
|
15166
|
+
|
15167
|
+
/**
|
15168
|
+
* Clears the message field making it undefined.
|
15169
|
+
* @return {!proto.game.GameResponse} returns this
|
15170
|
+
*/
|
15171
|
+
proto.game.GameResponse.prototype.clearData = function() {
|
15172
|
+
return this.setData(undefined);
|
15173
|
+
};
|
15174
|
+
|
15175
|
+
|
15176
|
+
/**
|
15177
|
+
* Returns whether this field is set.
|
15178
|
+
* @return {boolean}
|
15179
|
+
*/
|
15180
|
+
proto.game.GameResponse.prototype.hasData = function() {
|
15181
|
+
return jspb.Message.getField(this, 1) != null;
|
15182
|
+
};
|
15183
|
+
|
15184
|
+
|
15185
|
+
|
15186
|
+
/**
|
15187
|
+
* List of repeated fields within this message type.
|
15188
|
+
* @private {!Array<number>}
|
15189
|
+
* @const
|
15190
|
+
*/
|
15191
|
+
proto.game.GameItemsResponse.repeatedFields_ = [1];
|
15192
|
+
|
15193
|
+
|
15194
|
+
|
15195
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
15196
|
+
/**
|
15197
|
+
* Creates an object representation of this proto.
|
15198
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
15199
|
+
* Optional fields that are not set will be set to undefined.
|
15200
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
15201
|
+
* For the list of reserved names please see:
|
15202
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
15203
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
15204
|
+
* JSPB instance for transitional soy proto support:
|
15205
|
+
* http://goto/soy-param-migration
|
15206
|
+
* @return {!Object}
|
15207
|
+
*/
|
15208
|
+
proto.game.GameItemsResponse.prototype.toObject = function(opt_includeInstance) {
|
15209
|
+
return proto.game.GameItemsResponse.toObject(opt_includeInstance, this);
|
15210
|
+
};
|
15211
|
+
|
15212
|
+
|
15213
|
+
/**
|
15214
|
+
* Static version of the {@see toObject} method.
|
15215
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
15216
|
+
* the JSPB instance for transitional soy proto support:
|
15217
|
+
* http://goto/soy-param-migration
|
15218
|
+
* @param {!proto.game.GameItemsResponse} msg The msg instance to transform.
|
15219
|
+
* @return {!Object}
|
15220
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
15221
|
+
*/
|
15222
|
+
proto.game.GameItemsResponse.toObject = function(includeInstance, msg) {
|
15223
|
+
var f, obj = {
|
15224
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
15225
|
+
proto.game.GameItem.toObject, includeInstance),
|
15226
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
15227
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
15228
|
+
};
|
15229
|
+
|
15230
|
+
if (includeInstance) {
|
15231
|
+
obj.$jspbMessageInstance = msg;
|
15232
|
+
}
|
15233
|
+
return obj;
|
15234
|
+
};
|
15235
|
+
}
|
15236
|
+
|
15237
|
+
|
15238
|
+
/**
|
15239
|
+
* Deserializes binary data (in protobuf wire format).
|
15240
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
15241
|
+
* @return {!proto.game.GameItemsResponse}
|
15242
|
+
*/
|
15243
|
+
proto.game.GameItemsResponse.deserializeBinary = function(bytes) {
|
15244
|
+
var reader = new jspb.BinaryReader(bytes);
|
15245
|
+
var msg = new proto.game.GameItemsResponse;
|
15246
|
+
return proto.game.GameItemsResponse.deserializeBinaryFromReader(msg, reader);
|
15247
|
+
};
|
15248
|
+
|
15249
|
+
|
15250
|
+
/**
|
15251
|
+
* Deserializes binary data (in protobuf wire format) from the
|
15252
|
+
* given reader into the given message object.
|
15253
|
+
* @param {!proto.game.GameItemsResponse} msg The message object to deserialize into.
|
15254
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
15255
|
+
* @return {!proto.game.GameItemsResponse}
|
15256
|
+
*/
|
15257
|
+
proto.game.GameItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
15258
|
+
while (reader.nextField()) {
|
15259
|
+
if (reader.isEndGroup()) {
|
15260
|
+
break;
|
15261
|
+
}
|
15262
|
+
var field = reader.getFieldNumber();
|
15263
|
+
switch (field) {
|
15264
|
+
case 1:
|
15265
|
+
var value = new proto.game.GameItem;
|
15266
|
+
reader.readMessage(value,proto.game.GameItem.deserializeBinaryFromReader);
|
15267
|
+
msg.addItems(value);
|
15268
|
+
break;
|
15269
|
+
case 2:
|
15270
|
+
var value = /** @type {number} */ (reader.readInt32());
|
15271
|
+
msg.setTotalPages(value);
|
15272
|
+
break;
|
15273
|
+
case 3:
|
15274
|
+
var value = /** @type {number} */ (reader.readInt32());
|
15275
|
+
msg.setTotalItems(value);
|
15276
|
+
break;
|
15277
|
+
default:
|
15278
|
+
reader.skipField();
|
15279
|
+
break;
|
15280
|
+
}
|
15281
|
+
}
|
15282
|
+
return msg;
|
15283
|
+
};
|
15284
|
+
|
15285
|
+
|
15286
|
+
/**
|
15287
|
+
* Serializes the message to binary data (in protobuf wire format).
|
15288
|
+
* @return {!Uint8Array}
|
15289
|
+
*/
|
15290
|
+
proto.game.GameItemsResponse.prototype.serializeBinary = function() {
|
15291
|
+
var writer = new jspb.BinaryWriter();
|
15292
|
+
proto.game.GameItemsResponse.serializeBinaryToWriter(this, writer);
|
15293
|
+
return writer.getResultBuffer();
|
15294
|
+
};
|
15295
|
+
|
15296
|
+
|
15297
|
+
/**
|
15298
|
+
* Serializes the given message to binary data (in protobuf wire
|
15299
|
+
* format), writing to the given BinaryWriter.
|
15300
|
+
* @param {!proto.game.GameItemsResponse} message
|
15301
|
+
* @param {!jspb.BinaryWriter} writer
|
15302
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
15303
|
+
*/
|
15304
|
+
proto.game.GameItemsResponse.serializeBinaryToWriter = function(message, writer) {
|
15305
|
+
var f = undefined;
|
15306
|
+
f = message.getItemsList();
|
15307
|
+
if (f.length > 0) {
|
15308
|
+
writer.writeRepeatedMessage(
|
15309
|
+
1,
|
15310
|
+
f,
|
15311
|
+
proto.game.GameItem.serializeBinaryToWriter
|
15312
|
+
);
|
15313
|
+
}
|
15314
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
15315
|
+
if (f != null) {
|
15316
|
+
writer.writeInt32(
|
15317
|
+
2,
|
15318
|
+
f
|
15319
|
+
);
|
15320
|
+
}
|
15321
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
15322
|
+
if (f != null) {
|
15323
|
+
writer.writeInt32(
|
15324
|
+
3,
|
15325
|
+
f
|
15326
|
+
);
|
15327
|
+
}
|
15328
|
+
};
|
15329
|
+
|
15330
|
+
|
15331
|
+
/**
|
15332
|
+
* repeated GameItem items = 1;
|
15333
|
+
* @return {!Array<!proto.game.GameItem>}
|
15334
|
+
*/
|
15335
|
+
proto.game.GameItemsResponse.prototype.getItemsList = function() {
|
15336
|
+
return /** @type{!Array<!proto.game.GameItem>} */ (
|
15337
|
+
jspb.Message.getRepeatedWrapperField(this, proto.game.GameItem, 1));
|
15338
|
+
};
|
15339
|
+
|
15340
|
+
|
15341
|
+
/**
|
15342
|
+
* @param {!Array<!proto.game.GameItem>} value
|
15343
|
+
* @return {!proto.game.GameItemsResponse} returns this
|
15344
|
+
*/
|
15345
|
+
proto.game.GameItemsResponse.prototype.setItemsList = function(value) {
|
15346
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
15347
|
+
};
|
15348
|
+
|
15349
|
+
|
15350
|
+
/**
|
15351
|
+
* @param {!proto.game.GameItem=} opt_value
|
15352
|
+
* @param {number=} opt_index
|
15353
|
+
* @return {!proto.game.GameItem}
|
15354
|
+
*/
|
15355
|
+
proto.game.GameItemsResponse.prototype.addItems = function(opt_value, opt_index) {
|
15356
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.game.GameItem, opt_index);
|
15357
|
+
};
|
15358
|
+
|
15359
|
+
|
15360
|
+
/**
|
15361
|
+
* Clears the list making it empty but non-null.
|
15362
|
+
* @return {!proto.game.GameItemsResponse} returns this
|
15363
|
+
*/
|
15364
|
+
proto.game.GameItemsResponse.prototype.clearItemsList = function() {
|
15365
|
+
return this.setItemsList([]);
|
15366
|
+
};
|
15367
|
+
|
15368
|
+
|
15369
|
+
/**
|
15370
|
+
* optional int32 total_pages = 2;
|
15371
|
+
* @return {number}
|
15372
|
+
*/
|
15373
|
+
proto.game.GameItemsResponse.prototype.getTotalPages = function() {
|
15374
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
15375
|
+
};
|
15376
|
+
|
15377
|
+
|
15378
|
+
/**
|
15379
|
+
* @param {number} value
|
15380
|
+
* @return {!proto.game.GameItemsResponse} returns this
|
15381
|
+
*/
|
15382
|
+
proto.game.GameItemsResponse.prototype.setTotalPages = function(value) {
|
15383
|
+
return jspb.Message.setField(this, 2, value);
|
15384
|
+
};
|
15385
|
+
|
15386
|
+
|
15387
|
+
/**
|
15388
|
+
* Clears the field making it undefined.
|
15389
|
+
* @return {!proto.game.GameItemsResponse} returns this
|
15390
|
+
*/
|
15391
|
+
proto.game.GameItemsResponse.prototype.clearTotalPages = function() {
|
15392
|
+
return jspb.Message.setField(this, 2, undefined);
|
15393
|
+
};
|
15394
|
+
|
15395
|
+
|
15396
|
+
/**
|
15397
|
+
* Returns whether this field is set.
|
15398
|
+
* @return {boolean}
|
15399
|
+
*/
|
15400
|
+
proto.game.GameItemsResponse.prototype.hasTotalPages = function() {
|
15401
|
+
return jspb.Message.getField(this, 2) != null;
|
15402
|
+
};
|
15403
|
+
|
15404
|
+
|
15405
|
+
/**
|
15406
|
+
* optional int32 total_items = 3;
|
15407
|
+
* @return {number}
|
15408
|
+
*/
|
15409
|
+
proto.game.GameItemsResponse.prototype.getTotalItems = function() {
|
14490
15410
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
14491
15411
|
};
|
14492
15412
|
|
@@ -19523,7 +20443,7 @@ proto.game.WagerListRequest.toObject = function(includeInstance, msg) {
|
|
19523
20443
|
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
19524
20444
|
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
19525
20445
|
description: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
19526
|
-
isActive: jspb.Message.
|
20446
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
19527
20447
|
contribution: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0)
|
19528
20448
|
};
|
19529
20449
|
|
@@ -19574,7 +20494,7 @@ proto.game.WagerListRequest.deserializeBinaryFromReader = function(msg, reader)
|
|
19574
20494
|
msg.setDescription(value);
|
19575
20495
|
break;
|
19576
20496
|
case 4:
|
19577
|
-
var value = /** @type {
|
20497
|
+
var value = /** @type {number} */ (reader.readInt32());
|
19578
20498
|
msg.setIsActive(value);
|
19579
20499
|
break;
|
19580
20500
|
case 5:
|
@@ -19631,9 +20551,9 @@ proto.game.WagerListRequest.serializeBinaryToWriter = function(message, writer)
|
|
19631
20551
|
f
|
19632
20552
|
);
|
19633
20553
|
}
|
19634
|
-
f = /** @type {
|
20554
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
19635
20555
|
if (f != null) {
|
19636
|
-
writer.
|
20556
|
+
writer.writeInt32(
|
19637
20557
|
4,
|
19638
20558
|
f
|
19639
20559
|
);
|
@@ -19757,16 +20677,16 @@ proto.game.WagerListRequest.prototype.hasDescription = function() {
|
|
19757
20677
|
|
19758
20678
|
|
19759
20679
|
/**
|
19760
|
-
* optional
|
19761
|
-
* @return {
|
20680
|
+
* optional int32 is_active = 4;
|
20681
|
+
* @return {number}
|
19762
20682
|
*/
|
19763
20683
|
proto.game.WagerListRequest.prototype.getIsActive = function() {
|
19764
|
-
return /** @type {
|
20684
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
19765
20685
|
};
|
19766
20686
|
|
19767
20687
|
|
19768
20688
|
/**
|
19769
|
-
* @param {
|
20689
|
+
* @param {number} value
|
19770
20690
|
* @return {!proto.game.WagerListRequest} returns this
|
19771
20691
|
*/
|
19772
20692
|
proto.game.WagerListRequest.prototype.setIsActive = function(value) {
|