protobuf-platform 1.0.68 → 1.0.70
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 +7 -0
- package/game/game_grpc_pb.js +33 -0
- package/game/game_pb.js +230 -0
- package/package.json +1 -1
package/game/game.proto
CHANGED
@@ -19,6 +19,7 @@ service Game {
|
|
19
19
|
rpc readListCollections(PaginationRequest) returns (CollectionItemsResponse);
|
20
20
|
rpc addGamesToCollection(CollectionGamesRequest) returns (CollectionStatusResponse);
|
21
21
|
rpc removeGamesFromCollection(CollectionGamesRequest) returns (CollectionStatusResponse);
|
22
|
+
rpc updateGamesPriorityInCollection(GamesPriorityRequest) returns (CollectionStatusResponse);
|
22
23
|
//Tags
|
23
24
|
rpc createSingleTag(stream TagRequest) returns (TagResponse);
|
24
25
|
rpc readSingleTag(GetTagRequest) returns (TagResponse);
|
@@ -27,6 +28,7 @@ service Game {
|
|
27
28
|
rpc readListTags(PaginationRequest) returns (TagItemsResponse);
|
28
29
|
rpc addGamesToTag(TagGamesRequest) returns (TagStatusResponse);
|
29
30
|
rpc removeGamesFromTag(TagGamesRequest) returns (TagStatusResponse);
|
31
|
+
rpc updateGamesPriorityInTag(GamesPriorityRequest) returns (TagStatusResponse);
|
30
32
|
//Providers
|
31
33
|
rpc createSingleProvider(stream ProviderRequest) returns (ProviderResponse);
|
32
34
|
rpc readSingleProvider(GetProviderRequest) returns (ProviderResponse);
|
@@ -289,4 +291,9 @@ message SearchGamesIntoTagsRequest {
|
|
289
291
|
optional string geo = 2;
|
290
292
|
optional int32 limit = 3;
|
291
293
|
optional int32 offset = 4;
|
294
|
+
}
|
295
|
+
message GamesPriorityRequest {
|
296
|
+
int32 id = 1;
|
297
|
+
string game_priorities = 2;
|
298
|
+
optional string geo = 3;
|
292
299
|
}
|
package/game/game_grpc_pb.js
CHANGED
@@ -158,6 +158,17 @@ function deserialize_game_GameStatusResponse(buffer_arg) {
|
|
158
158
|
return game_pb.GameStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
159
159
|
}
|
160
160
|
|
161
|
+
function serialize_game_GamesPriorityRequest(arg) {
|
162
|
+
if (!(arg instanceof game_pb.GamesPriorityRequest)) {
|
163
|
+
throw new Error('Expected argument of type game.GamesPriorityRequest');
|
164
|
+
}
|
165
|
+
return Buffer.from(arg.serializeBinary());
|
166
|
+
}
|
167
|
+
|
168
|
+
function deserialize_game_GamesPriorityRequest(buffer_arg) {
|
169
|
+
return game_pb.GamesPriorityRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
170
|
+
}
|
171
|
+
|
161
172
|
function serialize_game_GetCategoryRequest(arg) {
|
162
173
|
if (!(arg instanceof game_pb.GetCategoryRequest)) {
|
163
174
|
throw new Error('Expected argument of type game.GetCategoryRequest');
|
@@ -558,6 +569,17 @@ createSingleCollection: {
|
|
558
569
|
responseSerialize: serialize_game_CollectionStatusResponse,
|
559
570
|
responseDeserialize: deserialize_game_CollectionStatusResponse,
|
560
571
|
},
|
572
|
+
updateGamesPriorityInCollection: {
|
573
|
+
path: '/game.Game/updateGamesPriorityInCollection',
|
574
|
+
requestStream: false,
|
575
|
+
responseStream: false,
|
576
|
+
requestType: game_pb.GamesPriorityRequest,
|
577
|
+
responseType: game_pb.CollectionStatusResponse,
|
578
|
+
requestSerialize: serialize_game_GamesPriorityRequest,
|
579
|
+
requestDeserialize: deserialize_game_GamesPriorityRequest,
|
580
|
+
responseSerialize: serialize_game_CollectionStatusResponse,
|
581
|
+
responseDeserialize: deserialize_game_CollectionStatusResponse,
|
582
|
+
},
|
561
583
|
// Tags
|
562
584
|
createSingleTag: {
|
563
585
|
path: '/game.Game/createSingleTag',
|
@@ -636,6 +658,17 @@ createSingleTag: {
|
|
636
658
|
responseSerialize: serialize_game_TagStatusResponse,
|
637
659
|
responseDeserialize: deserialize_game_TagStatusResponse,
|
638
660
|
},
|
661
|
+
updateGamesPriorityInTag: {
|
662
|
+
path: '/game.Game/updateGamesPriorityInTag',
|
663
|
+
requestStream: false,
|
664
|
+
responseStream: false,
|
665
|
+
requestType: game_pb.GamesPriorityRequest,
|
666
|
+
responseType: game_pb.TagStatusResponse,
|
667
|
+
requestSerialize: serialize_game_GamesPriorityRequest,
|
668
|
+
requestDeserialize: deserialize_game_GamesPriorityRequest,
|
669
|
+
responseSerialize: serialize_game_TagStatusResponse,
|
670
|
+
responseDeserialize: deserialize_game_TagStatusResponse,
|
671
|
+
},
|
639
672
|
// Providers
|
640
673
|
createSingleProvider: {
|
641
674
|
path: '/game.Game/createSingleProvider',
|
package/game/game_pb.js
CHANGED
@@ -44,6 +44,7 @@ goog.exportSymbol('proto.game.GameRequest', null, global);
|
|
44
44
|
goog.exportSymbol('proto.game.GameRequest.RequestCase', null, global);
|
45
45
|
goog.exportSymbol('proto.game.GameResponse', null, global);
|
46
46
|
goog.exportSymbol('proto.game.GameStatusResponse', null, global);
|
47
|
+
goog.exportSymbol('proto.game.GamesPriorityRequest', null, global);
|
47
48
|
goog.exportSymbol('proto.game.GetCategoryRequest', null, global);
|
48
49
|
goog.exportSymbol('proto.game.GetCollectionRequest', null, global);
|
49
50
|
goog.exportSymbol('proto.game.GetFileRequest', null, global);
|
@@ -1038,6 +1039,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
1038
1039
|
*/
|
1039
1040
|
proto.game.SearchGamesIntoTagsRequest.displayName = 'proto.game.SearchGamesIntoTagsRequest';
|
1040
1041
|
}
|
1042
|
+
/**
|
1043
|
+
* Generated by JsPbCodeGenerator.
|
1044
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
1045
|
+
* server response, or constructed directly in Javascript. The array is used
|
1046
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
1047
|
+
* If no data is provided, the constructed object will be empty, but still
|
1048
|
+
* valid.
|
1049
|
+
* @extends {jspb.Message}
|
1050
|
+
* @constructor
|
1051
|
+
*/
|
1052
|
+
proto.game.GamesPriorityRequest = function(opt_data) {
|
1053
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
1054
|
+
};
|
1055
|
+
goog.inherits(proto.game.GamesPriorityRequest, jspb.Message);
|
1056
|
+
if (goog.DEBUG && !COMPILED) {
|
1057
|
+
/**
|
1058
|
+
* @public
|
1059
|
+
* @override
|
1060
|
+
*/
|
1061
|
+
proto.game.GamesPriorityRequest.displayName = 'proto.game.GamesPriorityRequest';
|
1062
|
+
}
|
1041
1063
|
|
1042
1064
|
|
1043
1065
|
|
@@ -12176,4 +12198,212 @@ proto.game.SearchGamesIntoTagsRequest.prototype.hasOffset = function() {
|
|
12176
12198
|
};
|
12177
12199
|
|
12178
12200
|
|
12201
|
+
|
12202
|
+
|
12203
|
+
|
12204
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
12205
|
+
/**
|
12206
|
+
* Creates an object representation of this proto.
|
12207
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
12208
|
+
* Optional fields that are not set will be set to undefined.
|
12209
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
12210
|
+
* For the list of reserved names please see:
|
12211
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
12212
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
12213
|
+
* JSPB instance for transitional soy proto support:
|
12214
|
+
* http://goto/soy-param-migration
|
12215
|
+
* @return {!Object}
|
12216
|
+
*/
|
12217
|
+
proto.game.GamesPriorityRequest.prototype.toObject = function(opt_includeInstance) {
|
12218
|
+
return proto.game.GamesPriorityRequest.toObject(opt_includeInstance, this);
|
12219
|
+
};
|
12220
|
+
|
12221
|
+
|
12222
|
+
/**
|
12223
|
+
* Static version of the {@see toObject} method.
|
12224
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
12225
|
+
* the JSPB instance for transitional soy proto support:
|
12226
|
+
* http://goto/soy-param-migration
|
12227
|
+
* @param {!proto.game.GamesPriorityRequest} msg The msg instance to transform.
|
12228
|
+
* @return {!Object}
|
12229
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
12230
|
+
*/
|
12231
|
+
proto.game.GamesPriorityRequest.toObject = function(includeInstance, msg) {
|
12232
|
+
var f, obj = {
|
12233
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
12234
|
+
gamePriorities: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
12235
|
+
geo: jspb.Message.getFieldWithDefault(msg, 3, "")
|
12236
|
+
};
|
12237
|
+
|
12238
|
+
if (includeInstance) {
|
12239
|
+
obj.$jspbMessageInstance = msg;
|
12240
|
+
}
|
12241
|
+
return obj;
|
12242
|
+
};
|
12243
|
+
}
|
12244
|
+
|
12245
|
+
|
12246
|
+
/**
|
12247
|
+
* Deserializes binary data (in protobuf wire format).
|
12248
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
12249
|
+
* @return {!proto.game.GamesPriorityRequest}
|
12250
|
+
*/
|
12251
|
+
proto.game.GamesPriorityRequest.deserializeBinary = function(bytes) {
|
12252
|
+
var reader = new jspb.BinaryReader(bytes);
|
12253
|
+
var msg = new proto.game.GamesPriorityRequest;
|
12254
|
+
return proto.game.GamesPriorityRequest.deserializeBinaryFromReader(msg, reader);
|
12255
|
+
};
|
12256
|
+
|
12257
|
+
|
12258
|
+
/**
|
12259
|
+
* Deserializes binary data (in protobuf wire format) from the
|
12260
|
+
* given reader into the given message object.
|
12261
|
+
* @param {!proto.game.GamesPriorityRequest} msg The message object to deserialize into.
|
12262
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
12263
|
+
* @return {!proto.game.GamesPriorityRequest}
|
12264
|
+
*/
|
12265
|
+
proto.game.GamesPriorityRequest.deserializeBinaryFromReader = function(msg, reader) {
|
12266
|
+
while (reader.nextField()) {
|
12267
|
+
if (reader.isEndGroup()) {
|
12268
|
+
break;
|
12269
|
+
}
|
12270
|
+
var field = reader.getFieldNumber();
|
12271
|
+
switch (field) {
|
12272
|
+
case 1:
|
12273
|
+
var value = /** @type {number} */ (reader.readInt32());
|
12274
|
+
msg.setId(value);
|
12275
|
+
break;
|
12276
|
+
case 2:
|
12277
|
+
var value = /** @type {string} */ (reader.readString());
|
12278
|
+
msg.setGamePriorities(value);
|
12279
|
+
break;
|
12280
|
+
case 3:
|
12281
|
+
var value = /** @type {string} */ (reader.readString());
|
12282
|
+
msg.setGeo(value);
|
12283
|
+
break;
|
12284
|
+
default:
|
12285
|
+
reader.skipField();
|
12286
|
+
break;
|
12287
|
+
}
|
12288
|
+
}
|
12289
|
+
return msg;
|
12290
|
+
};
|
12291
|
+
|
12292
|
+
|
12293
|
+
/**
|
12294
|
+
* Serializes the message to binary data (in protobuf wire format).
|
12295
|
+
* @return {!Uint8Array}
|
12296
|
+
*/
|
12297
|
+
proto.game.GamesPriorityRequest.prototype.serializeBinary = function() {
|
12298
|
+
var writer = new jspb.BinaryWriter();
|
12299
|
+
proto.game.GamesPriorityRequest.serializeBinaryToWriter(this, writer);
|
12300
|
+
return writer.getResultBuffer();
|
12301
|
+
};
|
12302
|
+
|
12303
|
+
|
12304
|
+
/**
|
12305
|
+
* Serializes the given message to binary data (in protobuf wire
|
12306
|
+
* format), writing to the given BinaryWriter.
|
12307
|
+
* @param {!proto.game.GamesPriorityRequest} message
|
12308
|
+
* @param {!jspb.BinaryWriter} writer
|
12309
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
12310
|
+
*/
|
12311
|
+
proto.game.GamesPriorityRequest.serializeBinaryToWriter = function(message, writer) {
|
12312
|
+
var f = undefined;
|
12313
|
+
f = message.getId();
|
12314
|
+
if (f !== 0) {
|
12315
|
+
writer.writeInt32(
|
12316
|
+
1,
|
12317
|
+
f
|
12318
|
+
);
|
12319
|
+
}
|
12320
|
+
f = message.getGamePriorities();
|
12321
|
+
if (f.length > 0) {
|
12322
|
+
writer.writeString(
|
12323
|
+
2,
|
12324
|
+
f
|
12325
|
+
);
|
12326
|
+
}
|
12327
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
12328
|
+
if (f != null) {
|
12329
|
+
writer.writeString(
|
12330
|
+
3,
|
12331
|
+
f
|
12332
|
+
);
|
12333
|
+
}
|
12334
|
+
};
|
12335
|
+
|
12336
|
+
|
12337
|
+
/**
|
12338
|
+
* optional int32 id = 1;
|
12339
|
+
* @return {number}
|
12340
|
+
*/
|
12341
|
+
proto.game.GamesPriorityRequest.prototype.getId = function() {
|
12342
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
12343
|
+
};
|
12344
|
+
|
12345
|
+
|
12346
|
+
/**
|
12347
|
+
* @param {number} value
|
12348
|
+
* @return {!proto.game.GamesPriorityRequest} returns this
|
12349
|
+
*/
|
12350
|
+
proto.game.GamesPriorityRequest.prototype.setId = function(value) {
|
12351
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
12352
|
+
};
|
12353
|
+
|
12354
|
+
|
12355
|
+
/**
|
12356
|
+
* optional string game_priorities = 2;
|
12357
|
+
* @return {string}
|
12358
|
+
*/
|
12359
|
+
proto.game.GamesPriorityRequest.prototype.getGamePriorities = function() {
|
12360
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
12361
|
+
};
|
12362
|
+
|
12363
|
+
|
12364
|
+
/**
|
12365
|
+
* @param {string} value
|
12366
|
+
* @return {!proto.game.GamesPriorityRequest} returns this
|
12367
|
+
*/
|
12368
|
+
proto.game.GamesPriorityRequest.prototype.setGamePriorities = function(value) {
|
12369
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
12370
|
+
};
|
12371
|
+
|
12372
|
+
|
12373
|
+
/**
|
12374
|
+
* optional string geo = 3;
|
12375
|
+
* @return {string}
|
12376
|
+
*/
|
12377
|
+
proto.game.GamesPriorityRequest.prototype.getGeo = function() {
|
12378
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
12379
|
+
};
|
12380
|
+
|
12381
|
+
|
12382
|
+
/**
|
12383
|
+
* @param {string} value
|
12384
|
+
* @return {!proto.game.GamesPriorityRequest} returns this
|
12385
|
+
*/
|
12386
|
+
proto.game.GamesPriorityRequest.prototype.setGeo = function(value) {
|
12387
|
+
return jspb.Message.setField(this, 3, value);
|
12388
|
+
};
|
12389
|
+
|
12390
|
+
|
12391
|
+
/**
|
12392
|
+
* Clears the field making it undefined.
|
12393
|
+
* @return {!proto.game.GamesPriorityRequest} returns this
|
12394
|
+
*/
|
12395
|
+
proto.game.GamesPriorityRequest.prototype.clearGeo = function() {
|
12396
|
+
return jspb.Message.setField(this, 3, undefined);
|
12397
|
+
};
|
12398
|
+
|
12399
|
+
|
12400
|
+
/**
|
12401
|
+
* Returns whether this field is set.
|
12402
|
+
* @return {boolean}
|
12403
|
+
*/
|
12404
|
+
proto.game.GamesPriorityRequest.prototype.hasGeo = function() {
|
12405
|
+
return jspb.Message.getField(this, 3) != null;
|
12406
|
+
};
|
12407
|
+
|
12408
|
+
|
12179
12409
|
goog.object.extend(exports, proto.game);
|