@aldiokta/protocgen 1.1.19 → 1.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +199 -0
  3. package/prisca/v1/account_assignment/account_assignment_pb.js +2674 -0
  4. package/prisca/v1/account_group/account_group_grpc_pb.js +200 -0
  5. package/prisca/v1/account_group/account_group_pb.js +2937 -0
  6. package/prisca/v1/bidding/bidding_grpc_pb.js +173 -0
  7. package/prisca/v1/bidding/bidding_pb.js +5616 -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 +2907 -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 +3048 -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 +4283 -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 +872 -0
  26. package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +144 -0
  27. package/prisca/v1/core/incoterm/incoterm_pb.js +2497 -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 +3880 -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 +2605 -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 +3762 -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 +2958 -0
  36. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +45 -0
  37. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +1188 -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 +3191 -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 +4180 -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 +2776 -0
  48. package/prisca/v1/core/material_type/material_type_grpc_pb.js +149 -0
  49. package/prisca/v1/core/material_type/material_type_pb.js +2697 -0
  50. package/prisca/v1/core/messaging/email_template_grpc_pb.js +177 -0
  51. package/prisca/v1/core/messaging/email_template_pb.js +2552 -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 +2926 -0
  56. package/prisca/v1/core/organization/organization_grpc_pb.js +180 -0
  57. package/prisca/v1/core/organization/organization_pb.js +3032 -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 +2545 -0
  60. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +146 -0
  61. package/prisca/v1/core/price_condition/price_condition_pb.js +2654 -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 +2582 -0
  72. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +144 -0
  73. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +2105 -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 +2798 -0
  78. package/prisca/v1/core/users/users_grpc_pb.js +45 -0
  79. package/prisca/v1/core/users/users_pb.js +1246 -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 +3972 -0
  82. package/prisca/v1/core/workflow/workflow_grpc_pb.js +203 -0
  83. package/prisca/v1/core/workflow/workflow_pb.js +7525 -0
  84. package/prisca/v1/document_type/document_type_grpc_pb.js +178 -0
  85. package/prisca/v1/document_type/document_type_pb.js +2746 -0
  86. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +181 -0
  87. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +3276 -0
  88. package/prisca/v1/global/meta/meta_grpc_pb.js +1 -0
  89. package/prisca/v1/global/meta/meta_pb.js +1179 -0
  90. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +228 -0
  91. package/prisca/v1/purchase_order/purchase_order_pb.js +4989 -0
  92. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +512 -0
  93. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +9917 -0
  94. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +178 -0
  95. package/prisca/v1/purchasing_group/purchasing_group_pb.js +2875 -0
  96. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +145 -0
  97. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +2139 -0
  98. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +146 -0
  99. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +2183 -0
  100. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +145 -0
  101. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +2543 -0
  102. package/prisca/v1/quotation/quotation_grpc_pb.js +152 -0
  103. package/prisca/v1/quotation/quotation_pb.js +2319 -0
  104. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +192 -0
  105. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +5703 -0
  106. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +224 -0
  107. package/prisca/v1/vendor_domain/vendor_domain_pb.js +6333 -0
  108. package/prisca/v1/account_assignment/account_assignment.proto +0 -79
  109. package/prisca/v1/account_group/account_group.proto +0 -86
  110. package/prisca/v1/bidding/bidding.proto +0 -159
  111. package/prisca/v1/chart_of_account/chart_of_account.proto +0 -87
  112. package/prisca/v1/core/access_manager/access_manager.proto +0 -281
  113. package/prisca/v1/core/auth/auth.proto +0 -150
  114. package/prisca/v1/core/chat_messaging/chat_messaging.proto +0 -55
  115. package/prisca/v1/core/company/company.proto +0 -92
  116. package/prisca/v1/core/currency/currency.proto +0 -76
  117. package/prisca/v1/core/department_material/department_material.proto +0 -69
  118. package/prisca/v1/core/employee/employee.proto +0 -129
  119. package/prisca/v1/core/file_upload/file_upload.proto +0 -31
  120. package/prisca/v1/core/incoterm/incoterm.proto +0 -76
  121. package/prisca/v1/core/item_transaction/item_transaction.proto +0 -120
  122. package/prisca/v1/core/job_grade/job_grade.proto +0 -79
  123. package/prisca/v1/core/job_position/job_position.proto +0 -113
  124. package/prisca/v1/core/job_title/job_title.proto +0 -89
  125. package/prisca/v1/core/line_of_activity/line_of_activity.proto +0 -42
  126. package/prisca/v1/core/line_of_approval/line_of_approval.proto +0 -94
  127. package/prisca/v1/core/link_data_source/link_data_source.proto +0 -78
  128. package/prisca/v1/core/location/location.proto +0 -289
  129. package/prisca/v1/core/material/material.proto +0 -131
  130. package/prisca/v1/core/material_group/material_group.proto +0 -85
  131. package/prisca/v1/core/material_type/material_type.proto +0 -86
  132. package/prisca/v1/core/messaging/email_template.proto +0 -75
  133. package/prisca/v1/core/messaging/messaging.proto +0 -29
  134. package/prisca/v1/core/number_range/number_range.proto +0 -89
  135. package/prisca/v1/core/organization/organization.proto +0 -94
  136. package/prisca/v1/core/organization_level/organization_level.proto +0 -77
  137. package/prisca/v1/core/price_condition/price_condition.proto +0 -83
  138. package/prisca/v1/core/procurement/procurement.proto +0 -54
  139. package/prisca/v1/core/recipient_roles/recipient_roles.proto +0 -10
  140. package/prisca/v1/core/report/report.proto +0 -90
  141. package/prisca/v1/core/report/user_report.proto +0 -74
  142. package/prisca/v1/core/tax_code/tax_code.proto +0 -77
  143. package/prisca/v1/core/term_of_payment/term_of_payment.proto +0 -64
  144. package/prisca/v1/core/transaction_builder/transaction_builder.proto +0 -325
  145. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +0 -88
  146. package/prisca/v1/core/users/users.proto +0 -45
  147. package/prisca/v1/core/work_location/work_location.proto +0 -122
  148. package/prisca/v1/core/workflow/workflow.proto +0 -216
  149. package/prisca/v1/document_type/document_type.proto +0 -80
  150. package/prisca/v1/general_ledger_account/general_ledger_account.proto +0 -98
  151. package/prisca/v1/global/meta/meta.proto +0 -57
  152. package/prisca/v1/purchase_order/purchase_order.proto +0 -155
  153. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +0 -304
  154. package/prisca/v1/purchasing_group/purchasing_group.proto +0 -87
  155. package/prisca/v1/purchasing_organization/purchasing_organization.proto +0 -68
  156. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +0 -70
  157. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +0 -80
  158. package/prisca/v1/quotation/quotation.proto +0 -82
  159. package/prisca/v1/request_for_quotation/request_for_quotation.proto +0 -166
  160. package/prisca/v1/vendor_domain/vendor_domain.proto +0 -225
