protobuf-platform 1.2.746 → 1.2.748

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.746",
3
+ "version": "1.2.748",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -3,6 +3,8 @@ syntax = "proto3";
3
3
  package payment;
4
4
 
5
5
  service Payment {
6
+ // Bootstrap control only; no financial effect or per-event readiness calls.
7
+ rpc readGameplayDeliveryReadiness(GameplayDeliveryReadinessRequest) returns (GameplayDeliveryReadinessResult);
6
8
  // Internal monetary authorization; only SQL-owned wallets are supported.
7
9
  rpc reserveRealFunds(ReserveRealFundsRequest) returns (MonetaryReservationResponse);
8
10
  rpc captureMonetaryReservation(CaptureMonetaryReservationRequest) returns (MonetaryReservationResponse);
@@ -1977,3 +1979,19 @@ message DepositWagerContributionSnapshotResponse {
1977
1979
  string brand_key = 1;
1978
1980
  repeated DepositWagerContributionSnapshotEntry entries = 2;
1979
1981
  }
1982
+
1983
+ // Scoped bootstrap capability; unknown versions and missing evidence fail closed.
1984
+ message GameplayDeliveryReadinessRequest {
1985
+ uint32 protocol_version = 1;
1986
+ string activation_epoch = 2;
1987
+ string caller_cohort = 3;
1988
+ }
1989
+ message GameplayDeliveryReadinessResult {
1990
+ uint32 protocol_version = 1;
1991
+ string activation_epoch = 2;
1992
+ string service_cohort = 3;
1993
+ string scope_hash = 4;
1994
+ uint32 durable_effect_version = 5;
1995
+ bool ready = 6;
1996
+ repeated string blocked_reasons = 7;
1997
+ }
@@ -532,6 +532,28 @@ function deserialize_payment_FinancialOperationResponse(buffer_arg) {
532
532
  return payment_pb.FinancialOperationResponse.deserializeBinary(new Uint8Array(buffer_arg));
533
533
  }
534
534
 
535
+ function serialize_payment_GameplayDeliveryReadinessRequest(arg) {
536
+ if (!(arg instanceof payment_pb.GameplayDeliveryReadinessRequest)) {
537
+ throw new Error('Expected argument of type payment.GameplayDeliveryReadinessRequest');
538
+ }
539
+ return Buffer.from(arg.serializeBinary());
540
+ }
541
+
542
+ function deserialize_payment_GameplayDeliveryReadinessRequest(buffer_arg) {
543
+ return payment_pb.GameplayDeliveryReadinessRequest.deserializeBinary(new Uint8Array(buffer_arg));
544
+ }
545
+
546
+ function serialize_payment_GameplayDeliveryReadinessResult(arg) {
547
+ if (!(arg instanceof payment_pb.GameplayDeliveryReadinessResult)) {
548
+ throw new Error('Expected argument of type payment.GameplayDeliveryReadinessResult');
549
+ }
550
+ return Buffer.from(arg.serializeBinary());
551
+ }
552
+
553
+ function deserialize_payment_GameplayDeliveryReadinessResult(buffer_arg) {
554
+ return payment_pb.GameplayDeliveryReadinessResult.deserializeBinary(new Uint8Array(buffer_arg));
555
+ }
556
+
535
557
  function serialize_payment_GameplayPrecisionResult(arg) {
536
558
  if (!(arg instanceof payment_pb.GameplayPrecisionResult)) {
537
559
  throw new Error('Expected argument of type payment.GameplayPrecisionResult');
@@ -1480,6 +1502,18 @@ function deserialize_payment_WithdrawalWebHookRequest(buffer_arg) {
1480
1502
 
1481
1503
 
1482
1504
  var PaymentService = exports.PaymentService = {
1505
+ // Bootstrap control only; no financial effect or per-event readiness calls.
1506
+ readGameplayDeliveryReadiness: {
1507
+ path: '/payment.Payment/readGameplayDeliveryReadiness',
1508
+ requestStream: false,
1509
+ responseStream: false,
1510
+ requestType: payment_pb.GameplayDeliveryReadinessRequest,
1511
+ responseType: payment_pb.GameplayDeliveryReadinessResult,
1512
+ requestSerialize: serialize_payment_GameplayDeliveryReadinessRequest,
1513
+ requestDeserialize: deserialize_payment_GameplayDeliveryReadinessRequest,
1514
+ responseSerialize: serialize_payment_GameplayDeliveryReadinessResult,
1515
+ responseDeserialize: deserialize_payment_GameplayDeliveryReadinessResult,
1516
+ },
1483
1517
  // Internal monetary authorization; only SQL-owned wallets are supported.
1484
1518
  reserveRealFunds: {
1485
1519
  path: '/payment.Payment/reserveRealFunds',
@@ -88,6 +88,8 @@ goog.exportSymbol('proto.payment.FenceGameplayProviderTransactionsResponse', nul
88
88
  goog.exportSymbol('proto.payment.File', null, global);
89
89
  goog.exportSymbol('proto.payment.FinancialAdmissionWalletContext', null, global);
90
90
  goog.exportSymbol('proto.payment.FinancialOperationResponse', null, global);
91
+ goog.exportSymbol('proto.payment.GameplayDeliveryReadinessRequest', null, global);
92
+ goog.exportSymbol('proto.payment.GameplayDeliveryReadinessResult', null, global);
91
93
  goog.exportSymbol('proto.payment.GameplayPrecisionAccountingLeg', null, global);
92
94
  goog.exportSymbol('proto.payment.GameplayPrecisionLeg', null, global);
93
95
  goog.exportSymbol('proto.payment.GameplayPrecisionPreparation', null, global);
@@ -4097,6 +4099,48 @@ if (goog.DEBUG && !COMPILED) {
4097
4099
  */
4098
4100
  proto.payment.DepositWagerContributionSnapshotResponse.displayName = 'proto.payment.DepositWagerContributionSnapshotResponse';
4099
4101
  }
4102
+ /**
4103
+ * Generated by JsPbCodeGenerator.
4104
+ * @param {Array=} opt_data Optional initial data array, typically from a
4105
+ * server response, or constructed directly in Javascript. The array is used
4106
+ * in place and becomes part of the constructed object. It is not cloned.
4107
+ * If no data is provided, the constructed object will be empty, but still
4108
+ * valid.
4109
+ * @extends {jspb.Message}
4110
+ * @constructor
4111
+ */
4112
+ proto.payment.GameplayDeliveryReadinessRequest = function(opt_data) {
4113
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4114
+ };
4115
+ goog.inherits(proto.payment.GameplayDeliveryReadinessRequest, jspb.Message);
4116
+ if (goog.DEBUG && !COMPILED) {
4117
+ /**
4118
+ * @public
4119
+ * @override
4120
+ */
4121
+ proto.payment.GameplayDeliveryReadinessRequest.displayName = 'proto.payment.GameplayDeliveryReadinessRequest';
4122
+ }
4123
+ /**
4124
+ * Generated by JsPbCodeGenerator.
4125
+ * @param {Array=} opt_data Optional initial data array, typically from a
4126
+ * server response, or constructed directly in Javascript. The array is used
4127
+ * in place and becomes part of the constructed object. It is not cloned.
4128
+ * If no data is provided, the constructed object will be empty, but still
4129
+ * valid.
4130
+ * @extends {jspb.Message}
4131
+ * @constructor
4132
+ */
4133
+ proto.payment.GameplayDeliveryReadinessResult = function(opt_data) {
4134
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.payment.GameplayDeliveryReadinessResult.repeatedFields_, null);
4135
+ };
4136
+ goog.inherits(proto.payment.GameplayDeliveryReadinessResult, jspb.Message);
4137
+ if (goog.DEBUG && !COMPILED) {
4138
+ /**
4139
+ * @public
4140
+ * @override
4141
+ */
4142
+ proto.payment.GameplayDeliveryReadinessResult.displayName = 'proto.payment.GameplayDeliveryReadinessResult';
4143
+ }
4100
4144
 
4101
4145
 
4102
4146
 
@@ -77470,6 +77514,532 @@ proto.payment.DepositWagerContributionSnapshotResponse.prototype.clearEntriesLis
77470
77514
  };
77471
77515
 
77472
77516
 
77517
+
77518
+
77519
+
77520
+ if (jspb.Message.GENERATE_TO_OBJECT) {
77521
+ /**
77522
+ * Creates an object representation of this proto.
77523
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
77524
+ * Optional fields that are not set will be set to undefined.
77525
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
77526
+ * For the list of reserved names please see:
77527
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
77528
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
77529
+ * JSPB instance for transitional soy proto support:
77530
+ * http://goto/soy-param-migration
77531
+ * @return {!Object}
77532
+ */
77533
+ proto.payment.GameplayDeliveryReadinessRequest.prototype.toObject = function(opt_includeInstance) {
77534
+ return proto.payment.GameplayDeliveryReadinessRequest.toObject(opt_includeInstance, this);
77535
+ };
77536
+
77537
+
77538
+ /**
77539
+ * Static version of the {@see toObject} method.
77540
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
77541
+ * the JSPB instance for transitional soy proto support:
77542
+ * http://goto/soy-param-migration
77543
+ * @param {!proto.payment.GameplayDeliveryReadinessRequest} msg The msg instance to transform.
77544
+ * @return {!Object}
77545
+ * @suppress {unusedLocalVariables} f is only used for nested messages
77546
+ */
77547
+ proto.payment.GameplayDeliveryReadinessRequest.toObject = function(includeInstance, msg) {
77548
+ var f, obj = {
77549
+ protocolVersion: jspb.Message.getFieldWithDefault(msg, 1, 0),
77550
+ activationEpoch: jspb.Message.getFieldWithDefault(msg, 2, ""),
77551
+ callerCohort: jspb.Message.getFieldWithDefault(msg, 3, "")
77552
+ };
77553
+
77554
+ if (includeInstance) {
77555
+ obj.$jspbMessageInstance = msg;
77556
+ }
77557
+ return obj;
77558
+ };
77559
+ }
77560
+
77561
+
77562
+ /**
77563
+ * Deserializes binary data (in protobuf wire format).
77564
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
77565
+ * @return {!proto.payment.GameplayDeliveryReadinessRequest}
77566
+ */
77567
+ proto.payment.GameplayDeliveryReadinessRequest.deserializeBinary = function(bytes) {
77568
+ var reader = new jspb.BinaryReader(bytes);
77569
+ var msg = new proto.payment.GameplayDeliveryReadinessRequest;
77570
+ return proto.payment.GameplayDeliveryReadinessRequest.deserializeBinaryFromReader(msg, reader);
77571
+ };
77572
+
77573
+
77574
+ /**
77575
+ * Deserializes binary data (in protobuf wire format) from the
77576
+ * given reader into the given message object.
77577
+ * @param {!proto.payment.GameplayDeliveryReadinessRequest} msg The message object to deserialize into.
77578
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
77579
+ * @return {!proto.payment.GameplayDeliveryReadinessRequest}
77580
+ */
77581
+ proto.payment.GameplayDeliveryReadinessRequest.deserializeBinaryFromReader = function(msg, reader) {
77582
+ while (reader.nextField()) {
77583
+ if (reader.isEndGroup()) {
77584
+ break;
77585
+ }
77586
+ var field = reader.getFieldNumber();
77587
+ switch (field) {
77588
+ case 1:
77589
+ var value = /** @type {number} */ (reader.readUint32());
77590
+ msg.setProtocolVersion(value);
77591
+ break;
77592
+ case 2:
77593
+ var value = /** @type {string} */ (reader.readString());
77594
+ msg.setActivationEpoch(value);
77595
+ break;
77596
+ case 3:
77597
+ var value = /** @type {string} */ (reader.readString());
77598
+ msg.setCallerCohort(value);
77599
+ break;
77600
+ default:
77601
+ reader.skipField();
77602
+ break;
77603
+ }
77604
+ }
77605
+ return msg;
77606
+ };
77607
+
77608
+
77609
+ /**
77610
+ * Serializes the message to binary data (in protobuf wire format).
77611
+ * @return {!Uint8Array}
77612
+ */
77613
+ proto.payment.GameplayDeliveryReadinessRequest.prototype.serializeBinary = function() {
77614
+ var writer = new jspb.BinaryWriter();
77615
+ proto.payment.GameplayDeliveryReadinessRequest.serializeBinaryToWriter(this, writer);
77616
+ return writer.getResultBuffer();
77617
+ };
77618
+
77619
+
77620
+ /**
77621
+ * Serializes the given message to binary data (in protobuf wire
77622
+ * format), writing to the given BinaryWriter.
77623
+ * @param {!proto.payment.GameplayDeliveryReadinessRequest} message
77624
+ * @param {!jspb.BinaryWriter} writer
77625
+ * @suppress {unusedLocalVariables} f is only used for nested messages
77626
+ */
77627
+ proto.payment.GameplayDeliveryReadinessRequest.serializeBinaryToWriter = function(message, writer) {
77628
+ var f = undefined;
77629
+ f = message.getProtocolVersion();
77630
+ if (f !== 0) {
77631
+ writer.writeUint32(
77632
+ 1,
77633
+ f
77634
+ );
77635
+ }
77636
+ f = message.getActivationEpoch();
77637
+ if (f.length > 0) {
77638
+ writer.writeString(
77639
+ 2,
77640
+ f
77641
+ );
77642
+ }
77643
+ f = message.getCallerCohort();
77644
+ if (f.length > 0) {
77645
+ writer.writeString(
77646
+ 3,
77647
+ f
77648
+ );
77649
+ }
77650
+ };
77651
+
77652
+
77653
+ /**
77654
+ * optional uint32 protocol_version = 1;
77655
+ * @return {number}
77656
+ */
77657
+ proto.payment.GameplayDeliveryReadinessRequest.prototype.getProtocolVersion = function() {
77658
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
77659
+ };
77660
+
77661
+
77662
+ /**
77663
+ * @param {number} value
77664
+ * @return {!proto.payment.GameplayDeliveryReadinessRequest} returns this
77665
+ */
77666
+ proto.payment.GameplayDeliveryReadinessRequest.prototype.setProtocolVersion = function(value) {
77667
+ return jspb.Message.setProto3IntField(this, 1, value);
77668
+ };
77669
+
77670
+
77671
+ /**
77672
+ * optional string activation_epoch = 2;
77673
+ * @return {string}
77674
+ */
77675
+ proto.payment.GameplayDeliveryReadinessRequest.prototype.getActivationEpoch = function() {
77676
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
77677
+ };
77678
+
77679
+
77680
+ /**
77681
+ * @param {string} value
77682
+ * @return {!proto.payment.GameplayDeliveryReadinessRequest} returns this
77683
+ */
77684
+ proto.payment.GameplayDeliveryReadinessRequest.prototype.setActivationEpoch = function(value) {
77685
+ return jspb.Message.setProto3StringField(this, 2, value);
77686
+ };
77687
+
77688
+
77689
+ /**
77690
+ * optional string caller_cohort = 3;
77691
+ * @return {string}
77692
+ */
77693
+ proto.payment.GameplayDeliveryReadinessRequest.prototype.getCallerCohort = function() {
77694
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
77695
+ };
77696
+
77697
+
77698
+ /**
77699
+ * @param {string} value
77700
+ * @return {!proto.payment.GameplayDeliveryReadinessRequest} returns this
77701
+ */
77702
+ proto.payment.GameplayDeliveryReadinessRequest.prototype.setCallerCohort = function(value) {
77703
+ return jspb.Message.setProto3StringField(this, 3, value);
77704
+ };
77705
+
77706
+
77707
+
77708
+ /**
77709
+ * List of repeated fields within this message type.
77710
+ * @private {!Array<number>}
77711
+ * @const
77712
+ */
77713
+ proto.payment.GameplayDeliveryReadinessResult.repeatedFields_ = [7];
77714
+
77715
+
77716
+
77717
+ if (jspb.Message.GENERATE_TO_OBJECT) {
77718
+ /**
77719
+ * Creates an object representation of this proto.
77720
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
77721
+ * Optional fields that are not set will be set to undefined.
77722
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
77723
+ * For the list of reserved names please see:
77724
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
77725
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
77726
+ * JSPB instance for transitional soy proto support:
77727
+ * http://goto/soy-param-migration
77728
+ * @return {!Object}
77729
+ */
77730
+ proto.payment.GameplayDeliveryReadinessResult.prototype.toObject = function(opt_includeInstance) {
77731
+ return proto.payment.GameplayDeliveryReadinessResult.toObject(opt_includeInstance, this);
77732
+ };
77733
+
77734
+
77735
+ /**
77736
+ * Static version of the {@see toObject} method.
77737
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
77738
+ * the JSPB instance for transitional soy proto support:
77739
+ * http://goto/soy-param-migration
77740
+ * @param {!proto.payment.GameplayDeliveryReadinessResult} msg The msg instance to transform.
77741
+ * @return {!Object}
77742
+ * @suppress {unusedLocalVariables} f is only used for nested messages
77743
+ */
77744
+ proto.payment.GameplayDeliveryReadinessResult.toObject = function(includeInstance, msg) {
77745
+ var f, obj = {
77746
+ protocolVersion: jspb.Message.getFieldWithDefault(msg, 1, 0),
77747
+ activationEpoch: jspb.Message.getFieldWithDefault(msg, 2, ""),
77748
+ serviceCohort: jspb.Message.getFieldWithDefault(msg, 3, ""),
77749
+ scopeHash: jspb.Message.getFieldWithDefault(msg, 4, ""),
77750
+ durableEffectVersion: jspb.Message.getFieldWithDefault(msg, 5, 0),
77751
+ ready: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
77752
+ blockedReasonsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f
77753
+ };
77754
+
77755
+ if (includeInstance) {
77756
+ obj.$jspbMessageInstance = msg;
77757
+ }
77758
+ return obj;
77759
+ };
77760
+ }
77761
+
77762
+
77763
+ /**
77764
+ * Deserializes binary data (in protobuf wire format).
77765
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
77766
+ * @return {!proto.payment.GameplayDeliveryReadinessResult}
77767
+ */
77768
+ proto.payment.GameplayDeliveryReadinessResult.deserializeBinary = function(bytes) {
77769
+ var reader = new jspb.BinaryReader(bytes);
77770
+ var msg = new proto.payment.GameplayDeliveryReadinessResult;
77771
+ return proto.payment.GameplayDeliveryReadinessResult.deserializeBinaryFromReader(msg, reader);
77772
+ };
77773
+
77774
+
77775
+ /**
77776
+ * Deserializes binary data (in protobuf wire format) from the
77777
+ * given reader into the given message object.
77778
+ * @param {!proto.payment.GameplayDeliveryReadinessResult} msg The message object to deserialize into.
77779
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
77780
+ * @return {!proto.payment.GameplayDeliveryReadinessResult}
77781
+ */
77782
+ proto.payment.GameplayDeliveryReadinessResult.deserializeBinaryFromReader = function(msg, reader) {
77783
+ while (reader.nextField()) {
77784
+ if (reader.isEndGroup()) {
77785
+ break;
77786
+ }
77787
+ var field = reader.getFieldNumber();
77788
+ switch (field) {
77789
+ case 1:
77790
+ var value = /** @type {number} */ (reader.readUint32());
77791
+ msg.setProtocolVersion(value);
77792
+ break;
77793
+ case 2:
77794
+ var value = /** @type {string} */ (reader.readString());
77795
+ msg.setActivationEpoch(value);
77796
+ break;
77797
+ case 3:
77798
+ var value = /** @type {string} */ (reader.readString());
77799
+ msg.setServiceCohort(value);
77800
+ break;
77801
+ case 4:
77802
+ var value = /** @type {string} */ (reader.readString());
77803
+ msg.setScopeHash(value);
77804
+ break;
77805
+ case 5:
77806
+ var value = /** @type {number} */ (reader.readUint32());
77807
+ msg.setDurableEffectVersion(value);
77808
+ break;
77809
+ case 6:
77810
+ var value = /** @type {boolean} */ (reader.readBool());
77811
+ msg.setReady(value);
77812
+ break;
77813
+ case 7:
77814
+ var value = /** @type {string} */ (reader.readString());
77815
+ msg.addBlockedReasons(value);
77816
+ break;
77817
+ default:
77818
+ reader.skipField();
77819
+ break;
77820
+ }
77821
+ }
77822
+ return msg;
77823
+ };
77824
+
77825
+
77826
+ /**
77827
+ * Serializes the message to binary data (in protobuf wire format).
77828
+ * @return {!Uint8Array}
77829
+ */
77830
+ proto.payment.GameplayDeliveryReadinessResult.prototype.serializeBinary = function() {
77831
+ var writer = new jspb.BinaryWriter();
77832
+ proto.payment.GameplayDeliveryReadinessResult.serializeBinaryToWriter(this, writer);
77833
+ return writer.getResultBuffer();
77834
+ };
77835
+
77836
+
77837
+ /**
77838
+ * Serializes the given message to binary data (in protobuf wire
77839
+ * format), writing to the given BinaryWriter.
77840
+ * @param {!proto.payment.GameplayDeliveryReadinessResult} message
77841
+ * @param {!jspb.BinaryWriter} writer
77842
+ * @suppress {unusedLocalVariables} f is only used for nested messages
77843
+ */
77844
+ proto.payment.GameplayDeliveryReadinessResult.serializeBinaryToWriter = function(message, writer) {
77845
+ var f = undefined;
77846
+ f = message.getProtocolVersion();
77847
+ if (f !== 0) {
77848
+ writer.writeUint32(
77849
+ 1,
77850
+ f
77851
+ );
77852
+ }
77853
+ f = message.getActivationEpoch();
77854
+ if (f.length > 0) {
77855
+ writer.writeString(
77856
+ 2,
77857
+ f
77858
+ );
77859
+ }
77860
+ f = message.getServiceCohort();
77861
+ if (f.length > 0) {
77862
+ writer.writeString(
77863
+ 3,
77864
+ f
77865
+ );
77866
+ }
77867
+ f = message.getScopeHash();
77868
+ if (f.length > 0) {
77869
+ writer.writeString(
77870
+ 4,
77871
+ f
77872
+ );
77873
+ }
77874
+ f = message.getDurableEffectVersion();
77875
+ if (f !== 0) {
77876
+ writer.writeUint32(
77877
+ 5,
77878
+ f
77879
+ );
77880
+ }
77881
+ f = message.getReady();
77882
+ if (f) {
77883
+ writer.writeBool(
77884
+ 6,
77885
+ f
77886
+ );
77887
+ }
77888
+ f = message.getBlockedReasonsList();
77889
+ if (f.length > 0) {
77890
+ writer.writeRepeatedString(
77891
+ 7,
77892
+ f
77893
+ );
77894
+ }
77895
+ };
77896
+
77897
+
77898
+ /**
77899
+ * optional uint32 protocol_version = 1;
77900
+ * @return {number}
77901
+ */
77902
+ proto.payment.GameplayDeliveryReadinessResult.prototype.getProtocolVersion = function() {
77903
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
77904
+ };
77905
+
77906
+
77907
+ /**
77908
+ * @param {number} value
77909
+ * @return {!proto.payment.GameplayDeliveryReadinessResult} returns this
77910
+ */
77911
+ proto.payment.GameplayDeliveryReadinessResult.prototype.setProtocolVersion = function(value) {
77912
+ return jspb.Message.setProto3IntField(this, 1, value);
77913
+ };
77914
+
77915
+
77916
+ /**
77917
+ * optional string activation_epoch = 2;
77918
+ * @return {string}
77919
+ */
77920
+ proto.payment.GameplayDeliveryReadinessResult.prototype.getActivationEpoch = function() {
77921
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
77922
+ };
77923
+
77924
+
77925
+ /**
77926
+ * @param {string} value
77927
+ * @return {!proto.payment.GameplayDeliveryReadinessResult} returns this
77928
+ */
77929
+ proto.payment.GameplayDeliveryReadinessResult.prototype.setActivationEpoch = function(value) {
77930
+ return jspb.Message.setProto3StringField(this, 2, value);
77931
+ };
77932
+
77933
+
77934
+ /**
77935
+ * optional string service_cohort = 3;
77936
+ * @return {string}
77937
+ */
77938
+ proto.payment.GameplayDeliveryReadinessResult.prototype.getServiceCohort = function() {
77939
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
77940
+ };
77941
+
77942
+
77943
+ /**
77944
+ * @param {string} value
77945
+ * @return {!proto.payment.GameplayDeliveryReadinessResult} returns this
77946
+ */
77947
+ proto.payment.GameplayDeliveryReadinessResult.prototype.setServiceCohort = function(value) {
77948
+ return jspb.Message.setProto3StringField(this, 3, value);
77949
+ };
77950
+
77951
+
77952
+ /**
77953
+ * optional string scope_hash = 4;
77954
+ * @return {string}
77955
+ */
77956
+ proto.payment.GameplayDeliveryReadinessResult.prototype.getScopeHash = function() {
77957
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
77958
+ };
77959
+
77960
+
77961
+ /**
77962
+ * @param {string} value
77963
+ * @return {!proto.payment.GameplayDeliveryReadinessResult} returns this
77964
+ */
77965
+ proto.payment.GameplayDeliveryReadinessResult.prototype.setScopeHash = function(value) {
77966
+ return jspb.Message.setProto3StringField(this, 4, value);
77967
+ };
77968
+
77969
+
77970
+ /**
77971
+ * optional uint32 durable_effect_version = 5;
77972
+ * @return {number}
77973
+ */
77974
+ proto.payment.GameplayDeliveryReadinessResult.prototype.getDurableEffectVersion = function() {
77975
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
77976
+ };
77977
+
77978
+
77979
+ /**
77980
+ * @param {number} value
77981
+ * @return {!proto.payment.GameplayDeliveryReadinessResult} returns this
77982
+ */
77983
+ proto.payment.GameplayDeliveryReadinessResult.prototype.setDurableEffectVersion = function(value) {
77984
+ return jspb.Message.setProto3IntField(this, 5, value);
77985
+ };
77986
+
77987
+
77988
+ /**
77989
+ * optional bool ready = 6;
77990
+ * @return {boolean}
77991
+ */
77992
+ proto.payment.GameplayDeliveryReadinessResult.prototype.getReady = function() {
77993
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
77994
+ };
77995
+
77996
+
77997
+ /**
77998
+ * @param {boolean} value
77999
+ * @return {!proto.payment.GameplayDeliveryReadinessResult} returns this
78000
+ */
78001
+ proto.payment.GameplayDeliveryReadinessResult.prototype.setReady = function(value) {
78002
+ return jspb.Message.setProto3BooleanField(this, 6, value);
78003
+ };
78004
+
78005
+
78006
+ /**
78007
+ * repeated string blocked_reasons = 7;
78008
+ * @return {!Array<string>}
78009
+ */
78010
+ proto.payment.GameplayDeliveryReadinessResult.prototype.getBlockedReasonsList = function() {
78011
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 7));
78012
+ };
78013
+
78014
+
78015
+ /**
78016
+ * @param {!Array<string>} value
78017
+ * @return {!proto.payment.GameplayDeliveryReadinessResult} returns this
78018
+ */
78019
+ proto.payment.GameplayDeliveryReadinessResult.prototype.setBlockedReasonsList = function(value) {
78020
+ return jspb.Message.setField(this, 7, value || []);
78021
+ };
78022
+
78023
+
78024
+ /**
78025
+ * @param {string} value
78026
+ * @param {number=} opt_index
78027
+ * @return {!proto.payment.GameplayDeliveryReadinessResult} returns this
78028
+ */
78029
+ proto.payment.GameplayDeliveryReadinessResult.prototype.addBlockedReasons = function(value, opt_index) {
78030
+ return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
78031
+ };
78032
+
78033
+
78034
+ /**
78035
+ * Clears the list making it empty but non-null.
78036
+ * @return {!proto.payment.GameplayDeliveryReadinessResult} returns this
78037
+ */
78038
+ proto.payment.GameplayDeliveryReadinessResult.prototype.clearBlockedReasonsList = function() {
78039
+ return this.setBlockedReasonsList([]);
78040
+ };
78041
+
78042
+
77473
78043
  /**
77474
78044
  * @enum {number}
77475
78045
  */
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+ const assert = require('node:assert/strict');
3
+ const P = require('..');
4
+ for (const domain of ['payment', 'bonus']) {
5
+ const { GameplayDeliveryReadinessRequest: Request, GameplayDeliveryReadinessResult: Result } = P[domain].messages;
6
+ const request = new Request();
7
+ request.setProtocolVersion(1);
8
+ request.setActivationEpoch('a'.repeat(64));
9
+ request.setCallerCohort('b'.repeat(64));
10
+ assert.deepEqual(Request.deserializeBinary(request.serializeBinary()).toObject(), request.toObject());
11
+ const result = new Result();
12
+ assert.equal(result.getReady(), false);
13
+ result.setProtocolVersion(1);
14
+ result.setActivationEpoch(request.getActivationEpoch());
15
+ result.setServiceCohort('c'.repeat(64));
16
+ result.setScopeHash('d'.repeat(64));
17
+ result.setDurableEffectVersion(1);
18
+ result.setBlockedReasonsList(['historical_completion_unproven']);
19
+ assert.deepEqual(Result.deserializeBinary(result.serializeBinary()).toObject(), result.toObject());
20
+ const descriptor = P[domain].service[domain[0].toUpperCase() + domain.slice(1) + 'Service'].readGameplayDeliveryReadiness;
21
+ assert(descriptor && !descriptor.requestStream && !descriptor.responseStream);
22
+ assert.equal(descriptor.requestType, Request);
23
+ assert.equal(descriptor.responseType, Result);
24
+ }
25
+ console.log('PASS: additive unary readiness contract, fail-closed defaults, all field wire round-trips and service descriptors.');