@aldiokta/protocgen 1.1.8 → 1.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/account_assignment/account_assignment.proto +79 -0
  3. package/prisca/v1/account_group/account_group.proto +86 -0
  4. package/prisca/v1/bidding/bidding.proto +159 -0
  5. package/prisca/v1/chart_of_account/chart_of_account.proto +87 -0
  6. package/prisca/v1/core/access_manager/access_manager.proto +281 -0
  7. package/prisca/v1/core/auth/auth.proto +150 -0
  8. package/prisca/v1/core/chat_messaging/chat_messaging.proto +55 -0
  9. package/prisca/v1/core/company/company.proto +92 -0
  10. package/prisca/v1/core/currency/currency.proto +76 -0
  11. package/prisca/v1/core/department_material/department_material.proto +69 -0
  12. package/prisca/v1/core/employee/employee.proto +129 -0
  13. package/prisca/v1/core/file_upload/file_upload.proto +31 -0
  14. package/prisca/v1/core/incoterm/incoterm.proto +76 -0
  15. package/prisca/v1/core/item_transaction/item_transaction.proto +120 -0
  16. package/prisca/v1/core/job_grade/job_grade.proto +79 -0
  17. package/prisca/v1/core/job_position/job_position.proto +113 -0
  18. package/prisca/v1/core/job_title/job_title.proto +89 -0
  19. package/prisca/v1/core/line_of_activity/line_of_activity.proto +42 -0
  20. package/prisca/v1/core/line_of_approval/line_of_approval.proto +94 -0
  21. package/prisca/v1/core/link_data_source/link_data_source.proto +78 -0
  22. package/prisca/v1/core/location/location.proto +289 -0
  23. package/prisca/v1/core/material/material.proto +131 -0
  24. package/prisca/v1/core/material_group/material_group.proto +85 -0
  25. package/prisca/v1/core/material_type/material_type.proto +86 -0
  26. package/prisca/v1/core/messaging/email_template.proto +75 -0
  27. package/prisca/v1/core/messaging/messaging.proto +29 -0
  28. package/prisca/v1/core/number_range/number_range.proto +89 -0
  29. package/prisca/v1/core/organization/organization.proto +94 -0
  30. package/prisca/v1/core/organization_level/organization_level.proto +77 -0
  31. package/prisca/v1/core/price_condition/price_condition.proto +83 -0
  32. package/prisca/v1/core/procurement/procurement.proto +54 -0
  33. package/prisca/v1/core/recipient_roles/recipient_roles.proto +10 -0
  34. package/prisca/v1/core/report/report.proto +90 -0
  35. package/prisca/v1/core/report/user_report.proto +74 -0
  36. package/prisca/v1/core/tax_code/tax_code.proto +77 -0
  37. package/prisca/v1/core/term_of_payment/term_of_payment.proto +64 -0
  38. package/prisca/v1/core/transaction_builder/transaction_builder.proto +325 -0
  39. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +88 -0
  40. package/prisca/v1/core/users/users.proto +45 -0
  41. package/prisca/v1/core/work_location/work_location.proto +122 -0
  42. package/prisca/v1/core/workflow/workflow.proto +216 -0
  43. package/prisca/v1/document_type/document_type.proto +80 -0
  44. package/prisca/v1/general_ledger_account/general_ledger_account.proto +98 -0
  45. package/prisca/v1/global/meta/meta.proto +57 -0
  46. package/prisca/v1/purchase_order/purchase_order.proto +155 -0
  47. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +304 -0
  48. package/prisca/v1/purchasing_group/purchasing_group.proto +87 -0
  49. package/prisca/v1/purchasing_organization/purchasing_organization.proto +68 -0
  50. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +70 -0
  51. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +80 -0
  52. package/prisca/v1/quotation/quotation.proto +82 -0
  53. package/prisca/v1/request_for_quotation/request_for_quotation.proto +166 -0
  54. package/prisca/v1/vendor_domain/vendor_domain.proto +225 -0
  55. package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +0 -199
  56. package/prisca/v1/account_assignment/account_assignment_pb.js +0 -2674
  57. package/prisca/v1/account_group/account_group_grpc_pb.js +0 -200
  58. package/prisca/v1/account_group/account_group_pb.js +0 -2937
  59. package/prisca/v1/bidding/bidding_grpc_pb.js +0 -119
  60. package/prisca/v1/bidding/bidding_pb.js +0 -3152
  61. package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +0 -199
  62. package/prisca/v1/chart_of_account/chart_of_account_pb.js +0 -2907
  63. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +0 -544
  64. package/prisca/v1/core/access_manager/access_manager_pb.js +0 -9383
  65. package/prisca/v1/core/auth/auth_grpc_pb.js +0 -423
  66. package/prisca/v1/core/auth/auth_pb.js +0 -4497
  67. package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +0 -111
  68. package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +0 -1531
  69. package/prisca/v1/core/company/company_grpc_pb.js +0 -178
  70. package/prisca/v1/core/company/company_pb.js +0 -3048
  71. package/prisca/v1/core/currency/currency_grpc_pb.js +0 -177
  72. package/prisca/v1/core/currency/currency_pb.js +0 -2522
  73. package/prisca/v1/core/department_material/department_material_grpc_pb.js +0 -144
  74. package/prisca/v1/core/department_material/department_material_pb.js +0 -2167
  75. package/prisca/v1/core/employee/employee_grpc_pb.js +0 -206
  76. package/prisca/v1/core/employee/employee_pb.js +0 -4283
  77. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +0 -44
  78. package/prisca/v1/core/file_upload/file_upload_pb.js +0 -872
  79. package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +0 -144
  80. package/prisca/v1/core/incoterm/incoterm_pb.js +0 -2497
  81. package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +0 -1
  82. package/prisca/v1/core/item_transaction/item_transaction_pb.js +0 -3880
  83. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +0 -178
  84. package/prisca/v1/core/job_grade/job_grade_pb.js +0 -2605
  85. package/prisca/v1/core/job_position/job_position_grpc_pb.js +0 -181
  86. package/prisca/v1/core/job_position/job_position_pb.js +0 -3762
  87. package/prisca/v1/core/job_title/job_title_grpc_pb.js +0 -178
  88. package/prisca/v1/core/job_title/job_title_pb.js +0 -2958
  89. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +0 -45
  90. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +0 -1188
  91. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +0 -200
  92. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +0 -3191
  93. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +0 -177
  94. package/prisca/v1/core/link_data_source/link_data_source_pb.js +0 -2612
  95. package/prisca/v1/core/location/location_grpc_pb.js +0 -837
  96. package/prisca/v1/core/location/location_pb.js +0 -10879
  97. package/prisca/v1/core/material/material_grpc_pb.js +0 -182
  98. package/prisca/v1/core/material/material_pb.js +0 -4180
  99. package/prisca/v1/core/material_group/material_group_grpc_pb.js +0 -178
  100. package/prisca/v1/core/material_group/material_group_pb.js +0 -2776
  101. package/prisca/v1/core/material_type/material_type_grpc_pb.js +0 -149
  102. package/prisca/v1/core/material_type/material_type_pb.js +0 -2697
  103. package/prisca/v1/core/messaging/email_template_grpc_pb.js +0 -177
  104. package/prisca/v1/core/messaging/email_template_pb.js +0 -2552
  105. package/prisca/v1/core/messaging/messaging_grpc_pb.js +0 -56
  106. package/prisca/v1/core/messaging/messaging_pb.js +0 -896
  107. package/prisca/v1/core/number_range/number_range_grpc_pb.js +0 -178
  108. package/prisca/v1/core/number_range/number_range_pb.js +0 -2926
  109. package/prisca/v1/core/organization/organization_grpc_pb.js +0 -180
  110. package/prisca/v1/core/organization/organization_pb.js +0 -3032
  111. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +0 -178
  112. package/prisca/v1/core/organization_level/organization_level_pb.js +0 -2545
  113. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +0 -146
  114. package/prisca/v1/core/price_condition/price_condition_pb.js +0 -2654
  115. package/prisca/v1/core/procurement/procurement_grpc_pb.js +0 -146
  116. package/prisca/v1/core/procurement/procurement_pb.js +0 -1681
  117. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -266
  118. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -4429
  119. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +0 -1
  120. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +0 -206
  121. package/prisca/v1/core/report/report_grpc_pb.js +0 -200
  122. package/prisca/v1/core/report/report_pb.js +0 -2822
  123. package/prisca/v1/core/report/user_report_grpc_pb.js +0 -179
  124. package/prisca/v1/core/report/user_report_pb.js +0 -2452
  125. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +0 -177
  126. package/prisca/v1/core/tax_code/tax_code_pb.js +0 -2582
  127. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +0 -144
  128. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +0 -2105
  129. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +0 -498
  130. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +0 -10976
  131. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +0 -180
  132. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +0 -2798
  133. package/prisca/v1/core/users/users_grpc_pb.js +0 -45
  134. package/prisca/v1/core/users/users_pb.js +0 -1246
  135. package/prisca/v1/core/work_location/work_location_grpc_pb.js +0 -179
  136. package/prisca/v1/core/work_location/work_location_pb.js +0 -3972
  137. package/prisca/v1/core/workflow/workflow_grpc_pb.js +0 -203
  138. package/prisca/v1/core/workflow/workflow_pb.js +0 -7525
  139. package/prisca/v1/document_type/document_type_grpc_pb.js +0 -178
  140. package/prisca/v1/document_type/document_type_pb.js +0 -2746
  141. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +0 -181
  142. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +0 -3276
  143. package/prisca/v1/global/meta/meta_grpc_pb.js +0 -1
  144. package/prisca/v1/global/meta/meta_pb.js +0 -1179
  145. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -512
  146. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -9917
  147. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +0 -178
  148. package/prisca/v1/purchasing_group/purchasing_group_pb.js +0 -2875
  149. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +0 -145
  150. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +0 -2139
  151. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +0 -146
  152. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +0 -2183
  153. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +0 -145
  154. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +0 -2543
  155. package/prisca/v1/quotation/quotation_grpc_pb.js +0 -151
  156. package/prisca/v1/quotation/quotation_pb.js +0 -3941
  157. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +0 -192
  158. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +0 -5703
