@aldiokta/protocgen 1.1.45 → 1.1.46

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