protobuf-platform 1.1.95 → 1.1.97
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 +1 -1
- package/user/user.proto +11 -0
- package/user/user_grpc_pb.js +44 -0
- package/user/user_pb.js +413 -1
package/package.json
CHANGED
package/user/user.proto
CHANGED
@@ -15,6 +15,8 @@ service User {
|
|
15
15
|
//CRUD
|
16
16
|
rpc readListUsers(PaginationRequest) returns (UsersResponse);
|
17
17
|
rpc updateSingleUser(UserRequest) returns (UserDataResponse);
|
18
|
+
rpc updateUserPassword(UserPasswordRequest) returns (UserStatusResponse);
|
19
|
+
rpc setUserSelfExclusion(UserRequest) returns (UserStatusResponse);
|
18
20
|
//Segments
|
19
21
|
rpc createSingleSegment(SegmentRequest) returns (SegmentResponse);
|
20
22
|
rpc readSingleSegment(GetSegmentRequest) returns (SegmentResponse);
|
@@ -140,6 +142,11 @@ message UserDataRequest {
|
|
140
142
|
int32 id = 1;
|
141
143
|
optional string requested_area = 2;
|
142
144
|
}
|
145
|
+
message UserPasswordRequest {
|
146
|
+
int32 id = 1;
|
147
|
+
string current_password = 2;
|
148
|
+
string new_password = 3;
|
149
|
+
}
|
143
150
|
message UserRequest {
|
144
151
|
int32 id = 1;
|
145
152
|
optional string email = 2;
|
@@ -162,6 +169,7 @@ message UserRequest {
|
|
162
169
|
optional int32 block_user = 19;
|
163
170
|
optional int32 block_deposit = 20;
|
164
171
|
optional int32 block_bet = 21;
|
172
|
+
optional string self_exclusion_date = 22;
|
165
173
|
}
|
166
174
|
message UserDataResponse {
|
167
175
|
int32 id = 1;
|
@@ -204,6 +212,9 @@ message UsersResponse {
|
|
204
212
|
optional int32 total_pages = 2;
|
205
213
|
optional int32 total_items = 3;
|
206
214
|
}
|
215
|
+
message UserStatusResponse {
|
216
|
+
string status = 1;
|
217
|
+
}
|
207
218
|
//Permissions
|
208
219
|
message RolePermissionRequest {
|
209
220
|
string role = 1;
|
package/user/user_grpc_pb.js
CHANGED
@@ -466,6 +466,17 @@ function deserialize_user_UserLimitsResponse(buffer_arg) {
|
|
466
466
|
return user_pb.UserLimitsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
467
467
|
}
|
468
468
|
|
469
|
+
function serialize_user_UserPasswordRequest(arg) {
|
470
|
+
if (!(arg instanceof user_pb.UserPasswordRequest)) {
|
471
|
+
throw new Error('Expected argument of type user.UserPasswordRequest');
|
472
|
+
}
|
473
|
+
return Buffer.from(arg.serializeBinary());
|
474
|
+
}
|
475
|
+
|
476
|
+
function deserialize_user_UserPasswordRequest(buffer_arg) {
|
477
|
+
return user_pb.UserPasswordRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
478
|
+
}
|
479
|
+
|
469
480
|
function serialize_user_UserRequest(arg) {
|
470
481
|
if (!(arg instanceof user_pb.UserRequest)) {
|
471
482
|
throw new Error('Expected argument of type user.UserRequest');
|
@@ -477,6 +488,17 @@ function deserialize_user_UserRequest(buffer_arg) {
|
|
477
488
|
return user_pb.UserRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
478
489
|
}
|
479
490
|
|
491
|
+
function serialize_user_UserStatusResponse(arg) {
|
492
|
+
if (!(arg instanceof user_pb.UserStatusResponse)) {
|
493
|
+
throw new Error('Expected argument of type user.UserStatusResponse');
|
494
|
+
}
|
495
|
+
return Buffer.from(arg.serializeBinary());
|
496
|
+
}
|
497
|
+
|
498
|
+
function deserialize_user_UserStatusResponse(buffer_arg) {
|
499
|
+
return user_pb.UserStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
500
|
+
}
|
501
|
+
|
480
502
|
function serialize_user_UsersResponse(arg) {
|
481
503
|
if (!(arg instanceof user_pb.UsersResponse)) {
|
482
504
|
throw new Error('Expected argument of type user.UsersResponse');
|
@@ -603,6 +625,28 @@ readListUsers: {
|
|
603
625
|
responseSerialize: serialize_user_UserDataResponse,
|
604
626
|
responseDeserialize: deserialize_user_UserDataResponse,
|
605
627
|
},
|
628
|
+
updateUserPassword: {
|
629
|
+
path: '/user.User/updateUserPassword',
|
630
|
+
requestStream: false,
|
631
|
+
responseStream: false,
|
632
|
+
requestType: user_pb.UserPasswordRequest,
|
633
|
+
responseType: user_pb.UserStatusResponse,
|
634
|
+
requestSerialize: serialize_user_UserPasswordRequest,
|
635
|
+
requestDeserialize: deserialize_user_UserPasswordRequest,
|
636
|
+
responseSerialize: serialize_user_UserStatusResponse,
|
637
|
+
responseDeserialize: deserialize_user_UserStatusResponse,
|
638
|
+
},
|
639
|
+
setUserSelfExclusion: {
|
640
|
+
path: '/user.User/setUserSelfExclusion',
|
641
|
+
requestStream: false,
|
642
|
+
responseStream: false,
|
643
|
+
requestType: user_pb.UserRequest,
|
644
|
+
responseType: user_pb.UserStatusResponse,
|
645
|
+
requestSerialize: serialize_user_UserRequest,
|
646
|
+
requestDeserialize: deserialize_user_UserRequest,
|
647
|
+
responseSerialize: serialize_user_UserStatusResponse,
|
648
|
+
responseDeserialize: deserialize_user_UserStatusResponse,
|
649
|
+
},
|
606
650
|
// Segments
|
607
651
|
createSingleSegment: {
|
608
652
|
path: '/user.User/createSingleSegment',
|
package/user/user_pb.js
CHANGED
@@ -81,8 +81,10 @@ goog.exportSymbol('proto.user.UserDataResponse', null, global);
|
|
81
81
|
goog.exportSymbol('proto.user.UserLimitsRequest', null, global);
|
82
82
|
goog.exportSymbol('proto.user.UserLimitsResponse', null, global);
|
83
83
|
goog.exportSymbol('proto.user.UserLoyaltyItem', null, global);
|
84
|
+
goog.exportSymbol('proto.user.UserPasswordRequest', null, global);
|
84
85
|
goog.exportSymbol('proto.user.UserRequest', null, global);
|
85
86
|
goog.exportSymbol('proto.user.UserSearchParams', null, global);
|
87
|
+
goog.exportSymbol('proto.user.UserStatusResponse', null, global);
|
86
88
|
goog.exportSymbol('proto.user.UsersResponse', null, global);
|
87
89
|
goog.exportSymbol('proto.user.VerificationStatus', null, global);
|
88
90
|
goog.exportSymbol('proto.user.VerificationStatusItemsResponse', null, global);
|
@@ -317,6 +319,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
317
319
|
*/
|
318
320
|
proto.user.UserDataRequest.displayName = 'proto.user.UserDataRequest';
|
319
321
|
}
|
322
|
+
/**
|
323
|
+
* Generated by JsPbCodeGenerator.
|
324
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
325
|
+
* server response, or constructed directly in Javascript. The array is used
|
326
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
327
|
+
* If no data is provided, the constructed object will be empty, but still
|
328
|
+
* valid.
|
329
|
+
* @extends {jspb.Message}
|
330
|
+
* @constructor
|
331
|
+
*/
|
332
|
+
proto.user.UserPasswordRequest = function(opt_data) {
|
333
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
334
|
+
};
|
335
|
+
goog.inherits(proto.user.UserPasswordRequest, jspb.Message);
|
336
|
+
if (goog.DEBUG && !COMPILED) {
|
337
|
+
/**
|
338
|
+
* @public
|
339
|
+
* @override
|
340
|
+
*/
|
341
|
+
proto.user.UserPasswordRequest.displayName = 'proto.user.UserPasswordRequest';
|
342
|
+
}
|
320
343
|
/**
|
321
344
|
* Generated by JsPbCodeGenerator.
|
322
345
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -380,6 +403,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
380
403
|
*/
|
381
404
|
proto.user.UsersResponse.displayName = 'proto.user.UsersResponse';
|
382
405
|
}
|
406
|
+
/**
|
407
|
+
* Generated by JsPbCodeGenerator.
|
408
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
409
|
+
* server response, or constructed directly in Javascript. The array is used
|
410
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
411
|
+
* If no data is provided, the constructed object will be empty, but still
|
412
|
+
* valid.
|
413
|
+
* @extends {jspb.Message}
|
414
|
+
* @constructor
|
415
|
+
*/
|
416
|
+
proto.user.UserStatusResponse = function(opt_data) {
|
417
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
418
|
+
};
|
419
|
+
goog.inherits(proto.user.UserStatusResponse, jspb.Message);
|
420
|
+
if (goog.DEBUG && !COMPILED) {
|
421
|
+
/**
|
422
|
+
* @public
|
423
|
+
* @override
|
424
|
+
*/
|
425
|
+
proto.user.UserStatusResponse.displayName = 'proto.user.UserStatusResponse';
|
426
|
+
}
|
383
427
|
/**
|
384
428
|
* Generated by JsPbCodeGenerator.
|
385
429
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -5480,6 +5524,196 @@ proto.user.UserDataRequest.prototype.hasRequestedArea = function() {
|
|
5480
5524
|
|
5481
5525
|
|
5482
5526
|
|
5527
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
5528
|
+
/**
|
5529
|
+
* Creates an object representation of this proto.
|
5530
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
5531
|
+
* Optional fields that are not set will be set to undefined.
|
5532
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
5533
|
+
* For the list of reserved names please see:
|
5534
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
5535
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
5536
|
+
* JSPB instance for transitional soy proto support:
|
5537
|
+
* http://goto/soy-param-migration
|
5538
|
+
* @return {!Object}
|
5539
|
+
*/
|
5540
|
+
proto.user.UserPasswordRequest.prototype.toObject = function(opt_includeInstance) {
|
5541
|
+
return proto.user.UserPasswordRequest.toObject(opt_includeInstance, this);
|
5542
|
+
};
|
5543
|
+
|
5544
|
+
|
5545
|
+
/**
|
5546
|
+
* Static version of the {@see toObject} method.
|
5547
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
5548
|
+
* the JSPB instance for transitional soy proto support:
|
5549
|
+
* http://goto/soy-param-migration
|
5550
|
+
* @param {!proto.user.UserPasswordRequest} msg The msg instance to transform.
|
5551
|
+
* @return {!Object}
|
5552
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5553
|
+
*/
|
5554
|
+
proto.user.UserPasswordRequest.toObject = function(includeInstance, msg) {
|
5555
|
+
var f, obj = {
|
5556
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
5557
|
+
currentPassword: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
5558
|
+
newPassword: jspb.Message.getFieldWithDefault(msg, 3, "")
|
5559
|
+
};
|
5560
|
+
|
5561
|
+
if (includeInstance) {
|
5562
|
+
obj.$jspbMessageInstance = msg;
|
5563
|
+
}
|
5564
|
+
return obj;
|
5565
|
+
};
|
5566
|
+
}
|
5567
|
+
|
5568
|
+
|
5569
|
+
/**
|
5570
|
+
* Deserializes binary data (in protobuf wire format).
|
5571
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
5572
|
+
* @return {!proto.user.UserPasswordRequest}
|
5573
|
+
*/
|
5574
|
+
proto.user.UserPasswordRequest.deserializeBinary = function(bytes) {
|
5575
|
+
var reader = new jspb.BinaryReader(bytes);
|
5576
|
+
var msg = new proto.user.UserPasswordRequest;
|
5577
|
+
return proto.user.UserPasswordRequest.deserializeBinaryFromReader(msg, reader);
|
5578
|
+
};
|
5579
|
+
|
5580
|
+
|
5581
|
+
/**
|
5582
|
+
* Deserializes binary data (in protobuf wire format) from the
|
5583
|
+
* given reader into the given message object.
|
5584
|
+
* @param {!proto.user.UserPasswordRequest} msg The message object to deserialize into.
|
5585
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
5586
|
+
* @return {!proto.user.UserPasswordRequest}
|
5587
|
+
*/
|
5588
|
+
proto.user.UserPasswordRequest.deserializeBinaryFromReader = function(msg, reader) {
|
5589
|
+
while (reader.nextField()) {
|
5590
|
+
if (reader.isEndGroup()) {
|
5591
|
+
break;
|
5592
|
+
}
|
5593
|
+
var field = reader.getFieldNumber();
|
5594
|
+
switch (field) {
|
5595
|
+
case 1:
|
5596
|
+
var value = /** @type {number} */ (reader.readInt32());
|
5597
|
+
msg.setId(value);
|
5598
|
+
break;
|
5599
|
+
case 2:
|
5600
|
+
var value = /** @type {string} */ (reader.readString());
|
5601
|
+
msg.setCurrentPassword(value);
|
5602
|
+
break;
|
5603
|
+
case 3:
|
5604
|
+
var value = /** @type {string} */ (reader.readString());
|
5605
|
+
msg.setNewPassword(value);
|
5606
|
+
break;
|
5607
|
+
default:
|
5608
|
+
reader.skipField();
|
5609
|
+
break;
|
5610
|
+
}
|
5611
|
+
}
|
5612
|
+
return msg;
|
5613
|
+
};
|
5614
|
+
|
5615
|
+
|
5616
|
+
/**
|
5617
|
+
* Serializes the message to binary data (in protobuf wire format).
|
5618
|
+
* @return {!Uint8Array}
|
5619
|
+
*/
|
5620
|
+
proto.user.UserPasswordRequest.prototype.serializeBinary = function() {
|
5621
|
+
var writer = new jspb.BinaryWriter();
|
5622
|
+
proto.user.UserPasswordRequest.serializeBinaryToWriter(this, writer);
|
5623
|
+
return writer.getResultBuffer();
|
5624
|
+
};
|
5625
|
+
|
5626
|
+
|
5627
|
+
/**
|
5628
|
+
* Serializes the given message to binary data (in protobuf wire
|
5629
|
+
* format), writing to the given BinaryWriter.
|
5630
|
+
* @param {!proto.user.UserPasswordRequest} message
|
5631
|
+
* @param {!jspb.BinaryWriter} writer
|
5632
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
5633
|
+
*/
|
5634
|
+
proto.user.UserPasswordRequest.serializeBinaryToWriter = function(message, writer) {
|
5635
|
+
var f = undefined;
|
5636
|
+
f = message.getId();
|
5637
|
+
if (f !== 0) {
|
5638
|
+
writer.writeInt32(
|
5639
|
+
1,
|
5640
|
+
f
|
5641
|
+
);
|
5642
|
+
}
|
5643
|
+
f = message.getCurrentPassword();
|
5644
|
+
if (f.length > 0) {
|
5645
|
+
writer.writeString(
|
5646
|
+
2,
|
5647
|
+
f
|
5648
|
+
);
|
5649
|
+
}
|
5650
|
+
f = message.getNewPassword();
|
5651
|
+
if (f.length > 0) {
|
5652
|
+
writer.writeString(
|
5653
|
+
3,
|
5654
|
+
f
|
5655
|
+
);
|
5656
|
+
}
|
5657
|
+
};
|
5658
|
+
|
5659
|
+
|
5660
|
+
/**
|
5661
|
+
* optional int32 id = 1;
|
5662
|
+
* @return {number}
|
5663
|
+
*/
|
5664
|
+
proto.user.UserPasswordRequest.prototype.getId = function() {
|
5665
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
5666
|
+
};
|
5667
|
+
|
5668
|
+
|
5669
|
+
/**
|
5670
|
+
* @param {number} value
|
5671
|
+
* @return {!proto.user.UserPasswordRequest} returns this
|
5672
|
+
*/
|
5673
|
+
proto.user.UserPasswordRequest.prototype.setId = function(value) {
|
5674
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
5675
|
+
};
|
5676
|
+
|
5677
|
+
|
5678
|
+
/**
|
5679
|
+
* optional string current_password = 2;
|
5680
|
+
* @return {string}
|
5681
|
+
*/
|
5682
|
+
proto.user.UserPasswordRequest.prototype.getCurrentPassword = function() {
|
5683
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
5684
|
+
};
|
5685
|
+
|
5686
|
+
|
5687
|
+
/**
|
5688
|
+
* @param {string} value
|
5689
|
+
* @return {!proto.user.UserPasswordRequest} returns this
|
5690
|
+
*/
|
5691
|
+
proto.user.UserPasswordRequest.prototype.setCurrentPassword = function(value) {
|
5692
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
5693
|
+
};
|
5694
|
+
|
5695
|
+
|
5696
|
+
/**
|
5697
|
+
* optional string new_password = 3;
|
5698
|
+
* @return {string}
|
5699
|
+
*/
|
5700
|
+
proto.user.UserPasswordRequest.prototype.getNewPassword = function() {
|
5701
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
5702
|
+
};
|
5703
|
+
|
5704
|
+
|
5705
|
+
/**
|
5706
|
+
* @param {string} value
|
5707
|
+
* @return {!proto.user.UserPasswordRequest} returns this
|
5708
|
+
*/
|
5709
|
+
proto.user.UserPasswordRequest.prototype.setNewPassword = function(value) {
|
5710
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
5711
|
+
};
|
5712
|
+
|
5713
|
+
|
5714
|
+
|
5715
|
+
|
5716
|
+
|
5483
5717
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
5484
5718
|
/**
|
5485
5719
|
* Creates an object representation of this proto.
|
@@ -5529,7 +5763,8 @@ proto.user.UserRequest.toObject = function(includeInstance, msg) {
|
|
5529
5763
|
categoryId: jspb.Message.getFieldWithDefault(msg, 18, 0),
|
5530
5764
|
blockUser: jspb.Message.getFieldWithDefault(msg, 19, 0),
|
5531
5765
|
blockDeposit: jspb.Message.getFieldWithDefault(msg, 20, 0),
|
5532
|
-
blockBet: jspb.Message.getFieldWithDefault(msg, 21, 0)
|
5766
|
+
blockBet: jspb.Message.getFieldWithDefault(msg, 21, 0),
|
5767
|
+
selfExclusionDate: jspb.Message.getFieldWithDefault(msg, 22, "")
|
5533
5768
|
};
|
5534
5769
|
|
5535
5770
|
if (includeInstance) {
|
@@ -5650,6 +5885,10 @@ proto.user.UserRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
5650
5885
|
var value = /** @type {number} */ (reader.readInt32());
|
5651
5886
|
msg.setBlockBet(value);
|
5652
5887
|
break;
|
5888
|
+
case 22:
|
5889
|
+
var value = /** @type {string} */ (reader.readString());
|
5890
|
+
msg.setSelfExclusionDate(value);
|
5891
|
+
break;
|
5653
5892
|
default:
|
5654
5893
|
reader.skipField();
|
5655
5894
|
break;
|
@@ -5826,6 +6065,13 @@ proto.user.UserRequest.serializeBinaryToWriter = function(message, writer) {
|
|
5826
6065
|
f
|
5827
6066
|
);
|
5828
6067
|
}
|
6068
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 22));
|
6069
|
+
if (f != null) {
|
6070
|
+
writer.writeString(
|
6071
|
+
22,
|
6072
|
+
f
|
6073
|
+
);
|
6074
|
+
}
|
5829
6075
|
};
|
5830
6076
|
|
5831
6077
|
|
@@ -6567,6 +6813,42 @@ proto.user.UserRequest.prototype.hasBlockBet = function() {
|
|
6567
6813
|
};
|
6568
6814
|
|
6569
6815
|
|
6816
|
+
/**
|
6817
|
+
* optional string self_exclusion_date = 22;
|
6818
|
+
* @return {string}
|
6819
|
+
*/
|
6820
|
+
proto.user.UserRequest.prototype.getSelfExclusionDate = function() {
|
6821
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, ""));
|
6822
|
+
};
|
6823
|
+
|
6824
|
+
|
6825
|
+
/**
|
6826
|
+
* @param {string} value
|
6827
|
+
* @return {!proto.user.UserRequest} returns this
|
6828
|
+
*/
|
6829
|
+
proto.user.UserRequest.prototype.setSelfExclusionDate = function(value) {
|
6830
|
+
return jspb.Message.setField(this, 22, value);
|
6831
|
+
};
|
6832
|
+
|
6833
|
+
|
6834
|
+
/**
|
6835
|
+
* Clears the field making it undefined.
|
6836
|
+
* @return {!proto.user.UserRequest} returns this
|
6837
|
+
*/
|
6838
|
+
proto.user.UserRequest.prototype.clearSelfExclusionDate = function() {
|
6839
|
+
return jspb.Message.setField(this, 22, undefined);
|
6840
|
+
};
|
6841
|
+
|
6842
|
+
|
6843
|
+
/**
|
6844
|
+
* Returns whether this field is set.
|
6845
|
+
* @return {boolean}
|
6846
|
+
*/
|
6847
|
+
proto.user.UserRequest.prototype.hasSelfExclusionDate = function() {
|
6848
|
+
return jspb.Message.getField(this, 22) != null;
|
6849
|
+
};
|
6850
|
+
|
6851
|
+
|
6570
6852
|
|
6571
6853
|
|
6572
6854
|
|
@@ -8525,6 +8807,136 @@ proto.user.UsersResponse.prototype.hasTotalItems = function() {
|
|
8525
8807
|
|
8526
8808
|
|
8527
8809
|
|
8810
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
8811
|
+
/**
|
8812
|
+
* Creates an object representation of this proto.
|
8813
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
8814
|
+
* Optional fields that are not set will be set to undefined.
|
8815
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
8816
|
+
* For the list of reserved names please see:
|
8817
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
8818
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
8819
|
+
* JSPB instance for transitional soy proto support:
|
8820
|
+
* http://goto/soy-param-migration
|
8821
|
+
* @return {!Object}
|
8822
|
+
*/
|
8823
|
+
proto.user.UserStatusResponse.prototype.toObject = function(opt_includeInstance) {
|
8824
|
+
return proto.user.UserStatusResponse.toObject(opt_includeInstance, this);
|
8825
|
+
};
|
8826
|
+
|
8827
|
+
|
8828
|
+
/**
|
8829
|
+
* Static version of the {@see toObject} method.
|
8830
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
8831
|
+
* the JSPB instance for transitional soy proto support:
|
8832
|
+
* http://goto/soy-param-migration
|
8833
|
+
* @param {!proto.user.UserStatusResponse} msg The msg instance to transform.
|
8834
|
+
* @return {!Object}
|
8835
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
8836
|
+
*/
|
8837
|
+
proto.user.UserStatusResponse.toObject = function(includeInstance, msg) {
|
8838
|
+
var f, obj = {
|
8839
|
+
status: jspb.Message.getFieldWithDefault(msg, 1, "")
|
8840
|
+
};
|
8841
|
+
|
8842
|
+
if (includeInstance) {
|
8843
|
+
obj.$jspbMessageInstance = msg;
|
8844
|
+
}
|
8845
|
+
return obj;
|
8846
|
+
};
|
8847
|
+
}
|
8848
|
+
|
8849
|
+
|
8850
|
+
/**
|
8851
|
+
* Deserializes binary data (in protobuf wire format).
|
8852
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
8853
|
+
* @return {!proto.user.UserStatusResponse}
|
8854
|
+
*/
|
8855
|
+
proto.user.UserStatusResponse.deserializeBinary = function(bytes) {
|
8856
|
+
var reader = new jspb.BinaryReader(bytes);
|
8857
|
+
var msg = new proto.user.UserStatusResponse;
|
8858
|
+
return proto.user.UserStatusResponse.deserializeBinaryFromReader(msg, reader);
|
8859
|
+
};
|
8860
|
+
|
8861
|
+
|
8862
|
+
/**
|
8863
|
+
* Deserializes binary data (in protobuf wire format) from the
|
8864
|
+
* given reader into the given message object.
|
8865
|
+
* @param {!proto.user.UserStatusResponse} msg The message object to deserialize into.
|
8866
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
8867
|
+
* @return {!proto.user.UserStatusResponse}
|
8868
|
+
*/
|
8869
|
+
proto.user.UserStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
|
8870
|
+
while (reader.nextField()) {
|
8871
|
+
if (reader.isEndGroup()) {
|
8872
|
+
break;
|
8873
|
+
}
|
8874
|
+
var field = reader.getFieldNumber();
|
8875
|
+
switch (field) {
|
8876
|
+
case 1:
|
8877
|
+
var value = /** @type {string} */ (reader.readString());
|
8878
|
+
msg.setStatus(value);
|
8879
|
+
break;
|
8880
|
+
default:
|
8881
|
+
reader.skipField();
|
8882
|
+
break;
|
8883
|
+
}
|
8884
|
+
}
|
8885
|
+
return msg;
|
8886
|
+
};
|
8887
|
+
|
8888
|
+
|
8889
|
+
/**
|
8890
|
+
* Serializes the message to binary data (in protobuf wire format).
|
8891
|
+
* @return {!Uint8Array}
|
8892
|
+
*/
|
8893
|
+
proto.user.UserStatusResponse.prototype.serializeBinary = function() {
|
8894
|
+
var writer = new jspb.BinaryWriter();
|
8895
|
+
proto.user.UserStatusResponse.serializeBinaryToWriter(this, writer);
|
8896
|
+
return writer.getResultBuffer();
|
8897
|
+
};
|
8898
|
+
|
8899
|
+
|
8900
|
+
/**
|
8901
|
+
* Serializes the given message to binary data (in protobuf wire
|
8902
|
+
* format), writing to the given BinaryWriter.
|
8903
|
+
* @param {!proto.user.UserStatusResponse} message
|
8904
|
+
* @param {!jspb.BinaryWriter} writer
|
8905
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
8906
|
+
*/
|
8907
|
+
proto.user.UserStatusResponse.serializeBinaryToWriter = function(message, writer) {
|
8908
|
+
var f = undefined;
|
8909
|
+
f = message.getStatus();
|
8910
|
+
if (f.length > 0) {
|
8911
|
+
writer.writeString(
|
8912
|
+
1,
|
8913
|
+
f
|
8914
|
+
);
|
8915
|
+
}
|
8916
|
+
};
|
8917
|
+
|
8918
|
+
|
8919
|
+
/**
|
8920
|
+
* optional string status = 1;
|
8921
|
+
* @return {string}
|
8922
|
+
*/
|
8923
|
+
proto.user.UserStatusResponse.prototype.getStatus = function() {
|
8924
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
8925
|
+
};
|
8926
|
+
|
8927
|
+
|
8928
|
+
/**
|
8929
|
+
* @param {string} value
|
8930
|
+
* @return {!proto.user.UserStatusResponse} returns this
|
8931
|
+
*/
|
8932
|
+
proto.user.UserStatusResponse.prototype.setStatus = function(value) {
|
8933
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
8934
|
+
};
|
8935
|
+
|
8936
|
+
|
8937
|
+
|
8938
|
+
|
8939
|
+
|
8528
8940
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
8529
8941
|
/**
|
8530
8942
|
* Creates an object representation of this proto.
|