@aldiokta/protocgen 1.1.43 → 1.1.45

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