protobuf-platform 1.0.156 → 1.0.158
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 +20 -0
- package/game/game_grpc_pb.js +44 -0
- package/game/game_pb.js +920 -0
- package/package.json +1 -1
package/game/game.proto
CHANGED
@@ -45,6 +45,8 @@ service Game {
|
|
45
45
|
rpc searchGamesByTags(SearchGamesIntoTagsRequest) returns (GameItemsResponse);
|
46
46
|
rpc initGameSession(InitGameSessionRequest) returns (InitGameSessionResponse);
|
47
47
|
rpc initDemoGameSession(InitDemoGameSessionRequest) returns (InitGameSessionResponse);
|
48
|
+
rpc getCollectionsByGeo(GameRelationsRequest) returns (GameRelationsResponse);
|
49
|
+
rpc getTagsByGeo(GameRelationsRequest) returns (GameRelationsResponse);
|
48
50
|
//Vendor
|
49
51
|
rpc processedVendorActionCallback(VendorActionRequest) returns (VendorActionResponse);
|
50
52
|
rpc getIntegratorSettings(IntegratorSettingsRequest) returns (IntegratorSettingsResponse);
|
@@ -341,6 +343,24 @@ message GetGameRequest {
|
|
341
343
|
int32 id = 1;
|
342
344
|
optional int32 admin_side = 2;
|
343
345
|
}
|
346
|
+
message GameRelationsRequest {
|
347
|
+
int32 game_id = 1;
|
348
|
+
string instance_type = 2;
|
349
|
+
}
|
350
|
+
message GameRelationsResponse {
|
351
|
+
repeated GameRelationItem items = 1;
|
352
|
+
}
|
353
|
+
message GameRelationItem {
|
354
|
+
optional int32 id = 1;
|
355
|
+
optional string type = 2;
|
356
|
+
optional string title = 3;
|
357
|
+
optional string image = 4;
|
358
|
+
repeated GameGeo game_geo = 5;
|
359
|
+
}
|
360
|
+
message GameGeo {
|
361
|
+
string geo = 1;
|
362
|
+
int32 geo_id = 2;
|
363
|
+
}
|
344
364
|
//Game CRUD | Responses
|
345
365
|
message GameResponse {
|
346
366
|
GameItem data = 1;
|
package/game/game_grpc_pb.js
CHANGED
@@ -202,6 +202,28 @@ function deserialize_game_GamePoorItemsResponse(buffer_arg) {
|
|
202
202
|
return game_pb.GamePoorItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
203
203
|
}
|
204
204
|
|
205
|
+
function serialize_game_GameRelationsRequest(arg) {
|
206
|
+
if (!(arg instanceof game_pb.GameRelationsRequest)) {
|
207
|
+
throw new Error('Expected argument of type game.GameRelationsRequest');
|
208
|
+
}
|
209
|
+
return Buffer.from(arg.serializeBinary());
|
210
|
+
}
|
211
|
+
|
212
|
+
function deserialize_game_GameRelationsRequest(buffer_arg) {
|
213
|
+
return game_pb.GameRelationsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
214
|
+
}
|
215
|
+
|
216
|
+
function serialize_game_GameRelationsResponse(arg) {
|
217
|
+
if (!(arg instanceof game_pb.GameRelationsResponse)) {
|
218
|
+
throw new Error('Expected argument of type game.GameRelationsResponse');
|
219
|
+
}
|
220
|
+
return Buffer.from(arg.serializeBinary());
|
221
|
+
}
|
222
|
+
|
223
|
+
function deserialize_game_GameRelationsResponse(buffer_arg) {
|
224
|
+
return game_pb.GameRelationsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
225
|
+
}
|
226
|
+
|
205
227
|
function serialize_game_GameRequest(arg) {
|
206
228
|
if (!(arg instanceof game_pb.GameRequest)) {
|
207
229
|
throw new Error('Expected argument of type game.GameRequest');
|
@@ -1100,6 +1122,28 @@ parseGames: {
|
|
1100
1122
|
responseSerialize: serialize_game_InitGameSessionResponse,
|
1101
1123
|
responseDeserialize: deserialize_game_InitGameSessionResponse,
|
1102
1124
|
},
|
1125
|
+
getCollectionsByGeo: {
|
1126
|
+
path: '/game.Game/getCollectionsByGeo',
|
1127
|
+
requestStream: false,
|
1128
|
+
responseStream: false,
|
1129
|
+
requestType: game_pb.GameRelationsRequest,
|
1130
|
+
responseType: game_pb.GameRelationsResponse,
|
1131
|
+
requestSerialize: serialize_game_GameRelationsRequest,
|
1132
|
+
requestDeserialize: deserialize_game_GameRelationsRequest,
|
1133
|
+
responseSerialize: serialize_game_GameRelationsResponse,
|
1134
|
+
responseDeserialize: deserialize_game_GameRelationsResponse,
|
1135
|
+
},
|
1136
|
+
getTagsByGeo: {
|
1137
|
+
path: '/game.Game/getTagsByGeo',
|
1138
|
+
requestStream: false,
|
1139
|
+
responseStream: false,
|
1140
|
+
requestType: game_pb.GameRelationsRequest,
|
1141
|
+
responseType: game_pb.GameRelationsResponse,
|
1142
|
+
requestSerialize: serialize_game_GameRelationsRequest,
|
1143
|
+
requestDeserialize: deserialize_game_GameRelationsRequest,
|
1144
|
+
responseSerialize: serialize_game_GameRelationsResponse,
|
1145
|
+
responseDeserialize: deserialize_game_GameRelationsResponse,
|
1146
|
+
},
|
1103
1147
|
// Vendor
|
1104
1148
|
processedVendorActionCallback: {
|
1105
1149
|
path: '/game.Game/processedVendorActionCallback',
|
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
|
@@ -14114,6 +14202,838 @@ proto.game.GetGameRequest.prototype.hasAdminSide = function() {
|
|
14114
14202
|
|
14115
14203
|
|
14116
14204
|
|
14205
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
14206
|
+
/**
|
14207
|
+
* Creates an object representation of this proto.
|
14208
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
14209
|
+
* Optional fields that are not set will be set to undefined.
|
14210
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
14211
|
+
* For the list of reserved names please see:
|
14212
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
14213
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
14214
|
+
* JSPB instance for transitional soy proto support:
|
14215
|
+
* http://goto/soy-param-migration
|
14216
|
+
* @return {!Object}
|
14217
|
+
*/
|
14218
|
+
proto.game.GameRelationsRequest.prototype.toObject = function(opt_includeInstance) {
|
14219
|
+
return proto.game.GameRelationsRequest.toObject(opt_includeInstance, this);
|
14220
|
+
};
|
14221
|
+
|
14222
|
+
|
14223
|
+
/**
|
14224
|
+
* Static version of the {@see toObject} method.
|
14225
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
14226
|
+
* the JSPB instance for transitional soy proto support:
|
14227
|
+
* http://goto/soy-param-migration
|
14228
|
+
* @param {!proto.game.GameRelationsRequest} msg The msg instance to transform.
|
14229
|
+
* @return {!Object}
|
14230
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
14231
|
+
*/
|
14232
|
+
proto.game.GameRelationsRequest.toObject = function(includeInstance, msg) {
|
14233
|
+
var f, obj = {
|
14234
|
+
gameId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
14235
|
+
instanceType: jspb.Message.getFieldWithDefault(msg, 2, "")
|
14236
|
+
};
|
14237
|
+
|
14238
|
+
if (includeInstance) {
|
14239
|
+
obj.$jspbMessageInstance = msg;
|
14240
|
+
}
|
14241
|
+
return obj;
|
14242
|
+
};
|
14243
|
+
}
|
14244
|
+
|
14245
|
+
|
14246
|
+
/**
|
14247
|
+
* Deserializes binary data (in protobuf wire format).
|
14248
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
14249
|
+
* @return {!proto.game.GameRelationsRequest}
|
14250
|
+
*/
|
14251
|
+
proto.game.GameRelationsRequest.deserializeBinary = function(bytes) {
|
14252
|
+
var reader = new jspb.BinaryReader(bytes);
|
14253
|
+
var msg = new proto.game.GameRelationsRequest;
|
14254
|
+
return proto.game.GameRelationsRequest.deserializeBinaryFromReader(msg, reader);
|
14255
|
+
};
|
14256
|
+
|
14257
|
+
|
14258
|
+
/**
|
14259
|
+
* Deserializes binary data (in protobuf wire format) from the
|
14260
|
+
* given reader into the given message object.
|
14261
|
+
* @param {!proto.game.GameRelationsRequest} msg The message object to deserialize into.
|
14262
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
14263
|
+
* @return {!proto.game.GameRelationsRequest}
|
14264
|
+
*/
|
14265
|
+
proto.game.GameRelationsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
14266
|
+
while (reader.nextField()) {
|
14267
|
+
if (reader.isEndGroup()) {
|
14268
|
+
break;
|
14269
|
+
}
|
14270
|
+
var field = reader.getFieldNumber();
|
14271
|
+
switch (field) {
|
14272
|
+
case 1:
|
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);
|
14279
|
+
break;
|
14280
|
+
default:
|
14281
|
+
reader.skipField();
|
14282
|
+
break;
|
14283
|
+
}
|
14284
|
+
}
|
14285
|
+
return msg;
|
14286
|
+
};
|
14287
|
+
|
14288
|
+
|
14289
|
+
/**
|
14290
|
+
* Serializes the message to binary data (in protobuf wire format).
|
14291
|
+
* @return {!Uint8Array}
|
14292
|
+
*/
|
14293
|
+
proto.game.GameRelationsRequest.prototype.serializeBinary = function() {
|
14294
|
+
var writer = new jspb.BinaryWriter();
|
14295
|
+
proto.game.GameRelationsRequest.serializeBinaryToWriter(this, writer);
|
14296
|
+
return writer.getResultBuffer();
|
14297
|
+
};
|
14298
|
+
|
14299
|
+
|
14300
|
+
/**
|
14301
|
+
* Serializes the given message to binary data (in protobuf wire
|
14302
|
+
* format), writing to the given BinaryWriter.
|
14303
|
+
* @param {!proto.game.GameRelationsRequest} message
|
14304
|
+
* @param {!jspb.BinaryWriter} writer
|
14305
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
14306
|
+
*/
|
14307
|
+
proto.game.GameRelationsRequest.serializeBinaryToWriter = function(message, writer) {
|
14308
|
+
var f = undefined;
|
14309
|
+
f = message.getGameId();
|
14310
|
+
if (f !== 0) {
|
14311
|
+
writer.writeInt32(
|
14312
|
+
1,
|
14313
|
+
f
|
14314
|
+
);
|
14315
|
+
}
|
14316
|
+
f = message.getInstanceType();
|
14317
|
+
if (f.length > 0) {
|
14318
|
+
writer.writeString(
|
14319
|
+
2,
|
14320
|
+
f
|
14321
|
+
);
|
14322
|
+
}
|
14323
|
+
};
|
14324
|
+
|
14325
|
+
|
14326
|
+
/**
|
14327
|
+
* optional int32 game_id = 1;
|
14328
|
+
* @return {number}
|
14329
|
+
*/
|
14330
|
+
proto.game.GameRelationsRequest.prototype.getGameId = function() {
|
14331
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
14332
|
+
};
|
14333
|
+
|
14334
|
+
|
14335
|
+
/**
|
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);
|
14341
|
+
};
|
14342
|
+
|
14343
|
+
|
14344
|
+
/**
|
14345
|
+
* optional string instance_type = 2;
|
14346
|
+
* @return {string}
|
14347
|
+
*/
|
14348
|
+
proto.game.GameRelationsRequest.prototype.getInstanceType = function() {
|
14349
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
14350
|
+
};
|
14351
|
+
|
14352
|
+
|
14353
|
+
/**
|
14354
|
+
* @param {string} value
|
14355
|
+
* @return {!proto.game.GameRelationsRequest} returns this
|
14356
|
+
*/
|
14357
|
+
proto.game.GameRelationsRequest.prototype.setInstanceType = function(value) {
|
14358
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
14359
|
+
};
|
14360
|
+
|
14361
|
+
|
14362
|
+
|
14363
|
+
/**
|
14364
|
+
* List of repeated fields within this message type.
|
14365
|
+
* @private {!Array<number>}
|
14366
|
+
* @const
|
14367
|
+
*/
|
14368
|
+
proto.game.GameRelationsResponse.repeatedFields_ = [1];
|
14369
|
+
|
14370
|
+
|
14371
|
+
|
14372
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
14373
|
+
/**
|
14374
|
+
* Creates an object representation of this proto.
|
14375
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
14376
|
+
* Optional fields that are not set will be set to undefined.
|
14377
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
14378
|
+
* For the list of reserved names please see:
|
14379
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
14380
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
14381
|
+
* JSPB instance for transitional soy proto support:
|
14382
|
+
* http://goto/soy-param-migration
|
14383
|
+
* @return {!Object}
|
14384
|
+
*/
|
14385
|
+
proto.game.GameRelationsResponse.prototype.toObject = function(opt_includeInstance) {
|
14386
|
+
return proto.game.GameRelationsResponse.toObject(opt_includeInstance, this);
|
14387
|
+
};
|
14388
|
+
|
14389
|
+
|
14390
|
+
/**
|
14391
|
+
* Static version of the {@see toObject} method.
|
14392
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
14393
|
+
* the JSPB instance for transitional soy proto support:
|
14394
|
+
* http://goto/soy-param-migration
|
14395
|
+
* @param {!proto.game.GameRelationsResponse} msg The msg instance to transform.
|
14396
|
+
* @return {!Object}
|
14397
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
14398
|
+
*/
|
14399
|
+
proto.game.GameRelationsResponse.toObject = function(includeInstance, msg) {
|
14400
|
+
var f, obj = {
|
14401
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
14402
|
+
proto.game.GameRelationItem.toObject, includeInstance)
|
14403
|
+
};
|
14404
|
+
|
14405
|
+
if (includeInstance) {
|
14406
|
+
obj.$jspbMessageInstance = msg;
|
14407
|
+
}
|
14408
|
+
return obj;
|
14409
|
+
};
|
14410
|
+
}
|
14411
|
+
|
14412
|
+
|
14413
|
+
/**
|
14414
|
+
* Deserializes binary data (in protobuf wire format).
|
14415
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
14416
|
+
* @return {!proto.game.GameRelationsResponse}
|
14417
|
+
*/
|
14418
|
+
proto.game.GameRelationsResponse.deserializeBinary = function(bytes) {
|
14419
|
+
var reader = new jspb.BinaryReader(bytes);
|
14420
|
+
var msg = new proto.game.GameRelationsResponse;
|
14421
|
+
return proto.game.GameRelationsResponse.deserializeBinaryFromReader(msg, reader);
|
14422
|
+
};
|
14423
|
+
|
14424
|
+
|
14425
|
+
/**
|
14426
|
+
* Deserializes binary data (in protobuf wire format) from the
|
14427
|
+
* given reader into the given message object.
|
14428
|
+
* @param {!proto.game.GameRelationsResponse} msg The message object to deserialize into.
|
14429
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
14430
|
+
* @return {!proto.game.GameRelationsResponse}
|
14431
|
+
*/
|
14432
|
+
proto.game.GameRelationsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
14433
|
+
while (reader.nextField()) {
|
14434
|
+
if (reader.isEndGroup()) {
|
14435
|
+
break;
|
14436
|
+
}
|
14437
|
+
var field = reader.getFieldNumber();
|
14438
|
+
switch (field) {
|
14439
|
+
case 1:
|
14440
|
+
var value = new proto.game.GameRelationItem;
|
14441
|
+
reader.readMessage(value,proto.game.GameRelationItem.deserializeBinaryFromReader);
|
14442
|
+
msg.addItems(value);
|
14443
|
+
break;
|
14444
|
+
default:
|
14445
|
+
reader.skipField();
|
14446
|
+
break;
|
14447
|
+
}
|
14448
|
+
}
|
14449
|
+
return msg;
|
14450
|
+
};
|
14451
|
+
|
14452
|
+
|
14453
|
+
/**
|
14454
|
+
* Serializes the message to binary data (in protobuf wire format).
|
14455
|
+
* @return {!Uint8Array}
|
14456
|
+
*/
|
14457
|
+
proto.game.GameRelationsResponse.prototype.serializeBinary = function() {
|
14458
|
+
var writer = new jspb.BinaryWriter();
|
14459
|
+
proto.game.GameRelationsResponse.serializeBinaryToWriter(this, writer);
|
14460
|
+
return writer.getResultBuffer();
|
14461
|
+
};
|
14462
|
+
|
14463
|
+
|
14464
|
+
/**
|
14465
|
+
* Serializes the given message to binary data (in protobuf wire
|
14466
|
+
* format), writing to the given BinaryWriter.
|
14467
|
+
* @param {!proto.game.GameRelationsResponse} message
|
14468
|
+
* @param {!jspb.BinaryWriter} writer
|
14469
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
14470
|
+
*/
|
14471
|
+
proto.game.GameRelationsResponse.serializeBinaryToWriter = function(message, writer) {
|
14472
|
+
var f = undefined;
|
14473
|
+
f = message.getItemsList();
|
14474
|
+
if (f.length > 0) {
|
14475
|
+
writer.writeRepeatedMessage(
|
14476
|
+
1,
|
14477
|
+
f,
|
14478
|
+
proto.game.GameRelationItem.serializeBinaryToWriter
|
14479
|
+
);
|
14480
|
+
}
|
14481
|
+
};
|
14482
|
+
|
14483
|
+
|
14484
|
+
/**
|
14485
|
+
* repeated GameRelationItem items = 1;
|
14486
|
+
* @return {!Array<!proto.game.GameRelationItem>}
|
14487
|
+
*/
|
14488
|
+
proto.game.GameRelationsResponse.prototype.getItemsList = function() {
|
14489
|
+
return /** @type{!Array<!proto.game.GameRelationItem>} */ (
|
14490
|
+
jspb.Message.getRepeatedWrapperField(this, proto.game.GameRelationItem, 1));
|
14491
|
+
};
|
14492
|
+
|
14493
|
+
|
14494
|
+
/**
|
14495
|
+
* @param {!Array<!proto.game.GameRelationItem>} value
|
14496
|
+
* @return {!proto.game.GameRelationsResponse} returns this
|
14497
|
+
*/
|
14498
|
+
proto.game.GameRelationsResponse.prototype.setItemsList = function(value) {
|
14499
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
14500
|
+
};
|
14501
|
+
|
14502
|
+
|
14503
|
+
/**
|
14504
|
+
* @param {!proto.game.GameRelationItem=} opt_value
|
14505
|
+
* @param {number=} opt_index
|
14506
|
+
* @return {!proto.game.GameRelationItem}
|
14507
|
+
*/
|
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);
|
14510
|
+
};
|
14511
|
+
|
14512
|
+
|
14513
|
+
/**
|
14514
|
+
* Clears the list making it empty but non-null.
|
14515
|
+
* @return {!proto.game.GameRelationsResponse} returns this
|
14516
|
+
*/
|
14517
|
+
proto.game.GameRelationsResponse.prototype.clearItemsList = function() {
|
14518
|
+
return this.setItemsList([]);
|
14519
|
+
};
|
14520
|
+
|
14521
|
+
|
14522
|
+
|
14523
|
+
/**
|
14524
|
+
* List of repeated fields within this message type.
|
14525
|
+
* @private {!Array<number>}
|
14526
|
+
* @const
|
14527
|
+
*/
|
14528
|
+
proto.game.GameRelationItem.repeatedFields_ = [5];
|
14529
|
+
|
14530
|
+
|
14531
|
+
|
14532
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
14533
|
+
/**
|
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}
|
14544
|
+
*/
|
14545
|
+
proto.game.GameRelationItem.prototype.toObject = function(opt_includeInstance) {
|
14546
|
+
return proto.game.GameRelationItem.toObject(opt_includeInstance, this);
|
14547
|
+
};
|
14548
|
+
|
14549
|
+
|
14550
|
+
/**
|
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
|
14558
|
+
*/
|
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;
|
14573
|
+
};
|
14574
|
+
}
|
14575
|
+
|
14576
|
+
|
14577
|
+
/**
|
14578
|
+
* Deserializes binary data (in protobuf wire format).
|
14579
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
14580
|
+
* @return {!proto.game.GameRelationItem}
|
14581
|
+
*/
|
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);
|
14586
|
+
};
|
14587
|
+
|
14588
|
+
|
14589
|
+
/**
|
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
|
+
|
14117
15037
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
14118
15038
|
/**
|
14119
15039
|
* Creates an object representation of this proto.
|