@aldiokta/protocgen 1.0.6 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aldiokta/protocgen",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "protocgen js generated for products v2",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -905,7 +905,7 @@ proto.Qualification.prototype.setRetirementAge = function(value) {
905
905
  * @private {!Array<number>}
906
906
  * @const
907
907
  */
908
- proto.JobPosition.repeatedFields_ = [10];
908
+ proto.JobPosition.repeatedFields_ = [11];
909
909
 
910
910
 
911
911
 
@@ -938,16 +938,17 @@ proto.JobPosition.prototype.toObject = function(opt_includeInstance) {
938
938
  */
939
939
  proto.JobPosition.toObject = function(includeInstance, msg) {
940
940
  var f, obj = {
941
- code: jspb.Message.getFieldWithDefault(msg, 1, ""),
942
- name: jspb.Message.getFieldWithDefault(msg, 2, ""),
943
- costCenterCode: jspb.Message.getFieldWithDefault(msg, 3, ""),
944
- parentRefId: jspb.Message.getFieldWithDefault(msg, 4, 0),
945
- organizationRefId: jspb.Message.getFieldWithDefault(msg, 5, 0),
946
- workLocationRefId: jspb.Message.getFieldWithDefault(msg, 6, 0),
947
- description: jspb.Message.getFieldWithDefault(msg, 7, ""),
948
- companiesRefId: jspb.Message.getFieldWithDefault(msg, 8, 0),
949
- roleAccountRefId: jspb.Message.getFieldWithDefault(msg, 9, 0),
950
- keyResponsibilitiesList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f
941
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
942
+ code: jspb.Message.getFieldWithDefault(msg, 2, ""),
943
+ name: jspb.Message.getFieldWithDefault(msg, 3, ""),
944
+ costCenterCode: jspb.Message.getFieldWithDefault(msg, 4, ""),
945
+ parentRefId: jspb.Message.getFieldWithDefault(msg, 5, 0),
946
+ organizationRefId: jspb.Message.getFieldWithDefault(msg, 6, 0),
947
+ workLocationRefId: jspb.Message.getFieldWithDefault(msg, 7, 0),
948
+ description: jspb.Message.getFieldWithDefault(msg, 8, ""),
949
+ companiesRefId: jspb.Message.getFieldWithDefault(msg, 9, 0),
950
+ roleAccountRefId: jspb.Message.getFieldWithDefault(msg, 10, 0),
951
+ keyResponsibilitiesList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f
951
952
  };
952
953
 
953
954
  if (includeInstance) {
@@ -985,42 +986,46 @@ proto.JobPosition.deserializeBinaryFromReader = function(msg, reader) {
985
986
  var field = reader.getFieldNumber();
986
987
  switch (field) {
987
988
  case 1:
989
+ var value = /** @type {number} */ (reader.readInt64());
990
+ msg.setId(value);
991
+ break;
992
+ case 2:
988
993
  var value = /** @type {string} */ (reader.readString());
989
994
  msg.setCode(value);
990
995
  break;
991
- case 2:
996
+ case 3:
992
997
  var value = /** @type {string} */ (reader.readString());
993
998
  msg.setName(value);
994
999
  break;
995
- case 3:
1000
+ case 4:
996
1001
  var value = /** @type {string} */ (reader.readString());
997
1002
  msg.setCostCenterCode(value);
998
1003
  break;
999
- case 4:
1004
+ case 5:
1000
1005
  var value = /** @type {number} */ (reader.readInt64());
1001
1006
  msg.setParentRefId(value);
1002
1007
  break;
1003
- case 5:
1008
+ case 6:
1004
1009
  var value = /** @type {number} */ (reader.readInt64());
1005
1010
  msg.setOrganizationRefId(value);
1006
1011
  break;
1007
- case 6:
1012
+ case 7:
1008
1013
  var value = /** @type {number} */ (reader.readInt64());
1009
1014
  msg.setWorkLocationRefId(value);
1010
1015
  break;
1011
- case 7:
1016
+ case 8:
1012
1017
  var value = /** @type {string} */ (reader.readString());
1013
1018
  msg.setDescription(value);
1014
1019
  break;
1015
- case 8:
1020
+ case 9:
1016
1021
  var value = /** @type {number} */ (reader.readInt64());
1017
1022
  msg.setCompaniesRefId(value);
1018
1023
  break;
1019
- case 9:
1024
+ case 10:
1020
1025
  var value = /** @type {number} */ (reader.readInt64());
1021
1026
  msg.setRoleAccountRefId(value);
1022
1027
  break;
1023
- case 10:
1028
+ case 11:
1024
1029
  var value = /** @type {string} */ (reader.readString());
1025
1030
  msg.addKeyResponsibilities(value);
1026
1031
  break;
@@ -1053,73 +1058,80 @@ proto.JobPosition.prototype.serializeBinary = function() {
1053
1058
  */
1054
1059
  proto.JobPosition.serializeBinaryToWriter = function(message, writer) {
1055
1060
  var f = undefined;
1061
+ f = message.getId();
1062
+ if (f !== 0) {
1063
+ writer.writeInt64(
1064
+ 1,
1065
+ f
1066
+ );
1067
+ }
1056
1068
  f = message.getCode();
1057
1069
  if (f.length > 0) {
1058
1070
  writer.writeString(
1059
- 1,
1071
+ 2,
1060
1072
  f
1061
1073
  );
1062
1074
  }
1063
1075
  f = message.getName();
1064
1076
  if (f.length > 0) {
1065
1077
  writer.writeString(
1066
- 2,
1078
+ 3,
1067
1079
  f
1068
1080
  );
1069
1081
  }
1070
1082
  f = message.getCostCenterCode();
1071
1083
  if (f.length > 0) {
1072
1084
  writer.writeString(
1073
- 3,
1085
+ 4,
1074
1086
  f
1075
1087
  );
1076
1088
  }
1077
1089
  f = message.getParentRefId();
1078
1090
  if (f !== 0) {
1079
1091
  writer.writeInt64(
1080
- 4,
1092
+ 5,
1081
1093
  f
1082
1094
  );
1083
1095
  }
1084
1096
  f = message.getOrganizationRefId();
1085
1097
  if (f !== 0) {
1086
1098
  writer.writeInt64(
1087
- 5,
1099
+ 6,
1088
1100
  f
1089
1101
  );
1090
1102
  }
1091
1103
  f = message.getWorkLocationRefId();
1092
1104
  if (f !== 0) {
1093
1105
  writer.writeInt64(
1094
- 6,
1106
+ 7,
1095
1107
  f
1096
1108
  );
1097
1109
  }
1098
1110
  f = message.getDescription();
1099
1111
  if (f.length > 0) {
1100
1112
  writer.writeString(
1101
- 7,
1113
+ 8,
1102
1114
  f
1103
1115
  );
1104
1116
  }
1105
1117
  f = message.getCompaniesRefId();
1106
1118
  if (f !== 0) {
1107
1119
  writer.writeInt64(
1108
- 8,
1120
+ 9,
1109
1121
  f
1110
1122
  );
1111
1123
  }
1112
1124
  f = message.getRoleAccountRefId();
1113
1125
  if (f !== 0) {
1114
1126
  writer.writeInt64(
1115
- 9,
1127
+ 10,
1116
1128
  f
1117
1129
  );
1118
1130
  }
1119
1131
  f = message.getKeyResponsibilitiesList();
1120
1132
  if (f.length > 0) {
1121
1133
  writer.writeRepeatedString(
1122
- 10,
1134
+ 11,
1123
1135
  f
1124
1136
  );
1125
1137
  }
@@ -1127,11 +1139,29 @@ proto.JobPosition.serializeBinaryToWriter = function(message, writer) {
1127
1139
 
1128
1140
 
1129
1141
  /**
1130
- * optional string code = 1;
1142
+ * optional int64 id = 1;
1143
+ * @return {number}
1144
+ */
1145
+ proto.JobPosition.prototype.getId = function() {
1146
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1147
+ };
1148
+
1149
+
1150
+ /**
1151
+ * @param {number} value
1152
+ * @return {!proto.JobPosition} returns this
1153
+ */
1154
+ proto.JobPosition.prototype.setId = function(value) {
1155
+ return jspb.Message.setProto3IntField(this, 1, value);
1156
+ };
1157
+
1158
+
1159
+ /**
1160
+ * optional string code = 2;
1131
1161
  * @return {string}
1132
1162
  */
1133
1163
  proto.JobPosition.prototype.getCode = function() {
1134
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1164
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1135
1165
  };
1136
1166
 
1137
1167
 
@@ -1140,16 +1170,16 @@ proto.JobPosition.prototype.getCode = function() {
1140
1170
  * @return {!proto.JobPosition} returns this
1141
1171
  */
1142
1172
  proto.JobPosition.prototype.setCode = function(value) {
1143
- return jspb.Message.setProto3StringField(this, 1, value);
1173
+ return jspb.Message.setProto3StringField(this, 2, value);
1144
1174
  };
1145
1175
 
1146
1176
 
1147
1177
  /**
1148
- * optional string name = 2;
1178
+ * optional string name = 3;
1149
1179
  * @return {string}
1150
1180
  */
1151
1181
  proto.JobPosition.prototype.getName = function() {
1152
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1182
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1153
1183
  };
1154
1184
 
1155
1185
 
@@ -1158,16 +1188,16 @@ proto.JobPosition.prototype.getName = function() {
1158
1188
  * @return {!proto.JobPosition} returns this
1159
1189
  */
1160
1190
  proto.JobPosition.prototype.setName = function(value) {
1161
- return jspb.Message.setProto3StringField(this, 2, value);
1191
+ return jspb.Message.setProto3StringField(this, 3, value);
1162
1192
  };
1163
1193
 
1164
1194
 
1165
1195
  /**
1166
- * optional string cost_center_code = 3;
1196
+ * optional string cost_center_code = 4;
1167
1197
  * @return {string}
1168
1198
  */
1169
1199
  proto.JobPosition.prototype.getCostCenterCode = function() {
1170
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1200
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1171
1201
  };
1172
1202
 
1173
1203
 
@@ -1176,16 +1206,16 @@ proto.JobPosition.prototype.getCostCenterCode = function() {
1176
1206
  * @return {!proto.JobPosition} returns this
1177
1207
  */
1178
1208
  proto.JobPosition.prototype.setCostCenterCode = function(value) {
1179
- return jspb.Message.setProto3StringField(this, 3, value);
1209
+ return jspb.Message.setProto3StringField(this, 4, value);
1180
1210
  };
1181
1211
 
1182
1212
 
1183
1213
  /**
1184
- * optional int64 parent_ref_id = 4;
1214
+ * optional int64 parent_ref_id = 5;
1185
1215
  * @return {number}
1186
1216
  */
1187
1217
  proto.JobPosition.prototype.getParentRefId = function() {
1188
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
1218
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
1189
1219
  };
1190
1220
 
1191
1221
 
@@ -1194,16 +1224,16 @@ proto.JobPosition.prototype.getParentRefId = function() {
1194
1224
  * @return {!proto.JobPosition} returns this
1195
1225
  */
1196
1226
  proto.JobPosition.prototype.setParentRefId = function(value) {
1197
- return jspb.Message.setProto3IntField(this, 4, value);
1227
+ return jspb.Message.setProto3IntField(this, 5, value);
1198
1228
  };
1199
1229
 
1200
1230
 
1201
1231
  /**
1202
- * optional int64 organization_ref_id = 5;
1232
+ * optional int64 organization_ref_id = 6;
1203
1233
  * @return {number}
1204
1234
  */
1205
1235
  proto.JobPosition.prototype.getOrganizationRefId = function() {
1206
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
1236
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
1207
1237
  };
1208
1238
 
1209
1239
 
@@ -1212,16 +1242,16 @@ proto.JobPosition.prototype.getOrganizationRefId = function() {
1212
1242
  * @return {!proto.JobPosition} returns this
1213
1243
  */
1214
1244
  proto.JobPosition.prototype.setOrganizationRefId = function(value) {
1215
- return jspb.Message.setProto3IntField(this, 5, value);
1245
+ return jspb.Message.setProto3IntField(this, 6, value);
1216
1246
  };
1217
1247
 
1218
1248
 
1219
1249
  /**
1220
- * optional int64 work_location_ref_id = 6;
1250
+ * optional int64 work_location_ref_id = 7;
1221
1251
  * @return {number}
1222
1252
  */
1223
1253
  proto.JobPosition.prototype.getWorkLocationRefId = function() {
1224
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
1254
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
1225
1255
  };
1226
1256
 
1227
1257
 
@@ -1230,16 +1260,16 @@ proto.JobPosition.prototype.getWorkLocationRefId = function() {
1230
1260
  * @return {!proto.JobPosition} returns this
1231
1261
  */
1232
1262
  proto.JobPosition.prototype.setWorkLocationRefId = function(value) {
1233
- return jspb.Message.setProto3IntField(this, 6, value);
1263
+ return jspb.Message.setProto3IntField(this, 7, value);
1234
1264
  };
1235
1265
 
1236
1266
 
1237
1267
  /**
1238
- * optional string description = 7;
1268
+ * optional string description = 8;
1239
1269
  * @return {string}
1240
1270
  */
1241
1271
  proto.JobPosition.prototype.getDescription = function() {
1242
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1272
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1243
1273
  };
1244
1274
 
1245
1275
 
@@ -1248,16 +1278,16 @@ proto.JobPosition.prototype.getDescription = function() {
1248
1278
  * @return {!proto.JobPosition} returns this
1249
1279
  */
1250
1280
  proto.JobPosition.prototype.setDescription = function(value) {
1251
- return jspb.Message.setProto3StringField(this, 7, value);
1281
+ return jspb.Message.setProto3StringField(this, 8, value);
1252
1282
  };
1253
1283
 
1254
1284
 
1255
1285
  /**
1256
- * optional int64 companies_ref_id = 8;
1286
+ * optional int64 companies_ref_id = 9;
1257
1287
  * @return {number}
1258
1288
  */
1259
1289
  proto.JobPosition.prototype.getCompaniesRefId = function() {
1260
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
1290
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
1261
1291
  };
1262
1292
 
1263
1293
 
@@ -1266,16 +1296,16 @@ proto.JobPosition.prototype.getCompaniesRefId = function() {
1266
1296
  * @return {!proto.JobPosition} returns this
1267
1297
  */
1268
1298
  proto.JobPosition.prototype.setCompaniesRefId = function(value) {
1269
- return jspb.Message.setProto3IntField(this, 8, value);
1299
+ return jspb.Message.setProto3IntField(this, 9, value);
1270
1300
  };
1271
1301
 
1272
1302
 
1273
1303
  /**
1274
- * optional int64 role_account_ref_id = 9;
1304
+ * optional int64 role_account_ref_id = 10;
1275
1305
  * @return {number}
1276
1306
  */
1277
1307
  proto.JobPosition.prototype.getRoleAccountRefId = function() {
1278
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
1308
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
1279
1309
  };
1280
1310
 
1281
1311
 
@@ -1284,16 +1314,16 @@ proto.JobPosition.prototype.getRoleAccountRefId = function() {
1284
1314
  * @return {!proto.JobPosition} returns this
1285
1315
  */
1286
1316
  proto.JobPosition.prototype.setRoleAccountRefId = function(value) {
1287
- return jspb.Message.setProto3IntField(this, 9, value);
1317
+ return jspb.Message.setProto3IntField(this, 10, value);
1288
1318
  };
1289
1319
 
1290
1320
 
1291
1321
  /**
1292
- * repeated string key_responsibilities = 10;
1322
+ * repeated string key_responsibilities = 11;
1293
1323
  * @return {!Array<string>}
1294
1324
  */
1295
1325
  proto.JobPosition.prototype.getKeyResponsibilitiesList = function() {
1296
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 10));
1326
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 11));
1297
1327
  };
1298
1328
 
1299
1329
 
@@ -1302,7 +1332,7 @@ proto.JobPosition.prototype.getKeyResponsibilitiesList = function() {
1302
1332
  * @return {!proto.JobPosition} returns this
1303
1333
  */
1304
1334
  proto.JobPosition.prototype.setKeyResponsibilitiesList = function(value) {
1305
- return jspb.Message.setField(this, 10, value || []);
1335
+ return jspb.Message.setField(this, 11, value || []);
1306
1336
  };
1307
1337
 
1308
1338
 
@@ -1312,7 +1342,7 @@ proto.JobPosition.prototype.setKeyResponsibilitiesList = function(value) {
1312
1342
  * @return {!proto.JobPosition} returns this
1313
1343
  */
1314
1344
  proto.JobPosition.prototype.addKeyResponsibilities = function(value, opt_index) {
1315
- return jspb.Message.addToRepeatedField(this, 10, value, opt_index);
1345
+ return jspb.Message.addToRepeatedField(this, 11, value, opt_index);
1316
1346
  };
1317
1347
 
1318
1348