@meshtrade/api-old 1.30.0

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