protobuf-platform 1.2.727 → 1.2.729
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/log/log.proto +83 -0
- package/log/log_grpc_pb.js +66 -0
- package/log/log_pb.js +2478 -0
- package/package.json +1 -1
- package/payment/payment.proto +15 -0
- package/payment/payment_grpc_pb.js +33 -0
- package/payment/payment_pb.js +475 -0
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
|
@@ -87,6 +87,7 @@ service Payment {
|
|
|
87
87
|
returns (GameplayProviderIdentityResult);
|
|
88
88
|
rpc fenceGameplayProviderTransactions(FenceGameplayProviderTransactionsRequest)
|
|
89
89
|
returns (FenceGameplayProviderTransactionsResponse);
|
|
90
|
+
rpc resolveGuardedGameplayScope(ResolveGuardedGameplayScopeRequest) returns (ResolveGuardedGameplayScopeResponse);
|
|
90
91
|
rpc settleGuardedGameplay(SettleGuardedGameplayRequest)
|
|
91
92
|
returns (SettleGameplayResponse);
|
|
92
93
|
|
|
@@ -1788,3 +1789,17 @@ message SettleGuardedGameplayRequest {
|
|
|
1788
1789
|
repeated string reversal_refs = 6;
|
|
1789
1790
|
bool close_round = 7;
|
|
1790
1791
|
}
|
|
1792
|
+
|
|
1793
|
+
// Resolves immutable provider scope and establishes mandatory guarded admission.
|
|
1794
|
+
message ResolveGuardedGameplayScopeRequest {
|
|
1795
|
+
uint32 protocol_version = 1;
|
|
1796
|
+
string namespace = 2;
|
|
1797
|
+
string provider = 3;
|
|
1798
|
+
string operator_id = 4;
|
|
1799
|
+
}
|
|
1800
|
+
|
|
1801
|
+
message ResolveGuardedGameplayScopeResponse {
|
|
1802
|
+
uint32 protocol_version = 1;
|
|
1803
|
+
GameplayProviderScope scope = 2;
|
|
1804
|
+
string admission_id = 3;
|
|
1805
|
+
}
|
|
@@ -1137,6 +1137,28 @@ function deserialize_payment_ResolveGameWalletContextResponse(buffer_arg) {
|
|
|
1137
1137
|
return payment_pb.ResolveGameWalletContextResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1138
1138
|
}
|
|
1139
1139
|
|
|
1140
|
+
function serialize_payment_ResolveGuardedGameplayScopeRequest(arg) {
|
|
1141
|
+
if (!(arg instanceof payment_pb.ResolveGuardedGameplayScopeRequest)) {
|
|
1142
|
+
throw new Error('Expected argument of type payment.ResolveGuardedGameplayScopeRequest');
|
|
1143
|
+
}
|
|
1144
|
+
return Buffer.from(arg.serializeBinary());
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
function deserialize_payment_ResolveGuardedGameplayScopeRequest(buffer_arg) {
|
|
1148
|
+
return payment_pb.ResolveGuardedGameplayScopeRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
function serialize_payment_ResolveGuardedGameplayScopeResponse(arg) {
|
|
1152
|
+
if (!(arg instanceof payment_pb.ResolveGuardedGameplayScopeResponse)) {
|
|
1153
|
+
throw new Error('Expected argument of type payment.ResolveGuardedGameplayScopeResponse');
|
|
1154
|
+
}
|
|
1155
|
+
return Buffer.from(arg.serializeBinary());
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
function deserialize_payment_ResolveGuardedGameplayScopeResponse(buffer_arg) {
|
|
1159
|
+
return payment_pb.ResolveGuardedGameplayScopeResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1140
1162
|
function serialize_payment_SegmentedUserRequest(arg) {
|
|
1141
1163
|
if (!(arg instanceof payment_pb.SegmentedUserRequest)) {
|
|
1142
1164
|
throw new Error('Expected argument of type payment.SegmentedUserRequest');
|
|
@@ -2078,6 +2100,17 @@ readGameplayProviderIdentity: {
|
|
|
2078
2100
|
responseSerialize: serialize_payment_FenceGameplayProviderTransactionsResponse,
|
|
2079
2101
|
responseDeserialize: deserialize_payment_FenceGameplayProviderTransactionsResponse,
|
|
2080
2102
|
},
|
|
2103
|
+
resolveGuardedGameplayScope: {
|
|
2104
|
+
path: '/payment.Payment/resolveGuardedGameplayScope',
|
|
2105
|
+
requestStream: false,
|
|
2106
|
+
responseStream: false,
|
|
2107
|
+
requestType: payment_pb.ResolveGuardedGameplayScopeRequest,
|
|
2108
|
+
responseType: payment_pb.ResolveGuardedGameplayScopeResponse,
|
|
2109
|
+
requestSerialize: serialize_payment_ResolveGuardedGameplayScopeRequest,
|
|
2110
|
+
requestDeserialize: deserialize_payment_ResolveGuardedGameplayScopeRequest,
|
|
2111
|
+
responseSerialize: serialize_payment_ResolveGuardedGameplayScopeResponse,
|
|
2112
|
+
responseDeserialize: deserialize_payment_ResolveGuardedGameplayScopeResponse,
|
|
2113
|
+
},
|
|
2081
2114
|
settleGuardedGameplay: {
|
|
2082
2115
|
path: '/payment.Payment/settleGuardedGameplay',
|
|
2083
2116
|
requestStream: false,
|
package/payment/payment_pb.js
CHANGED
|
@@ -161,6 +161,8 @@ goog.exportSymbol('proto.payment.RegisterGameplayPrecisionSessionRequest', null,
|
|
|
161
161
|
goog.exportSymbol('proto.payment.ReserveRealFundsRequest', null, global);
|
|
162
162
|
goog.exportSymbol('proto.payment.ResolveGameWalletContextRequest', null, global);
|
|
163
163
|
goog.exportSymbol('proto.payment.ResolveGameWalletContextResponse', null, global);
|
|
164
|
+
goog.exportSymbol('proto.payment.ResolveGuardedGameplayScopeRequest', null, global);
|
|
165
|
+
goog.exportSymbol('proto.payment.ResolveGuardedGameplayScopeResponse', null, global);
|
|
164
166
|
goog.exportSymbol('proto.payment.SavedDepositCard', null, global);
|
|
165
167
|
goog.exportSymbol('proto.payment.SegmentedUserRequest', null, global);
|
|
166
168
|
goog.exportSymbol('proto.payment.SegmentedUserResponse', null, global);
|
|
@@ -3634,6 +3636,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
3634
3636
|
*/
|
|
3635
3637
|
proto.payment.SettleGuardedGameplayRequest.displayName = 'proto.payment.SettleGuardedGameplayRequest';
|
|
3636
3638
|
}
|
|
3639
|
+
/**
|
|
3640
|
+
* Generated by JsPbCodeGenerator.
|
|
3641
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3642
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3643
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3644
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3645
|
+
* valid.
|
|
3646
|
+
* @extends {jspb.Message}
|
|
3647
|
+
* @constructor
|
|
3648
|
+
*/
|
|
3649
|
+
proto.payment.ResolveGuardedGameplayScopeRequest = function(opt_data) {
|
|
3650
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3651
|
+
};
|
|
3652
|
+
goog.inherits(proto.payment.ResolveGuardedGameplayScopeRequest, jspb.Message);
|
|
3653
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3654
|
+
/**
|
|
3655
|
+
* @public
|
|
3656
|
+
* @override
|
|
3657
|
+
*/
|
|
3658
|
+
proto.payment.ResolveGuardedGameplayScopeRequest.displayName = 'proto.payment.ResolveGuardedGameplayScopeRequest';
|
|
3659
|
+
}
|
|
3660
|
+
/**
|
|
3661
|
+
* Generated by JsPbCodeGenerator.
|
|
3662
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3663
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3664
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3665
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3666
|
+
* valid.
|
|
3667
|
+
* @extends {jspb.Message}
|
|
3668
|
+
* @constructor
|
|
3669
|
+
*/
|
|
3670
|
+
proto.payment.ResolveGuardedGameplayScopeResponse = function(opt_data) {
|
|
3671
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3672
|
+
};
|
|
3673
|
+
goog.inherits(proto.payment.ResolveGuardedGameplayScopeResponse, jspb.Message);
|
|
3674
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3675
|
+
/**
|
|
3676
|
+
* @public
|
|
3677
|
+
* @override
|
|
3678
|
+
*/
|
|
3679
|
+
proto.payment.ResolveGuardedGameplayScopeResponse.displayName = 'proto.payment.ResolveGuardedGameplayScopeResponse';
|
|
3680
|
+
}
|
|
3637
3681
|
|
|
3638
3682
|
|
|
3639
3683
|
|
|
@@ -70400,6 +70444,437 @@ proto.payment.SettleGuardedGameplayRequest.prototype.setCloseRound = function(va
|
|
|
70400
70444
|
};
|
|
70401
70445
|
|
|
70402
70446
|
|
|
70447
|
+
|
|
70448
|
+
|
|
70449
|
+
|
|
70450
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
70451
|
+
/**
|
|
70452
|
+
* Creates an object representation of this proto.
|
|
70453
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
70454
|
+
* Optional fields that are not set will be set to undefined.
|
|
70455
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
70456
|
+
* For the list of reserved names please see:
|
|
70457
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
70458
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
70459
|
+
* JSPB instance for transitional soy proto support:
|
|
70460
|
+
* http://goto/soy-param-migration
|
|
70461
|
+
* @return {!Object}
|
|
70462
|
+
*/
|
|
70463
|
+
proto.payment.ResolveGuardedGameplayScopeRequest.prototype.toObject = function(opt_includeInstance) {
|
|
70464
|
+
return proto.payment.ResolveGuardedGameplayScopeRequest.toObject(opt_includeInstance, this);
|
|
70465
|
+
};
|
|
70466
|
+
|
|
70467
|
+
|
|
70468
|
+
/**
|
|
70469
|
+
* Static version of the {@see toObject} method.
|
|
70470
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
70471
|
+
* the JSPB instance for transitional soy proto support:
|
|
70472
|
+
* http://goto/soy-param-migration
|
|
70473
|
+
* @param {!proto.payment.ResolveGuardedGameplayScopeRequest} msg The msg instance to transform.
|
|
70474
|
+
* @return {!Object}
|
|
70475
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
70476
|
+
*/
|
|
70477
|
+
proto.payment.ResolveGuardedGameplayScopeRequest.toObject = function(includeInstance, msg) {
|
|
70478
|
+
var f, obj = {
|
|
70479
|
+
protocolVersion: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
70480
|
+
namespace: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
70481
|
+
provider: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
70482
|
+
operatorId: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
70483
|
+
};
|
|
70484
|
+
|
|
70485
|
+
if (includeInstance) {
|
|
70486
|
+
obj.$jspbMessageInstance = msg;
|
|
70487
|
+
}
|
|
70488
|
+
return obj;
|
|
70489
|
+
};
|
|
70490
|
+
}
|
|
70491
|
+
|
|
70492
|
+
|
|
70493
|
+
/**
|
|
70494
|
+
* Deserializes binary data (in protobuf wire format).
|
|
70495
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
70496
|
+
* @return {!proto.payment.ResolveGuardedGameplayScopeRequest}
|
|
70497
|
+
*/
|
|
70498
|
+
proto.payment.ResolveGuardedGameplayScopeRequest.deserializeBinary = function(bytes) {
|
|
70499
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
70500
|
+
var msg = new proto.payment.ResolveGuardedGameplayScopeRequest;
|
|
70501
|
+
return proto.payment.ResolveGuardedGameplayScopeRequest.deserializeBinaryFromReader(msg, reader);
|
|
70502
|
+
};
|
|
70503
|
+
|
|
70504
|
+
|
|
70505
|
+
/**
|
|
70506
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
70507
|
+
* given reader into the given message object.
|
|
70508
|
+
* @param {!proto.payment.ResolveGuardedGameplayScopeRequest} msg The message object to deserialize into.
|
|
70509
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
70510
|
+
* @return {!proto.payment.ResolveGuardedGameplayScopeRequest}
|
|
70511
|
+
*/
|
|
70512
|
+
proto.payment.ResolveGuardedGameplayScopeRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
70513
|
+
while (reader.nextField()) {
|
|
70514
|
+
if (reader.isEndGroup()) {
|
|
70515
|
+
break;
|
|
70516
|
+
}
|
|
70517
|
+
var field = reader.getFieldNumber();
|
|
70518
|
+
switch (field) {
|
|
70519
|
+
case 1:
|
|
70520
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
70521
|
+
msg.setProtocolVersion(value);
|
|
70522
|
+
break;
|
|
70523
|
+
case 2:
|
|
70524
|
+
var value = /** @type {string} */ (reader.readString());
|
|
70525
|
+
msg.setNamespace(value);
|
|
70526
|
+
break;
|
|
70527
|
+
case 3:
|
|
70528
|
+
var value = /** @type {string} */ (reader.readString());
|
|
70529
|
+
msg.setProvider(value);
|
|
70530
|
+
break;
|
|
70531
|
+
case 4:
|
|
70532
|
+
var value = /** @type {string} */ (reader.readString());
|
|
70533
|
+
msg.setOperatorId(value);
|
|
70534
|
+
break;
|
|
70535
|
+
default:
|
|
70536
|
+
reader.skipField();
|
|
70537
|
+
break;
|
|
70538
|
+
}
|
|
70539
|
+
}
|
|
70540
|
+
return msg;
|
|
70541
|
+
};
|
|
70542
|
+
|
|
70543
|
+
|
|
70544
|
+
/**
|
|
70545
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
70546
|
+
* @return {!Uint8Array}
|
|
70547
|
+
*/
|
|
70548
|
+
proto.payment.ResolveGuardedGameplayScopeRequest.prototype.serializeBinary = function() {
|
|
70549
|
+
var writer = new jspb.BinaryWriter();
|
|
70550
|
+
proto.payment.ResolveGuardedGameplayScopeRequest.serializeBinaryToWriter(this, writer);
|
|
70551
|
+
return writer.getResultBuffer();
|
|
70552
|
+
};
|
|
70553
|
+
|
|
70554
|
+
|
|
70555
|
+
/**
|
|
70556
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
70557
|
+
* format), writing to the given BinaryWriter.
|
|
70558
|
+
* @param {!proto.payment.ResolveGuardedGameplayScopeRequest} message
|
|
70559
|
+
* @param {!jspb.BinaryWriter} writer
|
|
70560
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
70561
|
+
*/
|
|
70562
|
+
proto.payment.ResolveGuardedGameplayScopeRequest.serializeBinaryToWriter = function(message, writer) {
|
|
70563
|
+
var f = undefined;
|
|
70564
|
+
f = message.getProtocolVersion();
|
|
70565
|
+
if (f !== 0) {
|
|
70566
|
+
writer.writeUint32(
|
|
70567
|
+
1,
|
|
70568
|
+
f
|
|
70569
|
+
);
|
|
70570
|
+
}
|
|
70571
|
+
f = message.getNamespace();
|
|
70572
|
+
if (f.length > 0) {
|
|
70573
|
+
writer.writeString(
|
|
70574
|
+
2,
|
|
70575
|
+
f
|
|
70576
|
+
);
|
|
70577
|
+
}
|
|
70578
|
+
f = message.getProvider();
|
|
70579
|
+
if (f.length > 0) {
|
|
70580
|
+
writer.writeString(
|
|
70581
|
+
3,
|
|
70582
|
+
f
|
|
70583
|
+
);
|
|
70584
|
+
}
|
|
70585
|
+
f = message.getOperatorId();
|
|
70586
|
+
if (f.length > 0) {
|
|
70587
|
+
writer.writeString(
|
|
70588
|
+
4,
|
|
70589
|
+
f
|
|
70590
|
+
);
|
|
70591
|
+
}
|
|
70592
|
+
};
|
|
70593
|
+
|
|
70594
|
+
|
|
70595
|
+
/**
|
|
70596
|
+
* optional uint32 protocol_version = 1;
|
|
70597
|
+
* @return {number}
|
|
70598
|
+
*/
|
|
70599
|
+
proto.payment.ResolveGuardedGameplayScopeRequest.prototype.getProtocolVersion = function() {
|
|
70600
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
70601
|
+
};
|
|
70602
|
+
|
|
70603
|
+
|
|
70604
|
+
/**
|
|
70605
|
+
* @param {number} value
|
|
70606
|
+
* @return {!proto.payment.ResolveGuardedGameplayScopeRequest} returns this
|
|
70607
|
+
*/
|
|
70608
|
+
proto.payment.ResolveGuardedGameplayScopeRequest.prototype.setProtocolVersion = function(value) {
|
|
70609
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
70610
|
+
};
|
|
70611
|
+
|
|
70612
|
+
|
|
70613
|
+
/**
|
|
70614
|
+
* optional string namespace = 2;
|
|
70615
|
+
* @return {string}
|
|
70616
|
+
*/
|
|
70617
|
+
proto.payment.ResolveGuardedGameplayScopeRequest.prototype.getNamespace = function() {
|
|
70618
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
70619
|
+
};
|
|
70620
|
+
|
|
70621
|
+
|
|
70622
|
+
/**
|
|
70623
|
+
* @param {string} value
|
|
70624
|
+
* @return {!proto.payment.ResolveGuardedGameplayScopeRequest} returns this
|
|
70625
|
+
*/
|
|
70626
|
+
proto.payment.ResolveGuardedGameplayScopeRequest.prototype.setNamespace = function(value) {
|
|
70627
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
70628
|
+
};
|
|
70629
|
+
|
|
70630
|
+
|
|
70631
|
+
/**
|
|
70632
|
+
* optional string provider = 3;
|
|
70633
|
+
* @return {string}
|
|
70634
|
+
*/
|
|
70635
|
+
proto.payment.ResolveGuardedGameplayScopeRequest.prototype.getProvider = function() {
|
|
70636
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
70637
|
+
};
|
|
70638
|
+
|
|
70639
|
+
|
|
70640
|
+
/**
|
|
70641
|
+
* @param {string} value
|
|
70642
|
+
* @return {!proto.payment.ResolveGuardedGameplayScopeRequest} returns this
|
|
70643
|
+
*/
|
|
70644
|
+
proto.payment.ResolveGuardedGameplayScopeRequest.prototype.setProvider = function(value) {
|
|
70645
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
70646
|
+
};
|
|
70647
|
+
|
|
70648
|
+
|
|
70649
|
+
/**
|
|
70650
|
+
* optional string operator_id = 4;
|
|
70651
|
+
* @return {string}
|
|
70652
|
+
*/
|
|
70653
|
+
proto.payment.ResolveGuardedGameplayScopeRequest.prototype.getOperatorId = function() {
|
|
70654
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
70655
|
+
};
|
|
70656
|
+
|
|
70657
|
+
|
|
70658
|
+
/**
|
|
70659
|
+
* @param {string} value
|
|
70660
|
+
* @return {!proto.payment.ResolveGuardedGameplayScopeRequest} returns this
|
|
70661
|
+
*/
|
|
70662
|
+
proto.payment.ResolveGuardedGameplayScopeRequest.prototype.setOperatorId = function(value) {
|
|
70663
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
70664
|
+
};
|
|
70665
|
+
|
|
70666
|
+
|
|
70667
|
+
|
|
70668
|
+
|
|
70669
|
+
|
|
70670
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
70671
|
+
/**
|
|
70672
|
+
* Creates an object representation of this proto.
|
|
70673
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
70674
|
+
* Optional fields that are not set will be set to undefined.
|
|
70675
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
70676
|
+
* For the list of reserved names please see:
|
|
70677
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
70678
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
70679
|
+
* JSPB instance for transitional soy proto support:
|
|
70680
|
+
* http://goto/soy-param-migration
|
|
70681
|
+
* @return {!Object}
|
|
70682
|
+
*/
|
|
70683
|
+
proto.payment.ResolveGuardedGameplayScopeResponse.prototype.toObject = function(opt_includeInstance) {
|
|
70684
|
+
return proto.payment.ResolveGuardedGameplayScopeResponse.toObject(opt_includeInstance, this);
|
|
70685
|
+
};
|
|
70686
|
+
|
|
70687
|
+
|
|
70688
|
+
/**
|
|
70689
|
+
* Static version of the {@see toObject} method.
|
|
70690
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
70691
|
+
* the JSPB instance for transitional soy proto support:
|
|
70692
|
+
* http://goto/soy-param-migration
|
|
70693
|
+
* @param {!proto.payment.ResolveGuardedGameplayScopeResponse} msg The msg instance to transform.
|
|
70694
|
+
* @return {!Object}
|
|
70695
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
70696
|
+
*/
|
|
70697
|
+
proto.payment.ResolveGuardedGameplayScopeResponse.toObject = function(includeInstance, msg) {
|
|
70698
|
+
var f, obj = {
|
|
70699
|
+
protocolVersion: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
70700
|
+
scope: (f = msg.getScope()) && proto.payment.GameplayProviderScope.toObject(includeInstance, f),
|
|
70701
|
+
admissionId: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
70702
|
+
};
|
|
70703
|
+
|
|
70704
|
+
if (includeInstance) {
|
|
70705
|
+
obj.$jspbMessageInstance = msg;
|
|
70706
|
+
}
|
|
70707
|
+
return obj;
|
|
70708
|
+
};
|
|
70709
|
+
}
|
|
70710
|
+
|
|
70711
|
+
|
|
70712
|
+
/**
|
|
70713
|
+
* Deserializes binary data (in protobuf wire format).
|
|
70714
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
70715
|
+
* @return {!proto.payment.ResolveGuardedGameplayScopeResponse}
|
|
70716
|
+
*/
|
|
70717
|
+
proto.payment.ResolveGuardedGameplayScopeResponse.deserializeBinary = function(bytes) {
|
|
70718
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
70719
|
+
var msg = new proto.payment.ResolveGuardedGameplayScopeResponse;
|
|
70720
|
+
return proto.payment.ResolveGuardedGameplayScopeResponse.deserializeBinaryFromReader(msg, reader);
|
|
70721
|
+
};
|
|
70722
|
+
|
|
70723
|
+
|
|
70724
|
+
/**
|
|
70725
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
70726
|
+
* given reader into the given message object.
|
|
70727
|
+
* @param {!proto.payment.ResolveGuardedGameplayScopeResponse} msg The message object to deserialize into.
|
|
70728
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
70729
|
+
* @return {!proto.payment.ResolveGuardedGameplayScopeResponse}
|
|
70730
|
+
*/
|
|
70731
|
+
proto.payment.ResolveGuardedGameplayScopeResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
70732
|
+
while (reader.nextField()) {
|
|
70733
|
+
if (reader.isEndGroup()) {
|
|
70734
|
+
break;
|
|
70735
|
+
}
|
|
70736
|
+
var field = reader.getFieldNumber();
|
|
70737
|
+
switch (field) {
|
|
70738
|
+
case 1:
|
|
70739
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
70740
|
+
msg.setProtocolVersion(value);
|
|
70741
|
+
break;
|
|
70742
|
+
case 2:
|
|
70743
|
+
var value = new proto.payment.GameplayProviderScope;
|
|
70744
|
+
reader.readMessage(value,proto.payment.GameplayProviderScope.deserializeBinaryFromReader);
|
|
70745
|
+
msg.setScope(value);
|
|
70746
|
+
break;
|
|
70747
|
+
case 3:
|
|
70748
|
+
var value = /** @type {string} */ (reader.readString());
|
|
70749
|
+
msg.setAdmissionId(value);
|
|
70750
|
+
break;
|
|
70751
|
+
default:
|
|
70752
|
+
reader.skipField();
|
|
70753
|
+
break;
|
|
70754
|
+
}
|
|
70755
|
+
}
|
|
70756
|
+
return msg;
|
|
70757
|
+
};
|
|
70758
|
+
|
|
70759
|
+
|
|
70760
|
+
/**
|
|
70761
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
70762
|
+
* @return {!Uint8Array}
|
|
70763
|
+
*/
|
|
70764
|
+
proto.payment.ResolveGuardedGameplayScopeResponse.prototype.serializeBinary = function() {
|
|
70765
|
+
var writer = new jspb.BinaryWriter();
|
|
70766
|
+
proto.payment.ResolveGuardedGameplayScopeResponse.serializeBinaryToWriter(this, writer);
|
|
70767
|
+
return writer.getResultBuffer();
|
|
70768
|
+
};
|
|
70769
|
+
|
|
70770
|
+
|
|
70771
|
+
/**
|
|
70772
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
70773
|
+
* format), writing to the given BinaryWriter.
|
|
70774
|
+
* @param {!proto.payment.ResolveGuardedGameplayScopeResponse} message
|
|
70775
|
+
* @param {!jspb.BinaryWriter} writer
|
|
70776
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
70777
|
+
*/
|
|
70778
|
+
proto.payment.ResolveGuardedGameplayScopeResponse.serializeBinaryToWriter = function(message, writer) {
|
|
70779
|
+
var f = undefined;
|
|
70780
|
+
f = message.getProtocolVersion();
|
|
70781
|
+
if (f !== 0) {
|
|
70782
|
+
writer.writeUint32(
|
|
70783
|
+
1,
|
|
70784
|
+
f
|
|
70785
|
+
);
|
|
70786
|
+
}
|
|
70787
|
+
f = message.getScope();
|
|
70788
|
+
if (f != null) {
|
|
70789
|
+
writer.writeMessage(
|
|
70790
|
+
2,
|
|
70791
|
+
f,
|
|
70792
|
+
proto.payment.GameplayProviderScope.serializeBinaryToWriter
|
|
70793
|
+
);
|
|
70794
|
+
}
|
|
70795
|
+
f = message.getAdmissionId();
|
|
70796
|
+
if (f.length > 0) {
|
|
70797
|
+
writer.writeString(
|
|
70798
|
+
3,
|
|
70799
|
+
f
|
|
70800
|
+
);
|
|
70801
|
+
}
|
|
70802
|
+
};
|
|
70803
|
+
|
|
70804
|
+
|
|
70805
|
+
/**
|
|
70806
|
+
* optional uint32 protocol_version = 1;
|
|
70807
|
+
* @return {number}
|
|
70808
|
+
*/
|
|
70809
|
+
proto.payment.ResolveGuardedGameplayScopeResponse.prototype.getProtocolVersion = function() {
|
|
70810
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
70811
|
+
};
|
|
70812
|
+
|
|
70813
|
+
|
|
70814
|
+
/**
|
|
70815
|
+
* @param {number} value
|
|
70816
|
+
* @return {!proto.payment.ResolveGuardedGameplayScopeResponse} returns this
|
|
70817
|
+
*/
|
|
70818
|
+
proto.payment.ResolveGuardedGameplayScopeResponse.prototype.setProtocolVersion = function(value) {
|
|
70819
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
70820
|
+
};
|
|
70821
|
+
|
|
70822
|
+
|
|
70823
|
+
/**
|
|
70824
|
+
* optional GameplayProviderScope scope = 2;
|
|
70825
|
+
* @return {?proto.payment.GameplayProviderScope}
|
|
70826
|
+
*/
|
|
70827
|
+
proto.payment.ResolveGuardedGameplayScopeResponse.prototype.getScope = function() {
|
|
70828
|
+
return /** @type{?proto.payment.GameplayProviderScope} */ (
|
|
70829
|
+
jspb.Message.getWrapperField(this, proto.payment.GameplayProviderScope, 2));
|
|
70830
|
+
};
|
|
70831
|
+
|
|
70832
|
+
|
|
70833
|
+
/**
|
|
70834
|
+
* @param {?proto.payment.GameplayProviderScope|undefined} value
|
|
70835
|
+
* @return {!proto.payment.ResolveGuardedGameplayScopeResponse} returns this
|
|
70836
|
+
*/
|
|
70837
|
+
proto.payment.ResolveGuardedGameplayScopeResponse.prototype.setScope = function(value) {
|
|
70838
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
70839
|
+
};
|
|
70840
|
+
|
|
70841
|
+
|
|
70842
|
+
/**
|
|
70843
|
+
* Clears the message field making it undefined.
|
|
70844
|
+
* @return {!proto.payment.ResolveGuardedGameplayScopeResponse} returns this
|
|
70845
|
+
*/
|
|
70846
|
+
proto.payment.ResolveGuardedGameplayScopeResponse.prototype.clearScope = function() {
|
|
70847
|
+
return this.setScope(undefined);
|
|
70848
|
+
};
|
|
70849
|
+
|
|
70850
|
+
|
|
70851
|
+
/**
|
|
70852
|
+
* Returns whether this field is set.
|
|
70853
|
+
* @return {boolean}
|
|
70854
|
+
*/
|
|
70855
|
+
proto.payment.ResolveGuardedGameplayScopeResponse.prototype.hasScope = function() {
|
|
70856
|
+
return jspb.Message.getField(this, 2) != null;
|
|
70857
|
+
};
|
|
70858
|
+
|
|
70859
|
+
|
|
70860
|
+
/**
|
|
70861
|
+
* optional string admission_id = 3;
|
|
70862
|
+
* @return {string}
|
|
70863
|
+
*/
|
|
70864
|
+
proto.payment.ResolveGuardedGameplayScopeResponse.prototype.getAdmissionId = function() {
|
|
70865
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
70866
|
+
};
|
|
70867
|
+
|
|
70868
|
+
|
|
70869
|
+
/**
|
|
70870
|
+
* @param {string} value
|
|
70871
|
+
* @return {!proto.payment.ResolveGuardedGameplayScopeResponse} returns this
|
|
70872
|
+
*/
|
|
70873
|
+
proto.payment.ResolveGuardedGameplayScopeResponse.prototype.setAdmissionId = function(value) {
|
|
70874
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
70875
|
+
};
|
|
70876
|
+
|
|
70877
|
+
|
|
70403
70878
|
/**
|
|
70404
70879
|
* @enum {number}
|
|
70405
70880
|
*/
|