@aldiokta/protocgen 1.0.56 → 1.0.57

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