@aldiokta/protocgen 1.1.22 → 1.1.23
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/account_assignment/account_assignment.proto +81 -0
- package/prisca/v1/account_group/account_group.proto +88 -0
- package/prisca/v1/bidding/bidding.proto +221 -0
- package/prisca/v1/chart_of_account/chart_of_account.proto +89 -0
- package/prisca/v1/core/access_manager/access_manager.proto +281 -0
- package/prisca/v1/core/auth/auth.proto +150 -0
- package/prisca/v1/core/chat_messaging/chat_messaging.proto +55 -0
- package/prisca/v1/core/company/company.proto +92 -0
- package/prisca/v1/core/currency/currency.proto +76 -0
- package/prisca/v1/core/department_material/department_material.proto +69 -0
- package/prisca/v1/core/employee/employee.proto +129 -0
- package/prisca/v1/core/file_upload/file_upload.proto +37 -0
- package/prisca/v1/core/incoterm/incoterm.proto +85 -0
- package/prisca/v1/core/item_transaction/item_transaction.proto +134 -0
- package/prisca/v1/core/job_grade/job_grade.proto +79 -0
- package/prisca/v1/core/job_position/job_position.proto +113 -0
- package/prisca/v1/core/job_title/job_title.proto +89 -0
- package/prisca/v1/core/line_of_activity/line_of_activity.proto +66 -0
- package/prisca/v1/core/line_of_approval/line_of_approval.proto +96 -0
- package/prisca/v1/core/link_data_source/link_data_source.proto +78 -0
- package/prisca/v1/core/location/location.proto +289 -0
- package/prisca/v1/core/material/material.proto +131 -0
- package/prisca/v1/core/material_group/material_group.proto +85 -0
- package/prisca/v1/core/material_type/material_type.proto +95 -0
- package/prisca/v1/core/messaging/email_template.proto +75 -0
- package/prisca/v1/core/messaging/messaging.proto +29 -0
- package/prisca/v1/core/number_range/number_range.proto +89 -0
- package/prisca/v1/core/organization/organization.proto +94 -0
- package/prisca/v1/core/organization_level/organization_level.proto +77 -0
- package/prisca/v1/core/price_condition/price_condition.proto +93 -0
- package/prisca/v1/core/procurement/procurement.proto +54 -0
- package/prisca/v1/core/recipient_roles/recipient_roles.proto +10 -0
- package/prisca/v1/core/report/report.proto +90 -0
- package/prisca/v1/core/report/user_report.proto +74 -0
- package/prisca/v1/core/tax_code/tax_code.proto +82 -0
- package/prisca/v1/core/term_of_payment/term_of_payment.proto +74 -0
- package/prisca/v1/core/transaction_builder/transaction_builder.proto +325 -0
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +88 -0
- package/prisca/v1/core/users/users.proto +55 -0
- package/prisca/v1/core/work_location/work_location.proto +122 -0
- package/prisca/v1/core/workflow/workflow.proto +218 -0
- package/prisca/v1/delivery_order/delivery_order.proto +147 -0
- package/prisca/v1/document_type/document_type.proto +82 -0
- package/prisca/v1/general_ledger_account/general_ledger_account.proto +100 -0
- package/prisca/v1/global/meta/meta.proto +57 -0
- package/prisca/v1/good_receipt/good_receipt.proto +11 -0
- package/prisca/v1/purchase_order/purchase_order.proto +157 -0
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +306 -0
- package/prisca/v1/purchasing_group/purchasing_group.proto +89 -0
- package/prisca/v1/purchasing_organization/purchasing_organization.proto +79 -0
- package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +81 -0
- package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +80 -0
- package/prisca/v1/quotation/quotation.proto +118 -0
- package/prisca/v1/request_for_quotation/request_for_quotation.proto +174 -0
- package/prisca/v1/valuation/valuation.proto +223 -0
- package/prisca/v1/vendor_domain/vendor_domain.proto +226 -0
- package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +0 -199
- package/prisca/v1/account_assignment/account_assignment_pb.js +0 -2674
- package/prisca/v1/account_group/account_group_grpc_pb.js +0 -200
- package/prisca/v1/account_group/account_group_pb.js +0 -2937
- package/prisca/v1/bidding/bidding_grpc_pb.js +0 -262
- package/prisca/v1/bidding/bidding_pb.js +0 -6944
- package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +0 -199
- package/prisca/v1/chart_of_account/chart_of_account_pb.js +0 -2907
- package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +0 -544
- package/prisca/v1/core/access_manager/access_manager_pb.js +0 -9383
- package/prisca/v1/core/auth/auth_grpc_pb.js +0 -423
- package/prisca/v1/core/auth/auth_pb.js +0 -4497
- package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +0 -111
- package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +0 -1531
- package/prisca/v1/core/company/company_grpc_pb.js +0 -178
- package/prisca/v1/core/company/company_pb.js +0 -3100
- package/prisca/v1/core/currency/currency_grpc_pb.js +0 -177
- package/prisca/v1/core/currency/currency_pb.js +0 -2522
- package/prisca/v1/core/department_material/department_material_grpc_pb.js +0 -144
- package/prisca/v1/core/department_material/department_material_pb.js +0 -2167
- package/prisca/v1/core/employee/employee_grpc_pb.js +0 -206
- package/prisca/v1/core/employee/employee_pb.js +0 -4335
- package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +0 -44
- package/prisca/v1/core/file_upload/file_upload_pb.js +0 -1052
- package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +0 -177
- package/prisca/v1/core/incoterm/incoterm_pb.js +0 -2904
- package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +0 -1
- package/prisca/v1/core/item_transaction/item_transaction_pb.js +0 -4180
- package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +0 -178
- package/prisca/v1/core/job_grade/job_grade_pb.js +0 -2657
- package/prisca/v1/core/job_position/job_position_grpc_pb.js +0 -181
- package/prisca/v1/core/job_position/job_position_pb.js +0 -3814
- package/prisca/v1/core/job_title/job_title_grpc_pb.js +0 -178
- package/prisca/v1/core/job_title/job_title_pb.js +0 -3010
- package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +0 -45
- package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +0 -1188
- package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +0 -200
- package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +0 -3251
- package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +0 -177
- package/prisca/v1/core/link_data_source/link_data_source_pb.js +0 -2612
- package/prisca/v1/core/location/location_grpc_pb.js +0 -837
- package/prisca/v1/core/location/location_pb.js +0 -10879
- package/prisca/v1/core/material/material_grpc_pb.js +0 -182
- package/prisca/v1/core/material/material_pb.js +0 -4232
- package/prisca/v1/core/material_group/material_group_grpc_pb.js +0 -178
- package/prisca/v1/core/material_group/material_group_pb.js +0 -2828
- package/prisca/v1/core/material_type/material_type_grpc_pb.js +0 -182
- package/prisca/v1/core/material_type/material_type_pb.js +0 -3104
- package/prisca/v1/core/messaging/email_template_grpc_pb.js +0 -177
- package/prisca/v1/core/messaging/email_template_pb.js +0 -2552
- package/prisca/v1/core/messaging/messaging_grpc_pb.js +0 -56
- package/prisca/v1/core/messaging/messaging_pb.js +0 -896
- package/prisca/v1/core/number_range/number_range_grpc_pb.js +0 -178
- package/prisca/v1/core/number_range/number_range_pb.js +0 -2978
- package/prisca/v1/core/organization/organization_grpc_pb.js +0 -180
- package/prisca/v1/core/organization/organization_pb.js +0 -3084
- package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +0 -178
- package/prisca/v1/core/organization_level/organization_level_pb.js +0 -2597
- package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +0 -179
- package/prisca/v1/core/price_condition/price_condition_pb.js +0 -3061
- package/prisca/v1/core/procurement/procurement_grpc_pb.js +0 -146
- package/prisca/v1/core/procurement/procurement_pb.js +0 -1681
- package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +0 -1
- package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +0 -206
- package/prisca/v1/core/report/report_grpc_pb.js +0 -200
- package/prisca/v1/core/report/report_pb.js +0 -2822
- package/prisca/v1/core/report/user_report_grpc_pb.js +0 -179
- package/prisca/v1/core/report/user_report_pb.js +0 -2452
- package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +0 -177
- package/prisca/v1/core/tax_code/tax_code_pb.js +0 -2732
- package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +0 -177
- package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +0 -2512
- package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +0 -498
- package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +0 -10976
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +0 -180
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +0 -2798
- package/prisca/v1/core/users/users_grpc_pb.js +0 -78
- package/prisca/v1/core/users/users_pb.js +0 -1653
- package/prisca/v1/core/work_location/work_location_grpc_pb.js +0 -179
- package/prisca/v1/core/work_location/work_location_pb.js +0 -4024
- package/prisca/v1/core/workflow/workflow_grpc_pb.js +0 -203
- package/prisca/v1/core/workflow/workflow_pb.js +0 -7577
- package/prisca/v1/delivery_order/delivery_order_grpc_pb.js +0 -229
- package/prisca/v1/delivery_order/delivery_order_pb.js +0 -4661
- package/prisca/v1/document_type/document_type_grpc_pb.js +0 -178
- package/prisca/v1/document_type/document_type_pb.js +0 -2746
- package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +0 -181
- package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +0 -3276
- package/prisca/v1/global/meta/meta_grpc_pb.js +0 -1
- package/prisca/v1/global/meta/meta_pb.js +0 -1179
- package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +0 -1
- package/prisca/v1/good_receipt/good_receipt_pb.js +0 -35
- package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +0 -228
- package/prisca/v1/purchase_order/purchase_order_pb.js +0 -5049
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -523
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -9917
- package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +0 -178
- package/prisca/v1/purchasing_group/purchasing_group_pb.js +0 -2927
- package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +0 -178
- package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +0 -2546
- package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +0 -179
- package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +0 -2590
- package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +0 -145
- package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +0 -2543
- package/prisca/v1/quotation/quotation_grpc_pb.js +0 -163
- package/prisca/v1/quotation/quotation_pb.js +0 -2796
- package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +0 -193
- package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +0 -5961
- package/prisca/v1/valuation/valuation_grpc_pb.js +0 -365
- package/prisca/v1/valuation/valuation_pb.js +0 -7729
- package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +0 -224
- package/prisca/v1/vendor_domain/vendor_domain_pb.js +0 -6363
|
@@ -1,4232 +0,0 @@
|
|
|
1
|
-
// source: prisca/v1/core/material/material.proto
|
|
2
|
-
/**
|
|
3
|
-
* @fileoverview
|
|
4
|
-
* @enhanceable
|
|
5
|
-
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
|
-
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
|
-
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
|
-
* @public
|
|
9
|
-
*/
|
|
10
|
-
// GENERATED CODE -- DO NOT EDIT!
|
|
11
|
-
/* eslint-disable */
|
|
12
|
-
// @ts-nocheck
|
|
13
|
-
|
|
14
|
-
var jspb = require('google-protobuf');
|
|
15
|
-
var goog = jspb;
|
|
16
|
-
var global =
|
|
17
|
-
(typeof globalThis !== 'undefined' && globalThis) ||
|
|
18
|
-
(typeof window !== 'undefined' && window) ||
|
|
19
|
-
(typeof global !== 'undefined' && global) ||
|
|
20
|
-
(typeof self !== 'undefined' && self) ||
|
|
21
|
-
(function () { return this; }).call(null) ||
|
|
22
|
-
Function('return this')();
|
|
23
|
-
|
|
24
|
-
var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
|
|
25
|
-
goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
|
|
26
|
-
var prisca_v1_core_material_type_material_type_pb = require('../../../../prisca/v1/core/material_type/material_type_pb.js');
|
|
27
|
-
goog.object.extend(proto, prisca_v1_core_material_type_material_type_pb);
|
|
28
|
-
var prisca_v1_core_material_group_material_group_pb = require('../../../../prisca/v1/core/material_group/material_group_pb.js');
|
|
29
|
-
goog.object.extend(proto, prisca_v1_core_material_group_material_group_pb);
|
|
30
|
-
var prisca_v1_core_work_location_work_location_pb = require('../../../../prisca/v1/core/work_location/work_location_pb.js');
|
|
31
|
-
goog.object.extend(proto, prisca_v1_core_work_location_work_location_pb);
|
|
32
|
-
var prisca_v1_core_unit_of_measurement_unit_of_measurement_pb = require('../../../../prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js');
|
|
33
|
-
goog.object.extend(proto, prisca_v1_core_unit_of_measurement_unit_of_measurement_pb);
|
|
34
|
-
var prisca_v1_core_employee_employee_pb = require('../../../../prisca/v1/core/employee/employee_pb.js');
|
|
35
|
-
goog.object.extend(proto, prisca_v1_core_employee_employee_pb);
|
|
36
|
-
goog.exportSymbol('proto.BaseMaterialRequest', null, global);
|
|
37
|
-
goog.exportSymbol('proto.CreateMaterialRequest', null, global);
|
|
38
|
-
goog.exportSymbol('proto.CreateMaterialResponse', null, global);
|
|
39
|
-
goog.exportSymbol('proto.DeleteMaterialRequest', null, global);
|
|
40
|
-
goog.exportSymbol('proto.DeleteMaterialResponse', null, global);
|
|
41
|
-
goog.exportSymbol('proto.GetListMaterialRequest', null, global);
|
|
42
|
-
goog.exportSymbol('proto.GetListMaterialResponse', null, global);
|
|
43
|
-
goog.exportSymbol('proto.GetMaterialByIdRequest', null, global);
|
|
44
|
-
goog.exportSymbol('proto.GetMaterialByIdResponse', null, global);
|
|
45
|
-
goog.exportSymbol('proto.Material', null, global);
|
|
46
|
-
goog.exportSymbol('proto.MaterialLanguageDescription', null, global);
|
|
47
|
-
goog.exportSymbol('proto.MaterialUOM', null, global);
|
|
48
|
-
goog.exportSymbol('proto.MaterialUOMRequest', null, global);
|
|
49
|
-
goog.exportSymbol('proto.UpdateMaterialRequest', null, global);
|
|
50
|
-
goog.exportSymbol('proto.UpdateMaterialResponse', null, global);
|
|
51
|
-
/**
|
|
52
|
-
* Generated by JsPbCodeGenerator.
|
|
53
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
54
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
55
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
56
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
57
|
-
* valid.
|
|
58
|
-
* @extends {jspb.Message}
|
|
59
|
-
* @constructor
|
|
60
|
-
*/
|
|
61
|
-
proto.Material = function(opt_data) {
|
|
62
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.Material.repeatedFields_, null);
|
|
63
|
-
};
|
|
64
|
-
goog.inherits(proto.Material, jspb.Message);
|
|
65
|
-
if (goog.DEBUG && !COMPILED) {
|
|
66
|
-
/**
|
|
67
|
-
* @public
|
|
68
|
-
* @override
|
|
69
|
-
*/
|
|
70
|
-
proto.Material.displayName = 'proto.Material';
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Generated by JsPbCodeGenerator.
|
|
74
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
75
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
76
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
77
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
78
|
-
* valid.
|
|
79
|
-
* @extends {jspb.Message}
|
|
80
|
-
* @constructor
|
|
81
|
-
*/
|
|
82
|
-
proto.MaterialLanguageDescription = function(opt_data) {
|
|
83
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
84
|
-
};
|
|
85
|
-
goog.inherits(proto.MaterialLanguageDescription, jspb.Message);
|
|
86
|
-
if (goog.DEBUG && !COMPILED) {
|
|
87
|
-
/**
|
|
88
|
-
* @public
|
|
89
|
-
* @override
|
|
90
|
-
*/
|
|
91
|
-
proto.MaterialLanguageDescription.displayName = 'proto.MaterialLanguageDescription';
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Generated by JsPbCodeGenerator.
|
|
95
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
96
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
97
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
98
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
99
|
-
* valid.
|
|
100
|
-
* @extends {jspb.Message}
|
|
101
|
-
* @constructor
|
|
102
|
-
*/
|
|
103
|
-
proto.MaterialUOM = function(opt_data) {
|
|
104
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
105
|
-
};
|
|
106
|
-
goog.inherits(proto.MaterialUOM, jspb.Message);
|
|
107
|
-
if (goog.DEBUG && !COMPILED) {
|
|
108
|
-
/**
|
|
109
|
-
* @public
|
|
110
|
-
* @override
|
|
111
|
-
*/
|
|
112
|
-
proto.MaterialUOM.displayName = 'proto.MaterialUOM';
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Generated by JsPbCodeGenerator.
|
|
116
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
117
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
118
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
119
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
120
|
-
* valid.
|
|
121
|
-
* @extends {jspb.Message}
|
|
122
|
-
* @constructor
|
|
123
|
-
*/
|
|
124
|
-
proto.MaterialUOMRequest = function(opt_data) {
|
|
125
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
126
|
-
};
|
|
127
|
-
goog.inherits(proto.MaterialUOMRequest, jspb.Message);
|
|
128
|
-
if (goog.DEBUG && !COMPILED) {
|
|
129
|
-
/**
|
|
130
|
-
* @public
|
|
131
|
-
* @override
|
|
132
|
-
*/
|
|
133
|
-
proto.MaterialUOMRequest.displayName = 'proto.MaterialUOMRequest';
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* Generated by JsPbCodeGenerator.
|
|
137
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
138
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
139
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
140
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
141
|
-
* valid.
|
|
142
|
-
* @extends {jspb.Message}
|
|
143
|
-
* @constructor
|
|
144
|
-
*/
|
|
145
|
-
proto.BaseMaterialRequest = function(opt_data) {
|
|
146
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.BaseMaterialRequest.repeatedFields_, null);
|
|
147
|
-
};
|
|
148
|
-
goog.inherits(proto.BaseMaterialRequest, jspb.Message);
|
|
149
|
-
if (goog.DEBUG && !COMPILED) {
|
|
150
|
-
/**
|
|
151
|
-
* @public
|
|
152
|
-
* @override
|
|
153
|
-
*/
|
|
154
|
-
proto.BaseMaterialRequest.displayName = 'proto.BaseMaterialRequest';
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* Generated by JsPbCodeGenerator.
|
|
158
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
159
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
160
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
161
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
162
|
-
* valid.
|
|
163
|
-
* @extends {jspb.Message}
|
|
164
|
-
* @constructor
|
|
165
|
-
*/
|
|
166
|
-
proto.CreateMaterialRequest = function(opt_data) {
|
|
167
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
168
|
-
};
|
|
169
|
-
goog.inherits(proto.CreateMaterialRequest, jspb.Message);
|
|
170
|
-
if (goog.DEBUG && !COMPILED) {
|
|
171
|
-
/**
|
|
172
|
-
* @public
|
|
173
|
-
* @override
|
|
174
|
-
*/
|
|
175
|
-
proto.CreateMaterialRequest.displayName = 'proto.CreateMaterialRequest';
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
* Generated by JsPbCodeGenerator.
|
|
179
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
180
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
181
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
182
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
183
|
-
* valid.
|
|
184
|
-
* @extends {jspb.Message}
|
|
185
|
-
* @constructor
|
|
186
|
-
*/
|
|
187
|
-
proto.UpdateMaterialRequest = function(opt_data) {
|
|
188
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
189
|
-
};
|
|
190
|
-
goog.inherits(proto.UpdateMaterialRequest, jspb.Message);
|
|
191
|
-
if (goog.DEBUG && !COMPILED) {
|
|
192
|
-
/**
|
|
193
|
-
* @public
|
|
194
|
-
* @override
|
|
195
|
-
*/
|
|
196
|
-
proto.UpdateMaterialRequest.displayName = 'proto.UpdateMaterialRequest';
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* Generated by JsPbCodeGenerator.
|
|
200
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
201
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
202
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
203
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
204
|
-
* valid.
|
|
205
|
-
* @extends {jspb.Message}
|
|
206
|
-
* @constructor
|
|
207
|
-
*/
|
|
208
|
-
proto.DeleteMaterialRequest = function(opt_data) {
|
|
209
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteMaterialRequest.repeatedFields_, null);
|
|
210
|
-
};
|
|
211
|
-
goog.inherits(proto.DeleteMaterialRequest, jspb.Message);
|
|
212
|
-
if (goog.DEBUG && !COMPILED) {
|
|
213
|
-
/**
|
|
214
|
-
* @public
|
|
215
|
-
* @override
|
|
216
|
-
*/
|
|
217
|
-
proto.DeleteMaterialRequest.displayName = 'proto.DeleteMaterialRequest';
|
|
218
|
-
}
|
|
219
|
-
/**
|
|
220
|
-
* Generated by JsPbCodeGenerator.
|
|
221
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
222
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
223
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
224
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
225
|
-
* valid.
|
|
226
|
-
* @extends {jspb.Message}
|
|
227
|
-
* @constructor
|
|
228
|
-
*/
|
|
229
|
-
proto.GetMaterialByIdRequest = function(opt_data) {
|
|
230
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
231
|
-
};
|
|
232
|
-
goog.inherits(proto.GetMaterialByIdRequest, jspb.Message);
|
|
233
|
-
if (goog.DEBUG && !COMPILED) {
|
|
234
|
-
/**
|
|
235
|
-
* @public
|
|
236
|
-
* @override
|
|
237
|
-
*/
|
|
238
|
-
proto.GetMaterialByIdRequest.displayName = 'proto.GetMaterialByIdRequest';
|
|
239
|
-
}
|
|
240
|
-
/**
|
|
241
|
-
* Generated by JsPbCodeGenerator.
|
|
242
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
243
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
244
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
245
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
246
|
-
* valid.
|
|
247
|
-
* @extends {jspb.Message}
|
|
248
|
-
* @constructor
|
|
249
|
-
*/
|
|
250
|
-
proto.GetListMaterialRequest = function(opt_data) {
|
|
251
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
252
|
-
};
|
|
253
|
-
goog.inherits(proto.GetListMaterialRequest, jspb.Message);
|
|
254
|
-
if (goog.DEBUG && !COMPILED) {
|
|
255
|
-
/**
|
|
256
|
-
* @public
|
|
257
|
-
* @override
|
|
258
|
-
*/
|
|
259
|
-
proto.GetListMaterialRequest.displayName = 'proto.GetListMaterialRequest';
|
|
260
|
-
}
|
|
261
|
-
/**
|
|
262
|
-
* Generated by JsPbCodeGenerator.
|
|
263
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
264
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
265
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
266
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
267
|
-
* valid.
|
|
268
|
-
* @extends {jspb.Message}
|
|
269
|
-
* @constructor
|
|
270
|
-
*/
|
|
271
|
-
proto.CreateMaterialResponse = function(opt_data) {
|
|
272
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
273
|
-
};
|
|
274
|
-
goog.inherits(proto.CreateMaterialResponse, jspb.Message);
|
|
275
|
-
if (goog.DEBUG && !COMPILED) {
|
|
276
|
-
/**
|
|
277
|
-
* @public
|
|
278
|
-
* @override
|
|
279
|
-
*/
|
|
280
|
-
proto.CreateMaterialResponse.displayName = 'proto.CreateMaterialResponse';
|
|
281
|
-
}
|
|
282
|
-
/**
|
|
283
|
-
* Generated by JsPbCodeGenerator.
|
|
284
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
285
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
286
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
287
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
288
|
-
* valid.
|
|
289
|
-
* @extends {jspb.Message}
|
|
290
|
-
* @constructor
|
|
291
|
-
*/
|
|
292
|
-
proto.UpdateMaterialResponse = function(opt_data) {
|
|
293
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
294
|
-
};
|
|
295
|
-
goog.inherits(proto.UpdateMaterialResponse, jspb.Message);
|
|
296
|
-
if (goog.DEBUG && !COMPILED) {
|
|
297
|
-
/**
|
|
298
|
-
* @public
|
|
299
|
-
* @override
|
|
300
|
-
*/
|
|
301
|
-
proto.UpdateMaterialResponse.displayName = 'proto.UpdateMaterialResponse';
|
|
302
|
-
}
|
|
303
|
-
/**
|
|
304
|
-
* Generated by JsPbCodeGenerator.
|
|
305
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
306
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
307
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
308
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
309
|
-
* valid.
|
|
310
|
-
* @extends {jspb.Message}
|
|
311
|
-
* @constructor
|
|
312
|
-
*/
|
|
313
|
-
proto.DeleteMaterialResponse = function(opt_data) {
|
|
314
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteMaterialResponse.repeatedFields_, null);
|
|
315
|
-
};
|
|
316
|
-
goog.inherits(proto.DeleteMaterialResponse, jspb.Message);
|
|
317
|
-
if (goog.DEBUG && !COMPILED) {
|
|
318
|
-
/**
|
|
319
|
-
* @public
|
|
320
|
-
* @override
|
|
321
|
-
*/
|
|
322
|
-
proto.DeleteMaterialResponse.displayName = 'proto.DeleteMaterialResponse';
|
|
323
|
-
}
|
|
324
|
-
/**
|
|
325
|
-
* Generated by JsPbCodeGenerator.
|
|
326
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
327
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
328
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
329
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
330
|
-
* valid.
|
|
331
|
-
* @extends {jspb.Message}
|
|
332
|
-
* @constructor
|
|
333
|
-
*/
|
|
334
|
-
proto.GetMaterialByIdResponse = function(opt_data) {
|
|
335
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
336
|
-
};
|
|
337
|
-
goog.inherits(proto.GetMaterialByIdResponse, jspb.Message);
|
|
338
|
-
if (goog.DEBUG && !COMPILED) {
|
|
339
|
-
/**
|
|
340
|
-
* @public
|
|
341
|
-
* @override
|
|
342
|
-
*/
|
|
343
|
-
proto.GetMaterialByIdResponse.displayName = 'proto.GetMaterialByIdResponse';
|
|
344
|
-
}
|
|
345
|
-
/**
|
|
346
|
-
* Generated by JsPbCodeGenerator.
|
|
347
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
348
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
349
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
350
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
351
|
-
* valid.
|
|
352
|
-
* @extends {jspb.Message}
|
|
353
|
-
* @constructor
|
|
354
|
-
*/
|
|
355
|
-
proto.GetListMaterialResponse = function(opt_data) {
|
|
356
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListMaterialResponse.repeatedFields_, null);
|
|
357
|
-
};
|
|
358
|
-
goog.inherits(proto.GetListMaterialResponse, jspb.Message);
|
|
359
|
-
if (goog.DEBUG && !COMPILED) {
|
|
360
|
-
/**
|
|
361
|
-
* @public
|
|
362
|
-
* @override
|
|
363
|
-
*/
|
|
364
|
-
proto.GetListMaterialResponse.displayName = 'proto.GetListMaterialResponse';
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
/**
|
|
368
|
-
* List of repeated fields within this message type.
|
|
369
|
-
* @private {!Array<number>}
|
|
370
|
-
* @const
|
|
371
|
-
*/
|
|
372
|
-
proto.Material.repeatedFields_ = [8,15];
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
377
|
-
/**
|
|
378
|
-
* Creates an object representation of this proto.
|
|
379
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
380
|
-
* Optional fields that are not set will be set to undefined.
|
|
381
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
382
|
-
* For the list of reserved names please see:
|
|
383
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
384
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
385
|
-
* JSPB instance for transitional soy proto support:
|
|
386
|
-
* http://goto/soy-param-migration
|
|
387
|
-
* @return {!Object}
|
|
388
|
-
*/
|
|
389
|
-
proto.Material.prototype.toObject = function(opt_includeInstance) {
|
|
390
|
-
return proto.Material.toObject(opt_includeInstance, this);
|
|
391
|
-
};
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
/**
|
|
395
|
-
* Static version of the {@see toObject} method.
|
|
396
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
397
|
-
* the JSPB instance for transitional soy proto support:
|
|
398
|
-
* http://goto/soy-param-migration
|
|
399
|
-
* @param {!proto.Material} msg The msg instance to transform.
|
|
400
|
-
* @return {!Object}
|
|
401
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
402
|
-
*/
|
|
403
|
-
proto.Material.toObject = function(includeInstance, msg) {
|
|
404
|
-
var f, obj = {
|
|
405
|
-
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
406
|
-
materialCode: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
407
|
-
materialDescription: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
408
|
-
materialCategory: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
409
|
-
oldProductNumber: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
410
|
-
materialGroupRef: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
411
|
-
referencesId: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
412
|
-
languageDescriptionList: jspb.Message.toObjectList(msg.getLanguageDescriptionList(),
|
|
413
|
-
proto.MaterialLanguageDescription.toObject, includeInstance),
|
|
414
|
-
createdBy: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
415
|
-
updatedBy: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
416
|
-
createdAt: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
417
|
-
updatedAt: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
418
|
-
baseUnitOfMeasureRef: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
419
|
-
baseUnitOfMeasure: (f = msg.getBaseUnitOfMeasure()) && prisca_v1_core_unit_of_measurement_unit_of_measurement_pb.UnitOfMeasure.toObject(includeInstance, f),
|
|
420
|
-
unitOfMeasureList: jspb.Message.toObjectList(msg.getUnitOfMeasureList(),
|
|
421
|
-
proto.MaterialUOM.toObject, includeInstance),
|
|
422
|
-
materialType: (f = msg.getMaterialType()) && prisca_v1_core_material_type_material_type_pb.MaterialType.toObject(includeInstance, f),
|
|
423
|
-
materialGroup: (f = msg.getMaterialGroup()) && prisca_v1_core_material_group_material_group_pb.MaterialGroup.toObject(includeInstance, f),
|
|
424
|
-
materialPlantRef: jspb.Message.getFieldWithDefault(msg, 18, ""),
|
|
425
|
-
materialPlant: (f = msg.getMaterialPlant()) && prisca_v1_core_work_location_work_location_pb.WorkLocation.toObject(includeInstance, f),
|
|
426
|
-
materialTypeCodeRef: jspb.Message.getFieldWithDefault(msg, 20, ""),
|
|
427
|
-
numberRangeSequence: jspb.Message.getFieldWithDefault(msg, 21, ""),
|
|
428
|
-
companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 22, ""),
|
|
429
|
-
createdByEmployee: (f = msg.getCreatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f),
|
|
430
|
-
updatedByEmployee: (f = msg.getUpdatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f)
|
|
431
|
-
};
|
|
432
|
-
|
|
433
|
-
if (includeInstance) {
|
|
434
|
-
obj.$jspbMessageInstance = msg;
|
|
435
|
-
}
|
|
436
|
-
return obj;
|
|
437
|
-
};
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
/**
|
|
442
|
-
* Deserializes binary data (in protobuf wire format).
|
|
443
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
444
|
-
* @return {!proto.Material}
|
|
445
|
-
*/
|
|
446
|
-
proto.Material.deserializeBinary = function(bytes) {
|
|
447
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
448
|
-
var msg = new proto.Material;
|
|
449
|
-
return proto.Material.deserializeBinaryFromReader(msg, reader);
|
|
450
|
-
};
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
/**
|
|
454
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
455
|
-
* given reader into the given message object.
|
|
456
|
-
* @param {!proto.Material} msg The message object to deserialize into.
|
|
457
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
458
|
-
* @return {!proto.Material}
|
|
459
|
-
*/
|
|
460
|
-
proto.Material.deserializeBinaryFromReader = function(msg, reader) {
|
|
461
|
-
while (reader.nextField()) {
|
|
462
|
-
if (reader.isEndGroup()) {
|
|
463
|
-
break;
|
|
464
|
-
}
|
|
465
|
-
var field = reader.getFieldNumber();
|
|
466
|
-
switch (field) {
|
|
467
|
-
case 1:
|
|
468
|
-
var value = /** @type {number} */ (reader.readInt64());
|
|
469
|
-
msg.setId(value);
|
|
470
|
-
break;
|
|
471
|
-
case 2:
|
|
472
|
-
var value = /** @type {string} */ (reader.readString());
|
|
473
|
-
msg.setMaterialCode(value);
|
|
474
|
-
break;
|
|
475
|
-
case 3:
|
|
476
|
-
var value = /** @type {string} */ (reader.readString());
|
|
477
|
-
msg.setMaterialDescription(value);
|
|
478
|
-
break;
|
|
479
|
-
case 4:
|
|
480
|
-
var value = /** @type {string} */ (reader.readString());
|
|
481
|
-
msg.setMaterialCategory(value);
|
|
482
|
-
break;
|
|
483
|
-
case 5:
|
|
484
|
-
var value = /** @type {string} */ (reader.readString());
|
|
485
|
-
msg.setOldProductNumber(value);
|
|
486
|
-
break;
|
|
487
|
-
case 6:
|
|
488
|
-
var value = /** @type {string} */ (reader.readString());
|
|
489
|
-
msg.setMaterialGroupRef(value);
|
|
490
|
-
break;
|
|
491
|
-
case 7:
|
|
492
|
-
var value = /** @type {string} */ (reader.readString());
|
|
493
|
-
msg.setReferencesId(value);
|
|
494
|
-
break;
|
|
495
|
-
case 8:
|
|
496
|
-
var value = new proto.MaterialLanguageDescription;
|
|
497
|
-
reader.readMessage(value,proto.MaterialLanguageDescription.deserializeBinaryFromReader);
|
|
498
|
-
msg.addLanguageDescription(value);
|
|
499
|
-
break;
|
|
500
|
-
case 9:
|
|
501
|
-
var value = /** @type {string} */ (reader.readString());
|
|
502
|
-
msg.setCreatedBy(value);
|
|
503
|
-
break;
|
|
504
|
-
case 10:
|
|
505
|
-
var value = /** @type {string} */ (reader.readString());
|
|
506
|
-
msg.setUpdatedBy(value);
|
|
507
|
-
break;
|
|
508
|
-
case 11:
|
|
509
|
-
var value = /** @type {string} */ (reader.readString());
|
|
510
|
-
msg.setCreatedAt(value);
|
|
511
|
-
break;
|
|
512
|
-
case 12:
|
|
513
|
-
var value = /** @type {string} */ (reader.readString());
|
|
514
|
-
msg.setUpdatedAt(value);
|
|
515
|
-
break;
|
|
516
|
-
case 13:
|
|
517
|
-
var value = /** @type {string} */ (reader.readString());
|
|
518
|
-
msg.setBaseUnitOfMeasureRef(value);
|
|
519
|
-
break;
|
|
520
|
-
case 14:
|
|
521
|
-
var value = new prisca_v1_core_unit_of_measurement_unit_of_measurement_pb.UnitOfMeasure;
|
|
522
|
-
reader.readMessage(value,prisca_v1_core_unit_of_measurement_unit_of_measurement_pb.UnitOfMeasure.deserializeBinaryFromReader);
|
|
523
|
-
msg.setBaseUnitOfMeasure(value);
|
|
524
|
-
break;
|
|
525
|
-
case 15:
|
|
526
|
-
var value = new proto.MaterialUOM;
|
|
527
|
-
reader.readMessage(value,proto.MaterialUOM.deserializeBinaryFromReader);
|
|
528
|
-
msg.addUnitOfMeasure(value);
|
|
529
|
-
break;
|
|
530
|
-
case 16:
|
|
531
|
-
var value = new prisca_v1_core_material_type_material_type_pb.MaterialType;
|
|
532
|
-
reader.readMessage(value,prisca_v1_core_material_type_material_type_pb.MaterialType.deserializeBinaryFromReader);
|
|
533
|
-
msg.setMaterialType(value);
|
|
534
|
-
break;
|
|
535
|
-
case 17:
|
|
536
|
-
var value = new prisca_v1_core_material_group_material_group_pb.MaterialGroup;
|
|
537
|
-
reader.readMessage(value,prisca_v1_core_material_group_material_group_pb.MaterialGroup.deserializeBinaryFromReader);
|
|
538
|
-
msg.setMaterialGroup(value);
|
|
539
|
-
break;
|
|
540
|
-
case 18:
|
|
541
|
-
var value = /** @type {string} */ (reader.readString());
|
|
542
|
-
msg.setMaterialPlantRef(value);
|
|
543
|
-
break;
|
|
544
|
-
case 19:
|
|
545
|
-
var value = new prisca_v1_core_work_location_work_location_pb.WorkLocation;
|
|
546
|
-
reader.readMessage(value,prisca_v1_core_work_location_work_location_pb.WorkLocation.deserializeBinaryFromReader);
|
|
547
|
-
msg.setMaterialPlant(value);
|
|
548
|
-
break;
|
|
549
|
-
case 20:
|
|
550
|
-
var value = /** @type {string} */ (reader.readString());
|
|
551
|
-
msg.setMaterialTypeCodeRef(value);
|
|
552
|
-
break;
|
|
553
|
-
case 21:
|
|
554
|
-
var value = /** @type {string} */ (reader.readString());
|
|
555
|
-
msg.setNumberRangeSequence(value);
|
|
556
|
-
break;
|
|
557
|
-
case 22:
|
|
558
|
-
var value = /** @type {string} */ (reader.readString());
|
|
559
|
-
msg.setCompaniesReferencesId(value);
|
|
560
|
-
break;
|
|
561
|
-
case 23:
|
|
562
|
-
var value = new prisca_v1_core_employee_employee_pb.Employee;
|
|
563
|
-
reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
|
|
564
|
-
msg.setCreatedByEmployee(value);
|
|
565
|
-
break;
|
|
566
|
-
case 24:
|
|
567
|
-
var value = new prisca_v1_core_employee_employee_pb.Employee;
|
|
568
|
-
reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
|
|
569
|
-
msg.setUpdatedByEmployee(value);
|
|
570
|
-
break;
|
|
571
|
-
default:
|
|
572
|
-
reader.skipField();
|
|
573
|
-
break;
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
return msg;
|
|
577
|
-
};
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
/**
|
|
581
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
582
|
-
* @return {!Uint8Array}
|
|
583
|
-
*/
|
|
584
|
-
proto.Material.prototype.serializeBinary = function() {
|
|
585
|
-
var writer = new jspb.BinaryWriter();
|
|
586
|
-
proto.Material.serializeBinaryToWriter(this, writer);
|
|
587
|
-
return writer.getResultBuffer();
|
|
588
|
-
};
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
/**
|
|
592
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
593
|
-
* format), writing to the given BinaryWriter.
|
|
594
|
-
* @param {!proto.Material} message
|
|
595
|
-
* @param {!jspb.BinaryWriter} writer
|
|
596
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
597
|
-
*/
|
|
598
|
-
proto.Material.serializeBinaryToWriter = function(message, writer) {
|
|
599
|
-
var f = undefined;
|
|
600
|
-
f = message.getId();
|
|
601
|
-
if (f !== 0) {
|
|
602
|
-
writer.writeInt64(
|
|
603
|
-
1,
|
|
604
|
-
f
|
|
605
|
-
);
|
|
606
|
-
}
|
|
607
|
-
f = message.getMaterialCode();
|
|
608
|
-
if (f.length > 0) {
|
|
609
|
-
writer.writeString(
|
|
610
|
-
2,
|
|
611
|
-
f
|
|
612
|
-
);
|
|
613
|
-
}
|
|
614
|
-
f = message.getMaterialDescription();
|
|
615
|
-
if (f.length > 0) {
|
|
616
|
-
writer.writeString(
|
|
617
|
-
3,
|
|
618
|
-
f
|
|
619
|
-
);
|
|
620
|
-
}
|
|
621
|
-
f = message.getMaterialCategory();
|
|
622
|
-
if (f.length > 0) {
|
|
623
|
-
writer.writeString(
|
|
624
|
-
4,
|
|
625
|
-
f
|
|
626
|
-
);
|
|
627
|
-
}
|
|
628
|
-
f = message.getOldProductNumber();
|
|
629
|
-
if (f.length > 0) {
|
|
630
|
-
writer.writeString(
|
|
631
|
-
5,
|
|
632
|
-
f
|
|
633
|
-
);
|
|
634
|
-
}
|
|
635
|
-
f = message.getMaterialGroupRef();
|
|
636
|
-
if (f.length > 0) {
|
|
637
|
-
writer.writeString(
|
|
638
|
-
6,
|
|
639
|
-
f
|
|
640
|
-
);
|
|
641
|
-
}
|
|
642
|
-
f = message.getReferencesId();
|
|
643
|
-
if (f.length > 0) {
|
|
644
|
-
writer.writeString(
|
|
645
|
-
7,
|
|
646
|
-
f
|
|
647
|
-
);
|
|
648
|
-
}
|
|
649
|
-
f = message.getLanguageDescriptionList();
|
|
650
|
-
if (f.length > 0) {
|
|
651
|
-
writer.writeRepeatedMessage(
|
|
652
|
-
8,
|
|
653
|
-
f,
|
|
654
|
-
proto.MaterialLanguageDescription.serializeBinaryToWriter
|
|
655
|
-
);
|
|
656
|
-
}
|
|
657
|
-
f = message.getCreatedBy();
|
|
658
|
-
if (f.length > 0) {
|
|
659
|
-
writer.writeString(
|
|
660
|
-
9,
|
|
661
|
-
f
|
|
662
|
-
);
|
|
663
|
-
}
|
|
664
|
-
f = message.getUpdatedBy();
|
|
665
|
-
if (f.length > 0) {
|
|
666
|
-
writer.writeString(
|
|
667
|
-
10,
|
|
668
|
-
f
|
|
669
|
-
);
|
|
670
|
-
}
|
|
671
|
-
f = message.getCreatedAt();
|
|
672
|
-
if (f.length > 0) {
|
|
673
|
-
writer.writeString(
|
|
674
|
-
11,
|
|
675
|
-
f
|
|
676
|
-
);
|
|
677
|
-
}
|
|
678
|
-
f = message.getUpdatedAt();
|
|
679
|
-
if (f.length > 0) {
|
|
680
|
-
writer.writeString(
|
|
681
|
-
12,
|
|
682
|
-
f
|
|
683
|
-
);
|
|
684
|
-
}
|
|
685
|
-
f = message.getBaseUnitOfMeasureRef();
|
|
686
|
-
if (f.length > 0) {
|
|
687
|
-
writer.writeString(
|
|
688
|
-
13,
|
|
689
|
-
f
|
|
690
|
-
);
|
|
691
|
-
}
|
|
692
|
-
f = message.getBaseUnitOfMeasure();
|
|
693
|
-
if (f != null) {
|
|
694
|
-
writer.writeMessage(
|
|
695
|
-
14,
|
|
696
|
-
f,
|
|
697
|
-
prisca_v1_core_unit_of_measurement_unit_of_measurement_pb.UnitOfMeasure.serializeBinaryToWriter
|
|
698
|
-
);
|
|
699
|
-
}
|
|
700
|
-
f = message.getUnitOfMeasureList();
|
|
701
|
-
if (f.length > 0) {
|
|
702
|
-
writer.writeRepeatedMessage(
|
|
703
|
-
15,
|
|
704
|
-
f,
|
|
705
|
-
proto.MaterialUOM.serializeBinaryToWriter
|
|
706
|
-
);
|
|
707
|
-
}
|
|
708
|
-
f = message.getMaterialType();
|
|
709
|
-
if (f != null) {
|
|
710
|
-
writer.writeMessage(
|
|
711
|
-
16,
|
|
712
|
-
f,
|
|
713
|
-
prisca_v1_core_material_type_material_type_pb.MaterialType.serializeBinaryToWriter
|
|
714
|
-
);
|
|
715
|
-
}
|
|
716
|
-
f = message.getMaterialGroup();
|
|
717
|
-
if (f != null) {
|
|
718
|
-
writer.writeMessage(
|
|
719
|
-
17,
|
|
720
|
-
f,
|
|
721
|
-
prisca_v1_core_material_group_material_group_pb.MaterialGroup.serializeBinaryToWriter
|
|
722
|
-
);
|
|
723
|
-
}
|
|
724
|
-
f = message.getMaterialPlantRef();
|
|
725
|
-
if (f.length > 0) {
|
|
726
|
-
writer.writeString(
|
|
727
|
-
18,
|
|
728
|
-
f
|
|
729
|
-
);
|
|
730
|
-
}
|
|
731
|
-
f = message.getMaterialPlant();
|
|
732
|
-
if (f != null) {
|
|
733
|
-
writer.writeMessage(
|
|
734
|
-
19,
|
|
735
|
-
f,
|
|
736
|
-
prisca_v1_core_work_location_work_location_pb.WorkLocation.serializeBinaryToWriter
|
|
737
|
-
);
|
|
738
|
-
}
|
|
739
|
-
f = message.getMaterialTypeCodeRef();
|
|
740
|
-
if (f.length > 0) {
|
|
741
|
-
writer.writeString(
|
|
742
|
-
20,
|
|
743
|
-
f
|
|
744
|
-
);
|
|
745
|
-
}
|
|
746
|
-
f = message.getNumberRangeSequence();
|
|
747
|
-
if (f.length > 0) {
|
|
748
|
-
writer.writeString(
|
|
749
|
-
21,
|
|
750
|
-
f
|
|
751
|
-
);
|
|
752
|
-
}
|
|
753
|
-
f = message.getCompaniesReferencesId();
|
|
754
|
-
if (f.length > 0) {
|
|
755
|
-
writer.writeString(
|
|
756
|
-
22,
|
|
757
|
-
f
|
|
758
|
-
);
|
|
759
|
-
}
|
|
760
|
-
f = message.getCreatedByEmployee();
|
|
761
|
-
if (f != null) {
|
|
762
|
-
writer.writeMessage(
|
|
763
|
-
23,
|
|
764
|
-
f,
|
|
765
|
-
prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
|
|
766
|
-
);
|
|
767
|
-
}
|
|
768
|
-
f = message.getUpdatedByEmployee();
|
|
769
|
-
if (f != null) {
|
|
770
|
-
writer.writeMessage(
|
|
771
|
-
24,
|
|
772
|
-
f,
|
|
773
|
-
prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
|
|
774
|
-
);
|
|
775
|
-
}
|
|
776
|
-
};
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
/**
|
|
780
|
-
* optional int64 id = 1;
|
|
781
|
-
* @return {number}
|
|
782
|
-
*/
|
|
783
|
-
proto.Material.prototype.getId = function() {
|
|
784
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
785
|
-
};
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
/**
|
|
789
|
-
* @param {number} value
|
|
790
|
-
* @return {!proto.Material} returns this
|
|
791
|
-
*/
|
|
792
|
-
proto.Material.prototype.setId = function(value) {
|
|
793
|
-
return jspb.Message.setProto3IntField(this, 1, value);
|
|
794
|
-
};
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
/**
|
|
798
|
-
* optional string material_code = 2;
|
|
799
|
-
* @return {string}
|
|
800
|
-
*/
|
|
801
|
-
proto.Material.prototype.getMaterialCode = function() {
|
|
802
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
803
|
-
};
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
/**
|
|
807
|
-
* @param {string} value
|
|
808
|
-
* @return {!proto.Material} returns this
|
|
809
|
-
*/
|
|
810
|
-
proto.Material.prototype.setMaterialCode = function(value) {
|
|
811
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
812
|
-
};
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
/**
|
|
816
|
-
* optional string material_description = 3;
|
|
817
|
-
* @return {string}
|
|
818
|
-
*/
|
|
819
|
-
proto.Material.prototype.getMaterialDescription = function() {
|
|
820
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
821
|
-
};
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
/**
|
|
825
|
-
* @param {string} value
|
|
826
|
-
* @return {!proto.Material} returns this
|
|
827
|
-
*/
|
|
828
|
-
proto.Material.prototype.setMaterialDescription = function(value) {
|
|
829
|
-
return jspb.Message.setProto3StringField(this, 3, value);
|
|
830
|
-
};
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
/**
|
|
834
|
-
* optional string material_category = 4;
|
|
835
|
-
* @return {string}
|
|
836
|
-
*/
|
|
837
|
-
proto.Material.prototype.getMaterialCategory = function() {
|
|
838
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
839
|
-
};
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
/**
|
|
843
|
-
* @param {string} value
|
|
844
|
-
* @return {!proto.Material} returns this
|
|
845
|
-
*/
|
|
846
|
-
proto.Material.prototype.setMaterialCategory = function(value) {
|
|
847
|
-
return jspb.Message.setProto3StringField(this, 4, value);
|
|
848
|
-
};
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
/**
|
|
852
|
-
* optional string old_product_number = 5;
|
|
853
|
-
* @return {string}
|
|
854
|
-
*/
|
|
855
|
-
proto.Material.prototype.getOldProductNumber = function() {
|
|
856
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
857
|
-
};
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
/**
|
|
861
|
-
* @param {string} value
|
|
862
|
-
* @return {!proto.Material} returns this
|
|
863
|
-
*/
|
|
864
|
-
proto.Material.prototype.setOldProductNumber = function(value) {
|
|
865
|
-
return jspb.Message.setProto3StringField(this, 5, value);
|
|
866
|
-
};
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
/**
|
|
870
|
-
* optional string material_group_ref = 6;
|
|
871
|
-
* @return {string}
|
|
872
|
-
*/
|
|
873
|
-
proto.Material.prototype.getMaterialGroupRef = function() {
|
|
874
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
875
|
-
};
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
/**
|
|
879
|
-
* @param {string} value
|
|
880
|
-
* @return {!proto.Material} returns this
|
|
881
|
-
*/
|
|
882
|
-
proto.Material.prototype.setMaterialGroupRef = function(value) {
|
|
883
|
-
return jspb.Message.setProto3StringField(this, 6, value);
|
|
884
|
-
};
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
/**
|
|
888
|
-
* optional string references_id = 7;
|
|
889
|
-
* @return {string}
|
|
890
|
-
*/
|
|
891
|
-
proto.Material.prototype.getReferencesId = function() {
|
|
892
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
893
|
-
};
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
/**
|
|
897
|
-
* @param {string} value
|
|
898
|
-
* @return {!proto.Material} returns this
|
|
899
|
-
*/
|
|
900
|
-
proto.Material.prototype.setReferencesId = function(value) {
|
|
901
|
-
return jspb.Message.setProto3StringField(this, 7, value);
|
|
902
|
-
};
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
/**
|
|
906
|
-
* repeated MaterialLanguageDescription language_description = 8;
|
|
907
|
-
* @return {!Array<!proto.MaterialLanguageDescription>}
|
|
908
|
-
*/
|
|
909
|
-
proto.Material.prototype.getLanguageDescriptionList = function() {
|
|
910
|
-
return /** @type{!Array<!proto.MaterialLanguageDescription>} */ (
|
|
911
|
-
jspb.Message.getRepeatedWrapperField(this, proto.MaterialLanguageDescription, 8));
|
|
912
|
-
};
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
/**
|
|
916
|
-
* @param {!Array<!proto.MaterialLanguageDescription>} value
|
|
917
|
-
* @return {!proto.Material} returns this
|
|
918
|
-
*/
|
|
919
|
-
proto.Material.prototype.setLanguageDescriptionList = function(value) {
|
|
920
|
-
return jspb.Message.setRepeatedWrapperField(this, 8, value);
|
|
921
|
-
};
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
/**
|
|
925
|
-
* @param {!proto.MaterialLanguageDescription=} opt_value
|
|
926
|
-
* @param {number=} opt_index
|
|
927
|
-
* @return {!proto.MaterialLanguageDescription}
|
|
928
|
-
*/
|
|
929
|
-
proto.Material.prototype.addLanguageDescription = function(opt_value, opt_index) {
|
|
930
|
-
return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.MaterialLanguageDescription, opt_index);
|
|
931
|
-
};
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
/**
|
|
935
|
-
* Clears the list making it empty but non-null.
|
|
936
|
-
* @return {!proto.Material} returns this
|
|
937
|
-
*/
|
|
938
|
-
proto.Material.prototype.clearLanguageDescriptionList = function() {
|
|
939
|
-
return this.setLanguageDescriptionList([]);
|
|
940
|
-
};
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
/**
|
|
944
|
-
* optional string created_by = 9;
|
|
945
|
-
* @return {string}
|
|
946
|
-
*/
|
|
947
|
-
proto.Material.prototype.getCreatedBy = function() {
|
|
948
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
949
|
-
};
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
/**
|
|
953
|
-
* @param {string} value
|
|
954
|
-
* @return {!proto.Material} returns this
|
|
955
|
-
*/
|
|
956
|
-
proto.Material.prototype.setCreatedBy = function(value) {
|
|
957
|
-
return jspb.Message.setProto3StringField(this, 9, value);
|
|
958
|
-
};
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
/**
|
|
962
|
-
* optional string updated_by = 10;
|
|
963
|
-
* @return {string}
|
|
964
|
-
*/
|
|
965
|
-
proto.Material.prototype.getUpdatedBy = function() {
|
|
966
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
967
|
-
};
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
/**
|
|
971
|
-
* @param {string} value
|
|
972
|
-
* @return {!proto.Material} returns this
|
|
973
|
-
*/
|
|
974
|
-
proto.Material.prototype.setUpdatedBy = function(value) {
|
|
975
|
-
return jspb.Message.setProto3StringField(this, 10, value);
|
|
976
|
-
};
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
/**
|
|
980
|
-
* optional string created_at = 11;
|
|
981
|
-
* @return {string}
|
|
982
|
-
*/
|
|
983
|
-
proto.Material.prototype.getCreatedAt = function() {
|
|
984
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
|
985
|
-
};
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
/**
|
|
989
|
-
* @param {string} value
|
|
990
|
-
* @return {!proto.Material} returns this
|
|
991
|
-
*/
|
|
992
|
-
proto.Material.prototype.setCreatedAt = function(value) {
|
|
993
|
-
return jspb.Message.setProto3StringField(this, 11, value);
|
|
994
|
-
};
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
/**
|
|
998
|
-
* optional string updated_at = 12;
|
|
999
|
-
* @return {string}
|
|
1000
|
-
*/
|
|
1001
|
-
proto.Material.prototype.getUpdatedAt = function() {
|
|
1002
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
|
|
1003
|
-
};
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
/**
|
|
1007
|
-
* @param {string} value
|
|
1008
|
-
* @return {!proto.Material} returns this
|
|
1009
|
-
*/
|
|
1010
|
-
proto.Material.prototype.setUpdatedAt = function(value) {
|
|
1011
|
-
return jspb.Message.setProto3StringField(this, 12, value);
|
|
1012
|
-
};
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
/**
|
|
1016
|
-
* optional string base_unit_of_measure_ref = 13;
|
|
1017
|
-
* @return {string}
|
|
1018
|
-
*/
|
|
1019
|
-
proto.Material.prototype.getBaseUnitOfMeasureRef = function() {
|
|
1020
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
|
|
1021
|
-
};
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
/**
|
|
1025
|
-
* @param {string} value
|
|
1026
|
-
* @return {!proto.Material} returns this
|
|
1027
|
-
*/
|
|
1028
|
-
proto.Material.prototype.setBaseUnitOfMeasureRef = function(value) {
|
|
1029
|
-
return jspb.Message.setProto3StringField(this, 13, value);
|
|
1030
|
-
};
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
/**
|
|
1034
|
-
* optional UnitOfMeasure base_unit_of_measure = 14;
|
|
1035
|
-
* @return {?proto.UnitOfMeasure}
|
|
1036
|
-
*/
|
|
1037
|
-
proto.Material.prototype.getBaseUnitOfMeasure = function() {
|
|
1038
|
-
return /** @type{?proto.UnitOfMeasure} */ (
|
|
1039
|
-
jspb.Message.getWrapperField(this, prisca_v1_core_unit_of_measurement_unit_of_measurement_pb.UnitOfMeasure, 14));
|
|
1040
|
-
};
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
/**
|
|
1044
|
-
* @param {?proto.UnitOfMeasure|undefined} value
|
|
1045
|
-
* @return {!proto.Material} returns this
|
|
1046
|
-
*/
|
|
1047
|
-
proto.Material.prototype.setBaseUnitOfMeasure = function(value) {
|
|
1048
|
-
return jspb.Message.setWrapperField(this, 14, value);
|
|
1049
|
-
};
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
/**
|
|
1053
|
-
* Clears the message field making it undefined.
|
|
1054
|
-
* @return {!proto.Material} returns this
|
|
1055
|
-
*/
|
|
1056
|
-
proto.Material.prototype.clearBaseUnitOfMeasure = function() {
|
|
1057
|
-
return this.setBaseUnitOfMeasure(undefined);
|
|
1058
|
-
};
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
/**
|
|
1062
|
-
* Returns whether this field is set.
|
|
1063
|
-
* @return {boolean}
|
|
1064
|
-
*/
|
|
1065
|
-
proto.Material.prototype.hasBaseUnitOfMeasure = function() {
|
|
1066
|
-
return jspb.Message.getField(this, 14) != null;
|
|
1067
|
-
};
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
/**
|
|
1071
|
-
* repeated MaterialUOM unit_of_measure = 15;
|
|
1072
|
-
* @return {!Array<!proto.MaterialUOM>}
|
|
1073
|
-
*/
|
|
1074
|
-
proto.Material.prototype.getUnitOfMeasureList = function() {
|
|
1075
|
-
return /** @type{!Array<!proto.MaterialUOM>} */ (
|
|
1076
|
-
jspb.Message.getRepeatedWrapperField(this, proto.MaterialUOM, 15));
|
|
1077
|
-
};
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
/**
|
|
1081
|
-
* @param {!Array<!proto.MaterialUOM>} value
|
|
1082
|
-
* @return {!proto.Material} returns this
|
|
1083
|
-
*/
|
|
1084
|
-
proto.Material.prototype.setUnitOfMeasureList = function(value) {
|
|
1085
|
-
return jspb.Message.setRepeatedWrapperField(this, 15, value);
|
|
1086
|
-
};
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
/**
|
|
1090
|
-
* @param {!proto.MaterialUOM=} opt_value
|
|
1091
|
-
* @param {number=} opt_index
|
|
1092
|
-
* @return {!proto.MaterialUOM}
|
|
1093
|
-
*/
|
|
1094
|
-
proto.Material.prototype.addUnitOfMeasure = function(opt_value, opt_index) {
|
|
1095
|
-
return jspb.Message.addToRepeatedWrapperField(this, 15, opt_value, proto.MaterialUOM, opt_index);
|
|
1096
|
-
};
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
/**
|
|
1100
|
-
* Clears the list making it empty but non-null.
|
|
1101
|
-
* @return {!proto.Material} returns this
|
|
1102
|
-
*/
|
|
1103
|
-
proto.Material.prototype.clearUnitOfMeasureList = function() {
|
|
1104
|
-
return this.setUnitOfMeasureList([]);
|
|
1105
|
-
};
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
/**
|
|
1109
|
-
* optional MaterialType material_type = 16;
|
|
1110
|
-
* @return {?proto.MaterialType}
|
|
1111
|
-
*/
|
|
1112
|
-
proto.Material.prototype.getMaterialType = function() {
|
|
1113
|
-
return /** @type{?proto.MaterialType} */ (
|
|
1114
|
-
jspb.Message.getWrapperField(this, prisca_v1_core_material_type_material_type_pb.MaterialType, 16));
|
|
1115
|
-
};
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
/**
|
|
1119
|
-
* @param {?proto.MaterialType|undefined} value
|
|
1120
|
-
* @return {!proto.Material} returns this
|
|
1121
|
-
*/
|
|
1122
|
-
proto.Material.prototype.setMaterialType = function(value) {
|
|
1123
|
-
return jspb.Message.setWrapperField(this, 16, value);
|
|
1124
|
-
};
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
/**
|
|
1128
|
-
* Clears the message field making it undefined.
|
|
1129
|
-
* @return {!proto.Material} returns this
|
|
1130
|
-
*/
|
|
1131
|
-
proto.Material.prototype.clearMaterialType = function() {
|
|
1132
|
-
return this.setMaterialType(undefined);
|
|
1133
|
-
};
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
/**
|
|
1137
|
-
* Returns whether this field is set.
|
|
1138
|
-
* @return {boolean}
|
|
1139
|
-
*/
|
|
1140
|
-
proto.Material.prototype.hasMaterialType = function() {
|
|
1141
|
-
return jspb.Message.getField(this, 16) != null;
|
|
1142
|
-
};
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
/**
|
|
1146
|
-
* optional MaterialGroup material_group = 17;
|
|
1147
|
-
* @return {?proto.MaterialGroup}
|
|
1148
|
-
*/
|
|
1149
|
-
proto.Material.prototype.getMaterialGroup = function() {
|
|
1150
|
-
return /** @type{?proto.MaterialGroup} */ (
|
|
1151
|
-
jspb.Message.getWrapperField(this, prisca_v1_core_material_group_material_group_pb.MaterialGroup, 17));
|
|
1152
|
-
};
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
/**
|
|
1156
|
-
* @param {?proto.MaterialGroup|undefined} value
|
|
1157
|
-
* @return {!proto.Material} returns this
|
|
1158
|
-
*/
|
|
1159
|
-
proto.Material.prototype.setMaterialGroup = function(value) {
|
|
1160
|
-
return jspb.Message.setWrapperField(this, 17, value);
|
|
1161
|
-
};
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
/**
|
|
1165
|
-
* Clears the message field making it undefined.
|
|
1166
|
-
* @return {!proto.Material} returns this
|
|
1167
|
-
*/
|
|
1168
|
-
proto.Material.prototype.clearMaterialGroup = function() {
|
|
1169
|
-
return this.setMaterialGroup(undefined);
|
|
1170
|
-
};
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
/**
|
|
1174
|
-
* Returns whether this field is set.
|
|
1175
|
-
* @return {boolean}
|
|
1176
|
-
*/
|
|
1177
|
-
proto.Material.prototype.hasMaterialGroup = function() {
|
|
1178
|
-
return jspb.Message.getField(this, 17) != null;
|
|
1179
|
-
};
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
/**
|
|
1183
|
-
* optional string material_plant_ref = 18;
|
|
1184
|
-
* @return {string}
|
|
1185
|
-
*/
|
|
1186
|
-
proto.Material.prototype.getMaterialPlantRef = function() {
|
|
1187
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
|
|
1188
|
-
};
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
/**
|
|
1192
|
-
* @param {string} value
|
|
1193
|
-
* @return {!proto.Material} returns this
|
|
1194
|
-
*/
|
|
1195
|
-
proto.Material.prototype.setMaterialPlantRef = function(value) {
|
|
1196
|
-
return jspb.Message.setProto3StringField(this, 18, value);
|
|
1197
|
-
};
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
/**
|
|
1201
|
-
* optional WorkLocation material_plant = 19;
|
|
1202
|
-
* @return {?proto.WorkLocation}
|
|
1203
|
-
*/
|
|
1204
|
-
proto.Material.prototype.getMaterialPlant = function() {
|
|
1205
|
-
return /** @type{?proto.WorkLocation} */ (
|
|
1206
|
-
jspb.Message.getWrapperField(this, prisca_v1_core_work_location_work_location_pb.WorkLocation, 19));
|
|
1207
|
-
};
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
/**
|
|
1211
|
-
* @param {?proto.WorkLocation|undefined} value
|
|
1212
|
-
* @return {!proto.Material} returns this
|
|
1213
|
-
*/
|
|
1214
|
-
proto.Material.prototype.setMaterialPlant = function(value) {
|
|
1215
|
-
return jspb.Message.setWrapperField(this, 19, value);
|
|
1216
|
-
};
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
/**
|
|
1220
|
-
* Clears the message field making it undefined.
|
|
1221
|
-
* @return {!proto.Material} returns this
|
|
1222
|
-
*/
|
|
1223
|
-
proto.Material.prototype.clearMaterialPlant = function() {
|
|
1224
|
-
return this.setMaterialPlant(undefined);
|
|
1225
|
-
};
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
/**
|
|
1229
|
-
* Returns whether this field is set.
|
|
1230
|
-
* @return {boolean}
|
|
1231
|
-
*/
|
|
1232
|
-
proto.Material.prototype.hasMaterialPlant = function() {
|
|
1233
|
-
return jspb.Message.getField(this, 19) != null;
|
|
1234
|
-
};
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
/**
|
|
1238
|
-
* optional string material_type_code_ref = 20;
|
|
1239
|
-
* @return {string}
|
|
1240
|
-
*/
|
|
1241
|
-
proto.Material.prototype.getMaterialTypeCodeRef = function() {
|
|
1242
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, ""));
|
|
1243
|
-
};
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
/**
|
|
1247
|
-
* @param {string} value
|
|
1248
|
-
* @return {!proto.Material} returns this
|
|
1249
|
-
*/
|
|
1250
|
-
proto.Material.prototype.setMaterialTypeCodeRef = function(value) {
|
|
1251
|
-
return jspb.Message.setProto3StringField(this, 20, value);
|
|
1252
|
-
};
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
/**
|
|
1256
|
-
* optional string number_range_sequence = 21;
|
|
1257
|
-
* @return {string}
|
|
1258
|
-
*/
|
|
1259
|
-
proto.Material.prototype.getNumberRangeSequence = function() {
|
|
1260
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, ""));
|
|
1261
|
-
};
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
/**
|
|
1265
|
-
* @param {string} value
|
|
1266
|
-
* @return {!proto.Material} returns this
|
|
1267
|
-
*/
|
|
1268
|
-
proto.Material.prototype.setNumberRangeSequence = function(value) {
|
|
1269
|
-
return jspb.Message.setProto3StringField(this, 21, value);
|
|
1270
|
-
};
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
/**
|
|
1274
|
-
* optional string companies_references_id = 22;
|
|
1275
|
-
* @return {string}
|
|
1276
|
-
*/
|
|
1277
|
-
proto.Material.prototype.getCompaniesReferencesId = function() {
|
|
1278
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, ""));
|
|
1279
|
-
};
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
/**
|
|
1283
|
-
* @param {string} value
|
|
1284
|
-
* @return {!proto.Material} returns this
|
|
1285
|
-
*/
|
|
1286
|
-
proto.Material.prototype.setCompaniesReferencesId = function(value) {
|
|
1287
|
-
return jspb.Message.setProto3StringField(this, 22, value);
|
|
1288
|
-
};
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
/**
|
|
1292
|
-
* optional Employee created_by_employee = 23;
|
|
1293
|
-
* @return {?proto.Employee}
|
|
1294
|
-
*/
|
|
1295
|
-
proto.Material.prototype.getCreatedByEmployee = function() {
|
|
1296
|
-
return /** @type{?proto.Employee} */ (
|
|
1297
|
-
jspb.Message.getWrapperField(this, prisca_v1_core_employee_employee_pb.Employee, 23));
|
|
1298
|
-
};
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
/**
|
|
1302
|
-
* @param {?proto.Employee|undefined} value
|
|
1303
|
-
* @return {!proto.Material} returns this
|
|
1304
|
-
*/
|
|
1305
|
-
proto.Material.prototype.setCreatedByEmployee = function(value) {
|
|
1306
|
-
return jspb.Message.setWrapperField(this, 23, value);
|
|
1307
|
-
};
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
/**
|
|
1311
|
-
* Clears the message field making it undefined.
|
|
1312
|
-
* @return {!proto.Material} returns this
|
|
1313
|
-
*/
|
|
1314
|
-
proto.Material.prototype.clearCreatedByEmployee = function() {
|
|
1315
|
-
return this.setCreatedByEmployee(undefined);
|
|
1316
|
-
};
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
/**
|
|
1320
|
-
* Returns whether this field is set.
|
|
1321
|
-
* @return {boolean}
|
|
1322
|
-
*/
|
|
1323
|
-
proto.Material.prototype.hasCreatedByEmployee = function() {
|
|
1324
|
-
return jspb.Message.getField(this, 23) != null;
|
|
1325
|
-
};
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
/**
|
|
1329
|
-
* optional Employee updated_by_employee = 24;
|
|
1330
|
-
* @return {?proto.Employee}
|
|
1331
|
-
*/
|
|
1332
|
-
proto.Material.prototype.getUpdatedByEmployee = function() {
|
|
1333
|
-
return /** @type{?proto.Employee} */ (
|
|
1334
|
-
jspb.Message.getWrapperField(this, prisca_v1_core_employee_employee_pb.Employee, 24));
|
|
1335
|
-
};
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
/**
|
|
1339
|
-
* @param {?proto.Employee|undefined} value
|
|
1340
|
-
* @return {!proto.Material} returns this
|
|
1341
|
-
*/
|
|
1342
|
-
proto.Material.prototype.setUpdatedByEmployee = function(value) {
|
|
1343
|
-
return jspb.Message.setWrapperField(this, 24, value);
|
|
1344
|
-
};
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
/**
|
|
1348
|
-
* Clears the message field making it undefined.
|
|
1349
|
-
* @return {!proto.Material} returns this
|
|
1350
|
-
*/
|
|
1351
|
-
proto.Material.prototype.clearUpdatedByEmployee = function() {
|
|
1352
|
-
return this.setUpdatedByEmployee(undefined);
|
|
1353
|
-
};
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
/**
|
|
1357
|
-
* Returns whether this field is set.
|
|
1358
|
-
* @return {boolean}
|
|
1359
|
-
*/
|
|
1360
|
-
proto.Material.prototype.hasUpdatedByEmployee = function() {
|
|
1361
|
-
return jspb.Message.getField(this, 24) != null;
|
|
1362
|
-
};
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1369
|
-
/**
|
|
1370
|
-
* Creates an object representation of this proto.
|
|
1371
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1372
|
-
* Optional fields that are not set will be set to undefined.
|
|
1373
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1374
|
-
* For the list of reserved names please see:
|
|
1375
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1376
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1377
|
-
* JSPB instance for transitional soy proto support:
|
|
1378
|
-
* http://goto/soy-param-migration
|
|
1379
|
-
* @return {!Object}
|
|
1380
|
-
*/
|
|
1381
|
-
proto.MaterialLanguageDescription.prototype.toObject = function(opt_includeInstance) {
|
|
1382
|
-
return proto.MaterialLanguageDescription.toObject(opt_includeInstance, this);
|
|
1383
|
-
};
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
/**
|
|
1387
|
-
* Static version of the {@see toObject} method.
|
|
1388
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1389
|
-
* the JSPB instance for transitional soy proto support:
|
|
1390
|
-
* http://goto/soy-param-migration
|
|
1391
|
-
* @param {!proto.MaterialLanguageDescription} msg The msg instance to transform.
|
|
1392
|
-
* @return {!Object}
|
|
1393
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1394
|
-
*/
|
|
1395
|
-
proto.MaterialLanguageDescription.toObject = function(includeInstance, msg) {
|
|
1396
|
-
var f, obj = {
|
|
1397
|
-
language: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1398
|
-
title: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
1399
|
-
};
|
|
1400
|
-
|
|
1401
|
-
if (includeInstance) {
|
|
1402
|
-
obj.$jspbMessageInstance = msg;
|
|
1403
|
-
}
|
|
1404
|
-
return obj;
|
|
1405
|
-
};
|
|
1406
|
-
}
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
/**
|
|
1410
|
-
* Deserializes binary data (in protobuf wire format).
|
|
1411
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1412
|
-
* @return {!proto.MaterialLanguageDescription}
|
|
1413
|
-
*/
|
|
1414
|
-
proto.MaterialLanguageDescription.deserializeBinary = function(bytes) {
|
|
1415
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
1416
|
-
var msg = new proto.MaterialLanguageDescription;
|
|
1417
|
-
return proto.MaterialLanguageDescription.deserializeBinaryFromReader(msg, reader);
|
|
1418
|
-
};
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
/**
|
|
1422
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
1423
|
-
* given reader into the given message object.
|
|
1424
|
-
* @param {!proto.MaterialLanguageDescription} msg The message object to deserialize into.
|
|
1425
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1426
|
-
* @return {!proto.MaterialLanguageDescription}
|
|
1427
|
-
*/
|
|
1428
|
-
proto.MaterialLanguageDescription.deserializeBinaryFromReader = function(msg, reader) {
|
|
1429
|
-
while (reader.nextField()) {
|
|
1430
|
-
if (reader.isEndGroup()) {
|
|
1431
|
-
break;
|
|
1432
|
-
}
|
|
1433
|
-
var field = reader.getFieldNumber();
|
|
1434
|
-
switch (field) {
|
|
1435
|
-
case 1:
|
|
1436
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1437
|
-
msg.setLanguage(value);
|
|
1438
|
-
break;
|
|
1439
|
-
case 2:
|
|
1440
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1441
|
-
msg.setTitle(value);
|
|
1442
|
-
break;
|
|
1443
|
-
default:
|
|
1444
|
-
reader.skipField();
|
|
1445
|
-
break;
|
|
1446
|
-
}
|
|
1447
|
-
}
|
|
1448
|
-
return msg;
|
|
1449
|
-
};
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
/**
|
|
1453
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
1454
|
-
* @return {!Uint8Array}
|
|
1455
|
-
*/
|
|
1456
|
-
proto.MaterialLanguageDescription.prototype.serializeBinary = function() {
|
|
1457
|
-
var writer = new jspb.BinaryWriter();
|
|
1458
|
-
proto.MaterialLanguageDescription.serializeBinaryToWriter(this, writer);
|
|
1459
|
-
return writer.getResultBuffer();
|
|
1460
|
-
};
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
/**
|
|
1464
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
1465
|
-
* format), writing to the given BinaryWriter.
|
|
1466
|
-
* @param {!proto.MaterialLanguageDescription} message
|
|
1467
|
-
* @param {!jspb.BinaryWriter} writer
|
|
1468
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1469
|
-
*/
|
|
1470
|
-
proto.MaterialLanguageDescription.serializeBinaryToWriter = function(message, writer) {
|
|
1471
|
-
var f = undefined;
|
|
1472
|
-
f = message.getLanguage();
|
|
1473
|
-
if (f.length > 0) {
|
|
1474
|
-
writer.writeString(
|
|
1475
|
-
1,
|
|
1476
|
-
f
|
|
1477
|
-
);
|
|
1478
|
-
}
|
|
1479
|
-
f = message.getTitle();
|
|
1480
|
-
if (f.length > 0) {
|
|
1481
|
-
writer.writeString(
|
|
1482
|
-
2,
|
|
1483
|
-
f
|
|
1484
|
-
);
|
|
1485
|
-
}
|
|
1486
|
-
};
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
/**
|
|
1490
|
-
* optional string language = 1;
|
|
1491
|
-
* @return {string}
|
|
1492
|
-
*/
|
|
1493
|
-
proto.MaterialLanguageDescription.prototype.getLanguage = function() {
|
|
1494
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1495
|
-
};
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
/**
|
|
1499
|
-
* @param {string} value
|
|
1500
|
-
* @return {!proto.MaterialLanguageDescription} returns this
|
|
1501
|
-
*/
|
|
1502
|
-
proto.MaterialLanguageDescription.prototype.setLanguage = function(value) {
|
|
1503
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1504
|
-
};
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
/**
|
|
1508
|
-
* optional string title = 2;
|
|
1509
|
-
* @return {string}
|
|
1510
|
-
*/
|
|
1511
|
-
proto.MaterialLanguageDescription.prototype.getTitle = function() {
|
|
1512
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1513
|
-
};
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
/**
|
|
1517
|
-
* @param {string} value
|
|
1518
|
-
* @return {!proto.MaterialLanguageDescription} returns this
|
|
1519
|
-
*/
|
|
1520
|
-
proto.MaterialLanguageDescription.prototype.setTitle = function(value) {
|
|
1521
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1522
|
-
};
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1529
|
-
/**
|
|
1530
|
-
* Creates an object representation of this proto.
|
|
1531
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1532
|
-
* Optional fields that are not set will be set to undefined.
|
|
1533
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1534
|
-
* For the list of reserved names please see:
|
|
1535
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1536
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1537
|
-
* JSPB instance for transitional soy proto support:
|
|
1538
|
-
* http://goto/soy-param-migration
|
|
1539
|
-
* @return {!Object}
|
|
1540
|
-
*/
|
|
1541
|
-
proto.MaterialUOM.prototype.toObject = function(opt_includeInstance) {
|
|
1542
|
-
return proto.MaterialUOM.toObject(opt_includeInstance, this);
|
|
1543
|
-
};
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
/**
|
|
1547
|
-
* Static version of the {@see toObject} method.
|
|
1548
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1549
|
-
* the JSPB instance for transitional soy proto support:
|
|
1550
|
-
* http://goto/soy-param-migration
|
|
1551
|
-
* @param {!proto.MaterialUOM} msg The msg instance to transform.
|
|
1552
|
-
* @return {!Object}
|
|
1553
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1554
|
-
*/
|
|
1555
|
-
proto.MaterialUOM.toObject = function(includeInstance, msg) {
|
|
1556
|
-
var f, obj = {
|
|
1557
|
-
materialId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
1558
|
-
uomId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
1559
|
-
unitConversion: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
1560
|
-
unit: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
1561
|
-
uomReferencesId: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
1562
|
-
};
|
|
1563
|
-
|
|
1564
|
-
if (includeInstance) {
|
|
1565
|
-
obj.$jspbMessageInstance = msg;
|
|
1566
|
-
}
|
|
1567
|
-
return obj;
|
|
1568
|
-
};
|
|
1569
|
-
}
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
/**
|
|
1573
|
-
* Deserializes binary data (in protobuf wire format).
|
|
1574
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1575
|
-
* @return {!proto.MaterialUOM}
|
|
1576
|
-
*/
|
|
1577
|
-
proto.MaterialUOM.deserializeBinary = function(bytes) {
|
|
1578
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
1579
|
-
var msg = new proto.MaterialUOM;
|
|
1580
|
-
return proto.MaterialUOM.deserializeBinaryFromReader(msg, reader);
|
|
1581
|
-
};
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
/**
|
|
1585
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
1586
|
-
* given reader into the given message object.
|
|
1587
|
-
* @param {!proto.MaterialUOM} msg The message object to deserialize into.
|
|
1588
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1589
|
-
* @return {!proto.MaterialUOM}
|
|
1590
|
-
*/
|
|
1591
|
-
proto.MaterialUOM.deserializeBinaryFromReader = function(msg, reader) {
|
|
1592
|
-
while (reader.nextField()) {
|
|
1593
|
-
if (reader.isEndGroup()) {
|
|
1594
|
-
break;
|
|
1595
|
-
}
|
|
1596
|
-
var field = reader.getFieldNumber();
|
|
1597
|
-
switch (field) {
|
|
1598
|
-
case 1:
|
|
1599
|
-
var value = /** @type {number} */ (reader.readInt64());
|
|
1600
|
-
msg.setMaterialId(value);
|
|
1601
|
-
break;
|
|
1602
|
-
case 2:
|
|
1603
|
-
var value = /** @type {number} */ (reader.readInt64());
|
|
1604
|
-
msg.setUomId(value);
|
|
1605
|
-
break;
|
|
1606
|
-
case 3:
|
|
1607
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1608
|
-
msg.setUnitConversion(value);
|
|
1609
|
-
break;
|
|
1610
|
-
case 4:
|
|
1611
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1612
|
-
msg.setUnit(value);
|
|
1613
|
-
break;
|
|
1614
|
-
case 5:
|
|
1615
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1616
|
-
msg.setUomReferencesId(value);
|
|
1617
|
-
break;
|
|
1618
|
-
default:
|
|
1619
|
-
reader.skipField();
|
|
1620
|
-
break;
|
|
1621
|
-
}
|
|
1622
|
-
}
|
|
1623
|
-
return msg;
|
|
1624
|
-
};
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
/**
|
|
1628
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
1629
|
-
* @return {!Uint8Array}
|
|
1630
|
-
*/
|
|
1631
|
-
proto.MaterialUOM.prototype.serializeBinary = function() {
|
|
1632
|
-
var writer = new jspb.BinaryWriter();
|
|
1633
|
-
proto.MaterialUOM.serializeBinaryToWriter(this, writer);
|
|
1634
|
-
return writer.getResultBuffer();
|
|
1635
|
-
};
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
/**
|
|
1639
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
1640
|
-
* format), writing to the given BinaryWriter.
|
|
1641
|
-
* @param {!proto.MaterialUOM} message
|
|
1642
|
-
* @param {!jspb.BinaryWriter} writer
|
|
1643
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1644
|
-
*/
|
|
1645
|
-
proto.MaterialUOM.serializeBinaryToWriter = function(message, writer) {
|
|
1646
|
-
var f = undefined;
|
|
1647
|
-
f = message.getMaterialId();
|
|
1648
|
-
if (f !== 0) {
|
|
1649
|
-
writer.writeInt64(
|
|
1650
|
-
1,
|
|
1651
|
-
f
|
|
1652
|
-
);
|
|
1653
|
-
}
|
|
1654
|
-
f = message.getUomId();
|
|
1655
|
-
if (f !== 0) {
|
|
1656
|
-
writer.writeInt64(
|
|
1657
|
-
2,
|
|
1658
|
-
f
|
|
1659
|
-
);
|
|
1660
|
-
}
|
|
1661
|
-
f = message.getUnitConversion();
|
|
1662
|
-
if (f.length > 0) {
|
|
1663
|
-
writer.writeString(
|
|
1664
|
-
3,
|
|
1665
|
-
f
|
|
1666
|
-
);
|
|
1667
|
-
}
|
|
1668
|
-
f = message.getUnit();
|
|
1669
|
-
if (f.length > 0) {
|
|
1670
|
-
writer.writeString(
|
|
1671
|
-
4,
|
|
1672
|
-
f
|
|
1673
|
-
);
|
|
1674
|
-
}
|
|
1675
|
-
f = message.getUomReferencesId();
|
|
1676
|
-
if (f.length > 0) {
|
|
1677
|
-
writer.writeString(
|
|
1678
|
-
5,
|
|
1679
|
-
f
|
|
1680
|
-
);
|
|
1681
|
-
}
|
|
1682
|
-
};
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
/**
|
|
1686
|
-
* optional int64 material_id = 1;
|
|
1687
|
-
* @return {number}
|
|
1688
|
-
*/
|
|
1689
|
-
proto.MaterialUOM.prototype.getMaterialId = function() {
|
|
1690
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
1691
|
-
};
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
/**
|
|
1695
|
-
* @param {number} value
|
|
1696
|
-
* @return {!proto.MaterialUOM} returns this
|
|
1697
|
-
*/
|
|
1698
|
-
proto.MaterialUOM.prototype.setMaterialId = function(value) {
|
|
1699
|
-
return jspb.Message.setProto3IntField(this, 1, value);
|
|
1700
|
-
};
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
/**
|
|
1704
|
-
* optional int64 uom_id = 2;
|
|
1705
|
-
* @return {number}
|
|
1706
|
-
*/
|
|
1707
|
-
proto.MaterialUOM.prototype.getUomId = function() {
|
|
1708
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1709
|
-
};
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
/**
|
|
1713
|
-
* @param {number} value
|
|
1714
|
-
* @return {!proto.MaterialUOM} returns this
|
|
1715
|
-
*/
|
|
1716
|
-
proto.MaterialUOM.prototype.setUomId = function(value) {
|
|
1717
|
-
return jspb.Message.setProto3IntField(this, 2, value);
|
|
1718
|
-
};
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
/**
|
|
1722
|
-
* optional string unit_conversion = 3;
|
|
1723
|
-
* @return {string}
|
|
1724
|
-
*/
|
|
1725
|
-
proto.MaterialUOM.prototype.getUnitConversion = function() {
|
|
1726
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1727
|
-
};
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
/**
|
|
1731
|
-
* @param {string} value
|
|
1732
|
-
* @return {!proto.MaterialUOM} returns this
|
|
1733
|
-
*/
|
|
1734
|
-
proto.MaterialUOM.prototype.setUnitConversion = function(value) {
|
|
1735
|
-
return jspb.Message.setProto3StringField(this, 3, value);
|
|
1736
|
-
};
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
/**
|
|
1740
|
-
* optional string unit = 4;
|
|
1741
|
-
* @return {string}
|
|
1742
|
-
*/
|
|
1743
|
-
proto.MaterialUOM.prototype.getUnit = function() {
|
|
1744
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
1745
|
-
};
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
/**
|
|
1749
|
-
* @param {string} value
|
|
1750
|
-
* @return {!proto.MaterialUOM} returns this
|
|
1751
|
-
*/
|
|
1752
|
-
proto.MaterialUOM.prototype.setUnit = function(value) {
|
|
1753
|
-
return jspb.Message.setProto3StringField(this, 4, value);
|
|
1754
|
-
};
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
/**
|
|
1758
|
-
* optional string uom_references_id = 5;
|
|
1759
|
-
* @return {string}
|
|
1760
|
-
*/
|
|
1761
|
-
proto.MaterialUOM.prototype.getUomReferencesId = function() {
|
|
1762
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
1763
|
-
};
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
/**
|
|
1767
|
-
* @param {string} value
|
|
1768
|
-
* @return {!proto.MaterialUOM} returns this
|
|
1769
|
-
*/
|
|
1770
|
-
proto.MaterialUOM.prototype.setUomReferencesId = function(value) {
|
|
1771
|
-
return jspb.Message.setProto3StringField(this, 5, value);
|
|
1772
|
-
};
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1779
|
-
/**
|
|
1780
|
-
* Creates an object representation of this proto.
|
|
1781
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1782
|
-
* Optional fields that are not set will be set to undefined.
|
|
1783
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1784
|
-
* For the list of reserved names please see:
|
|
1785
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1786
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1787
|
-
* JSPB instance for transitional soy proto support:
|
|
1788
|
-
* http://goto/soy-param-migration
|
|
1789
|
-
* @return {!Object}
|
|
1790
|
-
*/
|
|
1791
|
-
proto.MaterialUOMRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1792
|
-
return proto.MaterialUOMRequest.toObject(opt_includeInstance, this);
|
|
1793
|
-
};
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
/**
|
|
1797
|
-
* Static version of the {@see toObject} method.
|
|
1798
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1799
|
-
* the JSPB instance for transitional soy proto support:
|
|
1800
|
-
* http://goto/soy-param-migration
|
|
1801
|
-
* @param {!proto.MaterialUOMRequest} msg The msg instance to transform.
|
|
1802
|
-
* @return {!Object}
|
|
1803
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1804
|
-
*/
|
|
1805
|
-
proto.MaterialUOMRequest.toObject = function(includeInstance, msg) {
|
|
1806
|
-
var f, obj = {
|
|
1807
|
-
uomReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1808
|
-
unitConversion: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
1809
|
-
};
|
|
1810
|
-
|
|
1811
|
-
if (includeInstance) {
|
|
1812
|
-
obj.$jspbMessageInstance = msg;
|
|
1813
|
-
}
|
|
1814
|
-
return obj;
|
|
1815
|
-
};
|
|
1816
|
-
}
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
/**
|
|
1820
|
-
* Deserializes binary data (in protobuf wire format).
|
|
1821
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1822
|
-
* @return {!proto.MaterialUOMRequest}
|
|
1823
|
-
*/
|
|
1824
|
-
proto.MaterialUOMRequest.deserializeBinary = function(bytes) {
|
|
1825
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
1826
|
-
var msg = new proto.MaterialUOMRequest;
|
|
1827
|
-
return proto.MaterialUOMRequest.deserializeBinaryFromReader(msg, reader);
|
|
1828
|
-
};
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
/**
|
|
1832
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
1833
|
-
* given reader into the given message object.
|
|
1834
|
-
* @param {!proto.MaterialUOMRequest} msg The message object to deserialize into.
|
|
1835
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1836
|
-
* @return {!proto.MaterialUOMRequest}
|
|
1837
|
-
*/
|
|
1838
|
-
proto.MaterialUOMRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1839
|
-
while (reader.nextField()) {
|
|
1840
|
-
if (reader.isEndGroup()) {
|
|
1841
|
-
break;
|
|
1842
|
-
}
|
|
1843
|
-
var field = reader.getFieldNumber();
|
|
1844
|
-
switch (field) {
|
|
1845
|
-
case 1:
|
|
1846
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1847
|
-
msg.setUomReferencesId(value);
|
|
1848
|
-
break;
|
|
1849
|
-
case 2:
|
|
1850
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1851
|
-
msg.setUnitConversion(value);
|
|
1852
|
-
break;
|
|
1853
|
-
default:
|
|
1854
|
-
reader.skipField();
|
|
1855
|
-
break;
|
|
1856
|
-
}
|
|
1857
|
-
}
|
|
1858
|
-
return msg;
|
|
1859
|
-
};
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
/**
|
|
1863
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
1864
|
-
* @return {!Uint8Array}
|
|
1865
|
-
*/
|
|
1866
|
-
proto.MaterialUOMRequest.prototype.serializeBinary = function() {
|
|
1867
|
-
var writer = new jspb.BinaryWriter();
|
|
1868
|
-
proto.MaterialUOMRequest.serializeBinaryToWriter(this, writer);
|
|
1869
|
-
return writer.getResultBuffer();
|
|
1870
|
-
};
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
/**
|
|
1874
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
1875
|
-
* format), writing to the given BinaryWriter.
|
|
1876
|
-
* @param {!proto.MaterialUOMRequest} message
|
|
1877
|
-
* @param {!jspb.BinaryWriter} writer
|
|
1878
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1879
|
-
*/
|
|
1880
|
-
proto.MaterialUOMRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1881
|
-
var f = undefined;
|
|
1882
|
-
f = message.getUomReferencesId();
|
|
1883
|
-
if (f.length > 0) {
|
|
1884
|
-
writer.writeString(
|
|
1885
|
-
1,
|
|
1886
|
-
f
|
|
1887
|
-
);
|
|
1888
|
-
}
|
|
1889
|
-
f = message.getUnitConversion();
|
|
1890
|
-
if (f.length > 0) {
|
|
1891
|
-
writer.writeString(
|
|
1892
|
-
2,
|
|
1893
|
-
f
|
|
1894
|
-
);
|
|
1895
|
-
}
|
|
1896
|
-
};
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
/**
|
|
1900
|
-
* optional string uom_references_id = 1;
|
|
1901
|
-
* @return {string}
|
|
1902
|
-
*/
|
|
1903
|
-
proto.MaterialUOMRequest.prototype.getUomReferencesId = function() {
|
|
1904
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1905
|
-
};
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
/**
|
|
1909
|
-
* @param {string} value
|
|
1910
|
-
* @return {!proto.MaterialUOMRequest} returns this
|
|
1911
|
-
*/
|
|
1912
|
-
proto.MaterialUOMRequest.prototype.setUomReferencesId = function(value) {
|
|
1913
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1914
|
-
};
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
/**
|
|
1918
|
-
* optional string unit_conversion = 2;
|
|
1919
|
-
* @return {string}
|
|
1920
|
-
*/
|
|
1921
|
-
proto.MaterialUOMRequest.prototype.getUnitConversion = function() {
|
|
1922
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1923
|
-
};
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
/**
|
|
1927
|
-
* @param {string} value
|
|
1928
|
-
* @return {!proto.MaterialUOMRequest} returns this
|
|
1929
|
-
*/
|
|
1930
|
-
proto.MaterialUOMRequest.prototype.setUnitConversion = function(value) {
|
|
1931
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1932
|
-
};
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
/**
|
|
1937
|
-
* List of repeated fields within this message type.
|
|
1938
|
-
* @private {!Array<number>}
|
|
1939
|
-
* @const
|
|
1940
|
-
*/
|
|
1941
|
-
proto.BaseMaterialRequest.repeatedFields_ = [7,8];
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1946
|
-
/**
|
|
1947
|
-
* Creates an object representation of this proto.
|
|
1948
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1949
|
-
* Optional fields that are not set will be set to undefined.
|
|
1950
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1951
|
-
* For the list of reserved names please see:
|
|
1952
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1953
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1954
|
-
* JSPB instance for transitional soy proto support:
|
|
1955
|
-
* http://goto/soy-param-migration
|
|
1956
|
-
* @return {!Object}
|
|
1957
|
-
*/
|
|
1958
|
-
proto.BaseMaterialRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1959
|
-
return proto.BaseMaterialRequest.toObject(opt_includeInstance, this);
|
|
1960
|
-
};
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
/**
|
|
1964
|
-
* Static version of the {@see toObject} method.
|
|
1965
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1966
|
-
* the JSPB instance for transitional soy proto support:
|
|
1967
|
-
* http://goto/soy-param-migration
|
|
1968
|
-
* @param {!proto.BaseMaterialRequest} msg The msg instance to transform.
|
|
1969
|
-
* @return {!Object}
|
|
1970
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1971
|
-
*/
|
|
1972
|
-
proto.BaseMaterialRequest.toObject = function(includeInstance, msg) {
|
|
1973
|
-
var f, obj = {
|
|
1974
|
-
materialCode: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1975
|
-
materialTypeCodeRef: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1976
|
-
materialDescription: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
1977
|
-
materialCategory: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
1978
|
-
oldProductNumber: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
1979
|
-
materialGroupRef: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
1980
|
-
languageDescriptionList: jspb.Message.toObjectList(msg.getLanguageDescriptionList(),
|
|
1981
|
-
proto.MaterialLanguageDescription.toObject, includeInstance),
|
|
1982
|
-
unitOfMeasureList: jspb.Message.toObjectList(msg.getUnitOfMeasureList(),
|
|
1983
|
-
proto.MaterialUOMRequest.toObject, includeInstance),
|
|
1984
|
-
materialPlantRef: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
1985
|
-
baseUnitOfMeasureRef: jspb.Message.getFieldWithDefault(msg, 10, "")
|
|
1986
|
-
};
|
|
1987
|
-
|
|
1988
|
-
if (includeInstance) {
|
|
1989
|
-
obj.$jspbMessageInstance = msg;
|
|
1990
|
-
}
|
|
1991
|
-
return obj;
|
|
1992
|
-
};
|
|
1993
|
-
}
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
/**
|
|
1997
|
-
* Deserializes binary data (in protobuf wire format).
|
|
1998
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1999
|
-
* @return {!proto.BaseMaterialRequest}
|
|
2000
|
-
*/
|
|
2001
|
-
proto.BaseMaterialRequest.deserializeBinary = function(bytes) {
|
|
2002
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
2003
|
-
var msg = new proto.BaseMaterialRequest;
|
|
2004
|
-
return proto.BaseMaterialRequest.deserializeBinaryFromReader(msg, reader);
|
|
2005
|
-
};
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
/**
|
|
2009
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
2010
|
-
* given reader into the given message object.
|
|
2011
|
-
* @param {!proto.BaseMaterialRequest} msg The message object to deserialize into.
|
|
2012
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2013
|
-
* @return {!proto.BaseMaterialRequest}
|
|
2014
|
-
*/
|
|
2015
|
-
proto.BaseMaterialRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2016
|
-
while (reader.nextField()) {
|
|
2017
|
-
if (reader.isEndGroup()) {
|
|
2018
|
-
break;
|
|
2019
|
-
}
|
|
2020
|
-
var field = reader.getFieldNumber();
|
|
2021
|
-
switch (field) {
|
|
2022
|
-
case 1:
|
|
2023
|
-
var value = /** @type {string} */ (reader.readString());
|
|
2024
|
-
msg.setMaterialCode(value);
|
|
2025
|
-
break;
|
|
2026
|
-
case 2:
|
|
2027
|
-
var value = /** @type {string} */ (reader.readString());
|
|
2028
|
-
msg.setMaterialTypeCodeRef(value);
|
|
2029
|
-
break;
|
|
2030
|
-
case 3:
|
|
2031
|
-
var value = /** @type {string} */ (reader.readString());
|
|
2032
|
-
msg.setMaterialDescription(value);
|
|
2033
|
-
break;
|
|
2034
|
-
case 4:
|
|
2035
|
-
var value = /** @type {string} */ (reader.readString());
|
|
2036
|
-
msg.setMaterialCategory(value);
|
|
2037
|
-
break;
|
|
2038
|
-
case 5:
|
|
2039
|
-
var value = /** @type {string} */ (reader.readString());
|
|
2040
|
-
msg.setOldProductNumber(value);
|
|
2041
|
-
break;
|
|
2042
|
-
case 6:
|
|
2043
|
-
var value = /** @type {string} */ (reader.readString());
|
|
2044
|
-
msg.setMaterialGroupRef(value);
|
|
2045
|
-
break;
|
|
2046
|
-
case 7:
|
|
2047
|
-
var value = new proto.MaterialLanguageDescription;
|
|
2048
|
-
reader.readMessage(value,proto.MaterialLanguageDescription.deserializeBinaryFromReader);
|
|
2049
|
-
msg.addLanguageDescription(value);
|
|
2050
|
-
break;
|
|
2051
|
-
case 8:
|
|
2052
|
-
var value = new proto.MaterialUOMRequest;
|
|
2053
|
-
reader.readMessage(value,proto.MaterialUOMRequest.deserializeBinaryFromReader);
|
|
2054
|
-
msg.addUnitOfMeasure(value);
|
|
2055
|
-
break;
|
|
2056
|
-
case 9:
|
|
2057
|
-
var value = /** @type {string} */ (reader.readString());
|
|
2058
|
-
msg.setMaterialPlantRef(value);
|
|
2059
|
-
break;
|
|
2060
|
-
case 10:
|
|
2061
|
-
var value = /** @type {string} */ (reader.readString());
|
|
2062
|
-
msg.setBaseUnitOfMeasureRef(value);
|
|
2063
|
-
break;
|
|
2064
|
-
default:
|
|
2065
|
-
reader.skipField();
|
|
2066
|
-
break;
|
|
2067
|
-
}
|
|
2068
|
-
}
|
|
2069
|
-
return msg;
|
|
2070
|
-
};
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
/**
|
|
2074
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
2075
|
-
* @return {!Uint8Array}
|
|
2076
|
-
*/
|
|
2077
|
-
proto.BaseMaterialRequest.prototype.serializeBinary = function() {
|
|
2078
|
-
var writer = new jspb.BinaryWriter();
|
|
2079
|
-
proto.BaseMaterialRequest.serializeBinaryToWriter(this, writer);
|
|
2080
|
-
return writer.getResultBuffer();
|
|
2081
|
-
};
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
/**
|
|
2085
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
2086
|
-
* format), writing to the given BinaryWriter.
|
|
2087
|
-
* @param {!proto.BaseMaterialRequest} message
|
|
2088
|
-
* @param {!jspb.BinaryWriter} writer
|
|
2089
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2090
|
-
*/
|
|
2091
|
-
proto.BaseMaterialRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2092
|
-
var f = undefined;
|
|
2093
|
-
f = message.getMaterialCode();
|
|
2094
|
-
if (f.length > 0) {
|
|
2095
|
-
writer.writeString(
|
|
2096
|
-
1,
|
|
2097
|
-
f
|
|
2098
|
-
);
|
|
2099
|
-
}
|
|
2100
|
-
f = message.getMaterialTypeCodeRef();
|
|
2101
|
-
if (f.length > 0) {
|
|
2102
|
-
writer.writeString(
|
|
2103
|
-
2,
|
|
2104
|
-
f
|
|
2105
|
-
);
|
|
2106
|
-
}
|
|
2107
|
-
f = message.getMaterialDescription();
|
|
2108
|
-
if (f.length > 0) {
|
|
2109
|
-
writer.writeString(
|
|
2110
|
-
3,
|
|
2111
|
-
f
|
|
2112
|
-
);
|
|
2113
|
-
}
|
|
2114
|
-
f = message.getMaterialCategory();
|
|
2115
|
-
if (f.length > 0) {
|
|
2116
|
-
writer.writeString(
|
|
2117
|
-
4,
|
|
2118
|
-
f
|
|
2119
|
-
);
|
|
2120
|
-
}
|
|
2121
|
-
f = message.getOldProductNumber();
|
|
2122
|
-
if (f.length > 0) {
|
|
2123
|
-
writer.writeString(
|
|
2124
|
-
5,
|
|
2125
|
-
f
|
|
2126
|
-
);
|
|
2127
|
-
}
|
|
2128
|
-
f = message.getMaterialGroupRef();
|
|
2129
|
-
if (f.length > 0) {
|
|
2130
|
-
writer.writeString(
|
|
2131
|
-
6,
|
|
2132
|
-
f
|
|
2133
|
-
);
|
|
2134
|
-
}
|
|
2135
|
-
f = message.getLanguageDescriptionList();
|
|
2136
|
-
if (f.length > 0) {
|
|
2137
|
-
writer.writeRepeatedMessage(
|
|
2138
|
-
7,
|
|
2139
|
-
f,
|
|
2140
|
-
proto.MaterialLanguageDescription.serializeBinaryToWriter
|
|
2141
|
-
);
|
|
2142
|
-
}
|
|
2143
|
-
f = message.getUnitOfMeasureList();
|
|
2144
|
-
if (f.length > 0) {
|
|
2145
|
-
writer.writeRepeatedMessage(
|
|
2146
|
-
8,
|
|
2147
|
-
f,
|
|
2148
|
-
proto.MaterialUOMRequest.serializeBinaryToWriter
|
|
2149
|
-
);
|
|
2150
|
-
}
|
|
2151
|
-
f = message.getMaterialPlantRef();
|
|
2152
|
-
if (f.length > 0) {
|
|
2153
|
-
writer.writeString(
|
|
2154
|
-
9,
|
|
2155
|
-
f
|
|
2156
|
-
);
|
|
2157
|
-
}
|
|
2158
|
-
f = message.getBaseUnitOfMeasureRef();
|
|
2159
|
-
if (f.length > 0) {
|
|
2160
|
-
writer.writeString(
|
|
2161
|
-
10,
|
|
2162
|
-
f
|
|
2163
|
-
);
|
|
2164
|
-
}
|
|
2165
|
-
};
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
/**
|
|
2169
|
-
* optional string material_code = 1;
|
|
2170
|
-
* @return {string}
|
|
2171
|
-
*/
|
|
2172
|
-
proto.BaseMaterialRequest.prototype.getMaterialCode = function() {
|
|
2173
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2174
|
-
};
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
/**
|
|
2178
|
-
* @param {string} value
|
|
2179
|
-
* @return {!proto.BaseMaterialRequest} returns this
|
|
2180
|
-
*/
|
|
2181
|
-
proto.BaseMaterialRequest.prototype.setMaterialCode = function(value) {
|
|
2182
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2183
|
-
};
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
/**
|
|
2187
|
-
* optional string material_type_code_ref = 2;
|
|
2188
|
-
* @return {string}
|
|
2189
|
-
*/
|
|
2190
|
-
proto.BaseMaterialRequest.prototype.getMaterialTypeCodeRef = function() {
|
|
2191
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2192
|
-
};
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
/**
|
|
2196
|
-
* @param {string} value
|
|
2197
|
-
* @return {!proto.BaseMaterialRequest} returns this
|
|
2198
|
-
*/
|
|
2199
|
-
proto.BaseMaterialRequest.prototype.setMaterialTypeCodeRef = function(value) {
|
|
2200
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
2201
|
-
};
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
/**
|
|
2205
|
-
* optional string material_description = 3;
|
|
2206
|
-
* @return {string}
|
|
2207
|
-
*/
|
|
2208
|
-
proto.BaseMaterialRequest.prototype.getMaterialDescription = function() {
|
|
2209
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
2210
|
-
};
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
/**
|
|
2214
|
-
* @param {string} value
|
|
2215
|
-
* @return {!proto.BaseMaterialRequest} returns this
|
|
2216
|
-
*/
|
|
2217
|
-
proto.BaseMaterialRequest.prototype.setMaterialDescription = function(value) {
|
|
2218
|
-
return jspb.Message.setProto3StringField(this, 3, value);
|
|
2219
|
-
};
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
/**
|
|
2223
|
-
* optional string material_category = 4;
|
|
2224
|
-
* @return {string}
|
|
2225
|
-
*/
|
|
2226
|
-
proto.BaseMaterialRequest.prototype.getMaterialCategory = function() {
|
|
2227
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
2228
|
-
};
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
/**
|
|
2232
|
-
* @param {string} value
|
|
2233
|
-
* @return {!proto.BaseMaterialRequest} returns this
|
|
2234
|
-
*/
|
|
2235
|
-
proto.BaseMaterialRequest.prototype.setMaterialCategory = function(value) {
|
|
2236
|
-
return jspb.Message.setProto3StringField(this, 4, value);
|
|
2237
|
-
};
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
/**
|
|
2241
|
-
* optional string old_product_number = 5;
|
|
2242
|
-
* @return {string}
|
|
2243
|
-
*/
|
|
2244
|
-
proto.BaseMaterialRequest.prototype.getOldProductNumber = function() {
|
|
2245
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
2246
|
-
};
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
/**
|
|
2250
|
-
* @param {string} value
|
|
2251
|
-
* @return {!proto.BaseMaterialRequest} returns this
|
|
2252
|
-
*/
|
|
2253
|
-
proto.BaseMaterialRequest.prototype.setOldProductNumber = function(value) {
|
|
2254
|
-
return jspb.Message.setProto3StringField(this, 5, value);
|
|
2255
|
-
};
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
/**
|
|
2259
|
-
* optional string material_group_ref = 6;
|
|
2260
|
-
* @return {string}
|
|
2261
|
-
*/
|
|
2262
|
-
proto.BaseMaterialRequest.prototype.getMaterialGroupRef = function() {
|
|
2263
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
2264
|
-
};
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
/**
|
|
2268
|
-
* @param {string} value
|
|
2269
|
-
* @return {!proto.BaseMaterialRequest} returns this
|
|
2270
|
-
*/
|
|
2271
|
-
proto.BaseMaterialRequest.prototype.setMaterialGroupRef = function(value) {
|
|
2272
|
-
return jspb.Message.setProto3StringField(this, 6, value);
|
|
2273
|
-
};
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
/**
|
|
2277
|
-
* repeated MaterialLanguageDescription language_description = 7;
|
|
2278
|
-
* @return {!Array<!proto.MaterialLanguageDescription>}
|
|
2279
|
-
*/
|
|
2280
|
-
proto.BaseMaterialRequest.prototype.getLanguageDescriptionList = function() {
|
|
2281
|
-
return /** @type{!Array<!proto.MaterialLanguageDescription>} */ (
|
|
2282
|
-
jspb.Message.getRepeatedWrapperField(this, proto.MaterialLanguageDescription, 7));
|
|
2283
|
-
};
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
/**
|
|
2287
|
-
* @param {!Array<!proto.MaterialLanguageDescription>} value
|
|
2288
|
-
* @return {!proto.BaseMaterialRequest} returns this
|
|
2289
|
-
*/
|
|
2290
|
-
proto.BaseMaterialRequest.prototype.setLanguageDescriptionList = function(value) {
|
|
2291
|
-
return jspb.Message.setRepeatedWrapperField(this, 7, value);
|
|
2292
|
-
};
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
/**
|
|
2296
|
-
* @param {!proto.MaterialLanguageDescription=} opt_value
|
|
2297
|
-
* @param {number=} opt_index
|
|
2298
|
-
* @return {!proto.MaterialLanguageDescription}
|
|
2299
|
-
*/
|
|
2300
|
-
proto.BaseMaterialRequest.prototype.addLanguageDescription = function(opt_value, opt_index) {
|
|
2301
|
-
return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.MaterialLanguageDescription, opt_index);
|
|
2302
|
-
};
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
/**
|
|
2306
|
-
* Clears the list making it empty but non-null.
|
|
2307
|
-
* @return {!proto.BaseMaterialRequest} returns this
|
|
2308
|
-
*/
|
|
2309
|
-
proto.BaseMaterialRequest.prototype.clearLanguageDescriptionList = function() {
|
|
2310
|
-
return this.setLanguageDescriptionList([]);
|
|
2311
|
-
};
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
/**
|
|
2315
|
-
* repeated MaterialUOMRequest unit_of_measure = 8;
|
|
2316
|
-
* @return {!Array<!proto.MaterialUOMRequest>}
|
|
2317
|
-
*/
|
|
2318
|
-
proto.BaseMaterialRequest.prototype.getUnitOfMeasureList = function() {
|
|
2319
|
-
return /** @type{!Array<!proto.MaterialUOMRequest>} */ (
|
|
2320
|
-
jspb.Message.getRepeatedWrapperField(this, proto.MaterialUOMRequest, 8));
|
|
2321
|
-
};
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
/**
|
|
2325
|
-
* @param {!Array<!proto.MaterialUOMRequest>} value
|
|
2326
|
-
* @return {!proto.BaseMaterialRequest} returns this
|
|
2327
|
-
*/
|
|
2328
|
-
proto.BaseMaterialRequest.prototype.setUnitOfMeasureList = function(value) {
|
|
2329
|
-
return jspb.Message.setRepeatedWrapperField(this, 8, value);
|
|
2330
|
-
};
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
/**
|
|
2334
|
-
* @param {!proto.MaterialUOMRequest=} opt_value
|
|
2335
|
-
* @param {number=} opt_index
|
|
2336
|
-
* @return {!proto.MaterialUOMRequest}
|
|
2337
|
-
*/
|
|
2338
|
-
proto.BaseMaterialRequest.prototype.addUnitOfMeasure = function(opt_value, opt_index) {
|
|
2339
|
-
return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.MaterialUOMRequest, opt_index);
|
|
2340
|
-
};
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
/**
|
|
2344
|
-
* Clears the list making it empty but non-null.
|
|
2345
|
-
* @return {!proto.BaseMaterialRequest} returns this
|
|
2346
|
-
*/
|
|
2347
|
-
proto.BaseMaterialRequest.prototype.clearUnitOfMeasureList = function() {
|
|
2348
|
-
return this.setUnitOfMeasureList([]);
|
|
2349
|
-
};
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
/**
|
|
2353
|
-
* optional string material_plant_ref = 9;
|
|
2354
|
-
* @return {string}
|
|
2355
|
-
*/
|
|
2356
|
-
proto.BaseMaterialRequest.prototype.getMaterialPlantRef = function() {
|
|
2357
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
2358
|
-
};
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
/**
|
|
2362
|
-
* @param {string} value
|
|
2363
|
-
* @return {!proto.BaseMaterialRequest} returns this
|
|
2364
|
-
*/
|
|
2365
|
-
proto.BaseMaterialRequest.prototype.setMaterialPlantRef = function(value) {
|
|
2366
|
-
return jspb.Message.setProto3StringField(this, 9, value);
|
|
2367
|
-
};
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
/**
|
|
2371
|
-
* optional string base_unit_of_measure_ref = 10;
|
|
2372
|
-
* @return {string}
|
|
2373
|
-
*/
|
|
2374
|
-
proto.BaseMaterialRequest.prototype.getBaseUnitOfMeasureRef = function() {
|
|
2375
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
2376
|
-
};
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
/**
|
|
2380
|
-
* @param {string} value
|
|
2381
|
-
* @return {!proto.BaseMaterialRequest} returns this
|
|
2382
|
-
*/
|
|
2383
|
-
proto.BaseMaterialRequest.prototype.setBaseUnitOfMeasureRef = function(value) {
|
|
2384
|
-
return jspb.Message.setProto3StringField(this, 10, value);
|
|
2385
|
-
};
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2392
|
-
/**
|
|
2393
|
-
* Creates an object representation of this proto.
|
|
2394
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2395
|
-
* Optional fields that are not set will be set to undefined.
|
|
2396
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2397
|
-
* For the list of reserved names please see:
|
|
2398
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2399
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2400
|
-
* JSPB instance for transitional soy proto support:
|
|
2401
|
-
* http://goto/soy-param-migration
|
|
2402
|
-
* @return {!Object}
|
|
2403
|
-
*/
|
|
2404
|
-
proto.CreateMaterialRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2405
|
-
return proto.CreateMaterialRequest.toObject(opt_includeInstance, this);
|
|
2406
|
-
};
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
/**
|
|
2410
|
-
* Static version of the {@see toObject} method.
|
|
2411
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2412
|
-
* the JSPB instance for transitional soy proto support:
|
|
2413
|
-
* http://goto/soy-param-migration
|
|
2414
|
-
* @param {!proto.CreateMaterialRequest} msg The msg instance to transform.
|
|
2415
|
-
* @return {!Object}
|
|
2416
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2417
|
-
*/
|
|
2418
|
-
proto.CreateMaterialRequest.toObject = function(includeInstance, msg) {
|
|
2419
|
-
var f, obj = {
|
|
2420
|
-
baseMaterial: (f = msg.getBaseMaterial()) && proto.BaseMaterialRequest.toObject(includeInstance, f)
|
|
2421
|
-
};
|
|
2422
|
-
|
|
2423
|
-
if (includeInstance) {
|
|
2424
|
-
obj.$jspbMessageInstance = msg;
|
|
2425
|
-
}
|
|
2426
|
-
return obj;
|
|
2427
|
-
};
|
|
2428
|
-
}
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
/**
|
|
2432
|
-
* Deserializes binary data (in protobuf wire format).
|
|
2433
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2434
|
-
* @return {!proto.CreateMaterialRequest}
|
|
2435
|
-
*/
|
|
2436
|
-
proto.CreateMaterialRequest.deserializeBinary = function(bytes) {
|
|
2437
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
2438
|
-
var msg = new proto.CreateMaterialRequest;
|
|
2439
|
-
return proto.CreateMaterialRequest.deserializeBinaryFromReader(msg, reader);
|
|
2440
|
-
};
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
/**
|
|
2444
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
2445
|
-
* given reader into the given message object.
|
|
2446
|
-
* @param {!proto.CreateMaterialRequest} msg The message object to deserialize into.
|
|
2447
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2448
|
-
* @return {!proto.CreateMaterialRequest}
|
|
2449
|
-
*/
|
|
2450
|
-
proto.CreateMaterialRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2451
|
-
while (reader.nextField()) {
|
|
2452
|
-
if (reader.isEndGroup()) {
|
|
2453
|
-
break;
|
|
2454
|
-
}
|
|
2455
|
-
var field = reader.getFieldNumber();
|
|
2456
|
-
switch (field) {
|
|
2457
|
-
case 1:
|
|
2458
|
-
var value = new proto.BaseMaterialRequest;
|
|
2459
|
-
reader.readMessage(value,proto.BaseMaterialRequest.deserializeBinaryFromReader);
|
|
2460
|
-
msg.setBaseMaterial(value);
|
|
2461
|
-
break;
|
|
2462
|
-
default:
|
|
2463
|
-
reader.skipField();
|
|
2464
|
-
break;
|
|
2465
|
-
}
|
|
2466
|
-
}
|
|
2467
|
-
return msg;
|
|
2468
|
-
};
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
/**
|
|
2472
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
2473
|
-
* @return {!Uint8Array}
|
|
2474
|
-
*/
|
|
2475
|
-
proto.CreateMaterialRequest.prototype.serializeBinary = function() {
|
|
2476
|
-
var writer = new jspb.BinaryWriter();
|
|
2477
|
-
proto.CreateMaterialRequest.serializeBinaryToWriter(this, writer);
|
|
2478
|
-
return writer.getResultBuffer();
|
|
2479
|
-
};
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
/**
|
|
2483
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
2484
|
-
* format), writing to the given BinaryWriter.
|
|
2485
|
-
* @param {!proto.CreateMaterialRequest} message
|
|
2486
|
-
* @param {!jspb.BinaryWriter} writer
|
|
2487
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2488
|
-
*/
|
|
2489
|
-
proto.CreateMaterialRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2490
|
-
var f = undefined;
|
|
2491
|
-
f = message.getBaseMaterial();
|
|
2492
|
-
if (f != null) {
|
|
2493
|
-
writer.writeMessage(
|
|
2494
|
-
1,
|
|
2495
|
-
f,
|
|
2496
|
-
proto.BaseMaterialRequest.serializeBinaryToWriter
|
|
2497
|
-
);
|
|
2498
|
-
}
|
|
2499
|
-
};
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
/**
|
|
2503
|
-
* optional BaseMaterialRequest base_material = 1;
|
|
2504
|
-
* @return {?proto.BaseMaterialRequest}
|
|
2505
|
-
*/
|
|
2506
|
-
proto.CreateMaterialRequest.prototype.getBaseMaterial = function() {
|
|
2507
|
-
return /** @type{?proto.BaseMaterialRequest} */ (
|
|
2508
|
-
jspb.Message.getWrapperField(this, proto.BaseMaterialRequest, 1));
|
|
2509
|
-
};
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
/**
|
|
2513
|
-
* @param {?proto.BaseMaterialRequest|undefined} value
|
|
2514
|
-
* @return {!proto.CreateMaterialRequest} returns this
|
|
2515
|
-
*/
|
|
2516
|
-
proto.CreateMaterialRequest.prototype.setBaseMaterial = function(value) {
|
|
2517
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
2518
|
-
};
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
/**
|
|
2522
|
-
* Clears the message field making it undefined.
|
|
2523
|
-
* @return {!proto.CreateMaterialRequest} returns this
|
|
2524
|
-
*/
|
|
2525
|
-
proto.CreateMaterialRequest.prototype.clearBaseMaterial = function() {
|
|
2526
|
-
return this.setBaseMaterial(undefined);
|
|
2527
|
-
};
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
/**
|
|
2531
|
-
* Returns whether this field is set.
|
|
2532
|
-
* @return {boolean}
|
|
2533
|
-
*/
|
|
2534
|
-
proto.CreateMaterialRequest.prototype.hasBaseMaterial = function() {
|
|
2535
|
-
return jspb.Message.getField(this, 1) != null;
|
|
2536
|
-
};
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2543
|
-
/**
|
|
2544
|
-
* Creates an object representation of this proto.
|
|
2545
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2546
|
-
* Optional fields that are not set will be set to undefined.
|
|
2547
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2548
|
-
* For the list of reserved names please see:
|
|
2549
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2550
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2551
|
-
* JSPB instance for transitional soy proto support:
|
|
2552
|
-
* http://goto/soy-param-migration
|
|
2553
|
-
* @return {!Object}
|
|
2554
|
-
*/
|
|
2555
|
-
proto.UpdateMaterialRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2556
|
-
return proto.UpdateMaterialRequest.toObject(opt_includeInstance, this);
|
|
2557
|
-
};
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
/**
|
|
2561
|
-
* Static version of the {@see toObject} method.
|
|
2562
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2563
|
-
* the JSPB instance for transitional soy proto support:
|
|
2564
|
-
* http://goto/soy-param-migration
|
|
2565
|
-
* @param {!proto.UpdateMaterialRequest} msg The msg instance to transform.
|
|
2566
|
-
* @return {!Object}
|
|
2567
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2568
|
-
*/
|
|
2569
|
-
proto.UpdateMaterialRequest.toObject = function(includeInstance, msg) {
|
|
2570
|
-
var f, obj = {
|
|
2571
|
-
referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2572
|
-
baseMaterial: (f = msg.getBaseMaterial()) && proto.BaseMaterialRequest.toObject(includeInstance, f)
|
|
2573
|
-
};
|
|
2574
|
-
|
|
2575
|
-
if (includeInstance) {
|
|
2576
|
-
obj.$jspbMessageInstance = msg;
|
|
2577
|
-
}
|
|
2578
|
-
return obj;
|
|
2579
|
-
};
|
|
2580
|
-
}
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
/**
|
|
2584
|
-
* Deserializes binary data (in protobuf wire format).
|
|
2585
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2586
|
-
* @return {!proto.UpdateMaterialRequest}
|
|
2587
|
-
*/
|
|
2588
|
-
proto.UpdateMaterialRequest.deserializeBinary = function(bytes) {
|
|
2589
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
2590
|
-
var msg = new proto.UpdateMaterialRequest;
|
|
2591
|
-
return proto.UpdateMaterialRequest.deserializeBinaryFromReader(msg, reader);
|
|
2592
|
-
};
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
/**
|
|
2596
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
2597
|
-
* given reader into the given message object.
|
|
2598
|
-
* @param {!proto.UpdateMaterialRequest} msg The message object to deserialize into.
|
|
2599
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2600
|
-
* @return {!proto.UpdateMaterialRequest}
|
|
2601
|
-
*/
|
|
2602
|
-
proto.UpdateMaterialRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2603
|
-
while (reader.nextField()) {
|
|
2604
|
-
if (reader.isEndGroup()) {
|
|
2605
|
-
break;
|
|
2606
|
-
}
|
|
2607
|
-
var field = reader.getFieldNumber();
|
|
2608
|
-
switch (field) {
|
|
2609
|
-
case 1:
|
|
2610
|
-
var value = /** @type {string} */ (reader.readString());
|
|
2611
|
-
msg.setReferencesId(value);
|
|
2612
|
-
break;
|
|
2613
|
-
case 2:
|
|
2614
|
-
var value = new proto.BaseMaterialRequest;
|
|
2615
|
-
reader.readMessage(value,proto.BaseMaterialRequest.deserializeBinaryFromReader);
|
|
2616
|
-
msg.setBaseMaterial(value);
|
|
2617
|
-
break;
|
|
2618
|
-
default:
|
|
2619
|
-
reader.skipField();
|
|
2620
|
-
break;
|
|
2621
|
-
}
|
|
2622
|
-
}
|
|
2623
|
-
return msg;
|
|
2624
|
-
};
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
/**
|
|
2628
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
2629
|
-
* @return {!Uint8Array}
|
|
2630
|
-
*/
|
|
2631
|
-
proto.UpdateMaterialRequest.prototype.serializeBinary = function() {
|
|
2632
|
-
var writer = new jspb.BinaryWriter();
|
|
2633
|
-
proto.UpdateMaterialRequest.serializeBinaryToWriter(this, writer);
|
|
2634
|
-
return writer.getResultBuffer();
|
|
2635
|
-
};
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
/**
|
|
2639
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
2640
|
-
* format), writing to the given BinaryWriter.
|
|
2641
|
-
* @param {!proto.UpdateMaterialRequest} message
|
|
2642
|
-
* @param {!jspb.BinaryWriter} writer
|
|
2643
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2644
|
-
*/
|
|
2645
|
-
proto.UpdateMaterialRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2646
|
-
var f = undefined;
|
|
2647
|
-
f = message.getReferencesId();
|
|
2648
|
-
if (f.length > 0) {
|
|
2649
|
-
writer.writeString(
|
|
2650
|
-
1,
|
|
2651
|
-
f
|
|
2652
|
-
);
|
|
2653
|
-
}
|
|
2654
|
-
f = message.getBaseMaterial();
|
|
2655
|
-
if (f != null) {
|
|
2656
|
-
writer.writeMessage(
|
|
2657
|
-
2,
|
|
2658
|
-
f,
|
|
2659
|
-
proto.BaseMaterialRequest.serializeBinaryToWriter
|
|
2660
|
-
);
|
|
2661
|
-
}
|
|
2662
|
-
};
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
/**
|
|
2666
|
-
* optional string references_id = 1;
|
|
2667
|
-
* @return {string}
|
|
2668
|
-
*/
|
|
2669
|
-
proto.UpdateMaterialRequest.prototype.getReferencesId = function() {
|
|
2670
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2671
|
-
};
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
/**
|
|
2675
|
-
* @param {string} value
|
|
2676
|
-
* @return {!proto.UpdateMaterialRequest} returns this
|
|
2677
|
-
*/
|
|
2678
|
-
proto.UpdateMaterialRequest.prototype.setReferencesId = function(value) {
|
|
2679
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2680
|
-
};
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
/**
|
|
2684
|
-
* optional BaseMaterialRequest base_material = 2;
|
|
2685
|
-
* @return {?proto.BaseMaterialRequest}
|
|
2686
|
-
*/
|
|
2687
|
-
proto.UpdateMaterialRequest.prototype.getBaseMaterial = function() {
|
|
2688
|
-
return /** @type{?proto.BaseMaterialRequest} */ (
|
|
2689
|
-
jspb.Message.getWrapperField(this, proto.BaseMaterialRequest, 2));
|
|
2690
|
-
};
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
/**
|
|
2694
|
-
* @param {?proto.BaseMaterialRequest|undefined} value
|
|
2695
|
-
* @return {!proto.UpdateMaterialRequest} returns this
|
|
2696
|
-
*/
|
|
2697
|
-
proto.UpdateMaterialRequest.prototype.setBaseMaterial = function(value) {
|
|
2698
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
2699
|
-
};
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
/**
|
|
2703
|
-
* Clears the message field making it undefined.
|
|
2704
|
-
* @return {!proto.UpdateMaterialRequest} returns this
|
|
2705
|
-
*/
|
|
2706
|
-
proto.UpdateMaterialRequest.prototype.clearBaseMaterial = function() {
|
|
2707
|
-
return this.setBaseMaterial(undefined);
|
|
2708
|
-
};
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
/**
|
|
2712
|
-
* Returns whether this field is set.
|
|
2713
|
-
* @return {boolean}
|
|
2714
|
-
*/
|
|
2715
|
-
proto.UpdateMaterialRequest.prototype.hasBaseMaterial = function() {
|
|
2716
|
-
return jspb.Message.getField(this, 2) != null;
|
|
2717
|
-
};
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
/**
|
|
2722
|
-
* List of repeated fields within this message type.
|
|
2723
|
-
* @private {!Array<number>}
|
|
2724
|
-
* @const
|
|
2725
|
-
*/
|
|
2726
|
-
proto.DeleteMaterialRequest.repeatedFields_ = [1];
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2731
|
-
/**
|
|
2732
|
-
* Creates an object representation of this proto.
|
|
2733
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2734
|
-
* Optional fields that are not set will be set to undefined.
|
|
2735
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2736
|
-
* For the list of reserved names please see:
|
|
2737
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2738
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2739
|
-
* JSPB instance for transitional soy proto support:
|
|
2740
|
-
* http://goto/soy-param-migration
|
|
2741
|
-
* @return {!Object}
|
|
2742
|
-
*/
|
|
2743
|
-
proto.DeleteMaterialRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2744
|
-
return proto.DeleteMaterialRequest.toObject(opt_includeInstance, this);
|
|
2745
|
-
};
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
/**
|
|
2749
|
-
* Static version of the {@see toObject} method.
|
|
2750
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2751
|
-
* the JSPB instance for transitional soy proto support:
|
|
2752
|
-
* http://goto/soy-param-migration
|
|
2753
|
-
* @param {!proto.DeleteMaterialRequest} msg The msg instance to transform.
|
|
2754
|
-
* @return {!Object}
|
|
2755
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2756
|
-
*/
|
|
2757
|
-
proto.DeleteMaterialRequest.toObject = function(includeInstance, msg) {
|
|
2758
|
-
var f, obj = {
|
|
2759
|
-
referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
|
2760
|
-
};
|
|
2761
|
-
|
|
2762
|
-
if (includeInstance) {
|
|
2763
|
-
obj.$jspbMessageInstance = msg;
|
|
2764
|
-
}
|
|
2765
|
-
return obj;
|
|
2766
|
-
};
|
|
2767
|
-
}
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
/**
|
|
2771
|
-
* Deserializes binary data (in protobuf wire format).
|
|
2772
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2773
|
-
* @return {!proto.DeleteMaterialRequest}
|
|
2774
|
-
*/
|
|
2775
|
-
proto.DeleteMaterialRequest.deserializeBinary = function(bytes) {
|
|
2776
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
2777
|
-
var msg = new proto.DeleteMaterialRequest;
|
|
2778
|
-
return proto.DeleteMaterialRequest.deserializeBinaryFromReader(msg, reader);
|
|
2779
|
-
};
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
/**
|
|
2783
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
2784
|
-
* given reader into the given message object.
|
|
2785
|
-
* @param {!proto.DeleteMaterialRequest} msg The message object to deserialize into.
|
|
2786
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2787
|
-
* @return {!proto.DeleteMaterialRequest}
|
|
2788
|
-
*/
|
|
2789
|
-
proto.DeleteMaterialRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2790
|
-
while (reader.nextField()) {
|
|
2791
|
-
if (reader.isEndGroup()) {
|
|
2792
|
-
break;
|
|
2793
|
-
}
|
|
2794
|
-
var field = reader.getFieldNumber();
|
|
2795
|
-
switch (field) {
|
|
2796
|
-
case 1:
|
|
2797
|
-
var value = /** @type {string} */ (reader.readString());
|
|
2798
|
-
msg.addReferenceIds(value);
|
|
2799
|
-
break;
|
|
2800
|
-
default:
|
|
2801
|
-
reader.skipField();
|
|
2802
|
-
break;
|
|
2803
|
-
}
|
|
2804
|
-
}
|
|
2805
|
-
return msg;
|
|
2806
|
-
};
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
/**
|
|
2810
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
2811
|
-
* @return {!Uint8Array}
|
|
2812
|
-
*/
|
|
2813
|
-
proto.DeleteMaterialRequest.prototype.serializeBinary = function() {
|
|
2814
|
-
var writer = new jspb.BinaryWriter();
|
|
2815
|
-
proto.DeleteMaterialRequest.serializeBinaryToWriter(this, writer);
|
|
2816
|
-
return writer.getResultBuffer();
|
|
2817
|
-
};
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
/**
|
|
2821
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
2822
|
-
* format), writing to the given BinaryWriter.
|
|
2823
|
-
* @param {!proto.DeleteMaterialRequest} message
|
|
2824
|
-
* @param {!jspb.BinaryWriter} writer
|
|
2825
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2826
|
-
*/
|
|
2827
|
-
proto.DeleteMaterialRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2828
|
-
var f = undefined;
|
|
2829
|
-
f = message.getReferenceIdsList();
|
|
2830
|
-
if (f.length > 0) {
|
|
2831
|
-
writer.writeRepeatedString(
|
|
2832
|
-
1,
|
|
2833
|
-
f
|
|
2834
|
-
);
|
|
2835
|
-
}
|
|
2836
|
-
};
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
/**
|
|
2840
|
-
* repeated string reference_ids = 1;
|
|
2841
|
-
* @return {!Array<string>}
|
|
2842
|
-
*/
|
|
2843
|
-
proto.DeleteMaterialRequest.prototype.getReferenceIdsList = function() {
|
|
2844
|
-
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
2845
|
-
};
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
/**
|
|
2849
|
-
* @param {!Array<string>} value
|
|
2850
|
-
* @return {!proto.DeleteMaterialRequest} returns this
|
|
2851
|
-
*/
|
|
2852
|
-
proto.DeleteMaterialRequest.prototype.setReferenceIdsList = function(value) {
|
|
2853
|
-
return jspb.Message.setField(this, 1, value || []);
|
|
2854
|
-
};
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
/**
|
|
2858
|
-
* @param {string} value
|
|
2859
|
-
* @param {number=} opt_index
|
|
2860
|
-
* @return {!proto.DeleteMaterialRequest} returns this
|
|
2861
|
-
*/
|
|
2862
|
-
proto.DeleteMaterialRequest.prototype.addReferenceIds = function(value, opt_index) {
|
|
2863
|
-
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
2864
|
-
};
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
/**
|
|
2868
|
-
* Clears the list making it empty but non-null.
|
|
2869
|
-
* @return {!proto.DeleteMaterialRequest} returns this
|
|
2870
|
-
*/
|
|
2871
|
-
proto.DeleteMaterialRequest.prototype.clearReferenceIdsList = function() {
|
|
2872
|
-
return this.setReferenceIdsList([]);
|
|
2873
|
-
};
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2880
|
-
/**
|
|
2881
|
-
* Creates an object representation of this proto.
|
|
2882
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2883
|
-
* Optional fields that are not set will be set to undefined.
|
|
2884
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2885
|
-
* For the list of reserved names please see:
|
|
2886
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2887
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2888
|
-
* JSPB instance for transitional soy proto support:
|
|
2889
|
-
* http://goto/soy-param-migration
|
|
2890
|
-
* @return {!Object}
|
|
2891
|
-
*/
|
|
2892
|
-
proto.GetMaterialByIdRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2893
|
-
return proto.GetMaterialByIdRequest.toObject(opt_includeInstance, this);
|
|
2894
|
-
};
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
/**
|
|
2898
|
-
* Static version of the {@see toObject} method.
|
|
2899
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2900
|
-
* the JSPB instance for transitional soy proto support:
|
|
2901
|
-
* http://goto/soy-param-migration
|
|
2902
|
-
* @param {!proto.GetMaterialByIdRequest} msg The msg instance to transform.
|
|
2903
|
-
* @return {!Object}
|
|
2904
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2905
|
-
*/
|
|
2906
|
-
proto.GetMaterialByIdRequest.toObject = function(includeInstance, msg) {
|
|
2907
|
-
var f, obj = {
|
|
2908
|
-
referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
2909
|
-
};
|
|
2910
|
-
|
|
2911
|
-
if (includeInstance) {
|
|
2912
|
-
obj.$jspbMessageInstance = msg;
|
|
2913
|
-
}
|
|
2914
|
-
return obj;
|
|
2915
|
-
};
|
|
2916
|
-
}
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
/**
|
|
2920
|
-
* Deserializes binary data (in protobuf wire format).
|
|
2921
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2922
|
-
* @return {!proto.GetMaterialByIdRequest}
|
|
2923
|
-
*/
|
|
2924
|
-
proto.GetMaterialByIdRequest.deserializeBinary = function(bytes) {
|
|
2925
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
2926
|
-
var msg = new proto.GetMaterialByIdRequest;
|
|
2927
|
-
return proto.GetMaterialByIdRequest.deserializeBinaryFromReader(msg, reader);
|
|
2928
|
-
};
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
/**
|
|
2932
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
2933
|
-
* given reader into the given message object.
|
|
2934
|
-
* @param {!proto.GetMaterialByIdRequest} msg The message object to deserialize into.
|
|
2935
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2936
|
-
* @return {!proto.GetMaterialByIdRequest}
|
|
2937
|
-
*/
|
|
2938
|
-
proto.GetMaterialByIdRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2939
|
-
while (reader.nextField()) {
|
|
2940
|
-
if (reader.isEndGroup()) {
|
|
2941
|
-
break;
|
|
2942
|
-
}
|
|
2943
|
-
var field = reader.getFieldNumber();
|
|
2944
|
-
switch (field) {
|
|
2945
|
-
case 1:
|
|
2946
|
-
var value = /** @type {string} */ (reader.readString());
|
|
2947
|
-
msg.setReferencesId(value);
|
|
2948
|
-
break;
|
|
2949
|
-
default:
|
|
2950
|
-
reader.skipField();
|
|
2951
|
-
break;
|
|
2952
|
-
}
|
|
2953
|
-
}
|
|
2954
|
-
return msg;
|
|
2955
|
-
};
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
/**
|
|
2959
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
2960
|
-
* @return {!Uint8Array}
|
|
2961
|
-
*/
|
|
2962
|
-
proto.GetMaterialByIdRequest.prototype.serializeBinary = function() {
|
|
2963
|
-
var writer = new jspb.BinaryWriter();
|
|
2964
|
-
proto.GetMaterialByIdRequest.serializeBinaryToWriter(this, writer);
|
|
2965
|
-
return writer.getResultBuffer();
|
|
2966
|
-
};
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
/**
|
|
2970
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
2971
|
-
* format), writing to the given BinaryWriter.
|
|
2972
|
-
* @param {!proto.GetMaterialByIdRequest} message
|
|
2973
|
-
* @param {!jspb.BinaryWriter} writer
|
|
2974
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2975
|
-
*/
|
|
2976
|
-
proto.GetMaterialByIdRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2977
|
-
var f = undefined;
|
|
2978
|
-
f = message.getReferencesId();
|
|
2979
|
-
if (f.length > 0) {
|
|
2980
|
-
writer.writeString(
|
|
2981
|
-
1,
|
|
2982
|
-
f
|
|
2983
|
-
);
|
|
2984
|
-
}
|
|
2985
|
-
};
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
/**
|
|
2989
|
-
* optional string references_id = 1;
|
|
2990
|
-
* @return {string}
|
|
2991
|
-
*/
|
|
2992
|
-
proto.GetMaterialByIdRequest.prototype.getReferencesId = function() {
|
|
2993
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2994
|
-
};
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
/**
|
|
2998
|
-
* @param {string} value
|
|
2999
|
-
* @return {!proto.GetMaterialByIdRequest} returns this
|
|
3000
|
-
*/
|
|
3001
|
-
proto.GetMaterialByIdRequest.prototype.setReferencesId = function(value) {
|
|
3002
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3003
|
-
};
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3010
|
-
/**
|
|
3011
|
-
* Creates an object representation of this proto.
|
|
3012
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3013
|
-
* Optional fields that are not set will be set to undefined.
|
|
3014
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3015
|
-
* For the list of reserved names please see:
|
|
3016
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3017
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3018
|
-
* JSPB instance for transitional soy proto support:
|
|
3019
|
-
* http://goto/soy-param-migration
|
|
3020
|
-
* @return {!Object}
|
|
3021
|
-
*/
|
|
3022
|
-
proto.GetListMaterialRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3023
|
-
return proto.GetListMaterialRequest.toObject(opt_includeInstance, this);
|
|
3024
|
-
};
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
/**
|
|
3028
|
-
* Static version of the {@see toObject} method.
|
|
3029
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3030
|
-
* the JSPB instance for transitional soy proto support:
|
|
3031
|
-
* http://goto/soy-param-migration
|
|
3032
|
-
* @param {!proto.GetListMaterialRequest} msg The msg instance to transform.
|
|
3033
|
-
* @return {!Object}
|
|
3034
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3035
|
-
*/
|
|
3036
|
-
proto.GetListMaterialRequest.toObject = function(includeInstance, msg) {
|
|
3037
|
-
var f, obj = {
|
|
3038
|
-
pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
|
|
3039
|
-
query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
|
|
3040
|
-
};
|
|
3041
|
-
|
|
3042
|
-
if (includeInstance) {
|
|
3043
|
-
obj.$jspbMessageInstance = msg;
|
|
3044
|
-
}
|
|
3045
|
-
return obj;
|
|
3046
|
-
};
|
|
3047
|
-
}
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
/**
|
|
3051
|
-
* Deserializes binary data (in protobuf wire format).
|
|
3052
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3053
|
-
* @return {!proto.GetListMaterialRequest}
|
|
3054
|
-
*/
|
|
3055
|
-
proto.GetListMaterialRequest.deserializeBinary = function(bytes) {
|
|
3056
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
3057
|
-
var msg = new proto.GetListMaterialRequest;
|
|
3058
|
-
return proto.GetListMaterialRequest.deserializeBinaryFromReader(msg, reader);
|
|
3059
|
-
};
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
/**
|
|
3063
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
3064
|
-
* given reader into the given message object.
|
|
3065
|
-
* @param {!proto.GetListMaterialRequest} msg The message object to deserialize into.
|
|
3066
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3067
|
-
* @return {!proto.GetListMaterialRequest}
|
|
3068
|
-
*/
|
|
3069
|
-
proto.GetListMaterialRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3070
|
-
while (reader.nextField()) {
|
|
3071
|
-
if (reader.isEndGroup()) {
|
|
3072
|
-
break;
|
|
3073
|
-
}
|
|
3074
|
-
var field = reader.getFieldNumber();
|
|
3075
|
-
switch (field) {
|
|
3076
|
-
case 1:
|
|
3077
|
-
var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
|
|
3078
|
-
reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
|
|
3079
|
-
msg.setPagination(value);
|
|
3080
|
-
break;
|
|
3081
|
-
case 2:
|
|
3082
|
-
var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
|
|
3083
|
-
reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
|
|
3084
|
-
msg.setQuery(value);
|
|
3085
|
-
break;
|
|
3086
|
-
default:
|
|
3087
|
-
reader.skipField();
|
|
3088
|
-
break;
|
|
3089
|
-
}
|
|
3090
|
-
}
|
|
3091
|
-
return msg;
|
|
3092
|
-
};
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
/**
|
|
3096
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
3097
|
-
* @return {!Uint8Array}
|
|
3098
|
-
*/
|
|
3099
|
-
proto.GetListMaterialRequest.prototype.serializeBinary = function() {
|
|
3100
|
-
var writer = new jspb.BinaryWriter();
|
|
3101
|
-
proto.GetListMaterialRequest.serializeBinaryToWriter(this, writer);
|
|
3102
|
-
return writer.getResultBuffer();
|
|
3103
|
-
};
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
/**
|
|
3107
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
3108
|
-
* format), writing to the given BinaryWriter.
|
|
3109
|
-
* @param {!proto.GetListMaterialRequest} message
|
|
3110
|
-
* @param {!jspb.BinaryWriter} writer
|
|
3111
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3112
|
-
*/
|
|
3113
|
-
proto.GetListMaterialRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3114
|
-
var f = undefined;
|
|
3115
|
-
f = message.getPagination();
|
|
3116
|
-
if (f != null) {
|
|
3117
|
-
writer.writeMessage(
|
|
3118
|
-
1,
|
|
3119
|
-
f,
|
|
3120
|
-
prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
|
|
3121
|
-
);
|
|
3122
|
-
}
|
|
3123
|
-
f = message.getQuery();
|
|
3124
|
-
if (f != null) {
|
|
3125
|
-
writer.writeMessage(
|
|
3126
|
-
2,
|
|
3127
|
-
f,
|
|
3128
|
-
prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
|
|
3129
|
-
);
|
|
3130
|
-
}
|
|
3131
|
-
};
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
/**
|
|
3135
|
-
* optional prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
3136
|
-
* @return {?proto.prisca.v1.global.meta.PaginationRequest}
|
|
3137
|
-
*/
|
|
3138
|
-
proto.GetListMaterialRequest.prototype.getPagination = function() {
|
|
3139
|
-
return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
|
|
3140
|
-
jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
|
|
3141
|
-
};
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
/**
|
|
3145
|
-
* @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
|
|
3146
|
-
* @return {!proto.GetListMaterialRequest} returns this
|
|
3147
|
-
*/
|
|
3148
|
-
proto.GetListMaterialRequest.prototype.setPagination = function(value) {
|
|
3149
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
3150
|
-
};
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
/**
|
|
3154
|
-
* Clears the message field making it undefined.
|
|
3155
|
-
* @return {!proto.GetListMaterialRequest} returns this
|
|
3156
|
-
*/
|
|
3157
|
-
proto.GetListMaterialRequest.prototype.clearPagination = function() {
|
|
3158
|
-
return this.setPagination(undefined);
|
|
3159
|
-
};
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
/**
|
|
3163
|
-
* Returns whether this field is set.
|
|
3164
|
-
* @return {boolean}
|
|
3165
|
-
*/
|
|
3166
|
-
proto.GetListMaterialRequest.prototype.hasPagination = function() {
|
|
3167
|
-
return jspb.Message.getField(this, 1) != null;
|
|
3168
|
-
};
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
/**
|
|
3172
|
-
* optional prisca.v1.global.meta.FilterRequest query = 2;
|
|
3173
|
-
* @return {?proto.prisca.v1.global.meta.FilterRequest}
|
|
3174
|
-
*/
|
|
3175
|
-
proto.GetListMaterialRequest.prototype.getQuery = function() {
|
|
3176
|
-
return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
|
|
3177
|
-
jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
|
|
3178
|
-
};
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
/**
|
|
3182
|
-
* @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
|
|
3183
|
-
* @return {!proto.GetListMaterialRequest} returns this
|
|
3184
|
-
*/
|
|
3185
|
-
proto.GetListMaterialRequest.prototype.setQuery = function(value) {
|
|
3186
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
3187
|
-
};
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
/**
|
|
3191
|
-
* Clears the message field making it undefined.
|
|
3192
|
-
* @return {!proto.GetListMaterialRequest} returns this
|
|
3193
|
-
*/
|
|
3194
|
-
proto.GetListMaterialRequest.prototype.clearQuery = function() {
|
|
3195
|
-
return this.setQuery(undefined);
|
|
3196
|
-
};
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
/**
|
|
3200
|
-
* Returns whether this field is set.
|
|
3201
|
-
* @return {boolean}
|
|
3202
|
-
*/
|
|
3203
|
-
proto.GetListMaterialRequest.prototype.hasQuery = function() {
|
|
3204
|
-
return jspb.Message.getField(this, 2) != null;
|
|
3205
|
-
};
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3212
|
-
/**
|
|
3213
|
-
* Creates an object representation of this proto.
|
|
3214
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3215
|
-
* Optional fields that are not set will be set to undefined.
|
|
3216
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3217
|
-
* For the list of reserved names please see:
|
|
3218
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3219
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3220
|
-
* JSPB instance for transitional soy proto support:
|
|
3221
|
-
* http://goto/soy-param-migration
|
|
3222
|
-
* @return {!Object}
|
|
3223
|
-
*/
|
|
3224
|
-
proto.CreateMaterialResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3225
|
-
return proto.CreateMaterialResponse.toObject(opt_includeInstance, this);
|
|
3226
|
-
};
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
/**
|
|
3230
|
-
* Static version of the {@see toObject} method.
|
|
3231
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3232
|
-
* the JSPB instance for transitional soy proto support:
|
|
3233
|
-
* http://goto/soy-param-migration
|
|
3234
|
-
* @param {!proto.CreateMaterialResponse} msg The msg instance to transform.
|
|
3235
|
-
* @return {!Object}
|
|
3236
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3237
|
-
*/
|
|
3238
|
-
proto.CreateMaterialResponse.toObject = function(includeInstance, msg) {
|
|
3239
|
-
var f, obj = {
|
|
3240
|
-
material: (f = msg.getMaterial()) && proto.Material.toObject(includeInstance, f),
|
|
3241
|
-
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
3242
|
-
};
|
|
3243
|
-
|
|
3244
|
-
if (includeInstance) {
|
|
3245
|
-
obj.$jspbMessageInstance = msg;
|
|
3246
|
-
}
|
|
3247
|
-
return obj;
|
|
3248
|
-
};
|
|
3249
|
-
}
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
/**
|
|
3253
|
-
* Deserializes binary data (in protobuf wire format).
|
|
3254
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3255
|
-
* @return {!proto.CreateMaterialResponse}
|
|
3256
|
-
*/
|
|
3257
|
-
proto.CreateMaterialResponse.deserializeBinary = function(bytes) {
|
|
3258
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
3259
|
-
var msg = new proto.CreateMaterialResponse;
|
|
3260
|
-
return proto.CreateMaterialResponse.deserializeBinaryFromReader(msg, reader);
|
|
3261
|
-
};
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
/**
|
|
3265
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
3266
|
-
* given reader into the given message object.
|
|
3267
|
-
* @param {!proto.CreateMaterialResponse} msg The message object to deserialize into.
|
|
3268
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3269
|
-
* @return {!proto.CreateMaterialResponse}
|
|
3270
|
-
*/
|
|
3271
|
-
proto.CreateMaterialResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3272
|
-
while (reader.nextField()) {
|
|
3273
|
-
if (reader.isEndGroup()) {
|
|
3274
|
-
break;
|
|
3275
|
-
}
|
|
3276
|
-
var field = reader.getFieldNumber();
|
|
3277
|
-
switch (field) {
|
|
3278
|
-
case 1:
|
|
3279
|
-
var value = new proto.Material;
|
|
3280
|
-
reader.readMessage(value,proto.Material.deserializeBinaryFromReader);
|
|
3281
|
-
msg.setMaterial(value);
|
|
3282
|
-
break;
|
|
3283
|
-
case 2:
|
|
3284
|
-
var value = new prisca_v1_global_meta_meta_pb.Meta;
|
|
3285
|
-
reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
|
|
3286
|
-
msg.setMeta(value);
|
|
3287
|
-
break;
|
|
3288
|
-
default:
|
|
3289
|
-
reader.skipField();
|
|
3290
|
-
break;
|
|
3291
|
-
}
|
|
3292
|
-
}
|
|
3293
|
-
return msg;
|
|
3294
|
-
};
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
/**
|
|
3298
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
3299
|
-
* @return {!Uint8Array}
|
|
3300
|
-
*/
|
|
3301
|
-
proto.CreateMaterialResponse.prototype.serializeBinary = function() {
|
|
3302
|
-
var writer = new jspb.BinaryWriter();
|
|
3303
|
-
proto.CreateMaterialResponse.serializeBinaryToWriter(this, writer);
|
|
3304
|
-
return writer.getResultBuffer();
|
|
3305
|
-
};
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
/**
|
|
3309
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
3310
|
-
* format), writing to the given BinaryWriter.
|
|
3311
|
-
* @param {!proto.CreateMaterialResponse} message
|
|
3312
|
-
* @param {!jspb.BinaryWriter} writer
|
|
3313
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3314
|
-
*/
|
|
3315
|
-
proto.CreateMaterialResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3316
|
-
var f = undefined;
|
|
3317
|
-
f = message.getMaterial();
|
|
3318
|
-
if (f != null) {
|
|
3319
|
-
writer.writeMessage(
|
|
3320
|
-
1,
|
|
3321
|
-
f,
|
|
3322
|
-
proto.Material.serializeBinaryToWriter
|
|
3323
|
-
);
|
|
3324
|
-
}
|
|
3325
|
-
f = message.getMeta();
|
|
3326
|
-
if (f != null) {
|
|
3327
|
-
writer.writeMessage(
|
|
3328
|
-
2,
|
|
3329
|
-
f,
|
|
3330
|
-
prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
|
|
3331
|
-
);
|
|
3332
|
-
}
|
|
3333
|
-
};
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
/**
|
|
3337
|
-
* optional Material material = 1;
|
|
3338
|
-
* @return {?proto.Material}
|
|
3339
|
-
*/
|
|
3340
|
-
proto.CreateMaterialResponse.prototype.getMaterial = function() {
|
|
3341
|
-
return /** @type{?proto.Material} */ (
|
|
3342
|
-
jspb.Message.getWrapperField(this, proto.Material, 1));
|
|
3343
|
-
};
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
/**
|
|
3347
|
-
* @param {?proto.Material|undefined} value
|
|
3348
|
-
* @return {!proto.CreateMaterialResponse} returns this
|
|
3349
|
-
*/
|
|
3350
|
-
proto.CreateMaterialResponse.prototype.setMaterial = function(value) {
|
|
3351
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
3352
|
-
};
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
/**
|
|
3356
|
-
* Clears the message field making it undefined.
|
|
3357
|
-
* @return {!proto.CreateMaterialResponse} returns this
|
|
3358
|
-
*/
|
|
3359
|
-
proto.CreateMaterialResponse.prototype.clearMaterial = function() {
|
|
3360
|
-
return this.setMaterial(undefined);
|
|
3361
|
-
};
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
/**
|
|
3365
|
-
* Returns whether this field is set.
|
|
3366
|
-
* @return {boolean}
|
|
3367
|
-
*/
|
|
3368
|
-
proto.CreateMaterialResponse.prototype.hasMaterial = function() {
|
|
3369
|
-
return jspb.Message.getField(this, 1) != null;
|
|
3370
|
-
};
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
/**
|
|
3374
|
-
* optional prisca.v1.global.meta.Meta meta = 2;
|
|
3375
|
-
* @return {?proto.prisca.v1.global.meta.Meta}
|
|
3376
|
-
*/
|
|
3377
|
-
proto.CreateMaterialResponse.prototype.getMeta = function() {
|
|
3378
|
-
return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
|
|
3379
|
-
jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
|
|
3380
|
-
};
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
/**
|
|
3384
|
-
* @param {?proto.prisca.v1.global.meta.Meta|undefined} value
|
|
3385
|
-
* @return {!proto.CreateMaterialResponse} returns this
|
|
3386
|
-
*/
|
|
3387
|
-
proto.CreateMaterialResponse.prototype.setMeta = function(value) {
|
|
3388
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
3389
|
-
};
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
/**
|
|
3393
|
-
* Clears the message field making it undefined.
|
|
3394
|
-
* @return {!proto.CreateMaterialResponse} returns this
|
|
3395
|
-
*/
|
|
3396
|
-
proto.CreateMaterialResponse.prototype.clearMeta = function() {
|
|
3397
|
-
return this.setMeta(undefined);
|
|
3398
|
-
};
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
/**
|
|
3402
|
-
* Returns whether this field is set.
|
|
3403
|
-
* @return {boolean}
|
|
3404
|
-
*/
|
|
3405
|
-
proto.CreateMaterialResponse.prototype.hasMeta = function() {
|
|
3406
|
-
return jspb.Message.getField(this, 2) != null;
|
|
3407
|
-
};
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3414
|
-
/**
|
|
3415
|
-
* Creates an object representation of this proto.
|
|
3416
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3417
|
-
* Optional fields that are not set will be set to undefined.
|
|
3418
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3419
|
-
* For the list of reserved names please see:
|
|
3420
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3421
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3422
|
-
* JSPB instance for transitional soy proto support:
|
|
3423
|
-
* http://goto/soy-param-migration
|
|
3424
|
-
* @return {!Object}
|
|
3425
|
-
*/
|
|
3426
|
-
proto.UpdateMaterialResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3427
|
-
return proto.UpdateMaterialResponse.toObject(opt_includeInstance, this);
|
|
3428
|
-
};
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
/**
|
|
3432
|
-
* Static version of the {@see toObject} method.
|
|
3433
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3434
|
-
* the JSPB instance for transitional soy proto support:
|
|
3435
|
-
* http://goto/soy-param-migration
|
|
3436
|
-
* @param {!proto.UpdateMaterialResponse} msg The msg instance to transform.
|
|
3437
|
-
* @return {!Object}
|
|
3438
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3439
|
-
*/
|
|
3440
|
-
proto.UpdateMaterialResponse.toObject = function(includeInstance, msg) {
|
|
3441
|
-
var f, obj = {
|
|
3442
|
-
material: (f = msg.getMaterial()) && proto.Material.toObject(includeInstance, f),
|
|
3443
|
-
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
3444
|
-
};
|
|
3445
|
-
|
|
3446
|
-
if (includeInstance) {
|
|
3447
|
-
obj.$jspbMessageInstance = msg;
|
|
3448
|
-
}
|
|
3449
|
-
return obj;
|
|
3450
|
-
};
|
|
3451
|
-
}
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
/**
|
|
3455
|
-
* Deserializes binary data (in protobuf wire format).
|
|
3456
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3457
|
-
* @return {!proto.UpdateMaterialResponse}
|
|
3458
|
-
*/
|
|
3459
|
-
proto.UpdateMaterialResponse.deserializeBinary = function(bytes) {
|
|
3460
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
3461
|
-
var msg = new proto.UpdateMaterialResponse;
|
|
3462
|
-
return proto.UpdateMaterialResponse.deserializeBinaryFromReader(msg, reader);
|
|
3463
|
-
};
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
/**
|
|
3467
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
3468
|
-
* given reader into the given message object.
|
|
3469
|
-
* @param {!proto.UpdateMaterialResponse} msg The message object to deserialize into.
|
|
3470
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3471
|
-
* @return {!proto.UpdateMaterialResponse}
|
|
3472
|
-
*/
|
|
3473
|
-
proto.UpdateMaterialResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3474
|
-
while (reader.nextField()) {
|
|
3475
|
-
if (reader.isEndGroup()) {
|
|
3476
|
-
break;
|
|
3477
|
-
}
|
|
3478
|
-
var field = reader.getFieldNumber();
|
|
3479
|
-
switch (field) {
|
|
3480
|
-
case 1:
|
|
3481
|
-
var value = new proto.Material;
|
|
3482
|
-
reader.readMessage(value,proto.Material.deserializeBinaryFromReader);
|
|
3483
|
-
msg.setMaterial(value);
|
|
3484
|
-
break;
|
|
3485
|
-
case 2:
|
|
3486
|
-
var value = new prisca_v1_global_meta_meta_pb.Meta;
|
|
3487
|
-
reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
|
|
3488
|
-
msg.setMeta(value);
|
|
3489
|
-
break;
|
|
3490
|
-
default:
|
|
3491
|
-
reader.skipField();
|
|
3492
|
-
break;
|
|
3493
|
-
}
|
|
3494
|
-
}
|
|
3495
|
-
return msg;
|
|
3496
|
-
};
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
/**
|
|
3500
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
3501
|
-
* @return {!Uint8Array}
|
|
3502
|
-
*/
|
|
3503
|
-
proto.UpdateMaterialResponse.prototype.serializeBinary = function() {
|
|
3504
|
-
var writer = new jspb.BinaryWriter();
|
|
3505
|
-
proto.UpdateMaterialResponse.serializeBinaryToWriter(this, writer);
|
|
3506
|
-
return writer.getResultBuffer();
|
|
3507
|
-
};
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
/**
|
|
3511
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
3512
|
-
* format), writing to the given BinaryWriter.
|
|
3513
|
-
* @param {!proto.UpdateMaterialResponse} message
|
|
3514
|
-
* @param {!jspb.BinaryWriter} writer
|
|
3515
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3516
|
-
*/
|
|
3517
|
-
proto.UpdateMaterialResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3518
|
-
var f = undefined;
|
|
3519
|
-
f = message.getMaterial();
|
|
3520
|
-
if (f != null) {
|
|
3521
|
-
writer.writeMessage(
|
|
3522
|
-
1,
|
|
3523
|
-
f,
|
|
3524
|
-
proto.Material.serializeBinaryToWriter
|
|
3525
|
-
);
|
|
3526
|
-
}
|
|
3527
|
-
f = message.getMeta();
|
|
3528
|
-
if (f != null) {
|
|
3529
|
-
writer.writeMessage(
|
|
3530
|
-
2,
|
|
3531
|
-
f,
|
|
3532
|
-
prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
|
|
3533
|
-
);
|
|
3534
|
-
}
|
|
3535
|
-
};
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
/**
|
|
3539
|
-
* optional Material material = 1;
|
|
3540
|
-
* @return {?proto.Material}
|
|
3541
|
-
*/
|
|
3542
|
-
proto.UpdateMaterialResponse.prototype.getMaterial = function() {
|
|
3543
|
-
return /** @type{?proto.Material} */ (
|
|
3544
|
-
jspb.Message.getWrapperField(this, proto.Material, 1));
|
|
3545
|
-
};
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
/**
|
|
3549
|
-
* @param {?proto.Material|undefined} value
|
|
3550
|
-
* @return {!proto.UpdateMaterialResponse} returns this
|
|
3551
|
-
*/
|
|
3552
|
-
proto.UpdateMaterialResponse.prototype.setMaterial = function(value) {
|
|
3553
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
3554
|
-
};
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
/**
|
|
3558
|
-
* Clears the message field making it undefined.
|
|
3559
|
-
* @return {!proto.UpdateMaterialResponse} returns this
|
|
3560
|
-
*/
|
|
3561
|
-
proto.UpdateMaterialResponse.prototype.clearMaterial = function() {
|
|
3562
|
-
return this.setMaterial(undefined);
|
|
3563
|
-
};
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
/**
|
|
3567
|
-
* Returns whether this field is set.
|
|
3568
|
-
* @return {boolean}
|
|
3569
|
-
*/
|
|
3570
|
-
proto.UpdateMaterialResponse.prototype.hasMaterial = function() {
|
|
3571
|
-
return jspb.Message.getField(this, 1) != null;
|
|
3572
|
-
};
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
/**
|
|
3576
|
-
* optional prisca.v1.global.meta.Meta meta = 2;
|
|
3577
|
-
* @return {?proto.prisca.v1.global.meta.Meta}
|
|
3578
|
-
*/
|
|
3579
|
-
proto.UpdateMaterialResponse.prototype.getMeta = function() {
|
|
3580
|
-
return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
|
|
3581
|
-
jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
|
|
3582
|
-
};
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
/**
|
|
3586
|
-
* @param {?proto.prisca.v1.global.meta.Meta|undefined} value
|
|
3587
|
-
* @return {!proto.UpdateMaterialResponse} returns this
|
|
3588
|
-
*/
|
|
3589
|
-
proto.UpdateMaterialResponse.prototype.setMeta = function(value) {
|
|
3590
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
3591
|
-
};
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
/**
|
|
3595
|
-
* Clears the message field making it undefined.
|
|
3596
|
-
* @return {!proto.UpdateMaterialResponse} returns this
|
|
3597
|
-
*/
|
|
3598
|
-
proto.UpdateMaterialResponse.prototype.clearMeta = function() {
|
|
3599
|
-
return this.setMeta(undefined);
|
|
3600
|
-
};
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
/**
|
|
3604
|
-
* Returns whether this field is set.
|
|
3605
|
-
* @return {boolean}
|
|
3606
|
-
*/
|
|
3607
|
-
proto.UpdateMaterialResponse.prototype.hasMeta = function() {
|
|
3608
|
-
return jspb.Message.getField(this, 2) != null;
|
|
3609
|
-
};
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
/**
|
|
3614
|
-
* List of repeated fields within this message type.
|
|
3615
|
-
* @private {!Array<number>}
|
|
3616
|
-
* @const
|
|
3617
|
-
*/
|
|
3618
|
-
proto.DeleteMaterialResponse.repeatedFields_ = [1];
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3623
|
-
/**
|
|
3624
|
-
* Creates an object representation of this proto.
|
|
3625
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3626
|
-
* Optional fields that are not set will be set to undefined.
|
|
3627
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3628
|
-
* For the list of reserved names please see:
|
|
3629
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3630
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3631
|
-
* JSPB instance for transitional soy proto support:
|
|
3632
|
-
* http://goto/soy-param-migration
|
|
3633
|
-
* @return {!Object}
|
|
3634
|
-
*/
|
|
3635
|
-
proto.DeleteMaterialResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3636
|
-
return proto.DeleteMaterialResponse.toObject(opt_includeInstance, this);
|
|
3637
|
-
};
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
/**
|
|
3641
|
-
* Static version of the {@see toObject} method.
|
|
3642
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3643
|
-
* the JSPB instance for transitional soy proto support:
|
|
3644
|
-
* http://goto/soy-param-migration
|
|
3645
|
-
* @param {!proto.DeleteMaterialResponse} msg The msg instance to transform.
|
|
3646
|
-
* @return {!Object}
|
|
3647
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3648
|
-
*/
|
|
3649
|
-
proto.DeleteMaterialResponse.toObject = function(includeInstance, msg) {
|
|
3650
|
-
var f, obj = {
|
|
3651
|
-
referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
3652
|
-
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
3653
|
-
};
|
|
3654
|
-
|
|
3655
|
-
if (includeInstance) {
|
|
3656
|
-
obj.$jspbMessageInstance = msg;
|
|
3657
|
-
}
|
|
3658
|
-
return obj;
|
|
3659
|
-
};
|
|
3660
|
-
}
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
/**
|
|
3664
|
-
* Deserializes binary data (in protobuf wire format).
|
|
3665
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3666
|
-
* @return {!proto.DeleteMaterialResponse}
|
|
3667
|
-
*/
|
|
3668
|
-
proto.DeleteMaterialResponse.deserializeBinary = function(bytes) {
|
|
3669
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
3670
|
-
var msg = new proto.DeleteMaterialResponse;
|
|
3671
|
-
return proto.DeleteMaterialResponse.deserializeBinaryFromReader(msg, reader);
|
|
3672
|
-
};
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
/**
|
|
3676
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
3677
|
-
* given reader into the given message object.
|
|
3678
|
-
* @param {!proto.DeleteMaterialResponse} msg The message object to deserialize into.
|
|
3679
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3680
|
-
* @return {!proto.DeleteMaterialResponse}
|
|
3681
|
-
*/
|
|
3682
|
-
proto.DeleteMaterialResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3683
|
-
while (reader.nextField()) {
|
|
3684
|
-
if (reader.isEndGroup()) {
|
|
3685
|
-
break;
|
|
3686
|
-
}
|
|
3687
|
-
var field = reader.getFieldNumber();
|
|
3688
|
-
switch (field) {
|
|
3689
|
-
case 1:
|
|
3690
|
-
var value = /** @type {string} */ (reader.readString());
|
|
3691
|
-
msg.addReferenceIds(value);
|
|
3692
|
-
break;
|
|
3693
|
-
case 2:
|
|
3694
|
-
var value = new prisca_v1_global_meta_meta_pb.Meta;
|
|
3695
|
-
reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
|
|
3696
|
-
msg.setMeta(value);
|
|
3697
|
-
break;
|
|
3698
|
-
default:
|
|
3699
|
-
reader.skipField();
|
|
3700
|
-
break;
|
|
3701
|
-
}
|
|
3702
|
-
}
|
|
3703
|
-
return msg;
|
|
3704
|
-
};
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
/**
|
|
3708
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
3709
|
-
* @return {!Uint8Array}
|
|
3710
|
-
*/
|
|
3711
|
-
proto.DeleteMaterialResponse.prototype.serializeBinary = function() {
|
|
3712
|
-
var writer = new jspb.BinaryWriter();
|
|
3713
|
-
proto.DeleteMaterialResponse.serializeBinaryToWriter(this, writer);
|
|
3714
|
-
return writer.getResultBuffer();
|
|
3715
|
-
};
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
/**
|
|
3719
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
3720
|
-
* format), writing to the given BinaryWriter.
|
|
3721
|
-
* @param {!proto.DeleteMaterialResponse} message
|
|
3722
|
-
* @param {!jspb.BinaryWriter} writer
|
|
3723
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3724
|
-
*/
|
|
3725
|
-
proto.DeleteMaterialResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3726
|
-
var f = undefined;
|
|
3727
|
-
f = message.getReferenceIdsList();
|
|
3728
|
-
if (f.length > 0) {
|
|
3729
|
-
writer.writeRepeatedString(
|
|
3730
|
-
1,
|
|
3731
|
-
f
|
|
3732
|
-
);
|
|
3733
|
-
}
|
|
3734
|
-
f = message.getMeta();
|
|
3735
|
-
if (f != null) {
|
|
3736
|
-
writer.writeMessage(
|
|
3737
|
-
2,
|
|
3738
|
-
f,
|
|
3739
|
-
prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
|
|
3740
|
-
);
|
|
3741
|
-
}
|
|
3742
|
-
};
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
/**
|
|
3746
|
-
* repeated string reference_ids = 1;
|
|
3747
|
-
* @return {!Array<string>}
|
|
3748
|
-
*/
|
|
3749
|
-
proto.DeleteMaterialResponse.prototype.getReferenceIdsList = function() {
|
|
3750
|
-
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
3751
|
-
};
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
/**
|
|
3755
|
-
* @param {!Array<string>} value
|
|
3756
|
-
* @return {!proto.DeleteMaterialResponse} returns this
|
|
3757
|
-
*/
|
|
3758
|
-
proto.DeleteMaterialResponse.prototype.setReferenceIdsList = function(value) {
|
|
3759
|
-
return jspb.Message.setField(this, 1, value || []);
|
|
3760
|
-
};
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
/**
|
|
3764
|
-
* @param {string} value
|
|
3765
|
-
* @param {number=} opt_index
|
|
3766
|
-
* @return {!proto.DeleteMaterialResponse} returns this
|
|
3767
|
-
*/
|
|
3768
|
-
proto.DeleteMaterialResponse.prototype.addReferenceIds = function(value, opt_index) {
|
|
3769
|
-
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
3770
|
-
};
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
/**
|
|
3774
|
-
* Clears the list making it empty but non-null.
|
|
3775
|
-
* @return {!proto.DeleteMaterialResponse} returns this
|
|
3776
|
-
*/
|
|
3777
|
-
proto.DeleteMaterialResponse.prototype.clearReferenceIdsList = function() {
|
|
3778
|
-
return this.setReferenceIdsList([]);
|
|
3779
|
-
};
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
/**
|
|
3783
|
-
* optional prisca.v1.global.meta.Meta meta = 2;
|
|
3784
|
-
* @return {?proto.prisca.v1.global.meta.Meta}
|
|
3785
|
-
*/
|
|
3786
|
-
proto.DeleteMaterialResponse.prototype.getMeta = function() {
|
|
3787
|
-
return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
|
|
3788
|
-
jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
|
|
3789
|
-
};
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
/**
|
|
3793
|
-
* @param {?proto.prisca.v1.global.meta.Meta|undefined} value
|
|
3794
|
-
* @return {!proto.DeleteMaterialResponse} returns this
|
|
3795
|
-
*/
|
|
3796
|
-
proto.DeleteMaterialResponse.prototype.setMeta = function(value) {
|
|
3797
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
3798
|
-
};
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
/**
|
|
3802
|
-
* Clears the message field making it undefined.
|
|
3803
|
-
* @return {!proto.DeleteMaterialResponse} returns this
|
|
3804
|
-
*/
|
|
3805
|
-
proto.DeleteMaterialResponse.prototype.clearMeta = function() {
|
|
3806
|
-
return this.setMeta(undefined);
|
|
3807
|
-
};
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
/**
|
|
3811
|
-
* Returns whether this field is set.
|
|
3812
|
-
* @return {boolean}
|
|
3813
|
-
*/
|
|
3814
|
-
proto.DeleteMaterialResponse.prototype.hasMeta = function() {
|
|
3815
|
-
return jspb.Message.getField(this, 2) != null;
|
|
3816
|
-
};
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3823
|
-
/**
|
|
3824
|
-
* Creates an object representation of this proto.
|
|
3825
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3826
|
-
* Optional fields that are not set will be set to undefined.
|
|
3827
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3828
|
-
* For the list of reserved names please see:
|
|
3829
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3830
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3831
|
-
* JSPB instance for transitional soy proto support:
|
|
3832
|
-
* http://goto/soy-param-migration
|
|
3833
|
-
* @return {!Object}
|
|
3834
|
-
*/
|
|
3835
|
-
proto.GetMaterialByIdResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3836
|
-
return proto.GetMaterialByIdResponse.toObject(opt_includeInstance, this);
|
|
3837
|
-
};
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
/**
|
|
3841
|
-
* Static version of the {@see toObject} method.
|
|
3842
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3843
|
-
* the JSPB instance for transitional soy proto support:
|
|
3844
|
-
* http://goto/soy-param-migration
|
|
3845
|
-
* @param {!proto.GetMaterialByIdResponse} msg The msg instance to transform.
|
|
3846
|
-
* @return {!Object}
|
|
3847
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3848
|
-
*/
|
|
3849
|
-
proto.GetMaterialByIdResponse.toObject = function(includeInstance, msg) {
|
|
3850
|
-
var f, obj = {
|
|
3851
|
-
material: (f = msg.getMaterial()) && proto.Material.toObject(includeInstance, f),
|
|
3852
|
-
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
3853
|
-
};
|
|
3854
|
-
|
|
3855
|
-
if (includeInstance) {
|
|
3856
|
-
obj.$jspbMessageInstance = msg;
|
|
3857
|
-
}
|
|
3858
|
-
return obj;
|
|
3859
|
-
};
|
|
3860
|
-
}
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
/**
|
|
3864
|
-
* Deserializes binary data (in protobuf wire format).
|
|
3865
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3866
|
-
* @return {!proto.GetMaterialByIdResponse}
|
|
3867
|
-
*/
|
|
3868
|
-
proto.GetMaterialByIdResponse.deserializeBinary = function(bytes) {
|
|
3869
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
3870
|
-
var msg = new proto.GetMaterialByIdResponse;
|
|
3871
|
-
return proto.GetMaterialByIdResponse.deserializeBinaryFromReader(msg, reader);
|
|
3872
|
-
};
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
/**
|
|
3876
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
3877
|
-
* given reader into the given message object.
|
|
3878
|
-
* @param {!proto.GetMaterialByIdResponse} msg The message object to deserialize into.
|
|
3879
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3880
|
-
* @return {!proto.GetMaterialByIdResponse}
|
|
3881
|
-
*/
|
|
3882
|
-
proto.GetMaterialByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3883
|
-
while (reader.nextField()) {
|
|
3884
|
-
if (reader.isEndGroup()) {
|
|
3885
|
-
break;
|
|
3886
|
-
}
|
|
3887
|
-
var field = reader.getFieldNumber();
|
|
3888
|
-
switch (field) {
|
|
3889
|
-
case 1:
|
|
3890
|
-
var value = new proto.Material;
|
|
3891
|
-
reader.readMessage(value,proto.Material.deserializeBinaryFromReader);
|
|
3892
|
-
msg.setMaterial(value);
|
|
3893
|
-
break;
|
|
3894
|
-
case 2:
|
|
3895
|
-
var value = new prisca_v1_global_meta_meta_pb.Meta;
|
|
3896
|
-
reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
|
|
3897
|
-
msg.setMeta(value);
|
|
3898
|
-
break;
|
|
3899
|
-
default:
|
|
3900
|
-
reader.skipField();
|
|
3901
|
-
break;
|
|
3902
|
-
}
|
|
3903
|
-
}
|
|
3904
|
-
return msg;
|
|
3905
|
-
};
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
/**
|
|
3909
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
3910
|
-
* @return {!Uint8Array}
|
|
3911
|
-
*/
|
|
3912
|
-
proto.GetMaterialByIdResponse.prototype.serializeBinary = function() {
|
|
3913
|
-
var writer = new jspb.BinaryWriter();
|
|
3914
|
-
proto.GetMaterialByIdResponse.serializeBinaryToWriter(this, writer);
|
|
3915
|
-
return writer.getResultBuffer();
|
|
3916
|
-
};
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
/**
|
|
3920
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
3921
|
-
* format), writing to the given BinaryWriter.
|
|
3922
|
-
* @param {!proto.GetMaterialByIdResponse} message
|
|
3923
|
-
* @param {!jspb.BinaryWriter} writer
|
|
3924
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3925
|
-
*/
|
|
3926
|
-
proto.GetMaterialByIdResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3927
|
-
var f = undefined;
|
|
3928
|
-
f = message.getMaterial();
|
|
3929
|
-
if (f != null) {
|
|
3930
|
-
writer.writeMessage(
|
|
3931
|
-
1,
|
|
3932
|
-
f,
|
|
3933
|
-
proto.Material.serializeBinaryToWriter
|
|
3934
|
-
);
|
|
3935
|
-
}
|
|
3936
|
-
f = message.getMeta();
|
|
3937
|
-
if (f != null) {
|
|
3938
|
-
writer.writeMessage(
|
|
3939
|
-
2,
|
|
3940
|
-
f,
|
|
3941
|
-
prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
|
|
3942
|
-
);
|
|
3943
|
-
}
|
|
3944
|
-
};
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
/**
|
|
3948
|
-
* optional Material material = 1;
|
|
3949
|
-
* @return {?proto.Material}
|
|
3950
|
-
*/
|
|
3951
|
-
proto.GetMaterialByIdResponse.prototype.getMaterial = function() {
|
|
3952
|
-
return /** @type{?proto.Material} */ (
|
|
3953
|
-
jspb.Message.getWrapperField(this, proto.Material, 1));
|
|
3954
|
-
};
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
/**
|
|
3958
|
-
* @param {?proto.Material|undefined} value
|
|
3959
|
-
* @return {!proto.GetMaterialByIdResponse} returns this
|
|
3960
|
-
*/
|
|
3961
|
-
proto.GetMaterialByIdResponse.prototype.setMaterial = function(value) {
|
|
3962
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
3963
|
-
};
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
/**
|
|
3967
|
-
* Clears the message field making it undefined.
|
|
3968
|
-
* @return {!proto.GetMaterialByIdResponse} returns this
|
|
3969
|
-
*/
|
|
3970
|
-
proto.GetMaterialByIdResponse.prototype.clearMaterial = function() {
|
|
3971
|
-
return this.setMaterial(undefined);
|
|
3972
|
-
};
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
/**
|
|
3976
|
-
* Returns whether this field is set.
|
|
3977
|
-
* @return {boolean}
|
|
3978
|
-
*/
|
|
3979
|
-
proto.GetMaterialByIdResponse.prototype.hasMaterial = function() {
|
|
3980
|
-
return jspb.Message.getField(this, 1) != null;
|
|
3981
|
-
};
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
/**
|
|
3985
|
-
* optional prisca.v1.global.meta.Meta meta = 2;
|
|
3986
|
-
* @return {?proto.prisca.v1.global.meta.Meta}
|
|
3987
|
-
*/
|
|
3988
|
-
proto.GetMaterialByIdResponse.prototype.getMeta = function() {
|
|
3989
|
-
return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
|
|
3990
|
-
jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
|
|
3991
|
-
};
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
/**
|
|
3995
|
-
* @param {?proto.prisca.v1.global.meta.Meta|undefined} value
|
|
3996
|
-
* @return {!proto.GetMaterialByIdResponse} returns this
|
|
3997
|
-
*/
|
|
3998
|
-
proto.GetMaterialByIdResponse.prototype.setMeta = function(value) {
|
|
3999
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
4000
|
-
};
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
/**
|
|
4004
|
-
* Clears the message field making it undefined.
|
|
4005
|
-
* @return {!proto.GetMaterialByIdResponse} returns this
|
|
4006
|
-
*/
|
|
4007
|
-
proto.GetMaterialByIdResponse.prototype.clearMeta = function() {
|
|
4008
|
-
return this.setMeta(undefined);
|
|
4009
|
-
};
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
/**
|
|
4013
|
-
* Returns whether this field is set.
|
|
4014
|
-
* @return {boolean}
|
|
4015
|
-
*/
|
|
4016
|
-
proto.GetMaterialByIdResponse.prototype.hasMeta = function() {
|
|
4017
|
-
return jspb.Message.getField(this, 2) != null;
|
|
4018
|
-
};
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
/**
|
|
4023
|
-
* List of repeated fields within this message type.
|
|
4024
|
-
* @private {!Array<number>}
|
|
4025
|
-
* @const
|
|
4026
|
-
*/
|
|
4027
|
-
proto.GetListMaterialResponse.repeatedFields_ = [1];
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4032
|
-
/**
|
|
4033
|
-
* Creates an object representation of this proto.
|
|
4034
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4035
|
-
* Optional fields that are not set will be set to undefined.
|
|
4036
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4037
|
-
* For the list of reserved names please see:
|
|
4038
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4039
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4040
|
-
* JSPB instance for transitional soy proto support:
|
|
4041
|
-
* http://goto/soy-param-migration
|
|
4042
|
-
* @return {!Object}
|
|
4043
|
-
*/
|
|
4044
|
-
proto.GetListMaterialResponse.prototype.toObject = function(opt_includeInstance) {
|
|
4045
|
-
return proto.GetListMaterialResponse.toObject(opt_includeInstance, this);
|
|
4046
|
-
};
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
/**
|
|
4050
|
-
* Static version of the {@see toObject} method.
|
|
4051
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4052
|
-
* the JSPB instance for transitional soy proto support:
|
|
4053
|
-
* http://goto/soy-param-migration
|
|
4054
|
-
* @param {!proto.GetListMaterialResponse} msg The msg instance to transform.
|
|
4055
|
-
* @return {!Object}
|
|
4056
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4057
|
-
*/
|
|
4058
|
-
proto.GetListMaterialResponse.toObject = function(includeInstance, msg) {
|
|
4059
|
-
var f, obj = {
|
|
4060
|
-
materialsList: jspb.Message.toObjectList(msg.getMaterialsList(),
|
|
4061
|
-
proto.Material.toObject, includeInstance),
|
|
4062
|
-
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
4063
|
-
};
|
|
4064
|
-
|
|
4065
|
-
if (includeInstance) {
|
|
4066
|
-
obj.$jspbMessageInstance = msg;
|
|
4067
|
-
}
|
|
4068
|
-
return obj;
|
|
4069
|
-
};
|
|
4070
|
-
}
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
/**
|
|
4074
|
-
* Deserializes binary data (in protobuf wire format).
|
|
4075
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4076
|
-
* @return {!proto.GetListMaterialResponse}
|
|
4077
|
-
*/
|
|
4078
|
-
proto.GetListMaterialResponse.deserializeBinary = function(bytes) {
|
|
4079
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
4080
|
-
var msg = new proto.GetListMaterialResponse;
|
|
4081
|
-
return proto.GetListMaterialResponse.deserializeBinaryFromReader(msg, reader);
|
|
4082
|
-
};
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
/**
|
|
4086
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
4087
|
-
* given reader into the given message object.
|
|
4088
|
-
* @param {!proto.GetListMaterialResponse} msg The message object to deserialize into.
|
|
4089
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4090
|
-
* @return {!proto.GetListMaterialResponse}
|
|
4091
|
-
*/
|
|
4092
|
-
proto.GetListMaterialResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
4093
|
-
while (reader.nextField()) {
|
|
4094
|
-
if (reader.isEndGroup()) {
|
|
4095
|
-
break;
|
|
4096
|
-
}
|
|
4097
|
-
var field = reader.getFieldNumber();
|
|
4098
|
-
switch (field) {
|
|
4099
|
-
case 1:
|
|
4100
|
-
var value = new proto.Material;
|
|
4101
|
-
reader.readMessage(value,proto.Material.deserializeBinaryFromReader);
|
|
4102
|
-
msg.addMaterials(value);
|
|
4103
|
-
break;
|
|
4104
|
-
case 2:
|
|
4105
|
-
var value = new prisca_v1_global_meta_meta_pb.Meta;
|
|
4106
|
-
reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
|
|
4107
|
-
msg.setMeta(value);
|
|
4108
|
-
break;
|
|
4109
|
-
default:
|
|
4110
|
-
reader.skipField();
|
|
4111
|
-
break;
|
|
4112
|
-
}
|
|
4113
|
-
}
|
|
4114
|
-
return msg;
|
|
4115
|
-
};
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
/**
|
|
4119
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
4120
|
-
* @return {!Uint8Array}
|
|
4121
|
-
*/
|
|
4122
|
-
proto.GetListMaterialResponse.prototype.serializeBinary = function() {
|
|
4123
|
-
var writer = new jspb.BinaryWriter();
|
|
4124
|
-
proto.GetListMaterialResponse.serializeBinaryToWriter(this, writer);
|
|
4125
|
-
return writer.getResultBuffer();
|
|
4126
|
-
};
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
/**
|
|
4130
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
4131
|
-
* format), writing to the given BinaryWriter.
|
|
4132
|
-
* @param {!proto.GetListMaterialResponse} message
|
|
4133
|
-
* @param {!jspb.BinaryWriter} writer
|
|
4134
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4135
|
-
*/
|
|
4136
|
-
proto.GetListMaterialResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4137
|
-
var f = undefined;
|
|
4138
|
-
f = message.getMaterialsList();
|
|
4139
|
-
if (f.length > 0) {
|
|
4140
|
-
writer.writeRepeatedMessage(
|
|
4141
|
-
1,
|
|
4142
|
-
f,
|
|
4143
|
-
proto.Material.serializeBinaryToWriter
|
|
4144
|
-
);
|
|
4145
|
-
}
|
|
4146
|
-
f = message.getMeta();
|
|
4147
|
-
if (f != null) {
|
|
4148
|
-
writer.writeMessage(
|
|
4149
|
-
2,
|
|
4150
|
-
f,
|
|
4151
|
-
prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
|
|
4152
|
-
);
|
|
4153
|
-
}
|
|
4154
|
-
};
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
/**
|
|
4158
|
-
* repeated Material materials = 1;
|
|
4159
|
-
* @return {!Array<!proto.Material>}
|
|
4160
|
-
*/
|
|
4161
|
-
proto.GetListMaterialResponse.prototype.getMaterialsList = function() {
|
|
4162
|
-
return /** @type{!Array<!proto.Material>} */ (
|
|
4163
|
-
jspb.Message.getRepeatedWrapperField(this, proto.Material, 1));
|
|
4164
|
-
};
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
/**
|
|
4168
|
-
* @param {!Array<!proto.Material>} value
|
|
4169
|
-
* @return {!proto.GetListMaterialResponse} returns this
|
|
4170
|
-
*/
|
|
4171
|
-
proto.GetListMaterialResponse.prototype.setMaterialsList = function(value) {
|
|
4172
|
-
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
4173
|
-
};
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
/**
|
|
4177
|
-
* @param {!proto.Material=} opt_value
|
|
4178
|
-
* @param {number=} opt_index
|
|
4179
|
-
* @return {!proto.Material}
|
|
4180
|
-
*/
|
|
4181
|
-
proto.GetListMaterialResponse.prototype.addMaterials = function(opt_value, opt_index) {
|
|
4182
|
-
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Material, opt_index);
|
|
4183
|
-
};
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
/**
|
|
4187
|
-
* Clears the list making it empty but non-null.
|
|
4188
|
-
* @return {!proto.GetListMaterialResponse} returns this
|
|
4189
|
-
*/
|
|
4190
|
-
proto.GetListMaterialResponse.prototype.clearMaterialsList = function() {
|
|
4191
|
-
return this.setMaterialsList([]);
|
|
4192
|
-
};
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
/**
|
|
4196
|
-
* optional prisca.v1.global.meta.Meta meta = 2;
|
|
4197
|
-
* @return {?proto.prisca.v1.global.meta.Meta}
|
|
4198
|
-
*/
|
|
4199
|
-
proto.GetListMaterialResponse.prototype.getMeta = function() {
|
|
4200
|
-
return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
|
|
4201
|
-
jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
|
|
4202
|
-
};
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
/**
|
|
4206
|
-
* @param {?proto.prisca.v1.global.meta.Meta|undefined} value
|
|
4207
|
-
* @return {!proto.GetListMaterialResponse} returns this
|
|
4208
|
-
*/
|
|
4209
|
-
proto.GetListMaterialResponse.prototype.setMeta = function(value) {
|
|
4210
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
4211
|
-
};
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
/**
|
|
4215
|
-
* Clears the message field making it undefined.
|
|
4216
|
-
* @return {!proto.GetListMaterialResponse} returns this
|
|
4217
|
-
*/
|
|
4218
|
-
proto.GetListMaterialResponse.prototype.clearMeta = function() {
|
|
4219
|
-
return this.setMeta(undefined);
|
|
4220
|
-
};
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
/**
|
|
4224
|
-
* Returns whether this field is set.
|
|
4225
|
-
* @return {boolean}
|
|
4226
|
-
*/
|
|
4227
|
-
proto.GetListMaterialResponse.prototype.hasMeta = function() {
|
|
4228
|
-
return jspb.Message.getField(this, 2) != null;
|
|
4229
|
-
};
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
goog.object.extend(exports, proto);
|