@aldiokta/protocgen 1.0.93 → 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
|
@@ -163,7 +163,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
163
163
|
* @constructor
|
|
164
164
|
*/
|
|
165
165
|
proto.Role = function(opt_data) {
|
|
166
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
166
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.Role.repeatedFields_, null);
|
|
167
167
|
};
|
|
168
168
|
goog.inherits(proto.Role, jspb.Message);
|
|
169
169
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -1927,6 +1927,13 @@ proto.UsersRole.prototype.hasRoles = function() {
|
|
|
1927
1927
|
|
|
1928
1928
|
|
|
1929
1929
|
|
|
1930
|
+
/**
|
|
1931
|
+
* List of repeated fields within this message type.
|
|
1932
|
+
* @private {!Array<number>}
|
|
1933
|
+
* @const
|
|
1934
|
+
*/
|
|
1935
|
+
proto.Role.repeatedFields_ = [4];
|
|
1936
|
+
|
|
1930
1937
|
|
|
1931
1938
|
|
|
1932
1939
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -1960,7 +1967,9 @@ proto.Role.toObject = function(includeInstance, msg) {
|
|
|
1960
1967
|
var f, obj = {
|
|
1961
1968
|
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1962
1969
|
description: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1963
|
-
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)
|
|
1964
1973
|
};
|
|
1965
1974
|
|
|
1966
1975
|
if (includeInstance) {
|
|
@@ -2009,6 +2018,11 @@ proto.Role.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
2009
2018
|
var value = /** @type {string} */ (reader.readString());
|
|
2010
2019
|
msg.setReferencesId(value);
|
|
2011
2020
|
break;
|
|
2021
|
+
case 4:
|
|
2022
|
+
var value = new proto.RolePolicy;
|
|
2023
|
+
reader.readMessage(value,proto.RolePolicy.deserializeBinaryFromReader);
|
|
2024
|
+
msg.addRolePolicies(value);
|
|
2025
|
+
break;
|
|
2012
2026
|
default:
|
|
2013
2027
|
reader.skipField();
|
|
2014
2028
|
break;
|
|
@@ -2059,6 +2073,14 @@ proto.Role.serializeBinaryToWriter = function(message, writer) {
|
|
|
2059
2073
|
f
|
|
2060
2074
|
);
|
|
2061
2075
|
}
|
|
2076
|
+
f = message.getRolePoliciesList();
|
|
2077
|
+
if (f.length > 0) {
|
|
2078
|
+
writer.writeRepeatedMessage(
|
|
2079
|
+
4,
|
|
2080
|
+
f,
|
|
2081
|
+
proto.RolePolicy.serializeBinaryToWriter
|
|
2082
|
+
);
|
|
2083
|
+
}
|
|
2062
2084
|
};
|
|
2063
2085
|
|
|
2064
2086
|
|
|
@@ -2116,6 +2138,44 @@ proto.Role.prototype.setReferencesId = function(value) {
|
|
|
2116
2138
|
};
|
|
2117
2139
|
|
|
2118
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
|
+
|
|
2119
2179
|
|
|
2120
2180
|
|
|
2121
2181
|
|
|
@@ -3048,7 +3108,7 @@ proto.RolePolicy.toObject = function(includeInstance, msg) {
|
|
|
3048
3108
|
roleReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3049
3109
|
role: (f = msg.getRole()) && proto.Role.toObject(includeInstance, f),
|
|
3050
3110
|
policyReferencesId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
3051
|
-
|
|
3111
|
+
policies: (f = msg.getPolicies()) && proto.Policy.toObject(includeInstance, f)
|
|
3052
3112
|
};
|
|
3053
3113
|
|
|
3054
3114
|
if (includeInstance) {
|
|
@@ -3101,7 +3161,7 @@ proto.RolePolicy.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
3101
3161
|
case 4:
|
|
3102
3162
|
var value = new proto.Policy;
|
|
3103
3163
|
reader.readMessage(value,proto.Policy.deserializeBinaryFromReader);
|
|
3104
|
-
msg.
|
|
3164
|
+
msg.setPolicies(value);
|
|
3105
3165
|
break;
|
|
3106
3166
|
default:
|
|
3107
3167
|
reader.skipField();
|
|
@@ -3154,7 +3214,7 @@ proto.RolePolicy.serializeBinaryToWriter = function(message, writer) {
|
|
|
3154
3214
|
f
|
|
3155
3215
|
);
|
|
3156
3216
|
}
|
|
3157
|
-
f = message.
|
|
3217
|
+
f = message.getPolicies();
|
|
3158
3218
|
if (f != null) {
|
|
3159
3219
|
writer.writeMessage(
|
|
3160
3220
|
4,
|
|
@@ -3239,10 +3299,10 @@ proto.RolePolicy.prototype.setPolicyReferencesId = function(value) {
|
|
|
3239
3299
|
|
|
3240
3300
|
|
|
3241
3301
|
/**
|
|
3242
|
-
* optional Policy
|
|
3302
|
+
* optional Policy policies = 4;
|
|
3243
3303
|
* @return {?proto.Policy}
|
|
3244
3304
|
*/
|
|
3245
|
-
proto.RolePolicy.prototype.
|
|
3305
|
+
proto.RolePolicy.prototype.getPolicies = function() {
|
|
3246
3306
|
return /** @type{?proto.Policy} */ (
|
|
3247
3307
|
jspb.Message.getWrapperField(this, proto.Policy, 4));
|
|
3248
3308
|
};
|
|
@@ -3252,7 +3312,7 @@ proto.RolePolicy.prototype.getPolicy = function() {
|
|
|
3252
3312
|
* @param {?proto.Policy|undefined} value
|
|
3253
3313
|
* @return {!proto.RolePolicy} returns this
|
|
3254
3314
|
*/
|
|
3255
|
-
proto.RolePolicy.prototype.
|
|
3315
|
+
proto.RolePolicy.prototype.setPolicies = function(value) {
|
|
3256
3316
|
return jspb.Message.setWrapperField(this, 4, value);
|
|
3257
3317
|
};
|
|
3258
3318
|
|
|
@@ -3261,8 +3321,8 @@ proto.RolePolicy.prototype.setPolicy = function(value) {
|
|
|
3261
3321
|
* Clears the message field making it undefined.
|
|
3262
3322
|
* @return {!proto.RolePolicy} returns this
|
|
3263
3323
|
*/
|
|
3264
|
-
proto.RolePolicy.prototype.
|
|
3265
|
-
return this.
|
|
3324
|
+
proto.RolePolicy.prototype.clearPolicies = function() {
|
|
3325
|
+
return this.setPolicies(undefined);
|
|
3266
3326
|
};
|
|
3267
3327
|
|
|
3268
3328
|
|
|
@@ -3270,7 +3330,7 @@ proto.RolePolicy.prototype.clearPolicy = function() {
|
|
|
3270
3330
|
* Returns whether this field is set.
|
|
3271
3331
|
* @return {boolean}
|
|
3272
3332
|
*/
|
|
3273
|
-
proto.RolePolicy.prototype.
|
|
3333
|
+
proto.RolePolicy.prototype.hasPolicies = function() {
|
|
3274
3334
|
return jspb.Message.getField(this, 4) != null;
|
|
3275
3335
|
};
|
|
3276
3336
|
|