@aldiokta/protocgen 1.1.41 → 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.
|
|
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.
|
|
78
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.
|
|
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.
|
|
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.
|
|
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.
|
|
163
|
+
proto.PolicyAction = function(opt_data) {
|
|
120
164
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
121
165
|
};
|
|
122
|
-
goog.inherits(proto.
|
|
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.
|
|
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.
|
|
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.
|
|
1015
|
-
return proto.
|
|
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.
|
|
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.
|
|
1072
|
+
proto.PoliciesResponse.toObject = function(includeInstance, msg) {
|
|
1029
1073
|
var f, obj = {
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
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 @@ actionsList: jspb.Message.toObjectList(msg.getActionsList(),
|
|
|
1043
1088
|
/**
|
|
1044
1089
|
* Deserializes binary data (in protobuf wire format).
|
|
1045
1090
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1046
|
-
* @return {!proto.
|
|
1091
|
+
* @return {!proto.PoliciesResponse}
|
|
1047
1092
|
*/
|
|
1048
|
-
proto.
|
|
1093
|
+
proto.PoliciesResponse.deserializeBinary = function(bytes) {
|
|
1049
1094
|
var reader = new jspb.BinaryReader(bytes);
|
|
1050
|
-
var msg = new proto.
|
|
1051
|
-
return proto.
|
|
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.
|
|
1103
|
+
* @param {!proto.PoliciesResponse} msg The message object to deserialize into.
|
|
1059
1104
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1060
|
-
* @return {!proto.
|
|
1105
|
+
* @return {!proto.PoliciesResponse}
|
|
1061
1106
|
*/
|
|
1062
|
-
proto.
|
|
1107
|
+
proto.PoliciesResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1063
1108
|
while (reader.nextField()) {
|
|
1064
1109
|
if (reader.isEndGroup()) {
|
|
1065
1110
|
break;
|
|
@@ -1068,12 +1113,16 @@ proto.PolicyStatement.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
1068
1113
|
switch (field) {
|
|
1069
1114
|
case 1:
|
|
1070
1115
|
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1071
|
-
msg.
|
|
1116
|
+
msg.setName(value);
|
|
1072
1117
|
break;
|
|
1073
1118
|
case 2:
|
|
1074
|
-
var value =
|
|
1075
|
-
|
|
1076
|
-
|
|
1119
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1120
|
+
msg.setDescription(value);
|
|
1121
|
+
break;
|
|
1122
|
+
case 3:
|
|
1123
|
+
var value = new proto.Statement;
|
|
1124
|
+
reader.readMessage(value,proto.Statement.deserializeBinaryFromReader);
|
|
1125
|
+
msg.addStatement(value);
|
|
1077
1126
|
break;
|
|
1078
1127
|
default:
|
|
1079
1128
|
reader.skipField();
|
|
@@ -1088,9 +1137,9 @@ proto.PolicyStatement.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
1088
1137
|
* Serializes the message to binary data (in protobuf wire format).
|
|
1089
1138
|
* @return {!Uint8Array}
|
|
1090
1139
|
*/
|
|
1091
|
-
proto.
|
|
1140
|
+
proto.PoliciesResponse.prototype.serializeBinary = function() {
|
|
1092
1141
|
var writer = new jspb.BinaryWriter();
|
|
1093
|
-
proto.
|
|
1142
|
+
proto.PoliciesResponse.serializeBinaryToWriter(this, writer);
|
|
1094
1143
|
return writer.getResultBuffer();
|
|
1095
1144
|
};
|
|
1096
1145
|
|
|
@@ -1098,83 +1147,108 @@ proto.PolicyStatement.prototype.serializeBinary = function() {
|
|
|
1098
1147
|
/**
|
|
1099
1148
|
* Serializes the given message to binary data (in protobuf wire
|
|
1100
1149
|
* format), writing to the given BinaryWriter.
|
|
1101
|
-
* @param {!proto.
|
|
1150
|
+
* @param {!proto.PoliciesResponse} message
|
|
1102
1151
|
* @param {!jspb.BinaryWriter} writer
|
|
1103
1152
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1104
1153
|
*/
|
|
1105
|
-
proto.
|
|
1154
|
+
proto.PoliciesResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1106
1155
|
var f = undefined;
|
|
1107
|
-
f = message.
|
|
1156
|
+
f = message.getName();
|
|
1108
1157
|
if (f.length > 0) {
|
|
1109
1158
|
writer.writeString(
|
|
1110
1159
|
1,
|
|
1111
1160
|
f
|
|
1112
1161
|
);
|
|
1113
1162
|
}
|
|
1114
|
-
f = message.
|
|
1163
|
+
f = message.getDescription();
|
|
1115
1164
|
if (f.length > 0) {
|
|
1116
|
-
writer.
|
|
1165
|
+
writer.writeString(
|
|
1117
1166
|
2,
|
|
1167
|
+
f
|
|
1168
|
+
);
|
|
1169
|
+
}
|
|
1170
|
+
f = message.getStatementList();
|
|
1171
|
+
if (f.length > 0) {
|
|
1172
|
+
writer.writeRepeatedMessage(
|
|
1173
|
+
3,
|
|
1118
1174
|
f,
|
|
1119
|
-
proto.
|
|
1175
|
+
proto.Statement.serializeBinaryToWriter
|
|
1120
1176
|
);
|
|
1121
1177
|
}
|
|
1122
1178
|
};
|
|
1123
1179
|
|
|
1124
1180
|
|
|
1125
1181
|
/**
|
|
1126
|
-
* optional string
|
|
1182
|
+
* optional string name = 1;
|
|
1127
1183
|
* @return {string}
|
|
1128
1184
|
*/
|
|
1129
|
-
proto.
|
|
1185
|
+
proto.PoliciesResponse.prototype.getName = function() {
|
|
1130
1186
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1131
1187
|
};
|
|
1132
1188
|
|
|
1133
1189
|
|
|
1134
1190
|
/**
|
|
1135
1191
|
* @param {string} value
|
|
1136
|
-
* @return {!proto.
|
|
1192
|
+
* @return {!proto.PoliciesResponse} returns this
|
|
1137
1193
|
*/
|
|
1138
|
-
proto.
|
|
1194
|
+
proto.PoliciesResponse.prototype.setName = function(value) {
|
|
1139
1195
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1140
1196
|
};
|
|
1141
1197
|
|
|
1142
1198
|
|
|
1143
1199
|
/**
|
|
1144
|
-
*
|
|
1145
|
-
* @return {
|
|
1200
|
+
* optional string description = 2;
|
|
1201
|
+
* @return {string}
|
|
1146
1202
|
*/
|
|
1147
|
-
proto.
|
|
1148
|
-
return /** @type{
|
|
1149
|
-
jspb.Message.getRepeatedWrapperField(this, proto.Action, 2));
|
|
1203
|
+
proto.PoliciesResponse.prototype.getDescription = function() {
|
|
1204
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1150
1205
|
};
|
|
1151
1206
|
|
|
1152
1207
|
|
|
1153
1208
|
/**
|
|
1154
|
-
* @param {
|
|
1155
|
-
* @return {!proto.
|
|
1209
|
+
* @param {string} value
|
|
1210
|
+
* @return {!proto.PoliciesResponse} returns this
|
|
1211
|
+
*/
|
|
1212
|
+
proto.PoliciesResponse.prototype.setDescription = function(value) {
|
|
1213
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1214
|
+
};
|
|
1215
|
+
|
|
1216
|
+
|
|
1217
|
+
/**
|
|
1218
|
+
* repeated Statement statement = 3;
|
|
1219
|
+
* @return {!Array<!proto.Statement>}
|
|
1220
|
+
*/
|
|
1221
|
+
proto.PoliciesResponse.prototype.getStatementList = function() {
|
|
1222
|
+
return /** @type{!Array<!proto.Statement>} */ (
|
|
1223
|
+
jspb.Message.getRepeatedWrapperField(this, proto.Statement, 3));
|
|
1224
|
+
};
|
|
1225
|
+
|
|
1226
|
+
|
|
1227
|
+
/**
|
|
1228
|
+
* @param {!Array<!proto.Statement>} value
|
|
1229
|
+
* @return {!proto.PoliciesResponse} returns this
|
|
1156
1230
|
*/
|
|
1157
|
-
proto.
|
|
1158
|
-
return jspb.Message.setRepeatedWrapperField(this,
|
|
1231
|
+
proto.PoliciesResponse.prototype.setStatementList = function(value) {
|
|
1232
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
1159
1233
|
};
|
|
1160
1234
|
|
|
1161
1235
|
|
|
1162
1236
|
/**
|
|
1163
|
-
* @param {!proto.
|
|
1237
|
+
* @param {!proto.Statement=} opt_value
|
|
1164
1238
|
* @param {number=} opt_index
|
|
1165
|
-
* @return {!proto.
|
|
1239
|
+
* @return {!proto.Statement}
|
|
1166
1240
|
*/
|
|
1167
|
-
proto.
|
|
1168
|
-
return jspb.Message.addToRepeatedWrapperField(this,
|
|
1241
|
+
proto.PoliciesResponse.prototype.addStatement = function(opt_value, opt_index) {
|
|
1242
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.Statement, opt_index);
|
|
1169
1243
|
};
|
|
1170
1244
|
|
|
1171
1245
|
|
|
1172
1246
|
/**
|
|
1173
1247
|
* Clears the list making it empty but non-null.
|
|
1174
|
-
* @return {!proto.
|
|
1248
|
+
* @return {!proto.PoliciesResponse} returns this
|
|
1175
1249
|
*/
|
|
1176
|
-
proto.
|
|
1177
|
-
return this.
|
|
1250
|
+
proto.PoliciesResponse.prototype.clearStatementList = function() {
|
|
1251
|
+
return this.setStatementList([]);
|
|
1178
1252
|
};
|
|
1179
1253
|
|
|
1180
1254
|
|
|
@@ -1184,7 +1258,7 @@ proto.PolicyStatement.prototype.clearActionsList = function() {
|
|
|
1184
1258
|
* @private {!Array<number>}
|
|
1185
1259
|
* @const
|
|
1186
1260
|
*/
|
|
1187
|
-
proto.
|
|
1261
|
+
proto.Statement.repeatedFields_ = [2];
|
|
1188
1262
|
|
|
1189
1263
|
|
|
1190
1264
|
|
|
@@ -1201,8 +1275,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
1201
1275
|
* http://goto/soy-param-migration
|
|
1202
1276
|
* @return {!Object}
|
|
1203
1277
|
*/
|
|
1204
|
-
proto.
|
|
1205
|
-
return proto.
|
|
1278
|
+
proto.Statement.prototype.toObject = function(opt_includeInstance) {
|
|
1279
|
+
return proto.Statement.toObject(opt_includeInstance, this);
|
|
1206
1280
|
};
|
|
1207
1281
|
|
|
1208
1282
|
|
|
@@ -1211,21 +1285,15 @@ proto.Policy.prototype.toObject = function(opt_includeInstance) {
|
|
|
1211
1285
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1212
1286
|
* the JSPB instance for transitional soy proto support:
|
|
1213
1287
|
* http://goto/soy-param-migration
|
|
1214
|
-
* @param {!proto.
|
|
1288
|
+
* @param {!proto.Statement} msg The msg instance to transform.
|
|
1215
1289
|
* @return {!Object}
|
|
1216
1290
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1217
1291
|
*/
|
|
1218
|
-
proto.
|
|
1292
|
+
proto.Statement.toObject = function(includeInstance, msg) {
|
|
1219
1293
|
var f, obj = {
|
|
1220
1294
|
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
proto.PolicyStatement.toObject, includeInstance),
|
|
1224
|
-
referencesId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
1225
|
-
createdAt: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
1226
|
-
updatedAt: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
1227
|
-
createdBy: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
1228
|
-
updatedBy: jspb.Message.getFieldWithDefault(msg, 8, "")
|
|
1295
|
+
actionsList: jspb.Message.toObjectList(msg.getActionsList(),
|
|
1296
|
+
proto.Action.toObject, includeInstance)
|
|
1229
1297
|
};
|
|
1230
1298
|
|
|
1231
1299
|
if (includeInstance) {
|
|
@@ -1239,23 +1307,23 @@ updatedBy: jspb.Message.getFieldWithDefault(msg, 8, "")
|
|
|
1239
1307
|
/**
|
|
1240
1308
|
* Deserializes binary data (in protobuf wire format).
|
|
1241
1309
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1242
|
-
* @return {!proto.
|
|
1310
|
+
* @return {!proto.Statement}
|
|
1243
1311
|
*/
|
|
1244
|
-
proto.
|
|
1312
|
+
proto.Statement.deserializeBinary = function(bytes) {
|
|
1245
1313
|
var reader = new jspb.BinaryReader(bytes);
|
|
1246
|
-
var msg = new proto.
|
|
1247
|
-
return proto.
|
|
1314
|
+
var msg = new proto.Statement;
|
|
1315
|
+
return proto.Statement.deserializeBinaryFromReader(msg, reader);
|
|
1248
1316
|
};
|
|
1249
1317
|
|
|
1250
1318
|
|
|
1251
1319
|
/**
|
|
1252
1320
|
* Deserializes binary data (in protobuf wire format) from the
|
|
1253
1321
|
* given reader into the given message object.
|
|
1254
|
-
* @param {!proto.
|
|
1322
|
+
* @param {!proto.Statement} msg The message object to deserialize into.
|
|
1255
1323
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1256
|
-
* @return {!proto.
|
|
1324
|
+
* @return {!proto.Statement}
|
|
1257
1325
|
*/
|
|
1258
|
-
proto.
|
|
1326
|
+
proto.Statement.deserializeBinaryFromReader = function(msg, reader) {
|
|
1259
1327
|
while (reader.nextField()) {
|
|
1260
1328
|
if (reader.isEndGroup()) {
|
|
1261
1329
|
break;
|
|
@@ -1267,33 +1335,9 @@ proto.Policy.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
1267
1335
|
msg.setName(value);
|
|
1268
1336
|
break;
|
|
1269
1337
|
case 2:
|
|
1270
|
-
var value =
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
case 3:
|
|
1274
|
-
var value = new proto.PolicyStatement;
|
|
1275
|
-
reader.readMessage(value,proto.PolicyStatement.deserializeBinaryFromReader);
|
|
1276
|
-
msg.addStatements(value);
|
|
1277
|
-
break;
|
|
1278
|
-
case 4:
|
|
1279
|
-
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1280
|
-
msg.setReferencesId(value);
|
|
1281
|
-
break;
|
|
1282
|
-
case 5:
|
|
1283
|
-
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1284
|
-
msg.setCreatedAt(value);
|
|
1285
|
-
break;
|
|
1286
|
-
case 6:
|
|
1287
|
-
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1288
|
-
msg.setUpdatedAt(value);
|
|
1289
|
-
break;
|
|
1290
|
-
case 7:
|
|
1291
|
-
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1292
|
-
msg.setCreatedBy(value);
|
|
1293
|
-
break;
|
|
1294
|
-
case 8:
|
|
1295
|
-
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1296
|
-
msg.setUpdatedBy(value);
|
|
1338
|
+
var value = new proto.Action;
|
|
1339
|
+
reader.readMessage(value,proto.Action.deserializeBinaryFromReader);
|
|
1340
|
+
msg.addActions(value);
|
|
1297
1341
|
break;
|
|
1298
1342
|
default:
|
|
1299
1343
|
reader.skipField();
|
|
@@ -1308,9 +1352,9 @@ proto.Policy.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
1308
1352
|
* Serializes the message to binary data (in protobuf wire format).
|
|
1309
1353
|
* @return {!Uint8Array}
|
|
1310
1354
|
*/
|
|
1311
|
-
proto.
|
|
1355
|
+
proto.Statement.prototype.serializeBinary = function() {
|
|
1312
1356
|
var writer = new jspb.BinaryWriter();
|
|
1313
|
-
proto.
|
|
1357
|
+
proto.Statement.serializeBinaryToWriter(this, writer);
|
|
1314
1358
|
return writer.getResultBuffer();
|
|
1315
1359
|
};
|
|
1316
1360
|
|
|
@@ -1318,11 +1362,11 @@ proto.Policy.prototype.serializeBinary = function() {
|
|
|
1318
1362
|
/**
|
|
1319
1363
|
* Serializes the given message to binary data (in protobuf wire
|
|
1320
1364
|
* format), writing to the given BinaryWriter.
|
|
1321
|
-
* @param {!proto.
|
|
1365
|
+
* @param {!proto.Statement} message
|
|
1322
1366
|
* @param {!jspb.BinaryWriter} writer
|
|
1323
1367
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1324
1368
|
*/
|
|
1325
|
-
proto.
|
|
1369
|
+
proto.Statement.serializeBinaryToWriter = function(message, writer) {
|
|
1326
1370
|
var f = undefined;
|
|
1327
1371
|
f = message.getName();
|
|
1328
1372
|
if (f.length > 0) {
|
|
@@ -1331,54 +1375,12 @@ proto.Policy.serializeBinaryToWriter = function(message, writer) {
|
|
|
1331
1375
|
f
|
|
1332
1376
|
);
|
|
1333
1377
|
}
|
|
1334
|
-
f = message.
|
|
1335
|
-
if (f.length > 0) {
|
|
1336
|
-
writer.writeString(
|
|
1337
|
-
2,
|
|
1338
|
-
f
|
|
1339
|
-
);
|
|
1340
|
-
}
|
|
1341
|
-
f = message.getStatementsList();
|
|
1378
|
+
f = message.getActionsList();
|
|
1342
1379
|
if (f.length > 0) {
|
|
1343
1380
|
writer.writeRepeatedMessage(
|
|
1344
|
-
|
|
1381
|
+
2,
|
|
1345
1382
|
f,
|
|
1346
|
-
proto.
|
|
1347
|
-
);
|
|
1348
|
-
}
|
|
1349
|
-
f = message.getReferencesId();
|
|
1350
|
-
if (f.length > 0) {
|
|
1351
|
-
writer.writeString(
|
|
1352
|
-
4,
|
|
1353
|
-
f
|
|
1354
|
-
);
|
|
1355
|
-
}
|
|
1356
|
-
f = message.getCreatedAt();
|
|
1357
|
-
if (f.length > 0) {
|
|
1358
|
-
writer.writeString(
|
|
1359
|
-
5,
|
|
1360
|
-
f
|
|
1361
|
-
);
|
|
1362
|
-
}
|
|
1363
|
-
f = message.getUpdatedAt();
|
|
1364
|
-
if (f.length > 0) {
|
|
1365
|
-
writer.writeString(
|
|
1366
|
-
6,
|
|
1367
|
-
f
|
|
1368
|
-
);
|
|
1369
|
-
}
|
|
1370
|
-
f = message.getCreatedBy();
|
|
1371
|
-
if (f.length > 0) {
|
|
1372
|
-
writer.writeString(
|
|
1373
|
-
7,
|
|
1374
|
-
f
|
|
1375
|
-
);
|
|
1376
|
-
}
|
|
1377
|
-
f = message.getUpdatedBy();
|
|
1378
|
-
if (f.length > 0) {
|
|
1379
|
-
writer.writeString(
|
|
1380
|
-
8,
|
|
1381
|
-
f
|
|
1383
|
+
proto.Action.serializeBinaryToWriter
|
|
1382
1384
|
);
|
|
1383
1385
|
}
|
|
1384
1386
|
};
|
|
@@ -1388,108 +1390,1058 @@ proto.Policy.serializeBinaryToWriter = function(message, writer) {
|
|
|
1388
1390
|
* optional string name = 1;
|
|
1389
1391
|
* @return {string}
|
|
1390
1392
|
*/
|
|
1391
|
-
proto.
|
|
1393
|
+
proto.Statement.prototype.getName = function() {
|
|
1392
1394
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1393
1395
|
};
|
|
1394
1396
|
|
|
1395
1397
|
|
|
1396
1398
|
/**
|
|
1397
1399
|
* @param {string} value
|
|
1398
|
-
* @return {!proto.
|
|
1400
|
+
* @return {!proto.Statement} returns this
|
|
1399
1401
|
*/
|
|
1400
|
-
proto.
|
|
1402
|
+
proto.Statement.prototype.setName = function(value) {
|
|
1401
1403
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1402
1404
|
};
|
|
1403
1405
|
|
|
1404
1406
|
|
|
1405
1407
|
/**
|
|
1406
|
-
*
|
|
1407
|
-
* @return {
|
|
1408
|
-
*/
|
|
1409
|
-
proto.Policy.prototype.getDescription = function() {
|
|
1410
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1411
|
-
};
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
/**
|
|
1415
|
-
* @param {string} value
|
|
1416
|
-
* @return {!proto.Policy} returns this
|
|
1417
|
-
*/
|
|
1418
|
-
proto.Policy.prototype.setDescription = function(value) {
|
|
1419
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1420
|
-
};
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
/**
|
|
1424
|
-
* repeated PolicyStatement statements = 3;
|
|
1425
|
-
* @return {!Array<!proto.PolicyStatement>}
|
|
1408
|
+
* repeated Action actions = 2;
|
|
1409
|
+
* @return {!Array<!proto.Action>}
|
|
1426
1410
|
*/
|
|
1427
|
-
proto.
|
|
1428
|
-
return /** @type{!Array<!proto.
|
|
1429
|
-
jspb.Message.getRepeatedWrapperField(this, proto.
|
|
1411
|
+
proto.Statement.prototype.getActionsList = function() {
|
|
1412
|
+
return /** @type{!Array<!proto.Action>} */ (
|
|
1413
|
+
jspb.Message.getRepeatedWrapperField(this, proto.Action, 2));
|
|
1430
1414
|
};
|
|
1431
1415
|
|
|
1432
1416
|
|
|
1433
1417
|
/**
|
|
1434
|
-
* @param {!Array<!proto.
|
|
1435
|
-
* @return {!proto.
|
|
1418
|
+
* @param {!Array<!proto.Action>} value
|
|
1419
|
+
* @return {!proto.Statement} returns this
|
|
1436
1420
|
*/
|
|
1437
|
-
proto.
|
|
1438
|
-
return jspb.Message.setRepeatedWrapperField(this,
|
|
1421
|
+
proto.Statement.prototype.setActionsList = function(value) {
|
|
1422
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
1439
1423
|
};
|
|
1440
1424
|
|
|
1441
1425
|
|
|
1442
1426
|
/**
|
|
1443
|
-
* @param {!proto.
|
|
1427
|
+
* @param {!proto.Action=} opt_value
|
|
1444
1428
|
* @param {number=} opt_index
|
|
1445
|
-
* @return {!proto.
|
|
1429
|
+
* @return {!proto.Action}
|
|
1446
1430
|
*/
|
|
1447
|
-
proto.
|
|
1448
|
-
return jspb.Message.addToRepeatedWrapperField(this,
|
|
1431
|
+
proto.Statement.prototype.addActions = function(opt_value, opt_index) {
|
|
1432
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.Action, opt_index);
|
|
1449
1433
|
};
|
|
1450
1434
|
|
|
1451
1435
|
|
|
1452
1436
|
/**
|
|
1453
1437
|
* Clears the list making it empty but non-null.
|
|
1454
|
-
* @return {!proto.
|
|
1438
|
+
* @return {!proto.Statement} returns this
|
|
1455
1439
|
*/
|
|
1456
|
-
proto.
|
|
1457
|
-
return this.
|
|
1440
|
+
proto.Statement.prototype.clearActionsList = function() {
|
|
1441
|
+
return this.setActionsList([]);
|
|
1458
1442
|
};
|
|
1459
1443
|
|
|
1460
1444
|
|
|
1461
|
-
/**
|
|
1462
|
-
* optional string references_id = 4;
|
|
1463
|
-
* @return {string}
|
|
1464
|
-
*/
|
|
1465
|
-
proto.Policy.prototype.getReferencesId = function() {
|
|
1466
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
1467
|
-
};
|
|
1468
|
-
|
|
1469
1445
|
|
|
1470
1446
|
/**
|
|
1471
|
-
*
|
|
1472
|
-
* @
|
|
1447
|
+
* List of repeated fields within this message type.
|
|
1448
|
+
* @private {!Array<number>}
|
|
1449
|
+
* @const
|
|
1473
1450
|
*/
|
|
1474
|
-
proto.
|
|
1475
|
-
return jspb.Message.setProto3StringField(this, 4, value);
|
|
1476
|
-
};
|
|
1451
|
+
proto.BasePolicy.repeatedFields_ = [4];
|
|
1477
1452
|
|
|
1478
1453
|
|
|
1454
|
+
|
|
1455
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1479
1456
|
/**
|
|
1480
|
-
*
|
|
1481
|
-
*
|
|
1457
|
+
* Creates an object representation of this proto.
|
|
1458
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1459
|
+
* Optional fields that are not set will be set to undefined.
|
|
1460
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1461
|
+
* For the list of reserved names please see:
|
|
1462
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1463
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1464
|
+
* JSPB instance for transitional soy proto support:
|
|
1465
|
+
* http://goto/soy-param-migration
|
|
1466
|
+
* @return {!Object}
|
|
1482
1467
|
*/
|
|
1483
|
-
proto.
|
|
1484
|
-
return
|
|
1468
|
+
proto.BasePolicy.prototype.toObject = function(opt_includeInstance) {
|
|
1469
|
+
return proto.BasePolicy.toObject(opt_includeInstance, this);
|
|
1485
1470
|
};
|
|
1486
1471
|
|
|
1487
1472
|
|
|
1488
1473
|
/**
|
|
1489
|
-
* @
|
|
1490
|
-
* @
|
|
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
|
|
1491
2443
|
*/
|
|
1492
|
-
proto.
|
|
2444
|
+
proto.PolicyAction.prototype.setCreatedAt = function(value) {
|
|
1493
2445
|
return jspb.Message.setProto3StringField(this, 5, value);
|
|
1494
2446
|
};
|
|
1495
2447
|
|
|
@@ -1498,16 +2450,16 @@ proto.Policy.prototype.setCreatedAt = function(value) {
|
|
|
1498
2450
|
* optional string updated_at = 6;
|
|
1499
2451
|
* @return {string}
|
|
1500
2452
|
*/
|
|
1501
|
-
proto.
|
|
2453
|
+
proto.PolicyAction.prototype.getUpdatedAt = function() {
|
|
1502
2454
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
1503
2455
|
};
|
|
1504
2456
|
|
|
1505
2457
|
|
|
1506
2458
|
/**
|
|
1507
2459
|
* @param {string} value
|
|
1508
|
-
* @return {!proto.
|
|
2460
|
+
* @return {!proto.PolicyAction} returns this
|
|
1509
2461
|
*/
|
|
1510
|
-
proto.
|
|
2462
|
+
proto.PolicyAction.prototype.setUpdatedAt = function(value) {
|
|
1511
2463
|
return jspb.Message.setProto3StringField(this, 6, value);
|
|
1512
2464
|
};
|
|
1513
2465
|
|
|
@@ -1516,16 +2468,16 @@ proto.Policy.prototype.setUpdatedAt = function(value) {
|
|
|
1516
2468
|
* optional string created_by = 7;
|
|
1517
2469
|
* @return {string}
|
|
1518
2470
|
*/
|
|
1519
|
-
proto.
|
|
2471
|
+
proto.PolicyAction.prototype.getCreatedBy = function() {
|
|
1520
2472
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
1521
2473
|
};
|
|
1522
2474
|
|
|
1523
2475
|
|
|
1524
2476
|
/**
|
|
1525
2477
|
* @param {string} value
|
|
1526
|
-
* @return {!proto.
|
|
2478
|
+
* @return {!proto.PolicyAction} returns this
|
|
1527
2479
|
*/
|
|
1528
|
-
proto.
|
|
2480
|
+
proto.PolicyAction.prototype.setCreatedBy = function(value) {
|
|
1529
2481
|
return jspb.Message.setProto3StringField(this, 7, value);
|
|
1530
2482
|
};
|
|
1531
2483
|
|
|
@@ -1534,207 +2486,90 @@ proto.Policy.prototype.setCreatedBy = function(value) {
|
|
|
1534
2486
|
* optional string updated_by = 8;
|
|
1535
2487
|
* @return {string}
|
|
1536
2488
|
*/
|
|
1537
|
-
proto.
|
|
2489
|
+
proto.PolicyAction.prototype.getUpdatedBy = function() {
|
|
1538
2490
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
1539
2491
|
};
|
|
1540
2492
|
|
|
1541
2493
|
|
|
1542
2494
|
/**
|
|
1543
2495
|
* @param {string} value
|
|
1544
|
-
* @return {!proto.
|
|
2496
|
+
* @return {!proto.PolicyAction} returns this
|
|
1545
2497
|
*/
|
|
1546
|
-
proto.
|
|
2498
|
+
proto.PolicyAction.prototype.setUpdatedBy = function(value) {
|
|
1547
2499
|
return jspb.Message.setProto3StringField(this, 8, value);
|
|
1548
2500
|
};
|
|
1549
2501
|
|
|
1550
2502
|
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1555
|
-
/**
|
|
1556
|
-
* Creates an object representation of this proto.
|
|
1557
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1558
|
-
* Optional fields that are not set will be set to undefined.
|
|
1559
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1560
|
-
* For the list of reserved names please see:
|
|
1561
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1562
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1563
|
-
* JSPB instance for transitional soy proto support:
|
|
1564
|
-
* http://goto/soy-param-migration
|
|
1565
|
-
* @return {!Object}
|
|
1566
|
-
*/
|
|
1567
|
-
proto.BasePolicy.prototype.toObject = function(opt_includeInstance) {
|
|
1568
|
-
return proto.BasePolicy.toObject(opt_includeInstance, this);
|
|
1569
|
-
};
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
/**
|
|
1573
|
-
* Static version of the {@see toObject} method.
|
|
1574
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1575
|
-
* the JSPB instance for transitional soy proto support:
|
|
1576
|
-
* http://goto/soy-param-migration
|
|
1577
|
-
* @param {!proto.BasePolicy} msg The msg instance to transform.
|
|
1578
|
-
* @return {!Object}
|
|
1579
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1580
|
-
*/
|
|
1581
|
-
proto.BasePolicy.toObject = function(includeInstance, msg) {
|
|
1582
|
-
var f, obj = {
|
|
1583
|
-
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1584
|
-
description: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1585
|
-
referencesId: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
1586
|
-
};
|
|
1587
|
-
|
|
1588
|
-
if (includeInstance) {
|
|
1589
|
-
obj.$jspbMessageInstance = msg;
|
|
1590
|
-
}
|
|
1591
|
-
return obj;
|
|
1592
|
-
};
|
|
1593
|
-
}
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
/**
|
|
1597
|
-
* Deserializes binary data (in protobuf wire format).
|
|
1598
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1599
|
-
* @return {!proto.BasePolicy}
|
|
1600
|
-
*/
|
|
1601
|
-
proto.BasePolicy.deserializeBinary = function(bytes) {
|
|
1602
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
1603
|
-
var msg = new proto.BasePolicy;
|
|
1604
|
-
return proto.BasePolicy.deserializeBinaryFromReader(msg, reader);
|
|
1605
|
-
};
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
/**
|
|
1609
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
1610
|
-
* given reader into the given message object.
|
|
1611
|
-
* @param {!proto.BasePolicy} msg The message object to deserialize into.
|
|
1612
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1613
|
-
* @return {!proto.BasePolicy}
|
|
1614
|
-
*/
|
|
1615
|
-
proto.BasePolicy.deserializeBinaryFromReader = function(msg, reader) {
|
|
1616
|
-
while (reader.nextField()) {
|
|
1617
|
-
if (reader.isEndGroup()) {
|
|
1618
|
-
break;
|
|
1619
|
-
}
|
|
1620
|
-
var field = reader.getFieldNumber();
|
|
1621
|
-
switch (field) {
|
|
1622
|
-
case 1:
|
|
1623
|
-
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1624
|
-
msg.setName(value);
|
|
1625
|
-
break;
|
|
1626
|
-
case 2:
|
|
1627
|
-
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1628
|
-
msg.setDescription(value);
|
|
1629
|
-
break;
|
|
1630
|
-
case 3:
|
|
1631
|
-
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1632
|
-
msg.setReferencesId(value);
|
|
1633
|
-
break;
|
|
1634
|
-
default:
|
|
1635
|
-
reader.skipField();
|
|
1636
|
-
break;
|
|
1637
|
-
}
|
|
1638
|
-
}
|
|
1639
|
-
return msg;
|
|
1640
|
-
};
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
2503
|
/**
|
|
1644
|
-
*
|
|
1645
|
-
* @return {
|
|
2504
|
+
* optional string companies_references_id = 9;
|
|
2505
|
+
* @return {string}
|
|
1646
2506
|
*/
|
|
1647
|
-
proto.
|
|
1648
|
-
|
|
1649
|
-
proto.BasePolicy.serializeBinaryToWriter(this, writer);
|
|
1650
|
-
return writer.getResultBuffer();
|
|
2507
|
+
proto.PolicyAction.prototype.getCompaniesReferencesId = function() {
|
|
2508
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
1651
2509
|
};
|
|
1652
2510
|
|
|
1653
2511
|
|
|
1654
2512
|
/**
|
|
1655
|
-
*
|
|
1656
|
-
*
|
|
1657
|
-
* @param {!proto.BasePolicy} message
|
|
1658
|
-
* @param {!jspb.BinaryWriter} writer
|
|
1659
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2513
|
+
* @param {string} value
|
|
2514
|
+
* @return {!proto.PolicyAction} returns this
|
|
1660
2515
|
*/
|
|
1661
|
-
proto.
|
|
1662
|
-
|
|
1663
|
-
f = message.getName();
|
|
1664
|
-
if (f.length > 0) {
|
|
1665
|
-
writer.writeString(
|
|
1666
|
-
1,
|
|
1667
|
-
f
|
|
1668
|
-
);
|
|
1669
|
-
}
|
|
1670
|
-
f = message.getDescription();
|
|
1671
|
-
if (f.length > 0) {
|
|
1672
|
-
writer.writeString(
|
|
1673
|
-
2,
|
|
1674
|
-
f
|
|
1675
|
-
);
|
|
1676
|
-
}
|
|
1677
|
-
f = message.getReferencesId();
|
|
1678
|
-
if (f.length > 0) {
|
|
1679
|
-
writer.writeString(
|
|
1680
|
-
3,
|
|
1681
|
-
f
|
|
1682
|
-
);
|
|
1683
|
-
}
|
|
2516
|
+
proto.PolicyAction.prototype.setCompaniesReferencesId = function(value) {
|
|
2517
|
+
return jspb.Message.setProto3StringField(this, 9, value);
|
|
1684
2518
|
};
|
|
1685
2519
|
|
|
1686
2520
|
|
|
1687
2521
|
/**
|
|
1688
|
-
* optional string
|
|
2522
|
+
* optional string resource_references_id = 10;
|
|
1689
2523
|
* @return {string}
|
|
1690
2524
|
*/
|
|
1691
|
-
proto.
|
|
1692
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
2525
|
+
proto.PolicyAction.prototype.getResourceReferencesId = function() {
|
|
2526
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
1693
2527
|
};
|
|
1694
2528
|
|
|
1695
2529
|
|
|
1696
2530
|
/**
|
|
1697
2531
|
* @param {string} value
|
|
1698
|
-
* @return {!proto.
|
|
2532
|
+
* @return {!proto.PolicyAction} returns this
|
|
1699
2533
|
*/
|
|
1700
|
-
proto.
|
|
1701
|
-
return jspb.Message.setProto3StringField(this,
|
|
2534
|
+
proto.PolicyAction.prototype.setResourceReferencesId = function(value) {
|
|
2535
|
+
return jspb.Message.setProto3StringField(this, 10, value);
|
|
1702
2536
|
};
|
|
1703
2537
|
|
|
1704
2538
|
|
|
1705
2539
|
/**
|
|
1706
|
-
* optional
|
|
1707
|
-
* @return {
|
|
2540
|
+
* optional Action action = 11;
|
|
2541
|
+
* @return {?proto.Action}
|
|
1708
2542
|
*/
|
|
1709
|
-
proto.
|
|
1710
|
-
return /** @type
|
|
2543
|
+
proto.PolicyAction.prototype.getAction = function() {
|
|
2544
|
+
return /** @type{?proto.Action} */ (
|
|
2545
|
+
jspb.Message.getWrapperField(this, proto.Action, 11));
|
|
1711
2546
|
};
|
|
1712
2547
|
|
|
1713
2548
|
|
|
1714
2549
|
/**
|
|
1715
|
-
* @param {
|
|
1716
|
-
* @return {!proto.
|
|
1717
|
-
|
|
1718
|
-
proto.
|
|
1719
|
-
return jspb.Message.
|
|
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);
|
|
1720
2555
|
};
|
|
1721
2556
|
|
|
1722
2557
|
|
|
1723
2558
|
/**
|
|
1724
|
-
*
|
|
1725
|
-
* @return {
|
|
2559
|
+
* Clears the message field making it undefined.
|
|
2560
|
+
* @return {!proto.PolicyAction} returns this
|
|
1726
2561
|
*/
|
|
1727
|
-
proto.
|
|
1728
|
-
return
|
|
2562
|
+
proto.PolicyAction.prototype.clearAction = function() {
|
|
2563
|
+
return this.setAction(undefined);
|
|
1729
2564
|
};
|
|
1730
2565
|
|
|
1731
2566
|
|
|
1732
2567
|
/**
|
|
1733
|
-
*
|
|
1734
|
-
* @return {
|
|
2568
|
+
* Returns whether this field is set.
|
|
2569
|
+
* @return {boolean}
|
|
1735
2570
|
*/
|
|
1736
|
-
proto.
|
|
1737
|
-
return jspb.Message.
|
|
2571
|
+
proto.PolicyAction.prototype.hasAction = function() {
|
|
2572
|
+
return jspb.Message.getField(this, 11) != null;
|
|
1738
2573
|
};
|
|
1739
2574
|
|
|
1740
2575
|
|
|
@@ -2713,8 +3548,7 @@ referencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
|
2713
3548
|
description: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
2714
3549
|
accessLevel: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
2715
3550
|
resourceList: jspb.Message.toObjectList(msg.getResourceList(),
|
|
2716
|
-
proto.Resource.toObject, includeInstance)
|
|
2717
|
-
actionCatalog: (f = msg.getActionCatalog()) && proto.ActionCatalog.toObject(includeInstance, f)
|
|
3551
|
+
proto.Resource.toObject, includeInstance)
|
|
2718
3552
|
};
|
|
2719
3553
|
|
|
2720
3554
|
if (includeInstance) {
|
|
@@ -2772,11 +3606,6 @@ proto.Action.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
2772
3606
|
reader.readMessage(value,proto.Resource.deserializeBinaryFromReader);
|
|
2773
3607
|
msg.addResource(value);
|
|
2774
3608
|
break;
|
|
2775
|
-
case 6:
|
|
2776
|
-
var value = new proto.ActionCatalog;
|
|
2777
|
-
reader.readMessage(value,proto.ActionCatalog.deserializeBinaryFromReader);
|
|
2778
|
-
msg.setActionCatalog(value);
|
|
2779
|
-
break;
|
|
2780
3609
|
default:
|
|
2781
3610
|
reader.skipField();
|
|
2782
3611
|
break;
|
|
@@ -2842,14 +3671,6 @@ proto.Action.serializeBinaryToWriter = function(message, writer) {
|
|
|
2842
3671
|
proto.Resource.serializeBinaryToWriter
|
|
2843
3672
|
);
|
|
2844
3673
|
}
|
|
2845
|
-
f = message.getActionCatalog();
|
|
2846
|
-
if (f != null) {
|
|
2847
|
-
writer.writeMessage(
|
|
2848
|
-
6,
|
|
2849
|
-
f,
|
|
2850
|
-
proto.ActionCatalog.serializeBinaryToWriter
|
|
2851
|
-
);
|
|
2852
|
-
}
|
|
2853
3674
|
};
|
|
2854
3675
|
|
|
2855
3676
|
|
|
@@ -2963,43 +3784,6 @@ proto.Action.prototype.clearResourceList = function() {
|
|
|
2963
3784
|
};
|
|
2964
3785
|
|
|
2965
3786
|
|
|
2966
|
-
/**
|
|
2967
|
-
* optional ActionCatalog action_catalog = 6;
|
|
2968
|
-
* @return {?proto.ActionCatalog}
|
|
2969
|
-
*/
|
|
2970
|
-
proto.Action.prototype.getActionCatalog = function() {
|
|
2971
|
-
return /** @type{?proto.ActionCatalog} */ (
|
|
2972
|
-
jspb.Message.getWrapperField(this, proto.ActionCatalog, 6));
|
|
2973
|
-
};
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
/**
|
|
2977
|
-
* @param {?proto.ActionCatalog|undefined} value
|
|
2978
|
-
* @return {!proto.Action} returns this
|
|
2979
|
-
*/
|
|
2980
|
-
proto.Action.prototype.setActionCatalog = function(value) {
|
|
2981
|
-
return jspb.Message.setWrapperField(this, 6, value);
|
|
2982
|
-
};
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
/**
|
|
2986
|
-
* Clears the message field making it undefined.
|
|
2987
|
-
* @return {!proto.Action} returns this
|
|
2988
|
-
*/
|
|
2989
|
-
proto.Action.prototype.clearActionCatalog = function() {
|
|
2990
|
-
return this.setActionCatalog(undefined);
|
|
2991
|
-
};
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
/**
|
|
2995
|
-
* Returns whether this field is set.
|
|
2996
|
-
* @return {boolean}
|
|
2997
|
-
*/
|
|
2998
|
-
proto.Action.prototype.hasActionCatalog = function() {
|
|
2999
|
-
return jspb.Message.getField(this, 6) != null;
|
|
3000
|
-
};
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
3787
|
|
|
3004
3788
|
|
|
3005
3789
|
|
|
@@ -4784,7 +5568,7 @@ proto.CreatePolicyResponse.prototype.toObject = function(opt_includeInstance) {
|
|
|
4784
5568
|
*/
|
|
4785
5569
|
proto.CreatePolicyResponse.toObject = function(includeInstance, msg) {
|
|
4786
5570
|
var f, obj = {
|
|
4787
|
-
|
|
5571
|
+
policies: (f = msg.getPolicies()) && proto.PoliciesResponse.toObject(includeInstance, f),
|
|
4788
5572
|
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
4789
5573
|
};
|
|
4790
5574
|
|
|
@@ -4823,9 +5607,9 @@ proto.CreatePolicyResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
4823
5607
|
var field = reader.getFieldNumber();
|
|
4824
5608
|
switch (field) {
|
|
4825
5609
|
case 1:
|
|
4826
|
-
var value = new proto.
|
|
4827
|
-
reader.readMessage(value,proto.
|
|
4828
|
-
msg.
|
|
5610
|
+
var value = new proto.PoliciesResponse;
|
|
5611
|
+
reader.readMessage(value,proto.PoliciesResponse.deserializeBinaryFromReader);
|
|
5612
|
+
msg.setPolicies(value);
|
|
4829
5613
|
break;
|
|
4830
5614
|
case 2:
|
|
4831
5615
|
var value = new prisca_v1_global_meta_meta_pb.Meta;
|
|
@@ -4861,12 +5645,12 @@ proto.CreatePolicyResponse.prototype.serializeBinary = function() {
|
|
|
4861
5645
|
*/
|
|
4862
5646
|
proto.CreatePolicyResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4863
5647
|
var f = undefined;
|
|
4864
|
-
f = message.
|
|
5648
|
+
f = message.getPolicies();
|
|
4865
5649
|
if (f != null) {
|
|
4866
5650
|
writer.writeMessage(
|
|
4867
5651
|
1,
|
|
4868
5652
|
f,
|
|
4869
|
-
proto.
|
|
5653
|
+
proto.PoliciesResponse.serializeBinaryToWriter
|
|
4870
5654
|
);
|
|
4871
5655
|
}
|
|
4872
5656
|
f = message.getMeta();
|
|
@@ -4881,20 +5665,20 @@ proto.CreatePolicyResponse.serializeBinaryToWriter = function(message, writer) {
|
|
|
4881
5665
|
|
|
4882
5666
|
|
|
4883
5667
|
/**
|
|
4884
|
-
* optional
|
|
4885
|
-
* @return {?proto.
|
|
5668
|
+
* optional PoliciesResponse policies = 1;
|
|
5669
|
+
* @return {?proto.PoliciesResponse}
|
|
4886
5670
|
*/
|
|
4887
|
-
proto.CreatePolicyResponse.prototype.
|
|
4888
|
-
return /** @type{?proto.
|
|
4889
|
-
jspb.Message.getWrapperField(this, proto.
|
|
5671
|
+
proto.CreatePolicyResponse.prototype.getPolicies = function() {
|
|
5672
|
+
return /** @type{?proto.PoliciesResponse} */ (
|
|
5673
|
+
jspb.Message.getWrapperField(this, proto.PoliciesResponse, 1));
|
|
4890
5674
|
};
|
|
4891
5675
|
|
|
4892
5676
|
|
|
4893
5677
|
/**
|
|
4894
|
-
* @param {?proto.
|
|
5678
|
+
* @param {?proto.PoliciesResponse|undefined} value
|
|
4895
5679
|
* @return {!proto.CreatePolicyResponse} returns this
|
|
4896
5680
|
*/
|
|
4897
|
-
proto.CreatePolicyResponse.prototype.
|
|
5681
|
+
proto.CreatePolicyResponse.prototype.setPolicies = function(value) {
|
|
4898
5682
|
return jspb.Message.setWrapperField(this, 1, value);
|
|
4899
5683
|
};
|
|
4900
5684
|
|
|
@@ -4903,8 +5687,8 @@ proto.CreatePolicyResponse.prototype.setPolicy = function(value) {
|
|
|
4903
5687
|
* Clears the message field making it undefined.
|
|
4904
5688
|
* @return {!proto.CreatePolicyResponse} returns this
|
|
4905
5689
|
*/
|
|
4906
|
-
proto.CreatePolicyResponse.prototype.
|
|
4907
|
-
return this.
|
|
5690
|
+
proto.CreatePolicyResponse.prototype.clearPolicies = function() {
|
|
5691
|
+
return this.setPolicies(undefined);
|
|
4908
5692
|
};
|
|
4909
5693
|
|
|
4910
5694
|
|
|
@@ -4912,7 +5696,7 @@ proto.CreatePolicyResponse.prototype.clearPolicy = function() {
|
|
|
4912
5696
|
* Returns whether this field is set.
|
|
4913
5697
|
* @return {boolean}
|
|
4914
5698
|
*/
|
|
4915
|
-
proto.CreatePolicyResponse.prototype.
|
|
5699
|
+
proto.CreatePolicyResponse.prototype.hasPolicies = function() {
|
|
4916
5700
|
return jspb.Message.getField(this, 1) != null;
|
|
4917
5701
|
};
|
|
4918
5702
|
|
|
@@ -4993,8 +5777,8 @@ proto.GetPolicyListResponse.prototype.toObject = function(opt_includeInstance) {
|
|
|
4993
5777
|
*/
|
|
4994
5778
|
proto.GetPolicyListResponse.toObject = function(includeInstance, msg) {
|
|
4995
5779
|
var f, obj = {
|
|
4996
|
-
|
|
4997
|
-
proto.
|
|
5780
|
+
policiesList: jspb.Message.toObjectList(msg.getPoliciesList(),
|
|
5781
|
+
proto.PoliciesResponse.toObject, includeInstance),
|
|
4998
5782
|
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
4999
5783
|
};
|
|
5000
5784
|
|
|
@@ -5033,9 +5817,9 @@ proto.GetPolicyListResponse.deserializeBinaryFromReader = function(msg, reader)
|
|
|
5033
5817
|
var field = reader.getFieldNumber();
|
|
5034
5818
|
switch (field) {
|
|
5035
5819
|
case 1:
|
|
5036
|
-
var value = new proto.
|
|
5037
|
-
reader.readMessage(value,proto.
|
|
5038
|
-
msg.
|
|
5820
|
+
var value = new proto.PoliciesResponse;
|
|
5821
|
+
reader.readMessage(value,proto.PoliciesResponse.deserializeBinaryFromReader);
|
|
5822
|
+
msg.addPolicies(value);
|
|
5039
5823
|
break;
|
|
5040
5824
|
case 2:
|
|
5041
5825
|
var value = new prisca_v1_global_meta_meta_pb.Meta;
|
|
@@ -5071,12 +5855,12 @@ proto.GetPolicyListResponse.prototype.serializeBinary = function() {
|
|
|
5071
5855
|
*/
|
|
5072
5856
|
proto.GetPolicyListResponse.serializeBinaryToWriter = function(message, writer) {
|
|
5073
5857
|
var f = undefined;
|
|
5074
|
-
f = message.
|
|
5858
|
+
f = message.getPoliciesList();
|
|
5075
5859
|
if (f.length > 0) {
|
|
5076
5860
|
writer.writeRepeatedMessage(
|
|
5077
5861
|
1,
|
|
5078
5862
|
f,
|
|
5079
|
-
proto.
|
|
5863
|
+
proto.PoliciesResponse.serializeBinaryToWriter
|
|
5080
5864
|
);
|
|
5081
5865
|
}
|
|
5082
5866
|
f = message.getMeta();
|
|
@@ -5091,31 +5875,31 @@ proto.GetPolicyListResponse.serializeBinaryToWriter = function(message, writer)
|
|
|
5091
5875
|
|
|
5092
5876
|
|
|
5093
5877
|
/**
|
|
5094
|
-
* repeated
|
|
5095
|
-
* @return {!Array<!proto.
|
|
5878
|
+
* repeated PoliciesResponse policies = 1;
|
|
5879
|
+
* @return {!Array<!proto.PoliciesResponse>}
|
|
5096
5880
|
*/
|
|
5097
|
-
proto.GetPolicyListResponse.prototype.
|
|
5098
|
-
return /** @type{!Array<!proto.
|
|
5099
|
-
jspb.Message.getRepeatedWrapperField(this, proto.
|
|
5881
|
+
proto.GetPolicyListResponse.prototype.getPoliciesList = function() {
|
|
5882
|
+
return /** @type{!Array<!proto.PoliciesResponse>} */ (
|
|
5883
|
+
jspb.Message.getRepeatedWrapperField(this, proto.PoliciesResponse, 1));
|
|
5100
5884
|
};
|
|
5101
5885
|
|
|
5102
5886
|
|
|
5103
5887
|
/**
|
|
5104
|
-
* @param {!Array<!proto.
|
|
5888
|
+
* @param {!Array<!proto.PoliciesResponse>} value
|
|
5105
5889
|
* @return {!proto.GetPolicyListResponse} returns this
|
|
5106
5890
|
*/
|
|
5107
|
-
proto.GetPolicyListResponse.prototype.
|
|
5891
|
+
proto.GetPolicyListResponse.prototype.setPoliciesList = function(value) {
|
|
5108
5892
|
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
5109
5893
|
};
|
|
5110
5894
|
|
|
5111
5895
|
|
|
5112
5896
|
/**
|
|
5113
|
-
* @param {!proto.
|
|
5897
|
+
* @param {!proto.PoliciesResponse=} opt_value
|
|
5114
5898
|
* @param {number=} opt_index
|
|
5115
|
-
* @return {!proto.
|
|
5899
|
+
* @return {!proto.PoliciesResponse}
|
|
5116
5900
|
*/
|
|
5117
|
-
proto.GetPolicyListResponse.prototype.
|
|
5118
|
-
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.
|
|
5901
|
+
proto.GetPolicyListResponse.prototype.addPolicies = function(opt_value, opt_index) {
|
|
5902
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.PoliciesResponse, opt_index);
|
|
5119
5903
|
};
|
|
5120
5904
|
|
|
5121
5905
|
|
|
@@ -5123,8 +5907,8 @@ proto.GetPolicyListResponse.prototype.addPolicy = function(opt_value, opt_index)
|
|
|
5123
5907
|
* Clears the list making it empty but non-null.
|
|
5124
5908
|
* @return {!proto.GetPolicyListResponse} returns this
|
|
5125
5909
|
*/
|
|
5126
|
-
proto.GetPolicyListResponse.prototype.
|
|
5127
|
-
return this.
|
|
5910
|
+
proto.GetPolicyListResponse.prototype.clearPoliciesList = function() {
|
|
5911
|
+
return this.setPoliciesList([]);
|
|
5128
5912
|
};
|
|
5129
5913
|
|
|
5130
5914
|
|
|
@@ -5197,7 +5981,7 @@ proto.GetPolicyByIdResponse.prototype.toObject = function(opt_includeInstance) {
|
|
|
5197
5981
|
*/
|
|
5198
5982
|
proto.GetPolicyByIdResponse.toObject = function(includeInstance, msg) {
|
|
5199
5983
|
var f, obj = {
|
|
5200
|
-
|
|
5984
|
+
policies: (f = msg.getPolicies()) && proto.PoliciesResponse.toObject(includeInstance, f),
|
|
5201
5985
|
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
5202
5986
|
};
|
|
5203
5987
|
|
|
@@ -5236,9 +6020,9 @@ proto.GetPolicyByIdResponse.deserializeBinaryFromReader = function(msg, reader)
|
|
|
5236
6020
|
var field = reader.getFieldNumber();
|
|
5237
6021
|
switch (field) {
|
|
5238
6022
|
case 1:
|
|
5239
|
-
var value = new proto.
|
|
5240
|
-
reader.readMessage(value,proto.
|
|
5241
|
-
msg.
|
|
6023
|
+
var value = new proto.PoliciesResponse;
|
|
6024
|
+
reader.readMessage(value,proto.PoliciesResponse.deserializeBinaryFromReader);
|
|
6025
|
+
msg.setPolicies(value);
|
|
5242
6026
|
break;
|
|
5243
6027
|
case 2:
|
|
5244
6028
|
var value = new prisca_v1_global_meta_meta_pb.Meta;
|
|
@@ -5274,12 +6058,12 @@ proto.GetPolicyByIdResponse.prototype.serializeBinary = function() {
|
|
|
5274
6058
|
*/
|
|
5275
6059
|
proto.GetPolicyByIdResponse.serializeBinaryToWriter = function(message, writer) {
|
|
5276
6060
|
var f = undefined;
|
|
5277
|
-
f = message.
|
|
6061
|
+
f = message.getPolicies();
|
|
5278
6062
|
if (f != null) {
|
|
5279
6063
|
writer.writeMessage(
|
|
5280
6064
|
1,
|
|
5281
6065
|
f,
|
|
5282
|
-
proto.
|
|
6066
|
+
proto.PoliciesResponse.serializeBinaryToWriter
|
|
5283
6067
|
);
|
|
5284
6068
|
}
|
|
5285
6069
|
f = message.getMeta();
|
|
@@ -5294,20 +6078,20 @@ proto.GetPolicyByIdResponse.serializeBinaryToWriter = function(message, writer)
|
|
|
5294
6078
|
|
|
5295
6079
|
|
|
5296
6080
|
/**
|
|
5297
|
-
* optional
|
|
5298
|
-
* @return {?proto.
|
|
6081
|
+
* optional PoliciesResponse policies = 1;
|
|
6082
|
+
* @return {?proto.PoliciesResponse}
|
|
5299
6083
|
*/
|
|
5300
|
-
proto.GetPolicyByIdResponse.prototype.
|
|
5301
|
-
return /** @type{?proto.
|
|
5302
|
-
jspb.Message.getWrapperField(this, proto.
|
|
6084
|
+
proto.GetPolicyByIdResponse.prototype.getPolicies = function() {
|
|
6085
|
+
return /** @type{?proto.PoliciesResponse} */ (
|
|
6086
|
+
jspb.Message.getWrapperField(this, proto.PoliciesResponse, 1));
|
|
5303
6087
|
};
|
|
5304
6088
|
|
|
5305
6089
|
|
|
5306
6090
|
/**
|
|
5307
|
-
* @param {?proto.
|
|
6091
|
+
* @param {?proto.PoliciesResponse|undefined} value
|
|
5308
6092
|
* @return {!proto.GetPolicyByIdResponse} returns this
|
|
5309
6093
|
*/
|
|
5310
|
-
proto.GetPolicyByIdResponse.prototype.
|
|
6094
|
+
proto.GetPolicyByIdResponse.prototype.setPolicies = function(value) {
|
|
5311
6095
|
return jspb.Message.setWrapperField(this, 1, value);
|
|
5312
6096
|
};
|
|
5313
6097
|
|
|
@@ -5316,8 +6100,8 @@ proto.GetPolicyByIdResponse.prototype.setPolicy = function(value) {
|
|
|
5316
6100
|
* Clears the message field making it undefined.
|
|
5317
6101
|
* @return {!proto.GetPolicyByIdResponse} returns this
|
|
5318
6102
|
*/
|
|
5319
|
-
proto.GetPolicyByIdResponse.prototype.
|
|
5320
|
-
return this.
|
|
6103
|
+
proto.GetPolicyByIdResponse.prototype.clearPolicies = function() {
|
|
6104
|
+
return this.setPolicies(undefined);
|
|
5321
6105
|
};
|
|
5322
6106
|
|
|
5323
6107
|
|
|
@@ -5325,7 +6109,7 @@ proto.GetPolicyByIdResponse.prototype.clearPolicy = function() {
|
|
|
5325
6109
|
* Returns whether this field is set.
|
|
5326
6110
|
* @return {boolean}
|
|
5327
6111
|
*/
|
|
5328
|
-
proto.GetPolicyByIdResponse.prototype.
|
|
6112
|
+
proto.GetPolicyByIdResponse.prototype.hasPolicies = function() {
|
|
5329
6113
|
return jspb.Message.getField(this, 1) != null;
|
|
5330
6114
|
};
|
|
5331
6115
|
|
|
@@ -5399,7 +6183,7 @@ proto.UpdatePolicyResponse.prototype.toObject = function(opt_includeInstance) {
|
|
|
5399
6183
|
*/
|
|
5400
6184
|
proto.UpdatePolicyResponse.toObject = function(includeInstance, msg) {
|
|
5401
6185
|
var f, obj = {
|
|
5402
|
-
|
|
6186
|
+
policies: (f = msg.getPolicies()) && proto.PoliciesResponse.toObject(includeInstance, f),
|
|
5403
6187
|
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
5404
6188
|
};
|
|
5405
6189
|
|
|
@@ -5438,9 +6222,9 @@ proto.UpdatePolicyResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
5438
6222
|
var field = reader.getFieldNumber();
|
|
5439
6223
|
switch (field) {
|
|
5440
6224
|
case 1:
|
|
5441
|
-
var value = new proto.
|
|
5442
|
-
reader.readMessage(value,proto.
|
|
5443
|
-
msg.
|
|
6225
|
+
var value = new proto.PoliciesResponse;
|
|
6226
|
+
reader.readMessage(value,proto.PoliciesResponse.deserializeBinaryFromReader);
|
|
6227
|
+
msg.setPolicies(value);
|
|
5444
6228
|
break;
|
|
5445
6229
|
case 2:
|
|
5446
6230
|
var value = new prisca_v1_global_meta_meta_pb.Meta;
|
|
@@ -5476,12 +6260,12 @@ proto.UpdatePolicyResponse.prototype.serializeBinary = function() {
|
|
|
5476
6260
|
*/
|
|
5477
6261
|
proto.UpdatePolicyResponse.serializeBinaryToWriter = function(message, writer) {
|
|
5478
6262
|
var f = undefined;
|
|
5479
|
-
f = message.
|
|
6263
|
+
f = message.getPolicies();
|
|
5480
6264
|
if (f != null) {
|
|
5481
6265
|
writer.writeMessage(
|
|
5482
6266
|
1,
|
|
5483
6267
|
f,
|
|
5484
|
-
proto.
|
|
6268
|
+
proto.PoliciesResponse.serializeBinaryToWriter
|
|
5485
6269
|
);
|
|
5486
6270
|
}
|
|
5487
6271
|
f = message.getMeta();
|
|
@@ -5496,20 +6280,20 @@ proto.UpdatePolicyResponse.serializeBinaryToWriter = function(message, writer) {
|
|
|
5496
6280
|
|
|
5497
6281
|
|
|
5498
6282
|
/**
|
|
5499
|
-
* optional
|
|
5500
|
-
* @return {?proto.
|
|
6283
|
+
* optional PoliciesResponse policies = 1;
|
|
6284
|
+
* @return {?proto.PoliciesResponse}
|
|
5501
6285
|
*/
|
|
5502
|
-
proto.UpdatePolicyResponse.prototype.
|
|
5503
|
-
return /** @type{?proto.
|
|
5504
|
-
jspb.Message.getWrapperField(this, proto.
|
|
6286
|
+
proto.UpdatePolicyResponse.prototype.getPolicies = function() {
|
|
6287
|
+
return /** @type{?proto.PoliciesResponse} */ (
|
|
6288
|
+
jspb.Message.getWrapperField(this, proto.PoliciesResponse, 1));
|
|
5505
6289
|
};
|
|
5506
6290
|
|
|
5507
6291
|
|
|
5508
6292
|
/**
|
|
5509
|
-
* @param {?proto.
|
|
6293
|
+
* @param {?proto.PoliciesResponse|undefined} value
|
|
5510
6294
|
* @return {!proto.UpdatePolicyResponse} returns this
|
|
5511
6295
|
*/
|
|
5512
|
-
proto.UpdatePolicyResponse.prototype.
|
|
6296
|
+
proto.UpdatePolicyResponse.prototype.setPolicies = function(value) {
|
|
5513
6297
|
return jspb.Message.setWrapperField(this, 1, value);
|
|
5514
6298
|
};
|
|
5515
6299
|
|
|
@@ -5518,8 +6302,8 @@ proto.UpdatePolicyResponse.prototype.setPolicy = function(value) {
|
|
|
5518
6302
|
* Clears the message field making it undefined.
|
|
5519
6303
|
* @return {!proto.UpdatePolicyResponse} returns this
|
|
5520
6304
|
*/
|
|
5521
|
-
proto.UpdatePolicyResponse.prototype.
|
|
5522
|
-
return this.
|
|
6305
|
+
proto.UpdatePolicyResponse.prototype.clearPolicies = function() {
|
|
6306
|
+
return this.setPolicies(undefined);
|
|
5523
6307
|
};
|
|
5524
6308
|
|
|
5525
6309
|
|
|
@@ -5527,7 +6311,7 @@ proto.UpdatePolicyResponse.prototype.clearPolicy = function() {
|
|
|
5527
6311
|
* Returns whether this field is set.
|
|
5528
6312
|
* @return {boolean}
|
|
5529
6313
|
*/
|
|
5530
|
-
proto.UpdatePolicyResponse.prototype.
|
|
6314
|
+
proto.UpdatePolicyResponse.prototype.hasPolicies = function() {
|
|
5531
6315
|
return jspb.Message.getField(this, 1) != null;
|
|
5532
6316
|
};
|
|
5533
6317
|
|
|
@@ -5790,7 +6574,7 @@ proto.GetPolicyByRoleResponse.prototype.toObject = function(opt_includeInstance)
|
|
|
5790
6574
|
proto.GetPolicyByRoleResponse.toObject = function(includeInstance, msg) {
|
|
5791
6575
|
var f, obj = {
|
|
5792
6576
|
policyList: jspb.Message.toObjectList(msg.getPolicyList(),
|
|
5793
|
-
proto.
|
|
6577
|
+
proto.PoliciesResponse.toObject, includeInstance),
|
|
5794
6578
|
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
5795
6579
|
};
|
|
5796
6580
|
|
|
@@ -5829,8 +6613,8 @@ proto.GetPolicyByRoleResponse.deserializeBinaryFromReader = function(msg, reader
|
|
|
5829
6613
|
var field = reader.getFieldNumber();
|
|
5830
6614
|
switch (field) {
|
|
5831
6615
|
case 1:
|
|
5832
|
-
var value = new proto.
|
|
5833
|
-
reader.readMessage(value,proto.
|
|
6616
|
+
var value = new proto.PoliciesResponse;
|
|
6617
|
+
reader.readMessage(value,proto.PoliciesResponse.deserializeBinaryFromReader);
|
|
5834
6618
|
msg.addPolicy(value);
|
|
5835
6619
|
break;
|
|
5836
6620
|
case 2:
|
|
@@ -5872,7 +6656,7 @@ proto.GetPolicyByRoleResponse.serializeBinaryToWriter = function(message, writer
|
|
|
5872
6656
|
writer.writeRepeatedMessage(
|
|
5873
6657
|
1,
|
|
5874
6658
|
f,
|
|
5875
|
-
proto.
|
|
6659
|
+
proto.PoliciesResponse.serializeBinaryToWriter
|
|
5876
6660
|
);
|
|
5877
6661
|
}
|
|
5878
6662
|
f = message.getMeta();
|
|
@@ -5887,17 +6671,17 @@ proto.GetPolicyByRoleResponse.serializeBinaryToWriter = function(message, writer
|
|
|
5887
6671
|
|
|
5888
6672
|
|
|
5889
6673
|
/**
|
|
5890
|
-
* repeated
|
|
5891
|
-
* @return {!Array<!proto.
|
|
6674
|
+
* repeated PoliciesResponse policy = 1;
|
|
6675
|
+
* @return {!Array<!proto.PoliciesResponse>}
|
|
5892
6676
|
*/
|
|
5893
6677
|
proto.GetPolicyByRoleResponse.prototype.getPolicyList = function() {
|
|
5894
|
-
return /** @type{!Array<!proto.
|
|
5895
|
-
jspb.Message.getRepeatedWrapperField(this, proto.
|
|
6678
|
+
return /** @type{!Array<!proto.PoliciesResponse>} */ (
|
|
6679
|
+
jspb.Message.getRepeatedWrapperField(this, proto.PoliciesResponse, 1));
|
|
5896
6680
|
};
|
|
5897
6681
|
|
|
5898
6682
|
|
|
5899
6683
|
/**
|
|
5900
|
-
* @param {!Array<!proto.
|
|
6684
|
+
* @param {!Array<!proto.PoliciesResponse>} value
|
|
5901
6685
|
* @return {!proto.GetPolicyByRoleResponse} returns this
|
|
5902
6686
|
*/
|
|
5903
6687
|
proto.GetPolicyByRoleResponse.prototype.setPolicyList = function(value) {
|
|
@@ -5906,12 +6690,12 @@ proto.GetPolicyByRoleResponse.prototype.setPolicyList = function(value) {
|
|
|
5906
6690
|
|
|
5907
6691
|
|
|
5908
6692
|
/**
|
|
5909
|
-
* @param {!proto.
|
|
6693
|
+
* @param {!proto.PoliciesResponse=} opt_value
|
|
5910
6694
|
* @param {number=} opt_index
|
|
5911
|
-
* @return {!proto.
|
|
6695
|
+
* @return {!proto.PoliciesResponse}
|
|
5912
6696
|
*/
|
|
5913
6697
|
proto.GetPolicyByRoleResponse.prototype.addPolicy = function(opt_value, opt_index) {
|
|
5914
|
-
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.
|
|
6698
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.PoliciesResponse, opt_index);
|
|
5915
6699
|
};
|
|
5916
6700
|
|
|
5917
6701
|
|