protobuf-platform 1.0.85 → 1.0.86

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 CHANGED
@@ -49,6 +49,8 @@ service Game {
49
49
  rpc processedVendorActionCallback(VendorActionRequest) returns (VendorActionResponse);
50
50
  rpc getIntegratorSettings(IntegratorSettingsRequest) returns (IntegratorSettingsResponse);
51
51
  rpc vendorSelfValidation(IntegratorSelfValidationRequest) returns (IntegratorSelfValidationResponse);
52
+ //Cross Services
53
+ rpc getGamesByUuids(GamesUuids) returns (GamePoorItemsResponse);
52
54
  }
53
55
 
54
56
  message PingRequest { string ping = 1; }
@@ -349,4 +351,11 @@ message VendorActionResponse {
349
351
  message UserBalanceGameSessionRequest {
350
352
  float balance_amount = 1;
351
353
  string balance_type = 2;
354
+ }
355
+ //Cross Services
356
+ message GamesUuids {
357
+ string game_uuids = 1;
358
+ }
359
+ message GamePoorItemsResponse {
360
+ repeated GameItem items = 1;
352
361
  }
@@ -125,6 +125,17 @@ function deserialize_game_GameItemsResponse(buffer_arg) {
125
125
  return game_pb.GameItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
126
126
  }
127
127
 
128
+ function serialize_game_GamePoorItemsResponse(arg) {
129
+ if (!(arg instanceof game_pb.GamePoorItemsResponse)) {
130
+ throw new Error('Expected argument of type game.GamePoorItemsResponse');
131
+ }
132
+ return Buffer.from(arg.serializeBinary());
133
+ }
134
+
135
+ function deserialize_game_GamePoorItemsResponse(buffer_arg) {
136
+ return game_pb.GamePoorItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
137
+ }
138
+
128
139
  function serialize_game_GameRequest(arg) {
129
140
  if (!(arg instanceof game_pb.GameRequest)) {
130
141
  throw new Error('Expected argument of type game.GameRequest');
@@ -169,6 +180,17 @@ function deserialize_game_GamesPriorityRequest(buffer_arg) {
169
180
  return game_pb.GamesPriorityRequest.deserializeBinary(new Uint8Array(buffer_arg));
170
181
  }
171
182
 
183
+ function serialize_game_GamesUuids(arg) {
184
+ if (!(arg instanceof game_pb.GamesUuids)) {
185
+ throw new Error('Expected argument of type game.GamesUuids');
186
+ }
187
+ return Buffer.from(arg.serializeBinary());
188
+ }
189
+
190
+ function deserialize_game_GamesUuids(buffer_arg) {
191
+ return game_pb.GamesUuids.deserializeBinary(new Uint8Array(buffer_arg));
192
+ }
193
+
172
194
  function serialize_game_GetCategoryRequest(arg) {
173
195
  if (!(arg instanceof game_pb.GetCategoryRequest)) {
174
196
  throw new Error('Expected argument of type game.GetCategoryRequest');
@@ -958,6 +980,18 @@ processedVendorActionCallback: {
958
980
  responseSerialize: serialize_game_IntegratorSelfValidationResponse,
959
981
  responseDeserialize: deserialize_game_IntegratorSelfValidationResponse,
960
982
  },
983
+ // Cross Services
984
+ getGamesByUuids: {
985
+ path: '/game.Game/getGamesByUuids',
986
+ requestStream: false,
987
+ responseStream: false,
988
+ requestType: game_pb.GamesUuids,
989
+ responseType: game_pb.GamePoorItemsResponse,
990
+ requestSerialize: serialize_game_GamesUuids,
991
+ requestDeserialize: deserialize_game_GamesUuids,
992
+ responseSerialize: serialize_game_GamePoorItemsResponse,
993
+ responseDeserialize: deserialize_game_GamePoorItemsResponse,
994
+ },
961
995
  };
962
996
 
963
997
  exports.GameClient = grpc.makeGenericClientConstructor(GameService);
package/game/game_pb.js CHANGED
@@ -40,12 +40,14 @@ goog.exportSymbol('proto.game.File', null, global);
40
40
  goog.exportSymbol('proto.game.GameItem', null, global);
41
41
  goog.exportSymbol('proto.game.GameItemRequest', null, global);
42
42
  goog.exportSymbol('proto.game.GameItemsResponse', null, global);
43
+ goog.exportSymbol('proto.game.GamePoorItemsResponse', null, global);
43
44
  goog.exportSymbol('proto.game.GameRequest', null, global);
44
45
  goog.exportSymbol('proto.game.GameRequest.RequestCase', null, global);
45
46
  goog.exportSymbol('proto.game.GameResponse', null, global);
46
47
  goog.exportSymbol('proto.game.GameSearchRequest', null, global);
47
48
  goog.exportSymbol('proto.game.GameStatusResponse', null, global);
48
49
  goog.exportSymbol('proto.game.GamesPriorityRequest', null, global);
50
+ goog.exportSymbol('proto.game.GamesUuids', null, global);
49
51
  goog.exportSymbol('proto.game.GetCategoryRequest', null, global);
50
52
  goog.exportSymbol('proto.game.GetCollectionRequest', null, global);
51
53
  goog.exportSymbol('proto.game.GetFileRequest', null, global);
@@ -1302,6 +1304,48 @@ if (goog.DEBUG && !COMPILED) {
1302
1304
  */
1303
1305
  proto.game.UserBalanceGameSessionRequest.displayName = 'proto.game.UserBalanceGameSessionRequest';
1304
1306
  }
1307
+ /**
1308
+ * Generated by JsPbCodeGenerator.
1309
+ * @param {Array=} opt_data Optional initial data array, typically from a
1310
+ * server response, or constructed directly in Javascript. The array is used
1311
+ * in place and becomes part of the constructed object. It is not cloned.
1312
+ * If no data is provided, the constructed object will be empty, but still
1313
+ * valid.
1314
+ * @extends {jspb.Message}
1315
+ * @constructor
1316
+ */
1317
+ proto.game.GamesUuids = function(opt_data) {
1318
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1319
+ };
1320
+ goog.inherits(proto.game.GamesUuids, jspb.Message);
1321
+ if (goog.DEBUG && !COMPILED) {
1322
+ /**
1323
+ * @public
1324
+ * @override
1325
+ */
1326
+ proto.game.GamesUuids.displayName = 'proto.game.GamesUuids';
1327
+ }
1328
+ /**
1329
+ * Generated by JsPbCodeGenerator.
1330
+ * @param {Array=} opt_data Optional initial data array, typically from a
1331
+ * server response, or constructed directly in Javascript. The array is used
1332
+ * in place and becomes part of the constructed object. It is not cloned.
1333
+ * If no data is provided, the constructed object will be empty, but still
1334
+ * valid.
1335
+ * @extends {jspb.Message}
1336
+ * @constructor
1337
+ */
1338
+ proto.game.GamePoorItemsResponse = function(opt_data) {
1339
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.GamePoorItemsResponse.repeatedFields_, null);
1340
+ };
1341
+ goog.inherits(proto.game.GamePoorItemsResponse, jspb.Message);
1342
+ if (goog.DEBUG && !COMPILED) {
1343
+ /**
1344
+ * @public
1345
+ * @override
1346
+ */
1347
+ proto.game.GamePoorItemsResponse.displayName = 'proto.game.GamePoorItemsResponse';
1348
+ }
1305
1349
 
1306
1350
 
1307
1351
 
@@ -14987,4 +15031,294 @@ proto.game.UserBalanceGameSessionRequest.prototype.setBalanceType = function(val
14987
15031
  };
14988
15032
 
14989
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.GamesUuids.prototype.toObject = function(opt_includeInstance) {
15051
+ return proto.game.GamesUuids.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.GamesUuids} msg The msg instance to transform.
15061
+ * @return {!Object}
15062
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15063
+ */
15064
+ proto.game.GamesUuids.toObject = function(includeInstance, msg) {
15065
+ var f, obj = {
15066
+ gameUuids: jspb.Message.getFieldWithDefault(msg, 1, "")
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.GamesUuids}
15081
+ */
15082
+ proto.game.GamesUuids.deserializeBinary = function(bytes) {
15083
+ var reader = new jspb.BinaryReader(bytes);
15084
+ var msg = new proto.game.GamesUuids;
15085
+ return proto.game.GamesUuids.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.GamesUuids} msg The message object to deserialize into.
15093
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15094
+ * @return {!proto.game.GamesUuids}
15095
+ */
15096
+ proto.game.GamesUuids.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 = /** @type {string} */ (reader.readString());
15105
+ msg.setGameUuids(value);
15106
+ break;
15107
+ default:
15108
+ reader.skipField();
15109
+ break;
15110
+ }
15111
+ }
15112
+ return msg;
15113
+ };
15114
+
15115
+
15116
+ /**
15117
+ * Serializes the message to binary data (in protobuf wire format).
15118
+ * @return {!Uint8Array}
15119
+ */
15120
+ proto.game.GamesUuids.prototype.serializeBinary = function() {
15121
+ var writer = new jspb.BinaryWriter();
15122
+ proto.game.GamesUuids.serializeBinaryToWriter(this, writer);
15123
+ return writer.getResultBuffer();
15124
+ };
15125
+
15126
+
15127
+ /**
15128
+ * Serializes the given message to binary data (in protobuf wire
15129
+ * format), writing to the given BinaryWriter.
15130
+ * @param {!proto.game.GamesUuids} message
15131
+ * @param {!jspb.BinaryWriter} writer
15132
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15133
+ */
15134
+ proto.game.GamesUuids.serializeBinaryToWriter = function(message, writer) {
15135
+ var f = undefined;
15136
+ f = message.getGameUuids();
15137
+ if (f.length > 0) {
15138
+ writer.writeString(
15139
+ 1,
15140
+ f
15141
+ );
15142
+ }
15143
+ };
15144
+
15145
+
15146
+ /**
15147
+ * optional string game_uuids = 1;
15148
+ * @return {string}
15149
+ */
15150
+ proto.game.GamesUuids.prototype.getGameUuids = function() {
15151
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
15152
+ };
15153
+
15154
+
15155
+ /**
15156
+ * @param {string} value
15157
+ * @return {!proto.game.GamesUuids} returns this
15158
+ */
15159
+ proto.game.GamesUuids.prototype.setGameUuids = function(value) {
15160
+ return jspb.Message.setProto3StringField(this, 1, value);
15161
+ };
15162
+
15163
+
15164
+
15165
+ /**
15166
+ * List of repeated fields within this message type.
15167
+ * @private {!Array<number>}
15168
+ * @const
15169
+ */
15170
+ proto.game.GamePoorItemsResponse.repeatedFields_ = [1];
15171
+
15172
+
15173
+
15174
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15175
+ /**
15176
+ * Creates an object representation of this proto.
15177
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15178
+ * Optional fields that are not set will be set to undefined.
15179
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15180
+ * For the list of reserved names please see:
15181
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15182
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15183
+ * JSPB instance for transitional soy proto support:
15184
+ * http://goto/soy-param-migration
15185
+ * @return {!Object}
15186
+ */
15187
+ proto.game.GamePoorItemsResponse.prototype.toObject = function(opt_includeInstance) {
15188
+ return proto.game.GamePoorItemsResponse.toObject(opt_includeInstance, this);
15189
+ };
15190
+
15191
+
15192
+ /**
15193
+ * Static version of the {@see toObject} method.
15194
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15195
+ * the JSPB instance for transitional soy proto support:
15196
+ * http://goto/soy-param-migration
15197
+ * @param {!proto.game.GamePoorItemsResponse} msg The msg instance to transform.
15198
+ * @return {!Object}
15199
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15200
+ */
15201
+ proto.game.GamePoorItemsResponse.toObject = function(includeInstance, msg) {
15202
+ var f, obj = {
15203
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
15204
+ proto.game.GameItem.toObject, includeInstance)
15205
+ };
15206
+
15207
+ if (includeInstance) {
15208
+ obj.$jspbMessageInstance = msg;
15209
+ }
15210
+ return obj;
15211
+ };
15212
+ }
15213
+
15214
+
15215
+ /**
15216
+ * Deserializes binary data (in protobuf wire format).
15217
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
15218
+ * @return {!proto.game.GamePoorItemsResponse}
15219
+ */
15220
+ proto.game.GamePoorItemsResponse.deserializeBinary = function(bytes) {
15221
+ var reader = new jspb.BinaryReader(bytes);
15222
+ var msg = new proto.game.GamePoorItemsResponse;
15223
+ return proto.game.GamePoorItemsResponse.deserializeBinaryFromReader(msg, reader);
15224
+ };
15225
+
15226
+
15227
+ /**
15228
+ * Deserializes binary data (in protobuf wire format) from the
15229
+ * given reader into the given message object.
15230
+ * @param {!proto.game.GamePoorItemsResponse} msg The message object to deserialize into.
15231
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15232
+ * @return {!proto.game.GamePoorItemsResponse}
15233
+ */
15234
+ proto.game.GamePoorItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
15235
+ while (reader.nextField()) {
15236
+ if (reader.isEndGroup()) {
15237
+ break;
15238
+ }
15239
+ var field = reader.getFieldNumber();
15240
+ switch (field) {
15241
+ case 1:
15242
+ var value = new proto.game.GameItem;
15243
+ reader.readMessage(value,proto.game.GameItem.deserializeBinaryFromReader);
15244
+ msg.addItems(value);
15245
+ break;
15246
+ default:
15247
+ reader.skipField();
15248
+ break;
15249
+ }
15250
+ }
15251
+ return msg;
15252
+ };
15253
+
15254
+
15255
+ /**
15256
+ * Serializes the message to binary data (in protobuf wire format).
15257
+ * @return {!Uint8Array}
15258
+ */
15259
+ proto.game.GamePoorItemsResponse.prototype.serializeBinary = function() {
15260
+ var writer = new jspb.BinaryWriter();
15261
+ proto.game.GamePoorItemsResponse.serializeBinaryToWriter(this, writer);
15262
+ return writer.getResultBuffer();
15263
+ };
15264
+
15265
+
15266
+ /**
15267
+ * Serializes the given message to binary data (in protobuf wire
15268
+ * format), writing to the given BinaryWriter.
15269
+ * @param {!proto.game.GamePoorItemsResponse} message
15270
+ * @param {!jspb.BinaryWriter} writer
15271
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15272
+ */
15273
+ proto.game.GamePoorItemsResponse.serializeBinaryToWriter = function(message, writer) {
15274
+ var f = undefined;
15275
+ f = message.getItemsList();
15276
+ if (f.length > 0) {
15277
+ writer.writeRepeatedMessage(
15278
+ 1,
15279
+ f,
15280
+ proto.game.GameItem.serializeBinaryToWriter
15281
+ );
15282
+ }
15283
+ };
15284
+
15285
+
15286
+ /**
15287
+ * repeated GameItem items = 1;
15288
+ * @return {!Array<!proto.game.GameItem>}
15289
+ */
15290
+ proto.game.GamePoorItemsResponse.prototype.getItemsList = function() {
15291
+ return /** @type{!Array<!proto.game.GameItem>} */ (
15292
+ jspb.Message.getRepeatedWrapperField(this, proto.game.GameItem, 1));
15293
+ };
15294
+
15295
+
15296
+ /**
15297
+ * @param {!Array<!proto.game.GameItem>} value
15298
+ * @return {!proto.game.GamePoorItemsResponse} returns this
15299
+ */
15300
+ proto.game.GamePoorItemsResponse.prototype.setItemsList = function(value) {
15301
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
15302
+ };
15303
+
15304
+
15305
+ /**
15306
+ * @param {!proto.game.GameItem=} opt_value
15307
+ * @param {number=} opt_index
15308
+ * @return {!proto.game.GameItem}
15309
+ */
15310
+ proto.game.GamePoorItemsResponse.prototype.addItems = function(opt_value, opt_index) {
15311
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.game.GameItem, opt_index);
15312
+ };
15313
+
15314
+
15315
+ /**
15316
+ * Clears the list making it empty but non-null.
15317
+ * @return {!proto.game.GamePoorItemsResponse} returns this
15318
+ */
15319
+ proto.game.GamePoorItemsResponse.prototype.clearItemsList = function() {
15320
+ return this.setItemsList([]);
15321
+ };
15322
+
15323
+
14990
15324
  goog.object.extend(exports, proto.game);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.85",
3
+ "version": "1.0.86",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {