protobuf-platform 1.2.730 → 1.2.732

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/bonus/bonus.proto CHANGED
@@ -40,6 +40,8 @@ service Bonus {
40
40
  rpc getUserBonusesHistory(PaginationRequest) returns (UserBonusItemsResponse);
41
41
  rpc getUserBonusHistory(GetUserBonusHistoryRequest) returns (UserBonusHistoryResponse);
42
42
  rpc getDepositEligibleUserBonuses(GetDepositEligibleUserBonusesRequest) returns (DepositEligibleUserBonusesResponse);
43
+ // Brand-local primary SQL status only, independent of expiry and wagering progress.
44
+ rpc checkUserWageringStatus(CheckUserWageringStatusRequest) returns (CheckUserWageringStatusResponse);
43
45
  rpc getActiveWageringUserBonuses(GetActiveWageringUserBonusesRequest) returns (ActiveWageringUserBonusesResponse);
44
46
  rpc getCommonUserBonusItems(GetCommonUserBonusItemsRequest) returns (GetCommonUserBonusItemsResponse);
45
47
  // Validates one selected wagering user bonus for a game wager list and balance type; returns authoritative state for game-service Redis snapshot.
@@ -619,6 +621,14 @@ message DepositEligibleUserBonusItem {
619
621
  optional string portrait_image = 18;
620
622
  optional string portrait_image_cdn = 19;
621
623
  }
624
+ message CheckUserWageringStatusRequest {
625
+ int32 user_id = 1;
626
+ }
627
+ message CheckUserWageringStatusResponse {
628
+ // Absence means the lookup cannot authorize admission.
629
+ optional bool has_wagering_bonus = 1;
630
+ }
631
+
622
632
  message GetActiveWageringUserBonusesRequest {
623
633
  int32 user_id = 1;
624
634
  int32 wager_games_list_id = 2;
@@ -181,6 +181,28 @@ function deserialize_bonus_BonusTypesResponse(buffer_arg) {
181
181
  return bonus_bonus_pb.BonusTypesResponse.deserializeBinary(new Uint8Array(buffer_arg));
182
182
  }
183
183
 
184
+ function serialize_bonus_CheckUserWageringStatusRequest(arg) {
185
+ if (!(arg instanceof bonus_bonus_pb.CheckUserWageringStatusRequest)) {
186
+ throw new Error('Expected argument of type bonus.CheckUserWageringStatusRequest');
187
+ }
188
+ return Buffer.from(arg.serializeBinary());
189
+ }
190
+
191
+ function deserialize_bonus_CheckUserWageringStatusRequest(buffer_arg) {
192
+ return bonus_bonus_pb.CheckUserWageringStatusRequest.deserializeBinary(new Uint8Array(buffer_arg));
193
+ }
194
+
195
+ function serialize_bonus_CheckUserWageringStatusResponse(arg) {
196
+ if (!(arg instanceof bonus_bonus_pb.CheckUserWageringStatusResponse)) {
197
+ throw new Error('Expected argument of type bonus.CheckUserWageringStatusResponse');
198
+ }
199
+ return Buffer.from(arg.serializeBinary());
200
+ }
201
+
202
+ function deserialize_bonus_CheckUserWageringStatusResponse(buffer_arg) {
203
+ return bonus_bonus_pb.CheckUserWageringStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
204
+ }
205
+
184
206
  function serialize_bonus_DashboardRequest(arg) {
185
207
  if (!(arg instanceof bonus_bonus_pb.DashboardRequest)) {
186
208
  throw new Error('Expected argument of type bonus.DashboardRequest');
@@ -924,6 +946,18 @@ grantDynamicUserBonus: {
924
946
  responseSerialize: serialize_bonus_DepositEligibleUserBonusesResponse,
925
947
  responseDeserialize: deserialize_bonus_DepositEligibleUserBonusesResponse,
926
948
  },
949
+ // Brand-local primary SQL status only, independent of expiry and wagering progress.
950
+ checkUserWageringStatus: {
951
+ path: '/bonus.Bonus/checkUserWageringStatus',
952
+ requestStream: false,
953
+ responseStream: false,
954
+ requestType: bonus_bonus_pb.CheckUserWageringStatusRequest,
955
+ responseType: bonus_bonus_pb.CheckUserWageringStatusResponse,
956
+ requestSerialize: serialize_bonus_CheckUserWageringStatusRequest,
957
+ requestDeserialize: deserialize_bonus_CheckUserWageringStatusRequest,
958
+ responseSerialize: serialize_bonus_CheckUserWageringStatusResponse,
959
+ responseDeserialize: deserialize_bonus_CheckUserWageringStatusResponse,
960
+ },
927
961
  getActiveWageringUserBonuses: {
928
962
  path: '/bonus.Bonus/getActiveWageringUserBonuses',
929
963
  requestStream: false,
package/bonus/bonus_pb.js CHANGED
@@ -54,6 +54,8 @@ goog.exportSymbol('proto.bonus.BonusTranslationUpsertRequest', null, global);
54
54
  goog.exportSymbol('proto.bonus.BonusTranslationUpsertRequest.RequestCase', null, global);
55
55
  goog.exportSymbol('proto.bonus.BonusType', null, global);
56
56
  goog.exportSymbol('proto.bonus.BonusTypesResponse', null, global);
57
+ goog.exportSymbol('proto.bonus.CheckUserWageringStatusRequest', null, global);
58
+ goog.exportSymbol('proto.bonus.CheckUserWageringStatusResponse', null, global);
57
59
  goog.exportSymbol('proto.bonus.CommonUserBonusItems', null, global);
58
60
  goog.exportSymbol('proto.bonus.CurrencyStatusItem', null, global);
59
61
  goog.exportSymbol('proto.bonus.DashboardRequest', null, global);
@@ -1253,6 +1255,48 @@ if (goog.DEBUG && !COMPILED) {
1253
1255
  */
1254
1256
  proto.bonus.DepositEligibleUserBonusItem.displayName = 'proto.bonus.DepositEligibleUserBonusItem';
1255
1257
  }
1258
+ /**
1259
+ * Generated by JsPbCodeGenerator.
1260
+ * @param {Array=} opt_data Optional initial data array, typically from a
1261
+ * server response, or constructed directly in Javascript. The array is used
1262
+ * in place and becomes part of the constructed object. It is not cloned.
1263
+ * If no data is provided, the constructed object will be empty, but still
1264
+ * valid.
1265
+ * @extends {jspb.Message}
1266
+ * @constructor
1267
+ */
1268
+ proto.bonus.CheckUserWageringStatusRequest = function(opt_data) {
1269
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1270
+ };
1271
+ goog.inherits(proto.bonus.CheckUserWageringStatusRequest, jspb.Message);
1272
+ if (goog.DEBUG && !COMPILED) {
1273
+ /**
1274
+ * @public
1275
+ * @override
1276
+ */
1277
+ proto.bonus.CheckUserWageringStatusRequest.displayName = 'proto.bonus.CheckUserWageringStatusRequest';
1278
+ }
1279
+ /**
1280
+ * Generated by JsPbCodeGenerator.
1281
+ * @param {Array=} opt_data Optional initial data array, typically from a
1282
+ * server response, or constructed directly in Javascript. The array is used
1283
+ * in place and becomes part of the constructed object. It is not cloned.
1284
+ * If no data is provided, the constructed object will be empty, but still
1285
+ * valid.
1286
+ * @extends {jspb.Message}
1287
+ * @constructor
1288
+ */
1289
+ proto.bonus.CheckUserWageringStatusResponse = function(opt_data) {
1290
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1291
+ };
1292
+ goog.inherits(proto.bonus.CheckUserWageringStatusResponse, jspb.Message);
1293
+ if (goog.DEBUG && !COMPILED) {
1294
+ /**
1295
+ * @public
1296
+ * @override
1297
+ */
1298
+ proto.bonus.CheckUserWageringStatusResponse.displayName = 'proto.bonus.CheckUserWageringStatusResponse';
1299
+ }
1256
1300
  /**
1257
1301
  * Generated by JsPbCodeGenerator.
1258
1302
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -25612,6 +25656,284 @@ proto.bonus.DepositEligibleUserBonusItem.prototype.hasPortraitImageCdn = functio
25612
25656
 
25613
25657
 
25614
25658
 
25659
+ if (jspb.Message.GENERATE_TO_OBJECT) {
25660
+ /**
25661
+ * Creates an object representation of this proto.
25662
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
25663
+ * Optional fields that are not set will be set to undefined.
25664
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
25665
+ * For the list of reserved names please see:
25666
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
25667
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
25668
+ * JSPB instance for transitional soy proto support:
25669
+ * http://goto/soy-param-migration
25670
+ * @return {!Object}
25671
+ */
25672
+ proto.bonus.CheckUserWageringStatusRequest.prototype.toObject = function(opt_includeInstance) {
25673
+ return proto.bonus.CheckUserWageringStatusRequest.toObject(opt_includeInstance, this);
25674
+ };
25675
+
25676
+
25677
+ /**
25678
+ * Static version of the {@see toObject} method.
25679
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
25680
+ * the JSPB instance for transitional soy proto support:
25681
+ * http://goto/soy-param-migration
25682
+ * @param {!proto.bonus.CheckUserWageringStatusRequest} msg The msg instance to transform.
25683
+ * @return {!Object}
25684
+ * @suppress {unusedLocalVariables} f is only used for nested messages
25685
+ */
25686
+ proto.bonus.CheckUserWageringStatusRequest.toObject = function(includeInstance, msg) {
25687
+ var f, obj = {
25688
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0)
25689
+ };
25690
+
25691
+ if (includeInstance) {
25692
+ obj.$jspbMessageInstance = msg;
25693
+ }
25694
+ return obj;
25695
+ };
25696
+ }
25697
+
25698
+
25699
+ /**
25700
+ * Deserializes binary data (in protobuf wire format).
25701
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
25702
+ * @return {!proto.bonus.CheckUserWageringStatusRequest}
25703
+ */
25704
+ proto.bonus.CheckUserWageringStatusRequest.deserializeBinary = function(bytes) {
25705
+ var reader = new jspb.BinaryReader(bytes);
25706
+ var msg = new proto.bonus.CheckUserWageringStatusRequest;
25707
+ return proto.bonus.CheckUserWageringStatusRequest.deserializeBinaryFromReader(msg, reader);
25708
+ };
25709
+
25710
+
25711
+ /**
25712
+ * Deserializes binary data (in protobuf wire format) from the
25713
+ * given reader into the given message object.
25714
+ * @param {!proto.bonus.CheckUserWageringStatusRequest} msg The message object to deserialize into.
25715
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
25716
+ * @return {!proto.bonus.CheckUserWageringStatusRequest}
25717
+ */
25718
+ proto.bonus.CheckUserWageringStatusRequest.deserializeBinaryFromReader = function(msg, reader) {
25719
+ while (reader.nextField()) {
25720
+ if (reader.isEndGroup()) {
25721
+ break;
25722
+ }
25723
+ var field = reader.getFieldNumber();
25724
+ switch (field) {
25725
+ case 1:
25726
+ var value = /** @type {number} */ (reader.readInt32());
25727
+ msg.setUserId(value);
25728
+ break;
25729
+ default:
25730
+ reader.skipField();
25731
+ break;
25732
+ }
25733
+ }
25734
+ return msg;
25735
+ };
25736
+
25737
+
25738
+ /**
25739
+ * Serializes the message to binary data (in protobuf wire format).
25740
+ * @return {!Uint8Array}
25741
+ */
25742
+ proto.bonus.CheckUserWageringStatusRequest.prototype.serializeBinary = function() {
25743
+ var writer = new jspb.BinaryWriter();
25744
+ proto.bonus.CheckUserWageringStatusRequest.serializeBinaryToWriter(this, writer);
25745
+ return writer.getResultBuffer();
25746
+ };
25747
+
25748
+
25749
+ /**
25750
+ * Serializes the given message to binary data (in protobuf wire
25751
+ * format), writing to the given BinaryWriter.
25752
+ * @param {!proto.bonus.CheckUserWageringStatusRequest} message
25753
+ * @param {!jspb.BinaryWriter} writer
25754
+ * @suppress {unusedLocalVariables} f is only used for nested messages
25755
+ */
25756
+ proto.bonus.CheckUserWageringStatusRequest.serializeBinaryToWriter = function(message, writer) {
25757
+ var f = undefined;
25758
+ f = message.getUserId();
25759
+ if (f !== 0) {
25760
+ writer.writeInt32(
25761
+ 1,
25762
+ f
25763
+ );
25764
+ }
25765
+ };
25766
+
25767
+
25768
+ /**
25769
+ * optional int32 user_id = 1;
25770
+ * @return {number}
25771
+ */
25772
+ proto.bonus.CheckUserWageringStatusRequest.prototype.getUserId = function() {
25773
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
25774
+ };
25775
+
25776
+
25777
+ /**
25778
+ * @param {number} value
25779
+ * @return {!proto.bonus.CheckUserWageringStatusRequest} returns this
25780
+ */
25781
+ proto.bonus.CheckUserWageringStatusRequest.prototype.setUserId = function(value) {
25782
+ return jspb.Message.setProto3IntField(this, 1, value);
25783
+ };
25784
+
25785
+
25786
+
25787
+
25788
+
25789
+ if (jspb.Message.GENERATE_TO_OBJECT) {
25790
+ /**
25791
+ * Creates an object representation of this proto.
25792
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
25793
+ * Optional fields that are not set will be set to undefined.
25794
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
25795
+ * For the list of reserved names please see:
25796
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
25797
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
25798
+ * JSPB instance for transitional soy proto support:
25799
+ * http://goto/soy-param-migration
25800
+ * @return {!Object}
25801
+ */
25802
+ proto.bonus.CheckUserWageringStatusResponse.prototype.toObject = function(opt_includeInstance) {
25803
+ return proto.bonus.CheckUserWageringStatusResponse.toObject(opt_includeInstance, this);
25804
+ };
25805
+
25806
+
25807
+ /**
25808
+ * Static version of the {@see toObject} method.
25809
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
25810
+ * the JSPB instance for transitional soy proto support:
25811
+ * http://goto/soy-param-migration
25812
+ * @param {!proto.bonus.CheckUserWageringStatusResponse} msg The msg instance to transform.
25813
+ * @return {!Object}
25814
+ * @suppress {unusedLocalVariables} f is only used for nested messages
25815
+ */
25816
+ proto.bonus.CheckUserWageringStatusResponse.toObject = function(includeInstance, msg) {
25817
+ var f, obj = {
25818
+ hasWageringBonus: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
25819
+ };
25820
+
25821
+ if (includeInstance) {
25822
+ obj.$jspbMessageInstance = msg;
25823
+ }
25824
+ return obj;
25825
+ };
25826
+ }
25827
+
25828
+
25829
+ /**
25830
+ * Deserializes binary data (in protobuf wire format).
25831
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
25832
+ * @return {!proto.bonus.CheckUserWageringStatusResponse}
25833
+ */
25834
+ proto.bonus.CheckUserWageringStatusResponse.deserializeBinary = function(bytes) {
25835
+ var reader = new jspb.BinaryReader(bytes);
25836
+ var msg = new proto.bonus.CheckUserWageringStatusResponse;
25837
+ return proto.bonus.CheckUserWageringStatusResponse.deserializeBinaryFromReader(msg, reader);
25838
+ };
25839
+
25840
+
25841
+ /**
25842
+ * Deserializes binary data (in protobuf wire format) from the
25843
+ * given reader into the given message object.
25844
+ * @param {!proto.bonus.CheckUserWageringStatusResponse} msg The message object to deserialize into.
25845
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
25846
+ * @return {!proto.bonus.CheckUserWageringStatusResponse}
25847
+ */
25848
+ proto.bonus.CheckUserWageringStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
25849
+ while (reader.nextField()) {
25850
+ if (reader.isEndGroup()) {
25851
+ break;
25852
+ }
25853
+ var field = reader.getFieldNumber();
25854
+ switch (field) {
25855
+ case 1:
25856
+ var value = /** @type {boolean} */ (reader.readBool());
25857
+ msg.setHasWageringBonus(value);
25858
+ break;
25859
+ default:
25860
+ reader.skipField();
25861
+ break;
25862
+ }
25863
+ }
25864
+ return msg;
25865
+ };
25866
+
25867
+
25868
+ /**
25869
+ * Serializes the message to binary data (in protobuf wire format).
25870
+ * @return {!Uint8Array}
25871
+ */
25872
+ proto.bonus.CheckUserWageringStatusResponse.prototype.serializeBinary = function() {
25873
+ var writer = new jspb.BinaryWriter();
25874
+ proto.bonus.CheckUserWageringStatusResponse.serializeBinaryToWriter(this, writer);
25875
+ return writer.getResultBuffer();
25876
+ };
25877
+
25878
+
25879
+ /**
25880
+ * Serializes the given message to binary data (in protobuf wire
25881
+ * format), writing to the given BinaryWriter.
25882
+ * @param {!proto.bonus.CheckUserWageringStatusResponse} message
25883
+ * @param {!jspb.BinaryWriter} writer
25884
+ * @suppress {unusedLocalVariables} f is only used for nested messages
25885
+ */
25886
+ proto.bonus.CheckUserWageringStatusResponse.serializeBinaryToWriter = function(message, writer) {
25887
+ var f = undefined;
25888
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 1));
25889
+ if (f != null) {
25890
+ writer.writeBool(
25891
+ 1,
25892
+ f
25893
+ );
25894
+ }
25895
+ };
25896
+
25897
+
25898
+ /**
25899
+ * optional bool has_wagering_bonus = 1;
25900
+ * @return {boolean}
25901
+ */
25902
+ proto.bonus.CheckUserWageringStatusResponse.prototype.getHasWageringBonus = function() {
25903
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
25904
+ };
25905
+
25906
+
25907
+ /**
25908
+ * @param {boolean} value
25909
+ * @return {!proto.bonus.CheckUserWageringStatusResponse} returns this
25910
+ */
25911
+ proto.bonus.CheckUserWageringStatusResponse.prototype.setHasWageringBonus = function(value) {
25912
+ return jspb.Message.setField(this, 1, value);
25913
+ };
25914
+
25915
+
25916
+ /**
25917
+ * Clears the field making it undefined.
25918
+ * @return {!proto.bonus.CheckUserWageringStatusResponse} returns this
25919
+ */
25920
+ proto.bonus.CheckUserWageringStatusResponse.prototype.clearHasWageringBonus = function() {
25921
+ return jspb.Message.setField(this, 1, undefined);
25922
+ };
25923
+
25924
+
25925
+ /**
25926
+ * Returns whether this field is set.
25927
+ * @return {boolean}
25928
+ */
25929
+ proto.bonus.CheckUserWageringStatusResponse.prototype.hasHasWageringBonus = function() {
25930
+ return jspb.Message.getField(this, 1) != null;
25931
+ };
25932
+
25933
+
25934
+
25935
+
25936
+
25615
25937
  if (jspb.Message.GENERATE_TO_OBJECT) {
25616
25938
  /**
25617
25939
  * Creates an object representation of this proto.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.730",
3
+ "version": "1.2.732",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -94,6 +94,7 @@ service User {
94
94
  rpc readUserCalculatedRestrictions(ReadUserCalculatedRestrictionsRequest) returns (UserCalculatedRestrictionsResponse);
95
95
  //Risk permission matrix
96
96
  rpc readListRiskPermissionMatrices(PaginationRequest) returns (RiskPermissionMatricesResponse);
97
+ rpc readRiskPermissionConditions(ReadRiskPermissionConditionsRequest) returns (RiskPermissionConditionsResponse);
97
98
  rpc readRiskPermissionMatrix(ReadRiskPermissionMatrixRequest) returns (RiskPermissionMatrixItem);
98
99
  rpc updateRiskPermissionMatrix(UpdateRiskPermissionMatrixRequest) returns (RiskPermissionMatrixItem);
99
100
  rpc readRiskPermissionMatrixLimits(ReadRiskPermissionMatrixLimitsRequest) returns (RiskPermissionMatrixLimitsResponse);
@@ -1188,6 +1189,8 @@ message UserCalculatedRestrictionItem {
1188
1189
  optional string source = 3;
1189
1190
  optional string reason = 4;
1190
1191
  optional CalculatedRestrictionLimit limit = 5;
1192
+ // Present on allowed withdrawal decisions from admission-aware User producers.
1193
+ optional bool requires_no_active_bonus = 6;
1191
1194
  }
1192
1195
  message CalculatedRestrictionLimit {
1193
1196
  int64 amount_minor = 1;
@@ -1199,6 +1202,16 @@ message ReadRiskPermissionMatrixRequest {
1199
1202
  }
1200
1203
  // Platform-defined optional conditions, ANDed with each existing permission flag.
1201
1204
  // An absent configuration on update preserves the stored map; an empty map clears it.
1205
+ message ReadRiskPermissionConditionsRequest {}
1206
+ message RiskPermissionConditionDefinition {
1207
+ string key = 1;
1208
+ string label = 2;
1209
+ repeated string supported_actions = 3;
1210
+ }
1211
+ message RiskPermissionConditionsResponse {
1212
+ repeated RiskPermissionConditionDefinition conditions = 1;
1213
+ }
1214
+
1202
1215
  message RiskPermissionConditionSet {
1203
1216
  repeated string conditions = 1;
1204
1217
  }
@@ -1335,6 +1335,17 @@ function deserialize_user_ReadResponsibleGamingPolicyHistoryResponse(buffer_arg)
1335
1335
  return user_pb.ReadResponsibleGamingPolicyHistoryResponse.deserializeBinary(new Uint8Array(buffer_arg));
1336
1336
  }
1337
1337
 
1338
+ function serialize_user_ReadRiskPermissionConditionsRequest(arg) {
1339
+ if (!(arg instanceof user_pb.ReadRiskPermissionConditionsRequest)) {
1340
+ throw new Error('Expected argument of type user.ReadRiskPermissionConditionsRequest');
1341
+ }
1342
+ return Buffer.from(arg.serializeBinary());
1343
+ }
1344
+
1345
+ function deserialize_user_ReadRiskPermissionConditionsRequest(buffer_arg) {
1346
+ return user_pb.ReadRiskPermissionConditionsRequest.deserializeBinary(new Uint8Array(buffer_arg));
1347
+ }
1348
+
1338
1349
  function serialize_user_ReadRiskPermissionMatrixLimitsRequest(arg) {
1339
1350
  if (!(arg instanceof user_pb.ReadRiskPermissionMatrixLimitsRequest)) {
1340
1351
  throw new Error('Expected argument of type user.ReadRiskPermissionMatrixLimitsRequest');
@@ -1643,6 +1654,17 @@ function deserialize_user_ResponsibleGamingPolicyItem(buffer_arg) {
1643
1654
  return user_pb.ResponsibleGamingPolicyItem.deserializeBinary(new Uint8Array(buffer_arg));
1644
1655
  }
1645
1656
 
1657
+ function serialize_user_RiskPermissionConditionsResponse(arg) {
1658
+ if (!(arg instanceof user_pb.RiskPermissionConditionsResponse)) {
1659
+ throw new Error('Expected argument of type user.RiskPermissionConditionsResponse');
1660
+ }
1661
+ return Buffer.from(arg.serializeBinary());
1662
+ }
1663
+
1664
+ function deserialize_user_RiskPermissionConditionsResponse(buffer_arg) {
1665
+ return user_pb.RiskPermissionConditionsResponse.deserializeBinary(new Uint8Array(buffer_arg));
1666
+ }
1667
+
1646
1668
  function serialize_user_RiskPermissionMatricesResponse(arg) {
1647
1669
  if (!(arg instanceof user_pb.RiskPermissionMatricesResponse)) {
1648
1670
  throw new Error('Expected argument of type user.RiskPermissionMatricesResponse');
@@ -3519,6 +3541,17 @@ readListRiskPermissionMatrices: {
3519
3541
  responseSerialize: serialize_user_RiskPermissionMatricesResponse,
3520
3542
  responseDeserialize: deserialize_user_RiskPermissionMatricesResponse,
3521
3543
  },
3544
+ readRiskPermissionConditions: {
3545
+ path: '/user.User/readRiskPermissionConditions',
3546
+ requestStream: false,
3547
+ responseStream: false,
3548
+ requestType: user_pb.ReadRiskPermissionConditionsRequest,
3549
+ responseType: user_pb.RiskPermissionConditionsResponse,
3550
+ requestSerialize: serialize_user_ReadRiskPermissionConditionsRequest,
3551
+ requestDeserialize: deserialize_user_ReadRiskPermissionConditionsRequest,
3552
+ responseSerialize: serialize_user_RiskPermissionConditionsResponse,
3553
+ responseDeserialize: deserialize_user_RiskPermissionConditionsResponse,
3554
+ },
3522
3555
  readRiskPermissionMatrix: {
3523
3556
  path: '/user.User/readRiskPermissionMatrix',
3524
3557
  requestStream: false,
package/user/user_pb.js CHANGED
@@ -163,6 +163,7 @@ goog.exportSymbol('proto.user.ReadPresetResponse', null, global);
163
163
  goog.exportSymbol('proto.user.ReadResponsibleGamingOverviewRequest', null, global);
164
164
  goog.exportSymbol('proto.user.ReadResponsibleGamingPolicyHistoryRequest', null, global);
165
165
  goog.exportSymbol('proto.user.ReadResponsibleGamingPolicyHistoryResponse', null, global);
166
+ goog.exportSymbol('proto.user.ReadRiskPermissionConditionsRequest', null, global);
166
167
  goog.exportSymbol('proto.user.ReadRiskPermissionMatrixLimitsRequest', null, global);
167
168
  goog.exportSymbol('proto.user.ReadRiskPermissionMatrixRequest', null, global);
168
169
  goog.exportSymbol('proto.user.ReadUserCalculatedRestrictionsRequest', null, global);
@@ -216,8 +217,10 @@ goog.exportSymbol('proto.user.ResponsibleGamingSelfExclusionOverview', null, glo
216
217
  goog.exportSymbol('proto.user.ResponsibleGamingTimeLimitDecisionDetail', null, global);
217
218
  goog.exportSymbol('proto.user.ResponsibleGamingTimeLimitOverview', null, global);
218
219
  goog.exportSymbol('proto.user.ResponsibleGamingTimeLimitScopeOverview', null, global);
220
+ goog.exportSymbol('proto.user.RiskPermissionConditionDefinition', null, global);
219
221
  goog.exportSymbol('proto.user.RiskPermissionConditionSet', null, global);
220
222
  goog.exportSymbol('proto.user.RiskPermissionConditions', null, global);
223
+ goog.exportSymbol('proto.user.RiskPermissionConditionsResponse', null, global);
221
224
  goog.exportSymbol('proto.user.RiskPermissionMatricesResponse', null, global);
222
225
  goog.exportSymbol('proto.user.RiskPermissionMatrixItem', null, global);
223
226
  goog.exportSymbol('proto.user.RiskPermissionMatrixLimitItem', null, global);
@@ -2681,6 +2684,69 @@ if (goog.DEBUG && !COMPILED) {
2681
2684
  */
2682
2685
  proto.user.ReadRiskPermissionMatrixRequest.displayName = 'proto.user.ReadRiskPermissionMatrixRequest';
2683
2686
  }
