protobuf-platform 1.0.131 → 1.0.132

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
@@ -377,13 +377,14 @@ message InitDemoGameSessionRequest {
377
377
  }
378
378
  message InitGameSessionResponse {
379
379
  string game_url = 1;
380
- string game_uuid = 2;
380
+ optional string game_uuid = 2;
381
381
  string game_title = 3;
382
382
  string game_image = 4;
383
383
  string game_slug = 5;
384
- string provider_title = 6;
385
- string provider_slug = 7;
386
- string user_id = 8;
384
+ string game_description = 6;
385
+ string provider_title = 7;
386
+ string provider_slug = 8;
387
+ string user_id = 9;
387
388
  }
388
389
  message VendorActionRequest {
389
390
  string data = 1;
package/game/game_pb.js CHANGED
@@ -15874,9 +15874,10 @@ proto.game.InitGameSessionResponse.toObject = function(includeInstance, msg) {
15874
15874
  gameTitle: jspb.Message.getFieldWithDefault(msg, 3, ""),
15875
15875
  gameImage: jspb.Message.getFieldWithDefault(msg, 4, ""),
15876
15876
  gameSlug: jspb.Message.getFieldWithDefault(msg, 5, ""),
15877
- providerTitle: jspb.Message.getFieldWithDefault(msg, 6, ""),
15878
- providerSlug: jspb.Message.getFieldWithDefault(msg, 7, ""),
15879
- userId: jspb.Message.getFieldWithDefault(msg, 8, "")
15877
+ gameDescription: jspb.Message.getFieldWithDefault(msg, 6, ""),
15878
+ providerTitle: jspb.Message.getFieldWithDefault(msg, 7, ""),
15879
+ providerSlug: jspb.Message.getFieldWithDefault(msg, 8, ""),
15880
+ userId: jspb.Message.getFieldWithDefault(msg, 9, "")
15880
15881
  };
15881
15882
 
15882
15883
  if (includeInstance) {
@@ -15935,13 +15936,17 @@ proto.game.InitGameSessionResponse.deserializeBinaryFromReader = function(msg, r
15935
15936
  break;
15936
15937
  case 6:
15937
15938
  var value = /** @type {string} */ (reader.readString());
15938
- msg.setProviderTitle(value);
15939
+ msg.setGameDescription(value);
15939
15940
  break;
15940
15941
  case 7:
15941
15942
  var value = /** @type {string} */ (reader.readString());
15942
- msg.setProviderSlug(value);
15943
+ msg.setProviderTitle(value);
15943
15944
  break;
15944
15945
  case 8:
15946
+ var value = /** @type {string} */ (reader.readString());
15947
+ msg.setProviderSlug(value);
15948
+ break;
15949
+ case 9:
15945
15950
  var value = /** @type {string} */ (reader.readString());
15946
15951
  msg.setUserId(value);
15947
15952
  break;
@@ -15981,8 +15986,8 @@ proto.game.InitGameSessionResponse.serializeBinaryToWriter = function(message, w
15981
15986
  f
15982
15987
  );
15983
15988
  }
15984
- f = message.getGameUuid();
15985
- if (f.length > 0) {
15989
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
15990
+ if (f != null) {
15986
15991
  writer.writeString(
15987
15992
  2,
15988
15993
  f
@@ -16009,27 +16014,34 @@ proto.game.InitGameSessionResponse.serializeBinaryToWriter = function(message, w
16009
16014
  f
16010
16015
  );
16011
16016
  }
16012
- f = message.getProviderTitle();
16017
+ f = message.getGameDescription();
16013
16018
  if (f.length > 0) {
16014
16019
  writer.writeString(
16015
16020
  6,
16016
16021
  f
16017
16022
  );
16018
16023
  }
16019
- f = message.getProviderSlug();
16024
+ f = message.getProviderTitle();
16020
16025
  if (f.length > 0) {
16021
16026
  writer.writeString(
16022
16027
  7,
16023
16028
  f
16024
16029
  );
16025
16030
  }
16026
- f = message.getUserId();
16031
+ f = message.getProviderSlug();
16027
16032
  if (f.length > 0) {
16028
16033
  writer.writeString(
16029
16034
  8,
16030
16035
  f
16031
16036
  );
16032
16037
  }
16038
+ f = message.getUserId();
16039
+ if (f.length > 0) {
16040
+ writer.writeString(
16041
+ 9,
16042
+ f
16043
+ );
16044
+ }
16033
16045
  };
16034
16046
 
16035
16047
 
@@ -16065,7 +16077,25 @@ proto.game.InitGameSessionResponse.prototype.getGameUuid = function() {
16065
16077
  * @return {!proto.game.InitGameSessionResponse} returns this
16066
16078
  */
16067
16079
  proto.game.InitGameSessionResponse.prototype.setGameUuid = function(value) {
16068
- return jspb.Message.setProto3StringField(this, 2, value);
16080
+ return jspb.Message.setField(this, 2, value);
16081
+ };
16082
+
16083
+
16084
+ /**
16085
+ * Clears the field making it undefined.
16086
+ * @return {!proto.game.InitGameSessionResponse} returns this
16087
+ */
16088
+ proto.game.InitGameSessionResponse.prototype.clearGameUuid = function() {
16089
+ return jspb.Message.setField(this, 2, undefined);
16090
+ };
16091
+
16092
+
16093
+ /**
16094
+ * Returns whether this field is set.
16095
+ * @return {boolean}
16096
+ */
16097
+ proto.game.InitGameSessionResponse.prototype.hasGameUuid = function() {
16098
+ return jspb.Message.getField(this, 2) != null;
16069
16099
  };
16070
16100
 
16071
16101
 
@@ -16124,10 +16154,10 @@ proto.game.InitGameSessionResponse.prototype.setGameSlug = function(value) {
16124
16154
 
16125
16155
 
16126
16156
  /**
16127
- * optional string provider_title = 6;
16157
+ * optional string game_description = 6;
16128
16158
  * @return {string}
16129
16159
  */
16130
- proto.game.InitGameSessionResponse.prototype.getProviderTitle = function() {
16160
+ proto.game.InitGameSessionResponse.prototype.getGameDescription = function() {
16131
16161
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
16132
16162
  };
16133
16163
 
@@ -16136,16 +16166,16 @@ proto.game.InitGameSessionResponse.prototype.getProviderTitle = function() {
16136
16166
  * @param {string} value
16137
16167
  * @return {!proto.game.InitGameSessionResponse} returns this
16138
16168
  */
16139
- proto.game.InitGameSessionResponse.prototype.setProviderTitle = function(value) {
16169
+ proto.game.InitGameSessionResponse.prototype.setGameDescription = function(value) {
16140
16170
  return jspb.Message.setProto3StringField(this, 6, value);
16141
16171
  };
16142
16172
 
16143
16173
 
16144
16174
  /**
16145
- * optional string provider_slug = 7;
16175
+ * optional string provider_title = 7;
16146
16176
  * @return {string}
16147
16177
  */
16148
- proto.game.InitGameSessionResponse.prototype.getProviderSlug = function() {
16178
+ proto.game.InitGameSessionResponse.prototype.getProviderTitle = function() {
16149
16179
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
16150
16180
  };
16151
16181
 
@@ -16154,16 +16184,16 @@ proto.game.InitGameSessionResponse.prototype.getProviderSlug = function() {
16154
16184
  * @param {string} value
16155
16185
  * @return {!proto.game.InitGameSessionResponse} returns this
16156
16186
  */
16157
- proto.game.InitGameSessionResponse.prototype.setProviderSlug = function(value) {
16187
+ proto.game.InitGameSessionResponse.prototype.setProviderTitle = function(value) {
16158
16188
  return jspb.Message.setProto3StringField(this, 7, value);
16159
16189
  };
16160
16190
 
16161
16191
 
16162
16192
  /**
16163
- * optional string user_id = 8;
16193
+ * optional string provider_slug = 8;
16164
16194
  * @return {string}
16165
16195
  */
16166
- proto.game.InitGameSessionResponse.prototype.getUserId = function() {
16196
+ proto.game.InitGameSessionResponse.prototype.getProviderSlug = function() {
16167
16197
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
16168
16198
  };
16169
16199
 
@@ -16172,11 +16202,29 @@ proto.game.InitGameSessionResponse.prototype.getUserId = function() {
16172
16202
  * @param {string} value
16173
16203
  * @return {!proto.game.InitGameSessionResponse} returns this
16174
16204
  */
16175
- proto.game.InitGameSessionResponse.prototype.setUserId = function(value) {
16205
+ proto.game.InitGameSessionResponse.prototype.setProviderSlug = function(value) {
16176
16206
  return jspb.Message.setProto3StringField(this, 8, value);
16177
16207
  };
16178
16208
 
16179
16209
 
16210
+ /**
16211
+ * optional string user_id = 9;
16212
+ * @return {string}
16213
+ */
16214
+ proto.game.InitGameSessionResponse.prototype.getUserId = function() {
16215
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
16216
+ };
16217
+
16218
+
16219
+ /**
16220
+ * @param {string} value
16221
+ * @return {!proto.game.InitGameSessionResponse} returns this
16222
+ */
16223
+ proto.game.InitGameSessionResponse.prototype.setUserId = function(value) {
16224
+ return jspb.Message.setProto3StringField(this, 9, value);
16225
+ };
16226
+
16227
+
16180
16228
 
16181
16229
 
16182
16230
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.131",
3
+ "version": "1.0.132",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {