protobuf-platform 1.1.94 → 1.1.96
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/cashback/cashback.proto +1 -0
- package/cashback/cashback_pb.js +49 -1
- package/package.json +1 -1
- package/user/user.proto +9 -0
- package/user/user_grpc_pb.js +33 -0
- package/user/user_pb.js +364 -0
package/cashback/cashback.proto
CHANGED
package/cashback/cashback_pb.js
CHANGED
@@ -4574,7 +4574,8 @@ proto.cashback.UserCashbackItem.toObject = function(includeInstance, msg) {
|
|
4574
4574
|
percentage: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0),
|
4575
4575
|
calculatedDate: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
4576
4576
|
image: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
4577
|
-
status: jspb.Message.getFieldWithDefault(msg, 12, "")
|
4577
|
+
status: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
4578
|
+
reward: jspb.Message.getFloatingPointFieldWithDefault(msg, 13, 0.0)
|
4578
4579
|
};
|
4579
4580
|
|
4580
4581
|
if (includeInstance) {
|
@@ -4659,6 +4660,10 @@ proto.cashback.UserCashbackItem.deserializeBinaryFromReader = function(msg, read
|
|
4659
4660
|
var value = /** @type {string} */ (reader.readString());
|
4660
4661
|
msg.setStatus(value);
|
4661
4662
|
break;
|
4663
|
+
case 13:
|
4664
|
+
var value = /** @type {number} */ (reader.readFloat());
|
4665
|
+
msg.setReward(value);
|
4666
|
+
break;
|
4662
4667
|
default:
|
4663
4668
|
reader.skipField();
|
4664
4669
|
break;
|
@@ -4772,6 +4777,13 @@ proto.cashback.UserCashbackItem.serializeBinaryToWriter = function(message, writ
|
|
4772
4777
|
f
|
4773
4778
|
);
|
4774
4779
|
}
|
4780
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 13));
|
4781
|
+
if (f != null) {
|
4782
|
+
writer.writeFloat(
|
4783
|
+
13,
|
4784
|
+
f
|
4785
|
+
);
|
4786
|
+
}
|
4775
4787
|
};
|
4776
4788
|
|
4777
4789
|
|
@@ -5099,6 +5111,42 @@ proto.cashback.UserCashbackItem.prototype.hasStatus = function() {
|
|
5099
5111
|
};
|
5100
5112
|
|
5101
5113
|
|
5114
|
+
/**
|
5115
|
+
* optional float reward = 13;
|
5116
|
+
* @return {number}
|
5117
|
+
*/
|
5118
|
+
proto.cashback.UserCashbackItem.prototype.getReward = function() {
|
5119
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 13, 0.0));
|
5120
|
+
};
|
5121
|
+
|
5122
|
+
|
5123
|
+
/**
|
5124
|
+
* @param {number} value
|
5125
|
+
* @return {!proto.cashback.UserCashbackItem} returns this
|
5126
|
+
*/
|
5127
|
+
proto.cashback.UserCashbackItem.prototype.setReward = function(value) {
|
5128
|
+
return jspb.Message.setField(this, 13, value);
|
5129
|
+
};
|
5130
|
+
|
5131
|
+
|
5132
|
+
/**
|
5133
|
+
* Clears the field making it undefined.
|
5134
|
+
* @return {!proto.cashback.UserCashbackItem} returns this
|
5135
|
+
*/
|
5136
|
+
proto.cashback.UserCashbackItem.prototype.clearReward = function() {
|
5137
|
+
return jspb.Message.setField(this, 13, undefined);
|
5138
|
+
};
|
5139
|
+
|
5140
|
+
|
5141
|
+
/**
|
5142
|
+
* Returns whether this field is set.
|
5143
|
+
* @return {boolean}
|
5144
|
+
*/
|
5145
|
+
proto.cashback.UserCashbackItem.prototype.hasReward = function() {
|
5146
|
+
return jspb.Message.getField(this, 13) != null;
|
5147
|
+
};
|
5148
|
+
|
5149
|
+
|
5102
5150
|
|
5103
5151
|
|
5104
5152
|
|
package/package.json
CHANGED
package/user/user.proto
CHANGED
@@ -15,6 +15,7 @@ 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);
|
18
19
|
//Segments
|
19
20
|
rpc createSingleSegment(SegmentRequest) returns (SegmentResponse);
|
20
21
|
rpc readSingleSegment(GetSegmentRequest) returns (SegmentResponse);
|
@@ -140,6 +141,11 @@ message UserDataRequest {
|
|
140
141
|
int32 id = 1;
|
141
142
|
optional string requested_area = 2;
|
142
143
|
}
|
144
|
+
message UserPasswordRequest {
|
145
|
+
int32 id = 1;
|
146
|
+
string current_password = 2;
|
147
|
+
string new_password = 3;
|
148
|
+
}
|
143
149
|
message UserRequest {
|
144
150
|
int32 id = 1;
|
145
151
|
optional string email = 2;
|
@@ -204,6 +210,9 @@ message UsersResponse {
|
|
204
210
|
optional int32 total_pages = 2;
|
205
211
|
optional int32 total_items = 3;
|
206
212
|
}
|
213
|
+
message UserStatusResponse {
|
214
|
+
string status = 1;
|
215
|
+
}
|
207
216
|
//Permissions
|
208
217
|
message RolePermissionRequest {
|
209
218
|
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,17 @@ 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
|
+
},
|
606
639
|
// Segments
|
607
640
|
createSingleSegment: {
|
608
641
|
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.
|
@@ -8525,6 +8759,136 @@ proto.user.UsersResponse.prototype.hasTotalItems = function() {
|
|
8525
8759
|
|
8526
8760
|
|
8527
8761
|
|
8762
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
8763
|
+
/**
|
8764
|
+
* Creates an object representation of this proto.
|
8765
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
8766
|
+
* Optional fields that are not set will be set to undefined.
|
8767
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
8768
|
+
* For the list of reserved names please see:
|
8769
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
8770
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
8771
|
+
* JSPB instance for transitional soy proto support:
|
8772
|
+
* http://goto/soy-param-migration
|
8773
|
+
* @return {!Object}
|
8774
|
+
*/
|
8775
|
+
proto.user.UserStatusResponse.prototype.toObject = function(opt_includeInstance) {
|
8776
|
+
return proto.user.UserStatusResponse.toObject(opt_includeInstance, this);
|
8777
|
+
};
|
8778
|
+
|
8779
|
+
|
8780
|
+
/**
|
8781
|
+
* Static version of the {@see toObject} method.
|
8782
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
8783
|
+
* the JSPB instance for transitional soy proto support:
|
8784
|
+
* http://goto/soy-param-migration
|
8785
|
+
* @param {!proto.user.UserStatusResponse} msg The msg instance to transform.
|
8786
|
+
* @return {!Object}
|
8787
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
8788
|
+
*/
|
8789
|
+
proto.user.UserStatusResponse.toObject = function(includeInstance, msg) {
|
8790
|
+
var f, obj = {
|
8791
|
+
status: jspb.Message.getFieldWithDefault(msg, 1, "")
|
8792
|
+
};
|
8793
|
+
|
8794
|
+
if (includeInstance) {
|
8795
|
+
obj.$jspbMessageInstance = msg;
|
8796
|
+
}
|
8797
|
+
return obj;
|
8798
|
+
};
|
8799
|
+
}
|
8800
|
+
|
8801
|
+
|
8802
|
+
/**
|
8803
|
+
* Deserializes binary data (in protobuf wire format).
|
8804
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
8805
|
+
* @return {!proto.user.UserStatusResponse}
|
8806
|
+
*/
|
8807
|
+
proto.user.UserStatusResponse.deserializeBinary = function(bytes) {
|
8808
|
+
var reader = new jspb.BinaryReader(bytes);
|
8809
|
+
var msg = new proto.user.UserStatusResponse;
|
8810
|
+
return proto.user.UserStatusResponse.deserializeBinaryFromReader(msg, reader);
|
8811
|
+
};
|
8812
|
+
|
8813
|
+
|
8814
|
+
/**
|
8815
|
+
* Deserializes binary data (in protobuf wire format) from the
|
8816
|
+
* given reader into the given message object.
|
8817
|
+
* @param {!proto.user.UserStatusResponse} msg The message object to deserialize into.
|
8818
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
8819
|
+
* @return {!proto.user.UserStatusResponse}
|
8820
|
+
*/
|
8821
|
+
proto.user.UserStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
|
8822
|
+
while (reader.nextField()) {
|
8823
|
+
if (reader.isEndGroup()) {
|
8824
|
+
break;
|
8825
|
+
}
|
8826
|
+
var field = reader.getFieldNumber();
|
8827
|
+
switch (field) {
|
8828
|
+
case 1:
|
8829
|
+
var value = /** @type {string} */ (reader.readString());
|
8830
|
+
msg.setStatus(value);
|
8831
|
+
break;
|
8832
|
+
default:
|
8833
|
+
reader.skipField();
|
8834
|
+
break;
|
8835
|
+
}
|
8836
|
+
}
|
8837
|
+
return msg;
|
8838
|
+
};
|
8839
|
+
|
8840
|
+
|
8841
|
+
/**
|
8842
|
+
* Serializes the message to binary data (in protobuf wire format).
|
8843
|
+
* @return {!Uint8Array}
|
8844
|
+
*/
|
8845
|
+
proto.user.UserStatusResponse.prototype.serializeBinary = function() {
|
8846
|
+
var writer = new jspb.BinaryWriter();
|
8847
|
+
proto.user.UserStatusResponse.serializeBinaryToWriter(this, writer);
|
8848
|
+
return writer.getResultBuffer();
|
8849
|
+
};
|
8850
|
+
|
8851
|
+
|
8852
|
+
/**
|
8853
|
+
* Serializes the given message to binary data (in protobuf wire
|
8854
|
+
* format), writing to the given BinaryWriter.
|
8855
|
+
* @param {!proto.user.UserStatusResponse} message
|
8856
|
+
* @param {!jspb.BinaryWriter} writer
|
8857
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
8858
|
+
*/
|
8859
|
+
proto.user.UserStatusResponse.serializeBinaryToWriter = function(message, writer) {
|
8860
|
+
var f = undefined;
|
8861
|
+
f = message.getStatus();
|
8862
|
+
if (f.length > 0) {
|
8863
|
+
writer.writeString(
|
8864
|
+
1,
|
8865
|
+
f
|
8866
|
+
);
|
8867
|
+
}
|
8868
|
+
};
|
8869
|
+
|
8870
|
+
|
8871
|
+
/**
|
8872
|
+
* optional string status = 1;
|
8873
|
+
* @return {string}
|
8874
|
+
*/
|
8875
|
+
proto.user.UserStatusResponse.prototype.getStatus = function() {
|
8876
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
8877
|
+
};
|
8878
|
+
|
8879
|
+
|
8880
|
+
/**
|
8881
|
+
* @param {string} value
|
8882
|
+
* @return {!proto.user.UserStatusResponse} returns this
|
8883
|
+
*/
|
8884
|
+
proto.user.UserStatusResponse.prototype.setStatus = function(value) {
|
8885
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
8886
|
+
};
|
8887
|
+
|
8888
|
+
|
8889
|
+
|
8890
|
+
|
8891
|
+
|
8528
8892
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
8529
8893
|
/**
|
8530
8894
|
* Creates an object representation of this proto.
|