@aldiokta/protocgen 1.1.9 → 1.1.19

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.
Files changed (160) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/account_assignment/account_assignment.proto +79 -0
  3. package/prisca/v1/account_group/account_group.proto +86 -0
  4. package/prisca/v1/bidding/bidding.proto +159 -0
  5. package/prisca/v1/chart_of_account/chart_of_account.proto +87 -0
  6. package/prisca/v1/core/access_manager/access_manager.proto +281 -0
  7. package/prisca/v1/core/auth/auth.proto +150 -0
  8. package/prisca/v1/core/chat_messaging/chat_messaging.proto +55 -0
  9. package/prisca/v1/core/company/company.proto +92 -0
  10. package/prisca/v1/core/currency/currency.proto +76 -0
  11. package/prisca/v1/core/department_material/department_material.proto +69 -0
  12. package/prisca/v1/core/employee/employee.proto +129 -0
  13. package/prisca/v1/core/file_upload/file_upload.proto +31 -0
  14. package/prisca/v1/core/incoterm/incoterm.proto +76 -0
  15. package/prisca/v1/core/item_transaction/item_transaction.proto +120 -0
  16. package/prisca/v1/core/job_grade/job_grade.proto +79 -0
  17. package/prisca/v1/core/job_position/job_position.proto +113 -0
  18. package/prisca/v1/core/job_title/job_title.proto +89 -0
  19. package/prisca/v1/core/line_of_activity/line_of_activity.proto +42 -0
  20. package/prisca/v1/core/line_of_approval/line_of_approval.proto +94 -0
  21. package/prisca/v1/core/link_data_source/link_data_source.proto +78 -0
  22. package/prisca/v1/core/location/location.proto +289 -0
  23. package/prisca/v1/core/material/material.proto +131 -0
  24. package/prisca/v1/core/material_group/material_group.proto +85 -0
  25. package/prisca/v1/core/material_type/material_type.proto +86 -0
  26. package/prisca/v1/core/messaging/email_template.proto +75 -0
  27. package/prisca/v1/core/messaging/messaging.proto +29 -0
  28. package/prisca/v1/core/number_range/number_range.proto +89 -0
  29. package/prisca/v1/core/organization/organization.proto +94 -0
  30. package/prisca/v1/core/organization_level/organization_level.proto +77 -0
  31. package/prisca/v1/core/price_condition/price_condition.proto +83 -0
  32. package/prisca/v1/core/procurement/procurement.proto +54 -0
  33. package/prisca/v1/core/recipient_roles/recipient_roles.proto +10 -0
  34. package/prisca/v1/core/report/report.proto +90 -0
  35. package/prisca/v1/core/report/user_report.proto +74 -0
  36. package/prisca/v1/core/tax_code/tax_code.proto +77 -0
  37. package/prisca/v1/core/term_of_payment/term_of_payment.proto +64 -0
  38. package/prisca/v1/core/transaction_builder/transaction_builder.proto +325 -0
  39. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +88 -0
  40. package/prisca/v1/core/users/users.proto +45 -0
  41. package/prisca/v1/core/work_location/work_location.proto +122 -0
  42. package/prisca/v1/core/workflow/workflow.proto +216 -0
  43. package/prisca/v1/document_type/document_type.proto +80 -0
  44. package/prisca/v1/general_ledger_account/general_ledger_account.proto +98 -0
  45. package/prisca/v1/global/meta/meta.proto +57 -0
  46. package/prisca/v1/purchase_order/purchase_order.proto +155 -0
  47. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +304 -0
  48. package/prisca/v1/purchasing_group/purchasing_group.proto +87 -0
  49. package/prisca/v1/purchasing_organization/purchasing_organization.proto +68 -0
  50. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +70 -0
  51. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +80 -0
  52. package/prisca/v1/quotation/quotation.proto +82 -0
  53. package/prisca/v1/request_for_quotation/request_for_quotation.proto +166 -0
  54. package/prisca/v1/vendor_domain/vendor_domain.proto +225 -0
  55. package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +0 -199
  56. package/prisca/v1/account_assignment/account_assignment_pb.js +0 -2674
  57. package/prisca/v1/account_group/account_group_grpc_pb.js +0 -200
  58. package/prisca/v1/account_group/account_group_pb.js +0 -2937
  59. package/prisca/v1/bidding/bidding_grpc_pb.js +0 -174
  60. package/prisca/v1/bidding/bidding_pb.js +0 -3793
  61. package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +0 -199
  62. package/prisca/v1/chart_of_account/chart_of_account_pb.js +0 -2907
  63. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +0 -544
  64. package/prisca/v1/core/access_manager/access_manager_pb.js +0 -9383
  65. package/prisca/v1/core/auth/auth_grpc_pb.js +0 -423
  66. package/prisca/v1/core/auth/auth_pb.js +0 -4497
  67. package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +0 -111
  68. package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +0 -1531
  69. package/prisca/v1/core/company/company_grpc_pb.js +0 -178
  70. package/prisca/v1/core/company/company_pb.js +0 -3048
  71. package/prisca/v1/core/currency/currency_grpc_pb.js +0 -177
  72. package/prisca/v1/core/currency/currency_pb.js +0 -2522
  73. package/prisca/v1/core/department_material/department_material_grpc_pb.js +0 -144
  74. package/prisca/v1/core/department_material/department_material_pb.js +0 -2167
  75. package/prisca/v1/core/employee/employee_grpc_pb.js +0 -206
  76. package/prisca/v1/core/employee/employee_pb.js +0 -4283
  77. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +0 -44
  78. package/prisca/v1/core/file_upload/file_upload_pb.js +0 -872
  79. package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +0 -144
  80. package/prisca/v1/core/incoterm/incoterm_pb.js +0 -2497
  81. package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +0 -1
  82. package/prisca/v1/core/item_transaction/item_transaction_pb.js +0 -3880
  83. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +0 -178
  84. package/prisca/v1/core/job_grade/job_grade_pb.js +0 -2605
  85. package/prisca/v1/core/job_position/job_position_grpc_pb.js +0 -181
  86. package/prisca/v1/core/job_position/job_position_pb.js +0 -3762
  87. package/prisca/v1/core/job_title/job_title_grpc_pb.js +0 -178
  88. package/prisca/v1/core/job_title/job_title_pb.js +0 -2958
  89. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +0 -45
  90. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +0 -1188
  91. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +0 -200
  92. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +0 -3191
  93. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +0 -177
  94. package/prisca/v1/core/link_data_source/link_data_source_pb.js +0 -2612
  95. package/prisca/v1/core/location/location_grpc_pb.js +0 -837
  96. package/prisca/v1/core/location/location_pb.js +0 -10879
  97. package/prisca/v1/core/material/material_grpc_pb.js +0 -182
  98. package/prisca/v1/core/material/material_pb.js +0 -4180
  99. package/prisca/v1/core/material_group/material_group_grpc_pb.js +0 -178
  100. package/prisca/v1/core/material_group/material_group_pb.js +0 -2776
  101. package/prisca/v1/core/material_type/material_type_grpc_pb.js +0 -149
  102. package/prisca/v1/core/material_type/material_type_pb.js +0 -2697
  103. package/prisca/v1/core/messaging/email_template_grpc_pb.js +0 -177
  104. package/prisca/v1/core/messaging/email_template_pb.js +0 -2552
  105. package/prisca/v1/core/messaging/messaging_grpc_pb.js +0 -56
  106. package/prisca/v1/core/messaging/messaging_pb.js +0 -896
  107. package/prisca/v1/core/number_range/number_range_grpc_pb.js +0 -178
  108. package/prisca/v1/core/number_range/number_range_pb.js +0 -2926
  109. package/prisca/v1/core/organization/organization_grpc_pb.js +0 -180
  110. package/prisca/v1/core/organization/organization_pb.js +0 -3032
  111. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +0 -178
  112. package/prisca/v1/core/organization_level/organization_level_pb.js +0 -2545
  113. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +0 -146
  114. package/prisca/v1/core/price_condition/price_condition_pb.js +0 -2654
  115. package/prisca/v1/core/procurement/procurement_grpc_pb.js +0 -146
  116. package/prisca/v1/core/procurement/procurement_pb.js +0 -1681
  117. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +0 -1
  118. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +0 -206
  119. package/prisca/v1/core/report/report_grpc_pb.js +0 -200
  120. package/prisca/v1/core/report/report_pb.js +0 -2822
  121. package/prisca/v1/core/report/user_report_grpc_pb.js +0 -179
  122. package/prisca/v1/core/report/user_report_pb.js +0 -2452
  123. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +0 -177
  124. package/prisca/v1/core/tax_code/tax_code_pb.js +0 -2582
  125. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +0 -144
  126. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +0 -2105
  127. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +0 -498
  128. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +0 -10976
  129. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +0 -180
  130. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +0 -2798
  131. package/prisca/v1/core/users/users_grpc_pb.js +0 -45
  132. package/prisca/v1/core/users/users_pb.js +0 -1246
  133. package/prisca/v1/core/work_location/work_location_grpc_pb.js +0 -179
  134. package/prisca/v1/core/work_location/work_location_pb.js +0 -3972
  135. package/prisca/v1/core/workflow/workflow_grpc_pb.js +0 -203
  136. package/prisca/v1/core/workflow/workflow_pb.js +0 -7525
  137. package/prisca/v1/document_type/document_type_grpc_pb.js +0 -178
  138. package/prisca/v1/document_type/document_type_pb.js +0 -2746
  139. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +0 -181
  140. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +0 -3276
  141. package/prisca/v1/global/meta/meta_grpc_pb.js +0 -1
  142. package/prisca/v1/global/meta/meta_pb.js +0 -1179
  143. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +0 -228
  144. package/prisca/v1/purchase_order/purchase_order_pb.js +0 -4989
  145. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -512
  146. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -9917
  147. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +0 -178
  148. package/prisca/v1/purchasing_group/purchasing_group_pb.js +0 -2875
  149. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +0 -145
  150. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +0 -2139
  151. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +0 -146
  152. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +0 -2183
  153. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +0 -145
  154. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +0 -2543
  155. package/prisca/v1/quotation/quotation_grpc_pb.js +0 -151
  156. package/prisca/v1/quotation/quotation_pb.js +0 -3971
  157. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +0 -192
  158. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +0 -5703
  159. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +0 -224
  160. package/prisca/v1/vendor_domain/vendor_domain_pb.js +0 -6333