@@ -1,2798 +0,0 @@
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, null, 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, null, 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
-
1673
- if (jspb.Message.GENERATE_TO_OBJECT) {
1674
- /**
1675
- * Creates an object representation of this proto.
1676
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1677
- * Optional fields that are not set will be set to undefined.
1678
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1679
- * For the list of reserved names please see:
1680
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1681
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1682
- * JSPB instance for transitional soy proto support:
1683
- * http://goto/soy-param-migration
1684
- * @return {!Object}
1685
- */
1686
- proto.DeleteUnitOfMeasureRequest.prototype.toObject = function(opt_includeInstance) {
1687
- return proto.DeleteUnitOfMeasureRequest.toObject(opt_includeInstance, this);
1688
- };
1689
-
1690
-
1691
- /**
1692
- * Static version of the {@see toObject} method.
1693
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1694
- * the JSPB instance for transitional soy proto support:
1695
- * http://goto/soy-param-migration
1696
- * @param {!proto.DeleteUnitOfMeasureRequest} msg The msg instance to transform.
1697
- * @return {!Object}
1698
- * @suppress {unusedLocalVariables} f is only used for nested messages
1699
- */
1700
- proto.DeleteUnitOfMeasureRequest.toObject = function(includeInstance, msg) {
1701
- var f, obj = {
1702
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
1703
- };
1704
-
1705
- if (includeInstance) {
1706
- obj.$jspbMessageInstance = msg;
1707
- }
1708
- return obj;
1709
- };
1710
- }
1711
-
1712
-
1713
- /**
1714
- * Deserializes binary data (in protobuf wire format).
1715
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1716
- * @return {!proto.DeleteUnitOfMeasureRequest}
1717
- */
1718
- proto.DeleteUnitOfMeasureRequest.deserializeBinary = function(bytes) {
1719
- var reader = new jspb.BinaryReader(bytes);
1720
- var msg = new proto.DeleteUnitOfMeasureRequest;
1721
- return proto.DeleteUnitOfMeasureRequest.deserializeBinaryFromReader(msg, reader);
1722
- };
1723
-
1724
-
1725
- /**
1726
- * Deserializes binary data (in protobuf wire format) from the
1727
- * given reader into the given message object.
1728
- * @param {!proto.DeleteUnitOfMeasureRequest} msg The message object to deserialize into.
1729
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1730
- * @return {!proto.DeleteUnitOfMeasureRequest}
1731
- */
1732
- proto.DeleteUnitOfMeasureRequest.deserializeBinaryFromReader = function(msg, reader) {
1733
- while (reader.nextField()) {
1734
- if (reader.isEndGroup()) {
1735
- break;
1736
- }
1737
- var field = reader.getFieldNumber();
1738
- switch (field) {
1739
- case 1:
1740
- var value = /** @type {string} */ (reader.readString());
1741
- msg.setReferencesId(value);
1742
- break;
1743
- default:
1744
- reader.skipField();
1745
- break;
1746
- }
1747
- }
1748
- return msg;
1749
- };
1750
-
1751
-
1752
- /**
1753
- * Serializes the message to binary data (in protobuf wire format).
1754
- * @return {!Uint8Array}
1755
- */
1756
- proto.DeleteUnitOfMeasureRequest.prototype.serializeBinary = function() {
1757
- var writer = new jspb.BinaryWriter();
1758
- proto.DeleteUnitOfMeasureRequest.serializeBinaryToWriter(this, writer);
1759
- return writer.getResultBuffer();
1760
- };
1761
-
1762
-
1763
- /**
1764
- * Serializes the given message to binary data (in protobuf wire
1765
- * format), writing to the given BinaryWriter.
1766
- * @param {!proto.DeleteUnitOfMeasureRequest} message
1767
- * @param {!jspb.BinaryWriter} writer
1768
- * @suppress {unusedLocalVariables} f is only used for nested messages
1769
- */
1770
- proto.DeleteUnitOfMeasureRequest.serializeBinaryToWriter = function(message, writer) {
1771
- var f = undefined;
1772
- f = message.getReferencesId();
1773
- if (f.length > 0) {
1774
- writer.writeString(
1775
- 1,
1776
- f
1777
- );
1778
- }
1779
- };
1780
-
1781
-
1782
- /**
1783
- * optional string references_id = 1;
1784
- * @return {string}
1785
- */
1786
- proto.DeleteUnitOfMeasureRequest.prototype.getReferencesId = function() {
1787
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1788
- };
1789
-
1790
-
1791
- /**
1792
- * @param {string} value
1793
- * @return {!proto.DeleteUnitOfMeasureRequest} returns this
1794
- */
1795
- proto.DeleteUnitOfMeasureRequest.prototype.setReferencesId = function(value) {
1796
- return jspb.Message.setProto3StringField(this, 1, value);
1797
- };
1798
-
1799
-
1800
-
1801
-
1802
-
1803
- if (jspb.Message.GENERATE_TO_OBJECT) {
1804
- /**
1805
- * Creates an object representation of this proto.
1806
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1807
- * Optional fields that are not set will be set to undefined.
1808
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1809
- * For the list of reserved names please see:
1810
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1811
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1812
- * JSPB instance for transitional soy proto support:
1813
- * http://goto/soy-param-migration
1814
- * @return {!Object}
1815
- */
1816
- proto.CreateUnitOfMeasureResponse.prototype.toObject = function(opt_includeInstance) {
1817
- return proto.CreateUnitOfMeasureResponse.toObject(opt_includeInstance, this);
1818
- };
1819
-
1820
-
1821
- /**
1822
- * Static version of the {@see toObject} method.
1823
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1824
- * the JSPB instance for transitional soy proto support:
1825
- * http://goto/soy-param-migration
1826
- * @param {!proto.CreateUnitOfMeasureResponse} msg The msg instance to transform.
1827
- * @return {!Object}
1828
- * @suppress {unusedLocalVariables} f is only used for nested messages
1829
- */
1830
- proto.CreateUnitOfMeasureResponse.toObject = function(includeInstance, msg) {
1831
- var f, obj = {
1832
- unitOfMeasure: (f = msg.getUnitOfMeasure()) && proto.UnitOfMeasure.toObject(includeInstance, f),
1833
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1834
- };
1835
-
1836
- if (includeInstance) {
1837
- obj.$jspbMessageInstance = msg;
1838
- }
1839
- return obj;
1840
- };
1841
- }
1842
-
1843
-
1844
- /**
1845
- * Deserializes binary data (in protobuf wire format).
1846
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1847
- * @return {!proto.CreateUnitOfMeasureResponse}
1848
- */
1849
- proto.CreateUnitOfMeasureResponse.deserializeBinary = function(bytes) {
1850
- var reader = new jspb.BinaryReader(bytes);
1851
- var msg = new proto.CreateUnitOfMeasureResponse;
1852
- return proto.CreateUnitOfMeasureResponse.deserializeBinaryFromReader(msg, reader);
1853
- };
1854
-
1855
-
1856
- /**
1857
- * Deserializes binary data (in protobuf wire format) from the
1858
- * given reader into the given message object.
1859
- * @param {!proto.CreateUnitOfMeasureResponse} msg The message object to deserialize into.
1860
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1861
- * @return {!proto.CreateUnitOfMeasureResponse}
1862
- */
1863
- proto.CreateUnitOfMeasureResponse.deserializeBinaryFromReader = function(msg, reader) {
1864
- while (reader.nextField()) {
1865
- if (reader.isEndGroup()) {
1866
- break;
1867
- }
1868
- var field = reader.getFieldNumber();
1869
- switch (field) {
1870
- case 1:
1871
- var value = new proto.UnitOfMeasure;
1872
- reader.readMessage(value,proto.UnitOfMeasure.deserializeBinaryFromReader);
1873
- msg.setUnitOfMeasure(value);
1874
- break;
1875
- case 2:
1876
- var value = new prisca_v1_global_meta_meta_pb.Meta;
1877
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1878
- msg.setMeta(value);
1879
- break;
1880
- default:
1881
- reader.skipField();
1882
- break;
1883
- }
1884
- }
1885
- return msg;
1886
- };
1887
-
1888
-
1889
- /**
1890
- * Serializes the message to binary data (in protobuf wire format).
1891
- * @return {!Uint8Array}
1892
- */
1893
- proto.CreateUnitOfMeasureResponse.prototype.serializeBinary = function() {
1894
- var writer = new jspb.BinaryWriter();
1895
- proto.CreateUnitOfMeasureResponse.serializeBinaryToWriter(this, writer);
1896
- return writer.getResultBuffer();
1897
- };
1898
-
1899
-
1900
- /**
1901
- * Serializes the given message to binary data (in protobuf wire
1902
- * format), writing to the given BinaryWriter.
1903
- * @param {!proto.CreateUnitOfMeasureResponse} message
1904
- * @param {!jspb.BinaryWriter} writer
1905
- * @suppress {unusedLocalVariables} f is only used for nested messages
1906
- */
1907
- proto.CreateUnitOfMeasureResponse.serializeBinaryToWriter = function(message, writer) {
1908
- var f = undefined;
1909
- f = message.getUnitOfMeasure();
1910
- if (f != null) {
1911
- writer.writeMessage(
1912
- 1,
1913
- f,
1914
- proto.UnitOfMeasure.serializeBinaryToWriter
1915
- );
1916
- }
1917
- f = message.getMeta();
1918
- if (f != null) {
1919
- writer.writeMessage(
1920
- 2,
1921
- f,
1922
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1923
- );
1924
- }
1925
- };
1926
-
1927
-
1928
- /**
1929
- * optional UnitOfMeasure unit_of_measure = 1;
1930
- * @return {?proto.UnitOfMeasure}
1931
- */
1932
- proto.CreateUnitOfMeasureResponse.prototype.getUnitOfMeasure = function() {
1933
- return /** @type{?proto.UnitOfMeasure} */ (
1934
- jspb.Message.getWrapperField(this, proto.UnitOfMeasure, 1));
1935
- };
1936
-
1937
-
1938
- /**
1939
- * @param {?proto.UnitOfMeasure|undefined} value
1940
- * @return {!proto.CreateUnitOfMeasureResponse} returns this
1941
- */
1942
- proto.CreateUnitOfMeasureResponse.prototype.setUnitOfMeasure = function(value) {
1943
- return jspb.Message.setWrapperField(this, 1, value);
1944
- };
1945
-
1946
-
1947
- /**
1948
- * Clears the message field making it undefined.
1949
- * @return {!proto.CreateUnitOfMeasureResponse} returns this
1950
- */
1951
- proto.CreateUnitOfMeasureResponse.prototype.clearUnitOfMeasure = function() {
1952
- return this.setUnitOfMeasure(undefined);
1953
- };
1954
-
1955
-
1956
- /**
1957
- * Returns whether this field is set.
1958
- * @return {boolean}
1959
- */
1960
- proto.CreateUnitOfMeasureResponse.prototype.hasUnitOfMeasure = function() {
1961
- return jspb.Message.getField(this, 1) != null;
1962
- };
1963
-
1964
-
1965
- /**
1966
- * optional prisca.v1.global.meta.Meta meta = 2;
1967
- * @return {?proto.prisca.v1.global.meta.Meta}
1968
- */
1969
- proto.CreateUnitOfMeasureResponse.prototype.getMeta = function() {
1970
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1971
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1972
- };
1973
-
1974
-
1975
- /**
1976
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1977
- * @return {!proto.CreateUnitOfMeasureResponse} returns this
1978
- */
1979
- proto.CreateUnitOfMeasureResponse.prototype.setMeta = function(value) {
1980
- return jspb.Message.setWrapperField(this, 2, value);
1981
- };
1982
-
1983
-
1984
- /**
1985
- * Clears the message field making it undefined.
1986
- * @return {!proto.CreateUnitOfMeasureResponse} returns this
1987
- */
1988
- proto.CreateUnitOfMeasureResponse.prototype.clearMeta = function() {
1989
- return this.setMeta(undefined);
1990
- };
1991
-
1992
-
1993
- /**
1994
- * Returns whether this field is set.
1995
- * @return {boolean}
1996
- */
1997
- proto.CreateUnitOfMeasureResponse.prototype.hasMeta = function() {
1998
- return jspb.Message.getField(this, 2) != null;
1999
- };
2000
-
2001
-
2002
-
2003
-
2004
-
2005
- if (jspb.Message.GENERATE_TO_OBJECT) {
2006
- /**
2007
- * Creates an object representation of this proto.
2008
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2009
- * Optional fields that are not set will be set to undefined.
2010
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2011
- * For the list of reserved names please see:
2012
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2013
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2014
- * JSPB instance for transitional soy proto support:
2015
- * http://goto/soy-param-migration
2016
- * @return {!Object}
2017
- */
2018
- proto.UpdateUnitOfMeasureResponse.prototype.toObject = function(opt_includeInstance) {
2019
- return proto.UpdateUnitOfMeasureResponse.toObject(opt_includeInstance, this);
2020
- };
2021
-
2022
-
2023
- /**
2024
- * Static version of the {@see toObject} method.
2025
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2026
- * the JSPB instance for transitional soy proto support:
2027
- * http://goto/soy-param-migration
2028
- * @param {!proto.UpdateUnitOfMeasureResponse} msg The msg instance to transform.
2029
- * @return {!Object}
2030
- * @suppress {unusedLocalVariables} f is only used for nested messages
2031
- */
2032
- proto.UpdateUnitOfMeasureResponse.toObject = function(includeInstance, msg) {
2033
- var f, obj = {
2034
- unitOfMeasure: (f = msg.getUnitOfMeasure()) && proto.UnitOfMeasure.toObject(includeInstance, f),
2035
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2036
- };
2037
-
2038
- if (includeInstance) {
2039
- obj.$jspbMessageInstance = msg;
2040
- }
2041
- return obj;
2042
- };
2043
- }
2044
-
2045
-
2046
- /**
2047
- * Deserializes binary data (in protobuf wire format).
2048
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2049
- * @return {!proto.UpdateUnitOfMeasureResponse}
2050
- */
2051
- proto.UpdateUnitOfMeasureResponse.deserializeBinary = function(bytes) {
2052
- var reader = new jspb.BinaryReader(bytes);
2053
- var msg = new proto.UpdateUnitOfMeasureResponse;
2054
- return proto.UpdateUnitOfMeasureResponse.deserializeBinaryFromReader(msg, reader);
2055
- };
2056
-
2057
-
2058
- /**
2059
- * Deserializes binary data (in protobuf wire format) from the
2060
- * given reader into the given message object.
2061
- * @param {!proto.UpdateUnitOfMeasureResponse} msg The message object to deserialize into.
2062
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2063
- * @return {!proto.UpdateUnitOfMeasureResponse}
2064
- */
2065
- proto.UpdateUnitOfMeasureResponse.deserializeBinaryFromReader = function(msg, reader) {
2066
- while (reader.nextField()) {
2067
- if (reader.isEndGroup()) {
2068
- break;
2069
- }
2070
- var field = reader.getFieldNumber();
2071
- switch (field) {
2072
- case 1:
2073
- var value = new proto.UnitOfMeasure;
2074
- reader.readMessage(value,proto.UnitOfMeasure.deserializeBinaryFromReader);
2075
- msg.setUnitOfMeasure(value);
2076
- break;
2077
- case 2:
2078
- var value = new prisca_v1_global_meta_meta_pb.Meta;
2079
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2080
- msg.setMeta(value);
2081
- break;
2082
- default:
2083
- reader.skipField();
2084
- break;
2085
- }
2086
- }
2087
- return msg;
2088
- };
2089
-
2090
-
2091
- /**
2092
- * Serializes the message to binary data (in protobuf wire format).
2093
- * @return {!Uint8Array}
2094
- */
2095
- proto.UpdateUnitOfMeasureResponse.prototype.serializeBinary = function() {
2096
- var writer = new jspb.BinaryWriter();
2097
- proto.UpdateUnitOfMeasureResponse.serializeBinaryToWriter(this, writer);
2098
- return writer.getResultBuffer();
2099
- };
2100
-
2101
-
2102
- /**
2103
- * Serializes the given message to binary data (in protobuf wire
2104
- * format), writing to the given BinaryWriter.
2105
- * @param {!proto.UpdateUnitOfMeasureResponse} message
2106
- * @param {!jspb.BinaryWriter} writer
2107
- * @suppress {unusedLocalVariables} f is only used for nested messages
2108
- */
2109
- proto.UpdateUnitOfMeasureResponse.serializeBinaryToWriter = function(message, writer) {
2110
- var f = undefined;
2111
- f = message.getUnitOfMeasure();
2112
- if (f != null) {
2113
- writer.writeMessage(
2114
- 1,
2115
- f,
2116
- proto.UnitOfMeasure.serializeBinaryToWriter
2117
- );
2118
- }
2119
- f = message.getMeta();
2120
- if (f != null) {
2121
- writer.writeMessage(
2122
- 2,
2123
- f,
2124
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2125
- );
2126
- }
2127
- };
2128
-
2129
-
2130
- /**
2131
- * optional UnitOfMeasure unit_of_measure = 1;
2132
- * @return {?proto.UnitOfMeasure}
2133
- */
2134
- proto.UpdateUnitOfMeasureResponse.prototype.getUnitOfMeasure = function() {
2135
- return /** @type{?proto.UnitOfMeasure} */ (
2136
- jspb.Message.getWrapperField(this, proto.UnitOfMeasure, 1));
2137
- };
2138
-
2139
-
2140
- /**
2141
- * @param {?proto.UnitOfMeasure|undefined} value
2142
- * @return {!proto.UpdateUnitOfMeasureResponse} returns this
2143
- */
2144
- proto.UpdateUnitOfMeasureResponse.prototype.setUnitOfMeasure = function(value) {
2145
- return jspb.Message.setWrapperField(this, 1, value);
2146
- };
2147
-
2148
-
2149
- /**
2150
- * Clears the message field making it undefined.
2151
- * @return {!proto.UpdateUnitOfMeasureResponse} returns this
2152
- */
2153
- proto.UpdateUnitOfMeasureResponse.prototype.clearUnitOfMeasure = function() {
2154
- return this.setUnitOfMeasure(undefined);
2155
- };
2156
-
2157
-
2158
- /**
2159
- * Returns whether this field is set.
2160
- * @return {boolean}
2161
- */
2162
- proto.UpdateUnitOfMeasureResponse.prototype.hasUnitOfMeasure = function() {
2163
- return jspb.Message.getField(this, 1) != null;
2164
- };
2165
-
2166
-
2167
- /**
2168
- * optional prisca.v1.global.meta.Meta meta = 2;
2169
- * @return {?proto.prisca.v1.global.meta.Meta}
2170
- */
2171
- proto.UpdateUnitOfMeasureResponse.prototype.getMeta = function() {
2172
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2173
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2174
- };
2175
-
2176
-
2177
- /**
2178
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2179
- * @return {!proto.UpdateUnitOfMeasureResponse} returns this
2180
- */
2181
- proto.UpdateUnitOfMeasureResponse.prototype.setMeta = function(value) {
2182
- return jspb.Message.setWrapperField(this, 2, value);
2183
- };
2184
-
2185
-
2186
- /**
2187
- * Clears the message field making it undefined.
2188
- * @return {!proto.UpdateUnitOfMeasureResponse} returns this
2189
- */
2190
- proto.UpdateUnitOfMeasureResponse.prototype.clearMeta = function() {
2191
- return this.setMeta(undefined);
2192
- };
2193
-
2194
-
2195
- /**
2196
- * Returns whether this field is set.
2197
- * @return {boolean}
2198
- */
2199
- proto.UpdateUnitOfMeasureResponse.prototype.hasMeta = function() {
2200
- return jspb.Message.getField(this, 2) != null;
2201
- };
2202
-
2203
-
2204
-
2205
- /**
2206
- * List of repeated fields within this message type.
2207
- * @private {!Array<number>}
2208
- * @const
2209
- */
2210
- proto.GetListUnitOfMeasureResponse.repeatedFields_ = [1];
2211
-
2212
-
2213
-
2214
- if (jspb.Message.GENERATE_TO_OBJECT) {
2215
- /**
2216
- * Creates an object representation of this proto.
2217
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2218
- * Optional fields that are not set will be set to undefined.
2219
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2220
- * For the list of reserved names please see:
2221
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2222
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2223
- * JSPB instance for transitional soy proto support:
2224
- * http://goto/soy-param-migration
2225
- * @return {!Object}
2226
- */
2227
- proto.GetListUnitOfMeasureResponse.prototype.toObject = function(opt_includeInstance) {
2228
- return proto.GetListUnitOfMeasureResponse.toObject(opt_includeInstance, this);
2229
- };
2230
-
2231
-
2232
- /**
2233
- * Static version of the {@see toObject} method.
2234
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2235
- * the JSPB instance for transitional soy proto support:
2236
- * http://goto/soy-param-migration
2237
- * @param {!proto.GetListUnitOfMeasureResponse} msg The msg instance to transform.
2238
- * @return {!Object}
2239
- * @suppress {unusedLocalVariables} f is only used for nested messages
2240
- */
2241
- proto.GetListUnitOfMeasureResponse.toObject = function(includeInstance, msg) {
2242
- var f, obj = {
2243
- unitOfMeasuresList: jspb.Message.toObjectList(msg.getUnitOfMeasuresList(),
2244
- proto.UnitOfMeasure.toObject, includeInstance),
2245
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2246
- };
2247
-
2248
- if (includeInstance) {
2249
- obj.$jspbMessageInstance = msg;
2250
- }
2251
- return obj;
2252
- };
2253
- }
2254
-
2255
-
2256
- /**
2257
- * Deserializes binary data (in protobuf wire format).
2258
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2259
- * @return {!proto.GetListUnitOfMeasureResponse}
2260
- */
2261
- proto.GetListUnitOfMeasureResponse.deserializeBinary = function(bytes) {
2262
- var reader = new jspb.BinaryReader(bytes);
2263
- var msg = new proto.GetListUnitOfMeasureResponse;
2264
- return proto.GetListUnitOfMeasureResponse.deserializeBinaryFromReader(msg, reader);
2265
- };
2266
-
2267
-
2268
- /**
2269
- * Deserializes binary data (in protobuf wire format) from the
2270
- * given reader into the given message object.
2271
- * @param {!proto.GetListUnitOfMeasureResponse} msg The message object to deserialize into.
2272
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2273
- * @return {!proto.GetListUnitOfMeasureResponse}
2274
- */
2275
- proto.GetListUnitOfMeasureResponse.deserializeBinaryFromReader = function(msg, reader) {
2276
- while (reader.nextField()) {
2277
- if (reader.isEndGroup()) {
2278
- break;
2279
- }
2280
- var field = reader.getFieldNumber();
2281
- switch (field) {
2282
- case 1:
2283
- var value = new proto.UnitOfMeasure;
2284
- reader.readMessage(value,proto.UnitOfMeasure.deserializeBinaryFromReader);
2285
- msg.addUnitOfMeasures(value);
2286
- break;
2287
- case 2:
2288
- var value = new prisca_v1_global_meta_meta_pb.Meta;
2289
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2290
- msg.setMeta(value);
2291
- break;
2292
- default:
2293
- reader.skipField();
2294
- break;
2295
- }
2296
- }
2297
- return msg;
2298
- };
2299
-
2300
-
2301
- /**
2302
- * Serializes the message to binary data (in protobuf wire format).
2303
- * @return {!Uint8Array}
2304
- */
2305
- proto.GetListUnitOfMeasureResponse.prototype.serializeBinary = function() {
2306
- var writer = new jspb.BinaryWriter();
2307
- proto.GetListUnitOfMeasureResponse.serializeBinaryToWriter(this, writer);
2308
- return writer.getResultBuffer();
2309
- };
2310
-
2311
-
2312
- /**
2313
- * Serializes the given message to binary data (in protobuf wire
2314
- * format), writing to the given BinaryWriter.
2315
- * @param {!proto.GetListUnitOfMeasureResponse} message
2316
- * @param {!jspb.BinaryWriter} writer
2317
- * @suppress {unusedLocalVariables} f is only used for nested messages
2318
- */
2319
- proto.GetListUnitOfMeasureResponse.serializeBinaryToWriter = function(message, writer) {
2320
- var f = undefined;
2321
- f = message.getUnitOfMeasuresList();
2322
- if (f.length > 0) {
2323
- writer.writeRepeatedMessage(
2324
- 1,
2325
- f,
2326
- proto.UnitOfMeasure.serializeBinaryToWriter
2327
- );
2328
- }
2329
- f = message.getMeta();
2330
- if (f != null) {
2331
- writer.writeMessage(
2332
- 2,
2333
- f,
2334
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2335
- );
2336
- }
2337
- };
2338
-
2339
-
2340
- /**
2341
- * repeated UnitOfMeasure unit_of_measures = 1;
2342
- * @return {!Array<!proto.UnitOfMeasure>}
2343
- */
2344
- proto.GetListUnitOfMeasureResponse.prototype.getUnitOfMeasuresList = function() {
2345
- return /** @type{!Array<!proto.UnitOfMeasure>} */ (
2346
- jspb.Message.getRepeatedWrapperField(this, proto.UnitOfMeasure, 1));
2347
- };
2348
-
2349
-
2350
- /**
2351
- * @param {!Array<!proto.UnitOfMeasure>} value
2352
- * @return {!proto.GetListUnitOfMeasureResponse} returns this
2353
- */
2354
- proto.GetListUnitOfMeasureResponse.prototype.setUnitOfMeasuresList = function(value) {
2355
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
2356
- };
2357
-
2358
-
2359
- /**
2360
- * @param {!proto.UnitOfMeasure=} opt_value
2361
- * @param {number=} opt_index
2362
- * @return {!proto.UnitOfMeasure}
2363
- */
2364
- proto.GetListUnitOfMeasureResponse.prototype.addUnitOfMeasures = function(opt_value, opt_index) {
2365
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.UnitOfMeasure, opt_index);
2366
- };
2367
-
2368
-
2369
- /**
2370
- * Clears the list making it empty but non-null.
2371
- * @return {!proto.GetListUnitOfMeasureResponse} returns this
2372
- */
2373
- proto.GetListUnitOfMeasureResponse.prototype.clearUnitOfMeasuresList = function() {
2374
- return this.setUnitOfMeasuresList([]);
2375
- };
2376
-
2377
-
2378
- /**
2379
- * optional prisca.v1.global.meta.Meta meta = 2;
2380
- * @return {?proto.prisca.v1.global.meta.Meta}
2381
- */
2382
- proto.GetListUnitOfMeasureResponse.prototype.getMeta = function() {
2383
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2384
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2385
- };
2386
-
2387
-
2388
- /**
2389
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2390
- * @return {!proto.GetListUnitOfMeasureResponse} returns this
2391
- */
2392
- proto.GetListUnitOfMeasureResponse.prototype.setMeta = function(value) {
2393
- return jspb.Message.setWrapperField(this, 2, value);
2394
- };
2395
-
2396
-
2397
- /**
2398
- * Clears the message field making it undefined.
2399
- * @return {!proto.GetListUnitOfMeasureResponse} returns this
2400
- */
2401
- proto.GetListUnitOfMeasureResponse.prototype.clearMeta = function() {
2402
- return this.setMeta(undefined);
2403
- };
2404
-
2405
-
2406
- /**
2407
- * Returns whether this field is set.
2408
- * @return {boolean}
2409
- */
2410
- proto.GetListUnitOfMeasureResponse.prototype.hasMeta = function() {
2411
- return jspb.Message.getField(this, 2) != null;
2412
- };
2413
-
2414
-
2415
-
2416
-
2417
-
2418
- if (jspb.Message.GENERATE_TO_OBJECT) {
2419
- /**
2420
- * Creates an object representation of this proto.
2421
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2422
- * Optional fields that are not set will be set to undefined.
2423
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2424
- * For the list of reserved names please see:
2425
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2426
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2427
- * JSPB instance for transitional soy proto support:
2428
- * http://goto/soy-param-migration
2429
- * @return {!Object}
2430
- */
2431
- proto.GetUnitOfMeasureByIdResponse.prototype.toObject = function(opt_includeInstance) {
2432
- return proto.GetUnitOfMeasureByIdResponse.toObject(opt_includeInstance, this);
2433
- };
2434
-
2435
-
2436
- /**
2437
- * Static version of the {@see toObject} method.
2438
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2439
- * the JSPB instance for transitional soy proto support:
2440
- * http://goto/soy-param-migration
2441
- * @param {!proto.GetUnitOfMeasureByIdResponse} msg The msg instance to transform.
2442
- * @return {!Object}
2443
- * @suppress {unusedLocalVariables} f is only used for nested messages
2444
- */
2445
- proto.GetUnitOfMeasureByIdResponse.toObject = function(includeInstance, msg) {
2446
- var f, obj = {
2447
- unitOfMeasure: (f = msg.getUnitOfMeasure()) && proto.UnitOfMeasure.toObject(includeInstance, f),
2448
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2449
- };
2450
-
2451
- if (includeInstance) {
2452
- obj.$jspbMessageInstance = msg;
2453
- }
2454
- return obj;
2455
- };
2456
- }
2457
-
2458
-
2459
- /**
2460
- * Deserializes binary data (in protobuf wire format).
2461
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2462
- * @return {!proto.GetUnitOfMeasureByIdResponse}
2463
- */
2464
- proto.GetUnitOfMeasureByIdResponse.deserializeBinary = function(bytes) {
2465
- var reader = new jspb.BinaryReader(bytes);
2466
- var msg = new proto.GetUnitOfMeasureByIdResponse;
2467
- return proto.GetUnitOfMeasureByIdResponse.deserializeBinaryFromReader(msg, reader);
2468
- };
2469
-
2470
-
2471
- /**
2472
- * Deserializes binary data (in protobuf wire format) from the
2473
- * given reader into the given message object.
2474
- * @param {!proto.GetUnitOfMeasureByIdResponse} msg The message object to deserialize into.
2475
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2476
- * @return {!proto.GetUnitOfMeasureByIdResponse}
2477
- */
2478
- proto.GetUnitOfMeasureByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
2479
- while (reader.nextField()) {
2480
- if (reader.isEndGroup()) {
2481
- break;
2482
- }
2483
- var field = reader.getFieldNumber();
2484
- switch (field) {
2485
- case 1:
2486
- var value = new proto.UnitOfMeasure;
2487
- reader.readMessage(value,proto.UnitOfMeasure.deserializeBinaryFromReader);
2488
- msg.setUnitOfMeasure(value);
2489
- break;
2490
- case 2:
2491
- var value = new prisca_v1_global_meta_meta_pb.Meta;
2492
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2493
- msg.setMeta(value);
2494
- break;
2495
- default:
2496
- reader.skipField();
2497
- break;
2498
- }
2499
- }
2500
- return msg;
2501
- };
2502
-
2503
-
2504
- /**
2505
- * Serializes the message to binary data (in protobuf wire format).
2506
- * @return {!Uint8Array}
2507
- */
2508
- proto.GetUnitOfMeasureByIdResponse.prototype.serializeBinary = function() {
2509
- var writer = new jspb.BinaryWriter();
2510
- proto.GetUnitOfMeasureByIdResponse.serializeBinaryToWriter(this, writer);
2511
- return writer.getResultBuffer();
2512
- };
2513
-
2514
-
2515
- /**
2516
- * Serializes the given message to binary data (in protobuf wire
2517
- * format), writing to the given BinaryWriter.
2518
- * @param {!proto.GetUnitOfMeasureByIdResponse} message
2519
- * @param {!jspb.BinaryWriter} writer
2520
- * @suppress {unusedLocalVariables} f is only used for nested messages
2521
- */
2522
- proto.GetUnitOfMeasureByIdResponse.serializeBinaryToWriter = function(message, writer) {
2523
- var f = undefined;
2524
- f = message.getUnitOfMeasure();
2525
- if (f != null) {
2526
- writer.writeMessage(
2527
- 1,
2528
- f,
2529
- proto.UnitOfMeasure.serializeBinaryToWriter
2530
- );
2531
- }
2532
- f = message.getMeta();
2533
- if (f != null) {
2534
- writer.writeMessage(
2535
- 2,
2536
- f,
2537
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2538
- );
2539
- }
2540
- };
2541
-
2542
-
2543
- /**
2544
- * optional UnitOfMeasure unit_of_measure = 1;
2545
- * @return {?proto.UnitOfMeasure}
2546
- */
2547
- proto.GetUnitOfMeasureByIdResponse.prototype.getUnitOfMeasure = function() {
2548
- return /** @type{?proto.UnitOfMeasure} */ (
2549
- jspb.Message.getWrapperField(this, proto.UnitOfMeasure, 1));
2550
- };
2551
-
2552
-
2553
- /**
2554
- * @param {?proto.UnitOfMeasure|undefined} value
2555
- * @return {!proto.GetUnitOfMeasureByIdResponse} returns this
2556
- */
2557
- proto.GetUnitOfMeasureByIdResponse.prototype.setUnitOfMeasure = function(value) {
2558
- return jspb.Message.setWrapperField(this, 1, value);
2559
- };
2560
-
2561
-
2562
- /**
2563
- * Clears the message field making it undefined.
2564
- * @return {!proto.GetUnitOfMeasureByIdResponse} returns this
2565
- */
2566
- proto.GetUnitOfMeasureByIdResponse.prototype.clearUnitOfMeasure = function() {
2567
- return this.setUnitOfMeasure(undefined);
2568
- };
2569
-
2570
-
2571
- /**
2572
- * Returns whether this field is set.
2573
- * @return {boolean}
2574
- */
2575
- proto.GetUnitOfMeasureByIdResponse.prototype.hasUnitOfMeasure = function() {
2576
- return jspb.Message.getField(this, 1) != null;
2577
- };
2578
-
2579
-
2580
- /**
2581
- * optional prisca.v1.global.meta.Meta meta = 2;
2582
- * @return {?proto.prisca.v1.global.meta.Meta}
2583
- */
2584
- proto.GetUnitOfMeasureByIdResponse.prototype.getMeta = function() {
2585
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2586
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2587
- };
2588
-
2589
-
2590
- /**
2591
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2592
- * @return {!proto.GetUnitOfMeasureByIdResponse} returns this
2593
- */
2594
- proto.GetUnitOfMeasureByIdResponse.prototype.setMeta = function(value) {
2595
- return jspb.Message.setWrapperField(this, 2, value);
2596
- };
2597
-
2598
-
2599
- /**
2600
- * Clears the message field making it undefined.
2601
- * @return {!proto.GetUnitOfMeasureByIdResponse} returns this
2602
- */
2603
- proto.GetUnitOfMeasureByIdResponse.prototype.clearMeta = function() {
2604
- return this.setMeta(undefined);
2605
- };
2606
-
2607
-
2608
- /**
2609
- * Returns whether this field is set.
2610
- * @return {boolean}
2611
- */
2612
- proto.GetUnitOfMeasureByIdResponse.prototype.hasMeta = function() {
2613
- return jspb.Message.getField(this, 2) != null;
2614
- };
2615
-
2616
-
2617
-
2618
-
2619
-
2620
- if (jspb.Message.GENERATE_TO_OBJECT) {
2621
- /**
2622
- * Creates an object representation of this proto.
2623
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2624
- * Optional fields that are not set will be set to undefined.
2625
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2626
- * For the list of reserved names please see:
2627
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2628
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2629
- * JSPB instance for transitional soy proto support:
2630
- * http://goto/soy-param-migration
2631
- * @return {!Object}
2632
- */
2633
- proto.DeleteUnitOfMeasureResponse.prototype.toObject = function(opt_includeInstance) {
2634
- return proto.DeleteUnitOfMeasureResponse.toObject(opt_includeInstance, this);
2635
- };
2636
-
2637
-
2638
- /**
2639
- * Static version of the {@see toObject} method.
2640
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2641
- * the JSPB instance for transitional soy proto support:
2642
- * http://goto/soy-param-migration
2643
- * @param {!proto.DeleteUnitOfMeasureResponse} msg The msg instance to transform.
2644
- * @return {!Object}
2645
- * @suppress {unusedLocalVariables} f is only used for nested messages
2646
- */
2647
- proto.DeleteUnitOfMeasureResponse.toObject = function(includeInstance, msg) {
2648
- var f, obj = {
2649
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2650
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2651
- };
2652
-
2653
- if (includeInstance) {
2654
- obj.$jspbMessageInstance = msg;
2655
- }
2656
- return obj;
2657
- };
2658
- }
2659
-
2660
-
2661
- /**
2662
- * Deserializes binary data (in protobuf wire format).
2663
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2664
- * @return {!proto.DeleteUnitOfMeasureResponse}
2665
- */
2666
- proto.DeleteUnitOfMeasureResponse.deserializeBinary = function(bytes) {
2667
- var reader = new jspb.BinaryReader(bytes);
2668
- var msg = new proto.DeleteUnitOfMeasureResponse;
2669
- return proto.DeleteUnitOfMeasureResponse.deserializeBinaryFromReader(msg, reader);
2670
- };
2671
-
2672
-
2673
- /**
2674
- * Deserializes binary data (in protobuf wire format) from the
2675
- * given reader into the given message object.
2676
- * @param {!proto.DeleteUnitOfMeasureResponse} msg The message object to deserialize into.
2677
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2678
- * @return {!proto.DeleteUnitOfMeasureResponse}
2679
- */
2680
- proto.DeleteUnitOfMeasureResponse.deserializeBinaryFromReader = function(msg, reader) {
2681
- while (reader.nextField()) {
2682
- if (reader.isEndGroup()) {
2683
- break;
2684
- }
2685
- var field = reader.getFieldNumber();
2686
- switch (field) {
2687
- case 1:
2688
- var value = /** @type {string} */ (reader.readString());
2689
- msg.setReferencesId(value);
2690
- break;
2691
- case 2:
2692
- var value = new prisca_v1_global_meta_meta_pb.Meta;
2693
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2694
- msg.setMeta(value);
2695
- break;
2696
- default:
2697
- reader.skipField();
2698
- break;
2699
- }
2700
- }
2701
- return msg;
2702
- };
2703
-
2704
-
2705
- /**
2706
- * Serializes the message to binary data (in protobuf wire format).
2707
- * @return {!Uint8Array}
2708
- */
2709
- proto.DeleteUnitOfMeasureResponse.prototype.serializeBinary = function() {
2710
- var writer = new jspb.BinaryWriter();
2711
- proto.DeleteUnitOfMeasureResponse.serializeBinaryToWriter(this, writer);
2712
- return writer.getResultBuffer();
2713
- };
2714
-
2715
-
2716
- /**
2717
- * Serializes the given message to binary data (in protobuf wire
2718
- * format), writing to the given BinaryWriter.
2719
- * @param {!proto.DeleteUnitOfMeasureResponse} message
2720
- * @param {!jspb.BinaryWriter} writer
2721
- * @suppress {unusedLocalVariables} f is only used for nested messages
2722
- */
2723
- proto.DeleteUnitOfMeasureResponse.serializeBinaryToWriter = function(message, writer) {
2724
- var f = undefined;
2725
- f = message.getReferencesId();
2726
- if (f.length > 0) {
2727
- writer.writeString(
2728
- 1,
2729
- f
2730
- );
2731
- }
2732
- f = message.getMeta();
2733
- if (f != null) {
2734
- writer.writeMessage(
2735
- 2,
2736
- f,
2737
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2738
- );
2739
- }
2740
- };
2741
-
2742
-
2743
- /**
2744
- * optional string references_id = 1;
2745
- * @return {string}
2746
- */
2747
- proto.DeleteUnitOfMeasureResponse.prototype.getReferencesId = function() {
2748
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2749
- };
2750
-
2751
-
2752
- /**
2753
- * @param {string} value
2754
- * @return {!proto.DeleteUnitOfMeasureResponse} returns this
2755
- */
2756
- proto.DeleteUnitOfMeasureResponse.prototype.setReferencesId = function(value) {
2757
- return jspb.Message.setProto3StringField(this, 1, value);
2758
- };
2759
-
2760
-
2761
- /**
2762
- * optional prisca.v1.global.meta.Meta meta = 2;
2763
- * @return {?proto.prisca.v1.global.meta.Meta}
2764
- */
2765
- proto.DeleteUnitOfMeasureResponse.prototype.getMeta = function() {
2766
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2767
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2768
- };
2769
-
2770
-
2771
- /**
2772
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2773
- * @return {!proto.DeleteUnitOfMeasureResponse} returns this
2774
- */
2775
- proto.DeleteUnitOfMeasureResponse.prototype.setMeta = function(value) {
2776
- return jspb.Message.setWrapperField(this, 2, value);
2777
- };
2778
-
2779
-
2780
- /**
2781
- * Clears the message field making it undefined.
2782
- * @return {!proto.DeleteUnitOfMeasureResponse} returns this
2783
- */
2784
- proto.DeleteUnitOfMeasureResponse.prototype.clearMeta = function() {
2785
- return this.setMeta(undefined);
2786
- };
2787
-
2788
-
2789
- /**
2790
- * Returns whether this field is set.
2791
- * @return {boolean}
2792
- */
2793
- proto.DeleteUnitOfMeasureResponse.prototype.hasMeta = function() {
2794
- return jspb.Message.getField(this, 2) != null;
2795
- };
2796
-
2797
-
2798
- goog.object.extend(exports, proto);