@aldiokta/protocgen 1.1.8 → 1.1.19

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