@aldiokta/protocgen 1.1.57 → 1.1.59

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.1.57",
3
+ "version": "1.1.59",
4
4
  "description": "protocgen js generated for products v2",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1578,7 +1578,7 @@ proto.PoliciesResponse.prototype.setUpdatedAt = function(value) {
1578
1578
  * @private {!Array<number>}
1579
1579
  * @const
1580
1580
  */
1581
- proto.Statement.repeatedFields_ = [2];
1581
+ proto.Statement.repeatedFields_ = [2,3];
1582
1582
 
1583
1583
 
1584
1584
 
@@ -1614,7 +1614,8 @@ proto.Statement.toObject = function(includeInstance, msg) {
1614
1614
  name: jspb.Message.getFieldWithDefault(msg, 1, ""),
1615
1615
  actionsList: jspb.Message.toObjectList(msg.getActionsList(),
1616
1616
  proto.Action.toObject, includeInstance),
1617
- resources: (f = msg.getResources()) && proto.Resource.toObject(includeInstance, f)
1617
+ resourceList: jspb.Message.toObjectList(msg.getResourceList(),
1618
+ proto.ResourceFilter.toObject, includeInstance)
1618
1619
  };
1619
1620
 
1620
1621
  if (includeInstance) {
@@ -1661,9 +1662,9 @@ proto.Statement.deserializeBinaryFromReader = function(msg, reader) {
1661
1662
  msg.addActions(value);
1662
1663
  break;
1663
1664
  case 3:
1664
- var value = new proto.Resource;
1665
- reader.readMessage(value,proto.Resource.deserializeBinaryFromReader);
1666
- msg.setResources(value);
1665
+ var value = new proto.ResourceFilter;
1666
+ reader.readMessage(value,proto.ResourceFilter.deserializeBinaryFromReader);
1667
+ msg.addResource(value);
1667
1668
  break;
1668
1669
  default:
1669
1670
  reader.skipField();
@@ -1709,12 +1710,12 @@ proto.Statement.serializeBinaryToWriter = function(message, writer) {
1709
1710
  proto.Action.serializeBinaryToWriter
1710
1711
  );
1711
1712
  }
1712
- f = message.getResources();
1713
- if (f != null) {
1714
- writer.writeMessage(
1713
+ f = message.getResourceList();
1714
+ if (f.length > 0) {
1715
+ writer.writeRepeatedMessage(
1715
1716
  3,
1716
1717
  f,
1717
- proto.Resource.serializeBinaryToWriter
1718
+ proto.ResourceFilter.serializeBinaryToWriter
1718
1719
  );
1719
1720
  }
1720
1721
  };
@@ -1777,39 +1778,40 @@ proto.Statement.prototype.clearActionsList = function() {
1777
1778
 
1778
1779
 
1779
1780
  /**
1780
- * optional Resource resources = 3;
1781
- * @return {?proto.Resource}
1781
+ * repeated ResourceFilter resource = 3;
1782
+ * @return {!Array<!proto.ResourceFilter>}
1782
1783
  */
1783
- proto.Statement.prototype.getResources = function() {
1784
- return /** @type{?proto.Resource} */ (
1785
- jspb.Message.getWrapperField(this, proto.Resource, 3));
1784
+ proto.Statement.prototype.getResourceList = function() {
1785
+ return /** @type{!Array<!proto.ResourceFilter>} */ (
1786
+ jspb.Message.getRepeatedWrapperField(this, proto.ResourceFilter, 3));
1786
1787
  };
1787
1788
 
1788
1789
 
1789
1790
  /**
1790
- * @param {?proto.Resource|undefined} value
1791
+ * @param {!Array<!proto.ResourceFilter>} value
1791
1792
  * @return {!proto.Statement} returns this
1792
1793
  */
1793
- proto.Statement.prototype.setResources = function(value) {
1794
- return jspb.Message.setWrapperField(this, 3, value);
1794
+ proto.Statement.prototype.setResourceList = function(value) {
1795
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
1795
1796
  };
1796
1797
 
1797
1798
 
1798
1799
  /**
1799
- * Clears the message field making it undefined.
1800
- * @return {!proto.Statement} returns this
1800
+ * @param {!proto.ResourceFilter=} opt_value
1801
+ * @param {number=} opt_index
1802
+ * @return {!proto.ResourceFilter}
1801
1803
  */
1802
- proto.Statement.prototype.clearResources = function() {
1803
- return this.setResources(undefined);
1804
+ proto.Statement.prototype.addResource = function(opt_value, opt_index) {
1805
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.ResourceFilter, opt_index);
1804
1806
  };
1805
1807
 
1806
1808
 
1807
1809
  /**
1808
- * Returns whether this field is set.
1809
- * @return {boolean}
1810
+ * Clears the list making it empty but non-null.
1811
+ * @return {!proto.Statement} returns this
1810
1812
  */
1811
- proto.Statement.prototype.hasResources = function() {
1812
- return jspb.Message.getField(this, 3) != null;
1813
+ proto.Statement.prototype.clearResourceList = function() {
1814
+ return this.setResourceList([]);
1813
1815
  };
1814
1816
 
1815
1817
 
@@ -1855,7 +1857,7 @@ proto.BasePolicy.toObject = function(includeInstance, msg) {
1855
1857
  id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1856
1858
  names: jspb.Message.getFieldWithDefault(msg, 2, ""),
1857
1859
  description: jspb.Message.getFieldWithDefault(msg, 3, ""),
1858
- policiesActionList: jspb.Message.toObjectList(msg.getPoliciesActionList(),
1860
+ policiesItemsList: jspb.Message.toObjectList(msg.getPoliciesItemsList(),
1859
1861
  proto.PolicyAction.toObject, includeInstance)
1860
1862
  };
1861
1863
 
@@ -1908,7 +1910,7 @@ proto.BasePolicy.deserializeBinaryFromReader = function(msg, reader) {
1908
1910
  case 4:
1909
1911
  var value = new proto.PolicyAction;
1910
1912
  reader.readMessage(value,proto.PolicyAction.deserializeBinaryFromReader);
1911
- msg.addPoliciesAction(value);
1913
+ msg.addPoliciesItems(value);
1912
1914
  break;
1913
1915
  default:
1914
1916
  reader.skipField();
@@ -1960,7 +1962,7 @@ proto.BasePolicy.serializeBinaryToWriter = function(message, writer) {
1960
1962
  f
1961
1963
  );
1962
1964
  }
1963
- f = message.getPoliciesActionList();
1965
+ f = message.getPoliciesItemsList();
1964
1966
  if (f.length > 0) {
1965
1967
  writer.writeRepeatedMessage(
1966
1968
  4,
@@ -2026,10 +2028,10 @@ proto.BasePolicy.prototype.setDescription = function(value) {
2026
2028
 
2027
2029
 
2028
2030
  /**
2029
- * repeated PolicyAction policies_action = 4;
2031
+ * repeated PolicyAction policies_items = 4;
2030
2032
  * @return {!Array<!proto.PolicyAction>}
2031
2033
  */
2032
- proto.BasePolicy.prototype.getPoliciesActionList = function() {
2034
+ proto.BasePolicy.prototype.getPoliciesItemsList = function() {
2033
2035
  return /** @type{!Array<!proto.PolicyAction>} */ (
2034
2036
  jspb.Message.getRepeatedWrapperField(this, proto.PolicyAction, 4));
2035
2037
  };
@@ -2039,7 +2041,7 @@ proto.BasePolicy.prototype.getPoliciesActionList = function() {
2039
2041
  * @param {!Array<!proto.PolicyAction>} value
2040
2042
  * @return {!proto.BasePolicy} returns this
2041
2043
  */
2042
- proto.BasePolicy.prototype.setPoliciesActionList = function(value) {
2044
+ proto.BasePolicy.prototype.setPoliciesItemsList = function(value) {
2043
2045
  return jspb.Message.setRepeatedWrapperField(this, 4, value);
2044
2046
  };
2045
2047
 
@@ -2049,7 +2051,7 @@ proto.BasePolicy.prototype.setPoliciesActionList = function(value) {
2049
2051
  * @param {number=} opt_index
2050
2052
  * @return {!proto.PolicyAction}
2051
2053
  */
2052
- proto.BasePolicy.prototype.addPoliciesAction = function(opt_value, opt_index) {
2054
+ proto.BasePolicy.prototype.addPoliciesItems = function(opt_value, opt_index) {
2053
2055
  return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.PolicyAction, opt_index);
2054
2056
  };
2055
2057
 
@@ -2058,8 +2060,8 @@ proto.BasePolicy.prototype.addPoliciesAction = function(opt_value, opt_index) {
2058
2060
  * Clears the list making it empty but non-null.
2059
2061
  * @return {!proto.BasePolicy} returns this
2060
2062
  */
2061
- proto.BasePolicy.prototype.clearPoliciesActionList = function() {
2062
- return this.setPoliciesActionList([]);
2063
+ proto.BasePolicy.prototype.clearPoliciesItemsList = function() {
2064
+ return this.setPoliciesItemsList([]);
2063
2065
  };
2064
2066
 
2065
2067
 
@@ -2301,7 +2303,7 @@ updatedAt: jspb.Message.getFieldWithDefault(msg, 6, ""),
2301
2303
  createdBy: jspb.Message.getFieldWithDefault(msg, 7, ""),
2302
2304
  updatedBy: jspb.Message.getFieldWithDefault(msg, 8, ""),
2303
2305
  companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 9, ""),
2304
- policiesActionsList: jspb.Message.toObjectList(msg.getPoliciesActionsList(),
2306
+ policiesItemsList: jspb.Message.toObjectList(msg.getPoliciesItemsList(),
2305
2307
  proto.PolicyAction.toObject, includeInstance)
2306
2308
  };
2307
2309
 
@@ -2378,7 +2380,7 @@ proto.Policy.deserializeBinaryFromReader = function(msg, reader) {
2378
2380
  case 10:
2379
2381
  var value = new proto.PolicyAction;
2380
2382
  reader.readMessage(value,proto.PolicyAction.deserializeBinaryFromReader);
2381
- msg.addPoliciesActions(value);
2383
+ msg.addPoliciesItems(value);
2382
2384
  break;
2383
2385
  default:
2384
2386
  reader.skipField();
@@ -2472,7 +2474,7 @@ proto.Policy.serializeBinaryToWriter = function(message, writer) {
2472
2474
  f
2473
2475
  );
2474
2476
  }
2475
- f = message.getPoliciesActionsList();
2477
+ f = message.getPoliciesItemsList();
2476
2478
  if (f.length > 0) {
2477
2479
  writer.writeRepeatedMessage(
2478
2480
  10,
@@ -2646,10 +2648,10 @@ proto.Policy.prototype.setCompaniesReferencesId = function(value) {
2646
2648
 
2647
2649
 
2648
2650
  /**
2649
- * repeated PolicyAction policies_actions = 10;
2651
+ * repeated PolicyAction policies_items = 10;
2650
2652
  * @return {!Array<!proto.PolicyAction>}
2651
2653
  */
2652
- proto.Policy.prototype.getPoliciesActionsList = function() {
2654
+ proto.Policy.prototype.getPoliciesItemsList = function() {
2653
2655
  return /** @type{!Array<!proto.PolicyAction>} */ (
2654
2656
  jspb.Message.getRepeatedWrapperField(this, proto.PolicyAction, 10));
2655
2657
  };
@@ -2659,7 +2661,7 @@ proto.Policy.prototype.getPoliciesActionsList = function() {
2659
2661
  * @param {!Array<!proto.PolicyAction>} value
2660
2662
  * @return {!proto.Policy} returns this
2661
2663
  */
2662
- proto.Policy.prototype.setPoliciesActionsList = function(value) {
2664
+ proto.Policy.prototype.setPoliciesItemsList = function(value) {
2663
2665
  return jspb.Message.setRepeatedWrapperField(this, 10, value);
2664
2666
  };
2665
2667
 
@@ -2669,7 +2671,7 @@ proto.Policy.prototype.setPoliciesActionsList = function(value) {
2669
2671
  * @param {number=} opt_index
2670
2672
  * @return {!proto.PolicyAction}
2671
2673
  */
2672
- proto.Policy.prototype.addPoliciesActions = function(opt_value, opt_index) {
2674
+ proto.Policy.prototype.addPoliciesItems = function(opt_value, opt_index) {
2673
2675
  return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.PolicyAction, opt_index);
2674
2676
  };
2675
2677
 
@@ -2678,8 +2680,8 @@ proto.Policy.prototype.addPoliciesActions = function(opt_value, opt_index) {
2678
2680
  * Clears the list making it empty but non-null.
2679
2681
  * @return {!proto.Policy} returns this
2680
2682
  */
2681
- proto.Policy.prototype.clearPoliciesActionsList = function() {
2682
- return this.setPoliciesActionsList([]);
2683
+ proto.Policy.prototype.clearPoliciesItemsList = function() {
2684
+ return this.setPoliciesItemsList([]);
2683
2685
  };
2684
2686
 
2685
2687
 
@@ -2689,7 +2691,7 @@ proto.Policy.prototype.clearPoliciesActionsList = function() {
2689
2691
  * @private {!Array<number>}
2690
2692
  * @const
2691
2693
  */
2692
- proto.PolicyAction.repeatedFields_ = [11];
2694
+ proto.PolicyAction.repeatedFields_ = [11,12];
2693
2695
 
2694
2696
 
2695
2697
 
@@ -2734,7 +2736,8 @@ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 9, ""),
2734
2736
  resourceReferencesId: jspb.Message.getFieldWithDefault(msg, 10, ""),
2735
2737
  actionsList: jspb.Message.toObjectList(msg.getActionsList(),
2736
2738
  proto.Action.toObject, includeInstance),
2737
- resource: (f = msg.getResource()) && proto.Resource.toObject(includeInstance, f)
2739
+ resourceList: jspb.Message.toObjectList(msg.getResourceList(),
2740
+ proto.ResourceFilter.toObject, includeInstance)
2738
2741
  };
2739
2742
 
2740
2743
  if (includeInstance) {
@@ -2817,9 +2820,9 @@ proto.PolicyAction.deserializeBinaryFromReader = function(msg, reader) {
2817
2820
  msg.addActions(value);
2818
2821
  break;
2819
2822
  case 12:
2820
- var value = new proto.Resource;
2821
- reader.readMessage(value,proto.Resource.deserializeBinaryFromReader);
2822
- msg.setResource(value);
2823
+ var value = new proto.ResourceFilter;
2824
+ reader.readMessage(value,proto.ResourceFilter.deserializeBinaryFromReader);
2825
+ msg.addResource(value);
2823
2826
  break;
2824
2827
  default:
2825
2828
  reader.skipField();
@@ -2928,12 +2931,12 @@ proto.PolicyAction.serializeBinaryToWriter = function(message, writer) {
2928
2931
  proto.Action.serializeBinaryToWriter
2929
2932
  );
2930
2933
  }
2931
- f = message.getResource();
2932
- if (f != null) {
2933
- writer.writeMessage(
2934
+ f = message.getResourceList();
2935
+ if (f.length > 0) {
2936
+ writer.writeRepeatedMessage(
2934
2937
  12,
2935
2938
  f,
2936
- proto.Resource.serializeBinaryToWriter
2939
+ proto.ResourceFilter.serializeBinaryToWriter
2937
2940
  );
2938
2941
  }
2939
2942
  };
@@ -3158,39 +3161,40 @@ proto.PolicyAction.prototype.clearActionsList = function() {
3158
3161
 
3159
3162
 
3160
3163
  /**
3161
- * optional Resource resource = 12;
3162
- * @return {?proto.Resource}
3164
+ * repeated ResourceFilter resource = 12;
3165
+ * @return {!Array<!proto.ResourceFilter>}
3163
3166
  */
3164
- proto.PolicyAction.prototype.getResource = function() {
3165
- return /** @type{?proto.Resource} */ (
3166
- jspb.Message.getWrapperField(this, proto.Resource, 12));
3167
+ proto.PolicyAction.prototype.getResourceList = function() {
3168
+ return /** @type{!Array<!proto.ResourceFilter>} */ (
3169
+ jspb.Message.getRepeatedWrapperField(this, proto.ResourceFilter, 12));
3167
3170
  };
3168
3171
 
3169
3172
 
3170
3173
  /**
3171
- * @param {?proto.Resource|undefined} value
3174
+ * @param {!Array<!proto.ResourceFilter>} value
3172
3175
  * @return {!proto.PolicyAction} returns this
3173
3176
  */
3174
- proto.PolicyAction.prototype.setResource = function(value) {
3175
- return jspb.Message.setWrapperField(this, 12, value);
3177
+ proto.PolicyAction.prototype.setResourceList = function(value) {
3178
+ return jspb.Message.setRepeatedWrapperField(this, 12, value);
3176
3179
  };
3177
3180
 
3178
3181
 
3179
3182
  /**
3180
- * Clears the message field making it undefined.
3181
- * @return {!proto.PolicyAction} returns this
3183
+ * @param {!proto.ResourceFilter=} opt_value
3184
+ * @param {number=} opt_index
3185
+ * @return {!proto.ResourceFilter}
3182
3186
  */
3183
- proto.PolicyAction.prototype.clearResource = function() {
3184
- return this.setResource(undefined);
3187
+ proto.PolicyAction.prototype.addResource = function(opt_value, opt_index) {
3188
+ return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.ResourceFilter, opt_index);
3185
3189
  };
3186
3190
 
3187
3191
 
3188
3192
  /**
3189
- * Returns whether this field is set.
3190
- * @return {boolean}
3193
+ * Clears the list making it empty but non-null.
3194
+ * @return {!proto.PolicyAction} returns this
3191
3195
  */
3192
- proto.PolicyAction.prototype.hasResource = function() {
3193
- return jspb.Message.getField(this, 12) != null;
3196
+ proto.PolicyAction.prototype.clearResourceList = function() {
3197
+ return this.setResourceList([]);
3194
3198
  };
3195
3199
 
3196
3200