@aldiokta/protocgen 1.1.40 → 1.1.42

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.
@@ -54,11 +54,13 @@ goog.exportSymbol('proto.GetRoleByIdRequest', null, global);
54
54
  goog.exportSymbol('proto.GetRoleByIdResponse', null, global);
55
55
  goog.exportSymbol('proto.GetRoleListRequest', null, global);
56
56
  goog.exportSymbol('proto.GetRoleListResponse', null, global);
57
+ goog.exportSymbol('proto.PoliciesResponse', null, global);
57
58
  goog.exportSymbol('proto.Policy', null, global);
58
- goog.exportSymbol('proto.PolicyStatement', null, global);
59
+ goog.exportSymbol('proto.PolicyAction', null, global);
59
60
  goog.exportSymbol('proto.Resource', null, global);
60
61
  goog.exportSymbol('proto.Role', null, global);
61
62
  goog.exportSymbol('proto.RolePolicy', null, global);
63
+ goog.exportSymbol('proto.Statement', null, global);
62
64
  goog.exportSymbol('proto.UpdatePolicyRequest', null, global);
63
65
  goog.exportSymbol('proto.UpdatePolicyResponse', null, global);
64
66
  goog.exportSymbol('proto.UpdateRoleRequest', null, global);
@@ -74,16 +76,58 @@ goog.exportSymbol('proto.UsersRole', null, global);
74
76
  * @extends {jspb.Message}
75
77
  * @constructor
76
78
  */
77
- proto.PolicyStatement = function(opt_data) {
78
- jspb.Message.initialize(this, opt_data, 0, -1, proto.PolicyStatement.repeatedFields_, null);
79
+ proto.PoliciesResponse = function(opt_data) {
80
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.PoliciesResponse.repeatedFields_, null);
79
81
  };
80
- goog.inherits(proto.PolicyStatement, jspb.Message);
82
+ goog.inherits(proto.PoliciesResponse, jspb.Message);
81
83
  if (goog.DEBUG && !COMPILED) {
82
84
  /**
83
85
  * @public
84
86
  * @override
85
87
  */
86
- proto.PolicyStatement.displayName = 'proto.PolicyStatement';
88
+ proto.PoliciesResponse.displayName = 'proto.PoliciesResponse';
89
+ }
90
+ /**
91
+ * Generated by JsPbCodeGenerator.
92
+ * @param {Array=} opt_data Optional initial data array, typically from a
93
+ * server response, or constructed directly in Javascript. The array is used
94
+ * in place and becomes part of the constructed object. It is not cloned.
95
+ * If no data is provided, the constructed object will be empty, but still
96
+ * valid.
97
+ * @extends {jspb.Message}
98
+ * @constructor
99
+ */
100
+ proto.Statement = function(opt_data) {
101
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Statement.repeatedFields_, null);
102
+ };
103
+ goog.inherits(proto.Statement, jspb.Message);
104
+ if (goog.DEBUG && !COMPILED) {
105
+ /**
106
+ * @public
107
+ * @override
108
+ */
109
+ proto.Statement.displayName = 'proto.Statement';
110
+ }
111
+ /**
112
+ * Generated by JsPbCodeGenerator.
113
+ * @param {Array=} opt_data Optional initial data array, typically from a
114
+ * server response, or constructed directly in Javascript. The array is used
115
+ * in place and becomes part of the constructed object. It is not cloned.
116
+ * If no data is provided, the constructed object will be empty, but still
117
+ * valid.
118
+ * @extends {jspb.Message}
119
+ * @constructor
120
+ */
121
+ proto.BasePolicy = function(opt_data) {
122
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.BasePolicy.repeatedFields_, null);
123
+ };
124
+ goog.inherits(proto.BasePolicy, jspb.Message);
125
+ if (goog.DEBUG && !COMPILED) {
126
+ /**
127
+ * @public
128
+ * @override
129
+ */
130
+ proto.BasePolicy.displayName = 'proto.BasePolicy';
87
131
  }
88
132
  /**
89
133
  * Generated by JsPbCodeGenerator.
@@ -116,16 +160,16 @@ if (goog.DEBUG && !COMPILED) {
116
160
  * @extends {jspb.Message}
117
161
  * @constructor
118
162
  */
