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