@@ -0,0 +1,2776 @@
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, null, 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, null, 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
+
1319
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1320
+ /**
1321
+ * Creates an object representation of this proto.
1322
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1323
+ * Optional fields that are not set will be set to undefined.
1324
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1325
+ * For the list of reserved names please see:
1326
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1327
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1328
+ * JSPB instance for transitional soy proto support:
1329
+ * http://goto/soy-param-migration
1330
+ * @return {!Object}
1331
+ */
1332
+ proto.DeleteMaterialGroupRequest.prototype.toObject = function(opt_includeInstance) {
1333
+ return proto.DeleteMaterialGroupRequest.toObject(opt_includeInstance, this);
1334
+ };
1335
+
1336
+
1337
+ /**
1338
+ * Static version of the {@see toObject} method.
1339
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1340
+ * the JSPB instance for transitional soy proto support:
1341
+ * http://goto/soy-param-migration
1342
+ * @param {!proto.DeleteMaterialGroupRequest} msg The msg instance to transform.
1343
+ * @return {!Object}
1344
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1345
+ */
1346
+ proto.DeleteMaterialGroupRequest.toObject = function(includeInstance, msg) {
1347
+ var f, obj = {
1348
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
1349
+ };
1350
+
1351
+ if (includeInstance) {
1352
+ obj.$jspbMessageInstance = msg;
1353
+ }
1354
+ return obj;
1355
+ };
1356
+ }
1357
+
1358
+
1359
+ /**
1360
+ * Deserializes binary data (in protobuf wire format).
1361
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1362
+ * @return {!proto.DeleteMaterialGroupRequest}
1363
+ */
1364
+ proto.DeleteMaterialGroupRequest.deserializeBinary = function(bytes) {
1365
+ var reader = new jspb.BinaryReader(bytes);
1366
+ var msg = new proto.DeleteMaterialGroupRequest;
1367
+ return proto.DeleteMaterialGroupRequest.deserializeBinaryFromReader(msg, reader);
1368
+ };
1369
+
1370
+
1371
+ /**
1372
+ * Deserializes binary data (in protobuf wire format) from the
1373
+ * given reader into the given message object.
1374
+ * @param {!proto.DeleteMaterialGroupRequest} msg The message object to deserialize into.
1375
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1376
+ * @return {!proto.DeleteMaterialGroupRequest}
1377
+ */
1378
+ proto.DeleteMaterialGroupRequest.deserializeBinaryFromReader = function(msg, reader) {
1379
+ while (reader.nextField()) {
1380
+ if (reader.isEndGroup()) {
1381
+ break;
1382
+ }
1383
+ var field = reader.getFieldNumber();
1384
+ switch (field) {
1385
+ case 1:
1386
+ var value = /** @type {number} */ (reader.readInt64());
1387
+ msg.setId(value);
1388
+ break;
1389
+ default:
1390
+ reader.skipField();
1391
+ break;
1392
+ }
1393
+ }
1394
+ return msg;
1395
+ };
1396
+
1397
+
1398
+ /**
1399
+ * Serializes the message to binary data (in protobuf wire format).
1400
+ * @return {!Uint8Array}
1401
+ */
1402
+ proto.DeleteMaterialGroupRequest.prototype.serializeBinary = function() {
1403
+ var writer = new jspb.BinaryWriter();
1404
+ proto.DeleteMaterialGroupRequest.serializeBinaryToWriter(this, writer);
1405
+ return writer.getResultBuffer();
1406
+ };
1407
+
1408
+
1409
+ /**
1410
+ * Serializes the given message to binary data (in protobuf wire
1411
+ * format), writing to the given BinaryWriter.
1412
+ * @param {!proto.DeleteMaterialGroupRequest} message
1413
+ * @param {!jspb.BinaryWriter} writer
1414
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1415
+ */
1416
+ proto.DeleteMaterialGroupRequest.serializeBinaryToWriter = function(message, writer) {
1417
+ var f = undefined;
1418
+ f = message.getId();
1419
+ if (f !== 0) {
1420
+ writer.writeInt64(
1421
+ 1,
1422
+ f
1423
+ );
1424
+ }
1425
+ };
1426
+
1427
+
1428
+ /**
1429
+ * optional int64 id = 1;
1430
+ * @return {number}
1431
+ */
1432
+ proto.DeleteMaterialGroupRequest.prototype.getId = function() {
1433
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1434
+ };
1435
+
1436
+
1437
+ /**
1438
+ * @param {number} value
1439
+ * @return {!proto.DeleteMaterialGroupRequest} returns this
1440
+ */
1441
+ proto.DeleteMaterialGroupRequest.prototype.setId = function(value) {
1442
+ return jspb.Message.setProto3IntField(this, 1, value);
1443
+ };
1444
+
1445
+
1446
+
1447
+
1448
+
1449
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1450
+ /**
1451
+ * Creates an object representation of this proto.
1452
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1453
+ * Optional fields that are not set will be set to undefined.
1454
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1455
+ * For the list of reserved names please see:
1456
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1457
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1458
+ * JSPB instance for transitional soy proto support:
1459
+ * http://goto/soy-param-migration
1460
+ * @return {!Object}
1461
+ */
1462
+ proto.GetMaterialGroupByIdRequest.prototype.toObject = function(opt_includeInstance) {
1463
+ return proto.GetMaterialGroupByIdRequest.toObject(opt_includeInstance, this);
1464
+ };
1465
+
1466
+
1467
+ /**
1468
+ * Static version of the {@see toObject} method.
1469
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1470
+ * the JSPB instance for transitional soy proto support:
1471
+ * http://goto/soy-param-migration
1472
+ * @param {!proto.GetMaterialGroupByIdRequest} msg The msg instance to transform.
1473
+ * @return {!Object}
1474
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1475
+ */
1476
+ proto.GetMaterialGroupByIdRequest.toObject = function(includeInstance, msg) {
1477
+ var f, obj = {
1478
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
1479
+ };
1480
+
1481
+ if (includeInstance) {
1482
+ obj.$jspbMessageInstance = msg;
1483
+ }
1484
+ return obj;
1485
+ };
1486
+ }
1487
+
1488
+
1489
+ /**
1490
+ * Deserializes binary data (in protobuf wire format).
1491
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1492
+ * @return {!proto.GetMaterialGroupByIdRequest}
1493
+ */
1494
+ proto.GetMaterialGroupByIdRequest.deserializeBinary = function(bytes) {
1495
+ var reader = new jspb.BinaryReader(bytes);
1496
+ var msg = new proto.GetMaterialGroupByIdRequest;
1497
+ return proto.GetMaterialGroupByIdRequest.deserializeBinaryFromReader(msg, reader);
1498
+ };
1499
+
1500
+
1501
+ /**
1502
+ * Deserializes binary data (in protobuf wire format) from the
1503
+ * given reader into the given message object.
1504
+ * @param {!proto.GetMaterialGroupByIdRequest} msg The message object to deserialize into.
1505
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1506
+ * @return {!proto.GetMaterialGroupByIdRequest}
1507
+ */
1508
+ proto.GetMaterialGroupByIdRequest.deserializeBinaryFromReader = function(msg, reader) {
1509
+ while (reader.nextField()) {
1510
+ if (reader.isEndGroup()) {
1511
+ break;
1512
+ }
1513
+ var field = reader.getFieldNumber();
1514
+ switch (field) {
1515
+ case 1:
1516
+ var value = /** @type {string} */ (reader.readString());
1517
+ msg.setReferencesId(value);
1518
+ break;
1519
+ default:
1520
+ reader.skipField();
1521
+ break;
1522
+ }
1523
+ }
1524
+ return msg;
1525
+ };
1526
+
1527
+
1528
+ /**
1529
+ * Serializes the message to binary data (in protobuf wire format).
1530
+ * @return {!Uint8Array}
1531
+ */
1532
+ proto.GetMaterialGroupByIdRequest.prototype.serializeBinary = function() {
1533
+ var writer = new jspb.BinaryWriter();
1534
+ proto.GetMaterialGroupByIdRequest.serializeBinaryToWriter(this, writer);
1535
+ return writer.getResultBuffer();
1536
+ };
1537
+
1538
+
1539
+ /**
1540
+ * Serializes the given message to binary data (in protobuf wire
1541
+ * format), writing to the given BinaryWriter.
1542
+ * @param {!proto.GetMaterialGroupByIdRequest} message
1543
+ * @param {!jspb.BinaryWriter} writer
1544
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1545
+ */
1546
+ proto.GetMaterialGroupByIdRequest.serializeBinaryToWriter = function(message, writer) {
1547
+ var f = undefined;
1548
+ f = message.getReferencesId();
1549
+ if (f.length > 0) {
1550
+ writer.writeString(
1551
+ 1,
1552
+ f
1553
+ );
1554
+ }
1555
+ };
1556
+
1557
+
1558
+ /**
1559
+ * optional string references_id = 1;
1560
+ * @return {string}
1561
+ */
1562
+ proto.GetMaterialGroupByIdRequest.prototype.getReferencesId = function() {
1563
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1564
+ };
1565
+
1566
+
1567
+ /**
1568
+ * @param {string} value
1569
+ * @return {!proto.GetMaterialGroupByIdRequest} returns this
1570
+ */
1571
+ proto.GetMaterialGroupByIdRequest.prototype.setReferencesId = function(value) {
1572
+ return jspb.Message.setProto3StringField(this, 1, value);
1573
+ };
1574
+
1575
+
1576
+
1577
+
1578
+
1579
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1580
+ /**
1581
+ * Creates an object representation of this proto.
1582
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1583
+ * Optional fields that are not set will be set to undefined.
1584
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1585
+ * For the list of reserved names please see:
1586
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1587
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1588
+ * JSPB instance for transitional soy proto support:
1589
+ * http://goto/soy-param-migration
1590
+ * @return {!Object}
1591
+ */
1592
+ proto.GetListMaterialGroupRequest.prototype.toObject = function(opt_includeInstance) {
1593
+ return proto.GetListMaterialGroupRequest.toObject(opt_includeInstance, this);
1594
+ };
1595
+
1596
+
1597
+ /**
1598
+ * Static version of the {@see toObject} method.
1599
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1600
+ * the JSPB instance for transitional soy proto support:
1601
+ * http://goto/soy-param-migration
1602
+ * @param {!proto.GetListMaterialGroupRequest} msg The msg instance to transform.
1603
+ * @return {!Object}
1604
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1605
+ */
1606
+ proto.GetListMaterialGroupRequest.toObject = function(includeInstance, msg) {
1607
+ var f, obj = {
1608
+ pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
1609
+ query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
1610
+ };
1611
+
1612
+ if (includeInstance) {
1613
+ obj.$jspbMessageInstance = msg;
1614
+ }
1615
+ return obj;
1616
+ };
1617
+ }
1618
+
1619
+
1620
+ /**
1621
+ * Deserializes binary data (in protobuf wire format).
1622
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1623
+ * @return {!proto.GetListMaterialGroupRequest}
1624
+ */
1625
+ proto.GetListMaterialGroupRequest.deserializeBinary = function(bytes) {
1626
+ var reader = new jspb.BinaryReader(bytes);
1627
+ var msg = new proto.GetListMaterialGroupRequest;
1628
+ return proto.GetListMaterialGroupRequest.deserializeBinaryFromReader(msg, reader);
1629
+ };
1630
+
1631
+
1632
+ /**
1633
+ * Deserializes binary data (in protobuf wire format) from the
1634
+ * given reader into the given message object.
1635
+ * @param {!proto.GetListMaterialGroupRequest} msg The message object to deserialize into.
1636
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1637
+ * @return {!proto.GetListMaterialGroupRequest}
1638
+ */
1639
+ proto.GetListMaterialGroupRequest.deserializeBinaryFromReader = function(msg, reader) {
1640
+ while (reader.nextField()) {
1641
+ if (reader.isEndGroup()) {
1642
+ break;
1643
+ }
1644
+ var field = reader.getFieldNumber();
1645
+ switch (field) {
1646
+ case 1:
1647
+ var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
1648
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
1649
+ msg.setPagination(value);
1650
+ break;
1651
+ case 2:
1652
+ var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
1653
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
1654
+ msg.setQuery(value);
1655
+ break;
1656
+ default:
1657
+ reader.skipField();
1658
+ break;
1659
+ }
1660
+ }
1661
+ return msg;
1662
+ };
1663
+
1664
+
1665
+ /**
1666
+ * Serializes the message to binary data (in protobuf wire format).
1667
+ * @return {!Uint8Array}
1668
+ */
1669
+ proto.GetListMaterialGroupRequest.prototype.serializeBinary = function() {
1670
+ var writer = new jspb.BinaryWriter();
1671
+ proto.GetListMaterialGroupRequest.serializeBinaryToWriter(this, writer);
1672
+ return writer.getResultBuffer();
1673
+ };
1674
+
1675
+
1676
+ /**
1677
+ * Serializes the given message to binary data (in protobuf wire
1678
+ * format), writing to the given BinaryWriter.
1679
+ * @param {!proto.GetListMaterialGroupRequest} message
1680
+ * @param {!jspb.BinaryWriter} writer
1681
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1682
+ */
1683
+ proto.GetListMaterialGroupRequest.serializeBinaryToWriter = function(message, writer) {
1684
+ var f = undefined;
1685
+ f = message.getPagination();
1686
+ if (f != null) {
1687
+ writer.writeMessage(
1688
+ 1,
1689
+ f,
1690
+ prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
1691
+ );
1692
+ }
1693
+ f = message.getQuery();
1694
+ if (f != null) {
1695
+ writer.writeMessage(
1696
+ 2,
1697
+ f,
1698
+ prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
1699
+ );
1700
+ }
1701
+ };
1702
+
1703
+
1704
+ /**
1705
+ * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
1706
+ * @return {?proto.prisca.v1.global.meta.PaginationRequest}
1707
+ */
1708
+ proto.GetListMaterialGroupRequest.prototype.getPagination = function() {
1709
+ return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
1710
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
1711
+ };
1712
+
1713
+
1714
+ /**
1715
+ * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
1716
+ * @return {!proto.GetListMaterialGroupRequest} returns this
1717
+ */
1718
+ proto.GetListMaterialGroupRequest.prototype.setPagination = function(value) {
1719
+ return jspb.Message.setWrapperField(this, 1, value);
1720
+ };
1721
+
1722
+
1723
+ /**
1724
+ * Clears the message field making it undefined.
1725
+ * @return {!proto.GetListMaterialGroupRequest} returns this
1726
+ */
1727
+ proto.GetListMaterialGroupRequest.prototype.clearPagination = function() {
1728
+ return this.setPagination(undefined);
1729
+ };
1730
+
1731
+
1732
+ /**
1733
+ * Returns whether this field is set.
1734
+ * @return {boolean}
1735
+ */
1736
+ proto.GetListMaterialGroupRequest.prototype.hasPagination = function() {
1737
+ return jspb.Message.getField(this, 1) != null;
1738
+ };
1739
+
1740
+
1741
+ /**
1742
+ * optional prisca.v1.global.meta.FilterRequest query = 2;
1743
+ * @return {?proto.prisca.v1.global.meta.FilterRequest}
1744
+ */
1745
+ proto.GetListMaterialGroupRequest.prototype.getQuery = function() {
1746
+ return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
1747
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
1748
+ };
1749
+
1750
+
1751
+ /**
1752
+ * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
1753
+ * @return {!proto.GetListMaterialGroupRequest} returns this
1754
+ */
1755
+ proto.GetListMaterialGroupRequest.prototype.setQuery = function(value) {
1756
+ return jspb.Message.setWrapperField(this, 2, value);
1757
+ };
1758
+
1759
+
1760
+ /**
1761
+ * Clears the message field making it undefined.
1762
+ * @return {!proto.GetListMaterialGroupRequest} returns this
1763
+ */
1764
+ proto.GetListMaterialGroupRequest.prototype.clearQuery = function() {
1765
+ return this.setQuery(undefined);
1766
+ };
1767
+
1768
+
1769
+ /**
1770
+ * Returns whether this field is set.
1771
+ * @return {boolean}
1772
+ */
1773
+ proto.GetListMaterialGroupRequest.prototype.hasQuery = function() {
1774
+ return jspb.Message.getField(this, 2) != null;
1775
+ };
1776
+
1777
+
1778
+
1779
+
1780
+
1781
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1782
+ /**
1783
+ * Creates an object representation of this proto.
1784
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1785
+ * Optional fields that are not set will be set to undefined.
1786
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1787
+ * For the list of reserved names please see:
1788
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1789
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1790
+ * JSPB instance for transitional soy proto support:
1791
+ * http://goto/soy-param-migration
1792
+ * @return {!Object}
1793
+ */
1794
+ proto.CreateMaterialGroupResponse.prototype.toObject = function(opt_includeInstance) {
1795
+ return proto.CreateMaterialGroupResponse.toObject(opt_includeInstance, this);
1796
+ };
1797
+
1798
+
1799
+ /**
1800
+ * Static version of the {@see toObject} method.
1801
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1802
+ * the JSPB instance for transitional soy proto support:
1803
+ * http://goto/soy-param-migration
1804
+ * @param {!proto.CreateMaterialGroupResponse} msg The msg instance to transform.
1805
+ * @return {!Object}
1806
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1807
+ */
1808
+ proto.CreateMaterialGroupResponse.toObject = function(includeInstance, msg) {
1809
+ var f, obj = {
1810
+ materialGroup: (f = msg.getMaterialGroup()) && proto.MaterialGroup.toObject(includeInstance, f),
1811
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1812
+ };
1813
+
1814
+ if (includeInstance) {
1815
+ obj.$jspbMessageInstance = msg;
1816
+ }
1817
+ return obj;
1818
+ };
1819
+ }
1820
+
1821
+
1822
+ /**
1823
+ * Deserializes binary data (in protobuf wire format).
1824
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1825
+ * @return {!proto.CreateMaterialGroupResponse}
1826
+ */
1827
+ proto.CreateMaterialGroupResponse.deserializeBinary = function(bytes) {
1828
+ var reader = new jspb.BinaryReader(bytes);
1829
+ var msg = new proto.CreateMaterialGroupResponse;
1830
+ return proto.CreateMaterialGroupResponse.deserializeBinaryFromReader(msg, reader);
1831
+ };
1832
+
1833
+
1834
+ /**
1835
+ * Deserializes binary data (in protobuf wire format) from the
1836
+ * given reader into the given message object.
1837
+ * @param {!proto.CreateMaterialGroupResponse} msg The message object to deserialize into.
1838
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1839
+ * @return {!proto.CreateMaterialGroupResponse}
1840
+ */
1841
+ proto.CreateMaterialGroupResponse.deserializeBinaryFromReader = function(msg, reader) {
1842
+ while (reader.nextField()) {
1843
+ if (reader.isEndGroup()) {
1844
+ break;
1845
+ }
1846
+ var field = reader.getFieldNumber();
1847
+ switch (field) {
1848
+ case 1:
1849
+ var value = new proto.MaterialGroup;
1850
+ reader.readMessage(value,proto.MaterialGroup.deserializeBinaryFromReader);
1851
+ msg.setMaterialGroup(value);
1852
+ break;
1853
+ case 2:
1854
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1855
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1856
+ msg.setMeta(value);
1857
+ break;
1858
+ default:
1859
+ reader.skipField();
1860
+ break;
1861
+ }
1862
+ }
1863
+ return msg;
1864
+ };
1865
+
1866
+
1867
+ /**
1868
+ * Serializes the message to binary data (in protobuf wire format).
1869
+ * @return {!Uint8Array}
1870
+ */
1871
+ proto.CreateMaterialGroupResponse.prototype.serializeBinary = function() {
1872
+ var writer = new jspb.BinaryWriter();
1873
+ proto.CreateMaterialGroupResponse.serializeBinaryToWriter(this, writer);
1874
+ return writer.getResultBuffer();
1875
+ };
1876
+
1877
+
1878
+ /**
1879
+ * Serializes the given message to binary data (in protobuf wire
1880
+ * format), writing to the given BinaryWriter.
1881
+ * @param {!proto.CreateMaterialGroupResponse} message
1882
+ * @param {!jspb.BinaryWriter} writer
1883
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1884
+ */
1885
+ proto.CreateMaterialGroupResponse.serializeBinaryToWriter = function(message, writer) {
1886
+ var f = undefined;
1887
+ f = message.getMaterialGroup();
1888
+ if (f != null) {
1889
+ writer.writeMessage(
1890
+ 1,
1891
+ f,
1892
+ proto.MaterialGroup.serializeBinaryToWriter
1893
+ );
1894
+ }
1895
+ f = message.getMeta();
1896
+ if (f != null) {
1897
+ writer.writeMessage(
1898
+ 2,
1899
+ f,
1900
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1901
+ );
1902
+ }
1903
+ };
1904
+
1905
+
1906
+ /**
1907
+ * optional MaterialGroup material_group = 1;
1908
+ * @return {?proto.MaterialGroup}
1909
+ */
1910
+ proto.CreateMaterialGroupResponse.prototype.getMaterialGroup = function() {
1911
+ return /** @type{?proto.MaterialGroup} */ (
1912
+ jspb.Message.getWrapperField(this, proto.MaterialGroup, 1));
1913
+ };
1914
+
1915
+
1916
+ /**
1917
+ * @param {?proto.MaterialGroup|undefined} value
1918
+ * @return {!proto.CreateMaterialGroupResponse} returns this
1919
+ */
1920
+ proto.CreateMaterialGroupResponse.prototype.setMaterialGroup = function(value) {
1921
+ return jspb.Message.setWrapperField(this, 1, value);
1922
+ };
1923
+
1924
+
1925
+ /**
1926
+ * Clears the message field making it undefined.
1927
+ * @return {!proto.CreateMaterialGroupResponse} returns this
1928
+ */
1929
+ proto.CreateMaterialGroupResponse.prototype.clearMaterialGroup = function() {
1930
+ return this.setMaterialGroup(undefined);
1931
+ };
1932
+
1933
+
1934
+ /**
1935
+ * Returns whether this field is set.
1936
+ * @return {boolean}
1937
+ */
1938
+ proto.CreateMaterialGroupResponse.prototype.hasMaterialGroup = function() {
1939
+ return jspb.Message.getField(this, 1) != null;
1940
+ };
1941
+
1942
+
1943
+ /**
1944
+ * optional prisca.v1.global.meta.Meta meta = 2;
1945
+ * @return {?proto.prisca.v1.global.meta.Meta}
1946
+ */
1947
+ proto.CreateMaterialGroupResponse.prototype.getMeta = function() {
1948
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1949
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1950
+ };
1951
+
1952
+
1953
+ /**
1954
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1955
+ * @return {!proto.CreateMaterialGroupResponse} returns this
1956
+ */
1957
+ proto.CreateMaterialGroupResponse.prototype.setMeta = function(value) {
1958
+ return jspb.Message.setWrapperField(this, 2, value);
1959
+ };
1960
+
1961
+
1962
+ /**
1963
+ * Clears the message field making it undefined.
1964
+ * @return {!proto.CreateMaterialGroupResponse} returns this
1965
+ */
1966
+ proto.CreateMaterialGroupResponse.prototype.clearMeta = function() {
1967
+ return this.setMeta(undefined);
1968
+ };
1969
+
1970
+
1971
+ /**
1972
+ * Returns whether this field is set.
1973
+ * @return {boolean}
1974
+ */
1975
+ proto.CreateMaterialGroupResponse.prototype.hasMeta = function() {
1976
+ return jspb.Message.getField(this, 2) != null;
1977
+ };
1978
+
1979
+
1980
+
1981
+
1982
+
1983
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1984
+ /**
1985
+ * Creates an object representation of this proto.
1986
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1987
+ * Optional fields that are not set will be set to undefined.
1988
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1989
+ * For the list of reserved names please see:
1990
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1991
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1992
+ * JSPB instance for transitional soy proto support:
1993
+ * http://goto/soy-param-migration
1994
+ * @return {!Object}
1995
+ */
1996
+ proto.UpdateMaterialGroupResponse.prototype.toObject = function(opt_includeInstance) {
1997
+ return proto.UpdateMaterialGroupResponse.toObject(opt_includeInstance, this);
1998
+ };
1999
+
2000
+
2001
+ /**
2002
+ * Static version of the {@see toObject} method.
2003
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2004
+ * the JSPB instance for transitional soy proto support:
2005
+ * http://goto/soy-param-migration
2006
+ * @param {!proto.UpdateMaterialGroupResponse} msg The msg instance to transform.
2007
+ * @return {!Object}
2008
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2009
+ */
2010
+ proto.UpdateMaterialGroupResponse.toObject = function(includeInstance, msg) {
2011
+ var f, obj = {
2012
+ materialGroup: (f = msg.getMaterialGroup()) && proto.MaterialGroup.toObject(includeInstance, f),
2013
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2014
+ };
2015
+
2016
+ if (includeInstance) {
2017
+ obj.$jspbMessageInstance = msg;
2018
+ }
2019
+ return obj;
2020
+ };
2021
+ }
2022
+
2023
+
2024
+ /**
2025
+ * Deserializes binary data (in protobuf wire format).
2026
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2027
+ * @return {!proto.UpdateMaterialGroupResponse}
2028
+ */
2029
+ proto.UpdateMaterialGroupResponse.deserializeBinary = function(bytes) {
2030
+ var reader = new jspb.BinaryReader(bytes);
2031
+ var msg = new proto.UpdateMaterialGroupResponse;
2032
+ return proto.UpdateMaterialGroupResponse.deserializeBinaryFromReader(msg, reader);
2033
+ };
2034
+
2035
+
2036
+ /**
2037
+ * Deserializes binary data (in protobuf wire format) from the
2038
+ * given reader into the given message object.
2039
+ * @param {!proto.UpdateMaterialGroupResponse} msg The message object to deserialize into.
2040
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2041
+ * @return {!proto.UpdateMaterialGroupResponse}
2042
+ */
2043
+ proto.UpdateMaterialGroupResponse.deserializeBinaryFromReader = function(msg, reader) {
2044
+ while (reader.nextField()) {
2045
+ if (reader.isEndGroup()) {
2046
+ break;
2047
+ }
2048
+ var field = reader.getFieldNumber();
2049
+ switch (field) {
2050
+ case 1:
2051
+ var value = new proto.MaterialGroup;
2052
+ reader.readMessage(value,proto.MaterialGroup.deserializeBinaryFromReader);
2053
+ msg.setMaterialGroup(value);
2054
+ break;
2055
+ case 2:
2056
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2057
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2058
+ msg.setMeta(value);
2059
+ break;
2060
+ default:
2061
+ reader.skipField();
2062
+ break;
2063
+ }
2064
+ }
2065
+ return msg;
2066
+ };
2067
+
2068
+
2069
+ /**
2070
+ * Serializes the message to binary data (in protobuf wire format).
2071
+ * @return {!Uint8Array}
2072
+ */
2073
+ proto.UpdateMaterialGroupResponse.prototype.serializeBinary = function() {
2074
+ var writer = new jspb.BinaryWriter();
2075
+ proto.UpdateMaterialGroupResponse.serializeBinaryToWriter(this, writer);
2076
+ return writer.getResultBuffer();
2077
+ };
2078
+
2079
+
2080
+ /**
2081
+ * Serializes the given message to binary data (in protobuf wire
2082
+ * format), writing to the given BinaryWriter.
2083
+ * @param {!proto.UpdateMaterialGroupResponse} message
2084
+ * @param {!jspb.BinaryWriter} writer
2085
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2086
+ */
2087
+ proto.UpdateMaterialGroupResponse.serializeBinaryToWriter = function(message, writer) {
2088
+ var f = undefined;
2089
+ f = message.getMaterialGroup();
2090
+ if (f != null) {
2091
+ writer.writeMessage(
2092
+ 1,
2093
+ f,
2094
+ proto.MaterialGroup.serializeBinaryToWriter
2095
+ );
2096
+ }
2097
+ f = message.getMeta();
2098
+ if (f != null) {
2099
+ writer.writeMessage(
2100
+ 2,
2101
+ f,
2102
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2103
+ );
2104
+ }
2105
+ };
2106
+
2107
+
2108
+ /**
2109
+ * optional MaterialGroup material_group = 1;
2110
+ * @return {?proto.MaterialGroup}
2111
+ */
2112
+ proto.UpdateMaterialGroupResponse.prototype.getMaterialGroup = function() {
2113
+ return /** @type{?proto.MaterialGroup} */ (
2114
+ jspb.Message.getWrapperField(this, proto.MaterialGroup, 1));
2115
+ };
2116
+
2117
+
2118
+ /**
2119
+ * @param {?proto.MaterialGroup|undefined} value
2120
+ * @return {!proto.UpdateMaterialGroupResponse} returns this
2121
+ */
2122
+ proto.UpdateMaterialGroupResponse.prototype.setMaterialGroup = function(value) {
2123
+ return jspb.Message.setWrapperField(this, 1, value);
2124
+ };
2125
+
2126
+
2127
+ /**
2128
+ * Clears the message field making it undefined.
2129
+ * @return {!proto.UpdateMaterialGroupResponse} returns this
2130
+ */
2131
+ proto.UpdateMaterialGroupResponse.prototype.clearMaterialGroup = function() {
2132
+ return this.setMaterialGroup(undefined);
2133
+ };
2134
+
2135
+
2136
+ /**
2137
+ * Returns whether this field is set.
2138
+ * @return {boolean}
2139
+ */
2140
+ proto.UpdateMaterialGroupResponse.prototype.hasMaterialGroup = function() {
2141
+ return jspb.Message.getField(this, 1) != null;
2142
+ };
2143
+
2144
+
2145
+ /**
2146
+ * optional prisca.v1.global.meta.Meta meta = 2;
2147
+ * @return {?proto.prisca.v1.global.meta.Meta}
2148
+ */
2149
+ proto.UpdateMaterialGroupResponse.prototype.getMeta = function() {
2150
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2151
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2152
+ };
2153
+
2154
+
2155
+ /**
2156
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2157
+ * @return {!proto.UpdateMaterialGroupResponse} returns this
2158
+ */
2159
+ proto.UpdateMaterialGroupResponse.prototype.setMeta = function(value) {
2160
+ return jspb.Message.setWrapperField(this, 2, value);
2161
+ };
2162
+
2163
+
2164
+ /**
2165
+ * Clears the message field making it undefined.
2166
+ * @return {!proto.UpdateMaterialGroupResponse} returns this
2167
+ */
2168
+ proto.UpdateMaterialGroupResponse.prototype.clearMeta = function() {
2169
+ return this.setMeta(undefined);
2170
+ };
2171
+
2172
+
2173
+ /**
2174
+ * Returns whether this field is set.
2175
+ * @return {boolean}
2176
+ */
2177
+ proto.UpdateMaterialGroupResponse.prototype.hasMeta = function() {
2178
+ return jspb.Message.getField(this, 2) != null;
2179
+ };
2180
+
2181
+
2182
+
2183
+
2184
+
2185
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2186
+ /**
2187
+ * Creates an object representation of this proto.
2188
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2189
+ * Optional fields that are not set will be set to undefined.
2190
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2191
+ * For the list of reserved names please see:
2192
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2193
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2194
+ * JSPB instance for transitional soy proto support:
2195
+ * http://goto/soy-param-migration
2196
+ * @return {!Object}
2197
+ */
2198
+ proto.DeleteMaterialGroupResponse.prototype.toObject = function(opt_includeInstance) {
2199
+ return proto.DeleteMaterialGroupResponse.toObject(opt_includeInstance, this);
2200
+ };
2201
+
2202
+
2203
+ /**
2204
+ * Static version of the {@see toObject} method.
2205
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2206
+ * the JSPB instance for transitional soy proto support:
2207
+ * http://goto/soy-param-migration
2208
+ * @param {!proto.DeleteMaterialGroupResponse} msg The msg instance to transform.
2209
+ * @return {!Object}
2210
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2211
+ */
2212
+ proto.DeleteMaterialGroupResponse.toObject = function(includeInstance, msg) {
2213
+ var f, obj = {
2214
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2215
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2216
+ };
2217
+
2218
+ if (includeInstance) {
2219
+ obj.$jspbMessageInstance = msg;
2220
+ }
2221
+ return obj;
2222
+ };
2223
+ }
2224
+
2225
+
2226
+ /**
2227
+ * Deserializes binary data (in protobuf wire format).
2228
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2229
+ * @return {!proto.DeleteMaterialGroupResponse}
2230
+ */
2231
+ proto.DeleteMaterialGroupResponse.deserializeBinary = function(bytes) {
2232
+ var reader = new jspb.BinaryReader(bytes);
2233
+ var msg = new proto.DeleteMaterialGroupResponse;
2234
+ return proto.DeleteMaterialGroupResponse.deserializeBinaryFromReader(msg, reader);
2235
+ };
2236
+
2237
+
2238
+ /**
2239
+ * Deserializes binary data (in protobuf wire format) from the
2240
+ * given reader into the given message object.
2241
+ * @param {!proto.DeleteMaterialGroupResponse} msg The message object to deserialize into.
2242
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2243
+ * @return {!proto.DeleteMaterialGroupResponse}
2244
+ */
2245
+ proto.DeleteMaterialGroupResponse.deserializeBinaryFromReader = function(msg, reader) {
2246
+ while (reader.nextField()) {
2247
+ if (reader.isEndGroup()) {
2248
+ break;
2249
+ }
2250
+ var field = reader.getFieldNumber();
2251
+ switch (field) {
2252
+ case 1:
2253
+ var value = /** @type {string} */ (reader.readString());
2254
+ msg.setReferencesId(value);
2255
+ break;
2256
+ case 2:
2257
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2258
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2259
+ msg.setMeta(value);
2260
+ break;
2261
+ default:
2262
+ reader.skipField();
2263
+ break;
2264
+ }
2265
+ }
2266
+ return msg;
2267
+ };
2268
+
2269
+
2270
+ /**
2271
+ * Serializes the message to binary data (in protobuf wire format).
2272
+ * @return {!Uint8Array}
2273
+ */
2274
+ proto.DeleteMaterialGroupResponse.prototype.serializeBinary = function() {
2275
+ var writer = new jspb.BinaryWriter();
2276
+ proto.DeleteMaterialGroupResponse.serializeBinaryToWriter(this, writer);
2277
+ return writer.getResultBuffer();
2278
+ };
2279
+
2280
+
2281
+ /**
2282
+ * Serializes the given message to binary data (in protobuf wire
2283
+ * format), writing to the given BinaryWriter.
2284
+ * @param {!proto.DeleteMaterialGroupResponse} message
2285
+ * @param {!jspb.BinaryWriter} writer
2286
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2287
+ */
2288
+ proto.DeleteMaterialGroupResponse.serializeBinaryToWriter = function(message, writer) {
2289
+ var f = undefined;
2290
+ f = message.getReferencesId();
2291
+ if (f.length > 0) {
2292
+ writer.writeString(
2293
+ 1,
2294
+ f
2295
+ );
2296
+ }
2297
+ f = message.getMeta();
2298
+ if (f != null) {
2299
+ writer.writeMessage(
2300
+ 2,
2301
+ f,
2302
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2303
+ );
2304
+ }
2305
+ };
2306
+
2307
+
2308
+ /**
2309
+ * optional string references_id = 1;
2310
+ * @return {string}
2311
+ */
2312
+ proto.DeleteMaterialGroupResponse.prototype.getReferencesId = function() {
2313
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2314
+ };
2315
+
2316
+
2317
+ /**
2318
+ * @param {string} value
2319
+ * @return {!proto.DeleteMaterialGroupResponse} returns this
2320
+ */
2321
+ proto.DeleteMaterialGroupResponse.prototype.setReferencesId = function(value) {
2322
+ return jspb.Message.setProto3StringField(this, 1, value);
2323
+ };
2324
+
2325
+
2326
+ /**
2327
+ * optional prisca.v1.global.meta.Meta meta = 2;
2328
+ * @return {?proto.prisca.v1.global.meta.Meta}
2329
+ */
2330
+ proto.DeleteMaterialGroupResponse.prototype.getMeta = function() {
2331
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2332
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2333
+ };
2334
+
2335
+
2336
+ /**
2337
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2338
+ * @return {!proto.DeleteMaterialGroupResponse} returns this
2339
+ */
2340
+ proto.DeleteMaterialGroupResponse.prototype.setMeta = function(value) {
2341
+ return jspb.Message.setWrapperField(this, 2, value);
2342
+ };
2343
+
2344
+
2345
+ /**
2346
+ * Clears the message field making it undefined.
2347
+ * @return {!proto.DeleteMaterialGroupResponse} returns this
2348
+ */
2349
+ proto.DeleteMaterialGroupResponse.prototype.clearMeta = function() {
2350
+ return this.setMeta(undefined);
2351
+ };
2352
+
2353
+
2354
+ /**
2355
+ * Returns whether this field is set.
2356
+ * @return {boolean}
2357
+ */
2358
+ proto.DeleteMaterialGroupResponse.prototype.hasMeta = function() {
2359
+ return jspb.Message.getField(this, 2) != null;
2360
+ };
2361
+
2362
+
2363
+
2364
+
2365
+
2366
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2367
+ /**
2368
+ * Creates an object representation of this proto.
2369
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2370
+ * Optional fields that are not set will be set to undefined.
2371
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2372
+ * For the list of reserved names please see:
2373
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2374
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2375
+ * JSPB instance for transitional soy proto support:
2376
+ * http://goto/soy-param-migration
2377
+ * @return {!Object}
2378
+ */
2379
+ proto.GetMaterialGroupByIdResponse.prototype.toObject = function(opt_includeInstance) {
2380
+ return proto.GetMaterialGroupByIdResponse.toObject(opt_includeInstance, this);
2381
+ };
2382
+
2383
+
2384
+ /**
2385
+ * Static version of the {@see toObject} method.
2386
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2387
+ * the JSPB instance for transitional soy proto support:
2388
+ * http://goto/soy-param-migration
2389
+ * @param {!proto.GetMaterialGroupByIdResponse} msg The msg instance to transform.
2390
+ * @return {!Object}
2391
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2392
+ */
2393
+ proto.GetMaterialGroupByIdResponse.toObject = function(includeInstance, msg) {
2394
+ var f, obj = {
2395
+ materialGroup: (f = msg.getMaterialGroup()) && proto.MaterialGroup.toObject(includeInstance, f),
2396
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2397
+ };
2398
+
2399
+ if (includeInstance) {
2400
+ obj.$jspbMessageInstance = msg;
2401
+ }
2402
+ return obj;
2403
+ };
2404
+ }
2405
+
2406
+
2407
+ /**
2408
+ * Deserializes binary data (in protobuf wire format).
2409
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2410
+ * @return {!proto.GetMaterialGroupByIdResponse}
2411
+ */
2412
+ proto.GetMaterialGroupByIdResponse.deserializeBinary = function(bytes) {
2413
+ var reader = new jspb.BinaryReader(bytes);
2414
+ var msg = new proto.GetMaterialGroupByIdResponse;
2415
+ return proto.GetMaterialGroupByIdResponse.deserializeBinaryFromReader(msg, reader);
2416
+ };
2417
+
2418
+
2419
+ /**
2420
+ * Deserializes binary data (in protobuf wire format) from the
2421
+ * given reader into the given message object.
2422
+ * @param {!proto.GetMaterialGroupByIdResponse} msg The message object to deserialize into.
2423
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2424
+ * @return {!proto.GetMaterialGroupByIdResponse}
2425
+ */
2426
+ proto.GetMaterialGroupByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
2427
+ while (reader.nextField()) {
2428
+ if (reader.isEndGroup()) {
2429
+ break;
2430
+ }
2431
+ var field = reader.getFieldNumber();
2432
+ switch (field) {
2433
+ case 1:
2434
+ var value = new proto.MaterialGroup;
2435
+ reader.readMessage(value,proto.MaterialGroup.deserializeBinaryFromReader);
2436
+ msg.setMaterialGroup(value);
2437
+ break;
2438
+ case 2:
2439
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2440
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2441
+ msg.setMeta(value);
2442
+ break;
2443
+ default:
2444
+ reader.skipField();
2445
+ break;
2446
+ }
2447
+ }
2448
+ return msg;
2449
+ };
2450
+
2451
+
2452
+ /**
2453
+ * Serializes the message to binary data (in protobuf wire format).
2454
+ * @return {!Uint8Array}
2455
+ */
2456
+ proto.GetMaterialGroupByIdResponse.prototype.serializeBinary = function() {
2457
+ var writer = new jspb.BinaryWriter();
2458
+ proto.GetMaterialGroupByIdResponse.serializeBinaryToWriter(this, writer);
2459
+ return writer.getResultBuffer();
2460
+ };
2461
+
2462
+
2463
+ /**
2464
+ * Serializes the given message to binary data (in protobuf wire
2465
+ * format), writing to the given BinaryWriter.
2466
+ * @param {!proto.GetMaterialGroupByIdResponse} message
2467
+ * @param {!jspb.BinaryWriter} writer
2468
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2469
+ */
2470
+ proto.GetMaterialGroupByIdResponse.serializeBinaryToWriter = function(message, writer) {
2471
+ var f = undefined;
2472
+ f = message.getMaterialGroup();
2473
+ if (f != null) {
2474
+ writer.writeMessage(
2475
+ 1,
2476
+ f,
2477
+ proto.MaterialGroup.serializeBinaryToWriter
2478
+ );
2479
+ }
2480
+ f = message.getMeta();
2481
+ if (f != null) {
2482
+ writer.writeMessage(
2483
+ 2,
2484
+ f,
2485
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2486
+ );
2487
+ }
2488
+ };
2489
+
2490
+
2491
+ /**
2492
+ * optional MaterialGroup material_group = 1;
2493
+ * @return {?proto.MaterialGroup}
2494
+ */
2495
+ proto.GetMaterialGroupByIdResponse.prototype.getMaterialGroup = function() {
2496
+ return /** @type{?proto.MaterialGroup} */ (
2497
+ jspb.Message.getWrapperField(this, proto.MaterialGroup, 1));
2498
+ };
2499
+
2500
+
2501
+ /**
2502
+ * @param {?proto.MaterialGroup|undefined} value
2503
+ * @return {!proto.GetMaterialGroupByIdResponse} returns this
2504
+ */
2505
+ proto.GetMaterialGroupByIdResponse.prototype.setMaterialGroup = function(value) {
2506
+ return jspb.Message.setWrapperField(this, 1, value);
2507
+ };
2508
+
2509
+
2510
+ /**
2511
+ * Clears the message field making it undefined.
2512
+ * @return {!proto.GetMaterialGroupByIdResponse} returns this
2513
+ */
2514
+ proto.GetMaterialGroupByIdResponse.prototype.clearMaterialGroup = function() {
2515
+ return this.setMaterialGroup(undefined);
2516
+ };
2517
+
2518
+
2519
+ /**
2520
+ * Returns whether this field is set.
2521
+ * @return {boolean}
2522
+ */
2523
+ proto.GetMaterialGroupByIdResponse.prototype.hasMaterialGroup = function() {
2524
+ return jspb.Message.getField(this, 1) != null;
2525
+ };
2526
+
2527
+
2528
+ /**
2529
+ * optional prisca.v1.global.meta.Meta meta = 2;
2530
+ * @return {?proto.prisca.v1.global.meta.Meta}
2531
+ */
2532
+ proto.GetMaterialGroupByIdResponse.prototype.getMeta = function() {
2533
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2534
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2535
+ };
2536
+
2537
+
2538
+ /**
2539
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2540
+ * @return {!proto.GetMaterialGroupByIdResponse} returns this
2541
+ */
2542
+ proto.GetMaterialGroupByIdResponse.prototype.setMeta = function(value) {
2543
+ return jspb.Message.setWrapperField(this, 2, value);
2544
+ };
2545
+
2546
+
2547
+ /**
2548
+ * Clears the message field making it undefined.
2549
+ * @return {!proto.GetMaterialGroupByIdResponse} returns this
2550
+ */
2551
+ proto.GetMaterialGroupByIdResponse.prototype.clearMeta = function() {
2552
+ return this.setMeta(undefined);
2553
+ };
2554
+
2555
+
2556
+ /**
2557
+ * Returns whether this field is set.
2558
+ * @return {boolean}
2559
+ */
2560
+ proto.GetMaterialGroupByIdResponse.prototype.hasMeta = function() {
2561
+ return jspb.Message.getField(this, 2) != null;
2562
+ };
2563
+
2564
+
2565
+
2566
+ /**
2567
+ * List of repeated fields within this message type.
2568
+ * @private {!Array<number>}
2569
+ * @const
2570
+ */
2571
+ proto.GetListMaterialGroupResponse.repeatedFields_ = [1];
2572
+
2573
+
2574
+
2575
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2576
+ /**
2577
+ * Creates an object representation of this proto.
2578
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2579
+ * Optional fields that are not set will be set to undefined.
2580
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2581
+ * For the list of reserved names please see:
2582
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2583
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2584
+ * JSPB instance for transitional soy proto support:
2585
+ * http://goto/soy-param-migration
2586
+ * @return {!Object}
2587
+ */
2588
+ proto.GetListMaterialGroupResponse.prototype.toObject = function(opt_includeInstance) {
2589
+ return proto.GetListMaterialGroupResponse.toObject(opt_includeInstance, this);
2590
+ };
2591
+
2592
+
2593
+ /**
2594
+ * Static version of the {@see toObject} method.
2595
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2596
+ * the JSPB instance for transitional soy proto support:
2597
+ * http://goto/soy-param-migration
2598
+ * @param {!proto.GetListMaterialGroupResponse} msg The msg instance to transform.
2599
+ * @return {!Object}
2600
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2601
+ */
2602
+ proto.GetListMaterialGroupResponse.toObject = function(includeInstance, msg) {
2603
+ var f, obj = {
2604
+ materialGroupsList: jspb.Message.toObjectList(msg.getMaterialGroupsList(),
2605
+ proto.MaterialGroup.toObject, includeInstance),
2606
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2607
+ };
2608
+
2609
+ if (includeInstance) {
2610
+ obj.$jspbMessageInstance = msg;
2611
+ }
2612
+ return obj;
2613
+ };
2614
+ }
2615
+
2616
+
2617
+ /**
2618
+ * Deserializes binary data (in protobuf wire format).
2619
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2620
+ * @return {!proto.GetListMaterialGroupResponse}
2621
+ */
2622
+ proto.GetListMaterialGroupResponse.deserializeBinary = function(bytes) {
2623
+ var reader = new jspb.BinaryReader(bytes);
2624
+ var msg = new proto.GetListMaterialGroupResponse;
2625
+ return proto.GetListMaterialGroupResponse.deserializeBinaryFromReader(msg, reader);
2626
+ };
2627
+
2628
+
2629
+ /**
2630
+ * Deserializes binary data (in protobuf wire format) from the
2631
+ * given reader into the given message object.
2632
+ * @param {!proto.GetListMaterialGroupResponse} msg The message object to deserialize into.
2633
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2634
+ * @return {!proto.GetListMaterialGroupResponse}
2635
+ */
2636
+ proto.GetListMaterialGroupResponse.deserializeBinaryFromReader = function(msg, reader) {
2637
+ while (reader.nextField()) {
2638
+ if (reader.isEndGroup()) {
2639
+ break;
2640
+ }
2641
+ var field = reader.getFieldNumber();
2642
+ switch (field) {
2643
+ case 1:
2644
+ var value = new proto.MaterialGroup;
2645
+ reader.readMessage(value,proto.MaterialGroup.deserializeBinaryFromReader);
2646
+ msg.addMaterialGroups(value);
2647
+ break;
2648
+ case 2:
2649
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2650
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2651
+ msg.setMeta(value);
2652
+ break;
2653
+ default:
2654
+ reader.skipField();
2655
+ break;
2656
+ }
2657
+ }
2658
+ return msg;
2659
+ };
2660
+
2661
+
2662
+ /**
2663
+ * Serializes the message to binary data (in protobuf wire format).
2664
+ * @return {!Uint8Array}
2665
+ */
2666
+ proto.GetListMaterialGroupResponse.prototype.serializeBinary = function() {
2667
+ var writer = new jspb.BinaryWriter();
2668
+ proto.GetListMaterialGroupResponse.serializeBinaryToWriter(this, writer);
2669
+ return writer.getResultBuffer();
2670
+ };
2671
+
2672
+
2673
+ /**
2674
+ * Serializes the given message to binary data (in protobuf wire
2675
+ * format), writing to the given BinaryWriter.
2676
+ * @param {!proto.GetListMaterialGroupResponse} message
2677
+ * @param {!jspb.BinaryWriter} writer
2678
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2679
+ */
2680
+ proto.GetListMaterialGroupResponse.serializeBinaryToWriter = function(message, writer) {
2681
+ var f = undefined;
2682
+ f = message.getMaterialGroupsList();
2683
+ if (f.length > 0) {
2684
+ writer.writeRepeatedMessage(
2685
+ 1,
2686
+ f,
2687
+ proto.MaterialGroup.serializeBinaryToWriter
2688
+ );
2689
+ }
2690
+ f = message.getMeta();
2691
+ if (f != null) {
2692
+ writer.writeMessage(
2693
+ 2,
2694
+ f,
2695
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2696
+ );
2697
+ }
2698
+ };
2699
+
2700
+
2701
+ /**
2702
+ * repeated MaterialGroup material_groups = 1;
2703
+ * @return {!Array<!proto.MaterialGroup>}
2704
+ */
2705
+ proto.GetListMaterialGroupResponse.prototype.getMaterialGroupsList = function() {
2706
+ return /** @type{!Array<!proto.MaterialGroup>} */ (
2707
+ jspb.Message.getRepeatedWrapperField(this, proto.MaterialGroup, 1));
2708
+ };
2709
+
2710
+
2711
+ /**
2712
+ * @param {!Array<!proto.MaterialGroup>} value
2713
+ * @return {!proto.GetListMaterialGroupResponse} returns this
2714
+ */
2715
+ proto.GetListMaterialGroupResponse.prototype.setMaterialGroupsList = function(value) {
2716
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2717
+ };
2718
+
2719
+
2720
+ /**
2721
+ * @param {!proto.MaterialGroup=} opt_value
2722
+ * @param {number=} opt_index
2723
+ * @return {!proto.MaterialGroup}
2724
+ */
2725
+ proto.GetListMaterialGroupResponse.prototype.addMaterialGroups = function(opt_value, opt_index) {
2726
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.MaterialGroup, opt_index);
2727
+ };
2728
+
2729
+
2730
+ /**
2731
+ * Clears the list making it empty but non-null.
2732
+ * @return {!proto.GetListMaterialGroupResponse} returns this
2733
+ */
2734
+ proto.GetListMaterialGroupResponse.prototype.clearMaterialGroupsList = function() {
2735
+ return this.setMaterialGroupsList([]);
2736
+ };
2737
+
2738
+
2739
+ /**
2740
+ * optional prisca.v1.global.meta.Meta meta = 2;
2741
+ * @return {?proto.prisca.v1.global.meta.Meta}
2742
+ */
2743
+ proto.GetListMaterialGroupResponse.prototype.getMeta = function() {
2744
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2745
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2746
+ };
2747
+
2748
+
2749
+ /**
2750
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2751
+ * @return {!proto.GetListMaterialGroupResponse} returns this
2752
+ */
2753
+ proto.GetListMaterialGroupResponse.prototype.setMeta = function(value) {
2754
+ return jspb.Message.setWrapperField(this, 2, value);
2755
+ };
2756
+
2757
+
2758
+ /**
2759
+ * Clears the message field making it undefined.
2760
+ * @return {!proto.GetListMaterialGroupResponse} returns this
2761
+ */
2762
+ proto.GetListMaterialGroupResponse.prototype.clearMeta = function() {
2763
+ return this.setMeta(undefined);
2764
+ };
2765
+
2766
+
2767
+ /**
2768
+ * Returns whether this field is set.
2769
+ * @return {boolean}
2770
+ */
2771
+ proto.GetListMaterialGroupResponse.prototype.hasMeta = function() {
2772
+ return jspb.Message.getField(this, 2) != null;
2773
+ };
2774
+
2775
+
2776
+ goog.object.extend(exports, proto);