2687
+ /**
2688
+ * Generated by JsPbCodeGenerator.
2689
+ * @param {Array=} opt_data Optional initial data array, typically from a
2690
+ * server response, or constructed directly in Javascript. The array is used
2691
+ * in place and becomes part of the constructed object. It is not cloned.
2692
+ * If no data is provided, the constructed object will be empty, but still
2693
+ * valid.
2694
+ * @extends {jspb.Message}
2695
+ * @constructor
2696
+ */
2697
+ proto.user.ReadRiskPermissionConditionsRequest = function(opt_data) {
2698
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2699
+ };
2700
+ goog.inherits(proto.user.ReadRiskPermissionConditionsRequest, jspb.Message);
2701
+ if (goog.DEBUG && !COMPILED) {
2702
+ /**
2703
+ * @public
2704
+ * @override
2705
+ */
2706
+ proto.user.ReadRiskPermissionConditionsRequest.displayName = 'proto.user.ReadRiskPermissionConditionsRequest';
2707
+ }
2708
+ /**
2709
+ * Generated by JsPbCodeGenerator.
2710
+ * @param {Array=} opt_data Optional initial data array, typically from a
2711
+ * server response, or constructed directly in Javascript. The array is used
2712
+ * in place and becomes part of the constructed object. It is not cloned.
2713
+ * If no data is provided, the constructed object will be empty, but still
2714
+ * valid.
2715
+ * @extends {jspb.Message}
2716
+ * @constructor
2717
+ */
2718
+ proto.user.RiskPermissionConditionDefinition = function(opt_data) {
2719
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.user.RiskPermissionConditionDefinition.repeatedFields_, null);
2720
+ };
2721
+ goog.inherits(proto.user.RiskPermissionConditionDefinition, jspb.Message);
2722
+ if (goog.DEBUG && !COMPILED) {
2723
+ /**
2724
+ * @public
2725
+ * @override
2726
+ */
2727
+ proto.user.RiskPermissionConditionDefinition.displayName = 'proto.user.RiskPermissionConditionDefinition';
2728
+ }
2729
+ /**
2730
+ * Generated by JsPbCodeGenerator.
2731
+ * @param {Array=} opt_data Optional initial data array, typically from a
2732
+ * server response, or constructed directly in Javascript. The array is used
2733
+ * in place and becomes part of the constructed object. It is not cloned.
2734
+ * If no data is provided, the constructed object will be empty, but still
2735
+ * valid.
2736
+ * @extends {jspb.Message}
2737
+ * @constructor
2738
+ */
2739
+ proto.user.RiskPermissionConditionsResponse = function(opt_data) {
2740
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.user.RiskPermissionConditionsResponse.repeatedFields_, null);
2741
+ };
2742
+ goog.inherits(proto.user.RiskPermissionConditionsResponse, jspb.Message);
2743
+ if (goog.DEBUG && !COMPILED) {
2744
+ /**
2745
+ * @public
2746
+ * @override
2747
+ */
2748
+ proto.user.RiskPermissionConditionsResponse.displayName = 'proto.user.RiskPermissionConditionsResponse';
2749
+ }
2684
2750
  /**
2685
2751
  * Generated by JsPbCodeGenerator.
2686
2752
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -49843,7 +49909,8 @@ proto.user.UserCalculatedRestrictionItem.toObject = function(includeInstance, ms
49843
49909
  allowed: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
49844
49910
  source: jspb.Message.getFieldWithDefault(msg, 3, ""),
49845
49911
  reason: jspb.Message.getFieldWithDefault(msg, 4, ""),
49846
- limit: (f = msg.getLimit()) && proto.user.CalculatedRestrictionLimit.toObject(includeInstance, f)
49912
+ limit: (f = msg.getLimit()) && proto.user.CalculatedRestrictionLimit.toObject(includeInstance, f),
49913
+ requiresNoActiveBonus: jspb.Message.getBooleanFieldWithDefault(msg, 6, false)
49847
49914
  };
49848
49915
 
49849
49916
  if (includeInstance) {
@@ -49901,6 +49968,10 @@ proto.user.UserCalculatedRestrictionItem.deserializeBinaryFromReader = function(
49901
49968
  reader.readMessage(value,proto.user.CalculatedRestrictionLimit.deserializeBinaryFromReader);
49902
49969
  msg.setLimit(value);
49903
49970
  break;
49971
+ case 6:
49972
+ var value = /** @type {boolean} */ (reader.readBool());
49973
+ msg.setRequiresNoActiveBonus(value);
49974
+ break;
49904
49975
  default:
