@aldiokta/protocgen 1.0.55 → 1.0.56

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