protobuf-platform 1.2.296 → 1.2.298

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.296",
3
+ "version": "1.2.298",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/poker/poker.proto CHANGED
@@ -30,6 +30,7 @@ message CreateSessionRequest {
30
30
  optional string session_id = 10;
31
31
  optional string return_url = 11;
32
32
  optional string game_code = 12;
33
+ optional string country = 13;
33
34
  }
34
35
 
35
36
  message CreateSessionResponse {
package/poker/poker_pb.js CHANGED
@@ -708,7 +708,8 @@ proto.poker.CreateSessionRequest.toObject = function(includeInstance, msg) {
708
708
  platform: jspb.Message.getFieldWithDefault(msg, 9, ""),
709
709
  sessionId: jspb.Message.getFieldWithDefault(msg, 10, ""),
710
710
  returnUrl: jspb.Message.getFieldWithDefault(msg, 11, ""),
711
- gameCode: jspb.Message.getFieldWithDefault(msg, 12, "")
711
+ gameCode: jspb.Message.getFieldWithDefault(msg, 12, ""),
712
+ country: jspb.Message.getFieldWithDefault(msg, 13, "")
712
713
  };
713
714
 
714
715
  if (includeInstance) {
@@ -793,6 +794,10 @@ proto.poker.CreateSessionRequest.deserializeBinaryFromReader = function(msg, rea
793
794
  var value = /** @type {string} */ (reader.readString());
794
795
  msg.setGameCode(value);
795
796
  break;
797
+ case 13:
798
+ var value = /** @type {string} */ (reader.readString());
799
+ msg.setCountry(value);
800
+ break;
796
801
  default:
797
802
  reader.skipField();
798
803
  break;
@@ -906,6 +911,13 @@ proto.poker.CreateSessionRequest.serializeBinaryToWriter = function(message, wri
906
911
  f
907
912
  );
908
913
  }
914
+ f = /** @type {string} */ (jspb.Message.getField(message, 13));
915
+ if (f != null) {
916
+ writer.writeString(
917
+ 13,
918
+ f
919
+ );
920
+ }
909
921
  };
910
922
 
911
923
 
@@ -1179,6 +1191,42 @@ proto.poker.CreateSessionRequest.prototype.hasGameCode = function() {
1179
1191
  };
1180
1192
 
1181
1193
 
1194
+ /**
1195
+ * optional string country = 13;
1196
+ * @return {string}
1197
+ */
1198
+ proto.poker.CreateSessionRequest.prototype.getCountry = function() {
1199
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
1200
+ };
1201
+
1202
+
1203
+ /**
1204
+ * @param {string} value
1205
+ * @return {!proto.poker.CreateSessionRequest} returns this
1206
+ */
1207
+ proto.poker.CreateSessionRequest.prototype.setCountry = function(value) {
1208
+ return jspb.Message.setField(this, 13, value);
1209
+ };
1210
+
1211
+
1212
+ /**
1213
+ * Clears the field making it undefined.
1214
+ * @return {!proto.poker.CreateSessionRequest} returns this
1215
+ */
1216
+ proto.poker.CreateSessionRequest.prototype.clearCountry = function() {
1217
+ return jspb.Message.setField(this, 13, undefined);
1218
+ };
1219
+
1220
+
1221
+ /**
1222
+ * Returns whether this field is set.
1223
+ * @return {boolean}
1224
+ */
1225
+ proto.poker.CreateSessionRequest.prototype.hasCountry = function() {
1226
+ return jspb.Message.getField(this, 13) != null;
1227
+ };
1228
+
1229
+
1182
1230
 
1183
1231
 
1184
1232