@aldiokta/protocgen 1.1.23 → 1.1.24

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