@aldiokta/protocgen 1.1.43 → 1.1.45

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