protobuf-platform 1.2.610 → 1.2.611

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.610",
3
+ "version": "1.2.611",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -189,6 +189,8 @@ service User {
189
189
  rpc setResponsibleGamingPolicy(SetResponsibleGamingPolicyRequest) returns (ResponsibleGamingPolicyItem);
190
190
  // Disables the concrete policy identified by policy_id.
191
191
  rpc disableResponsibleGamingPolicy(DisableResponsibleGamingPolicyRequest) returns (ResponsibleGamingPolicyItem);
192
+ // Privileged BackOffice administrative reset; bypasses player delay/minimum-period semantics for one replacement scope.
193
+ rpc adminResetResponsibleGamingPolicy(AdminResetResponsibleGamingPolicyRequest) returns (AdminResetResponsibleGamingPolicyResponse);
192
194
  rpc readResponsibleGamingOverview(ReadResponsibleGamingOverviewRequest) returns (ResponsibleGamingOverviewResponse);
193
195
  rpc readResponsibleGamingPolicyHistory(ReadResponsibleGamingPolicyHistoryRequest) returns (ReadResponsibleGamingPolicyHistoryResponse);
194
196
  rpc evaluateResponsibleGamingDecision(EvaluateResponsibleGamingDecisionRequest) returns (EvaluateResponsibleGamingDecisionResponse);
@@ -2176,6 +2178,22 @@ message DisableResponsibleGamingPolicyRequest {
2176
2178
  string policy_id = 2;
2177
2179
  optional string ended_at = 3;
2178
2180
  }
2181
+ // BackOffice administrative reset for one replacement scope resolved from policy_id.
2182
+ message AdminResetResponsibleGamingPolicyRequest {
2183
+ int32 user_id = 1;
2184
+ string policy_id = 2;
2185
+ int32 manager_user_id = 3;
2186
+ optional string reason = 4;
2187
+ }
2188
+ message AdminResetResponsibleGamingPolicyResponse {
2189
+ int32 user_id = 1;
2190
+ string policy_id = 2;
2191
+ ResponsibleGamingPolicyType policy_type = 3;
2192
+ optional ResponsibleGamingRecurringPeriod recurring_period = 4;
2193
+ string reset_at = 5;
2194
+ int32 manager_user_id = 6;
2195
+ repeated string cancelled_pending_policy_ids = 7;
2196
+ }
2179
2197
  message ReadResponsibleGamingOverviewRequest {
2180
2198
  int32 user_id = 1;
2181
2199
  optional string currency = 2;
@@ -4,6 +4,28 @@
4
4
  var grpc = require('@grpc/grpc-js');
5
5
  var user_pb = require('./user_pb.js');
6
6
 
7
+ function serialize_user_AdminResetResponsibleGamingPolicyRequest(arg) {
8
+ if (!(arg instanceof user_pb.AdminResetResponsibleGamingPolicyRequest)) {
9
+ throw new Error('Expected argument of type user.AdminResetResponsibleGamingPolicyRequest');
10
+ }
11
+ return Buffer.from(arg.serializeBinary());
12
+ }
13
+
14
+ function deserialize_user_AdminResetResponsibleGamingPolicyRequest(buffer_arg) {
15
+ return user_pb.AdminResetResponsibleGamingPolicyRequest.deserializeBinary(new Uint8Array(buffer_arg));
16
+ }
17
+
18
+ function serialize_user_AdminResetResponsibleGamingPolicyResponse(arg) {
19
+ if (!(arg instanceof user_pb.AdminResetResponsibleGamingPolicyResponse)) {
20
+ throw new Error('Expected argument of type user.AdminResetResponsibleGamingPolicyResponse');
21
+ }
22
+ return Buffer.from(arg.serializeBinary());
23
+ }
24
+
25
+ function deserialize_user_AdminResetResponsibleGamingPolicyResponse(buffer_arg) {
26
+ return user_pb.AdminResetResponsibleGamingPolicyResponse.deserializeBinary(new Uint8Array(buffer_arg));
27
+ }
28
+
7
29
  function serialize_user_AppleLoginRequest(arg) {
8
30
  if (!(arg instanceof user_pb.AppleLoginRequest)) {
9
31
  throw new Error('Expected argument of type user.AppleLoginRequest');
@@ -3967,6 +3989,18 @@ disableResponsibleGamingPolicy: {
3967
3989
  responseSerialize: serialize_user_ResponsibleGamingPolicyItem,
3968
3990
  responseDeserialize: deserialize_user_ResponsibleGamingPolicyItem,
3969
3991
  },
3992
+ // Privileged BackOffice administrative reset; bypasses player delay/minimum-period semantics for one replacement scope.
3993
+ adminResetResponsibleGamingPolicy: {
3994
+ path: '/user.User/adminResetResponsibleGamingPolicy',
3995
+ requestStream: false,
3996
+ responseStream: false,
3997
+ requestType: user_pb.AdminResetResponsibleGamingPolicyRequest,
3998
+ responseType: user_pb.AdminResetResponsibleGamingPolicyResponse,
3999
+ requestSerialize: serialize_user_AdminResetResponsibleGamingPolicyRequest,
4000
+ requestDeserialize: deserialize_user_AdminResetResponsibleGamingPolicyRequest,
4001
+ responseSerialize: serialize_user_AdminResetResponsibleGamingPolicyResponse,
4002
+ responseDeserialize: deserialize_user_AdminResetResponsibleGamingPolicyResponse,
4003
+ },
3970
4004
  readResponsibleGamingOverview: {
3971
4005
  path: '/user.User/readResponsibleGamingOverview',
3972
4006
  requestStream: false,
package/user/user_pb.js CHANGED
@@ -21,6 +21,8 @@ var global = (function() {
21
21
  return Function('return this')();
22
22
  }.call(null));
23
23
 
24
+ goog.exportSymbol('proto.user.AdminResetResponsibleGamingPolicyRequest', null, global);
25
+ goog.exportSymbol('proto.user.AdminResetResponsibleGamingPolicyResponse', null, global);
24
26
  goog.exportSymbol('proto.user.AppleLoginRequest', null, global);
25
27
  goog.exportSymbol('proto.user.ApproveVerificationRequest', null, global);
26
28
  goog.exportSymbol('proto.user.ApproveVerificationResponse', null, global);
@@ -5435,6 +5437,48 @@ if (goog.DEBUG && !COMPILED) {
5435
5437
  */
5436
5438
  proto.user.DisableResponsibleGamingPolicyRequest.displayName = 'proto.user.DisableResponsibleGamingPolicyRequest';
5437
5439
  }
5440
+ /**
5441
+ * Generated by JsPbCodeGenerator.
5442
+ * @param {Array=} opt_data Optional initial data array, typically from a
5443
+ * server response, or constructed directly in Javascript. The array is used
5444
+ * in place and becomes part of the constructed object. It is not cloned.
5445
+ * If no data is provided, the constructed object will be empty, but still
5446
+ * valid.
5447
+ * @extends {jspb.Message}
5448
+ * @constructor
5449
+ */
5450
+ proto.user.AdminResetResponsibleGamingPolicyRequest = function(opt_data) {
5451
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
5452
+ };
5453
+ goog.inherits(proto.user.AdminResetResponsibleGamingPolicyRequest, jspb.Message);
5454
+ if (goog.DEBUG && !COMPILED) {
5455
+ /**
5456
+ * @public
5457
+ * @override
5458
+ */
5459
+ proto.user.AdminResetResponsibleGamingPolicyRequest.displayName = 'proto.user.AdminResetResponsibleGamingPolicyRequest';
5460
+ }
5461
+ /**
5462
+ * Generated by JsPbCodeGenerator.
5463
+ * @param {Array=} opt_data Optional initial data array, typically from a
5464
+ * server response, or constructed directly in Javascript. The array is used
5465
+ * in place and becomes part of the constructed object. It is not cloned.
5466
+ * If no data is provided, the constructed object will be empty, but still
5467
+ * valid.
5468
+ * @extends {jspb.Message}
5469
+ * @constructor
5470
+ */
5471
+ proto.user.AdminResetResponsibleGamingPolicyResponse = function(opt_data) {
5472
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.user.AdminResetResponsibleGamingPolicyResponse.repeatedFields_, null);
5473
+ };
5474
+ goog.inherits(proto.user.AdminResetResponsibleGamingPolicyResponse, jspb.Message);
5475
+ if (goog.DEBUG && !COMPILED) {
5476
+ /**
5477
+ * @public
5478
+ * @override
5479
+ */
5480
+ proto.user.AdminResetResponsibleGamingPolicyResponse.displayName = 'proto.user.AdminResetResponsibleGamingPolicyResponse';
5481
+ }
5438
5482
  /**
5439
5483
  * Generated by JsPbCodeGenerator.
5440
5484
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -87184,6 +87228,598 @@ proto.user.DisableResponsibleGamingPolicyRequest.prototype.hasEndedAt = function
87184
87228
 
87185
87229
 
87186
87230
 
87231
+ if (jspb.Message.GENERATE_TO_OBJECT) {
87232
+ /**
87233
+ * Creates an object representation of this proto.
87234
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
87235
+ * Optional fields that are not set will be set to undefined.
87236
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
87237
+ * For the list of reserved names please see:
87238
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
87239
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
87240
+ * JSPB instance for transitional soy proto support:
87241
+ * http://goto/soy-param-migration
87242
+ * @return {!Object}
87243
+ */
87244
+ proto.user.AdminResetResponsibleGamingPolicyRequest.prototype.toObject = function(opt_includeInstance) {
87245
+ return proto.user.AdminResetResponsibleGamingPolicyRequest.toObject(opt_includeInstance, this);
87246
+ };
87247
+
87248
+
87249
+ /**
87250
+ * Static version of the {@see toObject} method.
87251
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
87252
+ * the JSPB instance for transitional soy proto support:
87253
+ * http://goto/soy-param-migration
87254
+ * @param {!proto.user.AdminResetResponsibleGamingPolicyRequest} msg The msg instance to transform.
87255
+ * @return {!Object}
87256
+ * @suppress {unusedLocalVariables} f is only used for nested messages
87257
+ */
87258
+ proto.user.AdminResetResponsibleGamingPolicyRequest.toObject = function(includeInstance, msg) {
87259
+ var f, obj = {
87260
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
87261
+ policyId: jspb.Message.getFieldWithDefault(msg, 2, ""),
87262
+ managerUserId: jspb.Message.getFieldWithDefault(msg, 3, 0),
87263
+ reason: jspb.Message.getFieldWithDefault(msg, 4, "")
87264
+ };
87265
+
87266
+ if (includeInstance) {
87267
+ obj.$jspbMessageInstance = msg;
87268
+ }
87269
+ return obj;
87270
+ };
87271
+ }
87272
+
87273
+
87274
+ /**
87275
+ * Deserializes binary data (in protobuf wire format).
87276
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
87277
+ * @return {!proto.user.AdminResetResponsibleGamingPolicyRequest}
87278
+ */
87279
+ proto.user.AdminResetResponsibleGamingPolicyRequest.deserializeBinary = function(bytes) {
87280
+ var reader = new jspb.BinaryReader(bytes);
87281
+ var msg = new proto.user.AdminResetResponsibleGamingPolicyRequest;
87282
+ return proto.user.AdminResetResponsibleGamingPolicyRequest.deserializeBinaryFromReader(msg, reader);
87283
+ };
87284
+
87285
+
87286
+ /**
87287
+ * Deserializes binary data (in protobuf wire format) from the
87288
+ * given reader into the given message object.
87289
+ * @param {!proto.user.AdminResetResponsibleGamingPolicyRequest} msg The message object to deserialize into.
87290
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
87291
+ * @return {!proto.user.AdminResetResponsibleGamingPolicyRequest}
87292
+ */
87293
+ proto.user.AdminResetResponsibleGamingPolicyRequest.deserializeBinaryFromReader = function(msg, reader) {
87294
+ while (reader.nextField()) {
87295
+ if (reader.isEndGroup()) {
87296
+ break;
87297
+ }
87298
+ var field = reader.getFieldNumber();
87299
+ switch (field) {
87300
+ case 1:
87301
+ var value = /** @type {number} */ (reader.readInt32());
87302
+ msg.setUserId(value);
87303
+ break;
87304
+ case 2:
87305
+ var value = /** @type {string} */ (reader.readString());
87306
+ msg.setPolicyId(value);
87307
+ break;
87308
+ case 3:
87309
+ var value = /** @type {number} */ (reader.readInt32());
87310
+ msg.setManagerUserId(value);
87311
+ break;
87312
+ case 4:
87313
+ var value = /** @type {string} */ (reader.readString());
87314
+ msg.setReason(value);
87315
+ break;
87316
+ default:
87317
+ reader.skipField();
87318
+ break;
87319
+ }
87320
+ }
87321
+ return msg;
87322
+ };
87323
+
87324
+
87325
+ /**
87326
+ * Serializes the message to binary data (in protobuf wire format).
87327
+ * @return {!Uint8Array}
87328
+ */
87329
+ proto.user.AdminResetResponsibleGamingPolicyRequest.prototype.serializeBinary = function() {
87330
+ var writer = new jspb.BinaryWriter();
87331
+ proto.user.AdminResetResponsibleGamingPolicyRequest.serializeBinaryToWriter(this, writer);
87332
+ return writer.getResultBuffer();
87333
+ };
87334
+
87335
+
87336
+ /**
87337
+ * Serializes the given message to binary data (in protobuf wire
87338
+ * format), writing to the given BinaryWriter.
87339
+ * @param {!proto.user.AdminResetResponsibleGamingPolicyRequest} message
87340
+ * @param {!jspb.BinaryWriter} writer
87341
+ * @suppress {unusedLocalVariables} f is only used for nested messages
87342
+ */
87343
+ proto.user.AdminResetResponsibleGamingPolicyRequest.serializeBinaryToWriter = function(message, writer) {
87344
+ var f = undefined;
87345
+ f = message.getUserId();
87346
+ if (f !== 0) {
87347
+ writer.writeInt32(
87348
+ 1,
87349
+ f
87350
+ );
87351
+ }
87352
+ f = message.getPolicyId();
87353
+ if (f.length > 0) {
87354
+ writer.writeString(
87355
+ 2,
87356
+ f
87357
+ );
87358
+ }
87359
+ f = message.getManagerUserId();
87360
+ if (f !== 0) {
87361
+ writer.writeInt32(
87362
+ 3,
87363
+ f
87364
+ );
87365
+ }
87366
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
87367
+ if (f != null) {
87368
+ writer.writeString(
87369
+ 4,
87370
+ f
87371
+ );
87372
+ }
87373
+ };
87374
+
87375
+
87376
+ /**
87377
+ * optional int32 user_id = 1;
87378
+ * @return {number}
87379
+ */
87380
+ proto.user.AdminResetResponsibleGamingPolicyRequest.prototype.getUserId = function() {
87381
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
87382
+ };
87383
+
87384
+
87385
+ /**
87386
+ * @param {number} value
87387
+ * @return {!proto.user.AdminResetResponsibleGamingPolicyRequest} returns this
87388
+ */
87389
+ proto.user.AdminResetResponsibleGamingPolicyRequest.prototype.setUserId = function(value) {
87390
+ return jspb.Message.setProto3IntField(this, 1, value);
87391
+ };
87392
+
87393
+
87394
+ /**
87395
+ * optional string policy_id = 2;
87396
+ * @return {string}
87397
+ */
87398
+ proto.user.AdminResetResponsibleGamingPolicyRequest.prototype.getPolicyId = function() {
87399
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
87400
+ };
87401
+
87402
+
87403
+ /**
87404
+ * @param {string} value
87405
+ * @return {!proto.user.AdminResetResponsibleGamingPolicyRequest} returns this
87406
+ */
87407
+ proto.user.AdminResetResponsibleGamingPolicyRequest.prototype.setPolicyId = function(value) {
87408
+ return jspb.Message.setProto3StringField(this, 2, value);
87409
+ };
87410
+
87411
+
87412
+ /**
87413
+ * optional int32 manager_user_id = 3;
87414
+ * @return {number}
87415
+ */
87416
+ proto.user.AdminResetResponsibleGamingPolicyRequest.prototype.getManagerUserId = function() {
87417
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
87418
+ };
87419
+
87420
+
87421
+ /**
87422
+ * @param {number} value
87423
+ * @return {!proto.user.AdminResetResponsibleGamingPolicyRequest} returns this
87424
+ */
87425
+ proto.user.AdminResetResponsibleGamingPolicyRequest.prototype.setManagerUserId = function(value) {
87426
+ return jspb.Message.setProto3IntField(this, 3, value);
87427
+ };
87428
+
87429
+
87430
+ /**
87431
+ * optional string reason = 4;
87432
+ * @return {string}
87433
+ */
87434
+ proto.user.AdminResetResponsibleGamingPolicyRequest.prototype.getReason = function() {
87435
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
87436
+ };
87437
+
87438
+
87439
+ /**
87440
+ * @param {string} value
87441
+ * @return {!proto.user.AdminResetResponsibleGamingPolicyRequest} returns this
87442
+ */
87443
+ proto.user.AdminResetResponsibleGamingPolicyRequest.prototype.setReason = function(value) {
87444
+ return jspb.Message.setField(this, 4, value);
87445
+ };
87446
+
87447
+
87448
+ /**
87449
+ * Clears the field making it undefined.
87450
+ * @return {!proto.user.AdminResetResponsibleGamingPolicyRequest} returns this
87451
+ */
87452
+ proto.user.AdminResetResponsibleGamingPolicyRequest.prototype.clearReason = function() {
87453
+ return jspb.Message.setField(this, 4, undefined);
87454
+ };
87455
+
87456
+
87457
+ /**
87458
+ * Returns whether this field is set.
87459
+ * @return {boolean}
87460
+ */
87461
+ proto.user.AdminResetResponsibleGamingPolicyRequest.prototype.hasReason = function() {
87462
+ return jspb.Message.getField(this, 4) != null;
87463
+ };
87464
+
87465
+
87466
+
87467
+ /**
87468
+ * List of repeated fields within this message type.
87469
+ * @private {!Array<number>}
87470
+ * @const
87471
+ */
87472
+ proto.user.AdminResetResponsibleGamingPolicyResponse.repeatedFields_ = [7];
87473
+
87474
+
87475
+
87476
+ if (jspb.Message.GENERATE_TO_OBJECT) {
87477
+ /**
87478
+ * Creates an object representation of this proto.
87479
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
87480
+ * Optional fields that are not set will be set to undefined.
87481
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
87482
+ * For the list of reserved names please see:
87483
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
87484
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
87485
+ * JSPB instance for transitional soy proto support:
87486
+ * http://goto/soy-param-migration
87487
+ * @return {!Object}
87488
+ */
87489
+ proto.user.AdminResetResponsibleGamingPolicyResponse.prototype.toObject = function(opt_includeInstance) {
87490
+ return proto.user.AdminResetResponsibleGamingPolicyResponse.toObject(opt_includeInstance, this);
87491
+ };
87492
+
87493
+
87494
+ /**
87495
+ * Static version of the {@see toObject} method.
87496
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
87497
+ * the JSPB instance for transitional soy proto support:
87498
+ * http://goto/soy-param-migration
87499
+ * @param {!proto.user.AdminResetResponsibleGamingPolicyResponse} msg The msg instance to transform.
87500
+ * @return {!Object}
87501
+ * @suppress {unusedLocalVariables} f is only used for nested messages
87502
+ */
87503
+ proto.user.AdminResetResponsibleGamingPolicyResponse.toObject = function(includeInstance, msg) {
87504
+ var f, obj = {
87505
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
87506
+ policyId: jspb.Message.getFieldWithDefault(msg, 2, ""),
87507
+ policyType: jspb.Message.getFieldWithDefault(msg, 3, 0),
87508
+ recurringPeriod: jspb.Message.getFieldWithDefault(msg, 4, 0),
87509
+ resetAt: jspb.Message.getFieldWithDefault(msg, 5, ""),
87510
+ managerUserId: jspb.Message.getFieldWithDefault(msg, 6, 0),
87511
+ cancelledPendingPolicyIdsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f
87512
+ };
87513
+
87514
+ if (includeInstance) {
87515
+ obj.$jspbMessageInstance = msg;
87516
+ }
87517
+ return obj;
87518
+ };
87519
+ }
87520
+
87521
+
87522
+ /**
87523
+ * Deserializes binary data (in protobuf wire format).
87524
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
87525
+ * @return {!proto.user.AdminResetResponsibleGamingPolicyResponse}
87526
+ */
87527
+ proto.user.AdminResetResponsibleGamingPolicyResponse.deserializeBinary = function(bytes) {
87528
+ var reader = new jspb.BinaryReader(bytes);
87529
+ var msg = new proto.user.AdminResetResponsibleGamingPolicyResponse;
87530
+ return proto.user.AdminResetResponsibleGamingPolicyResponse.deserializeBinaryFromReader(msg, reader);
87531
+ };
87532
+
87533
+
87534
+ /**
87535
+ * Deserializes binary data (in protobuf wire format) from the
87536
+ * given reader into the given message object.
87537
+ * @param {!proto.user.AdminResetResponsibleGamingPolicyResponse} msg The message object to deserialize into.
87538
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
87539
+ * @return {!proto.user.AdminResetResponsibleGamingPolicyResponse}
87540
+ */
87541
+ proto.user.AdminResetResponsibleGamingPolicyResponse.deserializeBinaryFromReader = function(msg, reader) {
87542
+ while (reader.nextField()) {
87543
+ if (reader.isEndGroup()) {
87544
+ break;
87545
+ }
87546
+ var field = reader.getFieldNumber();
87547
+ switch (field) {
87548
+ case 1:
87549
+ var value = /** @type {number} */ (reader.readInt32());
87550
+ msg.setUserId(value);
87551
+ break;
87552
+ case 2:
87553
+ var value = /** @type {string} */ (reader.readString());
87554
+ msg.setPolicyId(value);
87555
+ break;
87556
+ case 3:
87557
+ var value = /** @type {!proto.user.ResponsibleGamingPolicyType} */ (reader.readEnum());
87558
+ msg.setPolicyType(value);
87559
+ break;
87560
+ case 4:
87561
+ var value = /** @type {!proto.user.ResponsibleGamingRecurringPeriod} */ (reader.readEnum());
87562
+ msg.setRecurringPeriod(value);
87563
+ break;
87564
+ case 5:
87565
+ var value = /** @type {string} */ (reader.readString());
87566
+ msg.setResetAt(value);
87567
+ break;
87568
+ case 6:
87569
+ var value = /** @type {number} */ (reader.readInt32());
87570
+ msg.setManagerUserId(value);
87571
+ break;
87572
+ case 7:
87573
+ var value = /** @type {string} */ (reader.readString());
87574
+ msg.addCancelledPendingPolicyIds(value);
87575
+ break;
87576
+ default:
87577
+ reader.skipField();
87578
+ break;
87579
+ }
87580
+ }
87581
+ return msg;
87582
+ };
87583
+
87584
+
87585
+ /**
87586
+ * Serializes the message to binary data (in protobuf wire format).
87587
+ * @return {!Uint8Array}
87588
+ */
87589
+ proto.user.AdminResetResponsibleGamingPolicyResponse.prototype.serializeBinary = function() {
87590
+ var writer = new jspb.BinaryWriter();
87591
+ proto.user.AdminResetResponsibleGamingPolicyResponse.serializeBinaryToWriter(this, writer);
87592
+ return writer.getResultBuffer();
87593
+ };
87594
+
87595
+
87596
+ /**
87597
+ * Serializes the given message to binary data (in protobuf wire
87598
+ * format), writing to the given BinaryWriter.
87599
+ * @param {!proto.user.AdminResetResponsibleGamingPolicyResponse} message
87600
+ * @param {!jspb.BinaryWriter} writer
87601
+ * @suppress {unusedLocalVariables} f is only used for nested messages
87602
+ */
87603
+ proto.user.AdminResetResponsibleGamingPolicyResponse.serializeBinaryToWriter = function(message, writer) {
87604
+ var f = undefined;
87605
+ f = message.getUserId();
87606
+ if (f !== 0) {
87607
+ writer.writeInt32(
87608
+ 1,
87609
+ f
87610
+ );
87611
+ }
87612
+ f = message.getPolicyId();
87613
+ if (f.length > 0) {
87614
+ writer.writeString(
87615
+ 2,
87616
+ f
87617
+ );
87618
+ }
87619
+ f = message.getPolicyType();
87620
+ if (f !== 0.0) {
87621
+ writer.writeEnum(
87622
+ 3,
87623
+ f
87624
+ );
87625
+ }
87626
+ f = /** @type {!proto.user.ResponsibleGamingRecurringPeriod} */ (jspb.Message.getField(message, 4));
87627
+ if (f != null) {
87628
+ writer.writeEnum(
87629
+ 4,
87630
+ f
87631
+ );
87632
+ }
87633
+ f = message.getResetAt();
87634
+ if (f.length > 0) {
87635
+ writer.writeString(
87636
+ 5,
87637
+ f
87638
+ );
87639
+ }
87640
+ f = message.getManagerUserId();
87641
+ if (f !== 0) {
87642
+ writer.writeInt32(
87643
+ 6,
87644
+ f
87645
+ );
87646
+ }
87647
+ f = message.getCancelledPendingPolicyIdsList();
87648
+ if (f.length > 0) {
87649
+ writer.writeRepeatedString(
87650
+ 7,
87651
+ f
87652
+ );
87653
+ }
87654
+ };
87655
+
87656
+
87657
+ /**
87658
+ * optional int32 user_id = 1;
87659
+ * @return {number}
87660
+ */
87661
+ proto.user.AdminResetResponsibleGamingPolicyResponse.prototype.getUserId = function() {
87662
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
87663
+ };
87664
+
87665
+
87666
+ /**
87667
+ * @param {number} value
87668
+ * @return {!proto.user.AdminResetResponsibleGamingPolicyResponse} returns this
87669
+ */
87670
+ proto.user.AdminResetResponsibleGamingPolicyResponse.prototype.setUserId = function(value) {
87671
+ return jspb.Message.setProto3IntField(this, 1, value);
87672
+ };
87673
+
87674
+
87675
+ /**
87676
+ * optional string policy_id = 2;
87677
+ * @return {string}
87678
+ */
87679
+ proto.user.AdminResetResponsibleGamingPolicyResponse.prototype.getPolicyId = function() {
87680
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
87681
+ };
87682
+
87683
+
87684
+ /**
87685
+ * @param {string} value
87686
+ * @return {!proto.user.AdminResetResponsibleGamingPolicyResponse} returns this
87687
+ */
87688
+ proto.user.AdminResetResponsibleGamingPolicyResponse.prototype.setPolicyId = function(value) {
87689
+ return jspb.Message.setProto3StringField(this, 2, value);
87690
+ };
87691
+
87692
+
87693
+ /**
87694
+ * optional ResponsibleGamingPolicyType policy_type = 3;
87695
+ * @return {!proto.user.ResponsibleGamingPolicyType}
87696
+ */
87697
+ proto.user.AdminResetResponsibleGamingPolicyResponse.prototype.getPolicyType = function() {
87698
+ return /** @type {!proto.user.ResponsibleGamingPolicyType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
87699
+ };
87700
+
87701
+
87702
+ /**
87703
+ * @param {!proto.user.ResponsibleGamingPolicyType} value
87704
+ * @return {!proto.user.AdminResetResponsibleGamingPolicyResponse} returns this
87705
+ */
87706
+ proto.user.AdminResetResponsibleGamingPolicyResponse.prototype.setPolicyType = function(value) {
87707
+ return jspb.Message.setProto3EnumField(this, 3, value);
87708
+ };
87709
+
87710
+
87711
+ /**
87712
+ * optional ResponsibleGamingRecurringPeriod recurring_period = 4;
87713
+ * @return {!proto.user.ResponsibleGamingRecurringPeriod}
87714
+ */
87715
+ proto.user.AdminResetResponsibleGamingPolicyResponse.prototype.getRecurringPeriod = function() {
87716
+ return /** @type {!proto.user.ResponsibleGamingRecurringPeriod} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
87717
+ };
87718
+
87719
+
87720
+ /**
87721
+ * @param {!proto.user.ResponsibleGamingRecurringPeriod} value
87722
+ * @return {!proto.user.AdminResetResponsibleGamingPolicyResponse} returns this
87723
+ */
87724
+ proto.user.AdminResetResponsibleGamingPolicyResponse.prototype.setRecurringPeriod = function(value) {
87725
+ return jspb.Message.setField(this, 4, value);
87726
+ };
87727
+
87728
+
87729
+ /**
87730
+ * Clears the field making it undefined.
87731
+ * @return {!proto.user.AdminResetResponsibleGamingPolicyResponse} returns this
87732
+ */
87733
+ proto.user.AdminResetResponsibleGamingPolicyResponse.prototype.clearRecurringPeriod = function() {
87734
+ return jspb.Message.setField(this, 4, undefined);
87735
+ };
87736
+
87737
+
87738
+ /**
87739
+ * Returns whether this field is set.
87740
+ * @return {boolean}
87741
+ */
87742
+ proto.user.AdminResetResponsibleGamingPolicyResponse.prototype.hasRecurringPeriod = function() {
87743
+ return jspb.Message.getField(this, 4) != null;
87744
+ };
87745
+
87746
+
87747
+ /**
87748
+ * optional string reset_at = 5;
87749
+ * @return {string}
87750
+ */
87751
+ proto.user.AdminResetResponsibleGamingPolicyResponse.prototype.getResetAt = function() {
87752
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
87753
+ };
87754
+
87755
+
87756
+ /**
87757
+ * @param {string} value
87758
+ * @return {!proto.user.AdminResetResponsibleGamingPolicyResponse} returns this
87759
+ */
87760
+ proto.user.AdminResetResponsibleGamingPolicyResponse.prototype.setResetAt = function(value) {
87761
+ return jspb.Message.setProto3StringField(this, 5, value);
87762
+ };
87763
+
87764
+
87765
+ /**
87766
+ * optional int32 manager_user_id = 6;
87767
+ * @return {number}
87768
+ */
87769
+ proto.user.AdminResetResponsibleGamingPolicyResponse.prototype.getManagerUserId = function() {
87770
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
87771
+ };
87772
+
87773
+
87774
+ /**
87775
+ * @param {number} value
87776
+ * @return {!proto.user.AdminResetResponsibleGamingPolicyResponse} returns this
87777
+ */
87778
+ proto.user.AdminResetResponsibleGamingPolicyResponse.prototype.setManagerUserId = function(value) {
87779
+ return jspb.Message.setProto3IntField(this, 6, value);
87780
+ };
87781
+
87782
+
87783
+ /**
87784
+ * repeated string cancelled_pending_policy_ids = 7;
87785
+ * @return {!Array<string>}
87786
+ */
87787
+ proto.user.AdminResetResponsibleGamingPolicyResponse.prototype.getCancelledPendingPolicyIdsList = function() {
87788
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 7));
87789
+ };
87790
+
87791
+
87792
+ /**
87793
+ * @param {!Array<string>} value
87794
+ * @return {!proto.user.AdminResetResponsibleGamingPolicyResponse} returns this
87795
+ */
87796
+ proto.user.AdminResetResponsibleGamingPolicyResponse.prototype.setCancelledPendingPolicyIdsList = function(value) {
87797
+ return jspb.Message.setField(this, 7, value || []);
87798
+ };
87799
+
87800
+
87801
+ /**
87802
+ * @param {string} value
87803
+ * @param {number=} opt_index
87804
+ * @return {!proto.user.AdminResetResponsibleGamingPolicyResponse} returns this
87805
+ */
87806
+ proto.user.AdminResetResponsibleGamingPolicyResponse.prototype.addCancelledPendingPolicyIds = function(value, opt_index) {
87807
+ return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
87808
+ };
87809
+
87810
+
87811
+ /**
87812
+ * Clears the list making it empty but non-null.
87813
+ * @return {!proto.user.AdminResetResponsibleGamingPolicyResponse} returns this
87814
+ */
87815
+ proto.user.AdminResetResponsibleGamingPolicyResponse.prototype.clearCancelledPendingPolicyIdsList = function() {
87816
+ return this.setCancelledPendingPolicyIdsList([]);
87817
+ };
87818
+
87819
+
87820
+
87821
+
87822
+
87187
87823
  if (jspb.Message.GENERATE_TO_OBJECT) {
87188
87824
  /**
87189
87825
  * Creates an object representation of this proto.