@aldiokta/protocgen 1.0.87 → 1.0.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -140,6 +140,28 @@ function deserialize_GetListAccessRequest(buffer_arg) {
|
|
|
140
140
|
return prisca_v1_core_auth_auth_pb.GetListAccessRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
+
function serialize_GetListUserRequest(arg) {
|
|
144
|
+
if (!(arg instanceof prisca_v1_core_auth_auth_pb.GetListUserRequest)) {
|
|
145
|
+
throw new Error('Expected argument of type GetListUserRequest');
|
|
146
|
+
}
|
|
147
|
+
return Buffer.from(arg.serializeBinary());
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
function deserialize_GetListUserRequest(buffer_arg) {
|
|
151
|
+
return prisca_v1_core_auth_auth_pb.GetListUserRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
function serialize_GetListUserResponse(arg) {
|
|
155
|
+
if (!(arg instanceof prisca_v1_core_auth_auth_pb.GetListUserResponse)) {
|
|
156
|
+
throw new Error('Expected argument of type GetListUserResponse');
|
|
157
|
+
}
|
|
158
|
+
return Buffer.from(arg.serializeBinary());
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
function deserialize_GetListUserResponse(buffer_arg) {
|
|
162
|
+
return prisca_v1_core_auth_auth_pb.GetListUserResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
163
|
+
}
|
|
164
|
+
|
|
143
165
|
function serialize_ListAccessResponse(arg) {
|
|
144
166
|
if (!(arg instanceof prisca_v1_core_auth_auth_pb.ListAccessResponse)) {
|
|
145
167
|
throw new Error('Expected argument of type ListAccessResponse');
|
|
@@ -263,6 +285,17 @@ var AuthServiceService = exports.AuthServiceService = {
|
|
|
263
285
|
responseSerialize: serialize_UserResponse,
|
|
264
286
|
responseDeserialize: deserialize_UserResponse,
|
|
265
287
|
},
|
|
288
|
+
getListUsers: {
|
|
289
|
+
path: '/AuthService/GetListUsers',
|
|
290
|
+
requestStream: false,
|
|
291
|
+
responseStream: false,
|
|
292
|
+
requestType: prisca_v1_core_auth_auth_pb.GetListUserRequest,
|
|
293
|
+
responseType: prisca_v1_core_auth_auth_pb.GetListUserResponse,
|
|
294
|
+
requestSerialize: serialize_GetListUserRequest,
|
|
295
|
+
requestDeserialize: deserialize_GetListUserRequest,
|
|
296
|
+
responseSerialize: serialize_GetListUserResponse,
|
|
297
|
+
responseDeserialize: deserialize_GetListUserResponse,
|
|
298
|
+
},
|
|
266
299
|
verifyAuthorization: {
|
|
267
300
|
path: '/AuthService/VerifyAuthorization',
|
|
268
301
|
requestStream: false,
|
|
@@ -35,6 +35,8 @@ goog.exportSymbol('proto.CreateUserPayload', null, global);
|
|
|
35
35
|
goog.exportSymbol('proto.ForgotPassworReq', null, global);
|
|
36
36
|
goog.exportSymbol('proto.GetAccessByIdPayload', null, global);
|
|
37
37
|
goog.exportSymbol('proto.GetListAccessRequest', null, global);
|
|
38
|
+
goog.exportSymbol('proto.GetListUserRequest', null, global);
|
|
39
|
+
goog.exportSymbol('proto.GetListUserResponse', null, global);
|
|
38
40
|
goog.exportSymbol('proto.ListAccessResponse', null, global);
|
|
39
41
|
goog.exportSymbol('proto.LoginRequest', null, global);
|
|
40
42
|
goog.exportSymbol('proto.RequestForgotPasswordReq', null, global);
|
|
@@ -441,6 +443,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
441
443
|
*/
|
|
442
444
|
proto.ChangePasswordResponse.displayName = 'proto.ChangePasswordResponse';
|
|
443
445
|
}
|
|
446
|
+
/**
|
|
447
|
+
* Generated by JsPbCodeGenerator.
|
|
448
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
449
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
450
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
451
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
452
|
+
* valid.
|
|
453
|
+
* @extends {jspb.Message}
|
|
454
|
+
* @constructor
|
|
455
|
+
*/
|
|
456
|
+
proto.GetListUserRequest = function(opt_data) {
|
|
457
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
458
|
+
};
|
|
459
|
+
goog.inherits(proto.GetListUserRequest, jspb.Message);
|
|
460
|
+
if (goog.DEBUG && !COMPILED) {
|
|
461
|
+
/**
|
|
462
|
+
* @public
|
|
463
|
+
* @override
|
|
464
|
+
*/
|
|
465
|
+
proto.GetListUserRequest.displayName = 'proto.GetListUserRequest';
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* Generated by JsPbCodeGenerator.
|
|
469
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
470
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
471
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
472
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
473
|
+
* valid.
|
|
474
|
+
* @extends {jspb.Message}
|
|
475
|
+
* @constructor
|
|
476
|
+
*/
|
|
477
|
+
proto.GetListUserResponse = function(opt_data) {
|
|
478
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListUserResponse.repeatedFields_, null);
|
|
479
|
+
};
|
|
480
|
+
goog.inherits(proto.GetListUserResponse, jspb.Message);
|
|
481
|
+
if (goog.DEBUG && !COMPILED) {
|
|
482
|
+
/**
|
|
483
|
+
* @public
|
|
484
|
+
* @override
|
|
485
|
+
*/
|
|
486
|
+
proto.GetListUserResponse.displayName = 'proto.GetListUserResponse';
|
|
487
|
+
}
|
|
444
488
|
|
|
445
489
|
|
|
446
490
|
|
|
@@ -2648,7 +2692,8 @@ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
|
2648
2692
|
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
2649
2693
|
email: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
2650
2694
|
role: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
2651
|
-
token: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
2695
|
+
token: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
2696
|
+
referencesId: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
2652
2697
|
};
|
|
2653
2698
|
|
|
2654
2699
|
if (includeInstance) {
|
|
@@ -2705,6 +2750,10 @@ proto.UserResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
2705
2750
|
var value = /** @type {string} */ (reader.readString());
|
|
2706
2751
|
msg.setToken(value);
|
|
2707
2752
|
break;
|
|
2753
|
+
case 6:
|
|
2754
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2755
|
+
msg.setReferencesId(value);
|
|
2756
|
+
break;
|
|
2708
2757
|
default:
|
|
2709
2758
|
reader.skipField();
|
|
2710
2759
|
break;
|
|
@@ -2769,6 +2818,13 @@ proto.UserResponse.serializeBinaryToWriter = function(message, writer) {
|
|
|
2769
2818
|
f
|
|
2770
2819
|
);
|
|
2771
2820
|
}
|
|
2821
|
+
f = message.getReferencesId();
|
|
2822
|
+
if (f.length > 0) {
|
|
2823
|
+
writer.writeString(
|
|
2824
|
+
6,
|
|
2825
|
+
f
|
|
2826
|
+
);
|
|
2827
|
+
}
|
|
2772
2828
|
};
|
|
2773
2829
|
|
|
2774
2830
|
|
|
@@ -2862,6 +2918,24 @@ proto.UserResponse.prototype.setToken = function(value) {
|
|
|
2862
2918
|
};
|
|
2863
2919
|
|
|
2864
2920
|
|
|
2921
|
+
/**
|
|
2922
|
+
* optional string references_id = 6;
|
|
2923
|
+
* @return {string}
|
|
2924
|
+
*/
|
|
2925
|
+
proto.UserResponse.prototype.getReferencesId = function() {
|
|
2926
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
2927
|
+
};
|
|
2928
|
+
|
|
2929
|
+
|
|
2930
|
+
/**
|
|
2931
|
+
* @param {string} value
|
|
2932
|
+
* @return {!proto.UserResponse} returns this
|
|
2933
|
+
*/
|
|
2934
|
+
proto.UserResponse.prototype.setReferencesId = function(value) {
|
|
2935
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
2936
|
+
};
|
|
2937
|
+
|
|
2938
|
+
|
|
2865
2939
|
|
|
2866
2940
|
|
|
2867
2941
|
|
|
@@ -3763,4 +3837,417 @@ proto.ChangePasswordResponse.prototype.hasMeta = function() {
|
|
|
3763
3837
|
};
|
|
3764
3838
|
|
|
3765
3839
|
|
|
3840
|
+
|
|
3841
|
+
|
|
3842
|
+
|
|
3843
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3844
|
+
/**
|
|
3845
|
+
* Creates an object representation of this proto.
|
|
3846
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3847
|
+
* Optional fields that are not set will be set to undefined.
|
|
3848
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3849
|
+
* For the list of reserved names please see:
|
|
3850
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3851
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3852
|
+
* JSPB instance for transitional soy proto support:
|
|
3853
|
+
* http://goto/soy-param-migration
|
|
3854
|
+
* @return {!Object}
|
|
3855
|
+
*/
|
|
3856
|
+
proto.GetListUserRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3857
|
+
return proto.GetListUserRequest.toObject(opt_includeInstance, this);
|
|
3858
|
+
};
|
|
3859
|
+
|
|
3860
|
+
|
|
3861
|
+
/**
|
|
3862
|
+
* Static version of the {@see toObject} method.
|
|
3863
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3864
|
+
* the JSPB instance for transitional soy proto support:
|
|
3865
|
+
* http://goto/soy-param-migration
|
|
3866
|
+
* @param {!proto.GetListUserRequest} msg The msg instance to transform.
|
|
3867
|
+
* @return {!Object}
|
|
3868
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3869
|
+
*/
|
|
3870
|
+
proto.GetListUserRequest.toObject = function(includeInstance, msg) {
|
|
3871
|
+
var f, obj = {
|
|
3872
|
+
pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
|
|
3873
|
+
query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
|
|
3874
|
+
};
|
|
3875
|
+
|
|
3876
|
+
if (includeInstance) {
|
|
3877
|
+
obj.$jspbMessageInstance = msg;
|
|
3878
|
+
}
|
|
3879
|
+
return obj;
|
|
3880
|
+
};
|
|
3881
|
+
}
|
|
3882
|
+
|
|
3883
|
+
|
|
3884
|
+
/**
|
|
3885
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3886
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3887
|
+
* @return {!proto.GetListUserRequest}
|
|
3888
|
+
*/
|
|
3889
|
+
proto.GetListUserRequest.deserializeBinary = function(bytes) {
|
|
3890
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3891
|
+
var msg = new proto.GetListUserRequest;
|
|
3892
|
+
return proto.GetListUserRequest.deserializeBinaryFromReader(msg, reader);
|
|
3893
|
+
};
|
|
3894
|
+
|
|
3895
|
+
|
|
3896
|
+
/**
|
|
3897
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3898
|
+
* given reader into the given message object.
|
|
3899
|
+
* @param {!proto.GetListUserRequest} msg The message object to deserialize into.
|
|
3900
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3901
|
+
* @return {!proto.GetListUserRequest}
|
|
3902
|
+
*/
|
|
3903
|
+
proto.GetListUserRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3904
|
+
while (reader.nextField()) {
|
|
3905
|
+
if (reader.isEndGroup()) {
|
|
3906
|
+
break;
|
|
3907
|
+
}
|
|
3908
|
+
var field = reader.getFieldNumber();
|
|
3909
|
+
switch (field) {
|
|
3910
|
+
case 1:
|
|
3911
|
+
var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
|
|
3912
|
+
reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
|
|
3913
|
+
msg.setPagination(value);
|
|
3914
|
+
break;
|
|
3915
|
+
case 2:
|
|
3916
|
+
var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
|
|
3917
|
+
reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
|
|
3918
|
+
msg.setQuery(value);
|
|
3919
|
+
break;
|
|
3920
|
+
default:
|
|
3921
|
+
reader.skipField();
|
|
3922
|
+
break;
|
|
3923
|
+
}
|
|
3924
|
+
}
|
|
3925
|
+
return msg;
|
|
3926
|
+
};
|
|
3927
|
+
|
|
3928
|
+
|
|
3929
|
+
/**
|
|
3930
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3931
|
+
* @return {!Uint8Array}
|
|
3932
|
+
*/
|
|
3933
|
+
proto.GetListUserRequest.prototype.serializeBinary = function() {
|
|
3934
|
+
var writer = new jspb.BinaryWriter();
|
|
3935
|
+
proto.GetListUserRequest.serializeBinaryToWriter(this, writer);
|
|
3936
|
+
return writer.getResultBuffer();
|
|
3937
|
+
};
|
|
3938
|
+
|
|
3939
|
+
|
|
3940
|
+
/**
|
|
3941
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3942
|
+
* format), writing to the given BinaryWriter.
|
|
3943
|
+
* @param {!proto.GetListUserRequest} message
|
|
3944
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3945
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3946
|
+
*/
|
|
3947
|
+
proto.GetListUserRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3948
|
+
var f = undefined;
|
|
3949
|
+
f = message.getPagination();
|
|
3950
|
+
if (f != null) {
|
|
3951
|
+
writer.writeMessage(
|
|
3952
|
+
1,
|
|
3953
|
+
f,
|
|
3954
|
+
prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
|
|
3955
|
+
);
|
|
3956
|
+
}
|
|
3957
|
+
f = message.getQuery();
|
|
3958
|
+
if (f != null) {
|
|
3959
|
+
writer.writeMessage(
|
|
3960
|
+
2,
|
|
3961
|
+
f,
|
|
3962
|
+
prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
|
|
3963
|
+
);
|
|
3964
|
+
}
|
|
3965
|
+
};
|
|
3966
|
+
|
|
3967
|
+
|
|
3968
|
+
/**
|
|
3969
|
+
* optional prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
3970
|
+
* @return {?proto.prisca.v1.global.meta.PaginationRequest}
|
|
3971
|
+
*/
|
|
3972
|
+
proto.GetListUserRequest.prototype.getPagination = function() {
|
|
3973
|
+
return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
|
|
3974
|
+
jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
|
|
3975
|
+
};
|
|
3976
|
+
|
|
3977
|
+
|
|
3978
|
+
/**
|
|
3979
|
+
* @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
|
|
3980
|
+
* @return {!proto.GetListUserRequest} returns this
|
|
3981
|
+
*/
|
|
3982
|
+
proto.GetListUserRequest.prototype.setPagination = function(value) {
|
|
3983
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
3984
|
+
};
|
|
3985
|
+
|
|
3986
|
+
|
|
3987
|
+
/**
|
|
3988
|
+
* Clears the message field making it undefined.
|
|
3989
|
+
* @return {!proto.GetListUserRequest} returns this
|
|
3990
|
+
*/
|
|
3991
|
+
proto.GetListUserRequest.prototype.clearPagination = function() {
|
|
3992
|
+
return this.setPagination(undefined);
|
|
3993
|
+
};
|
|
3994
|
+
|
|
3995
|
+
|
|
3996
|
+
/**
|
|
3997
|
+
* Returns whether this field is set.
|
|
3998
|
+
* @return {boolean}
|
|
3999
|
+
*/
|
|
4000
|
+
proto.GetListUserRequest.prototype.hasPagination = function() {
|
|
4001
|
+
return jspb.Message.getField(this, 1) != null;
|
|
4002
|
+
};
|
|
4003
|
+
|
|
4004
|
+
|
|
4005
|
+
/**
|
|
4006
|
+
* optional prisca.v1.global.meta.FilterRequest query = 2;
|
|
4007
|
+
* @return {?proto.prisca.v1.global.meta.FilterRequest}
|
|
4008
|
+
*/
|
|
4009
|
+
proto.GetListUserRequest.prototype.getQuery = function() {
|
|
4010
|
+
return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
|
|
4011
|
+
jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
|
|
4012
|
+
};
|
|
4013
|
+
|
|
4014
|
+
|
|
4015
|
+
/**
|
|
4016
|
+
* @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
|
|
4017
|
+
* @return {!proto.GetListUserRequest} returns this
|
|
4018
|
+
*/
|
|
4019
|
+
proto.GetListUserRequest.prototype.setQuery = function(value) {
|
|
4020
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
4021
|
+
};
|
|
4022
|
+
|
|
4023
|
+
|
|
4024
|
+
/**
|
|
4025
|
+
* Clears the message field making it undefined.
|
|
4026
|
+
* @return {!proto.GetListUserRequest} returns this
|
|
4027
|
+
*/
|
|
4028
|
+
proto.GetListUserRequest.prototype.clearQuery = function() {
|
|
4029
|
+
return this.setQuery(undefined);
|
|
4030
|
+
};
|
|
4031
|
+
|
|
4032
|
+
|
|
4033
|
+
/**
|
|
4034
|
+
* Returns whether this field is set.
|
|
4035
|
+
* @return {boolean}
|
|
4036
|
+
*/
|
|
4037
|
+
proto.GetListUserRequest.prototype.hasQuery = function() {
|
|
4038
|
+
return jspb.Message.getField(this, 2) != null;
|
|
4039
|
+
};
|
|
4040
|
+
|
|
4041
|
+
|
|
4042
|
+
|
|
4043
|
+
/**
|
|
4044
|
+
* List of repeated fields within this message type.
|
|
4045
|
+
* @private {!Array<number>}
|
|
4046
|
+
* @const
|
|
4047
|
+
*/
|
|
4048
|
+
proto.GetListUserResponse.repeatedFields_ = [1];
|
|
4049
|
+
|
|
4050
|
+
|
|
4051
|
+
|
|
4052
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4053
|
+
/**
|
|
4054
|
+
* Creates an object representation of this proto.
|
|
4055
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4056
|
+
* Optional fields that are not set will be set to undefined.
|
|
4057
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4058
|
+
* For the list of reserved names please see:
|
|
4059
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4060
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4061
|
+
* JSPB instance for transitional soy proto support:
|
|
4062
|
+
* http://goto/soy-param-migration
|
|
4063
|
+
* @return {!Object}
|
|
4064
|
+
*/
|
|
4065
|
+
proto.GetListUserResponse.prototype.toObject = function(opt_includeInstance) {
|
|
4066
|
+
return proto.GetListUserResponse.toObject(opt_includeInstance, this);
|
|
4067
|
+
};
|
|
4068
|
+
|
|
4069
|
+
|
|
4070
|
+
/**
|
|
4071
|
+
* Static version of the {@see toObject} method.
|
|
4072
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4073
|
+
* the JSPB instance for transitional soy proto support:
|
|
4074
|
+
* http://goto/soy-param-migration
|
|
4075
|
+
* @param {!proto.GetListUserResponse} msg The msg instance to transform.
|
|
4076
|
+
* @return {!Object}
|
|
4077
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4078
|
+
*/
|
|
4079
|
+
proto.GetListUserResponse.toObject = function(includeInstance, msg) {
|
|
4080
|
+
var f, obj = {
|
|
4081
|
+
usersList: jspb.Message.toObjectList(msg.getUsersList(),
|
|
4082
|
+
proto.UserResponse.toObject, includeInstance),
|
|
4083
|
+
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
4084
|
+
};
|
|
4085
|
+
|
|
4086
|
+
if (includeInstance) {
|
|
4087
|
+
obj.$jspbMessageInstance = msg;
|
|
4088
|
+
}
|
|
4089
|
+
return obj;
|
|
4090
|
+
};
|
|
4091
|
+
}
|
|
4092
|
+
|
|
4093
|
+
|
|
4094
|
+
/**
|
|
4095
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4096
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4097
|
+
* @return {!proto.GetListUserResponse}
|
|
4098
|
+
*/
|
|
4099
|
+
proto.GetListUserResponse.deserializeBinary = function(bytes) {
|
|
4100
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4101
|
+
var msg = new proto.GetListUserResponse;
|
|
4102
|
+
return proto.GetListUserResponse.deserializeBinaryFromReader(msg, reader);
|
|
4103
|
+
};
|
|
4104
|
+
|
|
4105
|
+
|
|
4106
|
+
/**
|
|
4107
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4108
|
+
* given reader into the given message object.
|
|
4109
|
+
* @param {!proto.GetListUserResponse} msg The message object to deserialize into.
|
|
4110
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4111
|
+
* @return {!proto.GetListUserResponse}
|
|
4112
|
+
*/
|
|
4113
|
+
proto.GetListUserResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
4114
|
+
while (reader.nextField()) {
|
|
4115
|
+
if (reader.isEndGroup()) {
|
|
4116
|
+
break;
|
|
4117
|
+
}
|
|
4118
|
+
var field = reader.getFieldNumber();
|
|
4119
|
+
switch (field) {
|
|
4120
|
+
case 1:
|
|
4121
|
+
var value = new proto.UserResponse;
|
|
4122
|
+
reader.readMessage(value,proto.UserResponse.deserializeBinaryFromReader);
|
|
4123
|
+
msg.addUsers(value);
|
|
4124
|
+
break;
|
|
4125
|
+
case 2:
|
|
4126
|
+
var value = new prisca_v1_global_meta_meta_pb.Meta;
|
|
4127
|
+
reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
|
|
4128
|
+
msg.setMeta(value);
|
|
4129
|
+
break;
|
|
4130
|
+
default:
|
|
4131
|
+
reader.skipField();
|
|
4132
|
+
break;
|
|
4133
|
+
}
|
|
4134
|
+
}
|
|
4135
|
+
return msg;
|
|
4136
|
+
};
|
|
4137
|
+
|
|
4138
|
+
|
|
4139
|
+
/**
|
|
4140
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4141
|
+
* @return {!Uint8Array}
|
|
4142
|
+
*/
|
|
4143
|
+
proto.GetListUserResponse.prototype.serializeBinary = function() {
|
|
4144
|
+
var writer = new jspb.BinaryWriter();
|
|
4145
|
+
proto.GetListUserResponse.serializeBinaryToWriter(this, writer);
|
|
4146
|
+
return writer.getResultBuffer();
|
|
4147
|
+
};
|
|
4148
|
+
|
|
4149
|
+
|
|
4150
|
+
/**
|
|
4151
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4152
|
+
* format), writing to the given BinaryWriter.
|
|
4153
|
+
* @param {!proto.GetListUserResponse} message
|
|
4154
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4155
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4156
|
+
*/
|
|
4157
|
+
proto.GetListUserResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4158
|
+
var f = undefined;
|
|
4159
|
+
f = message.getUsersList();
|
|
4160
|
+
if (f.length > 0) {
|
|
4161
|
+
writer.writeRepeatedMessage(
|
|
4162
|
+
1,
|
|
4163
|
+
f,
|
|
4164
|
+
proto.UserResponse.serializeBinaryToWriter
|
|
4165
|
+
);
|
|
4166
|
+
}
|
|
4167
|
+
f = message.getMeta();
|
|
4168
|
+
if (f != null) {
|
|
4169
|
+
writer.writeMessage(
|
|
4170
|
+
2,
|
|
4171
|
+
f,
|
|
4172
|
+
prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
|
|
4173
|
+
);
|
|
4174
|
+
}
|
|
4175
|
+
};
|
|
4176
|
+
|
|
4177
|
+
|
|
4178
|
+
/**
|
|
4179
|
+
* repeated UserResponse users = 1;
|
|
4180
|
+
* @return {!Array<!proto.UserResponse>}
|
|
4181
|
+
*/
|
|
4182
|
+
proto.GetListUserResponse.prototype.getUsersList = function() {
|
|
4183
|
+
return /** @type{!Array<!proto.UserResponse>} */ (
|
|
4184
|
+
jspb.Message.getRepeatedWrapperField(this, proto.UserResponse, 1));
|
|
4185
|
+
};
|
|
4186
|
+
|
|
4187
|
+
|
|
4188
|
+
/**
|
|
4189
|
+
* @param {!Array<!proto.UserResponse>} value
|
|
4190
|
+
* @return {!proto.GetListUserResponse} returns this
|
|
4191
|
+
*/
|
|
4192
|
+
proto.GetListUserResponse.prototype.setUsersList = function(value) {
|
|
4193
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
4194
|
+
};
|
|
4195
|
+
|
|
4196
|
+
|
|
4197
|
+
/**
|
|
4198
|
+
* @param {!proto.UserResponse=} opt_value
|
|
4199
|
+
* @param {number=} opt_index
|
|
4200
|
+
* @return {!proto.UserResponse}
|
|
4201
|
+
*/
|
|
4202
|
+
proto.GetListUserResponse.prototype.addUsers = function(opt_value, opt_index) {
|
|
4203
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.UserResponse, opt_index);
|
|
4204
|
+
};
|
|
4205
|
+
|
|
4206
|
+
|
|
4207
|
+
/**
|
|
4208
|
+
* Clears the list making it empty but non-null.
|
|
4209
|
+
* @return {!proto.GetListUserResponse} returns this
|
|
4210
|
+
*/
|
|
4211
|
+
proto.GetListUserResponse.prototype.clearUsersList = function() {
|
|
4212
|
+
return this.setUsersList([]);
|
|
4213
|
+
};
|
|
4214
|
+
|
|
4215
|
+
|
|
4216
|
+
/**
|
|
4217
|
+
* optional prisca.v1.global.meta.Meta meta = 2;
|
|
4218
|
+
* @return {?proto.prisca.v1.global.meta.Meta}
|
|
4219
|
+
*/
|
|
4220
|
+
proto.GetListUserResponse.prototype.getMeta = function() {
|
|
4221
|
+
return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
|
|
4222
|
+
jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
|
|
4223
|
+
};
|
|
4224
|
+
|
|
4225
|
+
|
|
4226
|
+
/**
|
|
4227
|
+
* @param {?proto.prisca.v1.global.meta.Meta|undefined} value
|
|
4228
|
+
* @return {!proto.GetListUserResponse} returns this
|
|
4229
|
+
*/
|
|
4230
|
+
proto.GetListUserResponse.prototype.setMeta = function(value) {
|
|
4231
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
4232
|
+
};
|
|
4233
|
+
|
|
4234
|
+
|
|
4235
|
+
/**
|
|
4236
|
+
* Clears the message field making it undefined.
|
|
4237
|
+
* @return {!proto.GetListUserResponse} returns this
|
|
4238
|
+
*/
|
|
4239
|
+
proto.GetListUserResponse.prototype.clearMeta = function() {
|
|
4240
|
+
return this.setMeta(undefined);
|
|
4241
|
+
};
|
|
4242
|
+
|
|
4243
|
+
|
|
4244
|
+
/**
|
|
4245
|
+
* Returns whether this field is set.
|
|
4246
|
+
* @return {boolean}
|
|
4247
|
+
*/
|
|
4248
|
+
proto.GetListUserResponse.prototype.hasMeta = function() {
|
|
4249
|
+
return jspb.Message.getField(this, 2) != null;
|
|
4250
|
+
};
|
|
4251
|
+
|
|
4252
|
+
|
|
3766
4253
|
goog.object.extend(exports, proto);
|