@aldiokta/protocgen 1.0.86 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aldiokta/protocgen",
3
- "version": "1.0.86",
3
+ "version": "1.0.88",
4
4
  "description": "protocgen js generated for products v2",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -687,7 +687,7 @@ if (goog.DEBUG && !COMPILED) {
687
687
  * @constructor
688
688
  */
689
689
  proto.CreateRoleRequest = function(opt_data) {
690
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
690
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.CreateRoleRequest.repeatedFields_, null);
691
691
  };
692
692
  goog.inherits(proto.CreateRoleRequest, jspb.Message);
693
693
  if (goog.DEBUG && !COMPILED) {
@@ -729,7 +729,7 @@ if (goog.DEBUG && !COMPILED) {
729
729
  * @constructor
730
730
  */
731
731
  proto.UpdateRoleRequest = function(opt_data) {
732
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
732
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.UpdateRoleRequest.repeatedFields_, null);
733
733
  };
734
734
  goog.inherits(proto.UpdateRoleRequest, jspb.Message);
735
735
  if (goog.DEBUG && !COMPILED) {
@@ -813,7 +813,7 @@ if (goog.DEBUG && !COMPILED) {
813
813
  * @constructor
814
814
  */
815
815
  proto.CreateRoleResponse = function(opt_data) {
816
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
816
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.CreateRoleResponse.repeatedFields_, null);
817
817
  };
818
818
  goog.inherits(proto.CreateRoleResponse, jspb.Message);
819
819
  if (goog.DEBUG && !COMPILED) {
@@ -855,7 +855,7 @@ if (goog.DEBUG && !COMPILED) {
855
855
  * @constructor
856
856
  */
857
857
  proto.UpdateRoleResponse = function(opt_data) {
858
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
858
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.UpdateRoleResponse.repeatedFields_, null);
859
859
  };
860
860
  goog.inherits(proto.UpdateRoleResponse, jspb.Message);
861
861
  if (goog.DEBUG && !COMPILED) {
@@ -6629,6 +6629,13 @@ proto.GetResourceByActionResponse.prototype.hasMeta = function() {
6629
6629
 
6630
6630
 
6631
6631
 
6632
+ /**
6633
+ * List of repeated fields within this message type.
6634
+ * @private {!Array<number>}
6635
+ * @const
6636
+ */
6637
+ proto.CreateRoleRequest.repeatedFields_ = [2];
6638
+
6632
6639
 
6633
6640
 
6634
6641
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -6660,7 +6667,8 @@ proto.CreateRoleRequest.prototype.toObject = function(opt_includeInstance) {
6660
6667
  */
6661
6668
  proto.CreateRoleRequest.toObject = function(includeInstance, msg) {
6662
6669
  var f, obj = {
6663
- role: (f = msg.getRole()) && proto.BaseRole.toObject(includeInstance, f)
6670
+ role: (f = msg.getRole()) && proto.BaseRole.toObject(includeInstance, f),
6671
+ policyReferencesIdList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
6664
6672
  };
6665
6673
 
6666
6674
  if (includeInstance) {
@@ -6702,6 +6710,10 @@ proto.CreateRoleRequest.deserializeBinaryFromReader = function(msg, reader) {
6702
6710
  reader.readMessage(value,proto.BaseRole.deserializeBinaryFromReader);
6703
6711
  msg.setRole(value);
6704
6712
  break;
6713
+ case 2:
6714
+ var value = /** @type {string} */ (reader.readString());
6715
+ msg.addPolicyReferencesId(value);
6716
+ break;
6705
6717
  default:
6706
6718
  reader.skipField();
6707
6719
  break;
@@ -6739,6 +6751,13 @@ proto.CreateRoleRequest.serializeBinaryToWriter = function(message, writer) {
6739
6751
  proto.BaseRole.serializeBinaryToWriter
6740
6752
  );
6741
6753
  }
6754
+ f = message.getPolicyReferencesIdList();
6755
+ if (f.length > 0) {
6756
+ writer.writeRepeatedString(
6757
+ 2,
6758
+ f
6759
+ );
6760
+ }
6742
6761
  };
6743
6762
 
6744
6763
 
@@ -6779,6 +6798,43 @@ proto.CreateRoleRequest.prototype.hasRole = function() {
6779
6798
  };
6780
6799
 
6781
6800
 
6801
+ /**
6802
+ * repeated string policy_references_id = 2;
6803
+ * @return {!Array<string>}
6804
+ */
6805
+ proto.CreateRoleRequest.prototype.getPolicyReferencesIdList = function() {
6806
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
6807
+ };
6808
+
6809
+
6810
+ /**
6811
+ * @param {!Array<string>} value
6812
+ * @return {!proto.CreateRoleRequest} returns this
6813
+ */
6814
+ proto.CreateRoleRequest.prototype.setPolicyReferencesIdList = function(value) {
6815
+ return jspb.Message.setField(this, 2, value || []);
6816
+ };
6817
+
6818
+
6819
+ /**
6820
+ * @param {string} value
6821
+ * @param {number=} opt_index
6822
+ * @return {!proto.CreateRoleRequest} returns this
6823
+ */
6824
+ proto.CreateRoleRequest.prototype.addPolicyReferencesId = function(value, opt_index) {
6825
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
6826
+ };
6827
+
6828
+
6829
+ /**
6830
+ * Clears the list making it empty but non-null.
6831
+ * @return {!proto.CreateRoleRequest} returns this
6832
+ */
6833
+ proto.CreateRoleRequest.prototype.clearPolicyReferencesIdList = function() {
6834
+ return this.setPolicyReferencesIdList([]);
6835
+ };
6836
+
6837
+
6782
6838
 
6783
6839
 
6784
6840
 
@@ -6982,6 +7038,13 @@ proto.GetRoleListRequest.prototype.hasQuery = function() {
6982
7038
 
6983
7039
 
6984
7040
 
7041
+ /**
7042
+ * List of repeated fields within this message type.
7043
+ * @private {!Array<number>}
7044
+ * @const
7045
+ */
7046
+ proto.UpdateRoleRequest.repeatedFields_ = [2];
7047
+
6985
7048
 
6986
7049
 
6987
7050
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -7014,7 +7077,8 @@ proto.UpdateRoleRequest.prototype.toObject = function(opt_includeInstance) {
7014
7077
  proto.UpdateRoleRequest.toObject = function(includeInstance, msg) {
7015
7078
  var f, obj = {
7016
7079
  role: (f = msg.getRole()) && proto.Role.toObject(includeInstance, f),
7017
- referencesId: jspb.Message.getFieldWithDefault(msg, 2, "")
7080
+ policyReferencesIdList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
7081
+ referencesId: jspb.Message.getFieldWithDefault(msg, 3, "")
7018
7082
  };
7019
7083
 
7020
7084
  if (includeInstance) {
@@ -7057,6 +7121,10 @@ proto.UpdateRoleRequest.deserializeBinaryFromReader = function(msg, reader) {
7057
7121
  msg.setRole(value);
7058
7122
  break;
7059
7123
  case 2:
7124
+ var value = /** @type {string} */ (reader.readString());
7125
+ msg.addPolicyReferencesId(value);
7126
+ break;
7127
+ case 3:
7060
7128
  var value = /** @type {string} */ (reader.readString());
7061
7129
  msg.setReferencesId(value);
7062
7130
  break;
@@ -7097,10 +7165,17 @@ proto.UpdateRoleRequest.serializeBinaryToWriter = function(message, writer) {
7097
7165
  proto.Role.serializeBinaryToWriter
7098
7166
  );
7099
7167
  }
7168
+ f = message.getPolicyReferencesIdList();
7169
+ if (f.length > 0) {
7170
+ writer.writeRepeatedString(
7171
+ 2,
7172
+ f
7173
+ );
7174
+ }
7100
7175
  f = message.getReferencesId();
7101
7176
  if (f.length > 0) {
7102
7177
  writer.writeString(
7103
- 2,
7178
+ 3,
7104
7179
  f
7105
7180
  );
7106
7181
  }
@@ -7145,11 +7220,48 @@ proto.UpdateRoleRequest.prototype.hasRole = function() {
7145
7220
 
7146
7221
 
7147
7222
  /**
7148
- * optional string references_id = 2;
7223
+ * repeated string policy_references_id = 2;
7224
+ * @return {!Array<string>}
7225
+ */
7226
+ proto.UpdateRoleRequest.prototype.getPolicyReferencesIdList = function() {
7227
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
7228
+ };
7229
+
7230
+
7231
+ /**
7232
+ * @param {!Array<string>} value
7233
+ * @return {!proto.UpdateRoleRequest} returns this
7234
+ */
7235
+ proto.UpdateRoleRequest.prototype.setPolicyReferencesIdList = function(value) {
7236
+ return jspb.Message.setField(this, 2, value || []);
7237
+ };
7238
+
7239
+
7240
+ /**
7241
+ * @param {string} value
7242
+ * @param {number=} opt_index
7243
+ * @return {!proto.UpdateRoleRequest} returns this
7244
+ */
7245
+ proto.UpdateRoleRequest.prototype.addPolicyReferencesId = function(value, opt_index) {
7246
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
7247
+ };
7248
+
7249
+
7250
+ /**
7251
+ * Clears the list making it empty but non-null.
7252
+ * @return {!proto.UpdateRoleRequest} returns this
7253
+ */
7254
+ proto.UpdateRoleRequest.prototype.clearPolicyReferencesIdList = function() {
7255
+ return this.setPolicyReferencesIdList([]);
7256
+ };
7257
+
7258
+
7259
+ /**
7260
+ * optional string references_id = 3;
7149
7261
  * @return {string}
7150
7262
  */
7151
7263
  proto.UpdateRoleRequest.prototype.getReferencesId = function() {
7152
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
7264
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
7153
7265
  };
7154
7266
 
7155
7267
 
@@ -7158,7 +7270,7 @@ proto.UpdateRoleRequest.prototype.getReferencesId = function() {
7158
7270
  * @return {!proto.UpdateRoleRequest} returns this
7159
7271
  */
7160
7272
  proto.UpdateRoleRequest.prototype.setReferencesId = function(value) {
7161
- return jspb.Message.setProto3StringField(this, 2, value);
7273
+ return jspb.Message.setProto3StringField(this, 3, value);
7162
7274
  };
7163
7275
 
7164
7276
 
@@ -7609,6 +7721,13 @@ proto.AssignRoleToUserRequest.prototype.setUserReferencesId = function(value) {
7609
7721
 
7610
7722
 
7611
7723
 
7724
+ /**
7725
+ * List of repeated fields within this message type.
7726
+ * @private {!Array<number>}
7727
+ * @const
7728
+ */
7729
+ proto.CreateRoleResponse.repeatedFields_ = [2];
7730
+
7612
7731
 
7613
7732
 
7614
7733
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -7641,6 +7760,8 @@ proto.CreateRoleResponse.prototype.toObject = function(opt_includeInstance) {
7641
7760
  proto.CreateRoleResponse.toObject = function(includeInstance, msg) {
7642
7761
  var f, obj = {
7643
7762
  role: (f = msg.getRole()) && proto.Role.toObject(includeInstance, f),
7763
+ policyList: jspb.Message.toObjectList(msg.getPolicyList(),
7764
+ proto.Policy.toObject, includeInstance),
7644
7765
  meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
7645
7766
  };
7646
7767
 
@@ -7684,6 +7805,11 @@ proto.CreateRoleResponse.deserializeBinaryFromReader = function(msg, reader) {
7684
7805
  msg.setRole(value);
7685
7806
  break;
7686
7807
  case 2:
7808
+ var value = new proto.Policy;
7809
+ reader.readMessage(value,proto.Policy.deserializeBinaryFromReader);
7810
+ msg.addPolicy(value);
7811
+ break;
7812
+ case 3:
7687
7813
  var value = new prisca_v1_global_meta_meta_pb.Meta;
7688
7814
  reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
7689
7815
  msg.setMeta(value);
@@ -7725,10 +7851,18 @@ proto.CreateRoleResponse.serializeBinaryToWriter = function(message, writer) {
7725
7851
  proto.Role.serializeBinaryToWriter
7726
7852
  );
7727
7853
  }
7854
+ f = message.getPolicyList();
7855
+ if (f.length > 0) {
7856
+ writer.writeRepeatedMessage(
7857
+ 2,
7858
+ f,
7859
+ proto.Policy.serializeBinaryToWriter
7860
+ );
7861
+ }
7728
7862
  f = message.getMeta();
7729
7863
  if (f != null) {
7730
7864
  writer.writeMessage(
7731
- 2,
7865
+ 3,
7732
7866
  f,
7733
7867
  prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
7734
7868
  );
@@ -7774,12 +7908,50 @@ proto.CreateRoleResponse.prototype.hasRole = function() {
7774
7908
 
7775
7909
 
7776
7910
  /**
7777
- * optional prisca.v1.global.meta.Meta meta = 2;
7911
+ * repeated Policy policy = 2;
7912
+ * @return {!Array<!proto.Policy>}
7913
+ */
7914
+ proto.CreateRoleResponse.prototype.getPolicyList = function() {
7915
+ return /** @type{!Array<!proto.Policy>} */ (
7916
+ jspb.Message.getRepeatedWrapperField(this, proto.Policy, 2));
7917
+ };
7918
+
7919
+
7920
+ /**
7921
+ * @param {!Array<!proto.Policy>} value
7922
+ * @return {!proto.CreateRoleResponse} returns this
7923
+ */
7924
+ proto.CreateRoleResponse.prototype.setPolicyList = function(value) {
7925
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
7926
+ };
7927
+
7928
+
7929
+ /**
7930
+ * @param {!proto.Policy=} opt_value
7931
+ * @param {number=} opt_index
7932
+ * @return {!proto.Policy}
7933
+ */
7934
+ proto.CreateRoleResponse.prototype.addPolicy = function(opt_value, opt_index) {
7935
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.Policy, opt_index);
7936
+ };
7937
+
7938
+
7939
+ /**
7940
+ * Clears the list making it empty but non-null.
7941
+ * @return {!proto.CreateRoleResponse} returns this
7942
+ */
7943
+ proto.CreateRoleResponse.prototype.clearPolicyList = function() {
7944
+ return this.setPolicyList([]);
7945
+ };
7946
+
7947
+
7948
+ /**
7949
+ * optional prisca.v1.global.meta.Meta meta = 3;
7778
7950
  * @return {?proto.prisca.v1.global.meta.Meta}
7779
7951
  */
7780
7952
  proto.CreateRoleResponse.prototype.getMeta = function() {
7781
7953
  return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
7782
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
7954
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 3));
7783
7955
  };
7784
7956
 
7785
7957
 
@@ -7788,7 +7960,7 @@ proto.CreateRoleResponse.prototype.getMeta = function() {
7788
7960
  * @return {!proto.CreateRoleResponse} returns this
7789
7961
  */
7790
7962
  proto.CreateRoleResponse.prototype.setMeta = function(value) {
7791
- return jspb.Message.setWrapperField(this, 2, value);
7963
+ return jspb.Message.setWrapperField(this, 3, value);
7792
7964
  };
7793
7965
 
7794
7966
 
@@ -7806,7 +7978,7 @@ proto.CreateRoleResponse.prototype.clearMeta = function() {
7806
7978
  * @return {boolean}
7807
7979
  */
7808
7980
  proto.CreateRoleResponse.prototype.hasMeta = function() {
7809
- return jspb.Message.getField(this, 2) != null;
7981
+ return jspb.Message.getField(this, 3) != null;
7810
7982
  };
7811
7983
 
7812
7984
 
@@ -8022,6 +8194,13 @@ proto.GetRoleListResponse.prototype.hasMeta = function() {
8022
8194
 
8023
8195
 
8024
8196
 
8197
+ /**
8198
+ * List of repeated fields within this message type.
8199
+ * @private {!Array<number>}
8200
+ * @const
8201
+ */
8202
+ proto.UpdateRoleResponse.repeatedFields_ = [2];
8203
+
8025
8204
 
8026
8205
 
8027
8206
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -8054,6 +8233,8 @@ proto.UpdateRoleResponse.prototype.toObject = function(opt_includeInstance) {
8054
8233
  proto.UpdateRoleResponse.toObject = function(includeInstance, msg) {
8055
8234
  var f, obj = {
8056
8235
  role: (f = msg.getRole()) && proto.Role.toObject(includeInstance, f),
8236
+ policyList: jspb.Message.toObjectList(msg.getPolicyList(),
8237
+ proto.Policy.toObject, includeInstance),
8057
8238
  meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
8058
8239
  };
8059
8240
 
@@ -8097,6 +8278,11 @@ proto.UpdateRoleResponse.deserializeBinaryFromReader = function(msg, reader) {
8097
8278
  msg.setRole(value);
8098
8279
  break;
8099
8280
  case 2:
8281
+ var value = new proto.Policy;
8282
+ reader.readMessage(value,proto.Policy.deserializeBinaryFromReader);
8283
+ msg.addPolicy(value);
8284
+ break;
8285
+ case 3:
8100
8286
  var value = new prisca_v1_global_meta_meta_pb.Meta;
8101
8287
  reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
8102
8288
  msg.setMeta(value);
@@ -8138,10 +8324,18 @@ proto.UpdateRoleResponse.serializeBinaryToWriter = function(message, writer) {
8138
8324
  proto.Role.serializeBinaryToWriter
8139
8325
  );
8140
8326
  }
8327
+ f = message.getPolicyList();
8328
+ if (f.length > 0) {
8329
+ writer.writeRepeatedMessage(
8330
+ 2,
8331
+ f,
8332
+ proto.Policy.serializeBinaryToWriter
8333
+ );
8334
+ }
8141
8335
  f = message.getMeta();
8142
8336
  if (f != null) {
8143
8337
  writer.writeMessage(
8144
- 2,
8338
+ 3,
8145
8339
  f,
8146
8340
  prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
8147
8341
  );
@@ -8187,12 +8381,50 @@ proto.UpdateRoleResponse.prototype.hasRole = function() {
8187
8381
 
8188
8382
 
8189
8383
  /**
8190
- * optional prisca.v1.global.meta.Meta meta = 2;
8384
+ * repeated Policy policy = 2;
8385
+ * @return {!Array<!proto.Policy>}
8386
+ */
8387
+ proto.UpdateRoleResponse.prototype.getPolicyList = function() {
8388
+ return /** @type{!Array<!proto.Policy>} */ (
8389
+ jspb.Message.getRepeatedWrapperField(this, proto.Policy, 2));
8390
+ };
8391
+
8392
+
8393
+ /**
8394
+ * @param {!Array<!proto.Policy>} value
8395
+ * @return {!proto.UpdateRoleResponse} returns this
8396
+ */
8397
+ proto.UpdateRoleResponse.prototype.setPolicyList = function(value) {
8398
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
8399
+ };
8400
+
8401
+
8402
+ /**
8403
+ * @param {!proto.Policy=} opt_value
8404
+ * @param {number=} opt_index
8405
+ * @return {!proto.Policy}
8406
+ */
8407
+ proto.UpdateRoleResponse.prototype.addPolicy = function(opt_value, opt_index) {
8408
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.Policy, opt_index);
8409
+ };
8410
+
8411
+
8412
+ /**
8413
+ * Clears the list making it empty but non-null.
8414
+ * @return {!proto.UpdateRoleResponse} returns this
8415
+ */
8416
+ proto.UpdateRoleResponse.prototype.clearPolicyList = function() {
8417
+ return this.setPolicyList([]);
8418
+ };
8419
+
8420
+
8421
+ /**
8422
+ * optional prisca.v1.global.meta.Meta meta = 3;
8191
8423
  * @return {?proto.prisca.v1.global.meta.Meta}
8192
8424
  */
8193
8425
  proto.UpdateRoleResponse.prototype.getMeta = function() {
8194
8426
  return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
8195
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
8427
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 3));
8196
8428
  };
8197
8429
 
8198
8430
 
@@ -8201,7 +8433,7 @@ proto.UpdateRoleResponse.prototype.getMeta = function() {
8201
8433
  * @return {!proto.UpdateRoleResponse} returns this
8202
8434
  */
8203
8435
  proto.UpdateRoleResponse.prototype.setMeta = function(value) {
8204
- return jspb.Message.setWrapperField(this, 2, value);
8436
+ return jspb.Message.setWrapperField(this, 3, value);
8205
8437
  };
8206
8438
 
8207
8439
 
@@ -8219,7 +8451,7 @@ proto.UpdateRoleResponse.prototype.clearMeta = function() {
8219
8451
  * @return {boolean}
8220
8452
  */
8221
8453
  proto.UpdateRoleResponse.prototype.hasMeta = function() {
8222
- return jspb.Message.getField(this, 2) != null;
8454
+ return jspb.Message.getField(this, 3) != null;
8223
8455
  };
8224
8456
 
8225
8457
 
@@ -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);