protobuf-platform 1.0.93 → 1.0.94
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 +304 -0
- package/package.json +1 -1
package/game/game.proto
CHANGED
@@ -51,6 +51,7 @@ service Game {
|
|
51
51
|
rpc vendorSelfValidation(IntegratorSelfValidationRequest) returns (IntegratorSelfValidationResponse);
|
52
52
|
//Cross Services
|
53
53
|
rpc getGamesByUuids(GamesUuids) returns (GamePoorItemsResponse);
|
54
|
+
rpc getGameScopesByIds(ScopeRequest) returns (ScopeResponse);
|
54
55
|
}
|
55
56
|
|
56
57
|
message PingRequest { string ping = 1; }
|
@@ -370,4 +371,10 @@ message GamesUuids {
|
|
370
371
|
}
|
371
372
|
message GamePoorItemsResponse {
|
372
373
|
repeated GameItem items = 1;
|
374
|
+
}
|
375
|
+
message ScopeRequest {
|
376
|
+
string data = 1;
|
377
|
+
}
|
378
|
+
message ScopeResponse {
|
379
|
+
string data = 1;
|
373
380
|
}
|
package/game/game_grpc_pb.js
CHANGED
@@ -433,6 +433,28 @@ function deserialize_game_ProviderStatusResponse(buffer_arg) {
|
|
433
433
|
return game_pb.ProviderStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
434
434
|
}
|
435
435
|
|
436
|
+
function serialize_game_ScopeRequest(arg) {
|
437
|
+
if (!(arg instanceof game_pb.ScopeRequest)) {
|
438
|
+
throw new Error('Expected argument of type game.ScopeRequest');
|
439
|
+
}
|
440
|
+
return Buffer.from(arg.serializeBinary());
|
441
|
+
}
|
442
|
+
|
443
|
+
function deserialize_game_ScopeRequest(buffer_arg) {
|
444
|
+
return game_pb.ScopeRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
445
|
+
}
|
446
|
+
|
447
|
+
function serialize_game_ScopeResponse(arg) {
|
448
|
+
if (!(arg instanceof game_pb.ScopeResponse)) {
|
449
|
+
throw new Error('Expected argument of type game.ScopeResponse');
|
450
|
+
}
|
451
|
+
return Buffer.from(arg.serializeBinary());
|
452
|
+
}
|
453
|
+
|
454
|
+
function deserialize_game_ScopeResponse(buffer_arg) {
|
455
|
+
return game_pb.ScopeResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
456
|
+
}
|
457
|
+
|
436
458
|
function serialize_game_SearchGamesIntoCollectionsRequest(arg) {
|
437
459
|
if (!(arg instanceof game_pb.SearchGamesIntoCollectionsRequest)) {
|
438
460
|
throw new Error('Expected argument of type game.SearchGamesIntoCollectionsRequest');
|
@@ -992,6 +1014,17 @@ getGamesByUuids: {
|
|
992
1014
|
responseSerialize: serialize_game_GamePoorItemsResponse,
|
993
1015
|
responseDeserialize: deserialize_game_GamePoorItemsResponse,
|
994
1016
|
},
|
1017
|
+
getGameScopesByIds: {
|
1018
|
+
path: '/game.Game/getGameScopesByIds',
|
1019
|
+
requestStream: false,
|
1020
|
+
responseStream: false,
|
1021
|
+
requestType: game_pb.ScopeRequest,
|
1022
|
+
responseType: game_pb.ScopeResponse,
|
1023
|
+
requestSerialize: serialize_game_ScopeRequest,
|
1024
|
+
requestDeserialize: deserialize_game_ScopeRequest,
|
1025
|
+
responseSerialize: serialize_game_ScopeResponse,
|
1026
|
+
responseDeserialize: deserialize_game_ScopeResponse,
|
1027
|
+
},
|
995
1028
|
};
|
996
1029
|
|
997
1030
|
exports.GameClient = grpc.makeGenericClientConstructor(GameService);
|
package/game/game_pb.js
CHANGED
@@ -73,6 +73,8 @@ goog.exportSymbol('proto.game.ProviderRequest', null, global);
|
|
73
73
|
goog.exportSymbol('proto.game.ProviderRequest.RequestCase', null, global);
|
74
74
|
goog.exportSymbol('proto.game.ProviderResponse', null, global);
|
75
75
|
goog.exportSymbol('proto.game.ProviderStatusResponse', null, global);
|
76
|
+
goog.exportSymbol('proto.game.ScopeRequest', null, global);
|
77
|
+
goog.exportSymbol('proto.game.ScopeResponse', null, global);
|
76
78
|
goog.exportSymbol('proto.game.SearchGamesIntoCollectionsRequest', null, global);
|
77
79
|
goog.exportSymbol('proto.game.SearchGamesIntoTagsRequest', null, global);
|
78
80
|
goog.exportSymbol('proto.game.TagGamesRequest', null, global);
|
@@ -1346,6 +1348,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
1346
1348
|
*/
|
1347
1349
|
proto.game.GamePoorItemsResponse.displayName = 'proto.game.GamePoorItemsResponse';
|
1348
1350
|
}
|
1351
|
+
/**
|
1352
|
+
* Generated by JsPbCodeGenerator.
|
1353
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
1354
|
+
* server response, or constructed directly in Javascript. The array is used
|
1355
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
1356
|
+
* If no data is provided, the constructed object will be empty, but still
|
1357
|
+
* valid.
|
1358
|
+
* @extends {jspb.Message}
|
1359
|
+
* @constructor
|
1360
|
+
*/
|
1361
|
+
proto.game.ScopeRequest = function(opt_data) {
|
1362
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
1363
|
+
};
|
1364
|
+
goog.inherits(proto.game.ScopeRequest, jspb.Message);
|
1365
|
+
if (goog.DEBUG && !COMPILED) {
|
1366
|
+
/**
|
1367
|
+
* @public
|
1368
|
+
* @override
|
1369
|
+
*/
|
1370
|
+
proto.game.ScopeRequest.displayName = 'proto.game.ScopeRequest';
|
1371
|
+
}
|
1372
|
+
/**
|
1373
|
+
* Generated by JsPbCodeGenerator.
|
1374
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
1375
|
+
* server response, or constructed directly in Javascript. The array is used
|
1376
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
1377
|
+
* If no data is provided, the constructed object will be empty, but still
|
1378
|
+
* valid.
|
1379
|
+
* @extends {jspb.Message}
|
1380
|
+
* @constructor
|
1381
|
+
*/
|
1382
|
+
proto.game.ScopeResponse = function(opt_data) {
|
1383
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
1384
|
+
};
|
1385
|
+
goog.inherits(proto.game.ScopeResponse, jspb.Message);
|
1386
|
+
if (goog.DEBUG && !COMPILED) {
|
1387
|
+
/**
|
1388
|
+
* @public
|
1389
|
+
* @override
|
1390
|
+
*/
|
1391
|
+
proto.game.ScopeResponse.displayName = 'proto.game.ScopeResponse';
|
1392
|
+
}
|
1349
1393
|
|
1350
1394
|
|
1351
1395
|
|
@@ -15849,4 +15893,264 @@ proto.game.GamePoorItemsResponse.prototype.clearItemsList = function() {
|
|
15849
15893
|
};
|
15850
15894
|
|
15851
15895
|
|
15896
|
+
|
15897
|
+
|
15898
|
+
|
15899
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
15900
|
+
/**
|
15901
|
+
* Creates an object representation of this proto.
|
15902
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
15903
|
+
* Optional fields that are not set will be set to undefined.
|
15904
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
15905
|
+
* For the list of reserved names please see:
|
15906
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
15907
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
15908
|
+
* JSPB instance for transitional soy proto support:
|
15909
|
+
* http://goto/soy-param-migration
|
15910
|
+
* @return {!Object}
|
15911
|
+
*/
|
15912
|
+
proto.game.ScopeRequest.prototype.toObject = function(opt_includeInstance) {
|
15913
|
+
return proto.game.ScopeRequest.toObject(opt_includeInstance, this);
|
15914
|
+
};
|
15915
|
+
|
15916
|
+
|
15917
|
+
/**
|
15918
|
+
* Static version of the {@see toObject} method.
|
15919
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
15920
|
+
* the JSPB instance for transitional soy proto support:
|
15921
|
+
* http://goto/soy-param-migration
|
15922
|
+
* @param {!proto.game.ScopeRequest} msg The msg instance to transform.
|
15923
|
+
* @return {!Object}
|
15924
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
15925
|
+
*/
|
15926
|
+
proto.game.ScopeRequest.toObject = function(includeInstance, msg) {
|
15927
|
+
var f, obj = {
|
15928
|
+
data: jspb.Message.getFieldWithDefault(msg, 1, "")
|
15929
|
+
};
|
15930
|
+
|
15931
|
+
if (includeInstance) {
|
15932
|
+
obj.$jspbMessageInstance = msg;
|
15933
|
+
}
|
15934
|
+
return obj;
|
15935
|
+
};
|
15936
|
+
}
|
15937
|
+
|
15938
|
+
|
15939
|
+
/**
|
15940
|
+
* Deserializes binary data (in protobuf wire format).
|
15941
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
15942
|
+
* @return {!proto.game.ScopeRequest}
|
15943
|
+
*/
|
15944
|
+
proto.game.ScopeRequest.deserializeBinary = function(bytes) {
|
15945
|
+
var reader = new jspb.BinaryReader(bytes);
|
15946
|
+
var msg = new proto.game.ScopeRequest;
|
15947
|
+
return proto.game.ScopeRequest.deserializeBinaryFromReader(msg, reader);
|
15948
|
+
};
|
15949
|
+
|
15950
|
+
|
15951
|
+
/**
|
15952
|
+
* Deserializes binary data (in protobuf wire format) from the
|
15953
|
+
* given reader into the given message object.
|
15954
|
+
* @param {!proto.game.ScopeRequest} msg The message object to deserialize into.
|
15955
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
15956
|
+
* @return {!proto.game.ScopeRequest}
|
15957
|
+
*/
|
15958
|
+
proto.game.ScopeRequest.deserializeBinaryFromReader = function(msg, reader) {
|
15959
|
+
while (reader.nextField()) {
|
15960
|
+
if (reader.isEndGroup()) {
|
15961
|
+
break;
|
15962
|
+
}
|
15963
|
+
var field = reader.getFieldNumber();
|
15964
|
+
switch (field) {
|
15965
|
+
case 1:
|
15966
|
+
var value = /** @type {string} */ (reader.readString());
|
15967
|
+
msg.setData(value);
|
15968
|
+
break;
|
15969
|
+
default:
|
15970
|
+
reader.skipField();
|
15971
|
+
break;
|
15972
|
+
}
|
15973
|
+
}
|
15974
|
+
return msg;
|
15975
|
+
};
|
15976
|
+
|
15977
|
+
|
15978
|
+
/**
|
15979
|
+
* Serializes the message to binary data (in protobuf wire format).
|
15980
|
+
* @return {!Uint8Array}
|
15981
|
+
*/
|
15982
|
+
proto.game.ScopeRequest.prototype.serializeBinary = function() {
|
15983
|
+
var writer = new jspb.BinaryWriter();
|
15984
|
+
proto.game.ScopeRequest.serializeBinaryToWriter(this, writer);
|
15985
|
+
return writer.getResultBuffer();
|
15986
|
+
};
|
15987
|
+
|
15988
|
+
|
15989
|
+
/**
|
15990
|
+
* Serializes the given message to binary data (in protobuf wire
|
15991
|
+
* format), writing to the given BinaryWriter.
|
15992
|
+
* @param {!proto.game.ScopeRequest} message
|
15993
|
+
* @param {!jspb.BinaryWriter} writer
|
15994
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
15995
|
+
*/
|
15996
|
+
proto.game.ScopeRequest.serializeBinaryToWriter = function(message, writer) {
|
15997
|
+
var f = undefined;
|
15998
|
+
f = message.getData();
|
15999
|
+
if (f.length > 0) {
|
16000
|
+
writer.writeString(
|
16001
|
+
1,
|
16002
|
+
f
|
16003
|
+
);
|
16004
|
+
}
|
16005
|
+
};
|
16006
|
+
|
16007
|
+
|
16008
|
+
/**
|
16009
|
+
* optional string data = 1;
|
16010
|
+
* @return {string}
|
16011
|
+
*/
|
16012
|
+
proto.game.ScopeRequest.prototype.getData = function() {
|
16013
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
16014
|
+
};
|
16015
|
+
|
16016
|
+
|
16017
|
+
/**
|
16018
|
+
* @param {string} value
|
16019
|
+
* @return {!proto.game.ScopeRequest} returns this
|
16020
|
+
*/
|
16021
|
+
proto.game.ScopeRequest.prototype.setData = function(value) {
|
16022
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
16023
|
+
};
|
16024
|
+
|
16025
|
+
|
16026
|
+
|
16027
|
+
|
16028
|
+
|
16029
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
16030
|
+
/**
|
16031
|
+
* Creates an object representation of this proto.
|
16032
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
16033
|
+
* Optional fields that are not set will be set to undefined.
|
16034
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
16035
|
+
* For the list of reserved names please see:
|
16036
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
16037
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
16038
|
+
* JSPB instance for transitional soy proto support:
|
16039
|
+
* http://goto/soy-param-migration
|
16040
|
+
* @return {!Object}
|
16041
|
+
*/
|
16042
|
+
proto.game.ScopeResponse.prototype.toObject = function(opt_includeInstance) {
|
16043
|
+
return proto.game.ScopeResponse.toObject(opt_includeInstance, this);
|
16044
|
+
};
|
16045
|
+
|
16046
|
+
|
16047
|
+
/**
|
16048
|
+
* Static version of the {@see toObject} method.
|
16049
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
16050
|
+
* the JSPB instance for transitional soy proto support:
|
16051
|
+
* http://goto/soy-param-migration
|
16052
|
+
* @param {!proto.game.ScopeResponse} msg The msg instance to transform.
|
16053
|
+
* @return {!Object}
|
16054
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
16055
|
+
*/
|
16056
|
+
proto.game.ScopeResponse.toObject = function(includeInstance, msg) {
|
16057
|
+
var f, obj = {
|
16058
|
+
data: jspb.Message.getFieldWithDefault(msg, 1, "")
|
16059
|
+
};
|
16060
|
+
|
16061
|
+
if (includeInstance) {
|
16062
|
+
obj.$jspbMessageInstance = msg;
|
16063
|
+
}
|
16064
|
+
return obj;
|
16065
|
+
};
|
16066
|
+
}
|
16067
|
+
|
16068
|
+
|
16069
|
+
/**
|
16070
|
+
* Deserializes binary data (in protobuf wire format).
|
16071
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
16072
|
+
* @return {!proto.game.ScopeResponse}
|
16073
|
+
*/
|
16074
|
+
proto.game.ScopeResponse.deserializeBinary = function(bytes) {
|
16075
|
+
var reader = new jspb.BinaryReader(bytes);
|
16076
|
+
var msg = new proto.game.ScopeResponse;
|
16077
|
+
return proto.game.ScopeResponse.deserializeBinaryFromReader(msg, reader);
|
16078
|
+
};
|
16079
|
+
|
16080
|
+
|
16081
|
+
/**
|
16082
|
+
* Deserializes binary data (in protobuf wire format) from the
|
16083
|
+
* given reader into the given message object.
|
16084
|
+
* @param {!proto.game.ScopeResponse} msg The message object to deserialize into.
|
16085
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
16086
|
+
* @return {!proto.game.ScopeResponse}
|
16087
|
+
*/
|
16088
|
+
proto.game.ScopeResponse.deserializeBinaryFromReader = function(msg, reader) {
|
16089
|
+
while (reader.nextField()) {
|
16090
|
+
if (reader.isEndGroup()) {
|
16091
|
+
break;
|
16092
|
+
}
|
16093
|
+
var field = reader.getFieldNumber();
|
16094
|
+
switch (field) {
|
16095
|
+
case 1:
|
16096
|
+
var value = /** @type {string} */ (reader.readString());
|
16097
|
+
msg.setData(value);
|
16098
|
+
break;
|
16099
|
+
default:
|
16100
|
+
reader.skipField();
|
16101
|
+
break;
|
16102
|
+
}
|
16103
|
+
}
|
16104
|
+
return msg;
|
16105
|
+
};
|
16106
|
+
|
16107
|
+
|
16108
|
+
/**
|
16109
|
+
* Serializes the message to binary data (in protobuf wire format).
|
16110
|
+
* @return {!Uint8Array}
|
16111
|
+
*/
|
16112
|
+
proto.game.ScopeResponse.prototype.serializeBinary = function() {
|
16113
|
+
var writer = new jspb.BinaryWriter();
|
16114
|
+
proto.game.ScopeResponse.serializeBinaryToWriter(this, writer);
|
16115
|
+
return writer.getResultBuffer();
|
16116
|
+
};
|
16117
|
+
|
16118
|
+
|
16119
|
+
/**
|
16120
|
+
* Serializes the given message to binary data (in protobuf wire
|
16121
|
+
* format), writing to the given BinaryWriter.
|
16122
|
+
* @param {!proto.game.ScopeResponse} message
|
16123
|
+
* @param {!jspb.BinaryWriter} writer
|
16124
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
16125
|
+
*/
|
16126
|
+
proto.game.ScopeResponse.serializeBinaryToWriter = function(message, writer) {
|
16127
|
+
var f = undefined;
|
16128
|
+
f = message.getData();
|
16129
|
+
if (f.length > 0) {
|
16130
|
+
writer.writeString(
|
16131
|
+
1,
|
16132
|
+
f
|
16133
|
+
);
|
16134
|
+
}
|
16135
|
+
};
|
16136
|
+
|
16137
|
+
|
16138
|
+
/**
|
16139
|
+
* optional string data = 1;
|
16140
|
+
* @return {string}
|
16141
|
+
*/
|
16142
|
+
proto.game.ScopeResponse.prototype.getData = function() {
|
16143
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
16144
|
+
};
|
16145
|
+
|
16146
|
+
|
16147
|
+
/**
|
16148
|
+
* @param {string} value
|
16149
|
+
* @return {!proto.game.ScopeResponse} returns this
|
16150
|
+
*/
|
16151
|
+
proto.game.ScopeResponse.prototype.setData = function(value) {
|
16152
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
16153
|
+
};
|
16154
|
+
|
16155
|
+
|
15852
16156
|
goog.object.extend(exports, proto.game);
|