protobuf-platform 1.0.85 → 1.0.87

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; }
@@ -262,6 +264,7 @@ message GameItem {
262
264
  optional int32 has_free_spins = 10;
263
265
  optional string collections = 11;
264
266
  optional string tags = 12;
267
+ optional string uuid = 13;
265
268
  }
266
269
  //Game CRUD | Requests
267
270
  message GameRequest {
@@ -349,4 +352,11 @@ message VendorActionResponse {
349
352
  message UserBalanceGameSessionRequest {
350
353
  float balance_amount = 1;
351
354
  string balance_type = 2;
355
+ }
356
+ //Cross Services
357
+ message GamesUuids {
358
+ string game_uuids = 1;
359
+ }
360
+ message GamePoorItemsResponse {
361
+ repeated GameItem items = 1;
352
362
  }
@@ -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
 
@@ -10689,7 +10733,8 @@ proto.game.GameItem.toObject = function(includeInstance, msg) {
10689
10733
  isMobile: jspb.Message.getFieldWithDefault(msg, 9, 0),
10690
10734
  hasFreeSpins: jspb.Message.getFieldWithDefault(msg, 10, 0),
10691
10735
  collections: jspb.Message.getFieldWithDefault(msg, 11, ""),
10692
- tags: jspb.Message.getFieldWithDefault(msg, 12, "")
10736
+ tags: jspb.Message.getFieldWithDefault(msg, 12, ""),
10737
+ uuid: jspb.Message.getFieldWithDefault(msg, 13, "")
10693
10738
  };
10694
10739
 
10695
10740
  if (includeInstance) {
@@ -10775,6 +10820,10 @@ proto.game.GameItem.deserializeBinaryFromReader = function(msg, reader) {
10775
10820
  var value = /** @type {string} */ (reader.readString());
10776
10821
  msg.setTags(value);
10777
10822
  break;
10823
+ case 13:
10824
+ var value = /** @type {string} */ (reader.readString());
10825
+ msg.setUuid(value);
10826
+ break;
10778
10827
  default:
10779
10828
  reader.skipField();
10780
10829
  break;
@@ -10889,6 +10938,13 @@ proto.game.GameItem.serializeBinaryToWriter = function(message, writer) {
10889
10938
  f
10890
10939
  );
10891
10940
  }
10941
+ f = /** @type {string} */ (jspb.Message.getField(message, 13));
10942
+ if (f != null) {
10943
+ writer.writeString(
10944
+ 13,
10945
+ f
10946
+ );
10947
+ }
10892
10948
  };
10893
10949
 
10894
10950
 
@@ -11325,6 +11381,42 @@ proto.game.GameItem.prototype.hasTags = function() {
11325
11381
  };
11326
11382
 
11327
11383
 
11384
+ /**
11385
+ * optional string uuid = 13;
11386
+ * @return {string}
11387
+ */
11388
+ proto.game.GameItem.prototype.getUuid = function() {
11389
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
11390
+ };
11391
+
11392
+
11393
+ /**
11394
+ * @param {string} value
11395
+ * @return {!proto.game.GameItem} returns this
11396
+ */
11397
+ proto.game.GameItem.prototype.setUuid = function(value) {
11398
+ return jspb.Message.setField(this, 13, value);
11399
+ };
11400
+
11401
+
11402
+ /**
11403
+ * Clears the field making it undefined.
11404
+ * @return {!proto.game.GameItem} returns this
11405
+ */
11406
+ proto.game.GameItem.prototype.clearUuid = function() {
11407
+ return jspb.Message.setField(this, 13, undefined);
11408
+ };
11409
+
11410
+
11411
+ /**
11412
+ * Returns whether this field is set.
11413
+ * @return {boolean}
11414
+ */
11415
+ proto.game.GameItem.prototype.hasUuid = function() {
11416
+ return jspb.Message.getField(this, 13) != null;
11417
+ };
11418
+
11419
+
11328
11420
 
11329
11421
  /**
11330
11422
  * Oneof group definitions for this message. Each group defines the field
@@ -14987,4 +15079,294 @@ proto.game.UserBalanceGameSessionRequest.prototype.setBalanceType = function(val
14987
15079
  };
14988
15080
 
14989
15081
 
15082
+
15083
+
15084
+
15085
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15086
+ /**
15087
+ * Creates an object representation of this proto.
15088
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15089
+ * Optional fields that are not set will be set to undefined.
15090
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15091
+ * For the list of reserved names please see:
15092
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15093
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15094
+ * JSPB instance for transitional soy proto support:
15095
+ * http://goto/soy-param-migration
15096
+ * @return {!Object}
15097
+ */
15098
+ proto.game.GamesUuids.prototype.toObject = function(opt_includeInstance) {
15099
+ return proto.game.GamesUuids.toObject(opt_includeInstance, this);
15100
+ };
15101
+
15102
+
15103
+ /**
15104
+ * Static version of the {@see toObject} method.
15105
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15106
+ * the JSPB instance for transitional soy proto support:
15107
+ * http://goto/soy-param-migration
15108
+ * @param {!proto.game.GamesUuids} msg The msg instance to transform.
15109
+ * @return {!Object}
15110
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15111
+ */
15112
+ proto.game.GamesUuids.toObject = function(includeInstance, msg) {
15113
+ var f, obj = {
15114
+ gameUuids: jspb.Message.getFieldWithDefault(msg, 1, "")
15115
+ };
15116
+
15117
+ if (includeInstance) {
15118
+ obj.$jspbMessageInstance = msg;
15119
+ }
15120
+ return obj;
15121
+ };
15122
+ }
15123
+
15124
+
15125
+ /**
15126
+ * Deserializes binary data (in protobuf wire format).
15127
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
15128
+ * @return {!proto.game.GamesUuids}
15129
+ */
15130
+ proto.game.GamesUuids.deserializeBinary = function(bytes) {
15131
+ var reader = new jspb.BinaryReader(bytes);
15132
+ var msg = new proto.game.GamesUuids;
15133
+ return proto.game.GamesUuids.deserializeBinaryFromReader(msg, reader);
15134
+ };
15135
+
15136
+
15137
+ /**
15138
+ * Deserializes binary data (in protobuf wire format) from the
15139
+ * given reader into the given message object.
15140
+ * @param {!proto.game.GamesUuids} msg The message object to deserialize into.
15141
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15142
+ * @return {!proto.game.GamesUuids}
15143
+ */
15144
+ proto.game.GamesUuids.deserializeBinaryFromReader = function(msg, reader) {
15145
+ while (reader.nextField()) {
15146
+ if (reader.isEndGroup()) {
15147
+ break;
15148
+ }
15149
+ var field = reader.getFieldNumber();
15150
+ switch (field) {
15151
+ case 1:
15152
+ var value = /** @type {string} */ (reader.readString());
15153
+ msg.setGameUuids(value);
15154
+ break;
15155
+ default:
15156
+ reader.skipField();
15157
+ break;
15158
+ }
15159
+ }
15160
+ return msg;
15161
+ };
15162
+
15163
+
15164
+ /**
15165
+ * Serializes the message to binary data (in protobuf wire format).
15166
+ * @return {!Uint8Array}
15167
+ */
15168
+ proto.game.GamesUuids.prototype.serializeBinary = function() {
15169
+ var writer = new jspb.BinaryWriter();
15170
+ proto.game.GamesUuids.serializeBinaryToWriter(this, writer);
15171
+ return writer.getResultBuffer();
15172
+ };
15173
+
15174
+
15175
+ /**
15176
+ * Serializes the given message to binary data (in protobuf wire
15177
+ * format), writing to the given BinaryWriter.
15178
+ * @param {!proto.game.GamesUuids} message
15179
+ * @param {!jspb.BinaryWriter} writer
15180
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15181
+ */
15182
+ proto.game.GamesUuids.serializeBinaryToWriter = function(message, writer) {
15183
+ var f = undefined;
15184
+ f = message.getGameUuids();
15185
+ if (f.length > 0) {
15186
+ writer.writeString(
15187
+ 1,
15188
+ f
15189
+ );
15190
+ }
15191
+ };
15192
+
15193
+
15194
+ /**
15195
+ * optional string game_uuids = 1;
15196
+ * @return {string}
15197
+ */
15198
+ proto.game.GamesUuids.prototype.getGameUuids = function() {
15199
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
15200
+ };
15201
+
15202
+
15203
+ /**
15204
+ * @param {string} value
15205
+ * @return {!proto.game.GamesUuids} returns this
15206
+ */
15207
+ proto.game.GamesUuids.prototype.setGameUuids = function(value) {
15208
+ return jspb.Message.setProto3StringField(this, 1, value);
15209
+ };
15210
+
15211
+
15212
+
15213
+ /**
15214
+ * List of repeated fields within this message type.
15215
+ * @private {!Array<number>}
15216
+ * @const
15217
+ */
15218
+ proto.game.GamePoorItemsResponse.repeatedFields_ = [1];
15219
+
15220
+
15221
+
15222
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15223
+ /**
15224
+ * Creates an object representation of this proto.
15225
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15226
+ * Optional fields that are not set will be set to undefined.
15227
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15228
+ * For the list of reserved names please see:
15229
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15230
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15231
+ * JSPB instance for transitional soy proto support:
15232
+ * http://goto/soy-param-migration
15233
+ * @return {!Object}
15234
+ */
15235
+ proto.game.GamePoorItemsResponse.prototype.toObject = function(opt_includeInstance) {
15236
+ return proto.game.GamePoorItemsResponse.toObject(opt_includeInstance, this);
15237
+ };
15238
+
15239
+
15240
+ /**
15241
+ * Static version of the {@see toObject} method.
15242
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15243
+ * the JSPB instance for transitional soy proto support:
15244
+ * http://goto/soy-param-migration
15245
+ * @param {!proto.game.GamePoorItemsResponse} msg The msg instance to transform.
15246
+ * @return {!Object}
15247
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15248
+ */
15249
+ proto.game.GamePoorItemsResponse.toObject = function(includeInstance, msg) {
15250
+ var f, obj = {
15251
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
15252
+ proto.game.GameItem.toObject, includeInstance)
15253
+ };
15254
+
15255
+ if (includeInstance) {
15256
+ obj.$jspbMessageInstance = msg;
15257
+ }
15258
+ return obj;
15259
+ };
15260
+ }
15261
+
15262
+
15263
+ /**
15264
+ * Deserializes binary data (in protobuf wire format).
15265
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
15266
+ * @return {!proto.game.GamePoorItemsResponse}
15267
+ */
15268
+ proto.game.GamePoorItemsResponse.deserializeBinary = function(bytes) {
15269
+ var reader = new jspb.BinaryReader(bytes);
15270
+ var msg = new proto.game.GamePoorItemsResponse;
15271
+ return proto.game.GamePoorItemsResponse.deserializeBinaryFromReader(msg, reader);
15272
+ };
15273
+
15274
+
15275
+ /**
15276
+ * Deserializes binary data (in protobuf wire format) from the
15277
+ * given reader into the given message object.
15278
+ * @param {!proto.game.GamePoorItemsResponse} msg The message object to deserialize into.
15279
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15280
+ * @return {!proto.game.GamePoorItemsResponse}
15281
+ */
15282
+ proto.game.GamePoorItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
15283
+ while (reader.nextField()) {
15284
+ if (reader.isEndGroup()) {
15285
+ break;
15286
+ }
15287
+ var field = reader.getFieldNumber();
15288
+ switch (field) {
15289
+ case 1:
15290
+ var value = new proto.game.GameItem;
15291
+ reader.readMessage(value,proto.game.GameItem.deserializeBinaryFromReader);
15292
+ msg.addItems(value);
15293
+ break;
15294
+ default:
15295
+ reader.skipField();
15296
+ break;
15297
+ }
15298
+ }
15299
+ return msg;
15300
+ };
15301
+
15302
+
15303
+ /**
15304
+ * Serializes the message to binary data (in protobuf wire format).
15305
+ * @return {!Uint8Array}
15306
+ */
15307
+ proto.game.GamePoorItemsResponse.prototype.serializeBinary = function() {
15308
+ var writer = new jspb.BinaryWriter();
15309
+ proto.game.GamePoorItemsResponse.serializeBinaryToWriter(this, writer);
15310
+ return writer.getResultBuffer();
15311
+ };
15312
+
15313
+
15314
+ /**
15315
+ * Serializes the given message to binary data (in protobuf wire
15316
+ * format), writing to the given BinaryWriter.
15317
+ * @param {!proto.game.GamePoorItemsResponse} message
15318
+ * @param {!jspb.BinaryWriter} writer
15319
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15320
+ */
15321
+ proto.game.GamePoorItemsResponse.serializeBinaryToWriter = function(message, writer) {
15322
+ var f = undefined;
15323
+ f = message.getItemsList();
15324
+ if (f.length > 0) {
15325
+ writer.writeRepeatedMessage(
15326
+ 1,
15327
+ f,
15328
+ proto.game.GameItem.serializeBinaryToWriter
15329
+ );
15330
+ }
15331
+ };
15332
+
15333
+
15334
+ /**
15335
+ * repeated GameItem items = 1;
15336
+ * @return {!Array<!proto.game.GameItem>}
15337
+ */
15338
+ proto.game.GamePoorItemsResponse.prototype.getItemsList = function() {
15339
+ return /** @type{!Array<!proto.game.GameItem>} */ (
15340
+ jspb.Message.getRepeatedWrapperField(this, proto.game.GameItem, 1));
15341
+ };
15342
+
15343
+
15344
+ /**
15345
+ * @param {!Array<!proto.game.GameItem>} value
15346
+ * @return {!proto.game.GamePoorItemsResponse} returns this
15347
+ */
15348
+ proto.game.GamePoorItemsResponse.prototype.setItemsList = function(value) {
15349
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
15350
+ };
15351
+
15352
+
15353
+ /**
15354
+ * @param {!proto.game.GameItem=} opt_value
15355
+ * @param {number=} opt_index
15356
+ * @return {!proto.game.GameItem}
15357
+ */
15358
+ proto.game.GamePoorItemsResponse.prototype.addItems = function(opt_value, opt_index) {
15359
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.game.GameItem, opt_index);
15360
+ };
15361
+
15362
+
15363
+ /**
15364
+ * Clears the list making it empty but non-null.
15365
+ * @return {!proto.game.GamePoorItemsResponse} returns this
15366
+ */
15367
+ proto.game.GamePoorItemsResponse.prototype.clearItemsList = function() {
15368
+ return this.setItemsList([]);
15369
+ };
15370
+
15371
+
14990
15372
  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.87",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {