@aldiokta/protocgen 1.1.23 → 1.1.25

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 (169) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +199 -0
  3. package/prisca/v1/account_assignment/account_assignment_pb.js +2726 -0
  4. package/prisca/v1/account_group/account_group_grpc_pb.js +200 -0
  5. package/prisca/v1/account_group/account_group_pb.js +2989 -0
  6. package/prisca/v1/bidding/bidding_grpc_pb.js +294 -0
  7. package/prisca/v1/bidding/bidding_pb.js +7488 -0
  8. package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +199 -0
  9. package/prisca/v1/chart_of_account/chart_of_account_pb.js +2959 -0
  10. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +544 -0
  11. package/prisca/v1/core/access_manager/access_manager_pb.js +9383 -0
  12. package/prisca/v1/core/auth/auth_grpc_pb.js +423 -0
  13. package/prisca/v1/core/auth/auth_pb.js +4497 -0
  14. package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +111 -0
  15. package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +1531 -0
  16. package/prisca/v1/core/company/company_grpc_pb.js +178 -0
  17. package/prisca/v1/core/company/company_pb.js +3100 -0
  18. package/prisca/v1/core/currency/currency_grpc_pb.js +177 -0
  19. package/prisca/v1/core/currency/currency_pb.js +2522 -0
  20. package/prisca/v1/core/department_material/department_material_grpc_pb.js +144 -0
  21. package/prisca/v1/core/department_material/department_material_pb.js +2167 -0
  22. package/prisca/v1/core/employee/employee_grpc_pb.js +206 -0
  23. package/prisca/v1/core/employee/employee_pb.js +4335 -0
  24. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +44 -0
  25. package/prisca/v1/core/file_upload/file_upload_pb.js +1052 -0
  26. package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +177 -0
  27. package/prisca/v1/core/incoterm/incoterm_pb.js +2904 -0
  28. package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +1 -0
  29. package/prisca/v1/core/item_transaction/item_transaction_pb.js +4330 -0
  30. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +178 -0
  31. package/prisca/v1/core/job_grade/job_grade_pb.js +2657 -0
  32. package/prisca/v1/core/job_position/job_position_grpc_pb.js +181 -0
  33. package/prisca/v1/core/job_position/job_position_pb.js +3814 -0
  34. package/prisca/v1/core/job_title/job_title_grpc_pb.js +178 -0
  35. package/prisca/v1/core/job_title/job_title_pb.js +3010 -0
  36. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +78 -0
  37. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +2087 -0
  38. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +200 -0
  39. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +3251 -0
  40. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +177 -0
  41. package/prisca/v1/core/link_data_source/link_data_source_pb.js +2612 -0
  42. package/prisca/v1/core/location/location_grpc_pb.js +837 -0
  43. package/prisca/v1/core/location/location_pb.js +10879 -0
  44. package/prisca/v1/core/material/material_grpc_pb.js +182 -0
  45. package/prisca/v1/core/material/material_pb.js +4232 -0
  46. package/prisca/v1/core/material_group/material_group_grpc_pb.js +178 -0
  47. package/prisca/v1/core/material_group/material_group_pb.js +2828 -0
  48. package/prisca/v1/core/material_type/material_type_grpc_pb.js +182 -0
  49. package/prisca/v1/core/material_type/material_type_pb.js +3104 -0
  50. package/prisca/v1/core/messaging/email_template_grpc_pb.js +177 -0
  51. package/prisca/v1/core/messaging/email_template_pb.js +2664 -0
  52. package/prisca/v1/core/messaging/messaging_grpc_pb.js +56 -0
  53. package/prisca/v1/core/messaging/messaging_pb.js +896 -0
  54. package/prisca/v1/core/number_range/number_range_grpc_pb.js +178 -0
  55. package/prisca/v1/core/number_range/number_range_pb.js +2978 -0
  56. package/prisca/v1/core/organization/organization_grpc_pb.js +180 -0
  57. package/prisca/v1/core/organization/organization_pb.js +3084 -0
  58. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +178 -0
  59. package/prisca/v1/core/organization_level/organization_level_pb.js +2597 -0
  60. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +179 -0
  61. package/prisca/v1/core/price_condition/price_condition_pb.js +3061 -0
  62. package/prisca/v1/core/procurement/procurement_grpc_pb.js +146 -0
  63. package/prisca/v1/core/procurement/procurement_pb.js +1681 -0
  64. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +1 -0
  65. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +206 -0
  66. package/prisca/v1/core/report/report_grpc_pb.js +200 -0
  67. package/prisca/v1/core/report/report_pb.js +2822 -0
  68. package/prisca/v1/core/report/user_report_grpc_pb.js +179 -0
  69. package/prisca/v1/core/report/user_report_pb.js +2452 -0
  70. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +177 -0
  71. package/prisca/v1/core/tax_code/tax_code_pb.js +2784 -0
  72. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +177 -0
  73. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +2512 -0
  74. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +498 -0
  75. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +10976 -0
  76. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +180 -0
  77. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +2850 -0
  78. package/prisca/v1/core/users/users_grpc_pb.js +78 -0
  79. package/prisca/v1/core/users/users_pb.js +1653 -0
  80. package/prisca/v1/core/work_location/work_location_grpc_pb.js +179 -0
  81. package/prisca/v1/core/work_location/work_location_pb.js +4024 -0
  82. package/prisca/v1/core/workflow/workflow_grpc_pb.js +203 -0
  83. package/prisca/v1/core/workflow/workflow_pb.js +7577 -0
  84. package/prisca/v1/delivery_order/delivery_order_grpc_pb.js +229 -0
  85. package/prisca/v1/delivery_order/delivery_order_pb.js +4661 -0
  86. package/prisca/v1/document_type/document_type_grpc_pb.js +178 -0
  87. package/prisca/v1/document_type/document_type_pb.js +2798 -0
  88. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +181 -0
  89. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +3328 -0
  90. package/prisca/v1/global/meta/meta_grpc_pb.js +1 -0
  91. package/prisca/v1/global/meta/meta_pb.js +1179 -0
  92. package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +1 -0
  93. package/prisca/v1/good_receipt/good_receipt_pb.js +35 -0
  94. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +228 -0
  95. package/prisca/v1/purchase_order/purchase_order_pb.js +5049 -0
  96. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +523 -0
  97. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +9917 -0
  98. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +178 -0
  99. package/prisca/v1/purchasing_group/purchasing_group_pb.js +2927 -0
  100. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +178 -0
  101. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +2546 -0
  102. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +179 -0
  103. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +2590 -0
  104. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +145 -0
  105. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +2543 -0
  106. package/prisca/v1/quotation/quotation_grpc_pb.js +207 -0
  107. package/prisca/v1/quotation/quotation_pb.js +3582 -0
  108. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +193 -0
  109. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +5961 -0
  110. package/prisca/v1/valuation/valuation_grpc_pb.js +366 -0
  111. package/prisca/v1/valuation/valuation_pb.js +7812 -0
  112. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +224 -0
  113. package/prisca/v1/vendor_domain/vendor_domain_pb.js +6363 -0
  114. package/prisca/v1/account_assignment/account_assignment.proto +0 -81
  115. package/prisca/v1/account_group/account_group.proto +0 -88
  116. package/prisca/v1/bidding/bidding.proto +0 -221
  117. package/prisca/v1/chart_of_account/chart_of_account.proto +0 -89
  118. package/prisca/v1/core/access_manager/access_manager.proto +0 -281
  119. package/prisca/v1/core/auth/auth.proto +0 -150
  120. package/prisca/v1/core/chat_messaging/chat_messaging.proto +0 -55
  121. package/prisca/v1/core/company/company.proto +0 -92
  122. package/prisca/v1/core/currency/currency.proto +0 -76
  123. package/prisca/v1/core/department_material/department_material.proto +0 -69
  124. package/prisca/v1/core/employee/employee.proto +0 -129
  125. package/prisca/v1/core/file_upload/file_upload.proto +0 -37
  126. package/prisca/v1/core/incoterm/incoterm.proto +0 -85
  127. package/prisca/v1/core/item_transaction/item_transaction.proto +0 -134
  128. package/prisca/v1/core/job_grade/job_grade.proto +0 -79
  129. package/prisca/v1/core/job_position/job_position.proto +0 -113
  130. package/prisca/v1/core/job_title/job_title.proto +0 -89
  131. package/prisca/v1/core/line_of_activity/line_of_activity.proto +0 -66
  132. package/prisca/v1/core/line_of_approval/line_of_approval.proto +0 -96
  133. package/prisca/v1/core/link_data_source/link_data_source.proto +0 -78
  134. package/prisca/v1/core/location/location.proto +0 -289
  135. package/prisca/v1/core/material/material.proto +0 -131
  136. package/prisca/v1/core/material_group/material_group.proto +0 -85
  137. package/prisca/v1/core/material_type/material_type.proto +0 -95
  138. package/prisca/v1/core/messaging/email_template.proto +0 -75
  139. package/prisca/v1/core/messaging/messaging.proto +0 -29
  140. package/prisca/v1/core/number_range/number_range.proto +0 -89
  141. package/prisca/v1/core/organization/organization.proto +0 -94
  142. package/prisca/v1/core/organization_level/organization_level.proto +0 -77
  143. package/prisca/v1/core/price_condition/price_condition.proto +0 -93
  144. package/prisca/v1/core/procurement/procurement.proto +0 -54
  145. package/prisca/v1/core/recipient_roles/recipient_roles.proto +0 -10
  146. package/prisca/v1/core/report/report.proto +0 -90
  147. package/prisca/v1/core/report/user_report.proto +0 -74
  148. package/prisca/v1/core/tax_code/tax_code.proto +0 -82
  149. package/prisca/v1/core/term_of_payment/term_of_payment.proto +0 -74
  150. package/prisca/v1/core/transaction_builder/transaction_builder.proto +0 -325
  151. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +0 -88
  152. package/prisca/v1/core/users/users.proto +0 -55
  153. package/prisca/v1/core/work_location/work_location.proto +0 -122
  154. package/prisca/v1/core/workflow/workflow.proto +0 -218
  155. package/prisca/v1/delivery_order/delivery_order.proto +0 -147
  156. package/prisca/v1/document_type/document_type.proto +0 -82
  157. package/prisca/v1/general_ledger_account/general_ledger_account.proto +0 -100
  158. package/prisca/v1/global/meta/meta.proto +0 -57
  159. package/prisca/v1/good_receipt/good_receipt.proto +0 -11
  160. package/prisca/v1/purchase_order/purchase_order.proto +0 -157
  161. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +0 -306
  162. package/prisca/v1/purchasing_group/purchasing_group.proto +0 -89
  163. package/prisca/v1/purchasing_organization/purchasing_organization.proto +0 -79
  164. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +0 -81
  165. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +0 -80
  166. package/prisca/v1/quotation/quotation.proto +0 -118
  167. package/prisca/v1/request_for_quotation/request_for_quotation.proto +0 -174
  168. package/prisca/v1/valuation/valuation.proto +0 -223
  169. package/prisca/v1/vendor_domain/vendor_domain.proto +0 -226
