@aldiokta/protocgen 1.1.22 → 1.1.23

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