protobuf-platform 1.2.731 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.731",
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);
@@ -1201,6 +1202,16 @@ message ReadRiskPermissionMatrixRequest {
1201
1202
  }
1202
1203
  // Platform-defined optional conditions, ANDed with each existing permission flag.
1203
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
+
1204
1215
  message RiskPermissionConditionSet {
1205
1216
  repeated string conditions = 1;
1206
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
@@ -50483,6 +50549,483 @@ proto.user.ReadRiskPermissionMatrixRequest.prototype.setRiskLevel = function(val
50483
50549
 
50484
50550
 
50485
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
+
50486
51029
  /**
50487
51030
  * List of repeated fields within this message type.
50488
51031
  * @private {!Array<number>}