49905
49976
  reader.skipField();
49906
49977
  break;
@@ -49966,6 +50037,13 @@ proto.user.UserCalculatedRestrictionItem.serializeBinaryToWriter = function(mess
49966
50037
  proto.user.CalculatedRestrictionLimit.serializeBinaryToWriter
49967
50038
  );
49968
50039
  }
50040
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 6));
50041
+ if (f != null) {
50042
+ writer.writeBool(
50043
+ 6,
50044
+ f
50045
+ );
50046
+ }
49969
50047
  };
49970
50048
 
49971
50049
 
@@ -50114,6 +50192,42 @@ proto.user.UserCalculatedRestrictionItem.prototype.hasLimit = function() {
50114
50192
  };
50115
50193
 
50116
50194
 
50195
+ /**
50196
+ * optional bool requires_no_active_bonus = 6;
50197
+ * @return {boolean}
50198
+ */
50199
+ proto.user.UserCalculatedRestrictionItem.prototype.getRequiresNoActiveBonus = function() {
50200
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
50201
+ };
50202
+
50203
+
50204
+ /**
50205
+ * @param {boolean} value
50206
+ * @return {!proto.user.UserCalculatedRestrictionItem} returns this
50207
+ */
50208
+ proto.user.UserCalculatedRestrictionItem.prototype.setRequiresNoActiveBonus = function(value) {
50209
+ return jspb.Message.setField(this, 6, value);
50210
+ };
50211
+
50212
+
50213
+ /**
50214
+ * Clears the field making it undefined.
50215
+ * @return {!proto.user.UserCalculatedRestrictionItem} returns this
50216
+ */
50217
+ proto.user.UserCalculatedRestrictionItem.prototype.clearRequiresNoActiveBonus = function() {
50218
+ return jspb.Message.setField(this, 6, undefined);
50219
+ };
50220
+
50221
+
50222
+ /**
50223
+ * Returns whether this field is set.
50224
+ * @return {boolean}
50225
+ */
50226
+ proto.user.UserCalculatedRestrictionItem.prototype.hasRequiresNoActiveBonus = function() {
50227
+ return jspb.Message.getField(this, 6) != null;
50228
+ };
50229
+
50230
+
50117
50231
 