119
- proto.BasePolicy = function(opt_data) {
163
+ proto.PolicyAction = function(opt_data) {
120
164
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
121
165
  };
122
- goog.inherits(proto.BasePolicy, jspb.Message);
166
+ goog.inherits(proto.PolicyAction, jspb.Message);
123
167
  if (goog.DEBUG && !COMPILED) {
124
168
  /**
125
169
  * @public
126
170
  * @override
127
171
  */
128
- proto.BasePolicy.displayName = 'proto.BasePolicy';
172
+ proto.PolicyAction.displayName = 'proto.PolicyAction';
129
173
  }
130
174
  /**
131
175
  * Generated by JsPbCodeGenerator.
@@ -994,7 +1038,7 @@ if (goog.DEBUG && !COMPILED) {
994
1038
  * @private {!Array<number>}
995
1039
  * @const
996
1040
  */
997
- proto.PolicyStatement.repeatedFields_ = [2,3];
1041
+ proto.PoliciesResponse.repeatedFields_ = [3];
998
1042
 
999
1043
 
1000
1044
 
@@ -1011,8 +1055,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
1011
1055
  * http://goto/soy-param-migration
1012
1056
  * @return {!Object}
1013
1057
  */
1014
- proto.PolicyStatement.prototype.toObject = function(opt_includeInstance) {
1015
- return proto.PolicyStatement.toObject(opt_includeInstance, this);
1058
+ proto.PoliciesResponse.prototype.toObject = function(opt_includeInstance) {
1059
+ return proto.PoliciesResponse.toObject(opt_includeInstance, this);
1016
1060
  };
1017
1061
 
1018
1062
 
@@ -1021,15 +1065,16 @@ proto.PolicyStatement.prototype.toObject = function(opt_includeInstance) {
1021
1065
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1022
1066
  * the JSPB instance for transitional soy proto support:
1023
1067
  * http://goto/soy-param-migration
1024
- * @param {!proto.PolicyStatement} msg The msg instance to transform.
1068
+ * @param {!proto.PoliciesResponse} msg The msg instance to transform.
1025
1069
  * @return {!Object}
1026
1070
  * @suppress {unusedLocalVariables} f is only used for nested messages
1027
1071
  */
1028
- proto.PolicyStatement.toObject = function(includeInstance, msg) {
1072
+ proto.PoliciesResponse.toObject = function(includeInstance, msg) {
1029
1073
  var f, obj = {
1030
- effect: jspb.Message.getFieldWithDefault(msg, 1, 0),
1031
- actionList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
1032
- resourceList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
1074
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
1075
+ description: jspb.Message.getFieldWithDefault(msg, 2, ""),
1076
+ statementList: jspb.Message.toObjectList(msg.getStatementList(),
1077
+ proto.Statement.toObject, includeInstance)
1033
1078
  };
1034
1079
 
1035
1080
  if (includeInstance) {
@@ -1043,23 +1088,23 @@ resourceList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined :
1043
1088
  /**
1044
1089
  * Deserializes binary data (in protobuf wire format).
1045
1090
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
1046
- * @return {!proto.PolicyStatement}
1091
+ * @return {!proto.PoliciesResponse}
1047
1092
  */
1048
- proto.PolicyStatement.deserializeBinary = function(bytes) {
1093
+ proto.PoliciesResponse.deserializeBinary = function(bytes) {
1049
1094
  var reader = new jspb.BinaryReader(bytes);
1050
- var msg = new proto.PolicyStatement;
1051
- return proto.PolicyStatement.deserializeBinaryFromReader(msg, reader);
1095
+ var msg = new proto.PoliciesResponse;
1096
+ return proto.PoliciesResponse.deserializeBinaryFromReader(msg, reader);
1052
1097
  };
1053
1098
 
1054
1099
 
1055
1100
  /**
1056
1101
  * Deserializes binary data (in protobuf wire format) from the
1057
1102
  * given reader into the given message object.
1058
- * @param {!proto.PolicyStatement} msg The message object to deserialize into.
1103
+ * @param {!proto.PoliciesResponse} msg The message object to deserialize into.
1059
1104
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1060
- * @return {!proto.PolicyStatement}
1105
+ * @return {!proto.PoliciesResponse}
1061
1106
  */
1062
- proto.PolicyStatement.deserializeBinaryFromReader = function(msg, reader) {
1107
+ proto.PoliciesResponse.deserializeBinaryFromReader = function(msg, reader) {
1063
1108
  while (reader.nextField()) {
1064
1109
  if (reader.isEndGroup()) {
1065
1110
  break;
@@ -1067,16 +1112,17 @@ proto.PolicyStatement.deserializeBinaryFromReader = function(msg, reader) {
1067
1112
  var field = reader.getFieldNumber();
1068
1113
  switch (field) {
1069
1114
  case 1:
1070
- var value = /** @type {!proto.Effect} */ (reader.readEnum());
1071
- msg.setEffect(value);
1115
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1116
+ msg.setName(value);
1072
1117
  break;
1073
1118
  case 2:
1074
1119
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
1075
- msg.addAction(value);
1120
+ msg.setDescription(value);
1076
1121
  break;
1077
1122
  case 3:
1078
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
1079
- msg.addResource(value);
1123
+ var value = new proto.Statement;
1124
+ reader.readMessage(value,proto.Statement.deserializeBinaryFromReader);
1125
+ msg.addStatement(value);
1080
1126
  break;
1081
1127
  default:
1082
1128
  reader.skipField();
@@ -1091,9 +1137,9 @@ proto.PolicyStatement.deserializeBinaryFromReader = function(msg, reader) {
1091
1137
  * Serializes the message to binary data (in protobuf wire format).
1092
1138
  * @return {!Uint8Array}
1093
1139
  */
1094
- proto.PolicyStatement.prototype.serializeBinary = function() {
1140
+ proto.PoliciesResponse.prototype.serializeBinary = function() {
1095
1141
  var writer = new jspb.BinaryWriter();
1096
- proto.PolicyStatement.serializeBinaryToWriter(this, writer);
1142
+ proto.PoliciesResponse.serializeBinaryToWriter(this, writer);
1097
1143
  return writer.getResultBuffer();
1098
1144
  };
1099
1145
 
@@ -1101,125 +1147,108 @@ proto.PolicyStatement.prototype.serializeBinary = function() {
1101
1147
  /**
1102
1148
  * Serializes the given message to binary data (in protobuf wire
1103
1149
  * format), writing to the given BinaryWriter.
1104
- * @param {!proto.PolicyStatement} message
1150
+ * @param {!proto.PoliciesResponse} message
1105
1151
  * @param {!jspb.BinaryWriter} writer
1106
1152
  * @suppress {unusedLocalVariables} f is only used for nested messages
1107
1153
  */
1108
- proto.PolicyStatement.serializeBinaryToWriter = function(message, writer) {
1154
+ proto.PoliciesResponse.serializeBinaryToWriter = function(message, writer) {
1109
1155
  var f = undefined;
1110
- f = message.getEffect();
1111
- if (f !== 0.0) {
1112
- writer.writeEnum(
1156
+ f = message.getName();
1157
+ if (f.length > 0) {
1158
+ writer.writeString(
1113
1159
  1,
1114
1160
  f
1115
1161
  );
1116
1162
  }
1117
- f = message.getActionList();
1163
+ f = message.getDescription();
1118
1164
  if (f.length > 0) {
1119
- writer.writeRepeatedString(
1165
+ writer.writeString(
1120
1166
  2,
1121
1167
  f
1122
1168
  );
1123
1169
  }
1124
- f = message.getResourceList();
1170
+ f = message.getStatementList();
1125
1171
  if (f.length > 0) {
1126
- writer.writeRepeatedString(
1172
+ writer.writeRepeatedMessage(
1127
1173
  3,
1128
- f
1174
+ f,
1175
+ proto.Statement.serializeBinaryToWriter
1129
1176
  );
1130
1177
  }
1131
1178
  };
1132
1179
 
1133
1180
 
1134
1181
  /**
1135
- * optional Effect effect = 1;
1136
- * @return {!proto.Effect}
1137
- */
1138
- proto.PolicyStatement.prototype.getEffect = function() {
1139
- return /** @type {!proto.Effect} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1140
- };
1141
-
1142
-
1143
- /**
1144
- * @param {!proto.Effect} value
1145
- * @return {!proto.PolicyStatement} returns this
1182
+ * optional string name = 1;
1183
+ * @return {string}
1146
1184
  */
1147
- proto.PolicyStatement.prototype.setEffect = function(value) {
1148
- return jspb.Message.setProto3EnumField(this, 1, value);
1185
+ proto.PoliciesResponse.prototype.getName = function() {
1186
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1149
1187
  };
1150
1188
 
1151
1189
 
1152
1190
  /**
1153
- * repeated string action = 2;
1154
- * @return {!Array<string>}
1191
+ * @param {string} value
1192
+ * @return {!proto.PoliciesResponse} returns this
1155
1193
  */
1156
- proto.PolicyStatement.prototype.getActionList = function() {
1157
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
1194
+ proto.PoliciesResponse.prototype.setName = function(value) {
1195
+ return jspb.Message.setProto3StringField(this, 1, value);
1158
1196
  };
1159
1197
 
1160
1198
 
1161
1199
  /**
1162
- * @param {!Array<string>} value
1163
- * @return {!proto.PolicyStatement} returns this
1200
+ * optional string description = 2;
1201
+ * @return {string}
1164
1202
  */
1165
- proto.PolicyStatement.prototype.setActionList = function(value) {
1166
- return jspb.Message.setField(this, 2, value || []);
1203
+ proto.PoliciesResponse.prototype.getDescription = function() {
1204
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1167
1205
  };
1168
1206
 
1169
1207
 
1170
1208
  /**
1171
1209
  * @param {string} value
1172
- * @param {number=} opt_index
1173
- * @return {!proto.PolicyStatement} returns this
1174
- */
1175
- proto.PolicyStatement.prototype.addAction = function(value, opt_index) {
1176
- return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
1177
- };
1178
-
1179
-
1180
- /**
1181
- * Clears the list making it empty but non-null.
1182
- * @return {!proto.PolicyStatement} returns this
1210
+ * @return {!proto.PoliciesResponse} returns this
1183
1211
  */
1184
- proto.PolicyStatement.prototype.clearActionList = function() {
1185
- return this.setActionList([]);
1212
+ proto.PoliciesResponse.prototype.setDescription = function(value) {
1213
+ return jspb.Message.setProto3StringField(this, 2, value);
1186
1214
  };
1187
1215
 
1188
1216
 
1189
1217
  /**
1190
- * repeated string resource = 3;
1191
- * @return {!Array<string>}
1218
+ * repeated Statement statement = 3;
1219
+ * @return {!Array<!proto.Statement>}
1192
1220
  */
1193
- proto.PolicyStatement.prototype.getResourceList = function() {
1194
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
1221
+ proto.PoliciesResponse.prototype.getStatementList = function() {
1222
+ return /** @type{!Array<!proto.Statement>} */ (
1223
+ jspb.Message.getRepeatedWrapperField(this, proto.Statement, 3));
1195
1224
  };
1196
1225
 
1197
1226
 
1198
1227
  /**
1199
- * @param {!Array<string>} value
1200
- * @return {!proto.PolicyStatement} returns this
1201
- */
1202
- proto.PolicyStatement.prototype.setResourceList = function(value) {
1203
- return jspb.Message.setField(this, 3, value || []);
1228
+ * @param {!Array<!proto.Statement>} value
1229
+ * @return {!proto.PoliciesResponse} returns this
1230
+ */
1231
+ proto.PoliciesResponse.prototype.setStatementList = function(value) {
1232
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
1204
1233
  };
1205
1234
 
1206
1235
 
1207
1236
  /**
1208
- * @param {string} value
1237
+ * @param {!proto.Statement=} opt_value
1209
1238
  * @param {number=} opt_index
1210
- * @return {!proto.PolicyStatement} returns this
1239
+ * @return {!proto.Statement}
1211
1240
  */
1212
- proto.PolicyStatement.prototype.addResource = function(value, opt_index) {
1213
- return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
1241
+ proto.PoliciesResponse.prototype.addStatement = function(opt_value, opt_index) {
1242
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.Statement, opt_index);
1214
1243
  };
1215
1244
 
1216
1245
 
1217
1246
  /**
1218
1247
  * Clears the list making it empty but non-null.
1219
- * @return {!proto.PolicyStatement} returns this
1248
+ * @return {!proto.PoliciesResponse} returns this
1220
1249
  */
1221
- proto.PolicyStatement.prototype.clearResourceList = function() {
1222
- return this.setResourceList([]);
1250
+ proto.PoliciesResponse.prototype.clearStatementList = function() {
1251
+ return this.setStatementList([]);
1223
1252
  };
1224
1253
 
1225
1254
 
@@ -1229,7 +1258,7 @@ proto.PolicyStatement.prototype.clearResourceList = function() {
1229
1258
  * @private {!Array<number>}
1230
1259
  * @const
1231
1260
  */
1232
- proto.Policy.repeatedFields_ = [3];
1261
+ proto.Statement.repeatedFields_ = [2];
1233
1262
 
1234
1263
 
1235
1264
 
@@ -1246,8 +1275,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
1246
1275
  * http://goto/soy-param-migration
1247
1276
  * @return {!Object}
1248
1277
  */
1249
- proto.Policy.prototype.toObject = function(opt_includeInstance) {
1250
- return proto.Policy.toObject(opt_includeInstance, this);
1278
+ proto.Statement.prototype.toObject = function(opt_includeInstance) {
1279
+ return proto.Statement.toObject(opt_includeInstance, this);
1251
1280
  };
1252
1281
 
1253
1282
 
@@ -1256,19 +1285,15 @@ proto.Policy.prototype.toObject = function(opt_includeInstance) {
1256
1285
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1257
1286
  * the JSPB instance for transitional soy proto support:
1258
1287
  * http://goto/soy-param-migration
1259
- * @param {!proto.Policy} msg The msg instance to transform.
1288
+ * @param {!proto.Statement} msg The msg instance to transform.
1260
1289
  * @return {!Object}
1261
1290
  * @suppress {unusedLocalVariables} f is only used for nested messages
1262
1291
  */
1263
- proto.Policy.toObject = function(includeInstance, msg) {
1292
+ proto.Statement.toObject = function(includeInstance, msg) {
1264
1293
  var f, obj = {
1265
1294
  name: jspb.Message.getFieldWithDefault(msg, 1, ""),
1266
- description: jspb.Message.getFieldWithDefault(msg, 2, ""),
1267
- statementList: jspb.Message.toObjectList(msg.getStatementList(),
1268
- proto.PolicyStatement.toObject, includeInstance),
1269
- referencesId: jspb.Message.getFieldWithDefault(msg, 4, ""),
1270
- createdAt: jspb.Message.getFieldWithDefault(msg, 5, ""),
1271
- updatedAt: jspb.Message.getFieldWithDefault(msg, 6, "")
1295
+ actionsList: jspb.Message.toObjectList(msg.getActionsList(),
1296
+ proto.Action.toObject, includeInstance)
1272
1297
  };
1273
1298
 
1274
1299
  if (includeInstance) {
@@ -1282,23 +1307,23 @@ updatedAt: jspb.Message.getFieldWithDefault(msg, 6, "")
1282
1307
  /**
1283
1308
  * Deserializes binary data (in protobuf wire format).
1284
1309
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
1285
- * @return {!proto.Policy}
1310
+ * @return {!proto.Statement}
1286
1311
  */
1287
- proto.Policy.deserializeBinary = function(bytes) {
1312
+ proto.Statement.deserializeBinary = function(bytes) {
1288
1313
  var reader = new jspb.BinaryReader(bytes);
1289
- var msg = new proto.Policy;
1290
- return proto.Policy.deserializeBinaryFromReader(msg, reader);
1314
+ var msg = new proto.Statement;
1315
+ return proto.Statement.deserializeBinaryFromReader(msg, reader);
1291
1316
  };
1292
1317
 
1293
1318
 
1294
1319
  /**
1295
1320
  * Deserializes binary data (in protobuf wire format) from the
1296
1321
  * given reader into the given message object.
1297
- * @param {!proto.Policy} msg The message object to deserialize into.
1322
+ * @param {!proto.Statement} msg The message object to deserialize into.
1298
1323
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1299
- * @return {!proto.Policy}
1324
+ * @return {!proto.Statement}
1300
1325
  */
1301
- proto.Policy.deserializeBinaryFromReader = function(msg, reader) {
1326
+ proto.Statement.deserializeBinaryFromReader = function(msg, reader) {
1302
1327
  while (reader.nextField()) {
1303
1328
  if (reader.isEndGroup()) {
1304
1329
  break;
@@ -1310,25 +1335,9 @@ proto.Policy.deserializeBinaryFromReader = function(msg, reader) {
1310
1335
  msg.setName(value);
1311
1336
  break;
1312
1337
  case 2:
1313
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
1314
- msg.setDescription(value);
1315
- break;
1316
- case 3:
1317
- var value = new proto.PolicyStatement;
1318
- reader.readMessage(value,proto.PolicyStatement.deserializeBinaryFromReader);
1319
- msg.addStatement(value);
1320
- break;
1321
- case 4:
1322
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
1323
- msg.setReferencesId(value);
1324
- break;
1325
- case 5:
1326
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
1327
- msg.setCreatedAt(value);
1328
- break;
1329
- case 6:
1330
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
1331
- msg.setUpdatedAt(value);
1338
+ var value = new proto.Action;
1339
+ reader.readMessage(value,proto.Action.deserializeBinaryFromReader);
1340
+ msg.addActions(value);
1332
1341
  break;
1333
1342
  default:
1334
1343
  reader.skipField();
@@ -1343,9 +1352,9 @@ proto.Policy.deserializeBinaryFromReader = function(msg, reader) {
1343
1352
  * Serializes the message to binary data (in protobuf wire format).
1344
1353
  * @return {!Uint8Array}
1345
1354
  */
1346
- proto.Policy.prototype.serializeBinary = function() {
1355
+ proto.Statement.prototype.serializeBinary = function() {
1347
1356
  var writer = new jspb.BinaryWriter();
1348
- proto.Policy.serializeBinaryToWriter(this, writer);
1357
+ proto.Statement.serializeBinaryToWriter(this, writer);
1349
1358
  return writer.getResultBuffer();
1350
1359
  };
1351
1360
 
@@ -1353,11 +1362,11 @@ proto.Policy.prototype.serializeBinary = function() {
1353
1362
  /**
1354
1363
  * Serializes the given message to binary data (in protobuf wire
1355
1364
  * format), writing to the given BinaryWriter.
1356
- * @param {!proto.Policy} message
1365
+ * @param {!proto.Statement} message
1357
1366
  * @param {!jspb.BinaryWriter} writer
1358
1367
  * @suppress {unusedLocalVariables} f is only used for nested messages
1359
1368
  */
1360
- proto.Policy.serializeBinaryToWriter = function(message, writer) {
1369
+ proto.Statement.serializeBinaryToWriter = function(message, writer) {
1361
1370
  var f = undefined;
1362
1371
  f = message.getName();
1363
1372
  if (f.length > 0) {
@@ -1366,40 +1375,12 @@ proto.Policy.serializeBinaryToWriter = function(message, writer) {
1366
1375
  f
1367
1376
  );
1368
1377
  }
1369
- f = message.getDescription();
1370
- if (f.length > 0) {
1371
- writer.writeString(
1372
- 2,
1373
- f
1374
- );
1375
- }
1376
- f = message.getStatementList();
1378
+ f = message.getActionsList();
1377
1379
  if (f.length > 0) {
1378
1380
  writer.writeRepeatedMessage(
1379
- 3,
1381
+ 2,
1380
1382
  f,
1381
- proto.PolicyStatement.serializeBinaryToWriter
1382
- );
1383
- }
1384
- f = message.getReferencesId();
1385
- if (f.length > 0) {
1386
- writer.writeString(
1387
- 4,
1388
- f
1389
- );
1390
- }
1391
- f = message.getCreatedAt();
1392
- if (f.length > 0) {
1393
- writer.writeString(
1394
- 5,
1395
- f
1396
- );
1397
- }
1398
- f = message.getUpdatedAt();
1399
- if (f.length > 0) {
1400
- writer.writeString(
1401
- 6,
1402
- f
1383
+ proto.Action.serializeBinaryToWriter
1403
1384
  );
1404
1385
  }
1405
1386
  };
@@ -1409,130 +1390,65 @@ proto.Policy.serializeBinaryToWriter = function(message, writer) {
1409
1390
  * optional string name = 1;
1410
1391
  * @return {string}
1411
1392
  */
1412
- proto.Policy.prototype.getName = function() {
1393
+ proto.Statement.prototype.getName = function() {
1413
1394
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1414
1395
  };
1415
1396
 
1416
1397
 
1417
1398
  /**
1418
1399
  * @param {string} value
1419
- * @return {!proto.Policy} returns this
1400
+ * @return {!proto.Statement} returns this
1420
1401
  */
1421
- proto.Policy.prototype.setName = function(value) {
1402
+ proto.Statement.prototype.setName = function(value) {
1422
1403
  return jspb.Message.setProto3StringField(this, 1, value);
1423
1404
  };
1424
1405
 
1425
1406
 
1426
1407
  /**
1427
- * optional string description = 2;
1428
- * @return {string}
1429
- */
1430
- proto.Policy.prototype.getDescription = function() {
1431
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1432
- };
1433
-
1434
-
1435
- /**
1436
- * @param {string} value
1437
- * @return {!proto.Policy} returns this
1438
- */
1439
- proto.Policy.prototype.setDescription = function(value) {
1440
- return jspb.Message.setProto3StringField(this, 2, value);
1441
- };
1442
-
1443
-
1444
- /**
1445
- * repeated PolicyStatement statement = 3;
1446
- * @return {!Array<!proto.PolicyStatement>}
1408
+ * repeated Action actions = 2;
1409
+ * @return {!Array<!proto.Action>}
1447
1410
  */
1448
- proto.Policy.prototype.getStatementList = function() {
1449
- return /** @type{!Array<!proto.PolicyStatement>} */ (
1450
- jspb.Message.getRepeatedWrapperField(this, proto.PolicyStatement, 3));
1411
+ proto.Statement.prototype.getActionsList = function() {
1412
+ return /** @type{!Array<!proto.Action>} */ (
1413
+ jspb.Message.getRepeatedWrapperField(this, proto.Action, 2));
1451
1414
  };
1452
1415
 
1453
1416
 
1454
1417
  /**
1455
- * @param {!Array<!proto.PolicyStatement>} value
1456
- * @return {!proto.Policy} returns this
1418
+ * @param {!Array<!proto.Action>} value
1419
+ * @return {!proto.Statement} returns this
1457
1420
  */
1458
- proto.Policy.prototype.setStatementList = function(value) {
1459
- return jspb.Message.setRepeatedWrapperField(this, 3, value);
1421
+ proto.Statement.prototype.setActionsList = function(value) {
1422
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
1460
1423
  };
1461
1424
 
1462
1425
 
1463
1426
  /**
1464
- * @param {!proto.PolicyStatement=} opt_value
1427
+ * @param {!proto.Action=} opt_value
1465
1428
  * @param {number=} opt_index
1466
- * @return {!proto.PolicyStatement}
1429
+ * @return {!proto.Action}
1467
1430
  */
1468
- proto.Policy.prototype.addStatement = function(opt_value, opt_index) {
1469
- return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.PolicyStatement, opt_index);
1431
+ proto.Statement.prototype.addActions = function(opt_value, opt_index) {
1432
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.Action, opt_index);
1470
1433
  };
1471
1434
 
1472
1435
 
1473
1436
  /**
1474
1437
  * Clears the list making it empty but non-null.
1475
- * @return {!proto.Policy} returns this
1476
- */
1477
- proto.Policy.prototype.clearStatementList = function() {
1478
- return this.setStatementList([]);
1479
- };
1480
-
1481
-
1482
- /**
1483
- * optional string references_id = 4;
1484
- * @return {string}
1485
- */
1486
- proto.Policy.prototype.getReferencesId = function() {
1487
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1488
- };
1489
-
1490
-
1491
- /**
1492
- * @param {string} value
1493
- * @return {!proto.Policy} returns this
1494
- */
1495
- proto.Policy.prototype.setReferencesId = function(value) {
1496
- return jspb.Message.setProto3StringField(this, 4, value);
1497
- };
1498
-
1499
-
1500
- /**
1501
- * optional string created_at = 5;
1502
- * @return {string}
1503
- */
1504
- proto.Policy.prototype.getCreatedAt = function() {
1505
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1506
- };
1507
-
1508
-
1509
- /**
1510
- * @param {string} value
1511
- * @return {!proto.Policy} returns this
1438
+ * @return {!proto.Statement} returns this
1512
1439
  */
1513
- proto.Policy.prototype.setCreatedAt = function(value) {
1514
- return jspb.Message.setProto3StringField(this, 5, value);
1440
+ proto.Statement.prototype.clearActionsList = function() {
1441
+ return this.setActionsList([]);
1515
1442
  };
1516
1443
 
1517
1444
 
1518
- /**
1519
- * optional string updated_at = 6;
1520
- * @return {string}
1521
- */
1522
- proto.Policy.prototype.getUpdatedAt = function() {
1523
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1524
- };
1525
-
1526
1445
 
1527
1446
  /**
1528
- * @param {string} value
1529
- * @return {!proto.Policy} returns this
1447
+ * List of repeated fields within this message type.
1448
+ * @private {!Array<number>}
1449
+ * @const
1530
1450
  */
1531
- proto.Policy.prototype.setUpdatedAt = function(value) {
1532
- return jspb.Message.setProto3StringField(this, 6, value);
1533
- };
1534
-
1535
-
1451
+ proto.BasePolicy.repeatedFields_ = [4];
1536
1452
 
1537
1453
 
1538
1454
 
@@ -1555,171 +1471,1105 @@ proto.BasePolicy.prototype.toObject = function(opt_includeInstance) {
1555
1471
 
1556
1472
 
1557
1473
  /**
1558
- * Static version of the {@see toObject} method.
1559
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1560
- * the JSPB instance for transitional soy proto support:
1561
- * http://goto/soy-param-migration
1562
- * @param {!proto.BasePolicy} msg The msg instance to transform.
1563
- * @return {!Object}
1564
- * @suppress {unusedLocalVariables} f is only used for nested messages
1474
+ * Static version of the {@see toObject} method.
1475
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1476
+ * the JSPB instance for transitional soy proto support:
1477
+ * http://goto/soy-param-migration
1478
+ * @param {!proto.BasePolicy} msg The msg instance to transform.
1479
+ * @return {!Object}
1480
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1481
+ */
1482
+ proto.BasePolicy.toObject = function(includeInstance, msg) {
1483
+ var f, obj = {
1484
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1485
+ names: jspb.Message.getFieldWithDefault(msg, 2, ""),
1486
+ description: jspb.Message.getFieldWithDefault(msg, 3, ""),
1487
+ policiesActionList: jspb.Message.toObjectList(msg.getPoliciesActionList(),
1488
+ proto.PolicyAction.toObject, includeInstance)
1489
+ };
1490
+
1491
+ if (includeInstance) {
1492
+ obj.$jspbMessageInstance = msg;
1493
+ }
1494
+ return obj;
1495
+ };
1496
+ }
1497
+
1498
+
1499
+ /**
1500
+ * Deserializes binary data (in protobuf wire format).
1501
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1502
+ * @return {!proto.BasePolicy}
1503
+ */
1504
+ proto.BasePolicy.deserializeBinary = function(bytes) {
1505
+ var reader = new jspb.BinaryReader(bytes);
1506
+ var msg = new proto.BasePolicy;
1507
+ return proto.BasePolicy.deserializeBinaryFromReader(msg, reader);
1508
+ };
1509
+
1510
+
1511
+ /**
1512
+ * Deserializes binary data (in protobuf wire format) from the
1513
+ * given reader into the given message object.
1514
+ * @param {!proto.BasePolicy} msg The message object to deserialize into.
1515
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1516
+ * @return {!proto.BasePolicy}
1517
+ */
1518
+ proto.BasePolicy.deserializeBinaryFromReader = function(msg, reader) {
1519
+ while (reader.nextField()) {
1520
+ if (reader.isEndGroup()) {
1521
+ break;
1522
+ }
1523
+ var field = reader.getFieldNumber();
1524
+ switch (field) {
1525
+ case 1:
1526
+ var value = /** @type {number} */ (reader.readInt32());
1527
+ msg.setId(value);
1528
+ break;
1529
+ case 2:
1530
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1531
+ msg.setNames(value);
1532
+ break;
1533
+ case 3:
1534
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1535
+ msg.setDescription(value);
1536
+ break;
1537
+ case 4:
1538
+ var value = new proto.PolicyAction;
1539
+ reader.readMessage(value,proto.PolicyAction.deserializeBinaryFromReader);
1540
+ msg.addPoliciesAction(value);
1541
+ break;
1542
+ default:
1543
+ reader.skipField();
1544
+ break;
1545
+ }
1546
+ }
1547
+ return msg;
1548
+ };
1549
+
1550
+
1551
+ /**
1552
+ * Serializes the message to binary data (in protobuf wire format).
1553
+ * @return {!Uint8Array}
1554
+ */
1555
+ proto.BasePolicy.prototype.serializeBinary = function() {
1556
+ var writer = new jspb.BinaryWriter();
1557
+ proto.BasePolicy.serializeBinaryToWriter(this, writer);
1558
+ return writer.getResultBuffer();
1559
+ };
1560
+
1561
+
1562
+ /**
1563
+ * Serializes the given message to binary data (in protobuf wire
1564
+ * format), writing to the given BinaryWriter.
1565
+ * @param {!proto.BasePolicy} message
1566
+ * @param {!jspb.BinaryWriter} writer
1567
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1568
+ */
1569
+ proto.BasePolicy.serializeBinaryToWriter = function(message, writer) {
1570
+ var f = undefined;
1571
+ f = message.getId();
1572
+ if (f !== 0) {
1573
+ writer.writeInt32(
1574
+ 1,
1575
+ f
1576
+ );
1577
+ }
1578
+ f = message.getNames();
1579
+ if (f.length > 0) {
1580
+ writer.writeString(
1581
+ 2,
1582
+ f
1583
+ );
1584
+ }
1585
+ f = message.getDescription();
1586
+ if (f.length > 0) {
1587
+ writer.writeString(
1588
+ 3,
1589
+ f
1590
+ );
1591
+ }
1592
+ f = message.getPoliciesActionList();
1593
+ if (f.length > 0) {
1594
+ writer.writeRepeatedMessage(
1595
+ 4,
1596
+ f,
1597
+ proto.PolicyAction.serializeBinaryToWriter
1598
+ );
1599
+ }
1600
+ };
1601
+
1602
+
1603
+ /**
1604
+ * optional int32 id = 1;
1605
+ * @return {number}
1606
+ */
1607
+ proto.BasePolicy.prototype.getId = function() {
1608
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1609
+ };
1610
+
1611
+
1612
+ /**
1613
+ * @param {number} value
1614
+ * @return {!proto.BasePolicy} returns this
1615
+ */
1616
+ proto.BasePolicy.prototype.setId = function(value) {
1617
+ return jspb.Message.setProto3IntField(this, 1, value);
1618
+ };
1619
+
1620
+
1621
+ /**
1622
+ * optional string names = 2;
1623
+ * @return {string}
1624
+ */
1625
+ proto.BasePolicy.prototype.getNames = function() {
1626
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1627
+ };
1628
+
1629
+
1630
+ /**
1631
+ * @param {string} value
1632
+ * @return {!proto.BasePolicy} returns this
1633
+ */
1634
+ proto.BasePolicy.prototype.setNames = function(value) {
1635
+ return jspb.Message.setProto3StringField(this, 2, value);
1636
+ };
1637
+
1638
+
1639
+ /**
1640
+ * optional string description = 3;
1641
+ * @return {string}
1642
+ */
1643
+ proto.BasePolicy.prototype.getDescription = function() {
1644
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1645
+ };
1646
+
1647
+
1648
+ /**
1649
+ * @param {string} value
1650
+ * @return {!proto.BasePolicy} returns this
1651
+ */
1652
+ proto.BasePolicy.prototype.setDescription = function(value) {
1653
+ return jspb.Message.setProto3StringField(this, 3, value);
1654
+ };
1655
+
1656
+
1657
+ /**
1658
+ * repeated PolicyAction policies_action = 4;
1659
+ * @return {!Array<!proto.PolicyAction>}
1660
+ */
1661
+ proto.BasePolicy.prototype.getPoliciesActionList = function() {
1662
+ return /** @type{!Array<!proto.PolicyAction>} */ (
1663
+ jspb.Message.getRepeatedWrapperField(this, proto.PolicyAction, 4));
1664
+ };
1665
+
1666
+
1667
+ /**
1668
+ * @param {!Array<!proto.PolicyAction>} value
1669
+ * @return {!proto.BasePolicy} returns this
1670
+ */
1671
+ proto.BasePolicy.prototype.setPoliciesActionList = function(value) {
1672
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
1673
+ };
1674
+
1675
+
1676
+ /**
1677
+ * @param {!proto.PolicyAction=} opt_value
1678
+ * @param {number=} opt_index
1679
+ * @return {!proto.PolicyAction}
1680
+ */
1681
+ proto.BasePolicy.prototype.addPoliciesAction = function(opt_value, opt_index) {
1682
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.PolicyAction, opt_index);
1683
+ };
1684
+
1685
+
1686
+ /**
1687
+ * Clears the list making it empty but non-null.
1688
+ * @return {!proto.BasePolicy} returns this
1689
+ */
1690
+ proto.BasePolicy.prototype.clearPoliciesActionList = function() {
1691
+ return this.setPoliciesActionList([]);
1692
+ };
1693
+
1694
+
1695
+
1696
+ /**
1697
+ * List of repeated fields within this message type.
1698
+ * @private {!Array<number>}
1699
+ * @const
1700
+ */
1701
+ proto.Policy.repeatedFields_ = [10];
1702
+
1703
+
1704
+
1705
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1706
+ /**
1707
+ * Creates an object representation of this proto.
1708
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1709
+ * Optional fields that are not set will be set to undefined.
1710
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1711
+ * For the list of reserved names please see:
1712
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1713
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1714
+ * JSPB instance for transitional soy proto support:
1715
+ * http://goto/soy-param-migration
1716
+ * @return {!Object}
1717
+ */
1718
+ proto.Policy.prototype.toObject = function(opt_includeInstance) {
1719
+ return proto.Policy.toObject(opt_includeInstance, this);
1720
+ };
1721
+
1722
+
1723
+ /**
1724
+ * Static version of the {@see toObject} method.
1725
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1726
+ * the JSPB instance for transitional soy proto support:
1727
+ * http://goto/soy-param-migration
1728
+ * @param {!proto.Policy} msg The msg instance to transform.
1729
+ * @return {!Object}
1730
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1731
+ */
1732
+ proto.Policy.toObject = function(includeInstance, msg) {
1733
+ var f, obj = {
1734
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1735
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
1736
+ description: jspb.Message.getFieldWithDefault(msg, 3, ""),
1737
+ referencesId: jspb.Message.getFieldWithDefault(msg, 4, ""),
1738
+ createdAt: jspb.Message.getFieldWithDefault(msg, 5, ""),
1739
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 6, ""),
1740
+ createdBy: jspb.Message.getFieldWithDefault(msg, 7, ""),
1741
+ updatedBy: jspb.Message.getFieldWithDefault(msg, 8, ""),
1742
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 9, ""),
1743
+ policiesActionsList: jspb.Message.toObjectList(msg.getPoliciesActionsList(),
1744
+ proto.PolicyAction.toObject, includeInstance)
1745
+ };
1746
+
1747
+ if (includeInstance) {
1748
+ obj.$jspbMessageInstance = msg;
1749
+ }
1750
+ return obj;
1751
+ };
1752
+ }
1753
+
1754
+
1755
+ /**
1756
+ * Deserializes binary data (in protobuf wire format).
1757
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1758
+ * @return {!proto.Policy}
1759
+ */
1760
+ proto.Policy.deserializeBinary = function(bytes) {
1761
+ var reader = new jspb.BinaryReader(bytes);
1762
+ var msg = new proto.Policy;
1763
+ return proto.Policy.deserializeBinaryFromReader(msg, reader);
1764
+ };
1765
+
1766
+
1767
+ /**
1768
+ * Deserializes binary data (in protobuf wire format) from the
1769
+ * given reader into the given message object.
1770
+ * @param {!proto.Policy} msg The message object to deserialize into.
1771
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1772
+ * @return {!proto.Policy}
1773
+ */
1774
+ proto.Policy.deserializeBinaryFromReader = function(msg, reader) {
1775
+ while (reader.nextField()) {
1776
+ if (reader.isEndGroup()) {
1777
+ break;
1778
+ }
1779
+ var field = reader.getFieldNumber();
1780
+ switch (field) {
1781
+ case 1:
1782
+ var value = /** @type {number} */ (reader.readInt32());
1783
+ msg.setId(value);
1784
+ break;
1785
+ case 2:
1786
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1787
+ msg.setName(value);
1788
+ break;
1789
+ case 3:
1790
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1791
+ msg.setDescription(value);
1792
+ break;
1793
+ case 4:
1794
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1795
+ msg.setReferencesId(value);
1796
+ break;
1797
+ case 5:
1798
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1799
+ msg.setCreatedAt(value);
1800
+ break;
1801
+ case 6:
1802
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1803
+ msg.setUpdatedAt(value);
1804
+ break;
1805
+ case 7:
1806
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1807
+ msg.setCreatedBy(value);
1808
+ break;
1809
+ case 8:
1810
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1811
+ msg.setUpdatedBy(value);
1812
+ break;
1813
+ case 9:
1814
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1815
+ msg.setCompaniesReferencesId(value);
1816
+ break;
1817
+ case 10:
1818
+ var value = new proto.PolicyAction;
1819
+ reader.readMessage(value,proto.PolicyAction.deserializeBinaryFromReader);
1820
+ msg.addPoliciesActions(value);
1821
+ break;
1822
+ default:
1823
+ reader.skipField();
1824
+ break;
1825
+ }
1826
+ }
1827
+ return msg;
1828
+ };
1829
+
1830
+
1831
+ /**
1832
+ * Serializes the message to binary data (in protobuf wire format).
1833
+ * @return {!Uint8Array}
1834
+ */
1835
+ proto.Policy.prototype.serializeBinary = function() {
1836
+ var writer = new jspb.BinaryWriter();
1837
+ proto.Policy.serializeBinaryToWriter(this, writer);
1838
+ return writer.getResultBuffer();
1839
+ };
1840
+
1841
+
1842
+ /**
1843
+ * Serializes the given message to binary data (in protobuf wire
1844
+ * format), writing to the given BinaryWriter.
1845
+ * @param {!proto.Policy} message
1846
+ * @param {!jspb.BinaryWriter} writer
1847
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1848
+ */
1849
+ proto.Policy.serializeBinaryToWriter = function(message, writer) {
1850
+ var f = undefined;
1851
+ f = message.getId();
1852
+ if (f !== 0) {
1853
+ writer.writeInt32(
1854
+ 1,
1855
+ f
1856
+ );
1857
+ }
1858
+ f = message.getName();
1859
+ if (f.length > 0) {
1860
+ writer.writeString(
1861
+ 2,
1862
+ f
1863
+ );
1864
+ }
1865
+ f = message.getDescription();
1866
+ if (f.length > 0) {
1867
+ writer.writeString(
1868
+ 3,
1869
+ f
1870
+ );
1871
+ }
1872
+ f = message.getReferencesId();
1873
+ if (f.length > 0) {
1874
+ writer.writeString(
1875
+ 4,
1876
+ f
1877
+ );
1878
+ }
1879
+ f = message.getCreatedAt();
1880
+ if (f.length > 0) {
1881
+ writer.writeString(
1882
+ 5,
1883
+ f
1884
+ );
1885
+ }
1886
+ f = message.getUpdatedAt();
1887
+ if (f.length > 0) {
1888
+ writer.writeString(
1889
+ 6,
1890
+ f
1891
+ );
1892
+ }
1893
+ f = message.getCreatedBy();
1894
+ if (f.length > 0) {
1895
+ writer.writeString(
1896
+ 7,
1897
+ f
1898
+ );
1899
+ }
1900
+ f = message.getUpdatedBy();
1901
+ if (f.length > 0) {
1902
+ writer.writeString(
1903
+ 8,
1904
+ f
1905
+ );
1906
+ }
1907
+ f = message.getCompaniesReferencesId();
1908
+ if (f.length > 0) {
1909
+ writer.writeString(
1910
+ 9,
1911
+ f
1912
+ );
1913
+ }
1914
+ f = message.getPoliciesActionsList();
1915
+ if (f.length > 0) {
1916
+ writer.writeRepeatedMessage(
1917
+ 10,
1918
+ f,
1919
+ proto.PolicyAction.serializeBinaryToWriter
1920
+ );
1921
+ }
1922
+ };
1923
+
1924
+
1925
+ /**
1926
+ * optional int32 id = 1;
1927
+ * @return {number}
1928
+ */
1929
+ proto.Policy.prototype.getId = function() {
1930
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1931
+ };
1932
+
1933
+
1934
+ /**
1935
+ * @param {number} value
1936
+ * @return {!proto.Policy} returns this
1937
+ */
1938
+ proto.Policy.prototype.setId = function(value) {
1939
+ return jspb.Message.setProto3IntField(this, 1, value);
1940
+ };
1941
+
1942
+
1943
+ /**
1944
+ * optional string name = 2;
1945
+ * @return {string}
1946
+ */
1947
+ proto.Policy.prototype.getName = function() {
1948
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1949
+ };
1950
+
1951
+
1952
+ /**
1953
+ * @param {string} value
1954
+ * @return {!proto.Policy} returns this
1955
+ */
1956
+ proto.Policy.prototype.setName = function(value) {
1957
+ return jspb.Message.setProto3StringField(this, 2, value);
1958
+ };
1959
+
1960
+
1961
+ /**
1962
+ * optional string description = 3;
1963
+ * @return {string}
1964
+ */
1965
+ proto.Policy.prototype.getDescription = function() {
1966
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1967
+ };
1968
+
1969
+
1970
+ /**
1971
+ * @param {string} value
1972
+ * @return {!proto.Policy} returns this
1973
+ */
1974
+ proto.Policy.prototype.setDescription = function(value) {
1975
+ return jspb.Message.setProto3StringField(this, 3, value);
1976
+ };
1977
+
1978
+
1979
+ /**
1980
+ * optional string references_id = 4;
1981
+ * @return {string}
1982
+ */
1983
+ proto.Policy.prototype.getReferencesId = function() {
1984
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1985
+ };
1986
+
1987
+
1988
+ /**
1989
+ * @param {string} value
1990
+ * @return {!proto.Policy} returns this
1991
+ */
1992
+ proto.Policy.prototype.setReferencesId = function(value) {
1993
+ return jspb.Message.setProto3StringField(this, 4, value);
1994
+ };
1995
+
1996
+
1997
+ /**
1998
+ * optional string created_at = 5;
1999
+ * @return {string}
2000
+ */
2001
+ proto.Policy.prototype.getCreatedAt = function() {
2002
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2003
+ };
2004
+
2005
+
2006
+ /**
2007
+ * @param {string} value
2008
+ * @return {!proto.Policy} returns this
2009
+ */
2010
+ proto.Policy.prototype.setCreatedAt = function(value) {
2011
+ return jspb.Message.setProto3StringField(this, 5, value);
2012
+ };
2013
+
2014
+
2015
+ /**
2016
+ * optional string updated_at = 6;
2017
+ * @return {string}
2018
+ */
2019
+ proto.Policy.prototype.getUpdatedAt = function() {
2020
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
2021
+ };
2022
+
2023
+
2024
+ /**
2025
+ * @param {string} value
2026
+ * @return {!proto.Policy} returns this
2027
+ */
2028
+ proto.Policy.prototype.setUpdatedAt = function(value) {
2029
+ return jspb.Message.setProto3StringField(this, 6, value);
2030
+ };
2031
+
2032
+
2033
+ /**
2034
+ * optional string created_by = 7;
2035
+ * @return {string}
2036
+ */
2037
+ proto.Policy.prototype.getCreatedBy = function() {
2038
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
2039
+ };
2040
+
2041
+
2042
+ /**
2043
+ * @param {string} value
2044
+ * @return {!proto.Policy} returns this
2045
+ */
2046
+ proto.Policy.prototype.setCreatedBy = function(value) {
2047
+ return jspb.Message.setProto3StringField(this, 7, value);
2048
+ };
2049
+
2050
+
2051
+ /**
2052
+ * optional string updated_by = 8;
2053
+ * @return {string}
2054
+ */
2055
+ proto.Policy.prototype.getUpdatedBy = function() {
2056
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
2057
+ };
2058
+
2059
+
2060
+ /**
2061
+ * @param {string} value
2062
+ * @return {!proto.Policy} returns this
2063
+ */
2064
+ proto.Policy.prototype.setUpdatedBy = function(value) {
2065
+ return jspb.Message.setProto3StringField(this, 8, value);
2066
+ };
2067
+
2068
+
2069
+ /**
2070
+ * optional string companies_references_id = 9;
2071
+ * @return {string}
2072
+ */
2073
+ proto.Policy.prototype.getCompaniesReferencesId = function() {
2074
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
2075
+ };
2076
+
2077
+
2078
+ /**
2079
+ * @param {string} value
2080
+ * @return {!proto.Policy} returns this
2081
+ */
2082
+ proto.Policy.prototype.setCompaniesReferencesId = function(value) {
2083
+ return jspb.Message.setProto3StringField(this, 9, value);
2084
+ };
2085
+
2086
+
2087
+ /**
2088
+ * repeated PolicyAction policies_actions = 10;
2089
+ * @return {!Array<!proto.PolicyAction>}
2090
+ */
2091
+ proto.Policy.prototype.getPoliciesActionsList = function() {
2092
+ return /** @type{!Array<!proto.PolicyAction>} */ (
2093
+ jspb.Message.getRepeatedWrapperField(this, proto.PolicyAction, 10));
2094
+ };
2095
+
2096
+
2097
+ /**
2098
+ * @param {!Array<!proto.PolicyAction>} value
2099
+ * @return {!proto.Policy} returns this
2100
+ */
2101
+ proto.Policy.prototype.setPoliciesActionsList = function(value) {
2102
+ return jspb.Message.setRepeatedWrapperField(this, 10, value);
2103
+ };
2104
+
2105
+
2106
+ /**
2107
+ * @param {!proto.PolicyAction=} opt_value
2108
+ * @param {number=} opt_index
2109
+ * @return {!proto.PolicyAction}
2110
+ */
2111
+ proto.Policy.prototype.addPoliciesActions = function(opt_value, opt_index) {
2112
+ return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.PolicyAction, opt_index);
2113
+ };
2114
+
2115
+
2116
+ /**
2117
+ * Clears the list making it empty but non-null.
2118
+ * @return {!proto.Policy} returns this
2119
+ */
2120
+ proto.Policy.prototype.clearPoliciesActionsList = function() {
2121
+ return this.setPoliciesActionsList([]);
2122
+ };
2123
+
2124
+
2125
+
2126
+
2127
+
2128
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2129
+ /**
2130
+ * Creates an object representation of this proto.
2131
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2132
+ * Optional fields that are not set will be set to undefined.
2133
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2134
+ * For the list of reserved names please see:
2135
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2136
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2137
+ * JSPB instance for transitional soy proto support:
2138
+ * http://goto/soy-param-migration
2139
+ * @return {!Object}
2140
+ */
2141
+ proto.PolicyAction.prototype.toObject = function(opt_includeInstance) {
2142
+ return proto.PolicyAction.toObject(opt_includeInstance, this);
2143
+ };
2144
+
2145
+
2146
+ /**
2147
+ * Static version of the {@see toObject} method.
2148
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2149
+ * the JSPB instance for transitional soy proto support:
2150
+ * http://goto/soy-param-migration
2151
+ * @param {!proto.PolicyAction} msg The msg instance to transform.
2152
+ * @return {!Object}
2153
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2154
+ */
2155
+ proto.PolicyAction.toObject = function(includeInstance, msg) {
2156
+ var f, obj = {
2157
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
2158
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
2159
+ policiesReferencesId: jspb.Message.getFieldWithDefault(msg, 3, ""),
2160
+ actionReferencesId: jspb.Message.getFieldWithDefault(msg, 4, ""),
2161
+ createdAt: jspb.Message.getFieldWithDefault(msg, 5, ""),
2162
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 6, ""),
2163
+ createdBy: jspb.Message.getFieldWithDefault(msg, 7, ""),
2164
+ updatedBy: jspb.Message.getFieldWithDefault(msg, 8, ""),
2165
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 9, ""),
2166
+ resourceReferencesId: jspb.Message.getFieldWithDefault(msg, 10, ""),
2167
+ action: (f = msg.getAction()) && proto.Action.toObject(includeInstance, f)
2168
+ };
2169
+
2170
+ if (includeInstance) {
2171
+ obj.$jspbMessageInstance = msg;
2172
+ }
2173
+ return obj;
2174
+ };
2175
+ }
2176
+
2177
+
2178
+ /**
2179
+ * Deserializes binary data (in protobuf wire format).
2180
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2181
+ * @return {!proto.PolicyAction}
2182
+ */
2183
+ proto.PolicyAction.deserializeBinary = function(bytes) {
2184
+ var reader = new jspb.BinaryReader(bytes);
2185
+ var msg = new proto.PolicyAction;
2186
+ return proto.PolicyAction.deserializeBinaryFromReader(msg, reader);
2187
+ };
2188
+
2189
+
2190
+ /**
2191
+ * Deserializes binary data (in protobuf wire format) from the
2192
+ * given reader into the given message object.
2193
+ * @param {!proto.PolicyAction} msg The message object to deserialize into.
2194
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2195
+ * @return {!proto.PolicyAction}
2196
+ */
2197
+ proto.PolicyAction.deserializeBinaryFromReader = function(msg, reader) {
2198
+ while (reader.nextField()) {
2199
+ if (reader.isEndGroup()) {
2200
+ break;
2201
+ }
2202
+ var field = reader.getFieldNumber();
2203
+ switch (field) {
2204
+ case 1:
2205
+ var value = /** @type {number} */ (reader.readInt32());
2206
+ msg.setId(value);
2207
+ break;
2208
+ case 2:
2209
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2210
+ msg.setName(value);
2211
+ break;
2212
+ case 3:
2213
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2214
+ msg.setPoliciesReferencesId(value);
2215
+ break;
2216
+ case 4:
2217
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2218
+ msg.setActionReferencesId(value);
2219
+ break;
2220
+ case 5:
2221
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2222
+ msg.setCreatedAt(value);
2223
+ break;
2224
+ case 6:
2225
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2226
+ msg.setUpdatedAt(value);
2227
+ break;
2228
+ case 7:
2229
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2230
+ msg.setCreatedBy(value);
2231
+ break;
2232
+ case 8:
2233
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2234
+ msg.setUpdatedBy(value);
2235
+ break;
2236
+ case 9:
2237
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2238
+ msg.setCompaniesReferencesId(value);
2239
+ break;
2240
+ case 10:
2241
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2242
+ msg.setResourceReferencesId(value);
2243
+ break;
2244
+ case 11:
2245
+ var value = new proto.Action;
2246
+ reader.readMessage(value,proto.Action.deserializeBinaryFromReader);
2247
+ msg.setAction(value);
2248
+ break;
2249
+ default:
2250
+ reader.skipField();
2251
+ break;
2252
+ }
2253
+ }
2254
+ return msg;
2255
+ };
2256
+
2257
+
2258
+ /**
2259
+ * Serializes the message to binary data (in protobuf wire format).
2260
+ * @return {!Uint8Array}
2261
+ */
2262
+ proto.PolicyAction.prototype.serializeBinary = function() {
2263
+ var writer = new jspb.BinaryWriter();
2264
+ proto.PolicyAction.serializeBinaryToWriter(this, writer);
2265
+ return writer.getResultBuffer();
2266
+ };
2267
+
2268
+
2269
+ /**
2270
+ * Serializes the given message to binary data (in protobuf wire
2271
+ * format), writing to the given BinaryWriter.
2272
+ * @param {!proto.PolicyAction} message
2273
+ * @param {!jspb.BinaryWriter} writer
2274
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2275
+ */
2276
+ proto.PolicyAction.serializeBinaryToWriter = function(message, writer) {
2277
+ var f = undefined;
2278
+ f = message.getId();
2279
+ if (f !== 0) {
2280
+ writer.writeInt32(
2281
+ 1,
2282
+ f
2283
+ );
2284
+ }
2285
+ f = message.getName();
2286
+ if (f.length > 0) {
2287
+ writer.writeString(
2288
+ 2,
2289
+ f
2290
+ );
2291
+ }
2292
+ f = message.getPoliciesReferencesId();
2293
+ if (f.length > 0) {
2294
+ writer.writeString(
2295
+ 3,
2296
+ f
2297
+ );
2298
+ }
2299
+ f = message.getActionReferencesId();
2300
+ if (f.length > 0) {
2301
+ writer.writeString(
2302
+ 4,
2303
+ f
2304
+ );
2305
+ }
2306
+ f = message.getCreatedAt();
2307
+ if (f.length > 0) {
2308
+ writer.writeString(
2309
+ 5,
2310
+ f
2311
+ );
2312
+ }
2313
+ f = message.getUpdatedAt();
2314
+ if (f.length > 0) {
2315
+ writer.writeString(
2316
+ 6,
2317
+ f
2318
+ );
2319
+ }
2320
+ f = message.getCreatedBy();
2321
+ if (f.length > 0) {
2322
+ writer.writeString(
2323
+ 7,
2324
+ f
2325
+ );
2326
+ }
2327
+ f = message.getUpdatedBy();
2328
+ if (f.length > 0) {
2329
+ writer.writeString(
2330
+ 8,
2331
+ f
2332
+ );
2333
+ }
2334
+ f = message.getCompaniesReferencesId();
2335
+ if (f.length > 0) {
2336
+ writer.writeString(
2337
+ 9,
2338
+ f
2339
+ );
2340
+ }
2341
+ f = message.getResourceReferencesId();
2342
+ if (f.length > 0) {
2343
+ writer.writeString(
2344
+ 10,
2345
+ f
2346
+ );
2347
+ }
2348
+ f = message.getAction();
2349
+ if (f != null) {
2350
+ writer.writeMessage(
2351
+ 11,
2352
+ f,
2353
+ proto.Action.serializeBinaryToWriter
2354
+ );
2355
+ }
2356
+ };
2357
+
2358
+
2359
+ /**
2360
+ * optional int32 id = 1;
2361
+ * @return {number}
2362
+ */
2363
+ proto.PolicyAction.prototype.getId = function() {
2364
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2365
+ };
2366
+
2367
+
2368
+ /**
2369
+ * @param {number} value
2370
+ * @return {!proto.PolicyAction} returns this
2371
+ */
2372
+ proto.PolicyAction.prototype.setId = function(value) {
2373
+ return jspb.Message.setProto3IntField(this, 1, value);
2374
+ };
2375
+
2376
+
2377
+ /**
2378
+ * optional string name = 2;
2379
+ * @return {string}
2380
+ */
2381
+ proto.PolicyAction.prototype.getName = function() {
2382
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2383
+ };
2384
+
2385
+
2386
+ /**
2387
+ * @param {string} value
2388
+ * @return {!proto.PolicyAction} returns this
2389
+ */
2390
+ proto.PolicyAction.prototype.setName = function(value) {
2391
+ return jspb.Message.setProto3StringField(this, 2, value);
2392
+ };
2393
+
2394
+
2395
+ /**
2396
+ * optional string policies_references_id = 3;
2397
+ * @return {string}
2398
+ */
2399
+ proto.PolicyAction.prototype.getPoliciesReferencesId = function() {
2400
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2401
+ };
2402
+
2403
+
2404
+ /**
2405
+ * @param {string} value
2406
+ * @return {!proto.PolicyAction} returns this
2407
+ */
2408
+ proto.PolicyAction.prototype.setPoliciesReferencesId = function(value) {
2409
+ return jspb.Message.setProto3StringField(this, 3, value);
2410
+ };
2411
+
2412
+
2413
+ /**
2414
+ * optional string action_references_id = 4;
2415
+ * @return {string}
2416
+ */
2417
+ proto.PolicyAction.prototype.getActionReferencesId = function() {
2418
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2419
+ };
2420
+
2421
+
2422
+ /**
2423
+ * @param {string} value
2424
+ * @return {!proto.PolicyAction} returns this
2425
+ */
2426
+ proto.PolicyAction.prototype.setActionReferencesId = function(value) {
2427
+ return jspb.Message.setProto3StringField(this, 4, value);
2428
+ };
2429
+
2430
+
2431
+ /**
2432
+ * optional string created_at = 5;
2433
+ * @return {string}
2434
+ */
2435
+ proto.PolicyAction.prototype.getCreatedAt = function() {
2436
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2437
+ };
2438
+
2439
+
2440
+ /**
2441
+ * @param {string} value
2442
+ * @return {!proto.PolicyAction} returns this
2443
+ */
2444
+ proto.PolicyAction.prototype.setCreatedAt = function(value) {
2445
+ return jspb.Message.setProto3StringField(this, 5, value);
2446
+ };
2447
+
2448
+
2449
+ /**
2450
+ * optional string updated_at = 6;
2451
+ * @return {string}
2452
+ */
2453
+ proto.PolicyAction.prototype.getUpdatedAt = function() {
2454
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
2455
+ };
2456
+
2457
+
2458
+ /**
2459
+ * @param {string} value
2460
+ * @return {!proto.PolicyAction} returns this
2461
+ */
2462
+ proto.PolicyAction.prototype.setUpdatedAt = function(value) {
2463
+ return jspb.Message.setProto3StringField(this, 6, value);
2464
+ };
2465
+
2466
+
2467
+ /**
2468
+ * optional string created_by = 7;
2469
+ * @return {string}
1565
2470
  */
1566
- proto.BasePolicy.toObject = function(includeInstance, msg) {
1567
- var f, obj = {
1568
- name: jspb.Message.getFieldWithDefault(msg, 1, ""),
1569
- description: jspb.Message.getFieldWithDefault(msg, 2, ""),
1570
- referencesId: jspb.Message.getFieldWithDefault(msg, 3, "")
1571
- };
2471
+ proto.PolicyAction.prototype.getCreatedBy = function() {
2472
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
2473
+ };
1572
2474
 
1573
- if (includeInstance) {
1574
- obj.$jspbMessageInstance = msg;
1575
- }
1576
- return obj;
2475
+
2476
+ /**
2477
+ * @param {string} value
2478
+ * @return {!proto.PolicyAction} returns this
2479
+ */
2480
+ proto.PolicyAction.prototype.setCreatedBy = function(value) {
2481
+ return jspb.Message.setProto3StringField(this, 7, value);
1577
2482
  };
1578
- }
1579
2483
 
1580
2484
 
1581
2485
  /**
1582
- * Deserializes binary data (in protobuf wire format).
1583
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1584
- * @return {!proto.BasePolicy}
2486
+ * optional string updated_by = 8;
2487
+ * @return {string}
1585
2488
  */
1586
- proto.BasePolicy.deserializeBinary = function(bytes) {
1587
- var reader = new jspb.BinaryReader(bytes);
1588
- var msg = new proto.BasePolicy;
1589
- return proto.BasePolicy.deserializeBinaryFromReader(msg, reader);
2489
+ proto.PolicyAction.prototype.getUpdatedBy = function() {
2490
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1590
2491
  };
1591
2492
 
1592
2493
 
1593
2494
  /**
1594
- * Deserializes binary data (in protobuf wire format) from the
1595
- * given reader into the given message object.
1596
- * @param {!proto.BasePolicy} msg The message object to deserialize into.
1597
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1598
- * @return {!proto.BasePolicy}
2495
+ * @param {string} value
2496
+ * @return {!proto.PolicyAction} returns this
1599
2497
  */
1600
- proto.BasePolicy.deserializeBinaryFromReader = function(msg, reader) {
1601
- while (reader.nextField()) {
1602
- if (reader.isEndGroup()) {
1603
- break;
1604
- }
1605
- var field = reader.getFieldNumber();
1606
- switch (field) {
1607
- case 1:
1608
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
1609
- msg.setName(value);
1610
- break;
1611
- case 2:
1612
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
1613
- msg.setDescription(value);
1614
- break;
1615
- case 3:
1616
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
1617
- msg.setReferencesId(value);
1618
- break;
1619
- default:
1620
- reader.skipField();
1621
- break;
1622
- }
1623
- }
1624
- return msg;
2498
+ proto.PolicyAction.prototype.setUpdatedBy = function(value) {
2499
+ return jspb.Message.setProto3StringField(this, 8, value);
1625
2500
  };
1626
2501
 
1627
2502
 
1628
2503
  /**
1629
- * Serializes the message to binary data (in protobuf wire format).
1630
- * @return {!Uint8Array}
2504
+ * optional string companies_references_id = 9;
2505
+ * @return {string}
1631
2506
  */
1632
- proto.BasePolicy.prototype.serializeBinary = function() {
1633
- var writer = new jspb.BinaryWriter();
1634
- proto.BasePolicy.serializeBinaryToWriter(this, writer);
1635
- return writer.getResultBuffer();
2507
+ proto.PolicyAction.prototype.getCompaniesReferencesId = function() {
2508
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1636
2509
  };
1637
2510
 
1638
2511
 
1639
2512
  /**
1640
- * Serializes the given message to binary data (in protobuf wire
1641
- * format), writing to the given BinaryWriter.
1642
- * @param {!proto.BasePolicy} message
1643
- * @param {!jspb.BinaryWriter} writer
1644
- * @suppress {unusedLocalVariables} f is only used for nested messages
2513
+ * @param {string} value
2514
+ * @return {!proto.PolicyAction} returns this
1645
2515
  */
1646
- proto.BasePolicy.serializeBinaryToWriter = function(message, writer) {
1647
- var f = undefined;
1648
- f = message.getName();
1649
- if (f.length > 0) {
1650
- writer.writeString(
1651
- 1,
1652
- f
1653
- );
1654
- }
1655
- f = message.getDescription();
1656
- if (f.length > 0) {
1657
- writer.writeString(
1658
- 2,
1659
- f
1660
- );
1661
- }
1662
- f = message.getReferencesId();
1663
- if (f.length > 0) {
1664
- writer.writeString(
1665
- 3,
1666
- f
1667
- );
1668
- }
2516
+ proto.PolicyAction.prototype.setCompaniesReferencesId = function(value) {
2517
+ return jspb.Message.setProto3StringField(this, 9, value);
1669
2518
  };
1670
2519
 
1671
2520
 
1672
2521
  /**
1673
- * optional string name = 1;
2522
+ * optional string resource_references_id = 10;
1674
2523
  * @return {string}
1675
2524
  */
1676
- proto.BasePolicy.prototype.getName = function() {
1677
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2525
+ proto.PolicyAction.prototype.getResourceReferencesId = function() {
2526
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
1678
2527
  };
1679
2528
 
1680
2529
 
1681
2530
  /**
1682
2531
  * @param {string} value
1683
- * @return {!proto.BasePolicy} returns this
2532
+ * @return {!proto.PolicyAction} returns this
1684
2533
  */
1685
- proto.BasePolicy.prototype.setName = function(value) {
1686
- return jspb.Message.setProto3StringField(this, 1, value);
2534
+ proto.PolicyAction.prototype.setResourceReferencesId = function(value) {
2535
+ return jspb.Message.setProto3StringField(this, 10, value);
1687
2536
  };
1688
2537
 
1689
2538
 
1690
2539
  /**
1691
- * optional string description = 2;
1692
- * @return {string}
2540
+ * optional Action action = 11;
2541
+ * @return {?proto.Action}
1693
2542
  */
1694
- proto.BasePolicy.prototype.getDescription = function() {
1695
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2543
+ proto.PolicyAction.prototype.getAction = function() {
2544
+ return /** @type{?proto.Action} */ (
2545
+ jspb.Message.getWrapperField(this, proto.Action, 11));
1696
2546
  };
1697
2547
 
1698
2548
 
1699
2549
  /**
1700
- * @param {string} value
1701
- * @return {!proto.BasePolicy} returns this
1702
- */
1703
- proto.BasePolicy.prototype.setDescription = function(value) {
1704
- return jspb.Message.setProto3StringField(this, 2, value);
2550
+ * @param {?proto.Action|undefined} value
2551
+ * @return {!proto.PolicyAction} returns this
2552
+ */
2553
+ proto.PolicyAction.prototype.setAction = function(value) {
2554
+ return jspb.Message.setWrapperField(this, 11, value);
1705
2555
  };
1706
2556
 
1707
2557
 
1708
2558
  /**
1709
- * optional string references_id = 3;
1710
- * @return {string}
2559
+ * Clears the message field making it undefined.
2560
+ * @return {!proto.PolicyAction} returns this
1711
2561
  */
1712
- proto.BasePolicy.prototype.getReferencesId = function() {
1713
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2562
+ proto.PolicyAction.prototype.clearAction = function() {
2563
+ return this.setAction(undefined);
1714
2564
  };
1715
2565
 
1716
2566
 
1717
2567
  /**
1718
- * @param {string} value
1719
- * @return {!proto.BasePolicy} returns this
2568
+ * Returns whether this field is set.
2569
+ * @return {boolean}
1720
2570
  */
1721
- proto.BasePolicy.prototype.setReferencesId = function(value) {
1722
- return jspb.Message.setProto3StringField(this, 3, value);
2571
+ proto.PolicyAction.prototype.hasAction = function() {
2572
+ return jspb.Message.getField(this, 11) != null;
1723
2573
  };
1724
2574
 
1725
2575
 
@@ -2439,7 +3289,8 @@ proto.Resource.toObject = function(includeInstance, msg) {
2439
3289
  name: jspb.Message.getFieldWithDefault(msg, 1, ""),
2440
3290
  parameter: jspb.Message.getFieldWithDefault(msg, 2, ""),
2441
3291
  description: jspb.Message.getFieldWithDefault(msg, 3, ""),
2442
- referencesId: jspb.Message.getFieldWithDefault(msg, 4, "")
3292
+ referencesId: jspb.Message.getFieldWithDefault(msg, 4, ""),
3293
+ resourceFilter: jspb.Message.getFieldWithDefault(msg, 5, "")
2443
3294
  };
2444
3295
 
2445
3296
  if (includeInstance) {
@@ -2492,6 +3343,10 @@ proto.Resource.deserializeBinaryFromReader = function(msg, reader) {
2492
3343
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
2493
3344
  msg.setReferencesId(value);
2494
3345
  break;
3346
+ case 5:
3347
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3348
+ msg.setResourceFilter(value);
3349
+ break;
2495
3350
  default:
2496
3351
  reader.skipField();
2497
3352
  break;
@@ -2549,6 +3404,13 @@ proto.Resource.serializeBinaryToWriter = function(message, writer) {
2549
3404
  f
2550
3405
  );
2551
3406
  }
3407
+ f = message.getResourceFilter();
3408
+ if (f.length > 0) {
3409
+ writer.writeString(
3410
+ 5,
3411
+ f
3412
+ );
3413
+ }
2552
3414
  };
2553
3415
 
2554
3416
 
@@ -2624,6 +3486,24 @@ proto.Resource.prototype.setReferencesId = function(value) {
2624
3486
  };
2625
3487
 
2626
3488
 
3489
+ /**
3490
+ * optional string resource_filter = 5;
3491
+ * @return {string}
3492
+ */
3493
+ proto.Resource.prototype.getResourceFilter = function() {
3494
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3495
+ };
3496
+
3497
+
3498
+ /**
3499
+ * @param {string} value
3500
+ * @return {!proto.Resource} returns this
3501
+ */
3502
+ proto.Resource.prototype.setResourceFilter = function(value) {
3503
+ return jspb.Message.setProto3StringField(this, 5, value);
3504
+ };
3505
+
3506
+
2627
3507
 
2628
3508
  /**
2629
3509
  * List of repeated fields within this message type.
@@ -2665,9 +3545,10 @@ proto.Action.toObject = function(includeInstance, msg) {
2665
3545
  var f, obj = {
2666
3546
  name: jspb.Message.getFieldWithDefault(msg, 1, ""),
2667
3547
  referencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
2668
- catalogReferencesId: jspb.Message.getFieldWithDefault(msg, 3, ""),
2669
- actionCatalog: (f = msg.getActionCatalog()) && proto.ActionCatalog.toObject(includeInstance, f),
2670
- resourcesList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f
3548
+ description: jspb.Message.getFieldWithDefault(msg, 3, ""),
3549
+ accessLevel: jspb.Message.getFieldWithDefault(msg, 4, ""),
3550
+ resourceList: jspb.Message.toObjectList(msg.getResourceList(),
3551
+ proto.Resource.toObject, includeInstance)
2671
3552
  };
2672
3553
 
2673
3554
  if (includeInstance) {
@@ -2714,16 +3595,16 @@ proto.Action.deserializeBinaryFromReader = function(msg, reader) {
2714
3595
  break;
2715
3596
  case 3:
2716
3597
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
2717
- msg.setCatalogReferencesId(value);
3598
+ msg.setDescription(value);
2718
3599
  break;
2719
3600
  case 4:
2720
- var value = new proto.ActionCatalog;
2721
- reader.readMessage(value,proto.ActionCatalog.deserializeBinaryFromReader);
2722
- msg.setActionCatalog(value);
3601
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3602
+ msg.setAccessLevel(value);
2723
3603
  break;
2724
3604
  case 5:
2725
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
2726
- msg.addResources(value);
3605
+ var value = new proto.Resource;
3606
+ reader.readMessage(value,proto.Resource.deserializeBinaryFromReader);
3607
+ msg.addResource(value);
2727
3608
  break;
2728
3609
  default:
2729
3610
  reader.skipField();
@@ -2768,26 +3649,26 @@ proto.Action.serializeBinaryToWriter = function(message, writer) {
2768
3649
  f
2769
3650
  );
2770
3651
  }
2771
- f = message.getCatalogReferencesId();
3652
+ f = message.getDescription();
2772
3653
  if (f.length > 0) {
2773
3654
  writer.writeString(
2774
3655
  3,
2775
3656
  f
2776
3657
  );
2777
3658
  }
2778
- f = message.getActionCatalog();
2779
- if (f != null) {
2780
- writer.writeMessage(
3659
+ f = message.getAccessLevel();
3660
+ if (f.length > 0) {
3661
+ writer.writeString(
2781
3662
  4,
2782
- f,
2783
- proto.ActionCatalog.serializeBinaryToWriter
3663
+ f
2784
3664
  );
2785
3665
  }
2786
- f = message.getResourcesList();
3666
+ f = message.getResourceList();
2787
3667
  if (f.length > 0) {
2788
- writer.writeRepeatedString(
3668
+ writer.writeRepeatedMessage(
2789
3669
  5,
2790
- f
3670
+ f,
3671
+ proto.Resource.serializeBinaryToWriter
2791
3672
  );
2792
3673
  }
2793
3674
  };
@@ -2830,10 +3711,10 @@ proto.Action.prototype.setReferencesId = function(value) {
2830
3711
 
2831
3712
 
2832
3713
  /**
2833
- * optional string catalog_references_id = 3;
3714
+ * optional string description = 3;
2834
3715
  * @return {string}
2835
3716
  */
2836
- proto.Action.prototype.getCatalogReferencesId = function() {
3717
+ proto.Action.prototype.getDescription = function() {
2837
3718
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2838
3719
  };
2839
3720
 
@@ -2842,73 +3723,55 @@ proto.Action.prototype.getCatalogReferencesId = function() {
2842
3723
  * @param {string} value
2843
3724
  * @return {!proto.Action} returns this
2844
3725
  */
2845
- proto.Action.prototype.setCatalogReferencesId = function(value) {
3726
+ proto.Action.prototype.setDescription = function(value) {
2846
3727
  return jspb.Message.setProto3StringField(this, 3, value);
2847
3728
  };
2848
3729
 
2849
3730
 
2850
3731
  /**
2851
- * optional ActionCatalog action_catalog = 4;
2852
- * @return {?proto.ActionCatalog}
3732
+ * optional string access_level = 4;
3733
+ * @return {string}
2853
3734
  */
2854
- proto.Action.prototype.getActionCatalog = function() {
2855
- return /** @type{?proto.ActionCatalog} */ (
2856
- jspb.Message.getWrapperField(this, proto.ActionCatalog, 4));
2857
- };
2858
-
2859
-
2860
- /**
2861
- * @param {?proto.ActionCatalog|undefined} value
2862
- * @return {!proto.Action} returns this
2863
- */
2864
- proto.Action.prototype.setActionCatalog = function(value) {
2865
- return jspb.Message.setWrapperField(this, 4, value);
3735
+ proto.Action.prototype.getAccessLevel = function() {
3736
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2866
3737
  };
2867
3738
 
2868
3739
 
2869
3740
  /**
2870
- * Clears the message field making it undefined.
3741
+ * @param {string} value
2871
3742
  * @return {!proto.Action} returns this
2872
3743
  */
2873
- proto.Action.prototype.clearActionCatalog = function() {
2874
- return this.setActionCatalog(undefined);
2875
- };
2876
-
2877
-
2878
- /**
2879
- * Returns whether this field is set.
2880
- * @return {boolean}
2881
- */
2882
- proto.Action.prototype.hasActionCatalog = function() {
2883
- return jspb.Message.getField(this, 4) != null;
3744
+ proto.Action.prototype.setAccessLevel = function(value) {
3745
+ return jspb.Message.setProto3StringField(this, 4, value);
2884
3746
  };
2885
3747
 
2886
3748
 
2887
3749
  /**
2888
- * repeated string resources = 5;
2889
- * @return {!Array<string>}
3750
+ * repeated Resource resource = 5;
3751
+ * @return {!Array<!proto.Resource>}
2890
3752
  */
2891
- proto.Action.prototype.getResourcesList = function() {
2892
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
3753
+ proto.Action.prototype.getResourceList = function() {
3754
+ return /** @type{!Array<!proto.Resource>} */ (
3755
+ jspb.Message.getRepeatedWrapperField(this, proto.Resource, 5));
2893
3756
  };
2894
3757
 
2895
3758
 
2896
3759
  /**
2897
- * @param {!Array<string>} value
3760
+ * @param {!Array<!proto.Resource>} value
2898
3761
  * @return {!proto.Action} returns this
2899
- */
2900
- proto.Action.prototype.setResourcesList = function(value) {
2901
- return jspb.Message.setField(this, 5, value || []);
3762
+ */
3763
+ proto.Action.prototype.setResourceList = function(value) {
3764
+ return jspb.Message.setRepeatedWrapperField(this, 5, value);
2902
3765
  };
2903
3766
 
2904
3767
 
2905
3768
  /**
2906
- * @param {string} value
3769
+ * @param {!proto.Resource=} opt_value
2907
3770
  * @param {number=} opt_index
2908
- * @return {!proto.Action} returns this
3771
+ * @return {!proto.Resource}
2909
3772
  */
2910
- proto.Action.prototype.addResources = function(value, opt_index) {
2911
- return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
3773
+ proto.Action.prototype.addResource = function(opt_value, opt_index) {
3774
+ return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.Resource, opt_index);
2912
3775
  };
2913
3776
 
2914
3777
 
@@ -2916,8 +3779,8 @@ proto.Action.prototype.addResources = function(value, opt_index) {
2916
3779
  * Clears the list making it empty but non-null.
2917
3780
  * @return {!proto.Action} returns this
2918
3781
  */
2919
- proto.Action.prototype.clearResourcesList = function() {
2920
- return this.setResourcesList([]);
3782
+ proto.Action.prototype.clearResourceList = function() {
3783
+ return this.setResourceList([]);
2921
3784
  };
2922
3785
 
2923
3786
 
@@ -4705,7 +5568,7 @@ proto.CreatePolicyResponse.prototype.toObject = function(opt_includeInstance) {
4705
5568
  */
4706
5569
  proto.CreatePolicyResponse.toObject = function(includeInstance, msg) {
4707
5570
  var f, obj = {
4708
- policy: (f = msg.getPolicy()) && proto.Policy.toObject(includeInstance, f),
5571
+ policies: (f = msg.getPolicies()) && proto.PoliciesResponse.toObject(includeInstance, f),
4709
5572
  meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
4710
5573
  };
4711
5574
 
@@ -4744,9 +5607,9 @@ proto.CreatePolicyResponse.deserializeBinaryFromReader = function(msg, reader) {
4744
5607
  var field = reader.getFieldNumber();
4745
5608
  switch (field) {
4746
5609
  case 1:
4747
- var value = new proto.Policy;
4748
- reader.readMessage(value,proto.Policy.deserializeBinaryFromReader);
4749
- msg.setPolicy(value);
5610
+ var value = new proto.PoliciesResponse;
5611
+ reader.readMessage(value,proto.PoliciesResponse.deserializeBinaryFromReader);
5612
+ msg.setPolicies(value);
4750
5613
  break;
4751
5614
  case 2:
4752
5615
  var value = new prisca_v1_global_meta_meta_pb.Meta;
@@ -4782,12 +5645,12 @@ proto.CreatePolicyResponse.prototype.serializeBinary = function() {
4782
5645
  */
4783
5646
  proto.CreatePolicyResponse.serializeBinaryToWriter = function(message, writer) {
4784
5647
  var f = undefined;
4785
- f = message.getPolicy();
5648
+ f = message.getPolicies();
4786
5649
  if (f != null) {
4787
5650
  writer.writeMessage(
4788
5651
  1,
4789
5652
  f,
4790
- proto.Policy.serializeBinaryToWriter
5653
+ proto.PoliciesResponse.serializeBinaryToWriter
4791
5654
  );
4792
5655
  }
4793
5656
  f = message.getMeta();
@@ -4802,20 +5665,20 @@ proto.CreatePolicyResponse.serializeBinaryToWriter = function(message, writer) {
4802
5665
 
4803
5666
 
4804
5667
  /**
4805
- * optional Policy policy = 1;
4806
- * @return {?proto.Policy}
5668
+ * optional PoliciesResponse policies = 1;
5669
+ * @return {?proto.PoliciesResponse}
4807
5670
  */
4808
- proto.CreatePolicyResponse.prototype.getPolicy = function() {
4809
- return /** @type{?proto.Policy} */ (
4810
- jspb.Message.getWrapperField(this, proto.Policy, 1));
5671
+ proto.CreatePolicyResponse.prototype.getPolicies = function() {
5672
+ return /** @type{?proto.PoliciesResponse} */ (
5673
+ jspb.Message.getWrapperField(this, proto.PoliciesResponse, 1));
4811
5674
  };
4812
5675
 
4813
5676
 
4814
5677
  /**
4815
- * @param {?proto.Policy|undefined} value
5678
+ * @param {?proto.PoliciesResponse|undefined} value
4816
5679
  * @return {!proto.CreatePolicyResponse} returns this
4817
5680
  */
4818
- proto.CreatePolicyResponse.prototype.setPolicy = function(value) {
5681
+ proto.CreatePolicyResponse.prototype.setPolicies = function(value) {
4819
5682
  return jspb.Message.setWrapperField(this, 1, value);
4820
5683
  };
4821
5684
 
@@ -4824,8 +5687,8 @@ proto.CreatePolicyResponse.prototype.setPolicy = function(value) {
4824
5687
  * Clears the message field making it undefined.
4825
5688
  * @return {!proto.CreatePolicyResponse} returns this
4826
5689
  */
4827
- proto.CreatePolicyResponse.prototype.clearPolicy = function() {
4828
- return this.setPolicy(undefined);
5690
+ proto.CreatePolicyResponse.prototype.clearPolicies = function() {
5691
+ return this.setPolicies(undefined);
4829
5692
  };
4830
5693
 
4831
5694
 
@@ -4833,7 +5696,7 @@ proto.CreatePolicyResponse.prototype.clearPolicy = function() {
4833
5696
  * Returns whether this field is set.
4834
5697
  * @return {boolean}
4835
5698
  */
4836
- proto.CreatePolicyResponse.prototype.hasPolicy = function() {
5699
+ proto.CreatePolicyResponse.prototype.hasPolicies = function() {
4837
5700
  return jspb.Message.getField(this, 1) != null;
4838
5701
  };
4839
5702
 
@@ -4914,8 +5777,8 @@ proto.GetPolicyListResponse.prototype.toObject = function(opt_includeInstance) {
4914
5777
  */
4915
5778
  proto.GetPolicyListResponse.toObject = function(includeInstance, msg) {
4916
5779
  var f, obj = {
4917
- policyList: jspb.Message.toObjectList(msg.getPolicyList(),
4918
- proto.BasePolicy.toObject, includeInstance),
5780
+ policiesList: jspb.Message.toObjectList(msg.getPoliciesList(),
5781
+ proto.PoliciesResponse.toObject, includeInstance),
4919
5782
  meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
4920
5783
  };
4921
5784
 
@@ -4954,9 +5817,9 @@ proto.GetPolicyListResponse.deserializeBinaryFromReader = function(msg, reader)
4954
5817
  var field = reader.getFieldNumber();
4955
5818
  switch (field) {
4956
5819
  case 1:
4957
- var value = new proto.BasePolicy;
4958
- reader.readMessage(value,proto.BasePolicy.deserializeBinaryFromReader);
4959
- msg.addPolicy(value);
5820
+ var value = new proto.PoliciesResponse;
5821
+ reader.readMessage(value,proto.PoliciesResponse.deserializeBinaryFromReader);
5822
+ msg.addPolicies(value);
4960
5823
  break;
4961
5824
  case 2:
4962
5825
  var value = new prisca_v1_global_meta_meta_pb.Meta;
@@ -4992,12 +5855,12 @@ proto.GetPolicyListResponse.prototype.serializeBinary = function() {
4992
5855
  */
4993
5856
  proto.GetPolicyListResponse.serializeBinaryToWriter = function(message, writer) {
4994
5857
  var f = undefined;
4995
- f = message.getPolicyList();
5858
+ f = message.getPoliciesList();
4996
5859
  if (f.length > 0) {
4997
5860
  writer.writeRepeatedMessage(
4998
5861
  1,
4999
5862
  f,
5000
- proto.BasePolicy.serializeBinaryToWriter
5863
+ proto.PoliciesResponse.serializeBinaryToWriter
5001
5864
  );
5002
5865
  }
5003
5866
  f = message.getMeta();
@@ -5012,31 +5875,31 @@ proto.GetPolicyListResponse.serializeBinaryToWriter = function(message, writer)
5012
5875
 
5013
5876
 
5014
5877
  /**
5015
- * repeated BasePolicy policy = 1;
5016
- * @return {!Array<!proto.BasePolicy>}
5878
+ * repeated PoliciesResponse policies = 1;
5879
+ * @return {!Array<!proto.PoliciesResponse>}
5017
5880
  */
5018
- proto.GetPolicyListResponse.prototype.getPolicyList = function() {
5019
- return /** @type{!Array<!proto.BasePolicy>} */ (
5020
- jspb.Message.getRepeatedWrapperField(this, proto.BasePolicy, 1));
5881
+ proto.GetPolicyListResponse.prototype.getPoliciesList = function() {
5882
+ return /** @type{!Array<!proto.PoliciesResponse>} */ (
5883
+ jspb.Message.getRepeatedWrapperField(this, proto.PoliciesResponse, 1));
5021
5884
  };
5022
5885
 
5023
5886
 
5024
5887
  /**
5025
- * @param {!Array<!proto.BasePolicy>} value
5888
+ * @param {!Array<!proto.PoliciesResponse>} value
5026
5889
  * @return {!proto.GetPolicyListResponse} returns this
5027
5890
  */
5028
- proto.GetPolicyListResponse.prototype.setPolicyList = function(value) {
5891
+ proto.GetPolicyListResponse.prototype.setPoliciesList = function(value) {
5029
5892
  return jspb.Message.setRepeatedWrapperField(this, 1, value);
5030
5893
  };
5031
5894
 
5032
5895
 
5033
5896
  /**
5034
- * @param {!proto.BasePolicy=} opt_value
5897
+ * @param {!proto.PoliciesResponse=} opt_value
5035
5898
  * @param {number=} opt_index
5036
- * @return {!proto.BasePolicy}
5899
+ * @return {!proto.PoliciesResponse}
5037
5900
  */
5038
- proto.GetPolicyListResponse.prototype.addPolicy = function(opt_value, opt_index) {
5039
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.BasePolicy, opt_index);
5901
+ proto.GetPolicyListResponse.prototype.addPolicies = function(opt_value, opt_index) {
5902
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.PoliciesResponse, opt_index);
5040
5903
  };
5041
5904
 
5042
5905
 
@@ -5044,8 +5907,8 @@ proto.GetPolicyListResponse.prototype.addPolicy = function(opt_value, opt_index)
5044
5907
  * Clears the list making it empty but non-null.
5045
5908
  * @return {!proto.GetPolicyListResponse} returns this
5046
5909
  */
5047
- proto.GetPolicyListResponse.prototype.clearPolicyList = function() {
5048
- return this.setPolicyList([]);
5910
+ proto.GetPolicyListResponse.prototype.clearPoliciesList = function() {
5911
+ return this.setPoliciesList([]);
5049
5912
  };
5050
5913
 
5051
5914
 
@@ -5118,7 +5981,7 @@ proto.GetPolicyByIdResponse.prototype.toObject = function(opt_includeInstance) {
5118
5981
  */
5119
5982
  proto.GetPolicyByIdResponse.toObject = function(includeInstance, msg) {
5120
5983
  var f, obj = {
5121
- policy: (f = msg.getPolicy()) && proto.Policy.toObject(includeInstance, f),
5984
+ policies: (f = msg.getPolicies()) && proto.PoliciesResponse.toObject(includeInstance, f),
5122
5985
  meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
5123
5986
  };
5124
5987
 
@@ -5157,9 +6020,9 @@ proto.GetPolicyByIdResponse.deserializeBinaryFromReader = function(msg, reader)
5157
6020
  var field = reader.getFieldNumber();
5158
6021
  switch (field) {
5159
6022
  case 1:
5160
- var value = new proto.Policy;
5161
- reader.readMessage(value,proto.Policy.deserializeBinaryFromReader);
5162
- msg.setPolicy(value);
6023
+ var value = new proto.PoliciesResponse;
6024
+ reader.readMessage(value,proto.PoliciesResponse.deserializeBinaryFromReader);
6025
+ msg.setPolicies(value);
5163
6026
  break;
5164
6027
  case 2:
5165
6028
  var value = new prisca_v1_global_meta_meta_pb.Meta;
@@ -5195,12 +6058,12 @@ proto.GetPolicyByIdResponse.prototype.serializeBinary = function() {
5195
6058
  */
5196
6059
  proto.GetPolicyByIdResponse.serializeBinaryToWriter = function(message, writer) {
5197
6060
  var f = undefined;
5198
- f = message.getPolicy();
6061
+ f = message.getPolicies();
5199
6062
  if (f != null) {
5200
6063
  writer.writeMessage(
5201
6064
  1,
5202
6065
  f,
5203
- proto.Policy.serializeBinaryToWriter
6066
+ proto.PoliciesResponse.serializeBinaryToWriter
5204
6067
  );
5205
6068
  }
5206
6069
  f = message.getMeta();
@@ -5215,20 +6078,20 @@ proto.GetPolicyByIdResponse.serializeBinaryToWriter = function(message, writer)
5215
6078
 
5216
6079
 
5217
6080
  /**
5218
- * optional Policy policy = 1;
5219
- * @return {?proto.Policy}
6081
+ * optional PoliciesResponse policies = 1;
6082
+ * @return {?proto.PoliciesResponse}
5220
6083
  */
5221
- proto.GetPolicyByIdResponse.prototype.getPolicy = function() {
5222
- return /** @type{?proto.Policy} */ (
5223
- jspb.Message.getWrapperField(this, proto.Policy, 1));
6084
+ proto.GetPolicyByIdResponse.prototype.getPolicies = function() {
6085
+ return /** @type{?proto.PoliciesResponse} */ (
6086
+ jspb.Message.getWrapperField(this, proto.PoliciesResponse, 1));
5224
6087
  };
5225
6088
 
5226
6089
 
5227
6090
  /**
5228
- * @param {?proto.Policy|undefined} value
6091
+ * @param {?proto.PoliciesResponse|undefined} value
5229
6092
  * @return {!proto.GetPolicyByIdResponse} returns this
5230
6093
  */
5231
- proto.GetPolicyByIdResponse.prototype.setPolicy = function(value) {
6094
+ proto.GetPolicyByIdResponse.prototype.setPolicies = function(value) {
5232
6095
  return jspb.Message.setWrapperField(this, 1, value);
5233
6096
  };
5234
6097
 
@@ -5237,8 +6100,8 @@ proto.GetPolicyByIdResponse.prototype.setPolicy = function(value) {
5237
6100
  * Clears the message field making it undefined.
5238
6101
  * @return {!proto.GetPolicyByIdResponse} returns this
5239
6102
  */
5240
- proto.GetPolicyByIdResponse.prototype.clearPolicy = function() {
5241
- return this.setPolicy(undefined);
6103
+ proto.GetPolicyByIdResponse.prototype.clearPolicies = function() {
6104
+ return this.setPolicies(undefined);
5242
6105
  };
5243
6106
 
5244
6107
 
@@ -5246,7 +6109,7 @@ proto.GetPolicyByIdResponse.prototype.clearPolicy = function() {
5246
6109
  * Returns whether this field is set.
5247
6110
  * @return {boolean}
5248
6111
  */
5249
- proto.GetPolicyByIdResponse.prototype.hasPolicy = function() {
6112
+ proto.GetPolicyByIdResponse.prototype.hasPolicies = function() {
5250
6113
  return jspb.Message.getField(this, 1) != null;
5251
6114
  };
5252
6115
 
@@ -5320,7 +6183,7 @@ proto.UpdatePolicyResponse.prototype.toObject = function(opt_includeInstance) {
5320
6183
  */
5321
6184
  proto.UpdatePolicyResponse.toObject = function(includeInstance, msg) {
5322
6185
  var f, obj = {
5323
- policy: (f = msg.getPolicy()) && proto.Policy.toObject(includeInstance, f),
6186
+ policies: (f = msg.getPolicies()) && proto.PoliciesResponse.toObject(includeInstance, f),
5324
6187
  meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
5325
6188
  };
5326
6189
 
@@ -5359,9 +6222,9 @@ proto.UpdatePolicyResponse.deserializeBinaryFromReader = function(msg, reader) {
5359
6222
  var field = reader.getFieldNumber();
5360
6223
  switch (field) {
5361
6224
  case 1:
5362
- var value = new proto.Policy;
5363
- reader.readMessage(value,proto.Policy.deserializeBinaryFromReader);
5364
- msg.setPolicy(value);
6225
+ var value = new proto.PoliciesResponse;
6226
+ reader.readMessage(value,proto.PoliciesResponse.deserializeBinaryFromReader);
6227
+ msg.setPolicies(value);
5365
6228
  break;
5366
6229
  case 2:
5367
6230
  var value = new prisca_v1_global_meta_meta_pb.Meta;
@@ -5397,12 +6260,12 @@ proto.UpdatePolicyResponse.prototype.serializeBinary = function() {
5397
6260
  */
5398
6261
  proto.UpdatePolicyResponse.serializeBinaryToWriter = function(message, writer) {
5399
6262
  var f = undefined;
5400
- f = message.getPolicy();
6263
+ f = message.getPolicies();
5401
6264
  if (f != null) {
5402
6265
  writer.writeMessage(
5403
6266
  1,
5404
6267
  f,
5405
- proto.Policy.serializeBinaryToWriter
6268
+ proto.PoliciesResponse.serializeBinaryToWriter
5406
6269
  );
5407
6270
  }
5408
6271
  f = message.getMeta();
@@ -5417,20 +6280,20 @@ proto.UpdatePolicyResponse.serializeBinaryToWriter = function(message, writer) {
5417
6280
 
5418
6281
 
5419
6282
  /**
5420
- * optional Policy policy = 1;
5421
- * @return {?proto.Policy}
6283
+ * optional PoliciesResponse policies = 1;
6284
+ * @return {?proto.PoliciesResponse}
5422
6285
  */
5423
- proto.UpdatePolicyResponse.prototype.getPolicy = function() {
5424
- return /** @type{?proto.Policy} */ (
5425
- jspb.Message.getWrapperField(this, proto.Policy, 1));
6286
+ proto.UpdatePolicyResponse.prototype.getPolicies = function() {
6287
+ return /** @type{?proto.PoliciesResponse} */ (
6288
+ jspb.Message.getWrapperField(this, proto.PoliciesResponse, 1));
5426
6289
  };
5427
6290
 
5428
6291
 
5429
6292
  /**
5430
- * @param {?proto.Policy|undefined} value
6293
+ * @param {?proto.PoliciesResponse|undefined} value
5431
6294
  * @return {!proto.UpdatePolicyResponse} returns this
5432
6295
  */
5433
- proto.UpdatePolicyResponse.prototype.setPolicy = function(value) {
6296
+ proto.UpdatePolicyResponse.prototype.setPolicies = function(value) {
5434
6297
  return jspb.Message.setWrapperField(this, 1, value);
5435
6298
  };
5436
6299
 
@@ -5439,8 +6302,8 @@ proto.UpdatePolicyResponse.prototype.setPolicy = function(value) {
5439
6302
  * Clears the message field making it undefined.
5440
6303
  * @return {!proto.UpdatePolicyResponse} returns this
5441
6304
  */
5442
- proto.UpdatePolicyResponse.prototype.clearPolicy = function() {
5443
- return this.setPolicy(undefined);
6305
+ proto.UpdatePolicyResponse.prototype.clearPolicies = function() {
6306
+ return this.setPolicies(undefined);
5444
6307
  };
5445
6308
 
5446
6309
 
@@ -5448,7 +6311,7 @@ proto.UpdatePolicyResponse.prototype.clearPolicy = function() {
5448
6311
  * Returns whether this field is set.
5449
6312
  * @return {boolean}
5450
6313
  */
5451
- proto.UpdatePolicyResponse.prototype.hasPolicy = function() {
6314
+ proto.UpdatePolicyResponse.prototype.hasPolicies = function() {
5452
6315
  return jspb.Message.getField(this, 1) != null;
5453
6316
  };
5454
6317
 
@@ -5711,7 +6574,7 @@ proto.GetPolicyByRoleResponse.prototype.toObject = function(opt_includeInstance)
5711
6574
  proto.GetPolicyByRoleResponse.toObject = function(includeInstance, msg) {
5712
6575
  var f, obj = {
5713
6576
  policyList: jspb.Message.toObjectList(msg.getPolicyList(),
5714
- proto.Policy.toObject, includeInstance),
6577
+ proto.PoliciesResponse.toObject, includeInstance),
5715
6578
  meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
5716
6579
  };
5717
6580
 
@@ -5750,8 +6613,8 @@ proto.GetPolicyByRoleResponse.deserializeBinaryFromReader = function(msg, reader
5750
6613
  var field = reader.getFieldNumber();
5751
6614
  switch (field) {
5752
6615
  case 1:
5753
- var value = new proto.Policy;
5754
- reader.readMessage(value,proto.Policy.deserializeBinaryFromReader);
6616
+ var value = new proto.PoliciesResponse;
6617
+ reader.readMessage(value,proto.PoliciesResponse.deserializeBinaryFromReader);
5755
6618
  msg.addPolicy(value);
5756
6619
  break;
5757
6620
  case 2:
@@ -5793,7 +6656,7 @@ proto.GetPolicyByRoleResponse.serializeBinaryToWriter = function(message, writer
5793
6656
  writer.writeRepeatedMessage(
5794
6657
  1,
5795
6658
  f,
5796
- proto.Policy.serializeBinaryToWriter
6659
+ proto.PoliciesResponse.serializeBinaryToWriter
5797
6660
  );
5798
6661
  }
5799
6662
  f = message.getMeta();
@@ -5808,17 +6671,17 @@ proto.GetPolicyByRoleResponse.serializeBinaryToWriter = function(message, writer
5808
6671
 
5809
6672
 
5810
6673
  /**
5811
- * repeated Policy policy = 1;
5812
- * @return {!Array<!proto.Policy>}
6674
+ * repeated PoliciesResponse policy = 1;
6675
+ * @return {!Array<!proto.PoliciesResponse>}
5813
6676
  */
5814
6677
  proto.GetPolicyByRoleResponse.prototype.getPolicyList = function() {
5815
- return /** @type{!Array<!proto.Policy>} */ (
5816
- jspb.Message.getRepeatedWrapperField(this, proto.Policy, 1));
6678
+ return /** @type{!Array<!proto.PoliciesResponse>} */ (
6679
+ jspb.Message.getRepeatedWrapperField(this, proto.PoliciesResponse, 1));
5817
6680
  };
5818
6681
 
5819
6682
 
5820
6683
  /**
5821
- * @param {!Array<!proto.Policy>} value
6684
+ * @param {!Array<!proto.PoliciesResponse>} value
5822
6685
  * @return {!proto.GetPolicyByRoleResponse} returns this
5823
6686
  */
5824
6687
  proto.GetPolicyByRoleResponse.prototype.setPolicyList = function(value) {
@@ -5827,12 +6690,12 @@ proto.GetPolicyByRoleResponse.prototype.setPolicyList = function(value) {
5827
6690
 
5828
6691
 
5829
6692
  /**
5830
- * @param {!proto.Policy=} opt_value
6693
+ * @param {!proto.PoliciesResponse=} opt_value
5831
6694
  * @param {number=} opt_index
5832
- * @return {!proto.Policy}
6695
+ * @return {!proto.PoliciesResponse}
5833
6696
  */
5834
6697
  proto.GetPolicyByRoleResponse.prototype.addPolicy = function(opt_value, opt_index) {
5835
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Policy, opt_index);
6698
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.PoliciesResponse, opt_index);
5836
6699
  };
5837
6700
 
5838
6701