@@ -1,4180 +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, null, 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, null, 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
-
2723
- if (jspb.Message.GENERATE_TO_OBJECT) {
2724
- /**
2725
- * Creates an object representation of this proto.
2726
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2727
- * Optional fields that are not set will be set to undefined.
2728
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2729
- * For the list of reserved names please see:
2730
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2731
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2732
- * JSPB instance for transitional soy proto support:
2733
- * http://goto/soy-param-migration
2734
- * @return {!Object}
2735
- */
2736
- proto.DeleteMaterialRequest.prototype.toObject = function(opt_includeInstance) {
2737
- return proto.DeleteMaterialRequest.toObject(opt_includeInstance, this);
2738
- };
2739
-
2740
-
2741
- /**
2742
- * Static version of the {@see toObject} method.
2743
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2744
- * the JSPB instance for transitional soy proto support:
2745
- * http://goto/soy-param-migration
2746
- * @param {!proto.DeleteMaterialRequest} msg The msg instance to transform.
2747
- * @return {!Object}
2748
- * @suppress {unusedLocalVariables} f is only used for nested messages
2749
- */
2750
- proto.DeleteMaterialRequest.toObject = function(includeInstance, msg) {
2751
- var f, obj = {
2752
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
2753
- };
2754
-
2755
- if (includeInstance) {
2756
- obj.$jspbMessageInstance = msg;
2757
- }
2758
- return obj;
2759
- };
2760
- }
2761
-
2762
-
2763
- /**
2764
- * Deserializes binary data (in protobuf wire format).
2765
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2766
- * @return {!proto.DeleteMaterialRequest}
2767
- */
2768
- proto.DeleteMaterialRequest.deserializeBinary = function(bytes) {
2769
- var reader = new jspb.BinaryReader(bytes);
2770
- var msg = new proto.DeleteMaterialRequest;
2771
- return proto.DeleteMaterialRequest.deserializeBinaryFromReader(msg, reader);
2772
- };
2773
-
2774
-
2775
- /**
2776
- * Deserializes binary data (in protobuf wire format) from the
2777
- * given reader into the given message object.
2778
- * @param {!proto.DeleteMaterialRequest} msg The message object to deserialize into.
2779
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2780
- * @return {!proto.DeleteMaterialRequest}
2781
- */
2782
- proto.DeleteMaterialRequest.deserializeBinaryFromReader = function(msg, reader) {
2783
- while (reader.nextField()) {
2784
- if (reader.isEndGroup()) {
2785
- break;
2786
- }
2787
- var field = reader.getFieldNumber();
2788
- switch (field) {
2789
- case 1:
2790
- var value = /** @type {string} */ (reader.readString());
2791
- msg.setReferencesId(value);
2792
- break;
2793
- default:
2794
- reader.skipField();
2795
- break;
2796
- }
2797
- }
2798
- return msg;
2799
- };
2800
-
2801
-
2802
- /**
2803
- * Serializes the message to binary data (in protobuf wire format).
2804
- * @return {!Uint8Array}
2805
- */
2806
- proto.DeleteMaterialRequest.prototype.serializeBinary = function() {
2807
- var writer = new jspb.BinaryWriter();
2808
- proto.DeleteMaterialRequest.serializeBinaryToWriter(this, writer);
2809
- return writer.getResultBuffer();
2810
- };
2811
-
2812
-
2813
- /**
2814
- * Serializes the given message to binary data (in protobuf wire
2815
- * format), writing to the given BinaryWriter.
2816
- * @param {!proto.DeleteMaterialRequest} message
2817
- * @param {!jspb.BinaryWriter} writer
2818
- * @suppress {unusedLocalVariables} f is only used for nested messages
2819
- */
2820
- proto.DeleteMaterialRequest.serializeBinaryToWriter = function(message, writer) {
2821
- var f = undefined;
2822
- f = message.getReferencesId();
2823
- if (f.length > 0) {
2824
- writer.writeString(
2825
- 1,
2826
- f
2827
- );
2828
- }
2829
- };
2830
-
2831
-
2832
- /**
2833
- * optional string references_id = 1;
2834
- * @return {string}
2835
- */
2836
- proto.DeleteMaterialRequest.prototype.getReferencesId = function() {
2837
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2838
- };
2839
-
2840
-
2841
- /**
2842
- * @param {string} value
2843
- * @return {!proto.DeleteMaterialRequest} returns this
2844
- */
2845
- proto.DeleteMaterialRequest.prototype.setReferencesId = function(value) {
2846
- return jspb.Message.setProto3StringField(this, 1, value);
2847
- };
2848
-
2849
-
2850
-
2851
-
2852
-
2853
- if (jspb.Message.GENERATE_TO_OBJECT) {
2854
- /**
2855
- * Creates an object representation of this proto.
2856
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2857
- * Optional fields that are not set will be set to undefined.
2858
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2859
- * For the list of reserved names please see:
2860
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2861
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2862
- * JSPB instance for transitional soy proto support:
2863
- * http://goto/soy-param-migration
2864
- * @return {!Object}
2865
- */
2866
- proto.GetMaterialByIdRequest.prototype.toObject = function(opt_includeInstance) {
2867
- return proto.GetMaterialByIdRequest.toObject(opt_includeInstance, this);
2868
- };
2869
-
2870
-
2871
- /**
2872
- * Static version of the {@see toObject} method.
2873
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2874
- * the JSPB instance for transitional soy proto support:
2875
- * http://goto/soy-param-migration
2876
- * @param {!proto.GetMaterialByIdRequest} msg The msg instance to transform.
2877
- * @return {!Object}
2878
- * @suppress {unusedLocalVariables} f is only used for nested messages
2879
- */
2880
- proto.GetMaterialByIdRequest.toObject = function(includeInstance, msg) {
2881
- var f, obj = {
2882
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
2883
- };
2884
-
2885
- if (includeInstance) {
2886
- obj.$jspbMessageInstance = msg;
2887
- }
2888
- return obj;
2889
- };
2890
- }
2891
-
2892
-
2893
- /**
2894
- * Deserializes binary data (in protobuf wire format).
2895
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2896
- * @return {!proto.GetMaterialByIdRequest}
2897
- */
2898
- proto.GetMaterialByIdRequest.deserializeBinary = function(bytes) {
2899
- var reader = new jspb.BinaryReader(bytes);
2900
- var msg = new proto.GetMaterialByIdRequest;
2901
- return proto.GetMaterialByIdRequest.deserializeBinaryFromReader(msg, reader);
2902
- };
2903
-
2904
-
2905
- /**
2906
- * Deserializes binary data (in protobuf wire format) from the
2907
- * given reader into the given message object.
2908
- * @param {!proto.GetMaterialByIdRequest} msg The message object to deserialize into.
2909
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2910
- * @return {!proto.GetMaterialByIdRequest}
2911
- */
2912
- proto.GetMaterialByIdRequest.deserializeBinaryFromReader = function(msg, reader) {
2913
- while (reader.nextField()) {
2914
- if (reader.isEndGroup()) {
2915
- break;
2916
- }
2917
- var field = reader.getFieldNumber();
2918
- switch (field) {
2919
- case 1:
2920
- var value = /** @type {string} */ (reader.readString());
2921
- msg.setReferencesId(value);
2922
- break;
2923
- default:
2924
- reader.skipField();
2925
- break;
2926
- }
2927
- }
2928
- return msg;
2929
- };
2930
-
2931
-
2932
- /**
2933
- * Serializes the message to binary data (in protobuf wire format).
2934
- * @return {!Uint8Array}
2935
- */
2936
- proto.GetMaterialByIdRequest.prototype.serializeBinary = function() {
2937
- var writer = new jspb.BinaryWriter();
2938
- proto.GetMaterialByIdRequest.serializeBinaryToWriter(this, writer);
2939
- return writer.getResultBuffer();
2940
- };
2941
-
2942
-
2943
- /**
2944
- * Serializes the given message to binary data (in protobuf wire
2945
- * format), writing to the given BinaryWriter.
2946
- * @param {!proto.GetMaterialByIdRequest} message
2947
- * @param {!jspb.BinaryWriter} writer
2948
- * @suppress {unusedLocalVariables} f is only used for nested messages
2949
- */
2950
- proto.GetMaterialByIdRequest.serializeBinaryToWriter = function(message, writer) {
2951
- var f = undefined;
2952
- f = message.getReferencesId();
2953
- if (f.length > 0) {
2954
- writer.writeString(
2955
- 1,
2956
- f
2957
- );
2958
- }
2959
- };
2960
-
2961
-
2962
- /**
2963
- * optional string references_id = 1;
2964
- * @return {string}
2965
- */
2966
- proto.GetMaterialByIdRequest.prototype.getReferencesId = function() {
2967
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2968
- };
2969
-
2970
-
2971
- /**
2972
- * @param {string} value
2973
- * @return {!proto.GetMaterialByIdRequest} returns this
2974
- */
2975
- proto.GetMaterialByIdRequest.prototype.setReferencesId = function(value) {
2976
- return jspb.Message.setProto3StringField(this, 1, value);
2977
- };
2978
-
2979
-
2980
-
2981
-
2982
-
2983
- if (jspb.Message.GENERATE_TO_OBJECT) {
2984
- /**
2985
- * Creates an object representation of this proto.
2986
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2987
- * Optional fields that are not set will be set to undefined.
2988
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2989
- * For the list of reserved names please see:
2990
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2991
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2992
- * JSPB instance for transitional soy proto support:
2993
- * http://goto/soy-param-migration
2994
- * @return {!Object}
2995
- */
2996
- proto.GetListMaterialRequest.prototype.toObject = function(opt_includeInstance) {
2997
- return proto.GetListMaterialRequest.toObject(opt_includeInstance, this);
2998
- };
2999
-
3000
-
3001
- /**
3002
- * Static version of the {@see toObject} method.
3003
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3004
- * the JSPB instance for transitional soy proto support:
3005
- * http://goto/soy-param-migration
3006
- * @param {!proto.GetListMaterialRequest} msg The msg instance to transform.
3007
- * @return {!Object}
3008
- * @suppress {unusedLocalVariables} f is only used for nested messages
3009
- */
3010
- proto.GetListMaterialRequest.toObject = function(includeInstance, msg) {
3011
- var f, obj = {
3012
- pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
3013
- query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
3014
- };
3015
-
3016
- if (includeInstance) {
3017
- obj.$jspbMessageInstance = msg;
3018
- }
3019
- return obj;
3020
- };
3021
- }
3022
-
3023
-
3024
- /**
3025
- * Deserializes binary data (in protobuf wire format).
3026
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3027
- * @return {!proto.GetListMaterialRequest}
3028
- */
3029
- proto.GetListMaterialRequest.deserializeBinary = function(bytes) {
3030
- var reader = new jspb.BinaryReader(bytes);
3031
- var msg = new proto.GetListMaterialRequest;
3032
- return proto.GetListMaterialRequest.deserializeBinaryFromReader(msg, reader);
3033
- };
3034
-
3035
-
3036
- /**
3037
- * Deserializes binary data (in protobuf wire format) from the
3038
- * given reader into the given message object.
3039
- * @param {!proto.GetListMaterialRequest} msg The message object to deserialize into.
3040
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3041
- * @return {!proto.GetListMaterialRequest}
3042
- */
3043
- proto.GetListMaterialRequest.deserializeBinaryFromReader = function(msg, reader) {
3044
- while (reader.nextField()) {
3045
- if (reader.isEndGroup()) {
3046
- break;
3047
- }
3048
- var field = reader.getFieldNumber();
3049
- switch (field) {
3050
- case 1:
3051
- var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
3052
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
3053
- msg.setPagination(value);
3054
- break;
3055
- case 2:
3056
- var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
3057
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
3058
- msg.setQuery(value);
3059
- break;
3060
- default:
3061
- reader.skipField();
3062
- break;
3063
- }
3064
- }
3065
- return msg;
3066
- };
3067
-
3068
-
3069
- /**
3070
- * Serializes the message to binary data (in protobuf wire format).
3071
- * @return {!Uint8Array}
3072
- */
3073
- proto.GetListMaterialRequest.prototype.serializeBinary = function() {
3074
- var writer = new jspb.BinaryWriter();
3075
- proto.GetListMaterialRequest.serializeBinaryToWriter(this, writer);
3076
- return writer.getResultBuffer();
3077
- };
3078
-
3079
-
3080
- /**
3081
- * Serializes the given message to binary data (in protobuf wire
3082
- * format), writing to the given BinaryWriter.
3083
- * @param {!proto.GetListMaterialRequest} message
3084
- * @param {!jspb.BinaryWriter} writer
3085
- * @suppress {unusedLocalVariables} f is only used for nested messages
3086
- */
3087
- proto.GetListMaterialRequest.serializeBinaryToWriter = function(message, writer) {
3088
- var f = undefined;
3089
- f = message.getPagination();
3090
- if (f != null) {
3091
- writer.writeMessage(
3092
- 1,
3093
- f,
3094
- prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
3095
- );
3096
- }
3097
- f = message.getQuery();
3098
- if (f != null) {
3099
- writer.writeMessage(
3100
- 2,
3101
- f,
3102
- prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
3103
- );
3104
- }
3105
- };
3106
-
3107
-
3108
- /**
3109
- * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
3110
- * @return {?proto.prisca.v1.global.meta.PaginationRequest}
3111
- */
3112
- proto.GetListMaterialRequest.prototype.getPagination = function() {
3113
- return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
3114
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
3115
- };
3116
-
3117
-
3118
- /**
3119
- * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
3120
- * @return {!proto.GetListMaterialRequest} returns this
3121
- */
3122
- proto.GetListMaterialRequest.prototype.setPagination = function(value) {
3123
- return jspb.Message.setWrapperField(this, 1, value);
3124
- };
3125
-
3126
-
3127
- /**
3128
- * Clears the message field making it undefined.
3129
- * @return {!proto.GetListMaterialRequest} returns this
3130
- */
3131
- proto.GetListMaterialRequest.prototype.clearPagination = function() {
3132
- return this.setPagination(undefined);
3133
- };
3134
-
3135
-
3136
- /**
3137
- * Returns whether this field is set.
3138
- * @return {boolean}
3139
- */
3140
- proto.GetListMaterialRequest.prototype.hasPagination = function() {
3141
- return jspb.Message.getField(this, 1) != null;
3142
- };
3143
-
3144
-
3145
- /**
3146
- * optional prisca.v1.global.meta.FilterRequest query = 2;
3147
- * @return {?proto.prisca.v1.global.meta.FilterRequest}
3148
- */
3149
- proto.GetListMaterialRequest.prototype.getQuery = function() {
3150
- return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
3151
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
3152
- };
3153
-
3154
-
3155
- /**
3156
- * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
3157
- * @return {!proto.GetListMaterialRequest} returns this
3158
- */
3159
- proto.GetListMaterialRequest.prototype.setQuery = function(value) {
3160
- return jspb.Message.setWrapperField(this, 2, value);
3161
- };
3162
-
3163
-
3164
- /**
3165
- * Clears the message field making it undefined.
3166
- * @return {!proto.GetListMaterialRequest} returns this
3167
- */
3168
- proto.GetListMaterialRequest.prototype.clearQuery = function() {
3169
- return this.setQuery(undefined);
3170
- };
3171
-
3172
-
3173
- /**
3174
- * Returns whether this field is set.
3175
- * @return {boolean}
3176
- */
3177
- proto.GetListMaterialRequest.prototype.hasQuery = function() {
3178
- return jspb.Message.getField(this, 2) != null;
3179
- };
3180
-
3181
-
3182
-
3183
-
3184
-
3185
- if (jspb.Message.GENERATE_TO_OBJECT) {
3186
- /**
3187
- * Creates an object representation of this proto.
3188
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3189
- * Optional fields that are not set will be set to undefined.
3190
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3191
- * For the list of reserved names please see:
3192
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3193
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3194
- * JSPB instance for transitional soy proto support:
3195
- * http://goto/soy-param-migration
3196
- * @return {!Object}
3197
- */
3198
- proto.CreateMaterialResponse.prototype.toObject = function(opt_includeInstance) {
3199
- return proto.CreateMaterialResponse.toObject(opt_includeInstance, this);
3200
- };
3201
-
3202
-
3203
- /**
3204
- * Static version of the {@see toObject} method.
3205
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3206
- * the JSPB instance for transitional soy proto support:
3207
- * http://goto/soy-param-migration
3208
- * @param {!proto.CreateMaterialResponse} msg The msg instance to transform.
3209
- * @return {!Object}
3210
- * @suppress {unusedLocalVariables} f is only used for nested messages
3211
- */
3212
- proto.CreateMaterialResponse.toObject = function(includeInstance, msg) {
3213
- var f, obj = {
3214
- material: (f = msg.getMaterial()) && proto.Material.toObject(includeInstance, f),
3215
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3216
- };
3217
-
3218
- if (includeInstance) {
3219
- obj.$jspbMessageInstance = msg;
3220
- }
3221
- return obj;
3222
- };
3223
- }
3224
-
3225
-
3226
- /**
3227
- * Deserializes binary data (in protobuf wire format).
3228
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3229
- * @return {!proto.CreateMaterialResponse}
3230
- */
3231
- proto.CreateMaterialResponse.deserializeBinary = function(bytes) {
3232
- var reader = new jspb.BinaryReader(bytes);
3233
- var msg = new proto.CreateMaterialResponse;
3234
- return proto.CreateMaterialResponse.deserializeBinaryFromReader(msg, reader);
3235
- };
3236
-
3237
-
3238
- /**
3239
- * Deserializes binary data (in protobuf wire format) from the
3240
- * given reader into the given message object.
3241
- * @param {!proto.CreateMaterialResponse} msg The message object to deserialize into.
3242
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3243
- * @return {!proto.CreateMaterialResponse}
3244
- */
3245
- proto.CreateMaterialResponse.deserializeBinaryFromReader = function(msg, reader) {
3246
- while (reader.nextField()) {
3247
- if (reader.isEndGroup()) {
3248
- break;
3249
- }
3250
- var field = reader.getFieldNumber();
3251
- switch (field) {
3252
- case 1:
3253
- var value = new proto.Material;
3254
- reader.readMessage(value,proto.Material.deserializeBinaryFromReader);
3255
- msg.setMaterial(value);
3256
- break;
3257
- case 2:
3258
- var value = new prisca_v1_global_meta_meta_pb.Meta;
3259
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3260
- msg.setMeta(value);
3261
- break;
3262
- default:
3263
- reader.skipField();
3264
- break;
3265
- }
3266
- }
3267
- return msg;
3268
- };
3269
-
3270
-
3271
- /**
3272
- * Serializes the message to binary data (in protobuf wire format).
3273
- * @return {!Uint8Array}
3274
- */
3275
- proto.CreateMaterialResponse.prototype.serializeBinary = function() {
3276
- var writer = new jspb.BinaryWriter();
3277
- proto.CreateMaterialResponse.serializeBinaryToWriter(this, writer);
3278
- return writer.getResultBuffer();
3279
- };
3280
-
3281
-
3282
- /**
3283
- * Serializes the given message to binary data (in protobuf wire
3284
- * format), writing to the given BinaryWriter.
3285
- * @param {!proto.CreateMaterialResponse} message
3286
- * @param {!jspb.BinaryWriter} writer
3287
- * @suppress {unusedLocalVariables} f is only used for nested messages
3288
- */
3289
- proto.CreateMaterialResponse.serializeBinaryToWriter = function(message, writer) {
3290
- var f = undefined;
3291
- f = message.getMaterial();
3292
- if (f != null) {
3293
- writer.writeMessage(
3294
- 1,
3295
- f,
3296
- proto.Material.serializeBinaryToWriter
3297
- );
3298
- }
3299
- f = message.getMeta();
3300
- if (f != null) {
3301
- writer.writeMessage(
3302
- 2,
3303
- f,
3304
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3305
- );
3306
- }
3307
- };
3308
-
3309
-
3310
- /**
3311
- * optional Material material = 1;
3312
- * @return {?proto.Material}
3313
- */
3314
- proto.CreateMaterialResponse.prototype.getMaterial = function() {
3315
- return /** @type{?proto.Material} */ (
3316
- jspb.Message.getWrapperField(this, proto.Material, 1));
3317
- };
3318
-
3319
-
3320
- /**
3321
- * @param {?proto.Material|undefined} value
3322
- * @return {!proto.CreateMaterialResponse} returns this
3323
- */
3324
- proto.CreateMaterialResponse.prototype.setMaterial = function(value) {
3325
- return jspb.Message.setWrapperField(this, 1, value);
3326
- };
3327
-
3328
-
3329
- /**
3330
- * Clears the message field making it undefined.
3331
- * @return {!proto.CreateMaterialResponse} returns this
3332
- */
3333
- proto.CreateMaterialResponse.prototype.clearMaterial = function() {
3334
- return this.setMaterial(undefined);
3335
- };
3336
-
3337
-
3338
- /**
3339
- * Returns whether this field is set.
3340
- * @return {boolean}
3341
- */
3342
- proto.CreateMaterialResponse.prototype.hasMaterial = function() {
3343
- return jspb.Message.getField(this, 1) != null;
3344
- };
3345
-
3346
-
3347
- /**
3348
- * optional prisca.v1.global.meta.Meta meta = 2;
3349
- * @return {?proto.prisca.v1.global.meta.Meta}
3350
- */
3351
- proto.CreateMaterialResponse.prototype.getMeta = function() {
3352
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3353
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3354
- };
3355
-
3356
-
3357
- /**
3358
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3359
- * @return {!proto.CreateMaterialResponse} returns this
3360
- */
3361
- proto.CreateMaterialResponse.prototype.setMeta = function(value) {
3362
- return jspb.Message.setWrapperField(this, 2, value);
3363
- };
3364
-
3365
-
3366
- /**
3367
- * Clears the message field making it undefined.
3368
- * @return {!proto.CreateMaterialResponse} returns this
3369
- */
3370
- proto.CreateMaterialResponse.prototype.clearMeta = function() {
3371
- return this.setMeta(undefined);
3372
- };
3373
-
3374
-
3375
- /**
3376
- * Returns whether this field is set.
3377
- * @return {boolean}
3378
- */
3379
- proto.CreateMaterialResponse.prototype.hasMeta = function() {
3380
- return jspb.Message.getField(this, 2) != null;
3381
- };
3382
-
3383
-
3384
-
3385
-
3386
-
3387
- if (jspb.Message.GENERATE_TO_OBJECT) {
3388
- /**
3389
- * Creates an object representation of this proto.
3390
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3391
- * Optional fields that are not set will be set to undefined.
3392
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3393
- * For the list of reserved names please see:
3394
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3395
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3396
- * JSPB instance for transitional soy proto support:
3397
- * http://goto/soy-param-migration
3398
- * @return {!Object}
3399
- */
3400
- proto.UpdateMaterialResponse.prototype.toObject = function(opt_includeInstance) {
3401
- return proto.UpdateMaterialResponse.toObject(opt_includeInstance, this);
3402
- };
3403
-
3404
-
3405
- /**
3406
- * Static version of the {@see toObject} method.
3407
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3408
- * the JSPB instance for transitional soy proto support:
3409
- * http://goto/soy-param-migration
3410
- * @param {!proto.UpdateMaterialResponse} msg The msg instance to transform.
3411
- * @return {!Object}
3412
- * @suppress {unusedLocalVariables} f is only used for nested messages
3413
- */
3414
- proto.UpdateMaterialResponse.toObject = function(includeInstance, msg) {
3415
- var f, obj = {
3416
- material: (f = msg.getMaterial()) && proto.Material.toObject(includeInstance, f),
3417
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3418
- };
3419
-
3420
- if (includeInstance) {
3421
- obj.$jspbMessageInstance = msg;
3422
- }
3423
- return obj;
3424
- };
3425
- }
3426
-
3427
-
3428
- /**
3429
- * Deserializes binary data (in protobuf wire format).
3430
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3431
- * @return {!proto.UpdateMaterialResponse}
3432
- */
3433
- proto.UpdateMaterialResponse.deserializeBinary = function(bytes) {
3434
- var reader = new jspb.BinaryReader(bytes);
3435
- var msg = new proto.UpdateMaterialResponse;
3436
- return proto.UpdateMaterialResponse.deserializeBinaryFromReader(msg, reader);
3437
- };
3438
-
3439
-
3440
- /**
3441
- * Deserializes binary data (in protobuf wire format) from the
3442
- * given reader into the given message object.
3443
- * @param {!proto.UpdateMaterialResponse} msg The message object to deserialize into.
3444
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3445
- * @return {!proto.UpdateMaterialResponse}
3446
- */
3447
- proto.UpdateMaterialResponse.deserializeBinaryFromReader = function(msg, reader) {
3448
- while (reader.nextField()) {
3449
- if (reader.isEndGroup()) {
3450
- break;
3451
- }
3452
- var field = reader.getFieldNumber();
3453
- switch (field) {
3454
- case 1:
3455
- var value = new proto.Material;
3456
- reader.readMessage(value,proto.Material.deserializeBinaryFromReader);
3457
- msg.setMaterial(value);
3458
- break;
3459
- case 2:
3460
- var value = new prisca_v1_global_meta_meta_pb.Meta;
3461
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3462
- msg.setMeta(value);
3463
- break;
3464
- default:
3465
- reader.skipField();
3466
- break;
3467
- }
3468
- }
3469
- return msg;
3470
- };
3471
-
3472
-
3473
- /**
3474
- * Serializes the message to binary data (in protobuf wire format).
3475
- * @return {!Uint8Array}
3476
- */
3477
- proto.UpdateMaterialResponse.prototype.serializeBinary = function() {
3478
- var writer = new jspb.BinaryWriter();
3479
- proto.UpdateMaterialResponse.serializeBinaryToWriter(this, writer);
3480
- return writer.getResultBuffer();
3481
- };
3482
-
3483
-
3484
- /**
3485
- * Serializes the given message to binary data (in protobuf wire
3486
- * format), writing to the given BinaryWriter.
3487
- * @param {!proto.UpdateMaterialResponse} message
3488
- * @param {!jspb.BinaryWriter} writer
3489
- * @suppress {unusedLocalVariables} f is only used for nested messages
3490
- */
3491
- proto.UpdateMaterialResponse.serializeBinaryToWriter = function(message, writer) {
3492
- var f = undefined;
3493
- f = message.getMaterial();
3494
- if (f != null) {
3495
- writer.writeMessage(
3496
- 1,
3497
- f,
3498
- proto.Material.serializeBinaryToWriter
3499
- );
3500
- }
3501
- f = message.getMeta();
3502
- if (f != null) {
3503
- writer.writeMessage(
3504
- 2,
3505
- f,
3506
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3507
- );
3508
- }
3509
- };
3510
-
3511
-
3512
- /**
3513
- * optional Material material = 1;
3514
- * @return {?proto.Material}
3515
- */
3516
- proto.UpdateMaterialResponse.prototype.getMaterial = function() {
3517
- return /** @type{?proto.Material} */ (
3518
- jspb.Message.getWrapperField(this, proto.Material, 1));
3519
- };
3520
-
3521
-
3522
- /**
3523
- * @param {?proto.Material|undefined} value
3524
- * @return {!proto.UpdateMaterialResponse} returns this
3525
- */
3526
- proto.UpdateMaterialResponse.prototype.setMaterial = function(value) {
3527
- return jspb.Message.setWrapperField(this, 1, value);
3528
- };
3529
-
3530
-
3531
- /**
3532
- * Clears the message field making it undefined.
3533
- * @return {!proto.UpdateMaterialResponse} returns this
3534
- */
3535
- proto.UpdateMaterialResponse.prototype.clearMaterial = function() {
3536
- return this.setMaterial(undefined);
3537
- };
3538
-
3539
-
3540
- /**
3541
- * Returns whether this field is set.
3542
- * @return {boolean}
3543
- */
3544
- proto.UpdateMaterialResponse.prototype.hasMaterial = function() {
3545
- return jspb.Message.getField(this, 1) != null;
3546
- };
3547
-
3548
-
3549
- /**
3550
- * optional prisca.v1.global.meta.Meta meta = 2;
3551
- * @return {?proto.prisca.v1.global.meta.Meta}
3552
- */
3553
- proto.UpdateMaterialResponse.prototype.getMeta = function() {
3554
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3555
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3556
- };
3557
-
3558
-
3559
- /**
3560
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3561
- * @return {!proto.UpdateMaterialResponse} returns this
3562
- */
3563
- proto.UpdateMaterialResponse.prototype.setMeta = function(value) {
3564
- return jspb.Message.setWrapperField(this, 2, value);
3565
- };
3566
-
3567
-
3568
- /**
3569
- * Clears the message field making it undefined.
3570
- * @return {!proto.UpdateMaterialResponse} returns this
3571
- */
3572
- proto.UpdateMaterialResponse.prototype.clearMeta = function() {
3573
- return this.setMeta(undefined);
3574
- };
3575
-
3576
-
3577
- /**
3578
- * Returns whether this field is set.
3579
- * @return {boolean}
3580
- */
3581
- proto.UpdateMaterialResponse.prototype.hasMeta = function() {
3582
- return jspb.Message.getField(this, 2) != null;
3583
- };
3584
-
3585
-
3586
-
3587
-
3588
-
3589
- if (jspb.Message.GENERATE_TO_OBJECT) {
3590
- /**
3591
- * Creates an object representation of this proto.
3592
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3593
- * Optional fields that are not set will be set to undefined.
3594
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3595
- * For the list of reserved names please see:
3596
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3597
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3598
- * JSPB instance for transitional soy proto support:
3599
- * http://goto/soy-param-migration
3600
- * @return {!Object}
3601
- */
3602
- proto.DeleteMaterialResponse.prototype.toObject = function(opt_includeInstance) {
3603
- return proto.DeleteMaterialResponse.toObject(opt_includeInstance, this);
3604
- };
3605
-
3606
-
3607
- /**
3608
- * Static version of the {@see toObject} method.
3609
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3610
- * the JSPB instance for transitional soy proto support:
3611
- * http://goto/soy-param-migration
3612
- * @param {!proto.DeleteMaterialResponse} msg The msg instance to transform.
3613
- * @return {!Object}
3614
- * @suppress {unusedLocalVariables} f is only used for nested messages
3615
- */
3616
- proto.DeleteMaterialResponse.toObject = function(includeInstance, msg) {
3617
- var f, obj = {
3618
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
3619
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3620
- };
3621
-
3622
- if (includeInstance) {
3623
- obj.$jspbMessageInstance = msg;
3624
- }
3625
- return obj;
3626
- };
3627
- }
3628
-
3629
-
3630
- /**
3631
- * Deserializes binary data (in protobuf wire format).
3632
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3633
- * @return {!proto.DeleteMaterialResponse}
3634
- */
3635
- proto.DeleteMaterialResponse.deserializeBinary = function(bytes) {
3636
- var reader = new jspb.BinaryReader(bytes);
3637
- var msg = new proto.DeleteMaterialResponse;
3638
- return proto.DeleteMaterialResponse.deserializeBinaryFromReader(msg, reader);
3639
- };
3640
-
3641
-
3642
- /**
3643
- * Deserializes binary data (in protobuf wire format) from the
3644
- * given reader into the given message object.
3645
- * @param {!proto.DeleteMaterialResponse} msg The message object to deserialize into.
3646
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3647
- * @return {!proto.DeleteMaterialResponse}
3648
- */
3649
- proto.DeleteMaterialResponse.deserializeBinaryFromReader = function(msg, reader) {
3650
- while (reader.nextField()) {
3651
- if (reader.isEndGroup()) {
3652
- break;
3653
- }
3654
- var field = reader.getFieldNumber();
3655
- switch (field) {
3656
- case 1:
3657
- var value = /** @type {string} */ (reader.readString());
3658
- msg.setReferencesId(value);
3659
- break;
3660
- case 2:
3661
- var value = new prisca_v1_global_meta_meta_pb.Meta;
3662
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3663
- msg.setMeta(value);
3664
- break;
3665
- default:
3666
- reader.skipField();
3667
- break;
3668
- }
3669
- }
3670
- return msg;
3671
- };
3672
-
3673
-
3674
- /**
3675
- * Serializes the message to binary data (in protobuf wire format).
3676
- * @return {!Uint8Array}
3677
- */
3678
- proto.DeleteMaterialResponse.prototype.serializeBinary = function() {
3679
- var writer = new jspb.BinaryWriter();
3680
- proto.DeleteMaterialResponse.serializeBinaryToWriter(this, writer);
3681
- return writer.getResultBuffer();
3682
- };
3683
-
3684
-
3685
- /**
3686
- * Serializes the given message to binary data (in protobuf wire
3687
- * format), writing to the given BinaryWriter.
3688
- * @param {!proto.DeleteMaterialResponse} message
3689
- * @param {!jspb.BinaryWriter} writer
3690
- * @suppress {unusedLocalVariables} f is only used for nested messages
3691
- */
3692
- proto.DeleteMaterialResponse.serializeBinaryToWriter = function(message, writer) {
3693
- var f = undefined;
3694
- f = message.getReferencesId();
3695
- if (f.length > 0) {
3696
- writer.writeString(
3697
- 1,
3698
- f
3699
- );
3700
- }
3701
- f = message.getMeta();
3702
- if (f != null) {
3703
- writer.writeMessage(
3704
- 2,
3705
- f,
3706
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3707
- );
3708
- }
3709
- };
3710
-
3711
-
3712
- /**
3713
- * optional string references_id = 1;
3714
- * @return {string}
3715
- */
3716
- proto.DeleteMaterialResponse.prototype.getReferencesId = function() {
3717
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3718
- };
3719
-
3720
-
3721
- /**
3722
- * @param {string} value
3723
- * @return {!proto.DeleteMaterialResponse} returns this
3724
- */
3725
- proto.DeleteMaterialResponse.prototype.setReferencesId = function(value) {
3726
- return jspb.Message.setProto3StringField(this, 1, value);
3727
- };
3728
-
3729
-
3730
- /**
3731
- * optional prisca.v1.global.meta.Meta meta = 2;
3732
- * @return {?proto.prisca.v1.global.meta.Meta}
3733
- */
3734
- proto.DeleteMaterialResponse.prototype.getMeta = function() {
3735
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3736
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3737
- };
3738
-
3739
-
3740
- /**
3741
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3742
- * @return {!proto.DeleteMaterialResponse} returns this
3743
- */
3744
- proto.DeleteMaterialResponse.prototype.setMeta = function(value) {
3745
- return jspb.Message.setWrapperField(this, 2, value);
3746
- };
3747
-
3748
-
3749
- /**
3750
- * Clears the message field making it undefined.
3751
- * @return {!proto.DeleteMaterialResponse} returns this
3752
- */
3753
- proto.DeleteMaterialResponse.prototype.clearMeta = function() {
3754
- return this.setMeta(undefined);
3755
- };
3756
-
3757
-
3758
- /**
3759
- * Returns whether this field is set.
3760
- * @return {boolean}
3761
- */
3762
- proto.DeleteMaterialResponse.prototype.hasMeta = function() {
3763
- return jspb.Message.getField(this, 2) != null;
3764
- };
3765
-
3766
-
3767
-
3768
-
3769
-
3770
- if (jspb.Message.GENERATE_TO_OBJECT) {
3771
- /**
3772
- * Creates an object representation of this proto.
3773
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3774
- * Optional fields that are not set will be set to undefined.
3775
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3776
- * For the list of reserved names please see:
3777
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3778
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3779
- * JSPB instance for transitional soy proto support:
3780
- * http://goto/soy-param-migration
3781
- * @return {!Object}
3782
- */
3783
- proto.GetMaterialByIdResponse.prototype.toObject = function(opt_includeInstance) {
3784
- return proto.GetMaterialByIdResponse.toObject(opt_includeInstance, this);
3785
- };
3786
-
3787
-
3788
- /**
3789
- * Static version of the {@see toObject} method.
3790
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3791
- * the JSPB instance for transitional soy proto support:
3792
- * http://goto/soy-param-migration
3793
- * @param {!proto.GetMaterialByIdResponse} msg The msg instance to transform.
3794
- * @return {!Object}
3795
- * @suppress {unusedLocalVariables} f is only used for nested messages
3796
- */
3797
- proto.GetMaterialByIdResponse.toObject = function(includeInstance, msg) {
3798
- var f, obj = {
3799
- material: (f = msg.getMaterial()) && proto.Material.toObject(includeInstance, f),
3800
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3801
- };
3802
-
3803
- if (includeInstance) {
3804
- obj.$jspbMessageInstance = msg;
3805
- }
3806
- return obj;
3807
- };
3808
- }
3809
-
3810
-
3811
- /**
3812
- * Deserializes binary data (in protobuf wire format).
3813
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3814
- * @return {!proto.GetMaterialByIdResponse}
3815
- */
3816
- proto.GetMaterialByIdResponse.deserializeBinary = function(bytes) {
3817
- var reader = new jspb.BinaryReader(bytes);
3818
- var msg = new proto.GetMaterialByIdResponse;
3819
- return proto.GetMaterialByIdResponse.deserializeBinaryFromReader(msg, reader);
3820
- };
3821
-
3822
-
3823
- /**
3824
- * Deserializes binary data (in protobuf wire format) from the
3825
- * given reader into the given message object.
3826
- * @param {!proto.GetMaterialByIdResponse} msg The message object to deserialize into.
3827
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3828
- * @return {!proto.GetMaterialByIdResponse}
3829
- */
3830
- proto.GetMaterialByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
3831
- while (reader.nextField()) {
3832
- if (reader.isEndGroup()) {
3833
- break;
3834
- }
3835
- var field = reader.getFieldNumber();
3836
- switch (field) {
3837
- case 1:
3838
- var value = new proto.Material;
3839
- reader.readMessage(value,proto.Material.deserializeBinaryFromReader);
3840
- msg.setMaterial(value);
3841
- break;
3842
- case 2:
3843
- var value = new prisca_v1_global_meta_meta_pb.Meta;
3844
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3845
- msg.setMeta(value);
3846
- break;
3847
- default:
3848
- reader.skipField();
3849
- break;
3850
- }
3851
- }
3852
- return msg;
3853
- };
3854
-
3855
-
3856
- /**
3857
- * Serializes the message to binary data (in protobuf wire format).
3858
- * @return {!Uint8Array}
3859
- */
3860
- proto.GetMaterialByIdResponse.prototype.serializeBinary = function() {
3861
- var writer = new jspb.BinaryWriter();
3862
- proto.GetMaterialByIdResponse.serializeBinaryToWriter(this, writer);
3863
- return writer.getResultBuffer();
3864
- };
3865
-
3866
-
3867
- /**
3868
- * Serializes the given message to binary data (in protobuf wire
3869
- * format), writing to the given BinaryWriter.
3870
- * @param {!proto.GetMaterialByIdResponse} message
3871
- * @param {!jspb.BinaryWriter} writer
3872
- * @suppress {unusedLocalVariables} f is only used for nested messages
3873
- */
3874
- proto.GetMaterialByIdResponse.serializeBinaryToWriter = function(message, writer) {
3875
- var f = undefined;
3876
- f = message.getMaterial();
3877
- if (f != null) {
3878
- writer.writeMessage(
3879
- 1,
3880
- f,
3881
- proto.Material.serializeBinaryToWriter
3882
- );
3883
- }
3884
- f = message.getMeta();
3885
- if (f != null) {
3886
- writer.writeMessage(
3887
- 2,
3888
- f,
3889
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3890
- );
3891
- }
3892
- };
3893
-
3894
-
3895
- /**
3896
- * optional Material material = 1;
3897
- * @return {?proto.Material}
3898
- */
3899
- proto.GetMaterialByIdResponse.prototype.getMaterial = function() {
3900
- return /** @type{?proto.Material} */ (
3901
- jspb.Message.getWrapperField(this, proto.Material, 1));
3902
- };
3903
-
3904
-
3905
- /**
3906
- * @param {?proto.Material|undefined} value
3907
- * @return {!proto.GetMaterialByIdResponse} returns this
3908
- */
3909
- proto.GetMaterialByIdResponse.prototype.setMaterial = function(value) {
3910
- return jspb.Message.setWrapperField(this, 1, value);
3911
- };
3912
-
3913
-
3914
- /**
3915
- * Clears the message field making it undefined.
3916
- * @return {!proto.GetMaterialByIdResponse} returns this
3917
- */
3918
- proto.GetMaterialByIdResponse.prototype.clearMaterial = function() {
3919
- return this.setMaterial(undefined);
3920
- };
3921
-
3922
-
3923
- /**
3924
- * Returns whether this field is set.
3925
- * @return {boolean}
3926
- */
3927
- proto.GetMaterialByIdResponse.prototype.hasMaterial = function() {
3928
- return jspb.Message.getField(this, 1) != null;
3929
- };
3930
-
3931
-
3932
- /**
3933
- * optional prisca.v1.global.meta.Meta meta = 2;
3934
- * @return {?proto.prisca.v1.global.meta.Meta}
3935
- */
3936
- proto.GetMaterialByIdResponse.prototype.getMeta = function() {
3937
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3938
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3939
- };
3940
-
3941
-
3942
- /**
3943
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3944
- * @return {!proto.GetMaterialByIdResponse} returns this
3945
- */
3946
- proto.GetMaterialByIdResponse.prototype.setMeta = function(value) {
3947
- return jspb.Message.setWrapperField(this, 2, value);
3948
- };
3949
-
3950
-
3951
- /**
3952
- * Clears the message field making it undefined.
3953
- * @return {!proto.GetMaterialByIdResponse} returns this
3954
- */
3955
- proto.GetMaterialByIdResponse.prototype.clearMeta = function() {
3956
- return this.setMeta(undefined);
3957
- };
3958
-
3959
-
3960
- /**
3961
- * Returns whether this field is set.
3962
- * @return {boolean}
3963
- */
3964
- proto.GetMaterialByIdResponse.prototype.hasMeta = function() {
3965
- return jspb.Message.getField(this, 2) != null;
3966
- };
3967
-
3968
-
3969
-
3970
- /**
3971
- * List of repeated fields within this message type.
3972
- * @private {!Array<number>}
3973
- * @const
3974
- */
3975
- proto.GetListMaterialResponse.repeatedFields_ = [1];
3976
-
3977
-
3978
-
3979
- if (jspb.Message.GENERATE_TO_OBJECT) {
3980
- /**
3981
- * Creates an object representation of this proto.
3982
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3983
- * Optional fields that are not set will be set to undefined.
3984
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3985
- * For the list of reserved names please see:
3986
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3987
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3988
- * JSPB instance for transitional soy proto support:
3989
- * http://goto/soy-param-migration
3990
- * @return {!Object}
3991
- */
3992
- proto.GetListMaterialResponse.prototype.toObject = function(opt_includeInstance) {
3993
- return proto.GetListMaterialResponse.toObject(opt_includeInstance, this);
3994
- };
3995
-
3996
-
3997
- /**
3998
- * Static version of the {@see toObject} method.
3999
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4000
- * the JSPB instance for transitional soy proto support:
4001
- * http://goto/soy-param-migration
4002
- * @param {!proto.GetListMaterialResponse} msg The msg instance to transform.
4003
- * @return {!Object}
4004
- * @suppress {unusedLocalVariables} f is only used for nested messages
4005
- */
4006
- proto.GetListMaterialResponse.toObject = function(includeInstance, msg) {
4007
- var f, obj = {
4008
- materialsList: jspb.Message.toObjectList(msg.getMaterialsList(),
4009
- proto.Material.toObject, includeInstance),
4010
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
4011
- };
4012
-
4013
- if (includeInstance) {
4014
- obj.$jspbMessageInstance = msg;
4015
- }
4016
- return obj;
4017
- };
4018
- }
4019
-
4020
-
4021
- /**
4022
- * Deserializes binary data (in protobuf wire format).
4023
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
4024
- * @return {!proto.GetListMaterialResponse}
4025
- */
4026
- proto.GetListMaterialResponse.deserializeBinary = function(bytes) {
4027
- var reader = new jspb.BinaryReader(bytes);
4028
- var msg = new proto.GetListMaterialResponse;
4029
- return proto.GetListMaterialResponse.deserializeBinaryFromReader(msg, reader);
4030
- };
4031
-
4032
-
4033
- /**
4034
- * Deserializes binary data (in protobuf wire format) from the
4035
- * given reader into the given message object.
4036
- * @param {!proto.GetListMaterialResponse} msg The message object to deserialize into.
4037
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4038
- * @return {!proto.GetListMaterialResponse}
4039
- */
4040
- proto.GetListMaterialResponse.deserializeBinaryFromReader = function(msg, reader) {
4041
- while (reader.nextField()) {
4042
- if (reader.isEndGroup()) {
4043
- break;
4044
- }
4045
- var field = reader.getFieldNumber();
4046
- switch (field) {
4047
- case 1:
4048
- var value = new proto.Material;
4049
- reader.readMessage(value,proto.Material.deserializeBinaryFromReader);
4050
- msg.addMaterials(value);
4051
- break;
4052
- case 2:
4053
- var value = new prisca_v1_global_meta_meta_pb.Meta;
4054
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
4055
- msg.setMeta(value);
4056
- break;
4057
- default:
4058
- reader.skipField();
4059
- break;
4060
- }
4061
- }
4062
- return msg;
4063
- };
4064
-
4065
-
4066
- /**
4067
- * Serializes the message to binary data (in protobuf wire format).
4068
- * @return {!Uint8Array}
4069
- */
4070
- proto.GetListMaterialResponse.prototype.serializeBinary = function() {
4071
- var writer = new jspb.BinaryWriter();
4072
- proto.GetListMaterialResponse.serializeBinaryToWriter(this, writer);
4073
- return writer.getResultBuffer();
4074
- };
4075
-
4076
-
4077
- /**
4078
- * Serializes the given message to binary data (in protobuf wire
4079
- * format), writing to the given BinaryWriter.
4080
- * @param {!proto.GetListMaterialResponse} message
4081
- * @param {!jspb.BinaryWriter} writer
4082
- * @suppress {unusedLocalVariables} f is only used for nested messages
4083
- */
4084
- proto.GetListMaterialResponse.serializeBinaryToWriter = function(message, writer) {
4085
- var f = undefined;
4086
- f = message.getMaterialsList();
4087
- if (f.length > 0) {
4088
- writer.writeRepeatedMessage(
4089
- 1,
4090
- f,
4091
- proto.Material.serializeBinaryToWriter
4092
- );
4093
- }
4094
- f = message.getMeta();
4095
- if (f != null) {
4096
- writer.writeMessage(
4097
- 2,
4098
- f,
4099
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
4100
- );
4101
- }
4102
- };
4103
-
4104
-
4105
- /**
4106
- * repeated Material materials = 1;
4107
- * @return {!Array<!proto.Material>}
4108
- */
4109
- proto.GetListMaterialResponse.prototype.getMaterialsList = function() {
4110
- return /** @type{!Array<!proto.Material>} */ (
4111
- jspb.Message.getRepeatedWrapperField(this, proto.Material, 1));
4112
- };
4113
-
4114
-
4115
- /**
4116
- * @param {!Array<!proto.Material>} value
4117
- * @return {!proto.GetListMaterialResponse} returns this
4118
- */
4119
- proto.GetListMaterialResponse.prototype.setMaterialsList = function(value) {
4120
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
4121
- };
4122
-
4123
-
4124
- /**
4125
- * @param {!proto.Material=} opt_value
4126
- * @param {number=} opt_index
4127
- * @return {!proto.Material}
4128
- */
4129
- proto.GetListMaterialResponse.prototype.addMaterials = function(opt_value, opt_index) {
4130
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Material, opt_index);
4131
- };
4132
-
4133
-
4134
- /**
4135
- * Clears the list making it empty but non-null.
4136
- * @return {!proto.GetListMaterialResponse} returns this
4137
- */
4138
- proto.GetListMaterialResponse.prototype.clearMaterialsList = function() {
4139
- return this.setMaterialsList([]);
4140
- };
4141
-
4142
-
4143
- /**
4144
- * optional prisca.v1.global.meta.Meta meta = 2;
4145
- * @return {?proto.prisca.v1.global.meta.Meta}
4146
- */
4147
- proto.GetListMaterialResponse.prototype.getMeta = function() {
4148
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
4149
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
4150
- };
4151
-
4152
-
4153
- /**
4154
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
4155
- * @return {!proto.GetListMaterialResponse} returns this
4156
- */
4157
- proto.GetListMaterialResponse.prototype.setMeta = function(value) {
4158
- return jspb.Message.setWrapperField(this, 2, value);
4159
- };
4160
-
4161
-
4162
- /**
4163
- * Clears the message field making it undefined.
4164
- * @return {!proto.GetListMaterialResponse} returns this
4165
- */
4166
- proto.GetListMaterialResponse.prototype.clearMeta = function() {
4167
- return this.setMeta(undefined);
4168
- };
4169
-
4170
-
4171
- /**
4172
- * Returns whether this field is set.
4173
- * @return {boolean}
4174
- */
4175
- proto.GetListMaterialResponse.prototype.hasMeta = function() {
4176
- return jspb.Message.getField(this, 2) != null;
4177
- };
4178
-
4179
-
4180
- goog.object.extend(exports, proto);