@aldiokta/protocgen 1.1.45 → 1.1.47

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