@@ -0,0 +1,2828 @@
1
+ // source: prisca/v1/core/material_group/material_group.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
25
+ goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
26
+ var prisca_v1_core_employee_employee_pb = require('../../../../prisca/v1/core/employee/employee_pb.js');
27
+ goog.object.extend(proto, prisca_v1_core_employee_employee_pb);
28
+ goog.exportSymbol('proto.BaseMaterialGroupRequest', null, global);
29
+ goog.exportSymbol('proto.CreateMaterialGroupRequest', null, global);
30
+ goog.exportSymbol('proto.CreateMaterialGroupResponse', null, global);
31
+ goog.exportSymbol('proto.DeleteMaterialGroupRequest', null, global);
32
+ goog.exportSymbol('proto.DeleteMaterialGroupResponse', null, global);
33
+ goog.exportSymbol('proto.GetListMaterialGroupRequest', null, global);
34
+ goog.exportSymbol('proto.GetListMaterialGroupResponse', null, global);
35
+ goog.exportSymbol('proto.GetMaterialGroupByIdRequest', null, global);
36
+ goog.exportSymbol('proto.GetMaterialGroupByIdResponse', null, global);
37
+ goog.exportSymbol('proto.MaterialGroup', null, global);
38
+ goog.exportSymbol('proto.UpdateMaterialGroupRequest', null, global);
39
+ goog.exportSymbol('proto.UpdateMaterialGroupResponse', null, global);
40
+ /**
41
+ * Generated by JsPbCodeGenerator.
42
+ * @param {Array=} opt_data Optional initial data array, typically from a
43
+ * server response, or constructed directly in Javascript. The array is used
44
+ * in place and becomes part of the constructed object. It is not cloned.
45
+ * If no data is provided, the constructed object will be empty, but still
46
+ * valid.
47
+ * @extends {jspb.Message}
48
+ * @constructor
49
+ */
50
+ proto.MaterialGroup = function(opt_data) {
51
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
52
+ };
53
+ goog.inherits(proto.MaterialGroup, jspb.Message);
54
+ if (goog.DEBUG && !COMPILED) {
55
+ /**
56
+ * @public
57
+ * @override
58
+ */
59
+ proto.MaterialGroup.displayName = 'proto.MaterialGroup';
60
+ }
61
+ /**
62
+ * Generated by JsPbCodeGenerator.
63
+ * @param {Array=} opt_data Optional initial data array, typically from a
64
+ * server response, or constructed directly in Javascript. The array is used
65
+ * in place and becomes part of the constructed object. It is not cloned.
66
+ * If no data is provided, the constructed object will be empty, but still
67
+ * valid.
68
+ * @extends {jspb.Message}
69
+ * @constructor
70
+ */
71
+ proto.BaseMaterialGroupRequest = function(opt_data) {
72
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
73
+ };
74
+ goog.inherits(proto.BaseMaterialGroupRequest, jspb.Message);
75
+ if (goog.DEBUG && !COMPILED) {
76
+ /**
77
+ * @public
78
+ * @override
79
+ */
80
+ proto.BaseMaterialGroupRequest.displayName = 'proto.BaseMaterialGroupRequest';
81
+ }
82
+ /**
83
+ * Generated by JsPbCodeGenerator.
84
+ * @param {Array=} opt_data Optional initial data array, typically from a
85
+ * server response, or constructed directly in Javascript. The array is used
86
+ * in place and becomes part of the constructed object. It is not cloned.
87
+ * If no data is provided, the constructed object will be empty, but still
88
+ * valid.
89
+ * @extends {jspb.Message}
90
+ * @constructor
91
+ */
92
+ proto.CreateMaterialGroupRequest = function(opt_data) {
93
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
94
+ };
95
+ goog.inherits(proto.CreateMaterialGroupRequest, jspb.Message);
96
+ if (goog.DEBUG && !COMPILED) {
97
+ /**
98
+ * @public
99
+ * @override
100
+ */
101
+ proto.CreateMaterialGroupRequest.displayName = 'proto.CreateMaterialGroupRequest';
102
+ }
103
+ /**
104
+ * Generated by JsPbCodeGenerator.
105
+ * @param {Array=} opt_data Optional initial data array, typically from a
106
+ * server response, or constructed directly in Javascript. The array is used
107
+ * in place and becomes part of the constructed object. It is not cloned.
108
+ * If no data is provided, the constructed object will be empty, but still
109
+ * valid.
110
+ * @extends {jspb.Message}
111
+ * @constructor
112
+ */
113
+ proto.UpdateMaterialGroupRequest = function(opt_data) {
114
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
115
+ };
116
+ goog.inherits(proto.UpdateMaterialGroupRequest, jspb.Message);
117
+ if (goog.DEBUG && !COMPILED) {
118
+ /**
119
+ * @public
120
+ * @override
121
+ */
122
+ proto.UpdateMaterialGroupRequest.displayName = 'proto.UpdateMaterialGroupRequest';
123
+ }
124
+ /**
125
+ * Generated by JsPbCodeGenerator.
126
+ * @param {Array=} opt_data Optional initial data array, typically from a
127
+ * server response, or constructed directly in Javascript. The array is used
128
+ * in place and becomes part of the constructed object. It is not cloned.
129
+ * If no data is provided, the constructed object will be empty, but still
130
+ * valid.
131
+ * @extends {jspb.Message}
132
+ * @constructor
133
+ */
134
+ proto.DeleteMaterialGroupRequest = function(opt_data) {
135
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteMaterialGroupRequest.repeatedFields_, null);
136
+ };
137
+ goog.inherits(proto.DeleteMaterialGroupRequest, jspb.Message);
138
+ if (goog.DEBUG && !COMPILED) {
139
+ /**
140
+ * @public
141
+ * @override
142
+ */
143
+ proto.DeleteMaterialGroupRequest.displayName = 'proto.DeleteMaterialGroupRequest';
144
+ }
145
+ /**
146
+ * Generated by JsPbCodeGenerator.
147
+ * @param {Array=} opt_data Optional initial data array, typically from a
148
+ * server response, or constructed directly in Javascript. The array is used
149
+ * in place and becomes part of the constructed object. It is not cloned.
150
+ * If no data is provided, the constructed object will be empty, but still
151
+ * valid.
152
+ * @extends {jspb.Message}
153
+ * @constructor
154
+ */
155
+ proto.GetMaterialGroupByIdRequest = function(opt_data) {
156
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
157
+ };
158
+ goog.inherits(proto.GetMaterialGroupByIdRequest, jspb.Message);
159
+ if (goog.DEBUG && !COMPILED) {
160
+ /**
161
+ * @public
162
+ * @override
163
+ */
164
+ proto.GetMaterialGroupByIdRequest.displayName = 'proto.GetMaterialGroupByIdRequest';
165
+ }
166
+ /**
167
+ * Generated by JsPbCodeGenerator.
168
+ * @param {Array=} opt_data Optional initial data array, typically from a
169
+ * server response, or constructed directly in Javascript. The array is used
170
+ * in place and becomes part of the constructed object. It is not cloned.
171
+ * If no data is provided, the constructed object will be empty, but still
172
+ * valid.
173
+ * @extends {jspb.Message}
174
+ * @constructor
175
+ */
176
+ proto.GetListMaterialGroupRequest = function(opt_data) {
177
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
178
+ };
179
+ goog.inherits(proto.GetListMaterialGroupRequest, jspb.Message);
180
+ if (goog.DEBUG && !COMPILED) {
181
+ /**
182
+ * @public
183
+ * @override
184
+ */
185
+ proto.GetListMaterialGroupRequest.displayName = 'proto.GetListMaterialGroupRequest';
186
+ }
187
+ /**
188
+ * Generated by JsPbCodeGenerator.
189
+ * @param {Array=} opt_data Optional initial data array, typically from a
190
+ * server response, or constructed directly in Javascript. The array is used
191
+ * in place and becomes part of the constructed object. It is not cloned.
192
+ * If no data is provided, the constructed object will be empty, but still
193
+ * valid.
194
+ * @extends {jspb.Message}
195
+ * @constructor
196
+ */
197
+ proto.CreateMaterialGroupResponse = function(opt_data) {
198
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
199
+ };
200
+ goog.inherits(proto.CreateMaterialGroupResponse, jspb.Message);
201
+ if (goog.DEBUG && !COMPILED) {
202
+ /**
203
+ * @public
204
+ * @override
205
+ */
206
+ proto.CreateMaterialGroupResponse.displayName = 'proto.CreateMaterialGroupResponse';
207
+ }
208
+ /**
209
+ * Generated by JsPbCodeGenerator.
210
+ * @param {Array=} opt_data Optional initial data array, typically from a
211
+ * server response, or constructed directly in Javascript. The array is used
212
+ * in place and becomes part of the constructed object. It is not cloned.
213
+ * If no data is provided, the constructed object will be empty, but still
214
+ * valid.
215
+ * @extends {jspb.Message}
216
+ * @constructor
217
+ */
218
+ proto.UpdateMaterialGroupResponse = function(opt_data) {
219
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
220
+ };
221
+ goog.inherits(proto.UpdateMaterialGroupResponse, jspb.Message);
222
+ if (goog.DEBUG && !COMPILED) {
223
+ /**
224
+ * @public
225
+ * @override
226
+ */
227
+ proto.UpdateMaterialGroupResponse.displayName = 'proto.UpdateMaterialGroupResponse';
228
+ }
229
+ /**
230
+ * Generated by JsPbCodeGenerator.
231
+ * @param {Array=} opt_data Optional initial data array, typically from a
232
+ * server response, or constructed directly in Javascript. The array is used
233
+ * in place and becomes part of the constructed object. It is not cloned.
234
+ * If no data is provided, the constructed object will be empty, but still
235
+ * valid.
236
+ * @extends {jspb.Message}
237
+ * @constructor
238
+ */
239
+ proto.DeleteMaterialGroupResponse = function(opt_data) {
240
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteMaterialGroupResponse.repeatedFields_, null);
241
+ };
242
+ goog.inherits(proto.DeleteMaterialGroupResponse, jspb.Message);
243
+ if (goog.DEBUG && !COMPILED) {
244
+ /**
245
+ * @public
246
+ * @override
247
+ */
248
+ proto.DeleteMaterialGroupResponse.displayName = 'proto.DeleteMaterialGroupResponse';
249
+ }
250
+ /**
251
+ * Generated by JsPbCodeGenerator.
252
+ * @param {Array=} opt_data Optional initial data array, typically from a
253
+ * server response, or constructed directly in Javascript. The array is used
254
+ * in place and becomes part of the constructed object. It is not cloned.
255
+ * If no data is provided, the constructed object will be empty, but still
256
+ * valid.
257
+ * @extends {jspb.Message}
258
+ * @constructor
259
+ */
260
+ proto.GetMaterialGroupByIdResponse = function(opt_data) {
261
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
262
+ };
263
+ goog.inherits(proto.GetMaterialGroupByIdResponse, jspb.Message);
264
+ if (goog.DEBUG && !COMPILED) {
265
+ /**
266
+ * @public
267
+ * @override
268
+ */
269
+ proto.GetMaterialGroupByIdResponse.displayName = 'proto.GetMaterialGroupByIdResponse';
270
+ }
271
+ /**
272
+ * Generated by JsPbCodeGenerator.
273
+ * @param {Array=} opt_data Optional initial data array, typically from a
274
+ * server response, or constructed directly in Javascript. The array is used
275
+ * in place and becomes part of the constructed object. It is not cloned.
276
+ * If no data is provided, the constructed object will be empty, but still
277
+ * valid.
278
+ * @extends {jspb.Message}
279
+ * @constructor
280
+ */
281
+ proto.GetListMaterialGroupResponse = function(opt_data) {
282
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListMaterialGroupResponse.repeatedFields_, null);
283
+ };
284
+ goog.inherits(proto.GetListMaterialGroupResponse, jspb.Message);
285
+ if (goog.DEBUG && !COMPILED) {
286
+ /**
287
+ * @public
288
+ * @override
289
+ */
290
+ proto.GetListMaterialGroupResponse.displayName = 'proto.GetListMaterialGroupResponse';
291
+ }
292
+
293
+
294
+
295
+ if (jspb.Message.GENERATE_TO_OBJECT) {
296
+ /**
297
+ * Creates an object representation of this proto.
298
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
299
+ * Optional fields that are not set will be set to undefined.
300
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
301
+ * For the list of reserved names please see:
302
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
303
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
304
+ * JSPB instance for transitional soy proto support:
305
+ * http://goto/soy-param-migration
306
+ * @return {!Object}
307
+ */
308
+ proto.MaterialGroup.prototype.toObject = function(opt_includeInstance) {
309
+ return proto.MaterialGroup.toObject(opt_includeInstance, this);
310
+ };
311
+
312
+
313
+ /**
314
+ * Static version of the {@see toObject} method.
315
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
316
+ * the JSPB instance for transitional soy proto support:
317
+ * http://goto/soy-param-migration
318
+ * @param {!proto.MaterialGroup} msg The msg instance to transform.
319
+ * @return {!Object}
320
+ * @suppress {unusedLocalVariables} f is only used for nested messages
321
+ */
322
+ proto.MaterialGroup.toObject = function(includeInstance, msg) {
323
+ var f, obj = {
324
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
325
+ materialGroupCode: jspb.Message.getFieldWithDefault(msg, 2, ""),
326
+ materialGroupDescription: jspb.Message.getFieldWithDefault(msg, 3, ""),
327
+ materialGroupDescriptionExternal: jspb.Message.getFieldWithDefault(msg, 4, ""),
328
+ referencesId: jspb.Message.getFieldWithDefault(msg, 5, ""),
329
+ createdAt: jspb.Message.getFieldWithDefault(msg, 6, ""),
330
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 7, ""),
331
+ createdBy: jspb.Message.getFieldWithDefault(msg, 8, ""),
332
+ updatedBy: jspb.Message.getFieldWithDefault(msg, 9, ""),
333
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 10, ""),
334
+ createdByEmployee: (f = msg.getCreatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f),
335
+ updatedByEmployee: (f = msg.getUpdatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f)
336
+ };
337
+
338
+ if (includeInstance) {
339
+ obj.$jspbMessageInstance = msg;
340
+ }
341
+ return obj;
342
+ };
343
+ }
344
+
345
+
346
+ /**
347
+ * Deserializes binary data (in protobuf wire format).
348
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
349
+ * @return {!proto.MaterialGroup}
350
+ */
351
+ proto.MaterialGroup.deserializeBinary = function(bytes) {
352
+ var reader = new jspb.BinaryReader(bytes);
353
+ var msg = new proto.MaterialGroup;
354
+ return proto.MaterialGroup.deserializeBinaryFromReader(msg, reader);
355
+ };
356
+
357
+
358
+ /**
359
+ * Deserializes binary data (in protobuf wire format) from the
360
+ * given reader into the given message object.
361
+ * @param {!proto.MaterialGroup} msg The message object to deserialize into.
362
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
363
+ * @return {!proto.MaterialGroup}
364
+ */
365
+ proto.MaterialGroup.deserializeBinaryFromReader = function(msg, reader) {
366
+ while (reader.nextField()) {
367
+ if (reader.isEndGroup()) {
368
+ break;
369
+ }
370
+ var field = reader.getFieldNumber();
371
+ switch (field) {
372
+ case 1:
373
+ var value = /** @type {number} */ (reader.readInt64());
374
+ msg.setId(value);
375
+ break;
376
+ case 2:
377
+ var value = /** @type {string} */ (reader.readString());
378
+ msg.setMaterialGroupCode(value);
379
+ break;
380
+ case 3:
381
+ var value = /** @type {string} */ (reader.readString());
382
+ msg.setMaterialGroupDescription(value);
383
+ break;
384
+ case 4:
385
+ var value = /** @type {string} */ (reader.readString());
386
+ msg.setMaterialGroupDescriptionExternal(value);
387
+ break;
388
+ case 5:
389
+ var value = /** @type {string} */ (reader.readString());
390
+ msg.setReferencesId(value);
391
+ break;
392
+ case 6:
393
+ var value = /** @type {string} */ (reader.readString());
394
+ msg.setCreatedAt(value);
395
+ break;
396
+ case 7:
397
+ var value = /** @type {string} */ (reader.readString());
398
+ msg.setUpdatedAt(value);
399
+ break;
400
+ case 8:
401
+ var value = /** @type {string} */ (reader.readString());
402
+ msg.setCreatedBy(value);
403
+ break;
404
+ case 9:
405
+ var value = /** @type {string} */ (reader.readString());
406
+ msg.setUpdatedBy(value);
407
+ break;
408
+ case 10:
409
+ var value = /** @type {string} */ (reader.readString());
410
+ msg.setCompaniesReferencesId(value);
411
+ break;
412
+ case 11:
413
+ var value = new prisca_v1_core_employee_employee_pb.Employee;
414
+ reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
415
+ msg.setCreatedByEmployee(value);
416
+ break;
417
+ case 12:
418
+ var value = new prisca_v1_core_employee_employee_pb.Employee;
419
+ reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
420
+ msg.setUpdatedByEmployee(value);
421
+ break;
422
+ default:
423
+ reader.skipField();
424
+ break;
425
+ }
426
+ }
427
+ return msg;
428
+ };
429
+
430
+
431
+ /**
432
+ * Serializes the message to binary data (in protobuf wire format).
433
+ * @return {!Uint8Array}
434
+ */
435
+ proto.MaterialGroup.prototype.serializeBinary = function() {
436
+ var writer = new jspb.BinaryWriter();
437
+ proto.MaterialGroup.serializeBinaryToWriter(this, writer);
438
+ return writer.getResultBuffer();
439
+ };
440
+
441
+
442
+ /**
443
+ * Serializes the given message to binary data (in protobuf wire
444
+ * format), writing to the given BinaryWriter.
445
+ * @param {!proto.MaterialGroup} message
446
+ * @param {!jspb.BinaryWriter} writer
447
+ * @suppress {unusedLocalVariables} f is only used for nested messages
448
+ */
449
+ proto.MaterialGroup.serializeBinaryToWriter = function(message, writer) {
450
+ var f = undefined;
451
+ f = message.getId();
452
+ if (f !== 0) {
453
+ writer.writeInt64(
454
+ 1,
455
+ f
456
+ );
457
+ }
458
+ f = message.getMaterialGroupCode();
459
+ if (f.length > 0) {
460
+ writer.writeString(
461
+ 2,
462
+ f
463
+ );
464
+ }
465
+ f = message.getMaterialGroupDescription();
466
+ if (f.length > 0) {
467
+ writer.writeString(
468
+ 3,
469
+ f
470
+ );
471
+ }
472
+ f = message.getMaterialGroupDescriptionExternal();
473
+ if (f.length > 0) {
474
+ writer.writeString(
475
+ 4,
476
+ f
477
+ );
478
+ }
479
+ f = message.getReferencesId();
480
+ if (f.length > 0) {
481
+ writer.writeString(
482
+ 5,
483
+ f
484
+ );
485
+ }
486
+ f = message.getCreatedAt();
487
+ if (f.length > 0) {
488
+ writer.writeString(
489
+ 6,
490
+ f
491
+ );
492
+ }
493
+ f = message.getUpdatedAt();
494
+ if (f.length > 0) {
495
+ writer.writeString(
496
+ 7,
497
+ f
498
+ );
499
+ }
500
+ f = message.getCreatedBy();
501
+ if (f.length > 0) {
502
+ writer.writeString(
503
+ 8,
504
+ f
505
+ );
506
+ }
507
+ f = message.getUpdatedBy();
508
+ if (f.length > 0) {
509
+ writer.writeString(
510
+ 9,
511
+ f
512
+ );
513
+ }
514
+ f = message.getCompaniesReferencesId();
515
+ if (f.length > 0) {
516
+ writer.writeString(
517
+ 10,
518
+ f
519
+ );
520
+ }
521
+ f = message.getCreatedByEmployee();
522
+ if (f != null) {
523
+ writer.writeMessage(
524
+ 11,
525
+ f,
526
+ prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
527
+ );
528
+ }
529
+ f = message.getUpdatedByEmployee();
530
+ if (f != null) {
531
+ writer.writeMessage(
532
+ 12,
533
+ f,
534
+ prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
535
+ );
536
+ }
537
+ };
538
+
539
+
540
+ /**
541
+ * optional int64 id = 1;
542
+ * @return {number}
543
+ */
544
+ proto.MaterialGroup.prototype.getId = function() {
545
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
546
+ };
547
+
548
+
549
+ /**
550
+ * @param {number} value
551
+ * @return {!proto.MaterialGroup} returns this
552
+ */
553
+ proto.MaterialGroup.prototype.setId = function(value) {
554
+ return jspb.Message.setProto3IntField(this, 1, value);
555
+ };
556
+
557
+
558
+ /**
559
+ * optional string material_group_code = 2;
560
+ * @return {string}
561
+ */
562
+ proto.MaterialGroup.prototype.getMaterialGroupCode = function() {
563
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
564
+ };
565
+
566
+
567
+ /**
568
+ * @param {string} value
569
+ * @return {!proto.MaterialGroup} returns this
570
+ */
571
+ proto.MaterialGroup.prototype.setMaterialGroupCode = function(value) {
572
+ return jspb.Message.setProto3StringField(this, 2, value);
573
+ };
574
+
575
+
576
+ /**
577
+ * optional string material_group_description = 3;
578
+ * @return {string}
579
+ */
580
+ proto.MaterialGroup.prototype.getMaterialGroupDescription = function() {
581
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
582
+ };
583
+
584
+
585
+ /**
586
+ * @param {string} value
587
+ * @return {!proto.MaterialGroup} returns this
588
+ */
589
+ proto.MaterialGroup.prototype.setMaterialGroupDescription = function(value) {
590
+ return jspb.Message.setProto3StringField(this, 3, value);
591
+ };
592
+
593
+
594
+ /**
595
+ * optional string material_group_description_external = 4;
596
+ * @return {string}
597
+ */
598
+ proto.MaterialGroup.prototype.getMaterialGroupDescriptionExternal = function() {
599
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
600
+ };
601
+
602
+
603
+ /**
604
+ * @param {string} value
605
+ * @return {!proto.MaterialGroup} returns this
606
+ */
607
+ proto.MaterialGroup.prototype.setMaterialGroupDescriptionExternal = function(value) {
608
+ return jspb.Message.setProto3StringField(this, 4, value);
609
+ };
610
+
611
+
612
+ /**
613
+ * optional string references_id = 5;
614
+ * @return {string}
615
+ */
616
+ proto.MaterialGroup.prototype.getReferencesId = function() {
617
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
618
+ };
619
+
620
+
621
+ /**
622
+ * @param {string} value
623
+ * @return {!proto.MaterialGroup} returns this
624
+ */
625
+ proto.MaterialGroup.prototype.setReferencesId = function(value) {
626
+ return jspb.Message.setProto3StringField(this, 5, value);
627
+ };
628
+
629
+
630
+ /**
631
+ * optional string created_at = 6;
632
+ * @return {string}
633
+ */
634
+ proto.MaterialGroup.prototype.getCreatedAt = function() {
635
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
636
+ };
637
+
638
+
639
+ /**
640
+ * @param {string} value
641
+ * @return {!proto.MaterialGroup} returns this
642
+ */
643
+ proto.MaterialGroup.prototype.setCreatedAt = function(value) {
644
+ return jspb.Message.setProto3StringField(this, 6, value);
645
+ };
646
+
647
+
648
+ /**
649
+ * optional string updated_at = 7;
650
+ * @return {string}
651
+ */
652
+ proto.MaterialGroup.prototype.getUpdatedAt = function() {
653
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
654
+ };
655
+
656
+
657
+ /**
658
+ * @param {string} value
659
+ * @return {!proto.MaterialGroup} returns this
660
+ */
661
+ proto.MaterialGroup.prototype.setUpdatedAt = function(value) {
662
+ return jspb.Message.setProto3StringField(this, 7, value);
663
+ };
664
+
665
+
666
+ /**
667
+ * optional string created_by = 8;
668
+ * @return {string}
669
+ */
670
+ proto.MaterialGroup.prototype.getCreatedBy = function() {
671
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
672
+ };
673
+
674
+
675
+ /**
676
+ * @param {string} value
677
+ * @return {!proto.MaterialGroup} returns this
678
+ */
679
+ proto.MaterialGroup.prototype.setCreatedBy = function(value) {
680
+ return jspb.Message.setProto3StringField(this, 8, value);
681
+ };
682
+
683
+
684
+ /**
685
+ * optional string updated_by = 9;
686
+ * @return {string}
687
+ */
688
+ proto.MaterialGroup.prototype.getUpdatedBy = function() {
689
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
690
+ };
691
+
692
+
693
+ /**
694
+ * @param {string} value
695
+ * @return {!proto.MaterialGroup} returns this
696
+ */
697
+ proto.MaterialGroup.prototype.setUpdatedBy = function(value) {
698
+ return jspb.Message.setProto3StringField(this, 9, value);
699
+ };
700
+
701
+
702
+ /**
703
+ * optional string companies_references_id = 10;
704
+ * @return {string}
705
+ */
706
+ proto.MaterialGroup.prototype.getCompaniesReferencesId = function() {
707
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
708
+ };
709
+
710
+
711
+ /**
712
+ * @param {string} value
713
+ * @return {!proto.MaterialGroup} returns this
714
+ */
715
+ proto.MaterialGroup.prototype.setCompaniesReferencesId = function(value) {
716
+ return jspb.Message.setProto3StringField(this, 10, value);
717
+ };
718
+
719
+
720
+ /**
721
+ * optional Employee created_by_employee = 11;
722
+ * @return {?proto.Employee}
723
+ */
724
+ proto.MaterialGroup.prototype.getCreatedByEmployee = function() {
725
+ return /** @type{?proto.Employee} */ (
726
+ jspb.Message.getWrapperField(this, prisca_v1_core_employee_employee_pb.Employee, 11));
727
+ };
728
+
729
+
730
+ /**
731
+ * @param {?proto.Employee|undefined} value
732
+ * @return {!proto.MaterialGroup} returns this
733
+ */
734
+ proto.MaterialGroup.prototype.setCreatedByEmployee = function(value) {
735
+ return jspb.Message.setWrapperField(this, 11, value);
736
+ };
737
+
738
+
739
+ /**
740
+ * Clears the message field making it undefined.
741
+ * @return {!proto.MaterialGroup} returns this
742
+ */
743
+ proto.MaterialGroup.prototype.clearCreatedByEmployee = function() {
744
+ return this.setCreatedByEmployee(undefined);
745
+ };
746
+
747
+
748
+ /**
749
+ * Returns whether this field is set.
750
+ * @return {boolean}
751
+ */
752
+ proto.MaterialGroup.prototype.hasCreatedByEmployee = function() {
753
+ return jspb.Message.getField(this, 11) != null;
754
+ };
755
+
756
+
757
+ /**
758
+ * optional Employee updated_by_employee = 12;
759
+ * @return {?proto.Employee}
760
+ */
761
+ proto.MaterialGroup.prototype.getUpdatedByEmployee = function() {
762
+ return /** @type{?proto.Employee} */ (
763
+ jspb.Message.getWrapperField(this, prisca_v1_core_employee_employee_pb.Employee, 12));
764
+ };
765
+
766
+
767
+ /**
768
+ * @param {?proto.Employee|undefined} value
769
+ * @return {!proto.MaterialGroup} returns this
770
+ */
771
+ proto.MaterialGroup.prototype.setUpdatedByEmployee = function(value) {
772
+ return jspb.Message.setWrapperField(this, 12, value);
773
+ };
774
+
775
+
776
+ /**
777
+ * Clears the message field making it undefined.
778
+ * @return {!proto.MaterialGroup} returns this
779
+ */
780
+ proto.MaterialGroup.prototype.clearUpdatedByEmployee = function() {
781
+ return this.setUpdatedByEmployee(undefined);
782
+ };
783
+
784
+
785
+ /**
786
+ * Returns whether this field is set.
787
+ * @return {boolean}
788
+ */
789
+ proto.MaterialGroup.prototype.hasUpdatedByEmployee = function() {
790
+ return jspb.Message.getField(this, 12) != null;
791
+ };
792
+
793
+
794
+
795
+
796
+
797
+ if (jspb.Message.GENERATE_TO_OBJECT) {
798
+ /**
799
+ * Creates an object representation of this proto.
800
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
801
+ * Optional fields that are not set will be set to undefined.
802
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
803
+ * For the list of reserved names please see:
804
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
805
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
806
+ * JSPB instance for transitional soy proto support:
807
+ * http://goto/soy-param-migration
808
+ * @return {!Object}
809
+ */
810
+ proto.BaseMaterialGroupRequest.prototype.toObject = function(opt_includeInstance) {
811
+ return proto.BaseMaterialGroupRequest.toObject(opt_includeInstance, this);
812
+ };
813
+
814
+
815
+ /**
816
+ * Static version of the {@see toObject} method.
817
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
818
+ * the JSPB instance for transitional soy proto support:
819
+ * http://goto/soy-param-migration
820
+ * @param {!proto.BaseMaterialGroupRequest} msg The msg instance to transform.
821
+ * @return {!Object}
822
+ * @suppress {unusedLocalVariables} f is only used for nested messages
823
+ */
824
+ proto.BaseMaterialGroupRequest.toObject = function(includeInstance, msg) {
825
+ var f, obj = {
826
+ materialGroupCode: jspb.Message.getFieldWithDefault(msg, 1, ""),
827
+ materialGroupDescription: jspb.Message.getFieldWithDefault(msg, 2, ""),
828
+ materialGroupDescriptionExternal: jspb.Message.getFieldWithDefault(msg, 3, "")
829
+ };
830
+
831
+ if (includeInstance) {
832
+ obj.$jspbMessageInstance = msg;
833
+ }
834
+ return obj;
835
+ };
836
+ }
837
+
838
+
839
+ /**
840
+ * Deserializes binary data (in protobuf wire format).
841
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
842
+ * @return {!proto.BaseMaterialGroupRequest}
843
+ */
844
+ proto.BaseMaterialGroupRequest.deserializeBinary = function(bytes) {
845
+ var reader = new jspb.BinaryReader(bytes);
846
+ var msg = new proto.BaseMaterialGroupRequest;
847
+ return proto.BaseMaterialGroupRequest.deserializeBinaryFromReader(msg, reader);
848
+ };
849
+
850
+
851
+ /**
852
+ * Deserializes binary data (in protobuf wire format) from the
853
+ * given reader into the given message object.
854
+ * @param {!proto.BaseMaterialGroupRequest} msg The message object to deserialize into.
855
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
856
+ * @return {!proto.BaseMaterialGroupRequest}
857
+ */
858
+ proto.BaseMaterialGroupRequest.deserializeBinaryFromReader = function(msg, reader) {
859
+ while (reader.nextField()) {
860
+ if (reader.isEndGroup()) {
861
+ break;
862
+ }
863
+ var field = reader.getFieldNumber();
864
+ switch (field) {
865
+ case 1:
866
+ var value = /** @type {string} */ (reader.readString());
867
+ msg.setMaterialGroupCode(value);
868
+ break;
869
+ case 2:
870
+ var value = /** @type {string} */ (reader.readString());
871
+ msg.setMaterialGroupDescription(value);
872
+ break;
873
+ case 3:
874
+ var value = /** @type {string} */ (reader.readString());
875
+ msg.setMaterialGroupDescriptionExternal(value);
876
+ break;
877
+ default:
878
+ reader.skipField();
879
+ break;
880
+ }
881
+ }
882
+ return msg;
883
+ };
884
+
885
+
886
+ /**
887
+ * Serializes the message to binary data (in protobuf wire format).
888
+ * @return {!Uint8Array}
889
+ */
890
+ proto.BaseMaterialGroupRequest.prototype.serializeBinary = function() {
891
+ var writer = new jspb.BinaryWriter();
892
+ proto.BaseMaterialGroupRequest.serializeBinaryToWriter(this, writer);
893
+ return writer.getResultBuffer();
894
+ };
895
+
896
+
897
+ /**
898
+ * Serializes the given message to binary data (in protobuf wire
899
+ * format), writing to the given BinaryWriter.
900
+ * @param {!proto.BaseMaterialGroupRequest} message
901
+ * @param {!jspb.BinaryWriter} writer
902
+ * @suppress {unusedLocalVariables} f is only used for nested messages
903
+ */
904
+ proto.BaseMaterialGroupRequest.serializeBinaryToWriter = function(message, writer) {
905
+ var f = undefined;
906
+ f = message.getMaterialGroupCode();
907
+ if (f.length > 0) {
908
+ writer.writeString(
909
+ 1,
910
+ f
911
+ );
912
+ }
913
+ f = message.getMaterialGroupDescription();
914
+ if (f.length > 0) {
915
+ writer.writeString(
916
+ 2,
917
+ f
918
+ );
919
+ }
920
+ f = message.getMaterialGroupDescriptionExternal();
921
+ if (f.length > 0) {
922
+ writer.writeString(
923
+ 3,
924
+ f
925
+ );
926
+ }
927
+ };
928
+
929
+
930
+ /**
931
+ * optional string material_group_code = 1;
932
+ * @return {string}
933
+ */
934
+ proto.BaseMaterialGroupRequest.prototype.getMaterialGroupCode = function() {
935
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
936
+ };
937
+
938
+
939
+ /**
940
+ * @param {string} value
941
+ * @return {!proto.BaseMaterialGroupRequest} returns this
942
+ */
943
+ proto.BaseMaterialGroupRequest.prototype.setMaterialGroupCode = function(value) {
944
+ return jspb.Message.setProto3StringField(this, 1, value);
945
+ };
946
+
947
+
948
+ /**
949
+ * optional string material_group_description = 2;
950
+ * @return {string}
951
+ */
952
+ proto.BaseMaterialGroupRequest.prototype.getMaterialGroupDescription = function() {
953
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
954
+ };
955
+
956
+
957
+ /**
958
+ * @param {string} value
959
+ * @return {!proto.BaseMaterialGroupRequest} returns this
960
+ */
961
+ proto.BaseMaterialGroupRequest.prototype.setMaterialGroupDescription = function(value) {
962
+ return jspb.Message.setProto3StringField(this, 2, value);
963
+ };
964
+
965
+
966
+ /**
967
+ * optional string material_group_description_external = 3;
968
+ * @return {string}
969
+ */
970
+ proto.BaseMaterialGroupRequest.prototype.getMaterialGroupDescriptionExternal = function() {
971
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
972
+ };
973
+
974
+
975
+ /**
976
+ * @param {string} value
977
+ * @return {!proto.BaseMaterialGroupRequest} returns this
978
+ */
979
+ proto.BaseMaterialGroupRequest.prototype.setMaterialGroupDescriptionExternal = function(value) {
980
+ return jspb.Message.setProto3StringField(this, 3, value);
981
+ };
982
+
983
+
984
+
985
+
986
+
987
+ if (jspb.Message.GENERATE_TO_OBJECT) {
988
+ /**
989
+ * Creates an object representation of this proto.
990
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
991
+ * Optional fields that are not set will be set to undefined.
992
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
993
+ * For the list of reserved names please see:
994
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
995
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
996
+ * JSPB instance for transitional soy proto support:
997
+ * http://goto/soy-param-migration
998
+ * @return {!Object}
999
+ */
1000
+ proto.CreateMaterialGroupRequest.prototype.toObject = function(opt_includeInstance) {
1001
+ return proto.CreateMaterialGroupRequest.toObject(opt_includeInstance, this);
1002
+ };
1003
+
1004
+
1005
+ /**
1006
+ * Static version of the {@see toObject} method.
1007
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1008
+ * the JSPB instance for transitional soy proto support:
1009
+ * http://goto/soy-param-migration
1010
+ * @param {!proto.CreateMaterialGroupRequest} msg The msg instance to transform.
1011
+ * @return {!Object}
1012
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1013
+ */
1014
+ proto.CreateMaterialGroupRequest.toObject = function(includeInstance, msg) {
1015
+ var f, obj = {
1016
+ baseMaterialGroup: (f = msg.getBaseMaterialGroup()) && proto.BaseMaterialGroupRequest.toObject(includeInstance, f)
1017
+ };
1018
+
1019
+ if (includeInstance) {
1020
+ obj.$jspbMessageInstance = msg;
1021
+ }
1022
+ return obj;
1023
+ };
1024
+ }
1025
+
1026
+
1027
+ /**
1028
+ * Deserializes binary data (in protobuf wire format).
1029
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1030
+ * @return {!proto.CreateMaterialGroupRequest}
1031
+ */
1032
+ proto.CreateMaterialGroupRequest.deserializeBinary = function(bytes) {
1033
+ var reader = new jspb.BinaryReader(bytes);
1034
+ var msg = new proto.CreateMaterialGroupRequest;
1035
+ return proto.CreateMaterialGroupRequest.deserializeBinaryFromReader(msg, reader);
1036
+ };
1037
+
1038
+
1039
+ /**
1040
+ * Deserializes binary data (in protobuf wire format) from the
1041
+ * given reader into the given message object.
1042
+ * @param {!proto.CreateMaterialGroupRequest} msg The message object to deserialize into.
1043
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1044
+ * @return {!proto.CreateMaterialGroupRequest}
1045
+ */
1046
+ proto.CreateMaterialGroupRequest.deserializeBinaryFromReader = function(msg, reader) {
1047
+ while (reader.nextField()) {
1048
+ if (reader.isEndGroup()) {
1049
+ break;
1050
+ }
1051
+ var field = reader.getFieldNumber();
1052
+ switch (field) {
1053
+ case 1:
1054
+ var value = new proto.BaseMaterialGroupRequest;
1055
+ reader.readMessage(value,proto.BaseMaterialGroupRequest.deserializeBinaryFromReader);
1056
+ msg.setBaseMaterialGroup(value);
1057
+ break;
1058
+ default:
1059
+ reader.skipField();
1060
+ break;
1061
+ }
1062
+ }
1063
+ return msg;
1064
+ };
1065
+
1066
+
1067
+ /**
1068
+ * Serializes the message to binary data (in protobuf wire format).
1069
+ * @return {!Uint8Array}
1070
+ */
1071
+ proto.CreateMaterialGroupRequest.prototype.serializeBinary = function() {
1072
+ var writer = new jspb.BinaryWriter();
1073
+ proto.CreateMaterialGroupRequest.serializeBinaryToWriter(this, writer);
1074
+ return writer.getResultBuffer();
1075
+ };
1076
+
1077
+
1078
+ /**
1079
+ * Serializes the given message to binary data (in protobuf wire
1080
+ * format), writing to the given BinaryWriter.
1081
+ * @param {!proto.CreateMaterialGroupRequest} message
1082
+ * @param {!jspb.BinaryWriter} writer
1083
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1084
+ */
1085
+ proto.CreateMaterialGroupRequest.serializeBinaryToWriter = function(message, writer) {
1086
+ var f = undefined;
1087
+ f = message.getBaseMaterialGroup();
1088
+ if (f != null) {
1089
+ writer.writeMessage(
1090
+ 1,
1091
+ f,
1092
+ proto.BaseMaterialGroupRequest.serializeBinaryToWriter
1093
+ );
1094
+ }
1095
+ };
1096
+
1097
+
1098
+ /**
1099
+ * optional BaseMaterialGroupRequest base_material_group = 1;
1100
+ * @return {?proto.BaseMaterialGroupRequest}
1101
+ */
1102
+ proto.CreateMaterialGroupRequest.prototype.getBaseMaterialGroup = function() {
1103
+ return /** @type{?proto.BaseMaterialGroupRequest} */ (
1104
+ jspb.Message.getWrapperField(this, proto.BaseMaterialGroupRequest, 1));
1105
+ };
1106
+
1107
+
1108
+ /**
1109
+ * @param {?proto.BaseMaterialGroupRequest|undefined} value
1110
+ * @return {!proto.CreateMaterialGroupRequest} returns this
1111
+ */
1112
+ proto.CreateMaterialGroupRequest.prototype.setBaseMaterialGroup = function(value) {
1113
+ return jspb.Message.setWrapperField(this, 1, value);
1114
+ };
1115
+
1116
+
1117
+ /**
1118
+ * Clears the message field making it undefined.
1119
+ * @return {!proto.CreateMaterialGroupRequest} returns this
1120
+ */
1121
+ proto.CreateMaterialGroupRequest.prototype.clearBaseMaterialGroup = function() {
1122
+ return this.setBaseMaterialGroup(undefined);
1123
+ };
1124
+
1125
+
1126
+ /**
1127
+ * Returns whether this field is set.
1128
+ * @return {boolean}
1129
+ */
1130
+ proto.CreateMaterialGroupRequest.prototype.hasBaseMaterialGroup = function() {
1131
+ return jspb.Message.getField(this, 1) != null;
1132
+ };
1133
+
1134
+
1135
+
1136
+
1137
+
1138
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1139
+ /**
1140
+ * Creates an object representation of this proto.
1141
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1142
+ * Optional fields that are not set will be set to undefined.
1143
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1144
+ * For the list of reserved names please see:
1145
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1146
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1147
+ * JSPB instance for transitional soy proto support:
1148
+ * http://goto/soy-param-migration
1149
+ * @return {!Object}
1150
+ */
1151
+ proto.UpdateMaterialGroupRequest.prototype.toObject = function(opt_includeInstance) {
1152
+ return proto.UpdateMaterialGroupRequest.toObject(opt_includeInstance, this);
1153
+ };
1154
+
1155
+
1156
+ /**
1157
+ * Static version of the {@see toObject} method.
1158
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1159
+ * the JSPB instance for transitional soy proto support:
1160
+ * http://goto/soy-param-migration
1161
+ * @param {!proto.UpdateMaterialGroupRequest} msg The msg instance to transform.
1162
+ * @return {!Object}
1163
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1164
+ */
1165
+ proto.UpdateMaterialGroupRequest.toObject = function(includeInstance, msg) {
1166
+ var f, obj = {
1167
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1168
+ baseMaterialGroup: (f = msg.getBaseMaterialGroup()) && proto.BaseMaterialGroupRequest.toObject(includeInstance, f)
1169
+ };
1170
+
1171
+ if (includeInstance) {
1172
+ obj.$jspbMessageInstance = msg;
1173
+ }
1174
+ return obj;
1175
+ };
1176
+ }
1177
+
1178
+
1179
+ /**
1180
+ * Deserializes binary data (in protobuf wire format).
1181
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1182
+ * @return {!proto.UpdateMaterialGroupRequest}
1183
+ */
1184
+ proto.UpdateMaterialGroupRequest.deserializeBinary = function(bytes) {
1185
+ var reader = new jspb.BinaryReader(bytes);
1186
+ var msg = new proto.UpdateMaterialGroupRequest;
1187
+ return proto.UpdateMaterialGroupRequest.deserializeBinaryFromReader(msg, reader);
1188
+ };
1189
+
1190
+
1191
+ /**
1192
+ * Deserializes binary data (in protobuf wire format) from the
1193
+ * given reader into the given message object.
1194
+ * @param {!proto.UpdateMaterialGroupRequest} msg The message object to deserialize into.
1195
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1196
+ * @return {!proto.UpdateMaterialGroupRequest}
1197
+ */
1198
+ proto.UpdateMaterialGroupRequest.deserializeBinaryFromReader = function(msg, reader) {
1199
+ while (reader.nextField()) {
1200
+ if (reader.isEndGroup()) {
1201
+ break;
1202
+ }
1203
+ var field = reader.getFieldNumber();
1204
+ switch (field) {
1205
+ case 1:
1206
+ var value = /** @type {string} */ (reader.readString());
1207
+ msg.setReferencesId(value);
1208
+ break;
1209
+ case 2:
1210
+ var value = new proto.BaseMaterialGroupRequest;
1211
+ reader.readMessage(value,proto.BaseMaterialGroupRequest.deserializeBinaryFromReader);
1212
+ msg.setBaseMaterialGroup(value);
1213
+ break;
1214
+ default:
1215
+ reader.skipField();
1216
+ break;
1217
+ }
1218
+ }
1219
+ return msg;
1220
+ };
1221
+
1222
+
1223
+ /**
1224
+ * Serializes the message to binary data (in protobuf wire format).
1225
+ * @return {!Uint8Array}
1226
+ */
1227
+ proto.UpdateMaterialGroupRequest.prototype.serializeBinary = function() {
1228
+ var writer = new jspb.BinaryWriter();
1229
+ proto.UpdateMaterialGroupRequest.serializeBinaryToWriter(this, writer);
1230
+ return writer.getResultBuffer();
1231
+ };
1232
+
1233
+
1234
+ /**
1235
+ * Serializes the given message to binary data (in protobuf wire
1236
+ * format), writing to the given BinaryWriter.
1237
+ * @param {!proto.UpdateMaterialGroupRequest} message
1238
+ * @param {!jspb.BinaryWriter} writer
1239
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1240
+ */
1241
+ proto.UpdateMaterialGroupRequest.serializeBinaryToWriter = function(message, writer) {
1242
+ var f = undefined;
1243
+ f = message.getReferencesId();
1244
+ if (f.length > 0) {
1245
+ writer.writeString(
1246
+ 1,
1247
+ f
1248
+ );
1249
+ }
1250
+ f = message.getBaseMaterialGroup();
1251
+ if (f != null) {
1252
+ writer.writeMessage(
1253
+ 2,
1254
+ f,
1255
+ proto.BaseMaterialGroupRequest.serializeBinaryToWriter
1256
+ );
1257
+ }
1258
+ };
1259
+
1260
+
1261
+ /**
1262
+ * optional string references_id = 1;
1263
+ * @return {string}
1264
+ */
1265
+ proto.UpdateMaterialGroupRequest.prototype.getReferencesId = function() {
1266
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1267
+ };
1268
+
1269
+
1270
+ /**
1271
+ * @param {string} value
1272
+ * @return {!proto.UpdateMaterialGroupRequest} returns this
1273
+ */
1274
+ proto.UpdateMaterialGroupRequest.prototype.setReferencesId = function(value) {
1275
+ return jspb.Message.setProto3StringField(this, 1, value);
1276
+ };
1277
+
1278
+
1279
+ /**
1280
+ * optional BaseMaterialGroupRequest base_material_group = 2;
1281
+ * @return {?proto.BaseMaterialGroupRequest}
1282
+ */
1283
+ proto.UpdateMaterialGroupRequest.prototype.getBaseMaterialGroup = function() {
1284
+ return /** @type{?proto.BaseMaterialGroupRequest} */ (
1285
+ jspb.Message.getWrapperField(this, proto.BaseMaterialGroupRequest, 2));
1286
+ };
1287
+
1288
+
1289
+ /**
1290
+ * @param {?proto.BaseMaterialGroupRequest|undefined} value
1291
+ * @return {!proto.UpdateMaterialGroupRequest} returns this
1292
+ */
1293
+ proto.UpdateMaterialGroupRequest.prototype.setBaseMaterialGroup = function(value) {
1294
+ return jspb.Message.setWrapperField(this, 2, value);
1295
+ };
1296
+
1297
+
1298
+ /**
1299
+ * Clears the message field making it undefined.
1300
+ * @return {!proto.UpdateMaterialGroupRequest} returns this
1301
+ */
1302
+ proto.UpdateMaterialGroupRequest.prototype.clearBaseMaterialGroup = function() {
1303
+ return this.setBaseMaterialGroup(undefined);
1304
+ };
1305
+
1306
+
1307
+ /**
1308
+ * Returns whether this field is set.
1309
+ * @return {boolean}
1310
+ */
1311
+ proto.UpdateMaterialGroupRequest.prototype.hasBaseMaterialGroup = function() {
1312
+ return jspb.Message.getField(this, 2) != null;
1313
+ };
1314
+
1315
+
1316
+
1317
+ /**
1318
+ * List of repeated fields within this message type.
1319
+ * @private {!Array<number>}
1320
+ * @const
1321
+ */
1322
+ proto.DeleteMaterialGroupRequest.repeatedFields_ = [1];
1323
+
1324
+
1325
+
1326
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1327
+ /**
1328
+ * Creates an object representation of this proto.
1329
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1330
+ * Optional fields that are not set will be set to undefined.
1331
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1332
+ * For the list of reserved names please see:
1333
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1334
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1335
+ * JSPB instance for transitional soy proto support:
1336
+ * http://goto/soy-param-migration
1337
+ * @return {!Object}
1338
+ */
1339
+ proto.DeleteMaterialGroupRequest.prototype.toObject = function(opt_includeInstance) {
1340
+ return proto.DeleteMaterialGroupRequest.toObject(opt_includeInstance, this);
1341
+ };
1342
+
1343
+
1344
+ /**
1345
+ * Static version of the {@see toObject} method.
1346
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1347
+ * the JSPB instance for transitional soy proto support:
1348
+ * http://goto/soy-param-migration
1349
+ * @param {!proto.DeleteMaterialGroupRequest} msg The msg instance to transform.
1350
+ * @return {!Object}
1351
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1352
+ */
1353
+ proto.DeleteMaterialGroupRequest.toObject = function(includeInstance, msg) {
1354
+ var f, obj = {
1355
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
1356
+ };
1357
+
1358
+ if (includeInstance) {
1359
+ obj.$jspbMessageInstance = msg;
1360
+ }
1361
+ return obj;
1362
+ };
1363
+ }
1364
+
1365
+
1366
+ /**
1367
+ * Deserializes binary data (in protobuf wire format).
1368
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1369
+ * @return {!proto.DeleteMaterialGroupRequest}
1370
+ */
1371
+ proto.DeleteMaterialGroupRequest.deserializeBinary = function(bytes) {
1372
+ var reader = new jspb.BinaryReader(bytes);
1373
+ var msg = new proto.DeleteMaterialGroupRequest;
1374
+ return proto.DeleteMaterialGroupRequest.deserializeBinaryFromReader(msg, reader);
1375
+ };
1376
+
1377
+
1378
+ /**
1379
+ * Deserializes binary data (in protobuf wire format) from the
1380
+ * given reader into the given message object.
1381
+ * @param {!proto.DeleteMaterialGroupRequest} msg The message object to deserialize into.
1382
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1383
+ * @return {!proto.DeleteMaterialGroupRequest}
1384
+ */
1385
+ proto.DeleteMaterialGroupRequest.deserializeBinaryFromReader = function(msg, reader) {
1386
+ while (reader.nextField()) {
1387
+ if (reader.isEndGroup()) {
1388
+ break;
1389
+ }
1390
+ var field = reader.getFieldNumber();
1391
+ switch (field) {
1392
+ case 1:
1393
+ var value = /** @type {string} */ (reader.readString());
1394
+ msg.addReferenceIds(value);
1395
+ break;
1396
+ default:
1397
+ reader.skipField();
1398
+ break;
1399
+ }
1400
+ }
1401
+ return msg;
1402
+ };
1403
+
1404
+
1405
+ /**
1406
+ * Serializes the message to binary data (in protobuf wire format).
1407
+ * @return {!Uint8Array}
1408
+ */
1409
+ proto.DeleteMaterialGroupRequest.prototype.serializeBinary = function() {
1410
+ var writer = new jspb.BinaryWriter();
1411
+ proto.DeleteMaterialGroupRequest.serializeBinaryToWriter(this, writer);
1412
+ return writer.getResultBuffer();
1413
+ };
1414
+
1415
+
1416
+ /**
1417
+ * Serializes the given message to binary data (in protobuf wire
1418
+ * format), writing to the given BinaryWriter.
1419
+ * @param {!proto.DeleteMaterialGroupRequest} message
1420
+ * @param {!jspb.BinaryWriter} writer
1421
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1422
+ */
1423
+ proto.DeleteMaterialGroupRequest.serializeBinaryToWriter = function(message, writer) {
1424
+ var f = undefined;
1425
+ f = message.getReferenceIdsList();
1426
+ if (f.length > 0) {
1427
+ writer.writeRepeatedString(
1428
+ 1,
1429
+ f
1430
+ );
1431
+ }
1432
+ };
1433
+
1434
+
1435
+ /**
1436
+ * repeated string reference_ids = 1;
1437
+ * @return {!Array<string>}
1438
+ */
1439
+ proto.DeleteMaterialGroupRequest.prototype.getReferenceIdsList = function() {
1440
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
1441
+ };
1442
+
1443
+
1444
+ /**
1445
+ * @param {!Array<string>} value
1446
+ * @return {!proto.DeleteMaterialGroupRequest} returns this
1447
+ */
1448
+ proto.DeleteMaterialGroupRequest.prototype.setReferenceIdsList = function(value) {
1449
+ return jspb.Message.setField(this, 1, value || []);
1450
+ };
1451
+
1452
+
1453
+ /**
1454
+ * @param {string} value
1455
+ * @param {number=} opt_index
1456
+ * @return {!proto.DeleteMaterialGroupRequest} returns this
1457
+ */
1458
+ proto.DeleteMaterialGroupRequest.prototype.addReferenceIds = function(value, opt_index) {
1459
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
1460
+ };
1461
+
1462
+
1463
+ /**
1464
+ * Clears the list making it empty but non-null.
1465
+ * @return {!proto.DeleteMaterialGroupRequest} returns this
1466
+ */
1467
+ proto.DeleteMaterialGroupRequest.prototype.clearReferenceIdsList = function() {
1468
+ return this.setReferenceIdsList([]);
1469
+ };
1470
+
1471
+
1472
+
1473
+
1474
+
1475
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1476
+ /**
1477
+ * Creates an object representation of this proto.
1478
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1479
+ * Optional fields that are not set will be set to undefined.
1480
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1481
+ * For the list of reserved names please see:
1482
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1483
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1484
+ * JSPB instance for transitional soy proto support:
1485
+ * http://goto/soy-param-migration
1486
+ * @return {!Object}
1487
+ */
1488
+ proto.GetMaterialGroupByIdRequest.prototype.toObject = function(opt_includeInstance) {
1489
+ return proto.GetMaterialGroupByIdRequest.toObject(opt_includeInstance, this);
1490
+ };
1491
+
1492
+
1493
+ /**
1494
+ * Static version of the {@see toObject} method.
1495
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1496
+ * the JSPB instance for transitional soy proto support:
1497
+ * http://goto/soy-param-migration
1498
+ * @param {!proto.GetMaterialGroupByIdRequest} msg The msg instance to transform.
1499
+ * @return {!Object}
1500
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1501
+ */
1502
+ proto.GetMaterialGroupByIdRequest.toObject = function(includeInstance, msg) {
1503
+ var f, obj = {
1504
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
1505
+ };
1506
+
1507
+ if (includeInstance) {
1508
+ obj.$jspbMessageInstance = msg;
1509
+ }
1510
+ return obj;
1511
+ };
1512
+ }
1513
+
1514
+
1515
+ /**
1516
+ * Deserializes binary data (in protobuf wire format).
1517
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1518
+ * @return {!proto.GetMaterialGroupByIdRequest}
1519
+ */
1520
+ proto.GetMaterialGroupByIdRequest.deserializeBinary = function(bytes) {
1521
+ var reader = new jspb.BinaryReader(bytes);
1522
+ var msg = new proto.GetMaterialGroupByIdRequest;
1523
+ return proto.GetMaterialGroupByIdRequest.deserializeBinaryFromReader(msg, reader);
1524
+ };
1525
+
1526
+
1527
+ /**
1528
+ * Deserializes binary data (in protobuf wire format) from the
1529
+ * given reader into the given message object.
1530
+ * @param {!proto.GetMaterialGroupByIdRequest} msg The message object to deserialize into.
1531
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1532
+ * @return {!proto.GetMaterialGroupByIdRequest}
1533
+ */
1534
+ proto.GetMaterialGroupByIdRequest.deserializeBinaryFromReader = function(msg, reader) {
1535
+ while (reader.nextField()) {
1536
+ if (reader.isEndGroup()) {
1537
+ break;
1538
+ }
1539
+ var field = reader.getFieldNumber();
1540
+ switch (field) {
1541
+ case 1:
1542
+ var value = /** @type {string} */ (reader.readString());
1543
+ msg.setReferencesId(value);
1544
+ break;
1545
+ default:
1546
+ reader.skipField();
1547
+ break;
1548
+ }
1549
+ }
1550
+ return msg;
1551
+ };
1552
+
1553
+
1554
+ /**
1555
+ * Serializes the message to binary data (in protobuf wire format).
1556
+ * @return {!Uint8Array}
1557
+ */
1558
+ proto.GetMaterialGroupByIdRequest.prototype.serializeBinary = function() {
1559
+ var writer = new jspb.BinaryWriter();
1560
+ proto.GetMaterialGroupByIdRequest.serializeBinaryToWriter(this, writer);
1561
+ return writer.getResultBuffer();
1562
+ };
1563
+
1564
+
1565
+ /**
1566
+ * Serializes the given message to binary data (in protobuf wire
1567
+ * format), writing to the given BinaryWriter.
1568
+ * @param {!proto.GetMaterialGroupByIdRequest} message
1569
+ * @param {!jspb.BinaryWriter} writer
1570
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1571
+ */
1572
+ proto.GetMaterialGroupByIdRequest.serializeBinaryToWriter = function(message, writer) {
1573
+ var f = undefined;
1574
+ f = message.getReferencesId();
1575
+ if (f.length > 0) {
1576
+ writer.writeString(
1577
+ 1,
1578
+ f
1579
+ );
1580
+ }
1581
+ };
1582
+
1583
+
1584
+ /**
1585
+ * optional string references_id = 1;
1586
+ * @return {string}
1587
+ */
1588
+ proto.GetMaterialGroupByIdRequest.prototype.getReferencesId = function() {
1589
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1590
+ };
1591
+
1592
+
1593
+ /**
1594
+ * @param {string} value
1595
+ * @return {!proto.GetMaterialGroupByIdRequest} returns this
1596
+ */
1597
+ proto.GetMaterialGroupByIdRequest.prototype.setReferencesId = function(value) {
1598
+ return jspb.Message.setProto3StringField(this, 1, value);
1599
+ };
1600
+
1601
+
1602
+
1603
+
1604
+
1605
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1606
+ /**
1607
+ * Creates an object representation of this proto.
1608
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1609
+ * Optional fields that are not set will be set to undefined.
1610
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1611
+ * For the list of reserved names please see:
1612
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1613
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1614
+ * JSPB instance for transitional soy proto support:
1615
+ * http://goto/soy-param-migration
1616
+ * @return {!Object}
1617
+ */
1618
+ proto.GetListMaterialGroupRequest.prototype.toObject = function(opt_includeInstance) {
1619
+ return proto.GetListMaterialGroupRequest.toObject(opt_includeInstance, this);
1620
+ };
1621
+
1622
+
1623
+ /**
1624
+ * Static version of the {@see toObject} method.
1625
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1626
+ * the JSPB instance for transitional soy proto support:
1627
+ * http://goto/soy-param-migration
1628
+ * @param {!proto.GetListMaterialGroupRequest} msg The msg instance to transform.
1629
+ * @return {!Object}
1630
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1631
+ */
1632
+ proto.GetListMaterialGroupRequest.toObject = function(includeInstance, msg) {
1633
+ var f, obj = {
1634
+ pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
1635
+ query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
1636
+ };
1637
+
1638
+ if (includeInstance) {
1639
+ obj.$jspbMessageInstance = msg;
1640
+ }
1641
+ return obj;
1642
+ };
1643
+ }
1644
+
1645
+
1646
+ /**
1647
+ * Deserializes binary data (in protobuf wire format).
1648
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1649
+ * @return {!proto.GetListMaterialGroupRequest}
1650
+ */
1651
+ proto.GetListMaterialGroupRequest.deserializeBinary = function(bytes) {
1652
+ var reader = new jspb.BinaryReader(bytes);
1653
+ var msg = new proto.GetListMaterialGroupRequest;
1654
+ return proto.GetListMaterialGroupRequest.deserializeBinaryFromReader(msg, reader);
1655
+ };
1656
+
1657
+
1658
+ /**
1659
+ * Deserializes binary data (in protobuf wire format) from the
1660
+ * given reader into the given message object.
1661
+ * @param {!proto.GetListMaterialGroupRequest} msg The message object to deserialize into.
1662
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1663
+ * @return {!proto.GetListMaterialGroupRequest}
1664
+ */
1665
+ proto.GetListMaterialGroupRequest.deserializeBinaryFromReader = function(msg, reader) {
1666
+ while (reader.nextField()) {
1667
+ if (reader.isEndGroup()) {
1668
+ break;
1669
+ }
1670
+ var field = reader.getFieldNumber();
1671
+ switch (field) {
1672
+ case 1:
1673
+ var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
1674
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
1675
+ msg.setPagination(value);
1676
+ break;
1677
+ case 2:
1678
+ var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
1679
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
1680
+ msg.setQuery(value);
1681
+ break;
1682
+ default:
1683
+ reader.skipField();
1684
+ break;
1685
+ }
1686
+ }
1687
+ return msg;
1688
+ };
1689
+
1690
+
1691
+ /**
1692
+ * Serializes the message to binary data (in protobuf wire format).
1693
+ * @return {!Uint8Array}
1694
+ */
1695
+ proto.GetListMaterialGroupRequest.prototype.serializeBinary = function() {
1696
+ var writer = new jspb.BinaryWriter();
1697
+ proto.GetListMaterialGroupRequest.serializeBinaryToWriter(this, writer);
1698
+ return writer.getResultBuffer();
1699
+ };
1700
+
1701
+
1702
+ /**
1703
+ * Serializes the given message to binary data (in protobuf wire
1704
+ * format), writing to the given BinaryWriter.
1705
+ * @param {!proto.GetListMaterialGroupRequest} message
1706
+ * @param {!jspb.BinaryWriter} writer
1707
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1708
+ */
1709
+ proto.GetListMaterialGroupRequest.serializeBinaryToWriter = function(message, writer) {
1710
+ var f = undefined;
1711
+ f = message.getPagination();
1712
+ if (f != null) {
1713
+ writer.writeMessage(
1714
+ 1,
1715
+ f,
1716
+ prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
1717
+ );
1718
+ }
1719
+ f = message.getQuery();
1720
+ if (f != null) {
1721
+ writer.writeMessage(
1722
+ 2,
1723
+ f,
1724
+ prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
1725
+ );
1726
+ }
1727
+ };
1728
+
1729
+
1730
+ /**
1731
+ * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
1732
+ * @return {?proto.prisca.v1.global.meta.PaginationRequest}
1733
+ */
1734
+ proto.GetListMaterialGroupRequest.prototype.getPagination = function() {
1735
+ return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
1736
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
1737
+ };
1738
+
1739
+
1740
+ /**
1741
+ * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
1742
+ * @return {!proto.GetListMaterialGroupRequest} returns this
1743
+ */
1744
+ proto.GetListMaterialGroupRequest.prototype.setPagination = function(value) {
1745
+ return jspb.Message.setWrapperField(this, 1, value);
1746
+ };
1747
+
1748
+
1749
+ /**
1750
+ * Clears the message field making it undefined.
1751
+ * @return {!proto.GetListMaterialGroupRequest} returns this
1752
+ */
1753
+ proto.GetListMaterialGroupRequest.prototype.clearPagination = function() {
1754
+ return this.setPagination(undefined);
1755
+ };
1756
+
1757
+
1758
+ /**
1759
+ * Returns whether this field is set.
1760
+ * @return {boolean}
1761
+ */
1762
+ proto.GetListMaterialGroupRequest.prototype.hasPagination = function() {
1763
+ return jspb.Message.getField(this, 1) != null;
1764
+ };
1765
+
1766
+
1767
+ /**
1768
+ * optional prisca.v1.global.meta.FilterRequest query = 2;
1769
+ * @return {?proto.prisca.v1.global.meta.FilterRequest}
1770
+ */
1771
+ proto.GetListMaterialGroupRequest.prototype.getQuery = function() {
1772
+ return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
1773
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
1774
+ };
1775
+
1776
+
1777
+ /**
1778
+ * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
1779
+ * @return {!proto.GetListMaterialGroupRequest} returns this
1780
+ */
1781
+ proto.GetListMaterialGroupRequest.prototype.setQuery = function(value) {
1782
+ return jspb.Message.setWrapperField(this, 2, value);
1783
+ };
1784
+
1785
+
1786
+ /**
1787
+ * Clears the message field making it undefined.
1788
+ * @return {!proto.GetListMaterialGroupRequest} returns this
1789
+ */
1790
+ proto.GetListMaterialGroupRequest.prototype.clearQuery = function() {
1791
+ return this.setQuery(undefined);
1792
+ };
1793
+
1794
+
1795
+ /**
1796
+ * Returns whether this field is set.
1797
+ * @return {boolean}
1798
+ */
1799
+ proto.GetListMaterialGroupRequest.prototype.hasQuery = function() {
1800
+ return jspb.Message.getField(this, 2) != null;
1801
+ };
1802
+
1803
+
1804
+
1805
+
1806
+
1807
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1808
+ /**
1809
+ * Creates an object representation of this proto.
1810
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1811
+ * Optional fields that are not set will be set to undefined.
1812
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1813
+ * For the list of reserved names please see:
1814
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1815
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1816
+ * JSPB instance for transitional soy proto support:
1817
+ * http://goto/soy-param-migration
1818
+ * @return {!Object}
1819
+ */
1820
+ proto.CreateMaterialGroupResponse.prototype.toObject = function(opt_includeInstance) {
1821
+ return proto.CreateMaterialGroupResponse.toObject(opt_includeInstance, this);
1822
+ };
1823
+
1824
+
1825
+ /**
1826
+ * Static version of the {@see toObject} method.
1827
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1828
+ * the JSPB instance for transitional soy proto support:
1829
+ * http://goto/soy-param-migration
1830
+ * @param {!proto.CreateMaterialGroupResponse} msg The msg instance to transform.
1831
+ * @return {!Object}
1832
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1833
+ */
1834
+ proto.CreateMaterialGroupResponse.toObject = function(includeInstance, msg) {
1835
+ var f, obj = {
1836
+ materialGroup: (f = msg.getMaterialGroup()) && proto.MaterialGroup.toObject(includeInstance, f),
1837
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1838
+ };
1839
+
1840
+ if (includeInstance) {
1841
+ obj.$jspbMessageInstance = msg;
1842
+ }
1843
+ return obj;
1844
+ };
1845
+ }
1846
+
1847
+
1848
+ /**
1849
+ * Deserializes binary data (in protobuf wire format).
1850
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1851
+ * @return {!proto.CreateMaterialGroupResponse}
1852
+ */
1853
+ proto.CreateMaterialGroupResponse.deserializeBinary = function(bytes) {
1854
+ var reader = new jspb.BinaryReader(bytes);
1855
+ var msg = new proto.CreateMaterialGroupResponse;
1856
+ return proto.CreateMaterialGroupResponse.deserializeBinaryFromReader(msg, reader);
1857
+ };
1858
+
1859
+
1860
+ /**
1861
+ * Deserializes binary data (in protobuf wire format) from the
1862
+ * given reader into the given message object.
1863
+ * @param {!proto.CreateMaterialGroupResponse} msg The message object to deserialize into.
1864
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1865
+ * @return {!proto.CreateMaterialGroupResponse}
1866
+ */
1867
+ proto.CreateMaterialGroupResponse.deserializeBinaryFromReader = function(msg, reader) {
1868
+ while (reader.nextField()) {
1869
+ if (reader.isEndGroup()) {
1870
+ break;
1871
+ }
1872
+ var field = reader.getFieldNumber();
1873
+ switch (field) {
1874
+ case 1:
1875
+ var value = new proto.MaterialGroup;
1876
+ reader.readMessage(value,proto.MaterialGroup.deserializeBinaryFromReader);
1877
+ msg.setMaterialGroup(value);
1878
+ break;
1879
+ case 2:
1880
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1881
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1882
+ msg.setMeta(value);
1883
+ break;
1884
+ default:
1885
+ reader.skipField();
1886
+ break;
1887
+ }
1888
+ }
1889
+ return msg;
1890
+ };
1891
+
1892
+
1893
+ /**
1894
+ * Serializes the message to binary data (in protobuf wire format).
1895
+ * @return {!Uint8Array}
1896
+ */
1897
+ proto.CreateMaterialGroupResponse.prototype.serializeBinary = function() {
1898
+ var writer = new jspb.BinaryWriter();
1899
+ proto.CreateMaterialGroupResponse.serializeBinaryToWriter(this, writer);
1900
+ return writer.getResultBuffer();
1901
+ };
1902
+
1903
+
1904
+ /**
1905
+ * Serializes the given message to binary data (in protobuf wire
1906
+ * format), writing to the given BinaryWriter.
1907
+ * @param {!proto.CreateMaterialGroupResponse} message
1908
+ * @param {!jspb.BinaryWriter} writer
1909
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1910
+ */
1911
+ proto.CreateMaterialGroupResponse.serializeBinaryToWriter = function(message, writer) {
1912
+ var f = undefined;
1913
+ f = message.getMaterialGroup();
1914
+ if (f != null) {
1915
+ writer.writeMessage(
1916
+ 1,
1917
+ f,
1918
+ proto.MaterialGroup.serializeBinaryToWriter
1919
+ );
1920
+ }
1921
+ f = message.getMeta();
1922
+ if (f != null) {
1923
+ writer.writeMessage(
1924
+ 2,
1925
+ f,
1926
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1927
+ );
1928
+ }
1929
+ };
1930
+
1931
+
1932
+ /**
1933
+ * optional MaterialGroup material_group = 1;
1934
+ * @return {?proto.MaterialGroup}
1935
+ */
1936
+ proto.CreateMaterialGroupResponse.prototype.getMaterialGroup = function() {
1937
+ return /** @type{?proto.MaterialGroup} */ (
1938
+ jspb.Message.getWrapperField(this, proto.MaterialGroup, 1));
1939
+ };
1940
+
1941
+
1942
+ /**
1943
+ * @param {?proto.MaterialGroup|undefined} value
1944
+ * @return {!proto.CreateMaterialGroupResponse} returns this
1945
+ */
1946
+ proto.CreateMaterialGroupResponse.prototype.setMaterialGroup = function(value) {
1947
+ return jspb.Message.setWrapperField(this, 1, value);
1948
+ };
1949
+
1950
+
1951
+ /**
1952
+ * Clears the message field making it undefined.
1953
+ * @return {!proto.CreateMaterialGroupResponse} returns this
1954
+ */
1955
+ proto.CreateMaterialGroupResponse.prototype.clearMaterialGroup = function() {
1956
+ return this.setMaterialGroup(undefined);
1957
+ };
1958
+
1959
+
1960
+ /**
1961
+ * Returns whether this field is set.
1962
+ * @return {boolean}
1963
+ */
1964
+ proto.CreateMaterialGroupResponse.prototype.hasMaterialGroup = function() {
1965
+ return jspb.Message.getField(this, 1) != null;
1966
+ };
1967
+
1968
+
1969
+ /**
1970
+ * optional prisca.v1.global.meta.Meta meta = 2;
1971
+ * @return {?proto.prisca.v1.global.meta.Meta}
1972
+ */
1973
+ proto.CreateMaterialGroupResponse.prototype.getMeta = function() {
1974
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1975
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1976
+ };
1977
+
1978
+
1979
+ /**
1980
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1981
+ * @return {!proto.CreateMaterialGroupResponse} returns this
1982
+ */
1983
+ proto.CreateMaterialGroupResponse.prototype.setMeta = function(value) {
1984
+ return jspb.Message.setWrapperField(this, 2, value);
1985
+ };
1986
+
1987
+
1988
+ /**
1989
+ * Clears the message field making it undefined.
1990
+ * @return {!proto.CreateMaterialGroupResponse} returns this
1991
+ */
1992
+ proto.CreateMaterialGroupResponse.prototype.clearMeta = function() {
1993
+ return this.setMeta(undefined);
1994
+ };
1995
+
1996
+
1997
+ /**
1998
+ * Returns whether this field is set.
1999
+ * @return {boolean}
2000
+ */
2001
+ proto.CreateMaterialGroupResponse.prototype.hasMeta = function() {
2002
+ return jspb.Message.getField(this, 2) != null;
2003
+ };
2004
+
2005
+
2006
+
2007
+
2008
+
2009
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2010
+ /**
2011
+ * Creates an object representation of this proto.
2012
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2013
+ * Optional fields that are not set will be set to undefined.
2014
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2015
+ * For the list of reserved names please see:
2016
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2017
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2018
+ * JSPB instance for transitional soy proto support:
2019
+ * http://goto/soy-param-migration
2020
+ * @return {!Object}
2021
+ */
2022
+ proto.UpdateMaterialGroupResponse.prototype.toObject = function(opt_includeInstance) {
2023
+ return proto.UpdateMaterialGroupResponse.toObject(opt_includeInstance, this);
2024
+ };
2025
+
2026
+
2027
+ /**
2028
+ * Static version of the {@see toObject} method.
2029
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2030
+ * the JSPB instance for transitional soy proto support:
2031
+ * http://goto/soy-param-migration
2032
+ * @param {!proto.UpdateMaterialGroupResponse} msg The msg instance to transform.
2033
+ * @return {!Object}
2034
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2035
+ */
2036
+ proto.UpdateMaterialGroupResponse.toObject = function(includeInstance, msg) {
2037
+ var f, obj = {
2038
+ materialGroup: (f = msg.getMaterialGroup()) && proto.MaterialGroup.toObject(includeInstance, f),
2039
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2040
+ };
2041
+
2042
+ if (includeInstance) {
2043
+ obj.$jspbMessageInstance = msg;
2044
+ }
2045
+ return obj;
2046
+ };
2047
+ }
2048
+
2049
+
2050
+ /**
2051
+ * Deserializes binary data (in protobuf wire format).
2052
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2053
+ * @return {!proto.UpdateMaterialGroupResponse}
2054
+ */
2055
+ proto.UpdateMaterialGroupResponse.deserializeBinary = function(bytes) {
2056
+ var reader = new jspb.BinaryReader(bytes);
2057
+ var msg = new proto.UpdateMaterialGroupResponse;
2058
+ return proto.UpdateMaterialGroupResponse.deserializeBinaryFromReader(msg, reader);
2059
+ };
2060
+
2061
+
2062
+ /**
2063
+ * Deserializes binary data (in protobuf wire format) from the
2064
+ * given reader into the given message object.
2065
+ * @param {!proto.UpdateMaterialGroupResponse} msg The message object to deserialize into.
2066
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2067
+ * @return {!proto.UpdateMaterialGroupResponse}
2068
+ */
2069
+ proto.UpdateMaterialGroupResponse.deserializeBinaryFromReader = function(msg, reader) {
2070
+ while (reader.nextField()) {
2071
+ if (reader.isEndGroup()) {
2072
+ break;
2073
+ }
2074
+ var field = reader.getFieldNumber();
2075
+ switch (field) {
2076
+ case 1:
2077
+ var value = new proto.MaterialGroup;
2078
+ reader.readMessage(value,proto.MaterialGroup.deserializeBinaryFromReader);
2079
+ msg.setMaterialGroup(value);
2080
+ break;
2081
+ case 2:
2082
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2083
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2084
+ msg.setMeta(value);
2085
+ break;
2086
+ default:
2087
+ reader.skipField();
2088
+ break;
2089
+ }
2090
+ }
2091
+ return msg;
2092
+ };
2093
+
2094
+
2095
+ /**
2096
+ * Serializes the message to binary data (in protobuf wire format).
2097
+ * @return {!Uint8Array}
2098
+ */
2099
+ proto.UpdateMaterialGroupResponse.prototype.serializeBinary = function() {
2100
+ var writer = new jspb.BinaryWriter();
2101
+ proto.UpdateMaterialGroupResponse.serializeBinaryToWriter(this, writer);
2102
+ return writer.getResultBuffer();
2103
+ };
2104
+
2105
+
2106
+ /**
2107
+ * Serializes the given message to binary data (in protobuf wire
2108
+ * format), writing to the given BinaryWriter.
2109
+ * @param {!proto.UpdateMaterialGroupResponse} message
2110
+ * @param {!jspb.BinaryWriter} writer
2111
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2112
+ */
2113
+ proto.UpdateMaterialGroupResponse.serializeBinaryToWriter = function(message, writer) {
2114
+ var f = undefined;
2115
+ f = message.getMaterialGroup();
2116
+ if (f != null) {
2117
+ writer.writeMessage(
2118
+ 1,
2119
+ f,
2120
+ proto.MaterialGroup.serializeBinaryToWriter
2121
+ );
2122
+ }
2123
+ f = message.getMeta();
2124
+ if (f != null) {
2125
+ writer.writeMessage(
2126
+ 2,
2127
+ f,
2128
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2129
+ );
2130
+ }
2131
+ };
2132
+
2133
+
2134
+ /**
2135
+ * optional MaterialGroup material_group = 1;
2136
+ * @return {?proto.MaterialGroup}
2137
+ */
2138
+ proto.UpdateMaterialGroupResponse.prototype.getMaterialGroup = function() {
2139
+ return /** @type{?proto.MaterialGroup} */ (
2140
+ jspb.Message.getWrapperField(this, proto.MaterialGroup, 1));
2141
+ };
2142
+
2143
+
2144
+ /**
2145
+ * @param {?proto.MaterialGroup|undefined} value
2146
+ * @return {!proto.UpdateMaterialGroupResponse} returns this
2147
+ */
2148
+ proto.UpdateMaterialGroupResponse.prototype.setMaterialGroup = function(value) {
2149
+ return jspb.Message.setWrapperField(this, 1, value);
2150
+ };
2151
+
2152
+
2153
+ /**
2154
+ * Clears the message field making it undefined.
2155
+ * @return {!proto.UpdateMaterialGroupResponse} returns this
2156
+ */
2157
+ proto.UpdateMaterialGroupResponse.prototype.clearMaterialGroup = function() {
2158
+ return this.setMaterialGroup(undefined);
2159
+ };
2160
+
2161
+
2162
+ /**
2163
+ * Returns whether this field is set.
2164
+ * @return {boolean}
2165
+ */
2166
+ proto.UpdateMaterialGroupResponse.prototype.hasMaterialGroup = function() {
2167
+ return jspb.Message.getField(this, 1) != null;
2168
+ };
2169
+
2170
+
2171
+ /**
2172
+ * optional prisca.v1.global.meta.Meta meta = 2;
2173
+ * @return {?proto.prisca.v1.global.meta.Meta}
2174
+ */
2175
+ proto.UpdateMaterialGroupResponse.prototype.getMeta = function() {
2176
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2177
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2178
+ };
2179
+
2180
+
2181
+ /**
2182
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2183
+ * @return {!proto.UpdateMaterialGroupResponse} returns this
2184
+ */
2185
+ proto.UpdateMaterialGroupResponse.prototype.setMeta = function(value) {
2186
+ return jspb.Message.setWrapperField(this, 2, value);
2187
+ };
2188
+
2189
+
2190
+ /**
2191
+ * Clears the message field making it undefined.
2192
+ * @return {!proto.UpdateMaterialGroupResponse} returns this
2193
+ */
2194
+ proto.UpdateMaterialGroupResponse.prototype.clearMeta = function() {
2195
+ return this.setMeta(undefined);
2196
+ };
2197
+
2198
+
2199
+ /**
2200
+ * Returns whether this field is set.
2201
+ * @return {boolean}
2202
+ */
2203
+ proto.UpdateMaterialGroupResponse.prototype.hasMeta = function() {
2204
+ return jspb.Message.getField(this, 2) != null;
2205
+ };
2206
+
2207
+
2208
+
2209
+ /**
2210
+ * List of repeated fields within this message type.
2211
+ * @private {!Array<number>}
2212
+ * @const
2213
+ */
2214
+ proto.DeleteMaterialGroupResponse.repeatedFields_ = [1];
2215
+
2216
+
2217
+
2218
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2219
+ /**
2220
+ * Creates an object representation of this proto.
2221
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2222
+ * Optional fields that are not set will be set to undefined.
2223
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2224
+ * For the list of reserved names please see:
2225
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2226
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2227
+ * JSPB instance for transitional soy proto support:
2228
+ * http://goto/soy-param-migration
2229
+ * @return {!Object}
2230
+ */
2231
+ proto.DeleteMaterialGroupResponse.prototype.toObject = function(opt_includeInstance) {
2232
+ return proto.DeleteMaterialGroupResponse.toObject(opt_includeInstance, this);
2233
+ };
2234
+
2235
+
2236
+ /**
2237
+ * Static version of the {@see toObject} method.
2238
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2239
+ * the JSPB instance for transitional soy proto support:
2240
+ * http://goto/soy-param-migration
2241
+ * @param {!proto.DeleteMaterialGroupResponse} msg The msg instance to transform.
2242
+ * @return {!Object}
2243
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2244
+ */
2245
+ proto.DeleteMaterialGroupResponse.toObject = function(includeInstance, msg) {
2246
+ var f, obj = {
2247
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
2248
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2249
+ };
2250
+
2251
+ if (includeInstance) {
2252
+ obj.$jspbMessageInstance = msg;
2253
+ }
2254
+ return obj;
2255
+ };
2256
+ }
2257
+
2258
+
2259
+ /**
2260
+ * Deserializes binary data (in protobuf wire format).
2261
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2262
+ * @return {!proto.DeleteMaterialGroupResponse}
2263
+ */
2264
+ proto.DeleteMaterialGroupResponse.deserializeBinary = function(bytes) {
2265
+ var reader = new jspb.BinaryReader(bytes);
2266
+ var msg = new proto.DeleteMaterialGroupResponse;
2267
+ return proto.DeleteMaterialGroupResponse.deserializeBinaryFromReader(msg, reader);
2268
+ };
2269
+
2270
+
2271
+ /**
2272
+ * Deserializes binary data (in protobuf wire format) from the
2273
+ * given reader into the given message object.
2274
+ * @param {!proto.DeleteMaterialGroupResponse} msg The message object to deserialize into.
2275
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2276
+ * @return {!proto.DeleteMaterialGroupResponse}
2277
+ */
2278
+ proto.DeleteMaterialGroupResponse.deserializeBinaryFromReader = function(msg, reader) {
2279
+ while (reader.nextField()) {
2280
+ if (reader.isEndGroup()) {
2281
+ break;
2282
+ }
2283
+ var field = reader.getFieldNumber();
2284
+ switch (field) {
2285
+ case 1:
2286
+ var value = /** @type {string} */ (reader.readString());
2287
+ msg.addReferenceIds(value);
2288
+ break;
2289
+ case 2:
2290
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2291
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2292
+ msg.setMeta(value);
2293
+ break;
2294
+ default:
2295
+ reader.skipField();
2296
+ break;
2297
+ }
2298
+ }
2299
+ return msg;
2300
+ };
2301
+
2302
+
2303
+ /**
2304
+ * Serializes the message to binary data (in protobuf wire format).
2305
+ * @return {!Uint8Array}
2306
+ */
2307
+ proto.DeleteMaterialGroupResponse.prototype.serializeBinary = function() {
2308
+ var writer = new jspb.BinaryWriter();
2309
+ proto.DeleteMaterialGroupResponse.serializeBinaryToWriter(this, writer);
2310
+ return writer.getResultBuffer();
2311
+ };
2312
+
2313
+
2314
+ /**
2315
+ * Serializes the given message to binary data (in protobuf wire
2316
+ * format), writing to the given BinaryWriter.
2317
+ * @param {!proto.DeleteMaterialGroupResponse} message
2318
+ * @param {!jspb.BinaryWriter} writer
2319
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2320
+ */
2321
+ proto.DeleteMaterialGroupResponse.serializeBinaryToWriter = function(message, writer) {
2322
+ var f = undefined;
2323
+ f = message.getReferenceIdsList();
2324
+ if (f.length > 0) {
2325
+ writer.writeRepeatedString(
2326
+ 1,
2327
+ f
2328
+ );
2329
+ }
2330
+ f = message.getMeta();
2331
+ if (f != null) {
2332
+ writer.writeMessage(
2333
+ 2,
2334
+ f,
2335
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2336
+ );
2337
+ }
2338
+ };
2339
+
2340
+
2341
+ /**
2342
+ * repeated string reference_ids = 1;
2343
+ * @return {!Array<string>}
2344
+ */
2345
+ proto.DeleteMaterialGroupResponse.prototype.getReferenceIdsList = function() {
2346
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2347
+ };
2348
+
2349
+
2350
+ /**
2351
+ * @param {!Array<string>} value
2352
+ * @return {!proto.DeleteMaterialGroupResponse} returns this
2353
+ */
2354
+ proto.DeleteMaterialGroupResponse.prototype.setReferenceIdsList = function(value) {
2355
+ return jspb.Message.setField(this, 1, value || []);
2356
+ };
2357
+
2358
+
2359
+ /**
2360
+ * @param {string} value
2361
+ * @param {number=} opt_index
2362
+ * @return {!proto.DeleteMaterialGroupResponse} returns this
2363
+ */
2364
+ proto.DeleteMaterialGroupResponse.prototype.addReferenceIds = function(value, opt_index) {
2365
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2366
+ };
2367
+
2368
+
2369
+ /**
2370
+ * Clears the list making it empty but non-null.
2371
+ * @return {!proto.DeleteMaterialGroupResponse} returns this
2372
+ */
2373
+ proto.DeleteMaterialGroupResponse.prototype.clearReferenceIdsList = function() {
2374
+ return this.setReferenceIdsList([]);
2375
+ };
2376
+
2377
+
2378
+ /**
2379
+ * optional prisca.v1.global.meta.Meta meta = 2;
2380
+ * @return {?proto.prisca.v1.global.meta.Meta}
2381
+ */
2382
+ proto.DeleteMaterialGroupResponse.prototype.getMeta = function() {
2383
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2384
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2385
+ };
2386
+
2387
+
2388
+ /**
2389
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2390
+ * @return {!proto.DeleteMaterialGroupResponse} returns this
2391
+ */
2392
+ proto.DeleteMaterialGroupResponse.prototype.setMeta = function(value) {
2393
+ return jspb.Message.setWrapperField(this, 2, value);
2394
+ };
2395
+
2396
+
2397
+ /**
2398
+ * Clears the message field making it undefined.
2399
+ * @return {!proto.DeleteMaterialGroupResponse} returns this
2400
+ */
2401
+ proto.DeleteMaterialGroupResponse.prototype.clearMeta = function() {
2402
+ return this.setMeta(undefined);
2403
+ };
2404
+
2405
+
2406
+ /**
2407
+ * Returns whether this field is set.
2408
+ * @return {boolean}
2409
+ */
2410
+ proto.DeleteMaterialGroupResponse.prototype.hasMeta = function() {
2411
+ return jspb.Message.getField(this, 2) != null;
2412
+ };
2413
+
2414
+
2415
+
2416
+
2417
+
2418
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2419
+ /**
2420
+ * Creates an object representation of this proto.
2421
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2422
+ * Optional fields that are not set will be set to undefined.
2423
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2424
+ * For the list of reserved names please see:
2425
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2426
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2427
+ * JSPB instance for transitional soy proto support:
2428
+ * http://goto/soy-param-migration
2429
+ * @return {!Object}
2430
+ */
2431
+ proto.GetMaterialGroupByIdResponse.prototype.toObject = function(opt_includeInstance) {
2432
+ return proto.GetMaterialGroupByIdResponse.toObject(opt_includeInstance, this);
2433
+ };
2434
+
2435
+
2436
+ /**
2437
+ * Static version of the {@see toObject} method.
2438
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2439
+ * the JSPB instance for transitional soy proto support:
2440
+ * http://goto/soy-param-migration
2441
+ * @param {!proto.GetMaterialGroupByIdResponse} msg The msg instance to transform.
2442
+ * @return {!Object}
2443
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2444
+ */
2445
+ proto.GetMaterialGroupByIdResponse.toObject = function(includeInstance, msg) {
2446
+ var f, obj = {
2447
+ materialGroup: (f = msg.getMaterialGroup()) && proto.MaterialGroup.toObject(includeInstance, f),
2448
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2449
+ };
2450
+
2451
+ if (includeInstance) {
2452
+ obj.$jspbMessageInstance = msg;
2453
+ }
2454
+ return obj;
2455
+ };
2456
+ }
2457
+
2458
+
2459
+ /**
2460
+ * Deserializes binary data (in protobuf wire format).
2461
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2462
+ * @return {!proto.GetMaterialGroupByIdResponse}
2463
+ */
2464
+ proto.GetMaterialGroupByIdResponse.deserializeBinary = function(bytes) {
2465
+ var reader = new jspb.BinaryReader(bytes);
2466
+ var msg = new proto.GetMaterialGroupByIdResponse;
2467
+ return proto.GetMaterialGroupByIdResponse.deserializeBinaryFromReader(msg, reader);
2468
+ };
2469
+
2470
+
2471
+ /**
2472
+ * Deserializes binary data (in protobuf wire format) from the
2473
+ * given reader into the given message object.
2474
+ * @param {!proto.GetMaterialGroupByIdResponse} msg The message object to deserialize into.
2475
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2476
+ * @return {!proto.GetMaterialGroupByIdResponse}
2477
+ */
2478
+ proto.GetMaterialGroupByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
2479
+ while (reader.nextField()) {
2480
+ if (reader.isEndGroup()) {
2481
+ break;
2482
+ }
2483
+ var field = reader.getFieldNumber();
2484
+ switch (field) {
2485
+ case 1:
2486
+ var value = new proto.MaterialGroup;
2487
+ reader.readMessage(value,proto.MaterialGroup.deserializeBinaryFromReader);
2488
+ msg.setMaterialGroup(value);
2489
+ break;
2490
+ case 2:
2491
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2492
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2493
+ msg.setMeta(value);
2494
+ break;
2495
+ default:
2496
+ reader.skipField();
2497
+ break;
2498
+ }
2499
+ }
2500
+ return msg;
2501
+ };
2502
+
2503
+
2504
+ /**
2505
+ * Serializes the message to binary data (in protobuf wire format).
2506
+ * @return {!Uint8Array}
2507
+ */
2508
+ proto.GetMaterialGroupByIdResponse.prototype.serializeBinary = function() {
2509
+ var writer = new jspb.BinaryWriter();
2510
+ proto.GetMaterialGroupByIdResponse.serializeBinaryToWriter(this, writer);
2511
+ return writer.getResultBuffer();
2512
+ };
2513
+
2514
+
2515
+ /**
2516
+ * Serializes the given message to binary data (in protobuf wire
2517
+ * format), writing to the given BinaryWriter.
2518
+ * @param {!proto.GetMaterialGroupByIdResponse} message
2519
+ * @param {!jspb.BinaryWriter} writer
2520
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2521
+ */
2522
+ proto.GetMaterialGroupByIdResponse.serializeBinaryToWriter = function(message, writer) {
2523
+ var f = undefined;
2524
+ f = message.getMaterialGroup();
2525
+ if (f != null) {
2526
+ writer.writeMessage(
2527
+ 1,
2528
+ f,
2529
+ proto.MaterialGroup.serializeBinaryToWriter
2530
+ );
2531
+ }
2532
+ f = message.getMeta();
2533
+ if (f != null) {
2534
+ writer.writeMessage(
2535
+ 2,
2536
+ f,
2537
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2538
+ );
2539
+ }
2540
+ };
2541
+
2542
+
2543
+ /**
2544
+ * optional MaterialGroup material_group = 1;
2545
+ * @return {?proto.MaterialGroup}
2546
+ */
2547
+ proto.GetMaterialGroupByIdResponse.prototype.getMaterialGroup = function() {
2548
+ return /** @type{?proto.MaterialGroup} */ (
2549
+ jspb.Message.getWrapperField(this, proto.MaterialGroup, 1));
2550
+ };
2551
+
2552
+
2553
+ /**
2554
+ * @param {?proto.MaterialGroup|undefined} value
2555
+ * @return {!proto.GetMaterialGroupByIdResponse} returns this
2556
+ */
2557
+ proto.GetMaterialGroupByIdResponse.prototype.setMaterialGroup = function(value) {
2558
+ return jspb.Message.setWrapperField(this, 1, value);
2559
+ };
2560
+
2561
+
2562
+ /**
2563
+ * Clears the message field making it undefined.
2564
+ * @return {!proto.GetMaterialGroupByIdResponse} returns this
2565
+ */
2566
+ proto.GetMaterialGroupByIdResponse.prototype.clearMaterialGroup = function() {
2567
+ return this.setMaterialGroup(undefined);
2568
+ };
2569
+
2570
+
2571
+ /**
2572
+ * Returns whether this field is set.
2573
+ * @return {boolean}
2574
+ */
2575
+ proto.GetMaterialGroupByIdResponse.prototype.hasMaterialGroup = function() {
2576
+ return jspb.Message.getField(this, 1) != null;
2577
+ };
2578
+
2579
+
2580
+ /**
2581
+ * optional prisca.v1.global.meta.Meta meta = 2;
2582
+ * @return {?proto.prisca.v1.global.meta.Meta}
2583
+ */
2584
+ proto.GetMaterialGroupByIdResponse.prototype.getMeta = function() {
2585
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2586
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2587
+ };
2588
+
2589
+
2590
+ /**
2591
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2592
+ * @return {!proto.GetMaterialGroupByIdResponse} returns this
2593
+ */
2594
+ proto.GetMaterialGroupByIdResponse.prototype.setMeta = function(value) {
2595
+ return jspb.Message.setWrapperField(this, 2, value);
2596
+ };
2597
+
2598
+
2599
+ /**
2600
+ * Clears the message field making it undefined.
2601
+ * @return {!proto.GetMaterialGroupByIdResponse} returns this
2602
+ */
2603
+ proto.GetMaterialGroupByIdResponse.prototype.clearMeta = function() {
2604
+ return this.setMeta(undefined);
2605
+ };
2606
+
2607
+
2608
+ /**
2609
+ * Returns whether this field is set.
2610
+ * @return {boolean}
2611
+ */
2612
+ proto.GetMaterialGroupByIdResponse.prototype.hasMeta = function() {
2613
+ return jspb.Message.getField(this, 2) != null;
2614
+ };
2615
+
2616
+
2617
+
2618
+ /**
2619
+ * List of repeated fields within this message type.
2620
+ * @private {!Array<number>}
2621
+ * @const
2622
+ */
2623
+ proto.GetListMaterialGroupResponse.repeatedFields_ = [1];
2624
+
2625
+
2626
+
2627
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2628
+ /**
2629
+ * Creates an object representation of this proto.
2630
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2631
+ * Optional fields that are not set will be set to undefined.
2632
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2633
+ * For the list of reserved names please see:
2634
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2635
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2636
+ * JSPB instance for transitional soy proto support:
2637
+ * http://goto/soy-param-migration
2638
+ * @return {!Object}
2639
+ */
2640
+ proto.GetListMaterialGroupResponse.prototype.toObject = function(opt_includeInstance) {
2641
+ return proto.GetListMaterialGroupResponse.toObject(opt_includeInstance, this);
2642
+ };
2643
+
2644
+
2645
+ /**
2646
+ * Static version of the {@see toObject} method.
2647
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2648
+ * the JSPB instance for transitional soy proto support:
2649
+ * http://goto/soy-param-migration
2650
+ * @param {!proto.GetListMaterialGroupResponse} msg The msg instance to transform.
2651
+ * @return {!Object}
2652
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2653
+ */
2654
+ proto.GetListMaterialGroupResponse.toObject = function(includeInstance, msg) {
2655
+ var f, obj = {
2656
+ materialGroupsList: jspb.Message.toObjectList(msg.getMaterialGroupsList(),
2657
+ proto.MaterialGroup.toObject, includeInstance),
2658
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2659
+ };
2660
+
2661
+ if (includeInstance) {
2662
+ obj.$jspbMessageInstance = msg;
2663
+ }
2664
+ return obj;
2665
+ };
2666
+ }
2667
+
2668
+
2669
+ /**
2670
+ * Deserializes binary data (in protobuf wire format).
2671
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2672
+ * @return {!proto.GetListMaterialGroupResponse}
2673
+ */
2674
+ proto.GetListMaterialGroupResponse.deserializeBinary = function(bytes) {
2675
+ var reader = new jspb.BinaryReader(bytes);
2676
+ var msg = new proto.GetListMaterialGroupResponse;
2677
+ return proto.GetListMaterialGroupResponse.deserializeBinaryFromReader(msg, reader);
2678
+ };
2679
+
2680
+
2681
+ /**
2682
+ * Deserializes binary data (in protobuf wire format) from the
2683
+ * given reader into the given message object.
2684
+ * @param {!proto.GetListMaterialGroupResponse} msg The message object to deserialize into.
2685
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2686
+ * @return {!proto.GetListMaterialGroupResponse}
2687
+ */
2688
+ proto.GetListMaterialGroupResponse.deserializeBinaryFromReader = function(msg, reader) {
2689
+ while (reader.nextField()) {
2690
+ if (reader.isEndGroup()) {
2691
+ break;
2692
+ }
2693
+ var field = reader.getFieldNumber();
2694
+ switch (field) {
2695
+ case 1:
2696
+ var value = new proto.MaterialGroup;
2697
+ reader.readMessage(value,proto.MaterialGroup.deserializeBinaryFromReader);
2698
+ msg.addMaterialGroups(value);
2699
+ break;
2700
+ case 2:
2701
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2702
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2703
+ msg.setMeta(value);
2704
+ break;
2705
+ default:
2706
+ reader.skipField();
2707
+ break;
2708
+ }
2709
+ }
2710
+ return msg;
2711
+ };
2712
+
2713
+
2714
+ /**
2715
+ * Serializes the message to binary data (in protobuf wire format).
2716
+ * @return {!Uint8Array}
2717
+ */
2718
+ proto.GetListMaterialGroupResponse.prototype.serializeBinary = function() {
2719
+ var writer = new jspb.BinaryWriter();
2720
+ proto.GetListMaterialGroupResponse.serializeBinaryToWriter(this, writer);
2721
+ return writer.getResultBuffer();
2722
+ };
2723
+
2724
+
2725
+ /**
2726
+ * Serializes the given message to binary data (in protobuf wire
2727
+ * format), writing to the given BinaryWriter.
2728
+ * @param {!proto.GetListMaterialGroupResponse} message
2729
+ * @param {!jspb.BinaryWriter} writer
2730
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2731
+ */
2732
+ proto.GetListMaterialGroupResponse.serializeBinaryToWriter = function(message, writer) {
2733
+ var f = undefined;
2734
+ f = message.getMaterialGroupsList();
2735
+ if (f.length > 0) {
2736
+ writer.writeRepeatedMessage(
2737
+ 1,
2738
+ f,
2739
+ proto.MaterialGroup.serializeBinaryToWriter
2740
+ );
2741
+ }
2742
+ f = message.getMeta();
2743
+ if (f != null) {
2744
+ writer.writeMessage(
2745
+ 2,
2746
+ f,
2747
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2748
+ );
2749
+ }
2750
+ };
2751
+
2752
+
2753
+ /**
2754
+ * repeated MaterialGroup material_groups = 1;
2755
+ * @return {!Array<!proto.MaterialGroup>}
2756
+ */
2757
+ proto.GetListMaterialGroupResponse.prototype.getMaterialGroupsList = function() {
2758
+ return /** @type{!Array<!proto.MaterialGroup>} */ (
2759
+ jspb.Message.getRepeatedWrapperField(this, proto.MaterialGroup, 1));
2760
+ };
2761
+
2762
+
2763
+ /**
2764
+ * @param {!Array<!proto.MaterialGroup>} value
2765
+ * @return {!proto.GetListMaterialGroupResponse} returns this
2766
+ */
2767
+ proto.GetListMaterialGroupResponse.prototype.setMaterialGroupsList = function(value) {
2768
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2769
+ };
2770
+
2771
+
2772
+ /**
2773
+ * @param {!proto.MaterialGroup=} opt_value
2774
+ * @param {number=} opt_index
2775
+ * @return {!proto.MaterialGroup}
2776
+ */
2777
+ proto.GetListMaterialGroupResponse.prototype.addMaterialGroups = function(opt_value, opt_index) {
2778
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.MaterialGroup, opt_index);
2779
+ };
2780
+
2781
+
2782
+ /**
2783
+ * Clears the list making it empty but non-null.
2784
+ * @return {!proto.GetListMaterialGroupResponse} returns this
2785
+ */
2786
+ proto.GetListMaterialGroupResponse.prototype.clearMaterialGroupsList = function() {
2787
+ return this.setMaterialGroupsList([]);
2788
+ };
2789
+
2790
+
2791
+ /**
2792
+ * optional prisca.v1.global.meta.Meta meta = 2;
2793
+ * @return {?proto.prisca.v1.global.meta.Meta}
2794
+ */
2795
+ proto.GetListMaterialGroupResponse.prototype.getMeta = function() {
2796
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2797
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2798
+ };
2799
+
2800
+
2801
+ /**
2802
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2803
+ * @return {!proto.GetListMaterialGroupResponse} returns this
2804
+ */
2805
+ proto.GetListMaterialGroupResponse.prototype.setMeta = function(value) {
2806
+ return jspb.Message.setWrapperField(this, 2, value);
2807
+ };
2808
+
2809
+
2810
+ /**
2811
+ * Clears the message field making it undefined.
2812
+ * @return {!proto.GetListMaterialGroupResponse} returns this
2813
+ */
2814
+ proto.GetListMaterialGroupResponse.prototype.clearMeta = function() {
2815
+ return this.setMeta(undefined);
2816
+ };
2817
+
2818
+
2819
+ /**
2820
+ * Returns whether this field is set.
2821
+ * @return {boolean}
2822
+ */
2823
+ proto.GetListMaterialGroupResponse.prototype.hasMeta = function() {
2824
+ return jspb.Message.getField(this, 2) != null;
2825
+ };
2826
+
2827
+
2828
+ goog.object.extend(exports, proto);