protobuf-platform 1.2.609 → 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/cms/cms.proto CHANGED
@@ -452,6 +452,9 @@ message PagesItemsResponse {
452
452
  message GetPageRequest {
453
453
  optional int32 id = 1;
454
454
  optional string slug = 2;
455
+ optional string geo = 3;
456
+ optional string locale = 4;
457
+ optional string domain = 5;
455
458
  }
456
459
  message PageStatusResponse {
457
460
  string status = 1;
@@ -463,11 +466,13 @@ message PageTranslationRequest {
463
466
  optional string title = 4;
464
467
  optional string content = 5;
465
468
  optional int32 is_active = 6;
469
+ optional string domain = 7;
466
470
  }
467
471
  message GetPageTranslationRequest {
468
472
  int32 page_id = 1;
469
473
  string geo = 2;
470
474
  string locale = 3;
475
+ optional string domain = 4;
471
476
  }
472
477
  message PageTranslationResponse {
473
478
  optional string title = 1;
package/cms/cms_pb.js CHANGED
@@ -18192,7 +18192,10 @@ proto.cms.GetPageRequest.prototype.toObject = function(opt_includeInstance) {
18192
18192
  proto.cms.GetPageRequest.toObject = function(includeInstance, msg) {
18193
18193
  var f, obj = {
18194
18194
  id: jspb.Message.getFieldWithDefault(msg, 1, 0),
18195
- slug: jspb.Message.getFieldWithDefault(msg, 2, "")
18195
+ slug: jspb.Message.getFieldWithDefault(msg, 2, ""),
18196
+ geo: jspb.Message.getFieldWithDefault(msg, 3, ""),
18197
+ locale: jspb.Message.getFieldWithDefault(msg, 4, ""),
18198
+ domain: jspb.Message.getFieldWithDefault(msg, 5, "")
18196
18199
  };
18197
18200
 
18198
18201
  if (includeInstance) {
@@ -18237,6 +18240,18 @@ proto.cms.GetPageRequest.deserializeBinaryFromReader = function(msg, reader) {
18237
18240
  var value = /** @type {string} */ (reader.readString());
18238
18241
  msg.setSlug(value);
18239
18242
  break;
18243
+ case 3:
18244
+ var value = /** @type {string} */ (reader.readString());
18245
+ msg.setGeo(value);
18246
+ break;
18247
+ case 4:
18248
+ var value = /** @type {string} */ (reader.readString());
18249
+ msg.setLocale(value);
18250
+ break;
18251
+ case 5:
18252
+ var value = /** @type {string} */ (reader.readString());
18253
+ msg.setDomain(value);
18254
+ break;
18240
18255
  default:
18241
18256
  reader.skipField();
18242
18257
  break;
@@ -18280,6 +18295,27 @@ proto.cms.GetPageRequest.serializeBinaryToWriter = function(message, writer) {
18280
18295
  f
18281
18296
  );
18282
18297
  }
18298
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
18299
+ if (f != null) {
18300
+ writer.writeString(
18301
+ 3,
18302
+ f
18303
+ );
18304
+ }
18305
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
18306
+ if (f != null) {
18307
+ writer.writeString(
18308
+ 4,
18309
+ f
18310
+ );
18311
+ }
18312
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
18313
+ if (f != null) {
18314
+ writer.writeString(
18315
+ 5,
18316
+ f
18317
+ );
18318
+ }
18283
18319
  };
18284
18320
 
18285
18321
 
@@ -18355,6 +18391,114 @@ proto.cms.GetPageRequest.prototype.hasSlug = function() {
18355
18391
  };
18356
18392
 
18357
18393
 
18394
+ /**
18395
+ * optional string geo = 3;
18396
+ * @return {string}
18397
+ */
18398
+ proto.cms.GetPageRequest.prototype.getGeo = function() {
18399
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
18400
+ };
18401
+
18402
+
18403
+ /**
18404
+ * @param {string} value
18405
+ * @return {!proto.cms.GetPageRequest} returns this
18406
+ */
18407
+ proto.cms.GetPageRequest.prototype.setGeo = function(value) {
18408
+ return jspb.Message.setField(this, 3, value);
18409
+ };
18410
+
18411
+
18412
+ /**
18413
+ * Clears the field making it undefined.
18414
+ * @return {!proto.cms.GetPageRequest} returns this
18415
+ */
18416
+ proto.cms.GetPageRequest.prototype.clearGeo = function() {
18417
+ return jspb.Message.setField(this, 3, undefined);
18418
+ };
18419
+
18420
+
18421
+ /**
18422
+ * Returns whether this field is set.
18423
+ * @return {boolean}
18424
+ */
18425
+ proto.cms.GetPageRequest.prototype.hasGeo = function() {
18426
+ return jspb.Message.getField(this, 3) != null;
18427
+ };
18428
+
18429
+
18430
+ /**
18431
+ * optional string locale = 4;
18432
+ * @return {string}
18433
+ */
18434
+ proto.cms.GetPageRequest.prototype.getLocale = function() {
18435
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
18436
+ };
18437
+
18438
+
18439
+ /**
18440
+ * @param {string} value
18441
+ * @return {!proto.cms.GetPageRequest} returns this
18442
+ */
18443
+ proto.cms.GetPageRequest.prototype.setLocale = function(value) {
18444
+ return jspb.Message.setField(this, 4, value);
18445
+ };
18446
+
18447
+
18448
+ /**
18449
+ * Clears the field making it undefined.
18450
+ * @return {!proto.cms.GetPageRequest} returns this
18451
+ */
18452
+ proto.cms.GetPageRequest.prototype.clearLocale = function() {
18453
+ return jspb.Message.setField(this, 4, undefined);
18454
+ };
18455
+
18456
+
18457
+ /**
18458
+ * Returns whether this field is set.
18459
+ * @return {boolean}
18460
+ */
18461
+ proto.cms.GetPageRequest.prototype.hasLocale = function() {
18462
+ return jspb.Message.getField(this, 4) != null;
18463
+ };
18464
+
18465
+
18466
+ /**
18467
+ * optional string domain = 5;
18468
+ * @return {string}
18469
+ */
18470
+ proto.cms.GetPageRequest.prototype.getDomain = function() {
18471
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
18472
+ };
18473
+
18474
+
18475
+ /**
18476
+ * @param {string} value
18477
+ * @return {!proto.cms.GetPageRequest} returns this
18478
+ */
18479
+ proto.cms.GetPageRequest.prototype.setDomain = function(value) {
18480
+ return jspb.Message.setField(this, 5, value);
18481
+ };
18482
+
18483
+
18484
+ /**
18485
+ * Clears the field making it undefined.
18486
+ * @return {!proto.cms.GetPageRequest} returns this
18487
+ */
18488
+ proto.cms.GetPageRequest.prototype.clearDomain = function() {
18489
+ return jspb.Message.setField(this, 5, undefined);
18490
+ };
18491
+
18492
+
18493
+ /**
18494
+ * Returns whether this field is set.
18495
+ * @return {boolean}
18496
+ */
18497
+ proto.cms.GetPageRequest.prototype.hasDomain = function() {
18498
+ return jspb.Message.getField(this, 5) != null;
18499
+ };
18500
+
18501
+
18358
18502
 
18359
18503
 
18360
18504
 
@@ -18522,7 +18666,8 @@ proto.cms.PageTranslationRequest.toObject = function(includeInstance, msg) {
18522
18666
  locale: jspb.Message.getFieldWithDefault(msg, 3, ""),
18523
18667
  title: jspb.Message.getFieldWithDefault(msg, 4, ""),
18524
18668
  content: jspb.Message.getFieldWithDefault(msg, 5, ""),
18525
- isActive: jspb.Message.getFieldWithDefault(msg, 6, 0)
18669
+ isActive: jspb.Message.getFieldWithDefault(msg, 6, 0),
18670
+ domain: jspb.Message.getFieldWithDefault(msg, 7, "")
18526
18671
  };
18527
18672
 
18528
18673
  if (includeInstance) {
@@ -18583,6 +18728,10 @@ proto.cms.PageTranslationRequest.deserializeBinaryFromReader = function(msg, rea
18583
18728
  var value = /** @type {number} */ (reader.readInt32());
18584
18729
  msg.setIsActive(value);
18585
18730
  break;
18731
+ case 7:
18732
+ var value = /** @type {string} */ (reader.readString());
18733
+ msg.setDomain(value);
18734
+ break;
18586
18735
  default:
18587
18736
  reader.skipField();
18588
18737
  break;
@@ -18654,6 +18803,13 @@ proto.cms.PageTranslationRequest.serializeBinaryToWriter = function(message, wri
18654
18803
  f
18655
18804
  );
18656
18805
  }
18806
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
18807
+ if (f != null) {
18808
+ writer.writeString(
18809
+ 7,
18810
+ f
18811
+ );
18812
+ }
18657
18813
  };
18658
18814
 
18659
18815
 
@@ -18819,6 +18975,42 @@ proto.cms.PageTranslationRequest.prototype.hasIsActive = function() {
18819
18975
  };
18820
18976
 
18821
18977
 
18978
+ /**
18979
+ * optional string domain = 7;
18980
+ * @return {string}
18981
+ */
18982
+ proto.cms.PageTranslationRequest.prototype.getDomain = function() {
18983
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
18984
+ };
18985
+
18986
+
18987
+ /**
18988
+ * @param {string} value
18989
+ * @return {!proto.cms.PageTranslationRequest} returns this
18990
+ */
18991
+ proto.cms.PageTranslationRequest.prototype.setDomain = function(value) {
18992
+ return jspb.Message.setField(this, 7, value);
18993
+ };
18994
+
18995
+
18996
+ /**
18997
+ * Clears the field making it undefined.
18998
+ * @return {!proto.cms.PageTranslationRequest} returns this
18999
+ */
19000
+ proto.cms.PageTranslationRequest.prototype.clearDomain = function() {
19001
+ return jspb.Message.setField(this, 7, undefined);
19002
+ };
19003
+
19004
+
19005
+ /**
19006
+ * Returns whether this field is set.
19007
+ * @return {boolean}
19008
+ */
19009
+ proto.cms.PageTranslationRequest.prototype.hasDomain = function() {
19010
+ return jspb.Message.getField(this, 7) != null;
19011
+ };
19012
+
19013
+
18822
19014
 
18823
19015
 
18824
19016
 
@@ -18853,7 +19045,8 @@ proto.cms.GetPageTranslationRequest.toObject = function(includeInstance, msg) {
18853
19045
  var f, obj = {
18854
19046
  pageId: jspb.Message.getFieldWithDefault(msg, 1, 0),
18855
19047
  geo: jspb.Message.getFieldWithDefault(msg, 2, ""),
18856
- locale: jspb.Message.getFieldWithDefault(msg, 3, "")
19048
+ locale: jspb.Message.getFieldWithDefault(msg, 3, ""),
19049
+ domain: jspb.Message.getFieldWithDefault(msg, 4, "")
18857
19050
  };
18858
19051
 
18859
19052
  if (includeInstance) {
@@ -18902,6 +19095,10 @@ proto.cms.GetPageTranslationRequest.deserializeBinaryFromReader = function(msg,
18902
19095
  var value = /** @type {string} */ (reader.readString());
18903
19096
  msg.setLocale(value);
18904
19097
  break;
19098
+ case 4:
19099
+ var value = /** @type {string} */ (reader.readString());
19100
+ msg.setDomain(value);
19101
+ break;
18905
19102
  default:
18906
19103
  reader.skipField();
18907
19104
  break;
@@ -18952,6 +19149,13 @@ proto.cms.GetPageTranslationRequest.serializeBinaryToWriter = function(message,
18952
19149
  f
18953
19150
  );
18954
19151
  }
19152
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
19153
+ if (f != null) {
19154
+ writer.writeString(
19155
+ 4,
19156
+ f
19157
+ );
19158
+ }
18955
19159
  };
18956
19160
 
18957
19161
 
@@ -19009,6 +19213,42 @@ proto.cms.GetPageTranslationRequest.prototype.setLocale = function(value) {
19009
19213
  };
19010
19214
 
19011
19215
 
19216
+ /**
19217
+ * optional string domain = 4;
19218
+ * @return {string}
19219
+ */
19220
+ proto.cms.GetPageTranslationRequest.prototype.getDomain = function() {
19221
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
19222
+ };
19223
+
19224
+
19225
+ /**
19226
+ * @param {string} value
19227
+ * @return {!proto.cms.GetPageTranslationRequest} returns this
19228
+ */
19229
+ proto.cms.GetPageTranslationRequest.prototype.setDomain = function(value) {
19230
+ return jspb.Message.setField(this, 4, value);
19231
+ };
19232
+
19233
+
19234
+ /**
19235
+ * Clears the field making it undefined.
19236
+ * @return {!proto.cms.GetPageTranslationRequest} returns this
19237
+ */
19238
+ proto.cms.GetPageTranslationRequest.prototype.clearDomain = function() {
19239
+ return jspb.Message.setField(this, 4, undefined);
19240
+ };
19241
+
19242
+
19243
+ /**
19244
+ * Returns whether this field is set.
19245
+ * @return {boolean}
19246
+ */
19247
+ proto.cms.GetPageTranslationRequest.prototype.hasDomain = function() {
19248
+ return jspb.Message.getField(this, 4) != null;
19249
+ };
19250
+
19251
+
19012
19252
 
19013
19253
 
19014
19254
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.609",
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.