@aldiokta/protocgen 1.0.90 → 1.0.91

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.90",
3
+ "version": "1.0.91",
4
4
  "description": "protocgen js generated for products v2",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -897,7 +897,7 @@ if (goog.DEBUG && !COMPILED) {
897
897
  * @constructor
898
898
  */
899
899
  proto.GetRoleByIdResponse = function(opt_data) {
900
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
900
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetRoleByIdResponse.repeatedFields_, null);
901
901
  };
902
902
  goog.inherits(proto.GetRoleByIdResponse, jspb.Message);
903
903
  if (goog.DEBUG && !COMPILED) {
@@ -8637,6 +8637,13 @@ proto.DeleteRoleResponse.prototype.hasMeta = function() {
8637
8637
 
8638
8638
 
8639
8639
 
8640
+ /**
8641
+ * List of repeated fields within this message type.
8642
+ * @private {!Array<number>}
8643
+ * @const
8644
+ */
8645
+ proto.GetRoleByIdResponse.repeatedFields_ = [2];
8646
+
8640
8647
 
8641
8648
 
8642
8649
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -8669,6 +8676,8 @@ proto.GetRoleByIdResponse.prototype.toObject = function(opt_includeInstance) {
8669
8676
  proto.GetRoleByIdResponse.toObject = function(includeInstance, msg) {
8670
8677
  var f, obj = {
8671
8678
  role: (f = msg.getRole()) && proto.Role.toObject(includeInstance, f),
8679
+ rolePoliciesList: jspb.Message.toObjectList(msg.getRolePoliciesList(),
8680
+ proto.RolePolicy.toObject, includeInstance),
8672
8681
  meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
8673
8682
  };
8674
8683
 
@@ -8712,6 +8721,11 @@ proto.GetRoleByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
8712
8721
  msg.setRole(value);
8713
8722
  break;
8714
8723
  case 2:
8724
+ var value = new proto.RolePolicy;
8725
+ reader.readMessage(value,proto.RolePolicy.deserializeBinaryFromReader);
8726
+ msg.addRolePolicies(value);
8727
+ break;
8728
+ case 3:
8715
8729
  var value = new prisca_v1_global_meta_meta_pb.Meta;
8716
8730
  reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
8717
8731
  msg.setMeta(value);
@@ -8753,10 +8767,18 @@ proto.GetRoleByIdResponse.serializeBinaryToWriter = function(message, writer) {
8753
8767
  proto.Role.serializeBinaryToWriter
8754
8768
  );
8755
8769
  }
8770
+ f = message.getRolePoliciesList();
8771
+ if (f.length > 0) {
8772
+ writer.writeRepeatedMessage(
8773
+ 2,
8774
+ f,
8775
+ proto.RolePolicy.serializeBinaryToWriter
8776
+ );
8777
+ }
8756
8778
  f = message.getMeta();
8757
8779
  if (f != null) {
8758
8780
  writer.writeMessage(
8759
- 2,
8781
+ 3,
8760
8782
  f,
8761
8783
  prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
8762
8784
  );
@@ -8802,12 +8824,50 @@ proto.GetRoleByIdResponse.prototype.hasRole = function() {
8802
8824
 
8803
8825
 
8804
8826
  /**
8805
- * optional prisca.v1.global.meta.Meta meta = 2;
8827
+ * repeated RolePolicy role_policies = 2;
8828
+ * @return {!Array<!proto.RolePolicy>}
8829
+ */
8830
+ proto.GetRoleByIdResponse.prototype.getRolePoliciesList = function() {
8831
+ return /** @type{!Array<!proto.RolePolicy>} */ (
8832
+ jspb.Message.getRepeatedWrapperField(this, proto.RolePolicy, 2));
8833
+ };
8834
+
8835
+
8836
+ /**
8837
+ * @param {!Array<!proto.RolePolicy>} value
8838
+ * @return {!proto.GetRoleByIdResponse} returns this
8839
+ */
8840
+ proto.GetRoleByIdResponse.prototype.setRolePoliciesList = function(value) {
8841
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
8842
+ };
8843
+
8844
+
8845
+ /**
8846
+ * @param {!proto.RolePolicy=} opt_value
8847
+ * @param {number=} opt_index
8848
+ * @return {!proto.RolePolicy}
8849
+ */
8850
+ proto.GetRoleByIdResponse.prototype.addRolePolicies = function(opt_value, opt_index) {
8851
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.RolePolicy, opt_index);
8852
+ };
8853
+
8854
+
8855
+ /**
8856
+ * Clears the list making it empty but non-null.
8857
+ * @return {!proto.GetRoleByIdResponse} returns this
8858
+ */
8859
+ proto.GetRoleByIdResponse.prototype.clearRolePoliciesList = function() {
8860
+ return this.setRolePoliciesList([]);
8861
+ };
8862
+
8863
+
8864
+ /**
8865
+ * optional prisca.v1.global.meta.Meta meta = 3;
8806
8866
  * @return {?proto.prisca.v1.global.meta.Meta}
8807
8867
  */
8808
8868
  proto.GetRoleByIdResponse.prototype.getMeta = function() {
8809
8869
  return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
8810
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
8870
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 3));
8811
8871
  };
8812
8872
 
8813
8873
 
@@ -8816,7 +8876,7 @@ proto.GetRoleByIdResponse.prototype.getMeta = function() {
8816
8876
  * @return {!proto.GetRoleByIdResponse} returns this
8817
8877
  */
8818
8878
  proto.GetRoleByIdResponse.prototype.setMeta = function(value) {
8819
- return jspb.Message.setWrapperField(this, 2, value);
8879
+ return jspb.Message.setWrapperField(this, 3, value);
8820
8880
  };
8821
8881
 
8822
8882
 
@@ -8834,7 +8894,7 @@ proto.GetRoleByIdResponse.prototype.clearMeta = function() {
8834
8894
  * @return {boolean}
8835
8895
  */
8836
8896
  proto.GetRoleByIdResponse.prototype.hasMeta = function() {
8837
- return jspb.Message.getField(this, 2) != null;
8897
+ return jspb.Message.getField(this, 3) != null;
8838
8898
  };
8839
8899
 
8840
8900