protobuf-platform 1.0.210 → 1.0.211
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 +13 -0
- package/user/user_grpc_pb.js +23 -0
- package/user/user_pb.js +508 -0
package/package.json
CHANGED
package/user/user.proto
CHANGED
@@ -24,6 +24,8 @@ service User {
|
|
24
24
|
rpc addUsersIntoSegments(GetSegmentRequest) returns (SegmentStatusResponse);
|
25
25
|
rpc addUsersIntoMultiSegments(GetSegmentRequest) returns (SegmentStatusResponse);
|
26
26
|
rpc removeUsersFromSegments(GetSegmentRequest) returns (SegmentStatusResponse);
|
27
|
+
//Risk Status
|
28
|
+
rpc readListRiskStatuses(PaginationRequest) returns (RiskStatusItemsResponse);
|
27
29
|
}
|
28
30
|
|
29
31
|
message PingRequest { string ping = 1; }
|
@@ -199,3 +201,14 @@ message SegmentItemsResponse {
|
|
199
201
|
optional int32 total_pages = 2;
|
200
202
|
optional int32 total_items = 3;
|
201
203
|
}
|
204
|
+
//Risk Status
|
205
|
+
message RiskStatus {
|
206
|
+
int32 id = 1;
|
207
|
+
string title = 2;
|
208
|
+
optional string description = 3;
|
209
|
+
}
|
210
|
+
message RiskStatusItemsResponse {
|
211
|
+
repeated RiskStatus items = 1;
|
212
|
+
optional int32 total_pages = 2;
|
213
|
+
optional int32 total_items = 3;
|
214
|
+
}
|
package/user/user_grpc_pb.js
CHANGED
@@ -92,6 +92,17 @@ function deserialize_user_RegistrationRequest(buffer_arg) {
|
|
92
92
|
return user_pb.RegistrationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
93
93
|
}
|
94
94
|
|
95
|
+
function serialize_user_RiskStatusItemsResponse(arg) {
|
96
|
+
if (!(arg instanceof user_pb.RiskStatusItemsResponse)) {
|
97
|
+
throw new Error('Expected argument of type user.RiskStatusItemsResponse');
|
98
|
+
}
|
99
|
+
return Buffer.from(arg.serializeBinary());
|
100
|
+
}
|
101
|
+
|
102
|
+
function deserialize_user_RiskStatusItemsResponse(buffer_arg) {
|
103
|
+
return user_pb.RiskStatusItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
104
|
+
}
|
105
|
+
|
95
106
|
function serialize_user_Role(arg) {
|
96
107
|
if (!(arg instanceof user_pb.Role)) {
|
97
108
|
throw new Error('Expected argument of type user.Role');
|
@@ -417,6 +428,18 @@ createSingleSegment: {
|
|
417
428
|
responseSerialize: serialize_user_SegmentStatusResponse,
|
418
429
|
responseDeserialize: deserialize_user_SegmentStatusResponse,
|
419
430
|
},
|
431
|
+
// Risk Status
|
432
|
+
readListRiskStatuses: {
|
433
|
+
path: '/user.User/readListRiskStatuses',
|
434
|
+
requestStream: false,
|
435
|
+
responseStream: false,
|
436
|
+
requestType: user_pb.PaginationRequest,
|
437
|
+
responseType: user_pb.RiskStatusItemsResponse,
|
438
|
+
requestSerialize: serialize_user_PaginationRequest,
|
439
|
+
requestDeserialize: deserialize_user_PaginationRequest,
|
440
|
+
responseSerialize: serialize_user_RiskStatusItemsResponse,
|
441
|
+
responseDeserialize: deserialize_user_RiskStatusItemsResponse,
|
442
|
+
},
|
420
443
|
};
|
421
444
|
|
422
445
|
exports.UserClient = grpc.makeGenericClientConstructor(UserService);
|
package/user/user_pb.js
CHANGED
@@ -29,6 +29,8 @@ goog.exportSymbol('proto.user.PaginationRequest', null, global);
|
|
29
29
|
goog.exportSymbol('proto.user.PingRequest', null, global);
|
30
30
|
goog.exportSymbol('proto.user.PongResponse', null, global);
|
31
31
|
goog.exportSymbol('proto.user.RegistrationRequest', null, global);
|
32
|
+
goog.exportSymbol('proto.user.RiskStatus', null, global);
|
33
|
+
goog.exportSymbol('proto.user.RiskStatusItemsResponse', null, global);
|
32
34
|
goog.exportSymbol('proto.user.Role', null, global);
|
33
35
|
goog.exportSymbol('proto.user.RolePermissionRequest', null, global);
|
34
36
|
goog.exportSymbol('proto.user.RolePermissionStatusResponse', null, global);
|
@@ -527,6 +529,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
527
529
|
*/
|
528
530
|
proto.user.SegmentItemsResponse.displayName = 'proto.user.SegmentItemsResponse';
|
529
531
|
}
|
532
|
+
/**
|
533
|
+
* Generated by JsPbCodeGenerator.
|
534
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
535
|
+
* server response, or constructed directly in Javascript. The array is used
|
536
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
537
|
+
* If no data is provided, the constructed object will be empty, but still
|
538
|
+
* valid.
|
539
|
+
* @extends {jspb.Message}
|
540
|
+
* @constructor
|
541
|
+
*/
|
542
|
+
proto.user.RiskStatus = function(opt_data) {
|
543
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
544
|
+
};
|
545
|
+
goog.inherits(proto.user.RiskStatus, jspb.Message);
|
546
|
+
if (goog.DEBUG && !COMPILED) {
|
547
|
+
/**
|
548
|
+
* @public
|
549
|
+
* @override
|
550
|
+
*/
|
551
|
+
proto.user.RiskStatus.displayName = 'proto.user.RiskStatus';
|
552
|
+
}
|
553
|
+
/**
|
554
|
+
* Generated by JsPbCodeGenerator.
|
555
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
556
|
+
* server response, or constructed directly in Javascript. The array is used
|
557
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
558
|
+
* If no data is provided, the constructed object will be empty, but still
|
559
|
+
* valid.
|
560
|
+
* @extends {jspb.Message}
|
561
|
+
* @constructor
|
562
|
+
*/
|
563
|
+
proto.user.RiskStatusItemsResponse = function(opt_data) {
|
564
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.user.RiskStatusItemsResponse.repeatedFields_, null);
|
565
|
+
};
|
566
|
+
goog.inherits(proto.user.RiskStatusItemsResponse, jspb.Message);
|
567
|
+
if (goog.DEBUG && !COMPILED) {
|
568
|
+
/**
|
569
|
+
* @public
|
570
|
+
* @override
|
571
|
+
*/
|
572
|
+
proto.user.RiskStatusItemsResponse.displayName = 'proto.user.RiskStatusItemsResponse';
|
573
|
+
}
|
530
574
|
|
531
575
|
|
532
576
|
|
@@ -8380,4 +8424,468 @@ proto.user.SegmentItemsResponse.prototype.hasTotalItems = function() {
|
|
8380
8424
|
};
|
8381
8425
|
|
8382
8426
|
|
8427
|
+
|
8428
|
+
|
8429
|
+
|
8430
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
8431
|
+
/**
|
8432
|
+
* Creates an object representation of this proto.
|
8433
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
8434
|
+
* Optional fields that are not set will be set to undefined.
|
8435
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
8436
|
+
* For the list of reserved names please see:
|
8437
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
8438
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
8439
|
+
* JSPB instance for transitional soy proto support:
|
8440
|
+
* http://goto/soy-param-migration
|
8441
|
+
* @return {!Object}
|
8442
|
+
*/
|
8443
|
+
proto.user.RiskStatus.prototype.toObject = function(opt_includeInstance) {
|
8444
|
+
return proto.user.RiskStatus.toObject(opt_includeInstance, this);
|
8445
|
+
};
|
8446
|
+
|
8447
|
+
|
8448
|
+
/**
|
8449
|
+
* Static version of the {@see toObject} method.
|
8450
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
8451
|
+
* the JSPB instance for transitional soy proto support:
|
8452
|
+
* http://goto/soy-param-migration
|
8453
|
+
* @param {!proto.user.RiskStatus} msg The msg instance to transform.
|
8454
|
+
* @return {!Object}
|
8455
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
8456
|
+
*/
|
8457
|
+
proto.user.RiskStatus.toObject = function(includeInstance, msg) {
|
8458
|
+
var f, obj = {
|
8459
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
8460
|
+
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
8461
|
+
description: jspb.Message.getFieldWithDefault(msg, 3, "")
|
8462
|
+
};
|
8463
|
+
|
8464
|
+
if (includeInstance) {
|
8465
|
+
obj.$jspbMessageInstance = msg;
|
8466
|
+
}
|
8467
|
+
return obj;
|
8468
|
+
};
|
8469
|
+
}
|
8470
|
+
|
8471
|
+
|
8472
|
+
/**
|
8473
|
+
* Deserializes binary data (in protobuf wire format).
|
8474
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
8475
|
+
* @return {!proto.user.RiskStatus}
|
8476
|
+
*/
|
8477
|
+
proto.user.RiskStatus.deserializeBinary = function(bytes) {
|
8478
|
+
var reader = new jspb.BinaryReader(bytes);
|
8479
|
+
var msg = new proto.user.RiskStatus;
|
8480
|
+
return proto.user.RiskStatus.deserializeBinaryFromReader(msg, reader);
|
8481
|
+
};
|
8482
|
+
|
8483
|
+
|
8484
|
+
/**
|
8485
|
+
* Deserializes binary data (in protobuf wire format) from the
|
8486
|
+
* given reader into the given message object.
|
8487
|
+
* @param {!proto.user.RiskStatus} msg The message object to deserialize into.
|
8488
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
8489
|
+
* @return {!proto.user.RiskStatus}
|
8490
|
+
*/
|
8491
|
+
proto.user.RiskStatus.deserializeBinaryFromReader = function(msg, reader) {
|
8492
|
+
while (reader.nextField()) {
|
8493
|
+
if (reader.isEndGroup()) {
|
8494
|
+
break;
|
8495
|
+
}
|
8496
|
+
var field = reader.getFieldNumber();
|
8497
|
+
switch (field) {
|
8498
|
+
case 1:
|
8499
|
+
var value = /** @type {number} */ (reader.readInt32());
|
8500
|
+
msg.setId(value);
|
8501
|
+
break;
|
8502
|
+
case 2:
|
8503
|
+
var value = /** @type {string} */ (reader.readString());
|
8504
|
+
msg.setTitle(value);
|
8505
|
+
break;
|
8506
|
+
case 3:
|
8507
|
+
var value = /** @type {string} */ (reader.readString());
|
8508
|
+
msg.setDescription(value);
|
8509
|
+
break;
|
8510
|
+
default:
|
8511
|
+
reader.skipField();
|
8512
|
+
break;
|
8513
|
+
}
|
8514
|
+
}
|
8515
|
+
return msg;
|
8516
|
+
};
|
8517
|
+
|
8518
|
+
|
8519
|
+
/**
|
8520
|
+
* Serializes the message to binary data (in protobuf wire format).
|
8521
|
+
* @return {!Uint8Array}
|
8522
|
+
*/
|
8523
|
+
proto.user.RiskStatus.prototype.serializeBinary = function() {
|
8524
|
+
var writer = new jspb.BinaryWriter();
|
8525
|
+
proto.user.RiskStatus.serializeBinaryToWriter(this, writer);
|
8526
|
+
return writer.getResultBuffer();
|
8527
|
+
};
|
8528
|
+
|
8529
|
+
|
8530
|
+
/**
|
8531
|
+
* Serializes the given message to binary data (in protobuf wire
|
8532
|
+
* format), writing to the given BinaryWriter.
|
8533
|
+
* @param {!proto.user.RiskStatus} message
|
8534
|
+
* @param {!jspb.BinaryWriter} writer
|
8535
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
8536
|
+
*/
|
8537
|
+
proto.user.RiskStatus.serializeBinaryToWriter = function(message, writer) {
|
8538
|
+
var f = undefined;
|
8539
|
+
f = message.getId();
|
8540
|
+
if (f !== 0) {
|
8541
|
+
writer.writeInt32(
|
8542
|
+
1,
|
8543
|
+
f
|
8544
|
+
);
|
8545
|
+
}
|
8546
|
+
f = message.getTitle();
|
8547
|
+
if (f.length > 0) {
|
8548
|
+
writer.writeString(
|
8549
|
+
2,
|
8550
|
+
f
|
8551
|
+
);
|
8552
|
+
}
|
8553
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
8554
|
+
if (f != null) {
|
8555
|
+
writer.writeString(
|
8556
|
+
3,
|
8557
|
+
f
|
8558
|
+
);
|
8559
|
+
}
|
8560
|
+
};
|
8561
|
+
|
8562
|
+
|
8563
|
+
/**
|
8564
|
+
* optional int32 id = 1;
|
8565
|
+
* @return {number}
|
8566
|
+
*/
|
8567
|
+
proto.user.RiskStatus.prototype.getId = function() {
|
8568
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
8569
|
+
};
|
8570
|
+
|
8571
|
+
|
8572
|
+
/**
|
8573
|
+
* @param {number} value
|
8574
|
+
* @return {!proto.user.RiskStatus} returns this
|
8575
|
+
*/
|
8576
|
+
proto.user.RiskStatus.prototype.setId = function(value) {
|
8577
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
8578
|
+
};
|
8579
|
+
|
8580
|
+
|
8581
|
+
/**
|
8582
|
+
* optional string title = 2;
|
8583
|
+
* @return {string}
|
8584
|
+
*/
|
8585
|
+
proto.user.RiskStatus.prototype.getTitle = function() {
|
8586
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
8587
|
+
};
|
8588
|
+
|
8589
|
+
|
8590
|
+
/**
|
8591
|
+
* @param {string} value
|
8592
|
+
* @return {!proto.user.RiskStatus} returns this
|
8593
|
+
*/
|
8594
|
+
proto.user.RiskStatus.prototype.setTitle = function(value) {
|
8595
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
8596
|
+
};
|
8597
|
+
|
8598
|
+
|
8599
|
+
/**
|
8600
|
+
* optional string description = 3;
|
8601
|
+
* @return {string}
|
8602
|
+
*/
|
8603
|
+
proto.user.RiskStatus.prototype.getDescription = function() {
|
8604
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
8605
|
+
};
|
8606
|
+
|
8607
|
+
|
8608
|
+
/**
|
8609
|
+
* @param {string} value
|
8610
|
+
* @return {!proto.user.RiskStatus} returns this
|
8611
|
+
*/
|
8612
|
+
proto.user.RiskStatus.prototype.setDescription = function(value) {
|
8613
|
+
return jspb.Message.setField(this, 3, value);
|
8614
|
+
};
|
8615
|
+
|
8616
|
+
|
8617
|
+
/**
|
8618
|
+
* Clears the field making it undefined.
|
8619
|
+
* @return {!proto.user.RiskStatus} returns this
|
8620
|
+
*/
|
8621
|
+
proto.user.RiskStatus.prototype.clearDescription = function() {
|
8622
|
+
return jspb.Message.setField(this, 3, undefined);
|
8623
|
+
};
|
8624
|
+
|
8625
|
+
|
8626
|
+
/**
|
8627
|
+
* Returns whether this field is set.
|
8628
|
+
* @return {boolean}
|
8629
|
+
*/
|
8630
|
+
proto.user.RiskStatus.prototype.hasDescription = function() {
|
8631
|
+
return jspb.Message.getField(this, 3) != null;
|
8632
|
+
};
|
8633
|
+
|
8634
|
+
|
8635
|
+
|
8636
|
+
/**
|
8637
|
+
* List of repeated fields within this message type.
|
8638
|
+
* @private {!Array<number>}
|
8639
|
+
* @const
|
8640
|
+
*/
|
8641
|
+
proto.user.RiskStatusItemsResponse.repeatedFields_ = [1];
|
8642
|
+
|
8643
|
+
|
8644
|
+
|
8645
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
8646
|
+
/**
|
8647
|
+
* Creates an object representation of this proto.
|
8648
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
8649
|
+
* Optional fields that are not set will be set to undefined.
|
8650
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
8651
|
+
* For the list of reserved names please see:
|
8652
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
8653
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
8654
|
+
* JSPB instance for transitional soy proto support:
|
8655
|
+
* http://goto/soy-param-migration
|
8656
|
+
* @return {!Object}
|
8657
|
+
*/
|
8658
|
+
proto.user.RiskStatusItemsResponse.prototype.toObject = function(opt_includeInstance) {
|
8659
|
+
return proto.user.RiskStatusItemsResponse.toObject(opt_includeInstance, this);
|
8660
|
+
};
|
8661
|
+
|
8662
|
+
|
8663
|
+
/**
|
8664
|
+
* Static version of the {@see toObject} method.
|
8665
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
8666
|
+
* the JSPB instance for transitional soy proto support:
|
8667
|
+
* http://goto/soy-param-migration
|
8668
|
+
* @param {!proto.user.RiskStatusItemsResponse} msg The msg instance to transform.
|
8669
|
+
* @return {!Object}
|
8670
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
8671
|
+
*/
|
8672
|
+
proto.user.RiskStatusItemsResponse.toObject = function(includeInstance, msg) {
|
8673
|
+
var f, obj = {
|
8674
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
8675
|
+
proto.user.RiskStatus.toObject, includeInstance),
|
8676
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
8677
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
8678
|
+
};
|
8679
|
+
|
8680
|
+
if (includeInstance) {
|
8681
|
+
obj.$jspbMessageInstance = msg;
|
8682
|
+
}
|
8683
|
+
return obj;
|
8684
|
+
};
|
8685
|
+
}
|
8686
|
+
|
8687
|
+
|
8688
|
+
/**
|
8689
|
+
* Deserializes binary data (in protobuf wire format).
|
8690
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
8691
|
+
* @return {!proto.user.RiskStatusItemsResponse}
|
8692
|
+
*/
|
8693
|
+
proto.user.RiskStatusItemsResponse.deserializeBinary = function(bytes) {
|
8694
|
+
var reader = new jspb.BinaryReader(bytes);
|
8695
|
+
var msg = new proto.user.RiskStatusItemsResponse;
|
8696
|
+
return proto.user.RiskStatusItemsResponse.deserializeBinaryFromReader(msg, reader);
|
8697
|
+
};
|
8698
|
+
|
8699
|
+
|
8700
|
+
/**
|
8701
|
+
* Deserializes binary data (in protobuf wire format) from the
|
8702
|
+
* given reader into the given message object.
|
8703
|
+
* @param {!proto.user.RiskStatusItemsResponse} msg The message object to deserialize into.
|
8704
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
8705
|
+
* @return {!proto.user.RiskStatusItemsResponse}
|
8706
|
+
*/
|
8707
|
+
proto.user.RiskStatusItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
8708
|
+
while (reader.nextField()) {
|
8709
|
+
if (reader.isEndGroup()) {
|
8710
|
+
break;
|
8711
|
+
}
|
8712
|
+
var field = reader.getFieldNumber();
|
8713
|
+
switch (field) {
|
8714
|
+
case 1:
|
8715
|
+
var value = new proto.user.RiskStatus;
|
8716
|
+
reader.readMessage(value,proto.user.RiskStatus.deserializeBinaryFromReader);
|
8717
|
+
msg.addItems(value);
|
8718
|
+
break;
|
8719
|
+
case 2:
|
8720
|
+
var value = /** @type {number} */ (reader.readInt32());
|
8721
|
+
msg.setTotalPages(value);
|
8722
|
+
break;
|
8723
|
+
case 3:
|
8724
|
+
var value = /** @type {number} */ (reader.readInt32());
|
8725
|
+
msg.setTotalItems(value);
|
8726
|
+
break;
|
8727
|
+
default:
|
8728
|
+
reader.skipField();
|
8729
|
+
break;
|
8730
|
+
}
|
8731
|
+
}
|
8732
|
+
return msg;
|
8733
|
+
};
|
8734
|
+
|
8735
|
+
|
8736
|
+
/**
|
8737
|
+
* Serializes the message to binary data (in protobuf wire format).
|
8738
|
+
* @return {!Uint8Array}
|
8739
|
+
*/
|
8740
|
+
proto.user.RiskStatusItemsResponse.prototype.serializeBinary = function() {
|
8741
|
+
var writer = new jspb.BinaryWriter();
|
8742
|
+
proto.user.RiskStatusItemsResponse.serializeBinaryToWriter(this, writer);
|
8743
|
+
return writer.getResultBuffer();
|
8744
|
+
};
|
8745
|
+
|
8746
|
+
|
8747
|
+
/**
|
8748
|
+
* Serializes the given message to binary data (in protobuf wire
|
8749
|
+
* format), writing to the given BinaryWriter.
|
8750
|
+
* @param {!proto.user.RiskStatusItemsResponse} message
|
8751
|
+
* @param {!jspb.BinaryWriter} writer
|
8752
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
8753
|
+
*/
|
8754
|
+
proto.user.RiskStatusItemsResponse.serializeBinaryToWriter = function(message, writer) {
|
8755
|
+
var f = undefined;
|
8756
|
+
f = message.getItemsList();
|
8757
|
+
if (f.length > 0) {
|
8758
|
+
writer.writeRepeatedMessage(
|
8759
|
+
1,
|
8760
|
+
f,
|
8761
|
+
proto.user.RiskStatus.serializeBinaryToWriter
|
8762
|
+
);
|
8763
|
+
}
|
8764
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
8765
|
+
if (f != null) {
|
8766
|
+
writer.writeInt32(
|
8767
|
+
2,
|
8768
|
+
f
|
8769
|
+
);
|
8770
|
+
}
|
8771
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
8772
|
+
if (f != null) {
|
8773
|
+
writer.writeInt32(
|
8774
|
+
3,
|
8775
|
+
f
|
8776
|
+
);
|
8777
|
+
}
|
8778
|
+
};
|
8779
|
+
|
8780
|
+
|
8781
|
+
/**
|
8782
|
+
* repeated RiskStatus items = 1;
|
8783
|
+
* @return {!Array<!proto.user.RiskStatus>}
|
8784
|
+
*/
|
8785
|
+
proto.user.RiskStatusItemsResponse.prototype.getItemsList = function() {
|
8786
|
+
return /** @type{!Array<!proto.user.RiskStatus>} */ (
|
8787
|
+
jspb.Message.getRepeatedWrapperField(this, proto.user.RiskStatus, 1));
|
8788
|
+
};
|
8789
|
+
|
8790
|
+
|
8791
|
+
/**
|
8792
|
+
* @param {!Array<!proto.user.RiskStatus>} value
|
8793
|
+
* @return {!proto.user.RiskStatusItemsResponse} returns this
|
8794
|
+
*/
|
8795
|
+
proto.user.RiskStatusItemsResponse.prototype.setItemsList = function(value) {
|
8796
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
8797
|
+
};
|
8798
|
+
|
8799
|
+
|
8800
|
+
/**
|
8801
|
+
* @param {!proto.user.RiskStatus=} opt_value
|
8802
|
+
* @param {number=} opt_index
|
8803
|
+
* @return {!proto.user.RiskStatus}
|
8804
|
+
*/
|
8805
|
+
proto.user.RiskStatusItemsResponse.prototype.addItems = function(opt_value, opt_index) {
|
8806
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.user.RiskStatus, opt_index);
|
8807
|
+
};
|
8808
|
+
|
8809
|
+
|
8810
|
+
/**
|
8811
|
+
* Clears the list making it empty but non-null.
|
8812
|
+
* @return {!proto.user.RiskStatusItemsResponse} returns this
|
8813
|
+
*/
|
8814
|
+
proto.user.RiskStatusItemsResponse.prototype.clearItemsList = function() {
|
8815
|
+
return this.setItemsList([]);
|
8816
|
+
};
|
8817
|
+
|
8818
|
+
|
8819
|
+
/**
|
8820
|
+
* optional int32 total_pages = 2;
|
8821
|
+
* @return {number}
|
8822
|
+
*/
|
8823
|
+
proto.user.RiskStatusItemsResponse.prototype.getTotalPages = function() {
|
8824
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
8825
|
+
};
|
8826
|
+
|
8827
|
+
|
8828
|
+
/**
|
8829
|
+
* @param {number} value
|
8830
|
+
* @return {!proto.user.RiskStatusItemsResponse} returns this
|
8831
|
+
*/
|
8832
|
+
proto.user.RiskStatusItemsResponse.prototype.setTotalPages = function(value) {
|
8833
|
+
return jspb.Message.setField(this, 2, value);
|
8834
|
+
};
|
8835
|
+
|
8836
|
+
|
8837
|
+
/**
|
8838
|
+
* Clears the field making it undefined.
|
8839
|
+
* @return {!proto.user.RiskStatusItemsResponse} returns this
|
8840
|
+
*/
|
8841
|
+
proto.user.RiskStatusItemsResponse.prototype.clearTotalPages = function() {
|
8842
|
+
return jspb.Message.setField(this, 2, undefined);
|
8843
|
+
};
|
8844
|
+
|
8845
|
+
|
8846
|
+
/**
|
8847
|
+
* Returns whether this field is set.
|
8848
|
+
* @return {boolean}
|
8849
|
+
*/
|
8850
|
+
proto.user.RiskStatusItemsResponse.prototype.hasTotalPages = function() {
|
8851
|
+
return jspb.Message.getField(this, 2) != null;
|
8852
|
+
};
|
8853
|
+
|
8854
|
+
|
8855
|
+
/**
|
8856
|
+
* optional int32 total_items = 3;
|
8857
|
+
* @return {number}
|
8858
|
+
*/
|
8859
|
+
proto.user.RiskStatusItemsResponse.prototype.getTotalItems = function() {
|
8860
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
8861
|
+
};
|
8862
|
+
|
8863
|
+
|
8864
|
+
/**
|
8865
|
+
* @param {number} value
|
8866
|
+
* @return {!proto.user.RiskStatusItemsResponse} returns this
|
8867
|
+
*/
|
8868
|
+
proto.user.RiskStatusItemsResponse.prototype.setTotalItems = function(value) {
|
8869
|
+
return jspb.Message.setField(this, 3, value);
|
8870
|
+
};
|
8871
|
+
|
8872
|
+
|
8873
|
+
/**
|
8874
|
+
* Clears the field making it undefined.
|
8875
|
+
* @return {!proto.user.RiskStatusItemsResponse} returns this
|
8876
|
+
*/
|
8877
|
+
proto.user.RiskStatusItemsResponse.prototype.clearTotalItems = function() {
|
8878
|
+
return jspb.Message.setField(this, 3, undefined);
|
8879
|
+
};
|
8880
|
+
|
8881
|
+
|
8882
|
+
/**
|
8883
|
+
* Returns whether this field is set.
|
8884
|
+
* @return {boolean}
|
8885
|
+
*/
|
8886
|
+
proto.user.RiskStatusItemsResponse.prototype.hasTotalItems = function() {
|
8887
|
+
return jspb.Message.getField(this, 3) != null;
|
8888
|
+
};
|
8889
|
+
|
8890
|
+
|
8383
8891
|
goog.object.extend(exports, proto.user);
|