@aldiokta/protocgen 1.1.58 → 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
|
@@ -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
|
-
|
|
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.
|
|
1665
|
-
reader.readMessage(value,proto.
|
|
1666
|
-
msg.
|
|
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.
|
|
1713
|
-
if (f
|
|
1714
|
-
writer.
|
|
1713
|
+
f = message.getResourceList();
|
|
1714
|
+
if (f.length > 0) {
|
|
1715
|
+
writer.writeRepeatedMessage(
|
|
1715
1716
|
3,
|
|
1716
1717
|
f,
|
|
1717
|
-
proto.
|
|
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
|
-
*
|
|
1781
|
-
* @return {
|
|
1781
|
+
* repeated ResourceFilter resource = 3;
|
|
1782
|
+
* @return {!Array<!proto.ResourceFilter>}
|
|
1782
1783
|
*/
|
|
1783
|
-
proto.Statement.prototype.
|
|
1784
|
-
return /** @type{
|
|
1785
|
-
jspb.Message.
|
|
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 {
|
|
1791
|
+
* @param {!Array<!proto.ResourceFilter>} value
|
|
1791
1792
|
* @return {!proto.Statement} returns this
|
|
1792
1793
|
*/
|
|
1793
|
-
proto.Statement.prototype.
|
|
1794
|
-
return jspb.Message.
|
|
1794
|
+
proto.Statement.prototype.setResourceList = function(value) {
|
|
1795
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
1795
1796
|
};
|
|
1796
1797
|
|
|
1797
1798
|
|
|
1798
1799
|
/**
|
|
1799
|
-
*
|
|
1800
|
-
* @
|
|
1800
|
+
* @param {!proto.ResourceFilter=} opt_value
|
|
1801
|
+
* @param {number=} opt_index
|
|
1802
|
+
* @return {!proto.ResourceFilter}
|
|
1801
1803
|
*/
|
|
1802
|
-
proto.Statement.prototype.
|
|
1803
|
-
return this.
|
|
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
|
-
*
|
|
1809
|
-
* @return {
|
|
1810
|
+
* Clears the list making it empty but non-null.
|
|
1811
|
+
* @return {!proto.Statement} returns this
|
|
1810
1812
|
*/
|
|
1811
|
-
proto.Statement.prototype.
|
|
1812
|
-
return
|
|
1813
|
+
proto.Statement.prototype.clearResourceList = function() {
|
|
1814
|
+
return this.setResourceList([]);
|
|
1813
1815
|
};
|
|
1814
1816
|
|
|
1815
1817
|
|