@aldiokta/protocgen 1.1.43 → 1.1.45

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