50118
50232
 
50119
50233
 
@@ -50435,6 +50549,483 @@ proto.user.ReadRiskPermissionMatrixRequest.prototype.setRiskLevel = function(val
50435
50549
 
50436
50550
 
50437
50551
 
50552
+
50553
+
50554
+ if (jspb.Message.GENERATE_TO_OBJECT) {
50555
+ /**
50556
+ * Creates an object representation of this proto.
50557
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
50558
+ * Optional fields that are not set will be set to undefined.
50559
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
50560
+ * For the list of reserved names please see:
50561
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
50562
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
50563
+ * JSPB instance for transitional soy proto support:
50564
+ * http://goto/soy-param-migration
50565
+ * @return {!Object}
50566
+ */
50567
+ proto.user.ReadRiskPermissionConditionsRequest.prototype.toObject = function(opt_includeInstance) {
50568
+ return proto.user.ReadRiskPermissionConditionsRequest.toObject(opt_includeInstance, this);
50569
+ };
50570
+
50571
+
50572
+ /**
50573
+ * Static version of the {@see toObject} method.
50574
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
50575
+ * the JSPB instance for transitional soy proto support:
50576
+ * http://goto/soy-param-migration
50577
+ * @param {!proto.user.ReadRiskPermissionConditionsRequest} msg The msg instance to transform.
50578
+ * @return {!Object}
50579
+ * @suppress {unusedLocalVariables} f is only used for nested messages
50580
+ */
50581
+ proto.user.ReadRiskPermissionConditionsRequest.toObject = function(includeInstance, msg) {
50582
+ var f, obj = {
50583
+
50584
+ };
50585
+
50586
+ if (includeInstance) {
50587
+ obj.$jspbMessageInstance = msg;
50588
+ }
50589
+ return obj;
50590
+ };
50591
+ }
50592
+
50593
+
50594
+ /**
50595
+ * Deserializes binary data (in protobuf wire format).
50596
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
50597
+ * @return {!proto.user.ReadRiskPermissionConditionsRequest}
50598
+ */
50599
+ proto.user.ReadRiskPermissionConditionsRequest.deserializeBinary = function(bytes) {
50600
+ var reader = new jspb.BinaryReader(bytes);
50601
+ var msg = new proto.user.ReadRiskPermissionConditionsRequest;
50602
+ return proto.user.ReadRiskPermissionConditionsRequest.deserializeBinaryFromReader(msg, reader);
50603
+ };
50604
+
50605
+
50606
+ /**
50607
+ * Deserializes binary data (in protobuf wire format) from the
50608
+ * given reader into the given message object.
50609
+ * @param {!proto.user.ReadRiskPermissionConditionsRequest} msg The message object to deserialize into.
50610
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
50611
+ * @return {!proto.user.ReadRiskPermissionConditionsRequest}
50612
+ */
50613
+ proto.user.ReadRiskPermissionConditionsRequest.deserializeBinaryFromReader = function(msg, reader) {
50614
+ while (reader.nextField()) {
50615
+ if (reader.isEndGroup()) {
50616
+ break;
50617
+ }
50618
+ var field = reader.getFieldNumber();
50619
+ switch (field) {
50620
+ default:
50621
+ reader.skipField();
50622
+ break;
50623
+ }
50624
+ }
50625
+ return msg;
50626
+ };
50627
+
50628
+
50629
+ /**
50630
+ * Serializes the message to binary data (in protobuf wire format).
50631
+ * @return {!Uint8Array}
50632
+ */
50633
+ proto.user.ReadRiskPermissionConditionsRequest.prototype.serializeBinary = function() {
50634
+ var writer = new jspb.BinaryWriter();
50635
+ proto.user.ReadRiskPermissionConditionsRequest.serializeBinaryToWriter(this, writer);
50636
+ return writer.getResultBuffer();
50637
+ };
50638
+
50639
+
50640
+ /**
50641
+ * Serializes the given message to binary data (in protobuf wire
50642
+ * format), writing to the given BinaryWriter.
50643
+ * @param {!proto.user.ReadRiskPermissionConditionsRequest} message
50644
+ * @param {!jspb.BinaryWriter} writer
50645
+ * @suppress {unusedLocalVariables} f is only used for nested messages
50646
+ */
50647
+ proto.user.ReadRiskPermissionConditionsRequest.serializeBinaryToWriter = function(message, writer) {
50648
+ var f = undefined;
50649
+ };
50650
+
50651
+
50652
+
50653
+ /**
50654
+ * List of repeated fields within this message type.
50655
+ * @private {!Array<number>}
50656
+ * @const
50657
+ */
50658
+ proto.user.RiskPermissionConditionDefinition.repeatedFields_ = [3];
50659
+
50660
+
50661
+
50662
+ if (jspb.Message.GENERATE_TO_OBJECT) {
50663
+ /**
50664
+ * Creates an object representation of this proto.
50665
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
50666
+ * Optional fields that are not set will be set to undefined.
50667
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
50668
+ * For the list of reserved names please see:
50669
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
50670
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
50671
+ * JSPB instance for transitional soy proto support:
50672
+ * http://goto/soy-param-migration
50673
+ * @return {!Object}
50674
+ */
50675
+ proto.user.RiskPermissionConditionDefinition.prototype.toObject = function(opt_includeInstance) {
50676
+ return proto.user.RiskPermissionConditionDefinition.toObject(opt_includeInstance, this);
50677
+ };
50678
+
50679
+
50680
+ /**
50681
+ * Static version of the {@see toObject} method.
50682
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
50683
+ * the JSPB instance for transitional soy proto support:
50684
+ * http://goto/soy-param-migration
50685
+ * @param {!proto.user.RiskPermissionConditionDefinition} msg The msg instance to transform.
50686
+ * @return {!Object}
50687
+ * @suppress {unusedLocalVariables} f is only used for nested messages
50688
+ */
50689
+ proto.user.RiskPermissionConditionDefinition.toObject = function(includeInstance, msg) {
50690
+ var f, obj = {
50691
+ key: jspb.Message.getFieldWithDefault(msg, 1, ""),
50692
+ label: jspb.Message.getFieldWithDefault(msg, 2, ""),
50693
+ supportedActionsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
50694
+ };
50695
+
50696
+ if (includeInstance) {
50697
+ obj.$jspbMessageInstance = msg;
50698
+ }
50699
+ return obj;
50700
+ };
50701
+ }
50702
+
50703
+
50704
+ /**
50705
+ * Deserializes binary data (in protobuf wire format).
50706
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
50707
+ * @return {!proto.user.RiskPermissionConditionDefinition}
50708
+ */
50709
+ proto.user.RiskPermissionConditionDefinition.deserializeBinary = function(bytes) {
50710
+ var reader = new jspb.BinaryReader(bytes);
50711
+ var msg = new proto.user.RiskPermissionConditionDefinition;
50712
+ return proto.user.RiskPermissionConditionDefinition.deserializeBinaryFromReader(msg, reader);
50713
+ };
50714
+
50715
+
50716
+ /**
50717
+ * Deserializes binary data (in protobuf wire format) from the
50718
+ * given reader into the given message object.
50719
+ * @param {!proto.user.RiskPermissionConditionDefinition} msg The message object to deserialize into.
50720
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
50721
+ * @return {!proto.user.RiskPermissionConditionDefinition}
50722
+ */
50723
+ proto.user.RiskPermissionConditionDefinition.deserializeBinaryFromReader = function(msg, reader) {
50724
+ while (reader.nextField()) {
50725
+ if (reader.isEndGroup()) {
50726
+ break;
50727
+ }
50728
+ var field = reader.getFieldNumber();
50729
+ switch (field) {
50730
+ case 1:
50731
+ var value = /** @type {string} */ (reader.readString());
50732
+ msg.setKey(value);
50733
+ break;
50734
+ case 2:
50735
+ var value = /** @type {string} */ (reader.readString());
50736
+ msg.setLabel(value);
50737
+ break;
50738
+ case 3:
50739
+ var value = /** @type {string} */ (reader.readString());
50740
+ msg.addSupportedActions(value);
50741
+ break;
50742
+ default:
50743
+ reader.skipField();
50744
+ break;
50745
+ }
50746
+ }
50747
+ return msg;
50748
+ };
50749
+
50750
+
50751
+ /**
50752
+ * Serializes the message to binary data (in protobuf wire format).
50753
+ * @return {!Uint8Array}
50754
+ */
50755
+ proto.user.RiskPermissionConditionDefinition.prototype.serializeBinary = function() {
50756
+ var writer = new jspb.BinaryWriter();
50757
+ proto.user.RiskPermissionConditionDefinition.serializeBinaryToWriter(this, writer);
50758
+ return writer.getResultBuffer();
50759
+ };
50760
+
50761
+
50762
+ /**
50763
+ * Serializes the given message to binary data (in protobuf wire
50764
+ * format), writing to the given BinaryWriter.
50765
+ * @param {!proto.user.RiskPermissionConditionDefinition} message
50766
+ * @param {!jspb.BinaryWriter} writer
50767
+ * @suppress {unusedLocalVariables} f is only used for nested messages
50768
+ */
50769
+ proto.user.RiskPermissionConditionDefinition.serializeBinaryToWriter = function(message, writer) {
50770
+ var f = undefined;
50771
+ f = message.getKey();
50772
+ if (f.length > 0) {
50773
+ writer.writeString(
50774
+ 1,
50775
+ f
50776
+ );
50777
+ }
50778
+ f = message.getLabel();
50779
+ if (f.length > 0) {
50780
+ writer.writeString(
50781
+ 2,
50782
+ f
50783
+ );
50784
+ }
50785
+ f = message.getSupportedActionsList();
50786
+ if (f.length > 0) {
50787
+ writer.writeRepeatedString(
50788
+ 3,
50789
+ f
50790
+ );
50791
+ }
50792
+ };
50793
+
50794
+
50795
+ /**
50796
+ * optional string key = 1;
50797
+ * @return {string}
50798
+ */
50799
+ proto.user.RiskPermissionConditionDefinition.prototype.getKey = function() {
50800
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
50801
+ };
50802
+
50803
+
50804
+ /**
50805
+ * @param {string} value
50806
+ * @return {!proto.user.RiskPermissionConditionDefinition} returns this
50807
+ */
50808
+ proto.user.RiskPermissionConditionDefinition.prototype.setKey = function(value) {
50809
+ return jspb.Message.setProto3StringField(this, 1, value);
50810
+ };
50811
+
50812
+
50813
+ /**
50814
+ * optional string label = 2;
50815
+ * @return {string}
50816
+ */
50817
+ proto.user.RiskPermissionConditionDefinition.prototype.getLabel = function() {
50818
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
50819
+ };
50820
+
50821
+
50822
+ /**
50823
+ * @param {string} value
50824
+ * @return {!proto.user.RiskPermissionConditionDefinition} returns this
50825
+ */
50826
+ proto.user.RiskPermissionConditionDefinition.prototype.setLabel = function(value) {
50827
+ return jspb.Message.setProto3StringField(this, 2, value);
50828
+ };
50829
+
50830
+
50831
+ /**
50832
+ * repeated string supported_actions = 3;
50833
+ * @return {!Array<string>}
50834
+ */
50835
+ proto.user.RiskPermissionConditionDefinition.prototype.getSupportedActionsList = function() {
50836
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
50837
+ };
50838
+
50839
+
50840
+ /**
50841
+ * @param {!Array<string>} value
50842
+ * @return {!proto.user.RiskPermissionConditionDefinition} returns this
50843
+ */
50844
+ proto.user.RiskPermissionConditionDefinition.prototype.setSupportedActionsList = function(value) {
50845
+ return jspb.Message.setField(this, 3, value || []);
50846
+ };
50847
+
50848
+
50849
+ /**
50850
+ * @param {string} value
50851
+ * @param {number=} opt_index
50852
+ * @return {!proto.user.RiskPermissionConditionDefinition} returns this
50853
+ */
50854
+ proto.user.RiskPermissionConditionDefinition.prototype.addSupportedActions = function(value, opt_index) {
50855
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
50856
+ };
50857
+
50858
+
50859
+ /**
50860
+ * Clears the list making it empty but non-null.
50861
+ * @return {!proto.user.RiskPermissionConditionDefinition} returns this
50862
+ */
50863
+ proto.user.RiskPermissionConditionDefinition.prototype.clearSupportedActionsList = function() {
50864
+ return this.setSupportedActionsList([]);
50865
+ };
50866
+
50867
+
50868
+
50869
+ /**
50870
+ * List of repeated fields within this message type.
50871
+ * @private {!Array<number>}
50872
+ * @const
50873
+ */
50874
+ proto.user.RiskPermissionConditionsResponse.repeatedFields_ = [1];
50875
+
50876
+
50877
+
50878
+ if (jspb.Message.GENERATE_TO_OBJECT) {
50879
+ /**
50880
+ * Creates an object representation of this proto.
50881
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
50882
+ * Optional fields that are not set will be set to undefined.
50883
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
50884
+ * For the list of reserved names please see:
50885
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
50886
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
50887
+ * JSPB instance for transitional soy proto support:
50888
+ * http://goto/soy-param-migration
50889
+ * @return {!Object}
50890
+ */
50891
+ proto.user.RiskPermissionConditionsResponse.prototype.toObject = function(opt_includeInstance) {
50892
+ return proto.user.RiskPermissionConditionsResponse.toObject(opt_includeInstance, this);
50893
+ };
50894
+
50895
+
50896
+ /**
50897
+ * Static version of the {@see toObject} method.
50898
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
50899
+ * the JSPB instance for transitional soy proto support:
50900
+ * http://goto/soy-param-migration
50901
+ * @param {!proto.user.RiskPermissionConditionsResponse} msg The msg instance to transform.
50902
+ * @return {!Object}
50903
+ * @suppress {unusedLocalVariables} f is only used for nested messages
50904
+ */
50905
+ proto.user.RiskPermissionConditionsResponse.toObject = function(includeInstance, msg) {
50906
+ var f, obj = {
50907
+ conditionsList: jspb.Message.toObjectList(msg.getConditionsList(),
50908
+ proto.user.RiskPermissionConditionDefinition.toObject, includeInstance)
50909
+ };
50910
+
50911
+ if (includeInstance) {
50912
+ obj.$jspbMessageInstance = msg;
50913
+ }
50914
+ return obj;
50915
+ };
50916
+ }
50917
+
50918
+
50919
+ /**
50920
+ * Deserializes binary data (in protobuf wire format).
50921
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
50922
+ * @return {!proto.user.RiskPermissionConditionsResponse}
50923
+ */
50924
+ proto.user.RiskPermissionConditionsResponse.deserializeBinary = function(bytes) {
50925
+ var reader = new jspb.BinaryReader(bytes);
50926
+ var msg = new proto.user.RiskPermissionConditionsResponse;
50927
+ return proto.user.RiskPermissionConditionsResponse.deserializeBinaryFromReader(msg, reader);
50928
+ };
50929
+
50930
+
50931
+ /**
50932
+ * Deserializes binary data (in protobuf wire format) from the
50933
+ * given reader into the given message object.
50934
+ * @param {!proto.user.RiskPermissionConditionsResponse} msg The message object to deserialize into.
50935
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
50936
+ * @return {!proto.user.RiskPermissionConditionsResponse}
50937
+ */
50938
+ proto.user.RiskPermissionConditionsResponse.deserializeBinaryFromReader = function(msg, reader) {
50939
+ while (reader.nextField()) {
50940
+ if (reader.isEndGroup()) {
50941
+ break;
50942
+ }
50943
+ var field = reader.getFieldNumber();
50944
+ switch (field) {
50945
+ case 1:
50946
+ var value = new proto.user.RiskPermissionConditionDefinition;
50947
+ reader.readMessage(value,proto.user.RiskPermissionConditionDefinition.deserializeBinaryFromReader);
50948
+ msg.addConditions(value);
50949
+ break;
50950
+ default:
50951
+ reader.skipField();
50952
+ break;
50953
+ }
50954
+ }
50955
+ return msg;
50956
+ };
50957
+
50958
+
50959
+ /**
50960
+ * Serializes the message to binary data (in protobuf wire format).
50961
+ * @return {!Uint8Array}
50962
+ */
50963
+ proto.user.RiskPermissionConditionsResponse.prototype.serializeBinary = function() {
50964
+ var writer = new jspb.BinaryWriter();
50965
+ proto.user.RiskPermissionConditionsResponse.serializeBinaryToWriter(this, writer);
50966
+ return writer.getResultBuffer();
50967
+ };
50968
+
50969
+
50970
+ /**
50971
+ * Serializes the given message to binary data (in protobuf wire
50972
+ * format), writing to the given BinaryWriter.
50973
+ * @param {!proto.user.RiskPermissionConditionsResponse} message
50974
+ * @param {!jspb.BinaryWriter} writer
50975
+ * @suppress {unusedLocalVariables} f is only used for nested messages
50976
+ */
50977
+ proto.user.RiskPermissionConditionsResponse.serializeBinaryToWriter = function(message, writer) {
50978
+ var f = undefined;
50979
+ f = message.getConditionsList();
50980
+ if (f.length > 0) {
50981
+ writer.writeRepeatedMessage(
50982
+ 1,
50983
+ f,
50984
+ proto.user.RiskPermissionConditionDefinition.serializeBinaryToWriter
50985
+ );
50986
+ }
50987
+ };
50988
+
50989
+
50990
+ /**
50991
+ * repeated RiskPermissionConditionDefinition conditions = 1;
50992
+ * @return {!Array<!proto.user.RiskPermissionConditionDefinition>}
50993
+ */
50994
+ proto.user.RiskPermissionConditionsResponse.prototype.getConditionsList = function() {
50995
+ return /** @type{!Array<!proto.user.RiskPermissionConditionDefinition>} */ (
50996
+ jspb.Message.getRepeatedWrapperField(this, proto.user.RiskPermissionConditionDefinition, 1));
50997
+ };
50998
+
50999
+
51000
+ /**
51001
+ * @param {!Array<!proto.user.RiskPermissionConditionDefinition>} value
51002
+ * @return {!proto.user.RiskPermissionConditionsResponse} returns this
51003
+ */
51004
+ proto.user.RiskPermissionConditionsResponse.prototype.setConditionsList = function(value) {
51005
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
51006
+ };
51007
+
51008
+
51009
+ /**
51010
+ * @param {!proto.user.RiskPermissionConditionDefinition=} opt_value
51011
+ * @param {number=} opt_index
51012
+ * @return {!proto.user.RiskPermissionConditionDefinition}
51013
+ */
51014
+ proto.user.RiskPermissionConditionsResponse.prototype.addConditions = function(opt_value, opt_index) {
51015
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.user.RiskPermissionConditionDefinition, opt_index);
51016
+ };
51017
+
51018
+
51019
+ /**
51020
+ * Clears the list making it empty but non-null.
51021
+ * @return {!proto.user.RiskPermissionConditionsResponse} returns this
51022
+ */
51023
+ proto.user.RiskPermissionConditionsResponse.prototype.clearConditionsList = function() {
51024
+ return this.setConditionsList([]);
51025
+ };
51026
+
51027
+
51028
+
50438
51029
  /**
50439
51030
  * List of repeated fields within this message type.
50440
51031
  * @private {!Array<number>}