@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,2161 @@
1
+ // source: prisca/v1/core/department_material/department_material.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = globalThis;
17
+
18
+ var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
19
+ goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
20
+ goog.exportSymbol('proto.BaseDepartmentMaterial', null, global);
21
+ goog.exportSymbol('proto.CreateDepartmentMaterialRequest', null, global);
22
+ goog.exportSymbol('proto.CreateDepartmentMaterialResponse', null, global);
23
+ goog.exportSymbol('proto.DepartmentMaterial', null, global);
24
+ goog.exportSymbol('proto.GetDepartmentMaterialByIdRequest', null, global);
25
+ goog.exportSymbol('proto.GetDepartmentMaterialByIdResponse', null, global);
26
+ goog.exportSymbol('proto.GetListDepartmentMaterialRequest', null, global);
27
+ goog.exportSymbol('proto.GetListDepartmentMaterialResponse', null, global);
28
+ goog.exportSymbol('proto.UpdateDepartmentMaterialRequest', null, global);
29
+ goog.exportSymbol('proto.UpdateDepartmentMaterialResponse', null, global);
30
+ /**
31
+ * Generated by JsPbCodeGenerator.
32
+ * @param {Array=} opt_data Optional initial data array, typically from a
33
+ * server response, or constructed directly in Javascript. The array is used
34
+ * in place and becomes part of the constructed object. It is not cloned.
35
+ * If no data is provided, the constructed object will be empty, but still
36
+ * valid.
37
+ * @extends {jspb.Message}
38
+ * @constructor
39
+ */
40
+ proto.DepartmentMaterial = function(opt_data) {
41
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
42
+ };
43
+ goog.inherits(proto.DepartmentMaterial, jspb.Message);
44
+ if (goog.DEBUG && !COMPILED) {
45
+ /**
46
+ * @public
47
+ * @override
48
+ */
49
+ proto.DepartmentMaterial.displayName = 'proto.DepartmentMaterial';
50
+ }
51
+ /**
52
+ * Generated by JsPbCodeGenerator.
53
+ * @param {Array=} opt_data Optional initial data array, typically from a
54
+ * server response, or constructed directly in Javascript. The array is used
55
+ * in place and becomes part of the constructed object. It is not cloned.
56
+ * If no data is provided, the constructed object will be empty, but still
57
+ * valid.
58
+ * @extends {jspb.Message}
59
+ * @constructor
60
+ */
61
+ proto.BaseDepartmentMaterial = function(opt_data) {
62
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
63
+ };
64
+ goog.inherits(proto.BaseDepartmentMaterial, jspb.Message);
65
+ if (goog.DEBUG && !COMPILED) {
66
+ /**
67
+ * @public
68
+ * @override
69
+ */
70
+ proto.BaseDepartmentMaterial.displayName = 'proto.BaseDepartmentMaterial';
71
+ }
72
+ /**
73
+ * Generated by JsPbCodeGenerator.
74
+ * @param {Array=} opt_data Optional initial data array, typically from a
75
+ * server response, or constructed directly in Javascript. The array is used
76
+ * in place and becomes part of the constructed object. It is not cloned.
77
+ * If no data is provided, the constructed object will be empty, but still
78
+ * valid.
79
+ * @extends {jspb.Message}
80
+ * @constructor
81
+ */
82
+ proto.CreateDepartmentMaterialRequest = function(opt_data) {
83
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
84
+ };
85
+ goog.inherits(proto.CreateDepartmentMaterialRequest, jspb.Message);
86
+ if (goog.DEBUG && !COMPILED) {
87
+ /**
88
+ * @public
89
+ * @override
90
+ */
91
+ proto.CreateDepartmentMaterialRequest.displayName = 'proto.CreateDepartmentMaterialRequest';
92
+ }
93
+ /**
94
+ * Generated by JsPbCodeGenerator.
95
+ * @param {Array=} opt_data Optional initial data array, typically from a
96
+ * server response, or constructed directly in Javascript. The array is used
97
+ * in place and becomes part of the constructed object. It is not cloned.
98
+ * If no data is provided, the constructed object will be empty, but still
99
+ * valid.
100
+ * @extends {jspb.Message}
101
+ * @constructor
102
+ */
103
+ proto.UpdateDepartmentMaterialRequest = function(opt_data) {
104
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
105
+ };
106
+ goog.inherits(proto.UpdateDepartmentMaterialRequest, jspb.Message);
107
+ if (goog.DEBUG && !COMPILED) {
108
+ /**
109
+ * @public
110
+ * @override
111
+ */
112
+ proto.UpdateDepartmentMaterialRequest.displayName = 'proto.UpdateDepartmentMaterialRequest';
113
+ }
114
+ /**
115
+ * Generated by JsPbCodeGenerator.
116
+ * @param {Array=} opt_data Optional initial data array, typically from a
117
+ * server response, or constructed directly in Javascript. The array is used
118
+ * in place and becomes part of the constructed object. It is not cloned.
119
+ * If no data is provided, the constructed object will be empty, but still
120
+ * valid.
121
+ * @extends {jspb.Message}
122
+ * @constructor
123
+ */
124
+ proto.GetDepartmentMaterialByIdRequest = function(opt_data) {
125
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
126
+ };
127
+ goog.inherits(proto.GetDepartmentMaterialByIdRequest, jspb.Message);
128
+ if (goog.DEBUG && !COMPILED) {
129
+ /**
130
+ * @public
131
+ * @override
132
+ */
133
+ proto.GetDepartmentMaterialByIdRequest.displayName = 'proto.GetDepartmentMaterialByIdRequest';
134
+ }
135
+ /**
136
+ * Generated by JsPbCodeGenerator.
137
+ * @param {Array=} opt_data Optional initial data array, typically from a
138
+ * server response, or constructed directly in Javascript. The array is used
139
+ * in place and becomes part of the constructed object. It is not cloned.
140
+ * If no data is provided, the constructed object will be empty, but still
141
+ * valid.
142
+ * @extends {jspb.Message}
143
+ * @constructor
144
+ */
145
+ proto.GetListDepartmentMaterialRequest = function(opt_data) {
146
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
147
+ };
148
+ goog.inherits(proto.GetListDepartmentMaterialRequest, jspb.Message);
149
+ if (goog.DEBUG && !COMPILED) {
150
+ /**
151
+ * @public
152
+ * @override
153
+ */
154
+ proto.GetListDepartmentMaterialRequest.displayName = 'proto.GetListDepartmentMaterialRequest';
155
+ }
156
+ /**
157
+ * Generated by JsPbCodeGenerator.
158
+ * @param {Array=} opt_data Optional initial data array, typically from a
159
+ * server response, or constructed directly in Javascript. The array is used
160
+ * in place and becomes part of the constructed object. It is not cloned.
161
+ * If no data is provided, the constructed object will be empty, but still
162
+ * valid.
163
+ * @extends {jspb.Message}
164
+ * @constructor
165
+ */
166
+ proto.CreateDepartmentMaterialResponse = function(opt_data) {
167
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
168
+ };
169
+ goog.inherits(proto.CreateDepartmentMaterialResponse, jspb.Message);
170
+ if (goog.DEBUG && !COMPILED) {
171
+ /**
172
+ * @public
173
+ * @override
174
+ */
175
+ proto.CreateDepartmentMaterialResponse.displayName = 'proto.CreateDepartmentMaterialResponse';
176
+ }
177
+ /**
178
+ * Generated by JsPbCodeGenerator.
179
+ * @param {Array=} opt_data Optional initial data array, typically from a
180
+ * server response, or constructed directly in Javascript. The array is used
181
+ * in place and becomes part of the constructed object. It is not cloned.
182
+ * If no data is provided, the constructed object will be empty, but still
183
+ * valid.
184
+ * @extends {jspb.Message}
185
+ * @constructor
186
+ */
187
+ proto.UpdateDepartmentMaterialResponse = function(opt_data) {
188
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
189
+ };
190
+ goog.inherits(proto.UpdateDepartmentMaterialResponse, jspb.Message);
191
+ if (goog.DEBUG && !COMPILED) {
192
+ /**
193
+ * @public
194
+ * @override
195
+ */
196
+ proto.UpdateDepartmentMaterialResponse.displayName = 'proto.UpdateDepartmentMaterialResponse';
197
+ }
198
+ /**
199
+ * Generated by JsPbCodeGenerator.
200
+ * @param {Array=} opt_data Optional initial data array, typically from a
201
+ * server response, or constructed directly in Javascript. The array is used
202
+ * in place and becomes part of the constructed object. It is not cloned.
203
+ * If no data is provided, the constructed object will be empty, but still
204
+ * valid.
205
+ * @extends {jspb.Message}
206
+ * @constructor
207
+ */
208
+ proto.GetDepartmentMaterialByIdResponse = function(opt_data) {
209
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
210
+ };
211
+ goog.inherits(proto.GetDepartmentMaterialByIdResponse, jspb.Message);
212
+ if (goog.DEBUG && !COMPILED) {
213
+ /**
214
+ * @public
215
+ * @override
216
+ */
217
+ proto.GetDepartmentMaterialByIdResponse.displayName = 'proto.GetDepartmentMaterialByIdResponse';
218
+ }
219
+ /**
220
+ * Generated by JsPbCodeGenerator.
221
+ * @param {Array=} opt_data Optional initial data array, typically from a
222
+ * server response, or constructed directly in Javascript. The array is used
223
+ * in place and becomes part of the constructed object. It is not cloned.
224
+ * If no data is provided, the constructed object will be empty, but still
225
+ * valid.
226
+ * @extends {jspb.Message}
227
+ * @constructor
228
+ */
229
+ proto.GetListDepartmentMaterialResponse = function(opt_data) {
230
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListDepartmentMaterialResponse.repeatedFields_, null);
231
+ };
232
+ goog.inherits(proto.GetListDepartmentMaterialResponse, jspb.Message);
233
+ if (goog.DEBUG && !COMPILED) {
234
+ /**
235
+ * @public
236
+ * @override
237
+ */
238
+ proto.GetListDepartmentMaterialResponse.displayName = 'proto.GetListDepartmentMaterialResponse';
239
+ }
240
+
241
+
242
+
243
+ if (jspb.Message.GENERATE_TO_OBJECT) {
244
+ /**
245
+ * Creates an object representation of this proto.
246
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
247
+ * Optional fields that are not set will be set to undefined.
248
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
249
+ * For the list of reserved names please see:
250
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
251
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
252
+ * JSPB instance for transitional soy proto support:
253
+ * http://goto/soy-param-migration
254
+ * @return {!Object}
255
+ */
256
+ proto.DepartmentMaterial.prototype.toObject = function(opt_includeInstance) {
257
+ return proto.DepartmentMaterial.toObject(opt_includeInstance, this);
258
+ };
259
+
260
+
261
+ /**
262
+ * Static version of the {@see toObject} method.
263
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
264
+ * the JSPB instance for transitional soy proto support:
265
+ * http://goto/soy-param-migration
266
+ * @param {!proto.DepartmentMaterial} msg The msg instance to transform.
267
+ * @return {!Object}
268
+ * @suppress {unusedLocalVariables} f is only used for nested messages
269
+ */
270
+ proto.DepartmentMaterial.toObject = function(includeInstance, msg) {
271
+ var f, obj = {
272
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
273
+ departmentName: jspb.Message.getFieldWithDefault(msg, 2, ""),
274
+ transcationConfigId: jspb.Message.getFieldWithDefault(msg, 3, 0),
275
+ referencesId: jspb.Message.getFieldWithDefault(msg, 4, ""),
276
+ createdAt: jspb.Message.getFieldWithDefault(msg, 5, ""),
277
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 6, "")
278
+ };
279
+
280
+ if (includeInstance) {
281
+ obj.$jspbMessageInstance = msg;
282
+ }
283
+ return obj;
284
+ };
285
+ }
286
+
287
+
288
+ /**
289
+ * Deserializes binary data (in protobuf wire format).
290
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
291
+ * @return {!proto.DepartmentMaterial}
292
+ */
293
+ proto.DepartmentMaterial.deserializeBinary = function(bytes) {
294
+ var reader = new jspb.BinaryReader(bytes);
295
+ var msg = new proto.DepartmentMaterial;
296
+ return proto.DepartmentMaterial.deserializeBinaryFromReader(msg, reader);
297
+ };
298
+
299
+
300
+ /**
301
+ * Deserializes binary data (in protobuf wire format) from the
302
+ * given reader into the given message object.
303
+ * @param {!proto.DepartmentMaterial} msg The message object to deserialize into.
304
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
305
+ * @return {!proto.DepartmentMaterial}
306
+ */
307
+ proto.DepartmentMaterial.deserializeBinaryFromReader = function(msg, reader) {
308
+ while (reader.nextField()) {
309
+ if (reader.isEndGroup()) {
310
+ break;
311
+ }
312
+ var field = reader.getFieldNumber();
313
+ switch (field) {
314
+ case 1:
315
+ var value = /** @type {number} */ (reader.readInt64());
316
+ msg.setId(value);
317
+ break;
318
+ case 2:
319
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
320
+ msg.setDepartmentName(value);
321
+ break;
322
+ case 3:
323
+ var value = /** @type {number} */ (reader.readInt64());
324
+ msg.setTranscationConfigId(value);
325
+ break;
326
+ case 4:
327
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
328
+ msg.setReferencesId(value);
329
+ break;
330
+ case 5:
331
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
332
+ msg.setCreatedAt(value);
333
+ break;
334
+ case 6:
335
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
336
+ msg.setUpdatedAt(value);
337
+ break;
338
+ default:
339
+ reader.skipField();
340
+ break;
341
+ }
342
+ }
343
+ return msg;
344
+ };
345
+
346
+
347
+ /**
348
+ * Serializes the message to binary data (in protobuf wire format).
349
+ * @return {!Uint8Array}
350
+ */
351
+ proto.DepartmentMaterial.prototype.serializeBinary = function() {
352
+ var writer = new jspb.BinaryWriter();
353
+ proto.DepartmentMaterial.serializeBinaryToWriter(this, writer);
354
+ return writer.getResultBuffer();
355
+ };
356
+
357
+
358
+ /**
359
+ * Serializes the given message to binary data (in protobuf wire
360
+ * format), writing to the given BinaryWriter.
361
+ * @param {!proto.DepartmentMaterial} message
362
+ * @param {!jspb.BinaryWriter} writer
363
+ * @suppress {unusedLocalVariables} f is only used for nested messages
364
+ */
365
+ proto.DepartmentMaterial.serializeBinaryToWriter = function(message, writer) {
366
+ var f = undefined;
367
+ f = message.getId();
368
+ if (f !== 0) {
369
+ writer.writeInt64(
370
+ 1,
371
+ f
372
+ );
373
+ }
374
+ f = message.getDepartmentName();
375
+ if (f.length > 0) {
376
+ writer.writeString(
377
+ 2,
378
+ f
379
+ );
380
+ }
381
+ f = message.getTranscationConfigId();
382
+ if (f !== 0) {
383
+ writer.writeInt64(
384
+ 3,
385
+ f
386
+ );
387
+ }
388
+ f = message.getReferencesId();
389
+ if (f.length > 0) {
390
+ writer.writeString(
391
+ 4,
392
+ f
393
+ );
394
+ }
395
+ f = message.getCreatedAt();
396
+ if (f.length > 0) {
397
+ writer.writeString(
398
+ 5,
399
+ f
400
+ );
401
+ }
402
+ f = message.getUpdatedAt();
403
+ if (f.length > 0) {
404
+ writer.writeString(
405
+ 6,
406
+ f
407
+ );
408
+ }
409
+ };
410
+
411
+
412
+ /**
413
+ * optional int64 id = 1;
414
+ * @return {number}
415
+ */
416
+ proto.DepartmentMaterial.prototype.getId = function() {
417
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
418
+ };
419
+
420
+
421
+ /**
422
+ * @param {number} value
423
+ * @return {!proto.DepartmentMaterial} returns this
424
+ */
425
+ proto.DepartmentMaterial.prototype.setId = function(value) {
426
+ return jspb.Message.setProto3IntField(this, 1, value);
427
+ };
428
+
429
+
430
+ /**
431
+ * optional string department_name = 2;
432
+ * @return {string}
433
+ */
434
+ proto.DepartmentMaterial.prototype.getDepartmentName = function() {
435
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
436
+ };
437
+
438
+
439
+ /**
440
+ * @param {string} value
441
+ * @return {!proto.DepartmentMaterial} returns this
442
+ */
443
+ proto.DepartmentMaterial.prototype.setDepartmentName = function(value) {
444
+ return jspb.Message.setProto3StringField(this, 2, value);
445
+ };
446
+
447
+
448
+ /**
449
+ * optional int64 transcation_config_id = 3;
450
+ * @return {number}
451
+ */
452
+ proto.DepartmentMaterial.prototype.getTranscationConfigId = function() {
453
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
454
+ };
455
+
456
+
457
+ /**
458
+ * @param {number} value
459
+ * @return {!proto.DepartmentMaterial} returns this
460
+ */
461
+ proto.DepartmentMaterial.prototype.setTranscationConfigId = function(value) {
462
+ return jspb.Message.setProto3IntField(this, 3, value);
463
+ };
464
+
465
+
466
+ /**
467
+ * optional string references_id = 4;
468
+ * @return {string}
469
+ */
470
+ proto.DepartmentMaterial.prototype.getReferencesId = function() {
471
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
472
+ };
473
+
474
+
475
+ /**
476
+ * @param {string} value
477
+ * @return {!proto.DepartmentMaterial} returns this
478
+ */
479
+ proto.DepartmentMaterial.prototype.setReferencesId = function(value) {
480
+ return jspb.Message.setProto3StringField(this, 4, value);
481
+ };
482
+
483
+
484
+ /**
485
+ * optional string created_at = 5;
486
+ * @return {string}
487
+ */
488
+ proto.DepartmentMaterial.prototype.getCreatedAt = function() {
489
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
490
+ };
491
+
492
+
493
+ /**
494
+ * @param {string} value
495
+ * @return {!proto.DepartmentMaterial} returns this
496
+ */
497
+ proto.DepartmentMaterial.prototype.setCreatedAt = function(value) {
498
+ return jspb.Message.setProto3StringField(this, 5, value);
499
+ };
500
+
501
+
502
+ /**
503
+ * optional string updated_at = 6;
504
+ * @return {string}
505
+ */
506
+ proto.DepartmentMaterial.prototype.getUpdatedAt = function() {
507
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
508
+ };
509
+
510
+
511
+ /**
512
+ * @param {string} value
513
+ * @return {!proto.DepartmentMaterial} returns this
514
+ */
515
+ proto.DepartmentMaterial.prototype.setUpdatedAt = function(value) {
516
+ return jspb.Message.setProto3StringField(this, 6, value);
517
+ };
518
+
519
+
520
+
521
+
522
+
523
+ if (jspb.Message.GENERATE_TO_OBJECT) {
524
+ /**
525
+ * Creates an object representation of this proto.
526
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
527
+ * Optional fields that are not set will be set to undefined.
528
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
529
+ * For the list of reserved names please see:
530
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
531
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
532
+ * JSPB instance for transitional soy proto support:
533
+ * http://goto/soy-param-migration
534
+ * @return {!Object}
535
+ */
536
+ proto.BaseDepartmentMaterial.prototype.toObject = function(opt_includeInstance) {
537
+ return proto.BaseDepartmentMaterial.toObject(opt_includeInstance, this);
538
+ };
539
+
540
+
541
+ /**
542
+ * Static version of the {@see toObject} method.
543
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
544
+ * the JSPB instance for transitional soy proto support:
545
+ * http://goto/soy-param-migration
546
+ * @param {!proto.BaseDepartmentMaterial} msg The msg instance to transform.
547
+ * @return {!Object}
548
+ * @suppress {unusedLocalVariables} f is only used for nested messages
549
+ */
550
+ proto.BaseDepartmentMaterial.toObject = function(includeInstance, msg) {
551
+ var f, obj = {
552
+ departmentName: jspb.Message.getFieldWithDefault(msg, 1, ""),
553
+ transcationConfigId: jspb.Message.getFieldWithDefault(msg, 2, 0)
554
+ };
555
+
556
+ if (includeInstance) {
557
+ obj.$jspbMessageInstance = msg;
558
+ }
559
+ return obj;
560
+ };
561
+ }
562
+
563
+
564
+ /**
565
+ * Deserializes binary data (in protobuf wire format).
566
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
567
+ * @return {!proto.BaseDepartmentMaterial}
568
+ */
569
+ proto.BaseDepartmentMaterial.deserializeBinary = function(bytes) {
570
+ var reader = new jspb.BinaryReader(bytes);
571
+ var msg = new proto.BaseDepartmentMaterial;
572
+ return proto.BaseDepartmentMaterial.deserializeBinaryFromReader(msg, reader);
573
+ };
574
+
575
+
576
+ /**
577
+ * Deserializes binary data (in protobuf wire format) from the
578
+ * given reader into the given message object.
579
+ * @param {!proto.BaseDepartmentMaterial} msg The message object to deserialize into.
580
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
581
+ * @return {!proto.BaseDepartmentMaterial}
582
+ */
583
+ proto.BaseDepartmentMaterial.deserializeBinaryFromReader = function(msg, reader) {
584
+ while (reader.nextField()) {
585
+ if (reader.isEndGroup()) {
586
+ break;
587
+ }
588
+ var field = reader.getFieldNumber();
589
+ switch (field) {
590
+ case 1:
591
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
592
+ msg.setDepartmentName(value);
593
+ break;
594
+ case 2:
595
+ var value = /** @type {number} */ (reader.readInt32());
596
+ msg.setTranscationConfigId(value);
597
+ break;
598
+ default:
599
+ reader.skipField();
600
+ break;
601
+ }
602
+ }
603
+ return msg;
604
+ };
605
+
606
+
607
+ /**
608
+ * Serializes the message to binary data (in protobuf wire format).
609
+ * @return {!Uint8Array}
610
+ */
611
+ proto.BaseDepartmentMaterial.prototype.serializeBinary = function() {
612
+ var writer = new jspb.BinaryWriter();
613
+ proto.BaseDepartmentMaterial.serializeBinaryToWriter(this, writer);
614
+ return writer.getResultBuffer();
615
+ };
616
+
617
+
618
+ /**
619
+ * Serializes the given message to binary data (in protobuf wire
620
+ * format), writing to the given BinaryWriter.
621
+ * @param {!proto.BaseDepartmentMaterial} message
622
+ * @param {!jspb.BinaryWriter} writer
623
+ * @suppress {unusedLocalVariables} f is only used for nested messages
624
+ */
625
+ proto.BaseDepartmentMaterial.serializeBinaryToWriter = function(message, writer) {
626
+ var f = undefined;
627
+ f = message.getDepartmentName();
628
+ if (f.length > 0) {
629
+ writer.writeString(
630
+ 1,
631
+ f
632
+ );
633
+ }
634
+ f = message.getTranscationConfigId();
635
+ if (f !== 0) {
636
+ writer.writeInt32(
637
+ 2,
638
+ f
639
+ );
640
+ }
641
+ };
642
+
643
+
644
+ /**
645
+ * optional string department_name = 1;
646
+ * @return {string}
647
+ */
648
+ proto.BaseDepartmentMaterial.prototype.getDepartmentName = function() {
649
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
650
+ };
651
+
652
+
653
+ /**
654
+ * @param {string} value
655
+ * @return {!proto.BaseDepartmentMaterial} returns this
656
+ */
657
+ proto.BaseDepartmentMaterial.prototype.setDepartmentName = function(value) {
658
+ return jspb.Message.setProto3StringField(this, 1, value);
659
+ };
660
+
661
+
662
+ /**
663
+ * optional int32 transcation_config_id = 2;
664
+ * @return {number}
665
+ */
666
+ proto.BaseDepartmentMaterial.prototype.getTranscationConfigId = function() {
667
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
668
+ };
669
+
670
+
671
+ /**
672
+ * @param {number} value
673
+ * @return {!proto.BaseDepartmentMaterial} returns this
674
+ */
675
+ proto.BaseDepartmentMaterial.prototype.setTranscationConfigId = function(value) {
676
+ return jspb.Message.setProto3IntField(this, 2, value);
677
+ };
678
+
679
+
680
+
681
+
682
+
683
+ if (jspb.Message.GENERATE_TO_OBJECT) {
684
+ /**
685
+ * Creates an object representation of this proto.
686
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
687
+ * Optional fields that are not set will be set to undefined.
688
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
689
+ * For the list of reserved names please see:
690
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
691
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
692
+ * JSPB instance for transitional soy proto support:
693
+ * http://goto/soy-param-migration
694
+ * @return {!Object}
695
+ */
696
+ proto.CreateDepartmentMaterialRequest.prototype.toObject = function(opt_includeInstance) {
697
+ return proto.CreateDepartmentMaterialRequest.toObject(opt_includeInstance, this);
698
+ };
699
+
700
+
701
+ /**
702
+ * Static version of the {@see toObject} method.
703
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
704
+ * the JSPB instance for transitional soy proto support:
705
+ * http://goto/soy-param-migration
706
+ * @param {!proto.CreateDepartmentMaterialRequest} msg The msg instance to transform.
707
+ * @return {!Object}
708
+ * @suppress {unusedLocalVariables} f is only used for nested messages
709
+ */
710
+ proto.CreateDepartmentMaterialRequest.toObject = function(includeInstance, msg) {
711
+ var f, obj = {
712
+ baseDepartmentMaterial: (f = msg.getBaseDepartmentMaterial()) && proto.BaseDepartmentMaterial.toObject(includeInstance, f)
713
+ };
714
+
715
+ if (includeInstance) {
716
+ obj.$jspbMessageInstance = msg;
717
+ }
718
+ return obj;
719
+ };
720
+ }
721
+
722
+
723
+ /**
724
+ * Deserializes binary data (in protobuf wire format).
725
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
726
+ * @return {!proto.CreateDepartmentMaterialRequest}
727
+ */
728
+ proto.CreateDepartmentMaterialRequest.deserializeBinary = function(bytes) {
729
+ var reader = new jspb.BinaryReader(bytes);
730
+ var msg = new proto.CreateDepartmentMaterialRequest;
731
+ return proto.CreateDepartmentMaterialRequest.deserializeBinaryFromReader(msg, reader);
732
+ };
733
+
734
+
735
+ /**
736
+ * Deserializes binary data (in protobuf wire format) from the
737
+ * given reader into the given message object.
738
+ * @param {!proto.CreateDepartmentMaterialRequest} msg The message object to deserialize into.
739
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
740
+ * @return {!proto.CreateDepartmentMaterialRequest}
741
+ */
742
+ proto.CreateDepartmentMaterialRequest.deserializeBinaryFromReader = function(msg, reader) {
743
+ while (reader.nextField()) {
744
+ if (reader.isEndGroup()) {
745
+ break;
746
+ }
747
+ var field = reader.getFieldNumber();
748
+ switch (field) {
749
+ case 1:
750
+ var value = new proto.BaseDepartmentMaterial;
751
+ reader.readMessage(value,proto.BaseDepartmentMaterial.deserializeBinaryFromReader);
752
+ msg.setBaseDepartmentMaterial(value);
753
+ break;
754
+ default:
755
+ reader.skipField();
756
+ break;
757
+ }
758
+ }
759
+ return msg;
760
+ };
761
+
762
+
763
+ /**
764
+ * Serializes the message to binary data (in protobuf wire format).
765
+ * @return {!Uint8Array}
766
+ */
767
+ proto.CreateDepartmentMaterialRequest.prototype.serializeBinary = function() {
768
+ var writer = new jspb.BinaryWriter();
769
+ proto.CreateDepartmentMaterialRequest.serializeBinaryToWriter(this, writer);
770
+ return writer.getResultBuffer();
771
+ };
772
+
773
+
774
+ /**
775
+ * Serializes the given message to binary data (in protobuf wire
776
+ * format), writing to the given BinaryWriter.
777
+ * @param {!proto.CreateDepartmentMaterialRequest} message
778
+ * @param {!jspb.BinaryWriter} writer
779
+ * @suppress {unusedLocalVariables} f is only used for nested messages
780
+ */
781
+ proto.CreateDepartmentMaterialRequest.serializeBinaryToWriter = function(message, writer) {
782
+ var f = undefined;
783
+ f = message.getBaseDepartmentMaterial();
784
+ if (f != null) {
785
+ writer.writeMessage(
786
+ 1,
787
+ f,
788
+ proto.BaseDepartmentMaterial.serializeBinaryToWriter
789
+ );
790
+ }
791
+ };
792
+
793
+
794
+ /**
795
+ * optional BaseDepartmentMaterial base_department_material = 1;
796
+ * @return {?proto.BaseDepartmentMaterial}
797
+ */
798
+ proto.CreateDepartmentMaterialRequest.prototype.getBaseDepartmentMaterial = function() {
799
+ return /** @type{?proto.BaseDepartmentMaterial} */ (
800
+ jspb.Message.getWrapperField(this, proto.BaseDepartmentMaterial, 1));
801
+ };
802
+
803
+
804
+ /**
805
+ * @param {?proto.BaseDepartmentMaterial|undefined} value
806
+ * @return {!proto.CreateDepartmentMaterialRequest} returns this
807
+ */
808
+ proto.CreateDepartmentMaterialRequest.prototype.setBaseDepartmentMaterial = function(value) {
809
+ return jspb.Message.setWrapperField(this, 1, value);
810
+ };
811
+
812
+
813
+ /**
814
+ * Clears the message field making it undefined.
815
+ * @return {!proto.CreateDepartmentMaterialRequest} returns this
816
+ */
817
+ proto.CreateDepartmentMaterialRequest.prototype.clearBaseDepartmentMaterial = function() {
818
+ return this.setBaseDepartmentMaterial(undefined);
819
+ };
820
+
821
+
822
+ /**
823
+ * Returns whether this field is set.
824
+ * @return {boolean}
825
+ */
826
+ proto.CreateDepartmentMaterialRequest.prototype.hasBaseDepartmentMaterial = function() {
827
+ return jspb.Message.getField(this, 1) != null;
828
+ };
829
+
830
+
831
+
832
+
833
+
834
+ if (jspb.Message.GENERATE_TO_OBJECT) {
835
+ /**
836
+ * Creates an object representation of this proto.
837
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
838
+ * Optional fields that are not set will be set to undefined.
839
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
840
+ * For the list of reserved names please see:
841
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
842
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
843
+ * JSPB instance for transitional soy proto support:
844
+ * http://goto/soy-param-migration
845
+ * @return {!Object}
846
+ */
847
+ proto.UpdateDepartmentMaterialRequest.prototype.toObject = function(opt_includeInstance) {
848
+ return proto.UpdateDepartmentMaterialRequest.toObject(opt_includeInstance, this);
849
+ };
850
+
851
+
852
+ /**
853
+ * Static version of the {@see toObject} method.
854
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
855
+ * the JSPB instance for transitional soy proto support:
856
+ * http://goto/soy-param-migration
857
+ * @param {!proto.UpdateDepartmentMaterialRequest} msg The msg instance to transform.
858
+ * @return {!Object}
859
+ * @suppress {unusedLocalVariables} f is only used for nested messages
860
+ */
861
+ proto.UpdateDepartmentMaterialRequest.toObject = function(includeInstance, msg) {
862
+ var f, obj = {
863
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
864
+ baseDepartmentMaterial: (f = msg.getBaseDepartmentMaterial()) && proto.BaseDepartmentMaterial.toObject(includeInstance, f)
865
+ };
866
+
867
+ if (includeInstance) {
868
+ obj.$jspbMessageInstance = msg;
869
+ }
870
+ return obj;
871
+ };
872
+ }
873
+
874
+
875
+ /**
876
+ * Deserializes binary data (in protobuf wire format).
877
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
878
+ * @return {!proto.UpdateDepartmentMaterialRequest}
879
+ */
880
+ proto.UpdateDepartmentMaterialRequest.deserializeBinary = function(bytes) {
881
+ var reader = new jspb.BinaryReader(bytes);
882
+ var msg = new proto.UpdateDepartmentMaterialRequest;
883
+ return proto.UpdateDepartmentMaterialRequest.deserializeBinaryFromReader(msg, reader);
884
+ };
885
+
886
+
887
+ /**
888
+ * Deserializes binary data (in protobuf wire format) from the
889
+ * given reader into the given message object.
890
+ * @param {!proto.UpdateDepartmentMaterialRequest} msg The message object to deserialize into.
891
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
892
+ * @return {!proto.UpdateDepartmentMaterialRequest}
893
+ */
894
+ proto.UpdateDepartmentMaterialRequest.deserializeBinaryFromReader = function(msg, reader) {
895
+ while (reader.nextField()) {
896
+ if (reader.isEndGroup()) {
897
+ break;
898
+ }
899
+ var field = reader.getFieldNumber();
900
+ switch (field) {
901
+ case 1:
902
+ var value = /** @type {number} */ (reader.readInt64());
903
+ msg.setId(value);
904
+ break;
905
+ case 2:
906
+ var value = new proto.BaseDepartmentMaterial;
907
+ reader.readMessage(value,proto.BaseDepartmentMaterial.deserializeBinaryFromReader);
908
+ msg.setBaseDepartmentMaterial(value);
909
+ break;
910
+ default:
911
+ reader.skipField();
912
+ break;
913
+ }
914
+ }
915
+ return msg;
916
+ };
917
+
918
+
919
+ /**
920
+ * Serializes the message to binary data (in protobuf wire format).
921
+ * @return {!Uint8Array}
922
+ */
923
+ proto.UpdateDepartmentMaterialRequest.prototype.serializeBinary = function() {
924
+ var writer = new jspb.BinaryWriter();
925
+ proto.UpdateDepartmentMaterialRequest.serializeBinaryToWriter(this, writer);
926
+ return writer.getResultBuffer();
927
+ };
928
+
929
+
930
+ /**
931
+ * Serializes the given message to binary data (in protobuf wire
932
+ * format), writing to the given BinaryWriter.
933
+ * @param {!proto.UpdateDepartmentMaterialRequest} message
934
+ * @param {!jspb.BinaryWriter} writer
935
+ * @suppress {unusedLocalVariables} f is only used for nested messages
936
+ */
937
+ proto.UpdateDepartmentMaterialRequest.serializeBinaryToWriter = function(message, writer) {
938
+ var f = undefined;
939
+ f = message.getId();
940
+ if (f !== 0) {
941
+ writer.writeInt64(
942
+ 1,
943
+ f
944
+ );
945
+ }
946
+ f = message.getBaseDepartmentMaterial();
947
+ if (f != null) {
948
+ writer.writeMessage(
949
+ 2,
950
+ f,
951
+ proto.BaseDepartmentMaterial.serializeBinaryToWriter
952
+ );
953
+ }
954
+ };
955
+
956
+
957
+ /**
958
+ * optional int64 id = 1;
959
+ * @return {number}
960
+ */
961
+ proto.UpdateDepartmentMaterialRequest.prototype.getId = function() {
962
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
963
+ };
964
+
965
+
966
+ /**
967
+ * @param {number} value
968
+ * @return {!proto.UpdateDepartmentMaterialRequest} returns this
969
+ */
970
+ proto.UpdateDepartmentMaterialRequest.prototype.setId = function(value) {
971
+ return jspb.Message.setProto3IntField(this, 1, value);
972
+ };
973
+
974
+
975
+ /**
976
+ * optional BaseDepartmentMaterial base_department_material = 2;
977
+ * @return {?proto.BaseDepartmentMaterial}
978
+ */
979
+ proto.UpdateDepartmentMaterialRequest.prototype.getBaseDepartmentMaterial = function() {
980
+ return /** @type{?proto.BaseDepartmentMaterial} */ (
981
+ jspb.Message.getWrapperField(this, proto.BaseDepartmentMaterial, 2));
982
+ };
983
+
984
+
985
+ /**
986
+ * @param {?proto.BaseDepartmentMaterial|undefined} value
987
+ * @return {!proto.UpdateDepartmentMaterialRequest} returns this
988
+ */
989
+ proto.UpdateDepartmentMaterialRequest.prototype.setBaseDepartmentMaterial = function(value) {
990
+ return jspb.Message.setWrapperField(this, 2, value);
991
+ };
992
+
993
+
994
+ /**
995
+ * Clears the message field making it undefined.
996
+ * @return {!proto.UpdateDepartmentMaterialRequest} returns this
997
+ */
998
+ proto.UpdateDepartmentMaterialRequest.prototype.clearBaseDepartmentMaterial = function() {
999
+ return this.setBaseDepartmentMaterial(undefined);
1000
+ };
1001
+
1002
+
1003
+ /**
1004
+ * Returns whether this field is set.
1005
+ * @return {boolean}
1006
+ */
1007
+ proto.UpdateDepartmentMaterialRequest.prototype.hasBaseDepartmentMaterial = function() {
1008
+ return jspb.Message.getField(this, 2) != null;
1009
+ };
1010
+
1011
+
1012
+
1013
+
1014
+
1015
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1016
+ /**
1017
+ * Creates an object representation of this proto.
1018
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1019
+ * Optional fields that are not set will be set to undefined.
1020
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1021
+ * For the list of reserved names please see:
1022
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1023
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1024
+ * JSPB instance for transitional soy proto support:
1025
+ * http://goto/soy-param-migration
1026
+ * @return {!Object}
1027
+ */
1028
+ proto.GetDepartmentMaterialByIdRequest.prototype.toObject = function(opt_includeInstance) {
1029
+ return proto.GetDepartmentMaterialByIdRequest.toObject(opt_includeInstance, this);
1030
+ };
1031
+
1032
+
1033
+ /**
1034
+ * Static version of the {@see toObject} method.
1035
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1036
+ * the JSPB instance for transitional soy proto support:
1037
+ * http://goto/soy-param-migration
1038
+ * @param {!proto.GetDepartmentMaterialByIdRequest} msg The msg instance to transform.
1039
+ * @return {!Object}
1040
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1041
+ */
1042
+ proto.GetDepartmentMaterialByIdRequest.toObject = function(includeInstance, msg) {
1043
+ var f, obj = {
1044
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
1045
+ };
1046
+
1047
+ if (includeInstance) {
1048
+ obj.$jspbMessageInstance = msg;
1049
+ }
1050
+ return obj;
1051
+ };
1052
+ }
1053
+
1054
+
1055
+ /**
1056
+ * Deserializes binary data (in protobuf wire format).
1057
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1058
+ * @return {!proto.GetDepartmentMaterialByIdRequest}
1059
+ */
1060
+ proto.GetDepartmentMaterialByIdRequest.deserializeBinary = function(bytes) {
1061
+ var reader = new jspb.BinaryReader(bytes);
1062
+ var msg = new proto.GetDepartmentMaterialByIdRequest;
1063
+ return proto.GetDepartmentMaterialByIdRequest.deserializeBinaryFromReader(msg, reader);
1064
+ };
1065
+
1066
+
1067
+ /**
1068
+ * Deserializes binary data (in protobuf wire format) from the
1069
+ * given reader into the given message object.
1070
+ * @param {!proto.GetDepartmentMaterialByIdRequest} msg The message object to deserialize into.
1071
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1072
+ * @return {!proto.GetDepartmentMaterialByIdRequest}
1073
+ */
1074
+ proto.GetDepartmentMaterialByIdRequest.deserializeBinaryFromReader = function(msg, reader) {
1075
+ while (reader.nextField()) {
1076
+ if (reader.isEndGroup()) {
1077
+ break;
1078
+ }
1079
+ var field = reader.getFieldNumber();
1080
+ switch (field) {
1081
+ case 1:
1082
+ var value = /** @type {number} */ (reader.readInt64());
1083
+ msg.setId(value);
1084
+ break;
1085
+ default:
1086
+ reader.skipField();
1087
+ break;
1088
+ }
1089
+ }
1090
+ return msg;
1091
+ };
1092
+
1093
+
1094
+ /**
1095
+ * Serializes the message to binary data (in protobuf wire format).
1096
+ * @return {!Uint8Array}
1097
+ */
1098
+ proto.GetDepartmentMaterialByIdRequest.prototype.serializeBinary = function() {
1099
+ var writer = new jspb.BinaryWriter();
1100
+ proto.GetDepartmentMaterialByIdRequest.serializeBinaryToWriter(this, writer);
1101
+ return writer.getResultBuffer();
1102
+ };
1103
+
1104
+
1105
+ /**
1106
+ * Serializes the given message to binary data (in protobuf wire
1107
+ * format), writing to the given BinaryWriter.
1108
+ * @param {!proto.GetDepartmentMaterialByIdRequest} message
1109
+ * @param {!jspb.BinaryWriter} writer
1110
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1111
+ */
1112
+ proto.GetDepartmentMaterialByIdRequest.serializeBinaryToWriter = function(message, writer) {
1113
+ var f = undefined;
1114
+ f = message.getId();
1115
+ if (f !== 0) {
1116
+ writer.writeInt64(
1117
+ 1,
1118
+ f
1119
+ );
1120
+ }
1121
+ };
1122
+
1123
+
1124
+ /**
1125
+ * optional int64 id = 1;
1126
+ * @return {number}
1127
+ */
1128
+ proto.GetDepartmentMaterialByIdRequest.prototype.getId = function() {
1129
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1130
+ };
1131
+
1132
+
1133
+ /**
1134
+ * @param {number} value
1135
+ * @return {!proto.GetDepartmentMaterialByIdRequest} returns this
1136
+ */
1137
+ proto.GetDepartmentMaterialByIdRequest.prototype.setId = function(value) {
1138
+ return jspb.Message.setProto3IntField(this, 1, value);
1139
+ };
1140
+
1141
+
1142
+
1143
+
1144
+
1145
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1146
+ /**
1147
+ * Creates an object representation of this proto.
1148
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1149
+ * Optional fields that are not set will be set to undefined.
1150
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1151
+ * For the list of reserved names please see:
1152
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1153
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1154
+ * JSPB instance for transitional soy proto support:
1155
+ * http://goto/soy-param-migration
1156
+ * @return {!Object}
1157
+ */
1158
+ proto.GetListDepartmentMaterialRequest.prototype.toObject = function(opt_includeInstance) {
1159
+ return proto.GetListDepartmentMaterialRequest.toObject(opt_includeInstance, this);
1160
+ };
1161
+
1162
+
1163
+ /**
1164
+ * Static version of the {@see toObject} method.
1165
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1166
+ * the JSPB instance for transitional soy proto support:
1167
+ * http://goto/soy-param-migration
1168
+ * @param {!proto.GetListDepartmentMaterialRequest} msg The msg instance to transform.
1169
+ * @return {!Object}
1170
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1171
+ */
1172
+ proto.GetListDepartmentMaterialRequest.toObject = function(includeInstance, msg) {
1173
+ var f, obj = {
1174
+ pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
1175
+ query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
1176
+ };
1177
+
1178
+ if (includeInstance) {
1179
+ obj.$jspbMessageInstance = msg;
1180
+ }
1181
+ return obj;
1182
+ };
1183
+ }
1184
+
1185
+
1186
+ /**
1187
+ * Deserializes binary data (in protobuf wire format).
1188
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1189
+ * @return {!proto.GetListDepartmentMaterialRequest}
1190
+ */
1191
+ proto.GetListDepartmentMaterialRequest.deserializeBinary = function(bytes) {
1192
+ var reader = new jspb.BinaryReader(bytes);
1193
+ var msg = new proto.GetListDepartmentMaterialRequest;
1194
+ return proto.GetListDepartmentMaterialRequest.deserializeBinaryFromReader(msg, reader);
1195
+ };
1196
+
1197
+
1198
+ /**
1199
+ * Deserializes binary data (in protobuf wire format) from the
1200
+ * given reader into the given message object.
1201
+ * @param {!proto.GetListDepartmentMaterialRequest} msg The message object to deserialize into.
1202
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1203
+ * @return {!proto.GetListDepartmentMaterialRequest}
1204
+ */
1205
+ proto.GetListDepartmentMaterialRequest.deserializeBinaryFromReader = function(msg, reader) {
1206
+ while (reader.nextField()) {
1207
+ if (reader.isEndGroup()) {
1208
+ break;
1209
+ }
1210
+ var field = reader.getFieldNumber();
1211
+ switch (field) {
1212
+ case 1:
1213
+ var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
1214
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
1215
+ msg.setPagination(value);
1216
+ break;
1217
+ case 2:
1218
+ var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
1219
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
1220
+ msg.setQuery(value);
1221
+ break;
1222
+ default:
1223
+ reader.skipField();
1224
+ break;
1225
+ }
1226
+ }
1227
+ return msg;
1228
+ };
1229
+
1230
+
1231
+ /**
1232
+ * Serializes the message to binary data (in protobuf wire format).
1233
+ * @return {!Uint8Array}
1234
+ */
1235
+ proto.GetListDepartmentMaterialRequest.prototype.serializeBinary = function() {
1236
+ var writer = new jspb.BinaryWriter();
1237
+ proto.GetListDepartmentMaterialRequest.serializeBinaryToWriter(this, writer);
1238
+ return writer.getResultBuffer();
1239
+ };
1240
+
1241
+
1242
+ /**
1243
+ * Serializes the given message to binary data (in protobuf wire
1244
+ * format), writing to the given BinaryWriter.
1245
+ * @param {!proto.GetListDepartmentMaterialRequest} message
1246
+ * @param {!jspb.BinaryWriter} writer
1247
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1248
+ */
1249
+ proto.GetListDepartmentMaterialRequest.serializeBinaryToWriter = function(message, writer) {
1250
+ var f = undefined;
1251
+ f = message.getPagination();
1252
+ if (f != null) {
1253
+ writer.writeMessage(
1254
+ 1,
1255
+ f,
1256
+ prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
1257
+ );
1258
+ }
1259
+ f = message.getQuery();
1260
+ if (f != null) {
1261
+ writer.writeMessage(
1262
+ 2,
1263
+ f,
1264
+ prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
1265
+ );
1266
+ }
1267
+ };
1268
+
1269
+
1270
+ /**
1271
+ * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
1272
+ * @return {?proto.prisca.v1.global.meta.PaginationRequest}
1273
+ */
1274
+ proto.GetListDepartmentMaterialRequest.prototype.getPagination = function() {
1275
+ return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
1276
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
1277
+ };
1278
+
1279
+
1280
+ /**
1281
+ * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
1282
+ * @return {!proto.GetListDepartmentMaterialRequest} returns this
1283
+ */
1284
+ proto.GetListDepartmentMaterialRequest.prototype.setPagination = function(value) {
1285
+ return jspb.Message.setWrapperField(this, 1, value);
1286
+ };
1287
+
1288
+
1289
+ /**
1290
+ * Clears the message field making it undefined.
1291
+ * @return {!proto.GetListDepartmentMaterialRequest} returns this
1292
+ */
1293
+ proto.GetListDepartmentMaterialRequest.prototype.clearPagination = function() {
1294
+ return this.setPagination(undefined);
1295
+ };
1296
+
1297
+
1298
+ /**
1299
+ * Returns whether this field is set.
1300
+ * @return {boolean}
1301
+ */
1302
+ proto.GetListDepartmentMaterialRequest.prototype.hasPagination = function() {
1303
+ return jspb.Message.getField(this, 1) != null;
1304
+ };
1305
+
1306
+
1307
+ /**
1308
+ * optional prisca.v1.global.meta.FilterRequest query = 2;
1309
+ * @return {?proto.prisca.v1.global.meta.FilterRequest}
1310
+ */
1311
+ proto.GetListDepartmentMaterialRequest.prototype.getQuery = function() {
1312
+ return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
1313
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
1314
+ };
1315
+
1316
+
1317
+ /**
1318
+ * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
1319
+ * @return {!proto.GetListDepartmentMaterialRequest} returns this
1320
+ */
1321
+ proto.GetListDepartmentMaterialRequest.prototype.setQuery = function(value) {
1322
+ return jspb.Message.setWrapperField(this, 2, value);
1323
+ };
1324
+
1325
+
1326
+ /**
1327
+ * Clears the message field making it undefined.
1328
+ * @return {!proto.GetListDepartmentMaterialRequest} returns this
1329
+ */
1330
+ proto.GetListDepartmentMaterialRequest.prototype.clearQuery = function() {
1331
+ return this.setQuery(undefined);
1332
+ };
1333
+
1334
+
1335
+ /**
1336
+ * Returns whether this field is set.
1337
+ * @return {boolean}
1338
+ */
1339
+ proto.GetListDepartmentMaterialRequest.prototype.hasQuery = function() {
1340
+ return jspb.Message.getField(this, 2) != null;
1341
+ };
1342
+
1343
+
1344
+
1345
+
1346
+
1347
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1348
+ /**
1349
+ * Creates an object representation of this proto.
1350
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1351
+ * Optional fields that are not set will be set to undefined.
1352
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1353
+ * For the list of reserved names please see:
1354
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1355
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1356
+ * JSPB instance for transitional soy proto support:
1357
+ * http://goto/soy-param-migration
1358
+ * @return {!Object}
1359
+ */
1360
+ proto.CreateDepartmentMaterialResponse.prototype.toObject = function(opt_includeInstance) {
1361
+ return proto.CreateDepartmentMaterialResponse.toObject(opt_includeInstance, this);
1362
+ };
1363
+
1364
+
1365
+ /**
1366
+ * Static version of the {@see toObject} method.
1367
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1368
+ * the JSPB instance for transitional soy proto support:
1369
+ * http://goto/soy-param-migration
1370
+ * @param {!proto.CreateDepartmentMaterialResponse} msg The msg instance to transform.
1371
+ * @return {!Object}
1372
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1373
+ */
1374
+ proto.CreateDepartmentMaterialResponse.toObject = function(includeInstance, msg) {
1375
+ var f, obj = {
1376
+ baseDepartmentMaterial: (f = msg.getBaseDepartmentMaterial()) && proto.DepartmentMaterial.toObject(includeInstance, f),
1377
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1378
+ };
1379
+
1380
+ if (includeInstance) {
1381
+ obj.$jspbMessageInstance = msg;
1382
+ }
1383
+ return obj;
1384
+ };
1385
+ }
1386
+
1387
+
1388
+ /**
1389
+ * Deserializes binary data (in protobuf wire format).
1390
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1391
+ * @return {!proto.CreateDepartmentMaterialResponse}
1392
+ */
1393
+ proto.CreateDepartmentMaterialResponse.deserializeBinary = function(bytes) {
1394
+ var reader = new jspb.BinaryReader(bytes);
1395
+ var msg = new proto.CreateDepartmentMaterialResponse;
1396
+ return proto.CreateDepartmentMaterialResponse.deserializeBinaryFromReader(msg, reader);
1397
+ };
1398
+
1399
+
1400
+ /**
1401
+ * Deserializes binary data (in protobuf wire format) from the
1402
+ * given reader into the given message object.
1403
+ * @param {!proto.CreateDepartmentMaterialResponse} msg The message object to deserialize into.
1404
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1405
+ * @return {!proto.CreateDepartmentMaterialResponse}
1406
+ */
1407
+ proto.CreateDepartmentMaterialResponse.deserializeBinaryFromReader = function(msg, reader) {
1408
+ while (reader.nextField()) {
1409
+ if (reader.isEndGroup()) {
1410
+ break;
1411
+ }
1412
+ var field = reader.getFieldNumber();
1413
+ switch (field) {
1414
+ case 1:
1415
+ var value = new proto.DepartmentMaterial;
1416
+ reader.readMessage(value,proto.DepartmentMaterial.deserializeBinaryFromReader);
1417
+ msg.setBaseDepartmentMaterial(value);
1418
+ break;
1419
+ case 2:
1420
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1421
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1422
+ msg.setMeta(value);
1423
+ break;
1424
+ default:
1425
+ reader.skipField();
1426
+ break;
1427
+ }
1428
+ }
1429
+ return msg;
1430
+ };
1431
+
1432
+
1433
+ /**
1434
+ * Serializes the message to binary data (in protobuf wire format).
1435
+ * @return {!Uint8Array}
1436
+ */
1437
+ proto.CreateDepartmentMaterialResponse.prototype.serializeBinary = function() {
1438
+ var writer = new jspb.BinaryWriter();
1439
+ proto.CreateDepartmentMaterialResponse.serializeBinaryToWriter(this, writer);
1440
+ return writer.getResultBuffer();
1441
+ };
1442
+
1443
+
1444
+ /**
1445
+ * Serializes the given message to binary data (in protobuf wire
1446
+ * format), writing to the given BinaryWriter.
1447
+ * @param {!proto.CreateDepartmentMaterialResponse} message
1448
+ * @param {!jspb.BinaryWriter} writer
1449
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1450
+ */
1451
+ proto.CreateDepartmentMaterialResponse.serializeBinaryToWriter = function(message, writer) {
1452
+ var f = undefined;
1453
+ f = message.getBaseDepartmentMaterial();
1454
+ if (f != null) {
1455
+ writer.writeMessage(
1456
+ 1,
1457
+ f,
1458
+ proto.DepartmentMaterial.serializeBinaryToWriter
1459
+ );
1460
+ }
1461
+ f = message.getMeta();
1462
+ if (f != null) {
1463
+ writer.writeMessage(
1464
+ 2,
1465
+ f,
1466
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1467
+ );
1468
+ }
1469
+ };
1470
+
1471
+
1472
+ /**
1473
+ * optional DepartmentMaterial base_department_material = 1;
1474
+ * @return {?proto.DepartmentMaterial}
1475
+ */
1476
+ proto.CreateDepartmentMaterialResponse.prototype.getBaseDepartmentMaterial = function() {
1477
+ return /** @type{?proto.DepartmentMaterial} */ (
1478
+ jspb.Message.getWrapperField(this, proto.DepartmentMaterial, 1));
1479
+ };
1480
+
1481
+
1482
+ /**
1483
+ * @param {?proto.DepartmentMaterial|undefined} value
1484
+ * @return {!proto.CreateDepartmentMaterialResponse} returns this
1485
+ */
1486
+ proto.CreateDepartmentMaterialResponse.prototype.setBaseDepartmentMaterial = function(value) {
1487
+ return jspb.Message.setWrapperField(this, 1, value);
1488
+ };
1489
+
1490
+
1491
+ /**
1492
+ * Clears the message field making it undefined.
1493
+ * @return {!proto.CreateDepartmentMaterialResponse} returns this
1494
+ */
1495
+ proto.CreateDepartmentMaterialResponse.prototype.clearBaseDepartmentMaterial = function() {
1496
+ return this.setBaseDepartmentMaterial(undefined);
1497
+ };
1498
+
1499
+
1500
+ /**
1501
+ * Returns whether this field is set.
1502
+ * @return {boolean}
1503
+ */
1504
+ proto.CreateDepartmentMaterialResponse.prototype.hasBaseDepartmentMaterial = function() {
1505
+ return jspb.Message.getField(this, 1) != null;
1506
+ };
1507
+
1508
+
1509
+ /**
1510
+ * optional prisca.v1.global.meta.Meta meta = 2;
1511
+ * @return {?proto.prisca.v1.global.meta.Meta}
1512
+ */
1513
+ proto.CreateDepartmentMaterialResponse.prototype.getMeta = function() {
1514
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1515
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1516
+ };
1517
+
1518
+
1519
+ /**
1520
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1521
+ * @return {!proto.CreateDepartmentMaterialResponse} returns this
1522
+ */
1523
+ proto.CreateDepartmentMaterialResponse.prototype.setMeta = function(value) {
1524
+ return jspb.Message.setWrapperField(this, 2, value);
1525
+ };
1526
+
1527
+
1528
+ /**
1529
+ * Clears the message field making it undefined.
1530
+ * @return {!proto.CreateDepartmentMaterialResponse} returns this
1531
+ */
1532
+ proto.CreateDepartmentMaterialResponse.prototype.clearMeta = function() {
1533
+ return this.setMeta(undefined);
1534
+ };
1535
+
1536
+
1537
+ /**
1538
+ * Returns whether this field is set.
1539
+ * @return {boolean}
1540
+ */
1541
+ proto.CreateDepartmentMaterialResponse.prototype.hasMeta = function() {
1542
+ return jspb.Message.getField(this, 2) != null;
1543
+ };
1544
+
1545
+
1546
+
1547
+
1548
+
1549
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1550
+ /**
1551
+ * Creates an object representation of this proto.
1552
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1553
+ * Optional fields that are not set will be set to undefined.
1554
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1555
+ * For the list of reserved names please see:
1556
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1557
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1558
+ * JSPB instance for transitional soy proto support:
1559
+ * http://goto/soy-param-migration
1560
+ * @return {!Object}
1561
+ */
1562
+ proto.UpdateDepartmentMaterialResponse.prototype.toObject = function(opt_includeInstance) {
1563
+ return proto.UpdateDepartmentMaterialResponse.toObject(opt_includeInstance, this);
1564
+ };
1565
+
1566
+
1567
+ /**
1568
+ * Static version of the {@see toObject} method.
1569
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1570
+ * the JSPB instance for transitional soy proto support:
1571
+ * http://goto/soy-param-migration
1572
+ * @param {!proto.UpdateDepartmentMaterialResponse} msg The msg instance to transform.
1573
+ * @return {!Object}
1574
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1575
+ */
1576
+ proto.UpdateDepartmentMaterialResponse.toObject = function(includeInstance, msg) {
1577
+ var f, obj = {
1578
+ baseDepartmentMaterial: (f = msg.getBaseDepartmentMaterial()) && proto.DepartmentMaterial.toObject(includeInstance, f),
1579
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1580
+ };
1581
+
1582
+ if (includeInstance) {
1583
+ obj.$jspbMessageInstance = msg;
1584
+ }
1585
+ return obj;
1586
+ };
1587
+ }
1588
+
1589
+
1590
+ /**
1591
+ * Deserializes binary data (in protobuf wire format).
1592
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1593
+ * @return {!proto.UpdateDepartmentMaterialResponse}
1594
+ */
1595
+ proto.UpdateDepartmentMaterialResponse.deserializeBinary = function(bytes) {
1596
+ var reader = new jspb.BinaryReader(bytes);
1597
+ var msg = new proto.UpdateDepartmentMaterialResponse;
1598
+ return proto.UpdateDepartmentMaterialResponse.deserializeBinaryFromReader(msg, reader);
1599
+ };
1600
+
1601
+
1602
+ /**
1603
+ * Deserializes binary data (in protobuf wire format) from the
1604
+ * given reader into the given message object.
1605
+ * @param {!proto.UpdateDepartmentMaterialResponse} msg The message object to deserialize into.
1606
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1607
+ * @return {!proto.UpdateDepartmentMaterialResponse}
1608
+ */
1609
+ proto.UpdateDepartmentMaterialResponse.deserializeBinaryFromReader = function(msg, reader) {
1610
+ while (reader.nextField()) {
1611
+ if (reader.isEndGroup()) {
1612
+ break;
1613
+ }
1614
+ var field = reader.getFieldNumber();
1615
+ switch (field) {
1616
+ case 1:
1617
+ var value = new proto.DepartmentMaterial;
1618
+ reader.readMessage(value,proto.DepartmentMaterial.deserializeBinaryFromReader);
1619
+ msg.setBaseDepartmentMaterial(value);
1620
+ break;
1621
+ case 2:
1622
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1623
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1624
+ msg.setMeta(value);
1625
+ break;
1626
+ default:
1627
+ reader.skipField();
1628
+ break;
1629
+ }
1630
+ }
1631
+ return msg;
1632
+ };
1633
+
1634
+
1635
+ /**
1636
+ * Serializes the message to binary data (in protobuf wire format).
1637
+ * @return {!Uint8Array}
1638
+ */
1639
+ proto.UpdateDepartmentMaterialResponse.prototype.serializeBinary = function() {
1640
+ var writer = new jspb.BinaryWriter();
1641
+ proto.UpdateDepartmentMaterialResponse.serializeBinaryToWriter(this, writer);
1642
+ return writer.getResultBuffer();
1643
+ };
1644
+
1645
+
1646
+ /**
1647
+ * Serializes the given message to binary data (in protobuf wire
1648
+ * format), writing to the given BinaryWriter.
1649
+ * @param {!proto.UpdateDepartmentMaterialResponse} message
1650
+ * @param {!jspb.BinaryWriter} writer
1651
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1652
+ */
1653
+ proto.UpdateDepartmentMaterialResponse.serializeBinaryToWriter = function(message, writer) {
1654
+ var f = undefined;
1655
+ f = message.getBaseDepartmentMaterial();
1656
+ if (f != null) {
1657
+ writer.writeMessage(
1658
+ 1,
1659
+ f,
1660
+ proto.DepartmentMaterial.serializeBinaryToWriter
1661
+ );
1662
+ }
1663
+ f = message.getMeta();
1664
+ if (f != null) {
1665
+ writer.writeMessage(
1666
+ 2,
1667
+ f,
1668
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1669
+ );
1670
+ }
1671
+ };
1672
+
1673
+
1674
+ /**
1675
+ * optional DepartmentMaterial base_department_material = 1;
1676
+ * @return {?proto.DepartmentMaterial}
1677
+ */
1678
+ proto.UpdateDepartmentMaterialResponse.prototype.getBaseDepartmentMaterial = function() {
1679
+ return /** @type{?proto.DepartmentMaterial} */ (
1680
+ jspb.Message.getWrapperField(this, proto.DepartmentMaterial, 1));
1681
+ };
1682
+
1683
+
1684
+ /**
1685
+ * @param {?proto.DepartmentMaterial|undefined} value
1686
+ * @return {!proto.UpdateDepartmentMaterialResponse} returns this
1687
+ */
1688
+ proto.UpdateDepartmentMaterialResponse.prototype.setBaseDepartmentMaterial = function(value) {
1689
+ return jspb.Message.setWrapperField(this, 1, value);
1690
+ };
1691
+
1692
+
1693
+ /**
1694
+ * Clears the message field making it undefined.
1695
+ * @return {!proto.UpdateDepartmentMaterialResponse} returns this
1696
+ */
1697
+ proto.UpdateDepartmentMaterialResponse.prototype.clearBaseDepartmentMaterial = function() {
1698
+ return this.setBaseDepartmentMaterial(undefined);
1699
+ };
1700
+
1701
+
1702
+ /**
1703
+ * Returns whether this field is set.
1704
+ * @return {boolean}
1705
+ */
1706
+ proto.UpdateDepartmentMaterialResponse.prototype.hasBaseDepartmentMaterial = function() {
1707
+ return jspb.Message.getField(this, 1) != null;
1708
+ };
1709
+
1710
+
1711
+ /**
1712
+ * optional prisca.v1.global.meta.Meta meta = 2;
1713
+ * @return {?proto.prisca.v1.global.meta.Meta}
1714
+ */
1715
+ proto.UpdateDepartmentMaterialResponse.prototype.getMeta = function() {
1716
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1717
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1718
+ };
1719
+
1720
+
1721
+ /**
1722
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1723
+ * @return {!proto.UpdateDepartmentMaterialResponse} returns this
1724
+ */
1725
+ proto.UpdateDepartmentMaterialResponse.prototype.setMeta = function(value) {
1726
+ return jspb.Message.setWrapperField(this, 2, value);
1727
+ };
1728
+
1729
+
1730
+ /**
1731
+ * Clears the message field making it undefined.
1732
+ * @return {!proto.UpdateDepartmentMaterialResponse} returns this
1733
+ */
1734
+ proto.UpdateDepartmentMaterialResponse.prototype.clearMeta = function() {
1735
+ return this.setMeta(undefined);
1736
+ };
1737
+
1738
+
1739
+ /**
1740
+ * Returns whether this field is set.
1741
+ * @return {boolean}
1742
+ */
1743
+ proto.UpdateDepartmentMaterialResponse.prototype.hasMeta = function() {
1744
+ return jspb.Message.getField(this, 2) != null;
1745
+ };
1746
+
1747
+
1748
+
1749
+
1750
+
1751
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1752
+ /**
1753
+ * Creates an object representation of this proto.
1754
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1755
+ * Optional fields that are not set will be set to undefined.
1756
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1757
+ * For the list of reserved names please see:
1758
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1759
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1760
+ * JSPB instance for transitional soy proto support:
1761
+ * http://goto/soy-param-migration
1762
+ * @return {!Object}
1763
+ */
1764
+ proto.GetDepartmentMaterialByIdResponse.prototype.toObject = function(opt_includeInstance) {
1765
+ return proto.GetDepartmentMaterialByIdResponse.toObject(opt_includeInstance, this);
1766
+ };
1767
+
1768
+
1769
+ /**
1770
+ * Static version of the {@see toObject} method.
1771
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1772
+ * the JSPB instance for transitional soy proto support:
1773
+ * http://goto/soy-param-migration
1774
+ * @param {!proto.GetDepartmentMaterialByIdResponse} msg The msg instance to transform.
1775
+ * @return {!Object}
1776
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1777
+ */
1778
+ proto.GetDepartmentMaterialByIdResponse.toObject = function(includeInstance, msg) {
1779
+ var f, obj = {
1780
+ baseDepartmentMaterial: (f = msg.getBaseDepartmentMaterial()) && proto.DepartmentMaterial.toObject(includeInstance, f),
1781
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1782
+ };
1783
+
1784
+ if (includeInstance) {
1785
+ obj.$jspbMessageInstance = msg;
1786
+ }
1787
+ return obj;
1788
+ };
1789
+ }
1790
+
1791
+
1792
+ /**
1793
+ * Deserializes binary data (in protobuf wire format).
1794
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1795
+ * @return {!proto.GetDepartmentMaterialByIdResponse}
1796
+ */
1797
+ proto.GetDepartmentMaterialByIdResponse.deserializeBinary = function(bytes) {
1798
+ var reader = new jspb.BinaryReader(bytes);
1799
+ var msg = new proto.GetDepartmentMaterialByIdResponse;
1800
+ return proto.GetDepartmentMaterialByIdResponse.deserializeBinaryFromReader(msg, reader);
1801
+ };
1802
+
1803
+
1804
+ /**
1805
+ * Deserializes binary data (in protobuf wire format) from the
1806
+ * given reader into the given message object.
1807
+ * @param {!proto.GetDepartmentMaterialByIdResponse} msg The message object to deserialize into.
1808
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1809
+ * @return {!proto.GetDepartmentMaterialByIdResponse}
1810
+ */
1811
+ proto.GetDepartmentMaterialByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
1812
+ while (reader.nextField()) {
1813
+ if (reader.isEndGroup()) {
1814
+ break;
1815
+ }
1816
+ var field = reader.getFieldNumber();
1817
+ switch (field) {
1818
+ case 1:
1819
+ var value = new proto.DepartmentMaterial;
1820
+ reader.readMessage(value,proto.DepartmentMaterial.deserializeBinaryFromReader);
1821
+ msg.setBaseDepartmentMaterial(value);
1822
+ break;
1823
+ case 2:
1824
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1825
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1826
+ msg.setMeta(value);
1827
+ break;
1828
+ default:
1829
+ reader.skipField();
1830
+ break;
1831
+ }
1832
+ }
1833
+ return msg;
1834
+ };
1835
+
1836
+
1837
+ /**
1838
+ * Serializes the message to binary data (in protobuf wire format).
1839
+ * @return {!Uint8Array}
1840
+ */
1841
+ proto.GetDepartmentMaterialByIdResponse.prototype.serializeBinary = function() {
1842
+ var writer = new jspb.BinaryWriter();
1843
+ proto.GetDepartmentMaterialByIdResponse.serializeBinaryToWriter(this, writer);
1844
+ return writer.getResultBuffer();
1845
+ };
1846
+
1847
+
1848
+ /**
1849
+ * Serializes the given message to binary data (in protobuf wire
1850
+ * format), writing to the given BinaryWriter.
1851
+ * @param {!proto.GetDepartmentMaterialByIdResponse} message
1852
+ * @param {!jspb.BinaryWriter} writer
1853
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1854
+ */
1855
+ proto.GetDepartmentMaterialByIdResponse.serializeBinaryToWriter = function(message, writer) {
1856
+ var f = undefined;
1857
+ f = message.getBaseDepartmentMaterial();
1858
+ if (f != null) {
1859
+ writer.writeMessage(
1860
+ 1,
1861
+ f,
1862
+ proto.DepartmentMaterial.serializeBinaryToWriter
1863
+ );
1864
+ }
1865
+ f = message.getMeta();
1866
+ if (f != null) {
1867
+ writer.writeMessage(
1868
+ 2,
1869
+ f,
1870
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1871
+ );
1872
+ }
1873
+ };
1874
+
1875
+
1876
+ /**
1877
+ * optional DepartmentMaterial base_department_material = 1;
1878
+ * @return {?proto.DepartmentMaterial}
1879
+ */
1880
+ proto.GetDepartmentMaterialByIdResponse.prototype.getBaseDepartmentMaterial = function() {
1881
+ return /** @type{?proto.DepartmentMaterial} */ (
1882
+ jspb.Message.getWrapperField(this, proto.DepartmentMaterial, 1));
1883
+ };
1884
+
1885
+
1886
+ /**
1887
+ * @param {?proto.DepartmentMaterial|undefined} value
1888
+ * @return {!proto.GetDepartmentMaterialByIdResponse} returns this
1889
+ */
1890
+ proto.GetDepartmentMaterialByIdResponse.prototype.setBaseDepartmentMaterial = function(value) {
1891
+ return jspb.Message.setWrapperField(this, 1, value);
1892
+ };
1893
+
1894
+
1895
+ /**
1896
+ * Clears the message field making it undefined.
1897
+ * @return {!proto.GetDepartmentMaterialByIdResponse} returns this
1898
+ */
1899
+ proto.GetDepartmentMaterialByIdResponse.prototype.clearBaseDepartmentMaterial = function() {
1900
+ return this.setBaseDepartmentMaterial(undefined);
1901
+ };
1902
+
1903
+
1904
+ /**
1905
+ * Returns whether this field is set.
1906
+ * @return {boolean}
1907
+ */
1908
+ proto.GetDepartmentMaterialByIdResponse.prototype.hasBaseDepartmentMaterial = function() {
1909
+ return jspb.Message.getField(this, 1) != null;
1910
+ };
1911
+
1912
+
1913
+ /**
1914
+ * optional prisca.v1.global.meta.Meta meta = 2;
1915
+ * @return {?proto.prisca.v1.global.meta.Meta}
1916
+ */
1917
+ proto.GetDepartmentMaterialByIdResponse.prototype.getMeta = function() {
1918
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1919
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1920
+ };
1921
+
1922
+
1923
+ /**
1924
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1925
+ * @return {!proto.GetDepartmentMaterialByIdResponse} returns this
1926
+ */
1927
+ proto.GetDepartmentMaterialByIdResponse.prototype.setMeta = function(value) {
1928
+ return jspb.Message.setWrapperField(this, 2, value);
1929
+ };
1930
+
1931
+
1932
+ /**
1933
+ * Clears the message field making it undefined.
1934
+ * @return {!proto.GetDepartmentMaterialByIdResponse} returns this
1935
+ */
1936
+ proto.GetDepartmentMaterialByIdResponse.prototype.clearMeta = function() {
1937
+ return this.setMeta(undefined);
1938
+ };
1939
+
1940
+
1941
+ /**
1942
+ * Returns whether this field is set.
1943
+ * @return {boolean}
1944
+ */
1945
+ proto.GetDepartmentMaterialByIdResponse.prototype.hasMeta = function() {
1946
+ return jspb.Message.getField(this, 2) != null;
1947
+ };
1948
+
1949
+
1950
+
1951
+ /**
1952
+ * List of repeated fields within this message type.
1953
+ * @private {!Array<number>}
1954
+ * @const
1955
+ */
1956
+ proto.GetListDepartmentMaterialResponse.repeatedFields_ = [1];
1957
+
1958
+
1959
+
1960
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1961
+ /**
1962
+ * Creates an object representation of this proto.
1963
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1964
+ * Optional fields that are not set will be set to undefined.
1965
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1966
+ * For the list of reserved names please see:
1967
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1968
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1969
+ * JSPB instance for transitional soy proto support:
1970
+ * http://goto/soy-param-migration
1971
+ * @return {!Object}
1972
+ */
1973
+ proto.GetListDepartmentMaterialResponse.prototype.toObject = function(opt_includeInstance) {
1974
+ return proto.GetListDepartmentMaterialResponse.toObject(opt_includeInstance, this);
1975
+ };
1976
+
1977
+
1978
+ /**
1979
+ * Static version of the {@see toObject} method.
1980
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1981
+ * the JSPB instance for transitional soy proto support:
1982
+ * http://goto/soy-param-migration
1983
+ * @param {!proto.GetListDepartmentMaterialResponse} msg The msg instance to transform.
1984
+ * @return {!Object}
1985
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1986
+ */
1987
+ proto.GetListDepartmentMaterialResponse.toObject = function(includeInstance, msg) {
1988
+ var f, obj = {
1989
+ baseDepartmentMaterialList: jspb.Message.toObjectList(msg.getBaseDepartmentMaterialList(),
1990
+ proto.DepartmentMaterial.toObject, includeInstance),
1991
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1992
+ };
1993
+
1994
+ if (includeInstance) {
1995
+ obj.$jspbMessageInstance = msg;
1996
+ }
1997
+ return obj;
1998
+ };
1999
+ }
2000
+
2001
+
2002
+ /**
2003
+ * Deserializes binary data (in protobuf wire format).
2004
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2005
+ * @return {!proto.GetListDepartmentMaterialResponse}
2006
+ */
2007
+ proto.GetListDepartmentMaterialResponse.deserializeBinary = function(bytes) {
2008
+ var reader = new jspb.BinaryReader(bytes);
2009
+ var msg = new proto.GetListDepartmentMaterialResponse;
2010
+ return proto.GetListDepartmentMaterialResponse.deserializeBinaryFromReader(msg, reader);
2011
+ };
2012
+
2013
+
2014
+ /**
2015
+ * Deserializes binary data (in protobuf wire format) from the
2016
+ * given reader into the given message object.
2017
+ * @param {!proto.GetListDepartmentMaterialResponse} msg The message object to deserialize into.
2018
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2019
+ * @return {!proto.GetListDepartmentMaterialResponse}
2020
+ */
2021
+ proto.GetListDepartmentMaterialResponse.deserializeBinaryFromReader = function(msg, reader) {
2022
+ while (reader.nextField()) {
2023
+ if (reader.isEndGroup()) {
2024
+ break;
2025
+ }
2026
+ var field = reader.getFieldNumber();
2027
+ switch (field) {
2028
+ case 1:
2029
+ var value = new proto.DepartmentMaterial;
2030
+ reader.readMessage(value,proto.DepartmentMaterial.deserializeBinaryFromReader);
2031
+ msg.addBaseDepartmentMaterial(value);
2032
+ break;
2033
+ case 2:
2034
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2035
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2036
+ msg.setMeta(value);
2037
+ break;
2038
+ default:
2039
+ reader.skipField();
2040
+ break;
2041
+ }
2042
+ }
2043
+ return msg;
2044
+ };
2045
+
2046
+
2047
+ /**
2048
+ * Serializes the message to binary data (in protobuf wire format).
2049
+ * @return {!Uint8Array}
2050
+ */
2051
+ proto.GetListDepartmentMaterialResponse.prototype.serializeBinary = function() {
2052
+ var writer = new jspb.BinaryWriter();
2053
+ proto.GetListDepartmentMaterialResponse.serializeBinaryToWriter(this, writer);
2054
+ return writer.getResultBuffer();
2055
+ };
2056
+
2057
+
2058
+ /**
2059
+ * Serializes the given message to binary data (in protobuf wire
2060
+ * format), writing to the given BinaryWriter.
2061
+ * @param {!proto.GetListDepartmentMaterialResponse} message
2062
+ * @param {!jspb.BinaryWriter} writer
2063
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2064
+ */
2065
+ proto.GetListDepartmentMaterialResponse.serializeBinaryToWriter = function(message, writer) {
2066
+ var f = undefined;
2067
+ f = message.getBaseDepartmentMaterialList();
2068
+ if (f.length > 0) {
2069
+ writer.writeRepeatedMessage(
2070
+ 1,
2071
+ f,
2072
+ proto.DepartmentMaterial.serializeBinaryToWriter
2073
+ );
2074
+ }
2075
+ f = message.getMeta();
2076
+ if (f != null) {
2077
+ writer.writeMessage(
2078
+ 2,
2079
+ f,
2080
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2081
+ );
2082
+ }
2083
+ };
2084
+
2085
+
2086
+ /**
2087
+ * repeated DepartmentMaterial base_department_material = 1;
2088
+ * @return {!Array<!proto.DepartmentMaterial>}
2089
+ */
2090
+ proto.GetListDepartmentMaterialResponse.prototype.getBaseDepartmentMaterialList = function() {
2091
+ return /** @type{!Array<!proto.DepartmentMaterial>} */ (
2092
+ jspb.Message.getRepeatedWrapperField(this, proto.DepartmentMaterial, 1));
2093
+ };
2094
+
2095
+
2096
+ /**
2097
+ * @param {!Array<!proto.DepartmentMaterial>} value
2098
+ * @return {!proto.GetListDepartmentMaterialResponse} returns this
2099
+ */
2100
+ proto.GetListDepartmentMaterialResponse.prototype.setBaseDepartmentMaterialList = function(value) {
2101
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2102
+ };
2103
+
2104
+
2105
+ /**
2106
+ * @param {!proto.DepartmentMaterial=} opt_value
2107
+ * @param {number=} opt_index
2108
+ * @return {!proto.DepartmentMaterial}
2109
+ */
2110
+ proto.GetListDepartmentMaterialResponse.prototype.addBaseDepartmentMaterial = function(opt_value, opt_index) {
2111
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.DepartmentMaterial, opt_index);
2112
+ };
2113
+
2114
+
2115
+ /**
2116
+ * Clears the list making it empty but non-null.
2117
+ * @return {!proto.GetListDepartmentMaterialResponse} returns this
2118
+ */
2119
+ proto.GetListDepartmentMaterialResponse.prototype.clearBaseDepartmentMaterialList = function() {
2120
+ return this.setBaseDepartmentMaterialList([]);
2121
+ };
2122
+
2123
+
2124
+ /**
2125
+ * optional prisca.v1.global.meta.Meta meta = 2;
2126
+ * @return {?proto.prisca.v1.global.meta.Meta}
2127
+ */
2128
+ proto.GetListDepartmentMaterialResponse.prototype.getMeta = function() {
2129
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2130
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2131
+ };
2132
+
2133
+
2134
+ /**
2135
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2136
+ * @return {!proto.GetListDepartmentMaterialResponse} returns this
2137
+ */
2138
+ proto.GetListDepartmentMaterialResponse.prototype.setMeta = function(value) {
2139
+ return jspb.Message.setWrapperField(this, 2, value);
2140
+ };
2141
+
2142
+
2143
+ /**
2144
+ * Clears the message field making it undefined.
2145
+ * @return {!proto.GetListDepartmentMaterialResponse} returns this
2146
+ */
2147
+ proto.GetListDepartmentMaterialResponse.prototype.clearMeta = function() {
2148
+ return this.setMeta(undefined);
2149
+ };
2150
+
2151
+
2152
+ /**
2153
+ * Returns whether this field is set.
2154
+ * @return {boolean}
2155
+ */
2156
+ proto.GetListDepartmentMaterialResponse.prototype.hasMeta = function() {
2157
+ return jspb.Message.getField(this, 2) != null;
2158
+ };
2159
+
2160
+
2161
+ goog.object.extend(exports, proto);