@aldiokta/protocgen 1.0.92 → 1.0.94
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
|
@@ -67,6 +67,7 @@ goog.exportSymbol('proto.UpdatePolicyRequest', null, global);
|
|
|
67
67
|
goog.exportSymbol('proto.UpdatePolicyResponse', null, global);
|
|
68
68
|
goog.exportSymbol('proto.UpdateRoleRequest', null, global);
|
|
69
69
|
goog.exportSymbol('proto.UpdateRoleResponse', null, global);
|
|
70
|
+
goog.exportSymbol('proto.UsersRole', null, global);
|
|
70
71
|
/**
|
|
71
72
|
* Generated by JsPbCodeGenerator.
|
|
72
73
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -140,9 +141,30 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
140
141
|
* @extends {jspb.Message}
|
|
141
142
|
* @constructor
|
|
142
143
|
*/
|
|
143
|
-
proto.
|
|
144
|
+
proto.UsersRole = function(opt_data) {
|
|
144
145
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
145
146
|
};
|
|
147
|
+
goog.inherits(proto.UsersRole, jspb.Message);
|
|
148
|
+
if (goog.DEBUG && !COMPILED) {
|
|
149
|
+
/**
|
|
150
|
+
* @public
|
|
151
|
+
* @override
|
|
152
|
+
*/
|
|
153
|
+
proto.UsersRole.displayName = 'proto.UsersRole';
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Generated by JsPbCodeGenerator.
|
|
157
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
158
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
159
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
160
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
161
|
+
* valid.
|
|
162
|
+
* @extends {jspb.Message}
|
|
163
|
+
* @constructor
|
|
164
|
+
*/
|
|
165
|
+
proto.Role = function(opt_data) {
|
|
166
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.Role.repeatedFields_, null);
|
|
167
|
+
};
|
|
146
168
|
goog.inherits(proto.Role, jspb.Message);
|
|
147
169
|
if (goog.DEBUG && !COMPILED) {
|
|
148
170
|
/**
|
|
@@ -1666,6 +1688,254 @@ proto.BasePolicy.prototype.setReferencesId = function(value) {
|
|
|
1666
1688
|
|
|
1667
1689
|
|
|
1668
1690
|
|
|
1691
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1692
|
+
/**
|
|
1693
|
+
* Creates an object representation of this proto.
|
|
1694
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1695
|
+
* Optional fields that are not set will be set to undefined.
|
|
1696
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1697
|
+
* For the list of reserved names please see:
|
|
1698
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1699
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1700
|
+
* JSPB instance for transitional soy proto support:
|
|
1701
|
+
* http://goto/soy-param-migration
|
|
1702
|
+
* @return {!Object}
|
|
1703
|
+
*/
|
|
1704
|
+
proto.UsersRole.prototype.toObject = function(opt_includeInstance) {
|
|
1705
|
+
return proto.UsersRole.toObject(opt_includeInstance, this);
|
|
1706
|
+
};
|
|
1707
|
+
|
|
1708
|
+
|
|
1709
|
+
/**
|
|
1710
|
+
* Static version of the {@see toObject} method.
|
|
1711
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1712
|
+
* the JSPB instance for transitional soy proto support:
|
|
1713
|
+
* http://goto/soy-param-migration
|
|
1714
|
+
* @param {!proto.UsersRole} msg The msg instance to transform.
|
|
1715
|
+
* @return {!Object}
|
|
1716
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1717
|
+
*/
|
|
1718
|
+
proto.UsersRole.toObject = function(includeInstance, msg) {
|
|
1719
|
+
var f, obj = {
|
|
1720
|
+
roleReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1721
|
+
userReferencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1722
|
+
referencesId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
1723
|
+
roles: (f = msg.getRoles()) && proto.Role.toObject(includeInstance, f)
|
|
1724
|
+
};
|
|
1725
|
+
|
|
1726
|
+
if (includeInstance) {
|
|
1727
|
+
obj.$jspbMessageInstance = msg;
|
|
1728
|
+
}
|
|
1729
|
+
return obj;
|
|
1730
|
+
};
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
|
|
1734
|
+
/**
|
|
1735
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1736
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1737
|
+
* @return {!proto.UsersRole}
|
|
1738
|
+
*/
|
|
1739
|
+
proto.UsersRole.deserializeBinary = function(bytes) {
|
|
1740
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1741
|
+
var msg = new proto.UsersRole;
|
|
1742
|
+
return proto.UsersRole.deserializeBinaryFromReader(msg, reader);
|
|
1743
|
+
};
|
|
1744
|
+
|
|
1745
|
+
|
|
1746
|
+
/**
|
|
1747
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1748
|
+
* given reader into the given message object.
|
|
1749
|
+
* @param {!proto.UsersRole} msg The message object to deserialize into.
|
|
1750
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1751
|
+
* @return {!proto.UsersRole}
|
|
1752
|
+
*/
|
|
1753
|
+
proto.UsersRole.deserializeBinaryFromReader = function(msg, reader) {
|
|
1754
|
+
while (reader.nextField()) {
|
|
1755
|
+
if (reader.isEndGroup()) {
|
|
1756
|
+
break;
|
|
1757
|
+
}
|
|
1758
|
+
var field = reader.getFieldNumber();
|
|
1759
|
+
switch (field) {
|
|
1760
|
+
case 1:
|
|
1761
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1762
|
+
msg.setRoleReferencesId(value);
|
|
1763
|
+
break;
|
|
1764
|
+
case 2:
|
|
1765
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1766
|
+
msg.setUserReferencesId(value);
|
|
1767
|
+
break;
|
|
1768
|
+
case 3:
|
|
1769
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1770
|
+
msg.setReferencesId(value);
|
|
1771
|
+
break;
|
|
1772
|
+
case 4:
|
|
1773
|
+
var value = new proto.Role;
|
|
1774
|
+
reader.readMessage(value,proto.Role.deserializeBinaryFromReader);
|
|
1775
|
+
msg.setRoles(value);
|
|
1776
|
+
break;
|
|
1777
|
+
default:
|
|
1778
|
+
reader.skipField();
|
|
1779
|
+
break;
|
|
1780
|
+
}
|
|
1781
|
+
}
|
|
1782
|
+
return msg;
|
|
1783
|
+
};
|
|
1784
|
+
|
|
1785
|
+
|
|
1786
|
+
/**
|
|
1787
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1788
|
+
* @return {!Uint8Array}
|
|
1789
|
+
*/
|
|
1790
|
+
proto.UsersRole.prototype.serializeBinary = function() {
|
|
1791
|
+
var writer = new jspb.BinaryWriter();
|
|
1792
|
+
proto.UsersRole.serializeBinaryToWriter(this, writer);
|
|
1793
|
+
return writer.getResultBuffer();
|
|
1794
|
+
};
|
|
1795
|
+
|
|
1796
|
+
|
|
1797
|
+
/**
|
|
1798
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1799
|
+
* format), writing to the given BinaryWriter.
|
|
1800
|
+
* @param {!proto.UsersRole} message
|
|
1801
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1802
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1803
|
+
*/
|
|
1804
|
+
proto.UsersRole.serializeBinaryToWriter = function(message, writer) {
|
|
1805
|
+
var f = undefined;
|
|
1806
|
+
f = message.getRoleReferencesId();
|
|
1807
|
+
if (f.length > 0) {
|
|
1808
|
+
writer.writeString(
|
|
1809
|
+
1,
|
|
1810
|
+
f
|
|
1811
|
+
);
|
|
1812
|
+
}
|
|
1813
|
+
f = message.getUserReferencesId();
|
|
1814
|
+
if (f.length > 0) {
|
|
1815
|
+
writer.writeString(
|
|
1816
|
+
2,
|
|
1817
|
+
f
|
|
1818
|
+
);
|
|
1819
|
+
}
|
|
1820
|
+
f = message.getReferencesId();
|
|
1821
|
+
if (f.length > 0) {
|
|
1822
|
+
writer.writeString(
|
|
1823
|
+
3,
|
|
1824
|
+
f
|
|
1825
|
+
);
|
|
1826
|
+
}
|
|
1827
|
+
f = message.getRoles();
|
|
1828
|
+
if (f != null) {
|
|
1829
|
+
writer.writeMessage(
|
|
1830
|
+
4,
|
|
1831
|
+
f,
|
|
1832
|
+
proto.Role.serializeBinaryToWriter
|
|
1833
|
+
);
|
|
1834
|
+
}
|
|
1835
|
+
};
|
|
1836
|
+
|
|
1837
|
+
|
|
1838
|
+
/**
|
|
1839
|
+
* optional string role_references_id = 1;
|
|
1840
|
+
* @return {string}
|
|
1841
|
+
*/
|
|
1842
|
+
proto.UsersRole.prototype.getRoleReferencesId = function() {
|
|
1843
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1844
|
+
};
|
|
1845
|
+
|
|
1846
|
+
|
|
1847
|
+
/**
|
|
1848
|
+
* @param {string} value
|
|
1849
|
+
* @return {!proto.UsersRole} returns this
|
|
1850
|
+
*/
|
|
1851
|
+
proto.UsersRole.prototype.setRoleReferencesId = function(value) {
|
|
1852
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1853
|
+
};
|
|
1854
|
+
|
|
1855
|
+
|
|
1856
|
+
/**
|
|
1857
|
+
* optional string user_references_id = 2;
|
|
1858
|
+
* @return {string}
|
|
1859
|
+
*/
|
|
1860
|
+
proto.UsersRole.prototype.getUserReferencesId = function() {
|
|
1861
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1862
|
+
};
|
|
1863
|
+
|
|
1864
|
+
|
|
1865
|
+
/**
|
|
1866
|
+
* @param {string} value
|
|
1867
|
+
* @return {!proto.UsersRole} returns this
|
|
1868
|
+
*/
|
|
1869
|
+
proto.UsersRole.prototype.setUserReferencesId = function(value) {
|
|
1870
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1871
|
+
};
|
|
1872
|
+
|
|
1873
|
+
|
|
1874
|
+
/**
|
|
1875
|
+
* optional string references_id = 3;
|
|
1876
|
+
* @return {string}
|
|
1877
|
+
*/
|
|
1878
|
+
proto.UsersRole.prototype.getReferencesId = function() {
|
|
1879
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1880
|
+
};
|
|
1881
|
+
|
|
1882
|
+
|
|
1883
|
+
/**
|
|
1884
|
+
* @param {string} value
|
|
1885
|
+
* @return {!proto.UsersRole} returns this
|
|
1886
|
+
*/
|
|
1887
|
+
proto.UsersRole.prototype.setReferencesId = function(value) {
|
|
1888
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
1889
|
+
};
|
|
1890
|
+
|
|
1891
|
+
|
|
1892
|
+
/**
|
|
1893
|
+
* optional Role roles = 4;
|
|
1894
|
+
* @return {?proto.Role}
|
|
1895
|
+
*/
|
|
1896
|
+
proto.UsersRole.prototype.getRoles = function() {
|
|
1897
|
+
return /** @type{?proto.Role} */ (
|
|
1898
|
+
jspb.Message.getWrapperField(this, proto.Role, 4));
|
|
1899
|
+
};
|
|
1900
|
+
|
|
1901
|
+
|
|
1902
|
+
/**
|
|
1903
|
+
* @param {?proto.Role|undefined} value
|
|
1904
|
+
* @return {!proto.UsersRole} returns this
|
|
1905
|
+
*/
|
|
1906
|
+
proto.UsersRole.prototype.setRoles = function(value) {
|
|
1907
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
1908
|
+
};
|
|
1909
|
+
|
|
1910
|
+
|
|
1911
|
+
/**
|
|
1912
|
+
* Clears the message field making it undefined.
|
|
1913
|
+
* @return {!proto.UsersRole} returns this
|
|
1914
|
+
*/
|
|
1915
|
+
proto.UsersRole.prototype.clearRoles = function() {
|
|
1916
|
+
return this.setRoles(undefined);
|
|
1917
|
+
};
|
|
1918
|
+
|
|
1919
|
+
|
|
1920
|
+
/**
|
|
1921
|
+
* Returns whether this field is set.
|
|
1922
|
+
* @return {boolean}
|
|
1923
|
+
*/
|
|
1924
|
+
proto.UsersRole.prototype.hasRoles = function() {
|
|
1925
|
+
return jspb.Message.getField(this, 4) != null;
|
|
1926
|
+
};
|
|
1927
|
+
|
|
1928
|
+
|
|
1929
|
+
|
|
1930
|
+
/**
|
|
1931
|
+
* List of repeated fields within this message type.
|
|
1932
|
+
* @private {!Array<number>}
|
|
1933
|
+
* @const
|
|
1934
|
+
*/
|
|
1935
|
+
proto.Role.repeatedFields_ = [4];
|
|
1936
|
+
|
|
1937
|
+
|
|
1938
|
+
|
|
1669
1939
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1670
1940
|
/**
|
|
1671
1941
|
* Creates an object representation of this proto.
|
|
@@ -1697,7 +1967,9 @@ proto.Role.toObject = function(includeInstance, msg) {
|
|
|
1697
1967
|
var f, obj = {
|
|
1698
1968
|
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1699
1969
|
description: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1700
|
-
referencesId: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
1970
|
+
referencesId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
1971
|
+
rolePoliciesList: jspb.Message.toObjectList(msg.getRolePoliciesList(),
|
|
1972
|
+
proto.RolePolicy.toObject, includeInstance)
|
|
1701
1973
|
};
|
|
1702
1974
|
|
|
1703
1975
|
if (includeInstance) {
|
|
@@ -1746,6 +2018,11 @@ proto.Role.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
1746
2018
|
var value = /** @type {string} */ (reader.readString());
|
|
1747
2019
|
msg.setReferencesId(value);
|
|
1748
2020
|
break;
|
|
2021
|
+
case 4:
|
|
2022
|
+
var value = new proto.RolePolicy;
|
|
2023
|
+
reader.readMessage(value,proto.RolePolicy.deserializeBinaryFromReader);
|
|
2024
|
+
msg.addRolePolicies(value);
|
|
2025
|
+
break;
|
|
1749
2026
|
default:
|
|
1750
2027
|
reader.skipField();
|
|
1751
2028
|
break;
|
|
@@ -1796,6 +2073,14 @@ proto.Role.serializeBinaryToWriter = function(message, writer) {
|
|
|
1796
2073
|
f
|
|
1797
2074
|
);
|
|
1798
2075
|
}
|
|
2076
|
+
f = message.getRolePoliciesList();
|
|
2077
|
+
if (f.length > 0) {
|
|
2078
|
+
writer.writeRepeatedMessage(
|
|
2079
|
+
4,
|
|
2080
|
+
f,
|
|
2081
|
+
proto.RolePolicy.serializeBinaryToWriter
|
|
2082
|
+
);
|
|
2083
|
+
}
|
|
1799
2084
|
};
|
|
1800
2085
|
|
|
1801
2086
|
|
|
@@ -1853,6 +2138,44 @@ proto.Role.prototype.setReferencesId = function(value) {
|
|
|
1853
2138
|
};
|
|
1854
2139
|
|
|
1855
2140
|
|
|
2141
|
+
/**
|
|
2142
|
+
* repeated RolePolicy role_policies = 4;
|
|
2143
|
+
* @return {!Array<!proto.RolePolicy>}
|
|
2144
|
+
*/
|
|
2145
|
+
proto.Role.prototype.getRolePoliciesList = function() {
|
|
2146
|
+
return /** @type{!Array<!proto.RolePolicy>} */ (
|
|
2147
|
+
jspb.Message.getRepeatedWrapperField(this, proto.RolePolicy, 4));
|
|
2148
|
+
};
|
|
2149
|
+
|
|
2150
|
+
|
|
2151
|
+
/**
|
|
2152
|
+
* @param {!Array<!proto.RolePolicy>} value
|
|
2153
|
+
* @return {!proto.Role} returns this
|
|
2154
|
+
*/
|
|
2155
|
+
proto.Role.prototype.setRolePoliciesList = function(value) {
|
|
2156
|
+
return jspb.Message.setRepeatedWrapperField(this, 4, value);
|
|
2157
|
+
};
|
|
2158
|
+
|
|
2159
|
+
|
|
2160
|
+
/**
|
|
2161
|
+
* @param {!proto.RolePolicy=} opt_value
|
|
2162
|
+
* @param {number=} opt_index
|
|
2163
|
+
* @return {!proto.RolePolicy}
|
|
2164
|
+
*/
|
|
2165
|
+
proto.Role.prototype.addRolePolicies = function(opt_value, opt_index) {
|
|
2166
|
+
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.RolePolicy, opt_index);
|
|
2167
|
+
};
|
|
2168
|
+
|
|
2169
|
+
|
|
2170
|
+
/**
|
|
2171
|
+
* Clears the list making it empty but non-null.
|
|
2172
|
+
* @return {!proto.Role} returns this
|
|
2173
|
+
*/
|
|
2174
|
+
proto.Role.prototype.clearRolePoliciesList = function() {
|
|
2175
|
+
return this.setRolePoliciesList([]);
|
|
2176
|
+
};
|
|
2177
|
+
|
|
2178
|
+
|
|
1856
2179
|
|
|
1857
2180
|
|
|
1858
2181
|
|
|
@@ -2785,7 +3108,7 @@ proto.RolePolicy.toObject = function(includeInstance, msg) {
|
|
|
2785
3108
|
roleReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2786
3109
|
role: (f = msg.getRole()) && proto.Role.toObject(includeInstance, f),
|
|
2787
3110
|
policyReferencesId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
2788
|
-
|
|
3111
|
+
policies: (f = msg.getPolicies()) && proto.Policy.toObject(includeInstance, f)
|
|
2789
3112
|
};
|
|
2790
3113
|
|
|
2791
3114
|
if (includeInstance) {
|
|
@@ -2838,7 +3161,7 @@ proto.RolePolicy.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
2838
3161
|
case 4:
|
|
2839
3162
|
var value = new proto.Policy;
|
|
2840
3163
|
reader.readMessage(value,proto.Policy.deserializeBinaryFromReader);
|
|
2841
|
-
msg.
|
|
3164
|
+
msg.setPolicies(value);
|
|
2842
3165
|
break;
|
|
2843
3166
|
default:
|
|
2844
3167
|
reader.skipField();
|
|
@@ -2891,7 +3214,7 @@ proto.RolePolicy.serializeBinaryToWriter = function(message, writer) {
|
|
|
2891
3214
|
f
|
|
2892
3215
|
);
|
|
2893
3216
|
}
|
|
2894
|
-
f = message.
|
|
3217
|
+
f = message.getPolicies();
|
|
2895
3218
|
if (f != null) {
|
|
2896
3219
|
writer.writeMessage(
|
|
2897
3220
|
4,
|
|
@@ -2976,10 +3299,10 @@ proto.RolePolicy.prototype.setPolicyReferencesId = function(value) {
|
|
|
2976
3299
|
|
|
2977
3300
|
|
|
2978
3301
|
/**
|
|
2979
|
-
* optional Policy
|
|
3302
|
+
* optional Policy policies = 4;
|
|
2980
3303
|
* @return {?proto.Policy}
|
|
2981
3304
|
*/
|
|
2982
|
-
proto.RolePolicy.prototype.
|
|
3305
|
+
proto.RolePolicy.prototype.getPolicies = function() {
|
|
2983
3306
|
return /** @type{?proto.Policy} */ (
|
|
2984
3307
|
jspb.Message.getWrapperField(this, proto.Policy, 4));
|
|
2985
3308
|
};
|
|
@@ -2989,7 +3312,7 @@ proto.RolePolicy.prototype.getPolicy = function() {
|
|
|
2989
3312
|
* @param {?proto.Policy|undefined} value
|
|
2990
3313
|
* @return {!proto.RolePolicy} returns this
|
|
2991
3314
|
*/
|
|
2992
|
-
proto.RolePolicy.prototype.
|
|
3315
|
+
proto.RolePolicy.prototype.setPolicies = function(value) {
|
|
2993
3316
|
return jspb.Message.setWrapperField(this, 4, value);
|
|
2994
3317
|
};
|
|
2995
3318
|
|
|
@@ -2998,8 +3321,8 @@ proto.RolePolicy.prototype.setPolicy = function(value) {
|
|
|
2998
3321
|
* Clears the message field making it undefined.
|
|
2999
3322
|
* @return {!proto.RolePolicy} returns this
|
|
3000
3323
|
*/
|
|
3001
|
-
proto.RolePolicy.prototype.
|
|
3002
|
-
return this.
|
|
3324
|
+
proto.RolePolicy.prototype.clearPolicies = function() {
|
|
3325
|
+
return this.setPolicies(undefined);
|
|
3003
3326
|
};
|
|
3004
3327
|
|
|
3005
3328
|
|
|
@@ -3007,7 +3330,7 @@ proto.RolePolicy.prototype.clearPolicy = function() {
|
|
|
3007
3330
|
* Returns whether this field is set.
|
|
3008
3331
|
* @return {boolean}
|
|
3009
3332
|
*/
|
|
3010
|
-
proto.RolePolicy.prototype.
|
|
3333
|
+
proto.RolePolicy.prototype.hasPolicies = function() {
|
|
3011
3334
|
return jspb.Message.getField(this, 4) != null;
|
|
3012
3335
|
};
|
|
3013
3336
|
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
var grpc = require('@grpc/grpc-js');
|
|
8
8
|
var prisca_v1_core_auth_auth_pb = require('../../../../prisca/v1/core/auth/auth_pb.js');
|
|
9
9
|
var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
|
|
10
|
+
var prisca_v1_core_access_manager_access_manager_pb = require('../../../../prisca/v1/core/access_manager/access_manager_pb.js');
|
|
10
11
|
|
|
11
12
|
function serialize_AccessApiCredential(arg) {
|
|
12
13
|
if (!(arg instanceof prisca_v1_core_auth_auth_pb.AccessApiCredential)) {
|
|
@@ -23,6 +23,8 @@ var global =
|
|
|
23
23
|
|
|
24
24
|
var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
|
|
25
25
|
goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
|
|
26
|
+
var prisca_v1_core_access_manager_access_manager_pb = require('../../../../prisca/v1/core/access_manager/access_manager_pb.js');
|
|
27
|
+
goog.object.extend(proto, prisca_v1_core_access_manager_access_manager_pb);
|
|
26
28
|
goog.exportSymbol('proto.AccessApiCredential', null, global);
|
|
27
29
|
goog.exportSymbol('proto.AccessApiManagersResponse', null, global);
|
|
28
30
|
goog.exportSymbol('proto.AccessCreateRequest', null, global);
|
|
@@ -349,7 +351,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
349
351
|
* @constructor
|
|
350
352
|
*/
|
|
351
353
|
proto.UserResponse = function(opt_data) {
|
|
352
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
354
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.UserResponse.repeatedFields_, null);
|
|
353
355
|
};
|
|
354
356
|
goog.inherits(proto.UserResponse, jspb.Message);
|
|
355
357
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -2657,6 +2659,13 @@ proto.ChangePasswordRequest.prototype.setNewPassword = function(value) {
|
|
|
2657
2659
|
|
|
2658
2660
|
|
|
2659
2661
|
|
|
2662
|
+
/**
|
|
2663
|
+
* List of repeated fields within this message type.
|
|
2664
|
+
* @private {!Array<number>}
|
|
2665
|
+
* @const
|
|
2666
|
+
*/
|
|
2667
|
+
proto.UserResponse.repeatedFields_ = [6];
|
|
2668
|
+
|
|
2660
2669
|
|
|
2661
2670
|
|
|
2662
2671
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -2691,9 +2700,10 @@ proto.UserResponse.toObject = function(includeInstance, msg) {
|
|
|
2691
2700
|
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
2692
2701
|
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
2693
2702
|
email: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2703
|
+
token: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
2704
|
+
referencesId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
2705
|
+
usersRoleList: jspb.Message.toObjectList(msg.getUsersRoleList(),
|
|
2706
|
+
prisca_v1_core_access_manager_access_manager_pb.UsersRole.toObject, includeInstance)
|
|
2697
2707
|
};
|
|
2698
2708
|
|
|
2699
2709
|
if (includeInstance) {
|
|
@@ -2744,15 +2754,16 @@ proto.UserResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
2744
2754
|
break;
|
|
2745
2755
|
case 4:
|
|
2746
2756
|
var value = /** @type {string} */ (reader.readString());
|
|
2747
|
-
msg.
|
|
2757
|
+
msg.setToken(value);
|
|
2748
2758
|
break;
|
|
2749
2759
|
case 5:
|
|
2750
2760
|
var value = /** @type {string} */ (reader.readString());
|
|
2751
|
-
msg.
|
|
2761
|
+
msg.setReferencesId(value);
|
|
2752
2762
|
break;
|
|
2753
2763
|
case 6:
|
|
2754
|
-
var value =
|
|
2755
|
-
|
|
2764
|
+
var value = new prisca_v1_core_access_manager_access_manager_pb.UsersRole;
|
|
2765
|
+
reader.readMessage(value,prisca_v1_core_access_manager_access_manager_pb.UsersRole.deserializeBinaryFromReader);
|
|
2766
|
+
msg.addUsersRole(value);
|
|
2756
2767
|
break;
|
|
2757
2768
|
default:
|
|
2758
2769
|
reader.skipField();
|
|
@@ -2804,25 +2815,26 @@ proto.UserResponse.serializeBinaryToWriter = function(message, writer) {
|
|
|
2804
2815
|
f
|
|
2805
2816
|
);
|
|
2806
2817
|
}
|
|
2807
|
-
f = message.
|
|
2818
|
+
f = message.getToken();
|
|
2808
2819
|
if (f.length > 0) {
|
|
2809
2820
|
writer.writeString(
|
|
2810
2821
|
4,
|
|
2811
2822
|
f
|
|
2812
2823
|
);
|
|
2813
2824
|
}
|
|
2814
|
-
f = message.
|
|
2825
|
+
f = message.getReferencesId();
|
|
2815
2826
|
if (f.length > 0) {
|
|
2816
2827
|
writer.writeString(
|
|
2817
2828
|
5,
|
|
2818
2829
|
f
|
|
2819
2830
|
);
|
|
2820
2831
|
}
|
|
2821
|
-
f = message.
|
|
2832
|
+
f = message.getUsersRoleList();
|
|
2822
2833
|
if (f.length > 0) {
|
|
2823
|
-
writer.
|
|
2834
|
+
writer.writeRepeatedMessage(
|
|
2824
2835
|
6,
|
|
2825
|
-
f
|
|
2836
|
+
f,
|
|
2837
|
+
prisca_v1_core_access_manager_access_manager_pb.UsersRole.serializeBinaryToWriter
|
|
2826
2838
|
);
|
|
2827
2839
|
}
|
|
2828
2840
|
};
|
|
@@ -2883,10 +2895,10 @@ proto.UserResponse.prototype.setEmail = function(value) {
|
|
|
2883
2895
|
|
|
2884
2896
|
|
|
2885
2897
|
/**
|
|
2886
|
-
* optional string
|
|
2898
|
+
* optional string token = 4;
|
|
2887
2899
|
* @return {string}
|
|
2888
2900
|
*/
|
|
2889
|
-
proto.UserResponse.prototype.
|
|
2901
|
+
proto.UserResponse.prototype.getToken = function() {
|
|
2890
2902
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
2891
2903
|
};
|
|
2892
2904
|
|
|
@@ -2895,16 +2907,16 @@ proto.UserResponse.prototype.getRole = function() {
|
|
|
2895
2907
|
* @param {string} value
|
|
2896
2908
|
* @return {!proto.UserResponse} returns this
|
|
2897
2909
|
*/
|
|
2898
|
-
proto.UserResponse.prototype.
|
|
2910
|
+
proto.UserResponse.prototype.setToken = function(value) {
|
|
2899
2911
|
return jspb.Message.setProto3StringField(this, 4, value);
|
|
2900
2912
|
};
|
|
2901
2913
|
|
|
2902
2914
|
|
|
2903
2915
|
/**
|
|
2904
|
-
* optional string
|
|
2916
|
+
* optional string references_id = 5;
|
|
2905
2917
|
* @return {string}
|
|
2906
2918
|
*/
|
|
2907
|
-
proto.UserResponse.prototype.
|
|
2919
|
+
proto.UserResponse.prototype.getReferencesId = function() {
|
|
2908
2920
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
2909
2921
|
};
|
|
2910
2922
|
|
|
@@ -2913,26 +2925,46 @@ proto.UserResponse.prototype.getToken = function() {
|
|
|
2913
2925
|
* @param {string} value
|
|
2914
2926
|
* @return {!proto.UserResponse} returns this
|
|
2915
2927
|
*/
|
|
2916
|
-
proto.UserResponse.prototype.
|
|
2928
|
+
proto.UserResponse.prototype.setReferencesId = function(value) {
|
|
2917
2929
|
return jspb.Message.setProto3StringField(this, 5, value);
|
|
2918
2930
|
};
|
|
2919
2931
|
|
|
2920
2932
|
|
|
2921
2933
|
/**
|
|
2922
|
-
*
|
|
2923
|
-
* @return {
|
|
2934
|
+
* repeated UsersRole users_role = 6;
|
|
2935
|
+
* @return {!Array<!proto.UsersRole>}
|
|
2924
2936
|
*/
|
|
2925
|
-
proto.UserResponse.prototype.
|
|
2926
|
-
return /** @type
|
|
2937
|
+
proto.UserResponse.prototype.getUsersRoleList = function() {
|
|
2938
|
+
return /** @type{!Array<!proto.UsersRole>} */ (
|
|
2939
|
+
jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_access_manager_access_manager_pb.UsersRole, 6));
|
|
2927
2940
|
};
|
|
2928
2941
|
|
|
2929
2942
|
|
|
2930
2943
|
/**
|
|
2931
|
-
* @param {
|
|
2944
|
+
* @param {!Array<!proto.UsersRole>} value
|
|
2945
|
+
* @return {!proto.UserResponse} returns this
|
|
2946
|
+
*/
|
|
2947
|
+
proto.UserResponse.prototype.setUsersRoleList = function(value) {
|
|
2948
|
+
return jspb.Message.setRepeatedWrapperField(this, 6, value);
|
|
2949
|
+
};
|
|
2950
|
+
|
|
2951
|
+
|
|
2952
|
+
/**
|
|
2953
|
+
* @param {!proto.UsersRole=} opt_value
|
|
2954
|
+
* @param {number=} opt_index
|
|
2955
|
+
* @return {!proto.UsersRole}
|
|
2956
|
+
*/
|
|
2957
|
+
proto.UserResponse.prototype.addUsersRole = function(opt_value, opt_index) {
|
|
2958
|
+
return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.UsersRole, opt_index);
|
|
2959
|
+
};
|
|
2960
|
+
|
|
2961
|
+
|
|
2962
|
+
/**
|
|
2963
|
+
* Clears the list making it empty but non-null.
|
|
2932
2964
|
* @return {!proto.UserResponse} returns this
|
|
2933
2965
|
*/
|
|
2934
|
-
proto.UserResponse.prototype.
|
|
2935
|
-
return
|
|
2966
|
+
proto.UserResponse.prototype.clearUsersRoleList = function() {
|
|
2967
|
+
return this.setUsersRoleList([]);
|
|
2936
2968
|
};
|
|
2937
2969
|
|
|
2938
2970
|
|