@aldiokta/protocgen 1.1.21 → 1.1.22
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 +1 -1
- package/prisca/v1/bidding/bidding_grpc_pb.js +33 -0
- package/prisca/v1/bidding/bidding_pb.js +613 -4
- package/prisca/v1/core/company/company_pb.js +77 -25
- package/prisca/v1/core/employee/employee_pb.js +74 -22
- package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +33 -0
- package/prisca/v1/core/incoterm/incoterm_pb.js +407 -0
- package/prisca/v1/core/item_transaction/item_transaction_pb.js +274 -4
- package/prisca/v1/core/job_grade/job_grade_pb.js +80 -28
- package/prisca/v1/core/job_position/job_position_pb.js +74 -22
- package/prisca/v1/core/job_title/job_title_pb.js +80 -28
- package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +61 -1
- package/prisca/v1/core/material/material_pb.js +74 -22
- package/prisca/v1/core/material_group/material_group_pb.js +77 -25
- package/prisca/v1/core/material_type/material_type_grpc_pb.js +33 -0
- package/prisca/v1/core/material_type/material_type_pb.js +407 -0
- package/prisca/v1/core/number_range/number_range_pb.js +74 -22
- package/prisca/v1/core/organization/organization_pb.js +80 -28
- package/prisca/v1/core/organization_level/organization_level_pb.js +80 -28
- package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +33 -0
- package/prisca/v1/core/price_condition/price_condition_pb.js +407 -0
- package/prisca/v1/core/tax_code/tax_code_pb.js +152 -2
- package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +33 -0
- package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +407 -0
- package/prisca/v1/core/users/users_grpc_pb.js +33 -0
- package/prisca/v1/core/users/users_pb.js +407 -0
- package/prisca/v1/core/work_location/work_location_pb.js +74 -22
- package/prisca/v1/core/workflow/workflow_pb.js +74 -22
- package/prisca/v1/delivery_order/delivery_order_grpc_pb.js +229 -0
- package/prisca/v1/delivery_order/delivery_order_pb.js +4661 -0
- package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +1 -0
- package/prisca/v1/good_receipt/good_receipt_pb.js +35 -0
- package/prisca/v1/purchase_order/purchase_order_pb.js +98 -8
- package/prisca/v1/purchasing_group/purchasing_group_pb.js +80 -28
- package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +33 -0
- package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +407 -0
- package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +33 -0
- package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +407 -0
- package/prisca/v1/quotation/quotation_grpc_pb.js +14 -3
- package/prisca/v1/quotation/quotation_pb.js +479 -2
- package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +1 -0
- package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +262 -4
- package/prisca/v1/vendor_domain/vendor_domain_pb.js +31 -1
|
@@ -132,7 +132,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
132
132
|
* @constructor
|
|
133
133
|
*/
|
|
134
134
|
proto.DeleteMaterialGroupRequest = function(opt_data) {
|
|
135
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
135
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteMaterialGroupRequest.repeatedFields_, null);
|
|
136
136
|
};
|
|
137
137
|
goog.inherits(proto.DeleteMaterialGroupRequest, jspb.Message);
|
|
138
138
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -237,7 +237,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
237
237
|
* @constructor
|
|
238
238
|
*/
|
|
239
239
|
proto.DeleteMaterialGroupResponse = function(opt_data) {
|
|
240
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
240
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteMaterialGroupResponse.repeatedFields_, null);
|
|
241
241
|
};
|
|
242
242
|
goog.inherits(proto.DeleteMaterialGroupResponse, jspb.Message);
|
|
243
243
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -1314,6 +1314,13 @@ proto.UpdateMaterialGroupRequest.prototype.hasBaseMaterialGroup = function() {
|
|
|
1314
1314
|
|
|
1315
1315
|
|
|
1316
1316
|
|
|
1317
|
+
/**
|
|
1318
|
+
* List of repeated fields within this message type.
|
|
1319
|
+
* @private {!Array<number>}
|
|
1320
|
+
* @const
|
|
1321
|
+
*/
|
|
1322
|
+
proto.DeleteMaterialGroupRequest.repeatedFields_ = [1];
|
|
1323
|
+
|
|
1317
1324
|
|
|
1318
1325
|
|
|
1319
1326
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -1345,7 +1352,7 @@ proto.DeleteMaterialGroupRequest.prototype.toObject = function(opt_includeInstan
|
|
|
1345
1352
|
*/
|
|
1346
1353
|
proto.DeleteMaterialGroupRequest.toObject = function(includeInstance, msg) {
|
|
1347
1354
|
var f, obj = {
|
|
1348
|
-
|
|
1355
|
+
referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
|
1349
1356
|
};
|
|
1350
1357
|
|
|
1351
1358
|
if (includeInstance) {
|
|
@@ -1383,8 +1390,8 @@ proto.DeleteMaterialGroupRequest.deserializeBinaryFromReader = function(msg, rea
|
|
|
1383
1390
|
var field = reader.getFieldNumber();
|
|
1384
1391
|
switch (field) {
|
|
1385
1392
|
case 1:
|
|
1386
|
-
var value = /** @type {
|
|
1387
|
-
msg.
|
|
1393
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1394
|
+
msg.addReferenceIds(value);
|
|
1388
1395
|
break;
|
|
1389
1396
|
default:
|
|
1390
1397
|
reader.skipField();
|
|
@@ -1415,9 +1422,9 @@ proto.DeleteMaterialGroupRequest.prototype.serializeBinary = function() {
|
|
|
1415
1422
|
*/
|
|
1416
1423
|
proto.DeleteMaterialGroupRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1417
1424
|
var f = undefined;
|
|
1418
|
-
f = message.
|
|
1419
|
-
if (f
|
|
1420
|
-
writer.
|
|
1425
|
+
f = message.getReferenceIdsList();
|
|
1426
|
+
if (f.length > 0) {
|
|
1427
|
+
writer.writeRepeatedString(
|
|
1421
1428
|
1,
|
|
1422
1429
|
f
|
|
1423
1430
|
);
|
|
@@ -1426,20 +1433,39 @@ proto.DeleteMaterialGroupRequest.serializeBinaryToWriter = function(message, wri
|
|
|
1426
1433
|
|
|
1427
1434
|
|
|
1428
1435
|
/**
|
|
1429
|
-
*
|
|
1430
|
-
* @return {
|
|
1436
|
+
* repeated string reference_ids = 1;
|
|
1437
|
+
* @return {!Array<string>}
|
|
1431
1438
|
*/
|
|
1432
|
-
proto.DeleteMaterialGroupRequest.prototype.
|
|
1433
|
-
return /** @type {
|
|
1439
|
+
proto.DeleteMaterialGroupRequest.prototype.getReferenceIdsList = function() {
|
|
1440
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
1434
1441
|
};
|
|
1435
1442
|
|
|
1436
1443
|
|
|
1437
1444
|
/**
|
|
1438
|
-
* @param {
|
|
1445
|
+
* @param {!Array<string>} value
|
|
1439
1446
|
* @return {!proto.DeleteMaterialGroupRequest} returns this
|
|
1440
1447
|
*/
|
|
1441
|
-
proto.DeleteMaterialGroupRequest.prototype.
|
|
1442
|
-
return jspb.Message.
|
|
1448
|
+
proto.DeleteMaterialGroupRequest.prototype.setReferenceIdsList = function(value) {
|
|
1449
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
1450
|
+
};
|
|
1451
|
+
|
|
1452
|
+
|
|
1453
|
+
/**
|
|
1454
|
+
* @param {string} value
|
|
1455
|
+
* @param {number=} opt_index
|
|
1456
|
+
* @return {!proto.DeleteMaterialGroupRequest} returns this
|
|
1457
|
+
*/
|
|
1458
|
+
proto.DeleteMaterialGroupRequest.prototype.addReferenceIds = function(value, opt_index) {
|
|
1459
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
1460
|
+
};
|
|
1461
|
+
|
|
1462
|
+
|
|
1463
|
+
/**
|
|
1464
|
+
* Clears the list making it empty but non-null.
|
|
1465
|
+
* @return {!proto.DeleteMaterialGroupRequest} returns this
|
|
1466
|
+
*/
|
|
1467
|
+
proto.DeleteMaterialGroupRequest.prototype.clearReferenceIdsList = function() {
|
|
1468
|
+
return this.setReferenceIdsList([]);
|
|
1443
1469
|
};
|
|
1444
1470
|
|
|
1445
1471
|
|
|
@@ -2180,6 +2206,13 @@ proto.UpdateMaterialGroupResponse.prototype.hasMeta = function() {
|
|
|
2180
2206
|
|
|
2181
2207
|
|
|
2182
2208
|
|
|
2209
|
+
/**
|
|
2210
|
+
* List of repeated fields within this message type.
|
|
2211
|
+
* @private {!Array<number>}
|
|
2212
|
+
* @const
|
|
2213
|
+
*/
|
|
2214
|
+
proto.DeleteMaterialGroupResponse.repeatedFields_ = [1];
|
|
2215
|
+
|
|
2183
2216
|
|
|
2184
2217
|
|
|
2185
2218
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -2211,7 +2244,7 @@ proto.DeleteMaterialGroupResponse.prototype.toObject = function(opt_includeInsta
|
|
|
2211
2244
|
*/
|
|
2212
2245
|
proto.DeleteMaterialGroupResponse.toObject = function(includeInstance, msg) {
|
|
2213
2246
|
var f, obj = {
|
|
2214
|
-
|
|
2247
|
+
referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
2215
2248
|
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
2216
2249
|
};
|
|
2217
2250
|
|
|
@@ -2251,7 +2284,7 @@ proto.DeleteMaterialGroupResponse.deserializeBinaryFromReader = function(msg, re
|
|
|
2251
2284
|
switch (field) {
|
|
2252
2285
|
case 1:
|
|
2253
2286
|
var value = /** @type {string} */ (reader.readString());
|
|
2254
|
-
msg.
|
|
2287
|
+
msg.addReferenceIds(value);
|
|
2255
2288
|
break;
|
|
2256
2289
|
case 2:
|
|
2257
2290
|
var value = new prisca_v1_global_meta_meta_pb.Meta;
|
|
@@ -2287,9 +2320,9 @@ proto.DeleteMaterialGroupResponse.prototype.serializeBinary = function() {
|
|
|
2287
2320
|
*/
|
|
2288
2321
|
proto.DeleteMaterialGroupResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2289
2322
|
var f = undefined;
|
|
2290
|
-
f = message.
|
|
2323
|
+
f = message.getReferenceIdsList();
|
|
2291
2324
|
if (f.length > 0) {
|
|
2292
|
-
writer.
|
|
2325
|
+
writer.writeRepeatedString(
|
|
2293
2326
|
1,
|
|
2294
2327
|
f
|
|
2295
2328
|
);
|
|
@@ -2306,20 +2339,39 @@ proto.DeleteMaterialGroupResponse.serializeBinaryToWriter = function(message, wr
|
|
|
2306
2339
|
|
|
2307
2340
|
|
|
2308
2341
|
/**
|
|
2309
|
-
*
|
|
2310
|
-
* @return {string}
|
|
2342
|
+
* repeated string reference_ids = 1;
|
|
2343
|
+
* @return {!Array<string>}
|
|
2311
2344
|
*/
|
|
2312
|
-
proto.DeleteMaterialGroupResponse.prototype.
|
|
2313
|
-
return /** @type {string} */ (jspb.Message.
|
|
2345
|
+
proto.DeleteMaterialGroupResponse.prototype.getReferenceIdsList = function() {
|
|
2346
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
2347
|
+
};
|
|
2348
|
+
|
|
2349
|
+
|
|
2350
|
+
/**
|
|
2351
|
+
* @param {!Array<string>} value
|
|
2352
|
+
* @return {!proto.DeleteMaterialGroupResponse} returns this
|
|
2353
|
+
*/
|
|
2354
|
+
proto.DeleteMaterialGroupResponse.prototype.setReferenceIdsList = function(value) {
|
|
2355
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
2314
2356
|
};
|
|
2315
2357
|
|
|
2316
2358
|
|
|
2317
2359
|
/**
|
|
2318
2360
|
* @param {string} value
|
|
2361
|
+
* @param {number=} opt_index
|
|
2319
2362
|
* @return {!proto.DeleteMaterialGroupResponse} returns this
|
|
2320
2363
|
*/
|
|
2321
|
-
proto.DeleteMaterialGroupResponse.prototype.
|
|
2322
|
-
return jspb.Message.
|
|
2364
|
+
proto.DeleteMaterialGroupResponse.prototype.addReferenceIds = function(value, opt_index) {
|
|
2365
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
2366
|
+
};
|
|
2367
|
+
|
|
2368
|
+
|
|
2369
|
+
/**
|
|
2370
|
+
* Clears the list making it empty but non-null.
|
|
2371
|
+
* @return {!proto.DeleteMaterialGroupResponse} returns this
|
|
2372
|
+
*/
|
|
2373
|
+
proto.DeleteMaterialGroupResponse.prototype.clearReferenceIdsList = function() {
|
|
2374
|
+
return this.setReferenceIdsList([]);
|
|
2323
2375
|
};
|
|
2324
2376
|
|
|
2325
2377
|
|
|
@@ -7,6 +7,28 @@ var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/m
|
|
|
7
7
|
var prisca_v1_core_number_range_number_range_pb = require('../../../../prisca/v1/core/number_range/number_range_pb.js');
|
|
8
8
|
var prisca_v1_core_employee_employee_pb = require('../../../../prisca/v1/core/employee/employee_pb.js');
|
|
9
9
|
|
|
10
|
+
function serialize_MaterialTypeDeleteRequest(arg) {
|
|
11
|
+
if (!(arg instanceof prisca_v1_core_material_type_material_type_pb.MaterialTypeDeleteRequest)) {
|
|
12
|
+
throw new Error('Expected argument of type MaterialTypeDeleteRequest');
|
|
13
|
+
}
|
|
14
|
+
return Buffer.from(arg.serializeBinary());
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function deserialize_MaterialTypeDeleteRequest(buffer_arg) {
|
|
18
|
+
return prisca_v1_core_material_type_material_type_pb.MaterialTypeDeleteRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function serialize_MaterialTypeDeleteResponse(arg) {
|
|
22
|
+
if (!(arg instanceof prisca_v1_core_material_type_material_type_pb.MaterialTypeDeleteResponse)) {
|
|
23
|
+
throw new Error('Expected argument of type MaterialTypeDeleteResponse');
|
|
24
|
+
}
|
|
25
|
+
return Buffer.from(arg.serializeBinary());
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function deserialize_MaterialTypeDeleteResponse(buffer_arg) {
|
|
29
|
+
return prisca_v1_core_material_type_material_type_pb.MaterialTypeDeleteResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
30
|
+
}
|
|
31
|
+
|
|
10
32
|
function serialize_MaterialTypeGetByIdRequest(arg) {
|
|
11
33
|
if (!(arg instanceof prisca_v1_core_material_type_material_type_pb.MaterialTypeGetByIdRequest)) {
|
|
12
34
|
throw new Error('Expected argument of type MaterialTypeGetByIdRequest');
|
|
@@ -144,6 +166,17 @@ var MaterialTypeServiceService = exports.MaterialTypeServiceService = {
|
|
|
144
166
|
responseSerialize: serialize_MaterialTypeUpdateResponse,
|
|
145
167
|
responseDeserialize: deserialize_MaterialTypeUpdateResponse,
|
|
146
168
|
},
|
|
169
|
+
deleteMaterialType: {
|
|
170
|
+
path: '/MaterialTypeService/DeleteMaterialType',
|
|
171
|
+
requestStream: false,
|
|
172
|
+
responseStream: false,
|
|
173
|
+
requestType: prisca_v1_core_material_type_material_type_pb.MaterialTypeDeleteRequest,
|
|
174
|
+
responseType: prisca_v1_core_material_type_material_type_pb.MaterialTypeDeleteResponse,
|
|
175
|
+
requestSerialize: serialize_MaterialTypeDeleteRequest,
|
|
176
|
+
requestDeserialize: deserialize_MaterialTypeDeleteRequest,
|
|
177
|
+
responseSerialize: serialize_MaterialTypeDeleteResponse,
|
|
178
|
+
responseDeserialize: deserialize_MaterialTypeDeleteResponse,
|
|
179
|
+
},
|
|
147
180
|
};
|
|
148
181
|
|
|
149
182
|
exports.MaterialTypeServiceClient = grpc.makeGenericClientConstructor(MaterialTypeServiceService, 'MaterialTypeService');
|
|
@@ -29,6 +29,8 @@ var prisca_v1_core_employee_employee_pb = require('../../../../prisca/v1/core/em
|
|
|
29
29
|
goog.object.extend(proto, prisca_v1_core_employee_employee_pb);
|
|
30
30
|
goog.exportSymbol('proto.BaseMaterial', null, global);
|
|
31
31
|
goog.exportSymbol('proto.MaterialType', null, global);
|
|
32
|
+
goog.exportSymbol('proto.MaterialTypeDeleteRequest', null, global);
|
|
33
|
+
goog.exportSymbol('proto.MaterialTypeDeleteResponse', null, global);
|
|
32
34
|
goog.exportSymbol('proto.MaterialTypeGetByIdRequest', null, global);
|
|
33
35
|
goog.exportSymbol('proto.MaterialTypeGetByIdResponse', null, global);
|
|
34
36
|
goog.exportSymbol('proto.MaterialTypeListRequest', null, global);
|
|
@@ -163,6 +165,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
163
165
|
*/
|
|
164
166
|
proto.MaterialTypeUpdateRequest.displayName = 'proto.MaterialTypeUpdateRequest';
|
|
165
167
|
}
|
|
168
|
+
/**
|
|
169
|
+
* Generated by JsPbCodeGenerator.
|
|
170
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
171
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
172
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
173
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
174
|
+
* valid.
|
|
175
|
+
* @extends {jspb.Message}
|
|
176
|
+
* @constructor
|
|
177
|
+
*/
|
|
178
|
+
proto.MaterialTypeDeleteRequest = function(opt_data) {
|
|
179
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.MaterialTypeDeleteRequest.repeatedFields_, null);
|
|
180
|
+
};
|
|
181
|
+
goog.inherits(proto.MaterialTypeDeleteRequest, jspb.Message);
|
|
182
|
+
if (goog.DEBUG && !COMPILED) {
|
|
183
|
+
/**
|
|
184
|
+
* @public
|
|
185
|
+
* @override
|
|
186
|
+
*/
|
|
187
|
+
proto.MaterialTypeDeleteRequest.displayName = 'proto.MaterialTypeDeleteRequest';
|
|
188
|
+
}
|
|
166
189
|
/**
|
|
167
190
|
* Generated by JsPbCodeGenerator.
|
|
168
191
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -247,6 +270,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
247
270
|
*/
|
|
248
271
|
proto.MaterialTypeUpdateResponse.displayName = 'proto.MaterialTypeUpdateResponse';
|
|
249
272
|
}
|
|
273
|
+
/**
|
|
274
|
+
* Generated by JsPbCodeGenerator.
|
|
275
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
276
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
277
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
278
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
279
|
+
* valid.
|
|
280
|
+
* @extends {jspb.Message}
|
|
281
|
+
* @constructor
|
|
282
|
+
*/
|
|
283
|
+
proto.MaterialTypeDeleteResponse = function(opt_data) {
|
|
284
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.MaterialTypeDeleteResponse.repeatedFields_, null);
|
|
285
|
+
};
|
|
286
|
+
goog.inherits(proto.MaterialTypeDeleteResponse, jspb.Message);
|
|
287
|
+
if (goog.DEBUG && !COMPILED) {
|
|
288
|
+
/**
|
|
289
|
+
* @public
|
|
290
|
+
* @override
|
|
291
|
+
*/
|
|
292
|
+
proto.MaterialTypeDeleteResponse.displayName = 'proto.MaterialTypeDeleteResponse';
|
|
293
|
+
}
|
|
250
294
|
|
|
251
295
|
/**
|
|
252
296
|
* List of repeated fields within this message type.
|
|
@@ -1878,6 +1922,162 @@ proto.MaterialTypeUpdateRequest.prototype.hasMaterialType = function() {
|
|
|
1878
1922
|
|
|
1879
1923
|
|
|
1880
1924
|
|
|
1925
|
+
/**
|
|
1926
|
+
* List of repeated fields within this message type.
|
|
1927
|
+
* @private {!Array<number>}
|
|
1928
|
+
* @const
|
|
1929
|
+
*/
|
|
1930
|
+
proto.MaterialTypeDeleteRequest.repeatedFields_ = [1];
|
|
1931
|
+
|
|
1932
|
+
|
|
1933
|
+
|
|
1934
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1935
|
+
/**
|
|
1936
|
+
* Creates an object representation of this proto.
|
|
1937
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1938
|
+
* Optional fields that are not set will be set to undefined.
|
|
1939
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1940
|
+
* For the list of reserved names please see:
|
|
1941
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1942
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1943
|
+
* JSPB instance for transitional soy proto support:
|
|
1944
|
+
* http://goto/soy-param-migration
|
|
1945
|
+
* @return {!Object}
|
|
1946
|
+
*/
|
|
1947
|
+
proto.MaterialTypeDeleteRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1948
|
+
return proto.MaterialTypeDeleteRequest.toObject(opt_includeInstance, this);
|
|
1949
|
+
};
|
|
1950
|
+
|
|
1951
|
+
|
|
1952
|
+
/**
|
|
1953
|
+
* Static version of the {@see toObject} method.
|
|
1954
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1955
|
+
* the JSPB instance for transitional soy proto support:
|
|
1956
|
+
* http://goto/soy-param-migration
|
|
1957
|
+
* @param {!proto.MaterialTypeDeleteRequest} msg The msg instance to transform.
|
|
1958
|
+
* @return {!Object}
|
|
1959
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1960
|
+
*/
|
|
1961
|
+
proto.MaterialTypeDeleteRequest.toObject = function(includeInstance, msg) {
|
|
1962
|
+
var f, obj = {
|
|
1963
|
+
referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
|
1964
|
+
};
|
|
1965
|
+
|
|
1966
|
+
if (includeInstance) {
|
|
1967
|
+
obj.$jspbMessageInstance = msg;
|
|
1968
|
+
}
|
|
1969
|
+
return obj;
|
|
1970
|
+
};
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
|
|
1974
|
+
/**
|
|
1975
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1976
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1977
|
+
* @return {!proto.MaterialTypeDeleteRequest}
|
|
1978
|
+
*/
|
|
1979
|
+
proto.MaterialTypeDeleteRequest.deserializeBinary = function(bytes) {
|
|
1980
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1981
|
+
var msg = new proto.MaterialTypeDeleteRequest;
|
|
1982
|
+
return proto.MaterialTypeDeleteRequest.deserializeBinaryFromReader(msg, reader);
|
|
1983
|
+
};
|
|
1984
|
+
|
|
1985
|
+
|
|
1986
|
+
/**
|
|
1987
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1988
|
+
* given reader into the given message object.
|
|
1989
|
+
* @param {!proto.MaterialTypeDeleteRequest} msg The message object to deserialize into.
|
|
1990
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1991
|
+
* @return {!proto.MaterialTypeDeleteRequest}
|
|
1992
|
+
*/
|
|
1993
|
+
proto.MaterialTypeDeleteRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1994
|
+
while (reader.nextField()) {
|
|
1995
|
+
if (reader.isEndGroup()) {
|
|
1996
|
+
break;
|
|
1997
|
+
}
|
|
1998
|
+
var field = reader.getFieldNumber();
|
|
1999
|
+
switch (field) {
|
|
2000
|
+
case 1:
|
|
2001
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2002
|
+
msg.addReferenceIds(value);
|
|
2003
|
+
break;
|
|
2004
|
+
default:
|
|
2005
|
+
reader.skipField();
|
|
2006
|
+
break;
|
|
2007
|
+
}
|
|
2008
|
+
}
|
|
2009
|
+
return msg;
|
|
2010
|
+
};
|
|
2011
|
+
|
|
2012
|
+
|
|
2013
|
+
/**
|
|
2014
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2015
|
+
* @return {!Uint8Array}
|
|
2016
|
+
*/
|
|
2017
|
+
proto.MaterialTypeDeleteRequest.prototype.serializeBinary = function() {
|
|
2018
|
+
var writer = new jspb.BinaryWriter();
|
|
2019
|
+
proto.MaterialTypeDeleteRequest.serializeBinaryToWriter(this, writer);
|
|
2020
|
+
return writer.getResultBuffer();
|
|
2021
|
+
};
|
|
2022
|
+
|
|
2023
|
+
|
|
2024
|
+
/**
|
|
2025
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2026
|
+
* format), writing to the given BinaryWriter.
|
|
2027
|
+
* @param {!proto.MaterialTypeDeleteRequest} message
|
|
2028
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2029
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2030
|
+
*/
|
|
2031
|
+
proto.MaterialTypeDeleteRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2032
|
+
var f = undefined;
|
|
2033
|
+
f = message.getReferenceIdsList();
|
|
2034
|
+
if (f.length > 0) {
|
|
2035
|
+
writer.writeRepeatedString(
|
|
2036
|
+
1,
|
|
2037
|
+
f
|
|
2038
|
+
);
|
|
2039
|
+
}
|
|
2040
|
+
};
|
|
2041
|
+
|
|
2042
|
+
|
|
2043
|
+
/**
|
|
2044
|
+
* repeated string reference_ids = 1;
|
|
2045
|
+
* @return {!Array<string>}
|
|
2046
|
+
*/
|
|
2047
|
+
proto.MaterialTypeDeleteRequest.prototype.getReferenceIdsList = function() {
|
|
2048
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
2049
|
+
};
|
|
2050
|
+
|
|
2051
|
+
|
|
2052
|
+
/**
|
|
2053
|
+
* @param {!Array<string>} value
|
|
2054
|
+
* @return {!proto.MaterialTypeDeleteRequest} returns this
|
|
2055
|
+
*/
|
|
2056
|
+
proto.MaterialTypeDeleteRequest.prototype.setReferenceIdsList = function(value) {
|
|
2057
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
2058
|
+
};
|
|
2059
|
+
|
|
2060
|
+
|
|
2061
|
+
/**
|
|
2062
|
+
* @param {string} value
|
|
2063
|
+
* @param {number=} opt_index
|
|
2064
|
+
* @return {!proto.MaterialTypeDeleteRequest} returns this
|
|
2065
|
+
*/
|
|
2066
|
+
proto.MaterialTypeDeleteRequest.prototype.addReferenceIds = function(value, opt_index) {
|
|
2067
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
2068
|
+
};
|
|
2069
|
+
|
|
2070
|
+
|
|
2071
|
+
/**
|
|
2072
|
+
* Clears the list making it empty but non-null.
|
|
2073
|
+
* @return {!proto.MaterialTypeDeleteRequest} returns this
|
|
2074
|
+
*/
|
|
2075
|
+
proto.MaterialTypeDeleteRequest.prototype.clearReferenceIdsList = function() {
|
|
2076
|
+
return this.setReferenceIdsList([]);
|
|
2077
|
+
};
|
|
2078
|
+
|
|
2079
|
+
|
|
2080
|
+
|
|
1881
2081
|
|
|
1882
2082
|
|
|
1883
2083
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -2694,4 +2894,211 @@ proto.MaterialTypeUpdateResponse.prototype.hasMeta = function() {
|
|
|
2694
2894
|
};
|
|
2695
2895
|
|
|
2696
2896
|
|
|
2897
|
+
|
|
2898
|
+
/**
|
|
2899
|
+
* List of repeated fields within this message type.
|
|
2900
|
+
* @private {!Array<number>}
|
|
2901
|
+
* @const
|
|
2902
|
+
*/
|
|
2903
|
+
proto.MaterialTypeDeleteResponse.repeatedFields_ = [1];
|
|
2904
|
+
|
|
2905
|
+
|
|
2906
|
+
|
|
2907
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2908
|
+
/**
|
|
2909
|
+
* Creates an object representation of this proto.
|
|
2910
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2911
|
+
* Optional fields that are not set will be set to undefined.
|
|
2912
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2913
|
+
* For the list of reserved names please see:
|
|
2914
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2915
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2916
|
+
* JSPB instance for transitional soy proto support:
|
|
2917
|
+
* http://goto/soy-param-migration
|
|
2918
|
+
* @return {!Object}
|
|
2919
|
+
*/
|
|
2920
|
+
proto.MaterialTypeDeleteResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2921
|
+
return proto.MaterialTypeDeleteResponse.toObject(opt_includeInstance, this);
|
|
2922
|
+
};
|
|
2923
|
+
|
|
2924
|
+
|
|
2925
|
+
/**
|
|
2926
|
+
* Static version of the {@see toObject} method.
|
|
2927
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2928
|
+
* the JSPB instance for transitional soy proto support:
|
|
2929
|
+
* http://goto/soy-param-migration
|
|
2930
|
+
* @param {!proto.MaterialTypeDeleteResponse} msg The msg instance to transform.
|
|
2931
|
+
* @return {!Object}
|
|
2932
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2933
|
+
*/
|
|
2934
|
+
proto.MaterialTypeDeleteResponse.toObject = function(includeInstance, msg) {
|
|
2935
|
+
var f, obj = {
|
|
2936
|
+
referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
2937
|
+
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
2938
|
+
};
|
|
2939
|
+
|
|
2940
|
+
if (includeInstance) {
|
|
2941
|
+
obj.$jspbMessageInstance = msg;
|
|
2942
|
+
}
|
|
2943
|
+
return obj;
|
|
2944
|
+
};
|
|
2945
|
+
}
|
|
2946
|
+
|
|
2947
|
+
|
|
2948
|
+
/**
|
|
2949
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2950
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2951
|
+
* @return {!proto.MaterialTypeDeleteResponse}
|
|
2952
|
+
*/
|
|
2953
|
+
proto.MaterialTypeDeleteResponse.deserializeBinary = function(bytes) {
|
|
2954
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2955
|
+
var msg = new proto.MaterialTypeDeleteResponse;
|
|
2956
|
+
return proto.MaterialTypeDeleteResponse.deserializeBinaryFromReader(msg, reader);
|
|
2957
|
+
};
|
|
2958
|
+
|
|
2959
|
+
|
|
2960
|
+
/**
|
|
2961
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2962
|
+
* given reader into the given message object.
|
|
2963
|
+
* @param {!proto.MaterialTypeDeleteResponse} msg The message object to deserialize into.
|
|
2964
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2965
|
+
* @return {!proto.MaterialTypeDeleteResponse}
|
|
2966
|
+
*/
|
|
2967
|
+
proto.MaterialTypeDeleteResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2968
|
+
while (reader.nextField()) {
|
|
2969
|
+
if (reader.isEndGroup()) {
|
|
2970
|
+
break;
|
|
2971
|
+
}
|
|
2972
|
+
var field = reader.getFieldNumber();
|
|
2973
|
+
switch (field) {
|
|
2974
|
+
case 1:
|
|
2975
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2976
|
+
msg.addReferenceIds(value);
|
|
2977
|
+
break;
|
|
2978
|
+
case 2:
|
|
2979
|
+
var value = new prisca_v1_global_meta_meta_pb.Meta;
|
|
2980
|
+
reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
|
|
2981
|
+
msg.setMeta(value);
|
|
2982
|
+
break;
|
|
2983
|
+
default:
|
|
2984
|
+
reader.skipField();
|
|
2985
|
+
break;
|
|
2986
|
+
}
|
|
2987
|
+
}
|
|
2988
|
+
return msg;
|
|
2989
|
+
};
|
|
2990
|
+
|
|
2991
|
+
|
|
2992
|
+
/**
|
|
2993
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2994
|
+
* @return {!Uint8Array}
|
|
2995
|
+
*/
|
|
2996
|
+
proto.MaterialTypeDeleteResponse.prototype.serializeBinary = function() {
|
|
2997
|
+
var writer = new jspb.BinaryWriter();
|
|
2998
|
+
proto.MaterialTypeDeleteResponse.serializeBinaryToWriter(this, writer);
|
|
2999
|
+
return writer.getResultBuffer();
|
|
3000
|
+
};
|
|
3001
|
+
|
|
3002
|
+
|
|
3003
|
+
/**
|
|
3004
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3005
|
+
* format), writing to the given BinaryWriter.
|
|
3006
|
+
* @param {!proto.MaterialTypeDeleteResponse} message
|
|
3007
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3008
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3009
|
+
*/
|
|
3010
|
+
proto.MaterialTypeDeleteResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3011
|
+
var f = undefined;
|
|
3012
|
+
f = message.getReferenceIdsList();
|
|
3013
|
+
if (f.length > 0) {
|
|
3014
|
+
writer.writeRepeatedString(
|
|
3015
|
+
1,
|
|
3016
|
+
f
|
|
3017
|
+
);
|
|
3018
|
+
}
|
|
3019
|
+
f = message.getMeta();
|
|
3020
|
+
if (f != null) {
|
|
3021
|
+
writer.writeMessage(
|
|
3022
|
+
2,
|
|
3023
|
+
f,
|
|
3024
|
+
prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
|
|
3025
|
+
);
|
|
3026
|
+
}
|
|
3027
|
+
};
|
|
3028
|
+
|
|
3029
|
+
|
|
3030
|
+
/**
|
|
3031
|
+
* repeated string reference_ids = 1;
|
|
3032
|
+
* @return {!Array<string>}
|
|
3033
|
+
*/
|
|
3034
|
+
proto.MaterialTypeDeleteResponse.prototype.getReferenceIdsList = function() {
|
|
3035
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
3036
|
+
};
|
|
3037
|
+
|
|
3038
|
+
|
|
3039
|
+
/**
|
|
3040
|
+
* @param {!Array<string>} value
|
|
3041
|
+
* @return {!proto.MaterialTypeDeleteResponse} returns this
|
|
3042
|
+
*/
|
|
3043
|
+
proto.MaterialTypeDeleteResponse.prototype.setReferenceIdsList = function(value) {
|
|
3044
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
3045
|
+
};
|
|
3046
|
+
|
|
3047
|
+
|
|
3048
|
+
/**
|
|
3049
|
+
* @param {string} value
|
|
3050
|
+
* @param {number=} opt_index
|
|
3051
|
+
* @return {!proto.MaterialTypeDeleteResponse} returns this
|
|
3052
|
+
*/
|
|
3053
|
+
proto.MaterialTypeDeleteResponse.prototype.addReferenceIds = function(value, opt_index) {
|
|
3054
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
3055
|
+
};
|
|
3056
|
+
|
|
3057
|
+
|
|
3058
|
+
/**
|
|
3059
|
+
* Clears the list making it empty but non-null.
|
|
3060
|
+
* @return {!proto.MaterialTypeDeleteResponse} returns this
|
|
3061
|
+
*/
|
|
3062
|
+
proto.MaterialTypeDeleteResponse.prototype.clearReferenceIdsList = function() {
|
|
3063
|
+
return this.setReferenceIdsList([]);
|
|
3064
|
+
};
|
|
3065
|
+
|
|
3066
|
+
|
|
3067
|
+
/**
|
|
3068
|
+
* optional prisca.v1.global.meta.Meta meta = 2;
|
|
3069
|
+
* @return {?proto.prisca.v1.global.meta.Meta}
|
|
3070
|
+
*/
|
|
3071
|
+
proto.MaterialTypeDeleteResponse.prototype.getMeta = function() {
|
|
3072
|
+
return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
|
|
3073
|
+
jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
|
|
3074
|
+
};
|
|
3075
|
+
|
|
3076
|
+
|
|
3077
|
+
/**
|
|
3078
|
+
* @param {?proto.prisca.v1.global.meta.Meta|undefined} value
|
|
3079
|
+
* @return {!proto.MaterialTypeDeleteResponse} returns this
|
|
3080
|
+
*/
|
|
3081
|
+
proto.MaterialTypeDeleteResponse.prototype.setMeta = function(value) {
|
|
3082
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
3083
|
+
};
|
|
3084
|
+
|
|
3085
|
+
|
|
3086
|
+
/**
|
|
3087
|
+
* Clears the message field making it undefined.
|
|
3088
|
+
* @return {!proto.MaterialTypeDeleteResponse} returns this
|
|
3089
|
+
*/
|
|
3090
|
+
proto.MaterialTypeDeleteResponse.prototype.clearMeta = function() {
|
|
3091
|
+
return this.setMeta(undefined);
|
|
3092
|
+
};
|
|
3093
|
+
|
|
3094
|
+
|
|
3095
|
+
/**
|
|
3096
|
+
* Returns whether this field is set.
|
|
3097
|
+
* @return {boolean}
|
|
3098
|
+
*/
|
|
3099
|
+
proto.MaterialTypeDeleteResponse.prototype.hasMeta = function() {
|
|
3100
|
+
return jspb.Message.getField(this, 2) != null;
|
|
3101
|
+
};
|
|
3102
|
+
|
|
3103
|
+
|
|
2697
3104
|
goog.object.extend(exports, proto);
|