@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,1692 @@
1
+ // source: meshtrade/trading/limit_order/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_trading_limit_order_v1_limit_order_pb = require('../../../../meshtrade/trading/limit_order/v1/limit_order_pb.js');
29
+ goog.object.extend(proto, meshtrade_trading_limit_order_v1_limit_order_pb);
30
+ goog.exportSymbol('proto.meshtrade.trading.limit_order.v1.CancelLimitOrderRequest', null, global);
31
+ goog.exportSymbol('proto.meshtrade.trading.limit_order.v1.CreateLimitOrderRequest', null, global);
32
+ goog.exportSymbol('proto.meshtrade.trading.limit_order.v1.GetLimitOrderByExternalReferenceRequest', null, global);
33
+ goog.exportSymbol('proto.meshtrade.trading.limit_order.v1.GetLimitOrderRequest', null, global);
34
+ goog.exportSymbol('proto.meshtrade.trading.limit_order.v1.ListLimitOrdersRequest', null, global);
35
+ goog.exportSymbol('proto.meshtrade.trading.limit_order.v1.ListLimitOrdersResponse', null, global);
36
+ goog.exportSymbol('proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest', null, global);
37
+ goog.exportSymbol('proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.IdentifierCase', null, global);
38
+ goog.exportSymbol('proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest', null, global);
39
+ goog.exportSymbol('proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersResponse', null, global);
40
+ /**
41
+ * Generated by JsPbCodeGenerator.
42
+ * @param {Array=} opt_data Optional initial data array, typically from a
43
+ * server response, or constructed directly in Javascript. The array is used
44
+ * in place and becomes part of the constructed object. It is not cloned.
45
+ * If no data is provided, the constructed object will be empty, but still
46
+ * valid.
47
+ * @extends {jspb.Message}
48
+ * @constructor
49
+ */
50
+ proto.meshtrade.trading.limit_order.v1.CreateLimitOrderRequest = function(opt_data) {
51
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
52
+ };
53
+ goog.inherits(proto.meshtrade.trading.limit_order.v1.CreateLimitOrderRequest, jspb.Message);
54
+ if (goog.DEBUG && !COMPILED) {
55
+ /**
56
+ * @public
57
+ * @override
58
+ */
59
+ proto.meshtrade.trading.limit_order.v1.CreateLimitOrderRequest.displayName = 'proto.meshtrade.trading.limit_order.v1.CreateLimitOrderRequest';
60
+ }
61
+ /**
62
+ * Generated by JsPbCodeGenerator.
63
+ * @param {Array=} opt_data Optional initial data array, typically from a
64
+ * server response, or constructed directly in Javascript. The array is used
65
+ * in place and becomes part of the constructed object. It is not cloned.
66
+ * If no data is provided, the constructed object will be empty, but still
67
+ * valid.
68
+ * @extends {jspb.Message}
69
+ * @constructor
70
+ */
71
+ proto.meshtrade.trading.limit_order.v1.CancelLimitOrderRequest = function(opt_data) {
72
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
73
+ };
74
+ goog.inherits(proto.meshtrade.trading.limit_order.v1.CancelLimitOrderRequest, jspb.Message);
75
+ if (goog.DEBUG && !COMPILED) {
76
+ /**
77
+ * @public
78
+ * @override
79
+ */
80
+ proto.meshtrade.trading.limit_order.v1.CancelLimitOrderRequest.displayName = 'proto.meshtrade.trading.limit_order.v1.CancelLimitOrderRequest';
81
+ }
82
+ /**
83
+ * Generated by JsPbCodeGenerator.
84
+ * @param {Array=} opt_data Optional initial data array, typically from a
85
+ * server response, or constructed directly in Javascript. The array is used
86
+ * in place and becomes part of the constructed object. It is not cloned.
87
+ * If no data is provided, the constructed object will be empty, but still
88
+ * valid.
89
+ * @extends {jspb.Message}
90
+ * @constructor
91
+ */
92
+ proto.meshtrade.trading.limit_order.v1.GetLimitOrderRequest = function(opt_data) {
93
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
94
+ };
95
+ goog.inherits(proto.meshtrade.trading.limit_order.v1.GetLimitOrderRequest, jspb.Message);
96
+ if (goog.DEBUG && !COMPILED) {
97
+ /**
98
+ * @public
99
+ * @override
100
+ */
101
+ proto.meshtrade.trading.limit_order.v1.GetLimitOrderRequest.displayName = 'proto.meshtrade.trading.limit_order.v1.GetLimitOrderRequest';
102
+ }
103
+ /**
104
+ * Generated by JsPbCodeGenerator.
105
+ * @param {Array=} opt_data Optional initial data array, typically from a
106
+ * server response, or constructed directly in Javascript. The array is used
107
+ * in place and becomes part of the constructed object. It is not cloned.
108
+ * If no data is provided, the constructed object will be empty, but still
109
+ * valid.
110
+ * @extends {jspb.Message}
111
+ * @constructor
112
+ */
113
+ proto.meshtrade.trading.limit_order.v1.GetLimitOrderByExternalReferenceRequest = function(opt_data) {
114
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
115
+ };
116
+ goog.inherits(proto.meshtrade.trading.limit_order.v1.GetLimitOrderByExternalReferenceRequest, jspb.Message);
117
+ if (goog.DEBUG && !COMPILED) {
118
+ /**
119
+ * @public
120
+ * @override
121
+ */
122
+ proto.meshtrade.trading.limit_order.v1.GetLimitOrderByExternalReferenceRequest.displayName = 'proto.meshtrade.trading.limit_order.v1.GetLimitOrderByExternalReferenceRequest';
123
+ }
124
+ /**
125
+ * Generated by JsPbCodeGenerator.
126
+ * @param {Array=} opt_data Optional initial data array, typically from a
127
+ * server response, or constructed directly in Javascript. The array is used
128
+ * in place and becomes part of the constructed object. It is not cloned.
129
+ * If no data is provided, the constructed object will be empty, but still
130
+ * valid.
131
+ * @extends {jspb.Message}
132
+ * @constructor
133
+ */
134
+ proto.meshtrade.trading.limit_order.v1.ListLimitOrdersRequest = function(opt_data) {
135
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
136
+ };
137
+ goog.inherits(proto.meshtrade.trading.limit_order.v1.ListLimitOrdersRequest, jspb.Message);
138
+ if (goog.DEBUG && !COMPILED) {
139
+ /**
140
+ * @public
141
+ * @override
142
+ */
143
+ proto.meshtrade.trading.limit_order.v1.ListLimitOrdersRequest.displayName = 'proto.meshtrade.trading.limit_order.v1.ListLimitOrdersRequest';
144
+ }
145
+ /**
146
+ * Generated by JsPbCodeGenerator.
147
+ * @param {Array=} opt_data Optional initial data array, typically from a
148
+ * server response, or constructed directly in Javascript. The array is used
149
+ * in place and becomes part of the constructed object. It is not cloned.
150
+ * If no data is provided, the constructed object will be empty, but still
151
+ * valid.
152
+ * @extends {jspb.Message}
153
+ * @constructor
154
+ */
155
+ proto.meshtrade.trading.limit_order.v1.ListLimitOrdersResponse = function(opt_data) {
156
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.meshtrade.trading.limit_order.v1.ListLimitOrdersResponse.repeatedFields_, null);
157
+ };
158
+ goog.inherits(proto.meshtrade.trading.limit_order.v1.ListLimitOrdersResponse, jspb.Message);
159
+ if (goog.DEBUG && !COMPILED) {
160
+ /**
161
+ * @public
162
+ * @override
163
+ */
164
+ proto.meshtrade.trading.limit_order.v1.ListLimitOrdersResponse.displayName = 'proto.meshtrade.trading.limit_order.v1.ListLimitOrdersResponse';
165
+ }
166
+ /**
167
+ * Generated by JsPbCodeGenerator.
168
+ * @param {Array=} opt_data Optional initial data array, typically from a
169
+ * server response, or constructed directly in Javascript. The array is used
170
+ * in place and becomes part of the constructed object. It is not cloned.
171
+ * If no data is provided, the constructed object will be empty, but still
172
+ * valid.
173
+ * @extends {jspb.Message}
174
+ * @constructor
175
+ */
176
+ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest = function(opt_data) {
177
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
178
+ };
179
+ goog.inherits(proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest, jspb.Message);
180
+ if (goog.DEBUG && !COMPILED) {
181
+ /**
182
+ * @public
183
+ * @override
184
+ */
185
+ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest.displayName = 'proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest';
186
+ }
187
+ /**
188
+ * Generated by JsPbCodeGenerator.
189
+ * @param {Array=} opt_data Optional initial data array, typically from a
190
+ * server response, or constructed directly in Javascript. The array is used
191
+ * in place and becomes part of the constructed object. It is not cloned.
192
+ * If no data is provided, the constructed object will be empty, but still
193
+ * valid.
194
+ * @extends {jspb.Message}
195
+ * @constructor
196
+ */
197
+ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersResponse = function(opt_data) {
198
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersResponse.repeatedFields_, null);
199
+ };
200
+ goog.inherits(proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersResponse, jspb.Message);
201
+ if (goog.DEBUG && !COMPILED) {
202
+ /**
203
+ * @public
204
+ * @override
205
+ */
206
+ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersResponse.displayName = 'proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersResponse';
207
+ }
208
+ /**
209
+ * Generated by JsPbCodeGenerator.
210
+ * @param {Array=} opt_data Optional initial data array, typically from a
211
+ * server response, or constructed directly in Javascript. The array is used
212
+ * in place and becomes part of the constructed object. It is not cloned.
213
+ * If no data is provided, the constructed object will be empty, but still
214
+ * valid.
215
+ * @extends {jspb.Message}
216
+ * @constructor
217
+ */
218
+ proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest = function(opt_data) {
219
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.oneofGroups_);
220
+ };
221
+ goog.inherits(proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest, jspb.Message);
222
+ if (goog.DEBUG && !COMPILED) {
223
+ /**
224
+ * @public
225
+ * @override
226
+ */
227
+ proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.displayName = 'proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest';
228
+ }
229
+
230
+
231
+
232
+ if (jspb.Message.GENERATE_TO_OBJECT) {
233
+ /**
234
+ * Creates an object representation of this proto.
235
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
236
+ * Optional fields that are not set will be set to undefined.
237
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
238
+ * For the list of reserved names please see:
239
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
240
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
241
+ * JSPB instance for transitional soy proto support:
242
+ * http://goto/soy-param-migration
243
+ * @return {!Object}
244
+ */
245
+ proto.meshtrade.trading.limit_order.v1.CreateLimitOrderRequest.prototype.toObject = function(opt_includeInstance) {
246
+ return proto.meshtrade.trading.limit_order.v1.CreateLimitOrderRequest.toObject(opt_includeInstance, this);
247
+ };
248
+
249
+
250
+ /**
251
+ * Static version of the {@see toObject} method.
252
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
253
+ * the JSPB instance for transitional soy proto support:
254
+ * http://goto/soy-param-migration
255
+ * @param {!proto.meshtrade.trading.limit_order.v1.CreateLimitOrderRequest} msg The msg instance to transform.
256
+ * @return {!Object}
257
+ * @suppress {unusedLocalVariables} f is only used for nested messages
258
+ */
259
+ proto.meshtrade.trading.limit_order.v1.CreateLimitOrderRequest.toObject = function(includeInstance, msg) {
260
+ var f, obj = {
261
+ limitOrder: (f = msg.getLimitOrder()) && meshtrade_trading_limit_order_v1_limit_order_pb.LimitOrder.toObject(includeInstance, f)
262
+ };
263
+
264
+ if (includeInstance) {
265
+ obj.$jspbMessageInstance = msg;
266
+ }
267
+ return obj;
268
+ };
269
+ }
270
+
271
+
272
+ /**
273
+ * Deserializes binary data (in protobuf wire format).
274
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
275
+ * @return {!proto.meshtrade.trading.limit_order.v1.CreateLimitOrderRequest}
276
+ */
277
+ proto.meshtrade.trading.limit_order.v1.CreateLimitOrderRequest.deserializeBinary = function(bytes) {
278
+ var reader = new jspb.BinaryReader(bytes);
279
+ var msg = new proto.meshtrade.trading.limit_order.v1.CreateLimitOrderRequest;
280
+ return proto.meshtrade.trading.limit_order.v1.CreateLimitOrderRequest.deserializeBinaryFromReader(msg, reader);
281
+ };
282
+
283
+
284
+ /**
285
+ * Deserializes binary data (in protobuf wire format) from the
286
+ * given reader into the given message object.
287
+ * @param {!proto.meshtrade.trading.limit_order.v1.CreateLimitOrderRequest} msg The message object to deserialize into.
288
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
289
+ * @return {!proto.meshtrade.trading.limit_order.v1.CreateLimitOrderRequest}
290
+ */
291
+ proto.meshtrade.trading.limit_order.v1.CreateLimitOrderRequest.deserializeBinaryFromReader = function(msg, reader) {
292
+ while (reader.nextField()) {
293
+ if (reader.isEndGroup()) {
294
+ break;
295
+ }
296
+ var field = reader.getFieldNumber();
297
+ switch (field) {
298
+ case 1:
299
+ var value = new meshtrade_trading_limit_order_v1_limit_order_pb.LimitOrder;
300
+ reader.readMessage(value,meshtrade_trading_limit_order_v1_limit_order_pb.LimitOrder.deserializeBinaryFromReader);
301
+ msg.setLimitOrder(value);
302
+ break;
303
+ default:
304
+ reader.skipField();
305
+ break;
306
+ }
307
+ }
308
+ return msg;
309
+ };
310
+
311
+
312
+ /**
313
+ * Serializes the message to binary data (in protobuf wire format).
314
+ * @return {!Uint8Array}
315
+ */
316
+ proto.meshtrade.trading.limit_order.v1.CreateLimitOrderRequest.prototype.serializeBinary = function() {
317
+ var writer = new jspb.BinaryWriter();
318
+ proto.meshtrade.trading.limit_order.v1.CreateLimitOrderRequest.serializeBinaryToWriter(this, writer);
319
+ return writer.getResultBuffer();
320
+ };
321
+
322
+
323
+ /**
324
+ * Serializes the given message to binary data (in protobuf wire
325
+ * format), writing to the given BinaryWriter.
326
+ * @param {!proto.meshtrade.trading.limit_order.v1.CreateLimitOrderRequest} message
327
+ * @param {!jspb.BinaryWriter} writer
328
+ * @suppress {unusedLocalVariables} f is only used for nested messages
329
+ */
330
+ proto.meshtrade.trading.limit_order.v1.CreateLimitOrderRequest.serializeBinaryToWriter = function(message, writer) {
331
+ var f = undefined;
332
+ f = message.getLimitOrder();
333
+ if (f != null) {
334
+ writer.writeMessage(
335
+ 1,
336
+ f,
337
+ meshtrade_trading_limit_order_v1_limit_order_pb.LimitOrder.serializeBinaryToWriter
338
+ );
339
+ }
340
+ };
341
+
342
+
343
+ /**
344
+ * optional LimitOrder limit_order = 1;
345
+ * @return {?proto.meshtrade.trading.limit_order.v1.LimitOrder}
346
+ */
347
+ proto.meshtrade.trading.limit_order.v1.CreateLimitOrderRequest.prototype.getLimitOrder = function() {
348
+ return /** @type{?proto.meshtrade.trading.limit_order.v1.LimitOrder} */ (
349
+ jspb.Message.getWrapperField(this, meshtrade_trading_limit_order_v1_limit_order_pb.LimitOrder, 1));
350
+ };
351
+
352
+
353
+ /**
354
+ * @param {?proto.meshtrade.trading.limit_order.v1.LimitOrder|undefined} value
355
+ * @return {!proto.meshtrade.trading.limit_order.v1.CreateLimitOrderRequest} returns this
356
+ */
357
+ proto.meshtrade.trading.limit_order.v1.CreateLimitOrderRequest.prototype.setLimitOrder = function(value) {
358
+ return jspb.Message.setWrapperField(this, 1, value);
359
+ };
360
+
361
+
362
+ /**
363
+ * Clears the message field making it undefined.
364
+ * @return {!proto.meshtrade.trading.limit_order.v1.CreateLimitOrderRequest} returns this
365
+ */
366
+ proto.meshtrade.trading.limit_order.v1.CreateLimitOrderRequest.prototype.clearLimitOrder = function() {
367
+ return this.setLimitOrder(undefined);
368
+ };
369
+
370
+
371
+ /**
372
+ * Returns whether this field is set.
373
+ * @return {boolean}
374
+ */
375
+ proto.meshtrade.trading.limit_order.v1.CreateLimitOrderRequest.prototype.hasLimitOrder = function() {
376
+ return jspb.Message.getField(this, 1) != null;
377
+ };
378
+
379
+
380
+
381
+
382
+
383
+ if (jspb.Message.GENERATE_TO_OBJECT) {
384
+ /**
385
+ * Creates an object representation of this proto.
386
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
387
+ * Optional fields that are not set will be set to undefined.
388
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
389
+ * For the list of reserved names please see:
390
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
391
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
392
+ * JSPB instance for transitional soy proto support:
393
+ * http://goto/soy-param-migration
394
+ * @return {!Object}
395
+ */
396
+ proto.meshtrade.trading.limit_order.v1.CancelLimitOrderRequest.prototype.toObject = function(opt_includeInstance) {
397
+ return proto.meshtrade.trading.limit_order.v1.CancelLimitOrderRequest.toObject(opt_includeInstance, this);
398
+ };
399
+
400
+
401
+ /**
402
+ * Static version of the {@see toObject} method.
403
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
404
+ * the JSPB instance for transitional soy proto support:
405
+ * http://goto/soy-param-migration
406
+ * @param {!proto.meshtrade.trading.limit_order.v1.CancelLimitOrderRequest} msg The msg instance to transform.
407
+ * @return {!Object}
408
+ * @suppress {unusedLocalVariables} f is only used for nested messages
409
+ */
410
+ proto.meshtrade.trading.limit_order.v1.CancelLimitOrderRequest.toObject = function(includeInstance, msg) {
411
+ var f, obj = {
412
+ name: jspb.Message.getFieldWithDefault(msg, 1, "")
413
+ };
414
+
415
+ if (includeInstance) {
416
+ obj.$jspbMessageInstance = msg;
417
+ }
418
+ return obj;
419
+ };
420
+ }
421
+
422
+
423
+ /**
424
+ * Deserializes binary data (in protobuf wire format).
425
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
426
+ * @return {!proto.meshtrade.trading.limit_order.v1.CancelLimitOrderRequest}
427
+ */
428
+ proto.meshtrade.trading.limit_order.v1.CancelLimitOrderRequest.deserializeBinary = function(bytes) {
429
+ var reader = new jspb.BinaryReader(bytes);
430
+ var msg = new proto.meshtrade.trading.limit_order.v1.CancelLimitOrderRequest;
431
+ return proto.meshtrade.trading.limit_order.v1.CancelLimitOrderRequest.deserializeBinaryFromReader(msg, reader);
432
+ };
433
+
434
+
435
+ /**
436
+ * Deserializes binary data (in protobuf wire format) from the
437
+ * given reader into the given message object.
438
+ * @param {!proto.meshtrade.trading.limit_order.v1.CancelLimitOrderRequest} msg The message object to deserialize into.
439
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
440
+ * @return {!proto.meshtrade.trading.limit_order.v1.CancelLimitOrderRequest}
441
+ */
442
+ proto.meshtrade.trading.limit_order.v1.CancelLimitOrderRequest.deserializeBinaryFromReader = function(msg, reader) {
443
+ while (reader.nextField()) {
444
+ if (reader.isEndGroup()) {
445
+ break;
446
+ }
447
+ var field = reader.getFieldNumber();
448
+ switch (field) {
449
+ case 1:
450
+ var value = /** @type {string} */ (reader.readString());
451
+ msg.setName(value);
452
+ break;
453
+ default:
454
+ reader.skipField();
455
+ break;
456
+ }
457
+ }
458
+ return msg;
459
+ };
460
+
461
+
462
+ /**
463
+ * Serializes the message to binary data (in protobuf wire format).
464
+ * @return {!Uint8Array}
465
+ */
466
+ proto.meshtrade.trading.limit_order.v1.CancelLimitOrderRequest.prototype.serializeBinary = function() {
467
+ var writer = new jspb.BinaryWriter();
468
+ proto.meshtrade.trading.limit_order.v1.CancelLimitOrderRequest.serializeBinaryToWriter(this, writer);
469
+ return writer.getResultBuffer();
470
+ };
471
+
472
+
473
+ /**
474
+ * Serializes the given message to binary data (in protobuf wire
475
+ * format), writing to the given BinaryWriter.
476
+ * @param {!proto.meshtrade.trading.limit_order.v1.CancelLimitOrderRequest} message
477
+ * @param {!jspb.BinaryWriter} writer
478
+ * @suppress {unusedLocalVariables} f is only used for nested messages
479
+ */
480
+ proto.meshtrade.trading.limit_order.v1.CancelLimitOrderRequest.serializeBinaryToWriter = function(message, writer) {
481
+ var f = undefined;
482
+ f = message.getName();
483
+ if (f.length > 0) {
484
+ writer.writeString(
485
+ 1,
486
+ f
487
+ );
488
+ }
489
+ };
490
+
491
+
492
+ /**
493
+ * optional string name = 1;
494
+ * @return {string}
495
+ */
496
+ proto.meshtrade.trading.limit_order.v1.CancelLimitOrderRequest.prototype.getName = function() {
497
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
498
+ };
499
+
500
+
501
+ /**
502
+ * @param {string} value
503
+ * @return {!proto.meshtrade.trading.limit_order.v1.CancelLimitOrderRequest} returns this
504
+ */
505
+ proto.meshtrade.trading.limit_order.v1.CancelLimitOrderRequest.prototype.setName = function(value) {
506
+ return jspb.Message.setProto3StringField(this, 1, value);
507
+ };
508
+
509
+
510
+
511
+
512
+
513
+ if (jspb.Message.GENERATE_TO_OBJECT) {
514
+ /**
515
+ * Creates an object representation of this proto.
516
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
517
+ * Optional fields that are not set will be set to undefined.
518
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
519
+ * For the list of reserved names please see:
520
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
521
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
522
+ * JSPB instance for transitional soy proto support:
523
+ * http://goto/soy-param-migration
524
+ * @return {!Object}
525
+ */
526
+ proto.meshtrade.trading.limit_order.v1.GetLimitOrderRequest.prototype.toObject = function(opt_includeInstance) {
527
+ return proto.meshtrade.trading.limit_order.v1.GetLimitOrderRequest.toObject(opt_includeInstance, this);
528
+ };
529
+
530
+
531
+ /**
532
+ * Static version of the {@see toObject} method.
533
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
534
+ * the JSPB instance for transitional soy proto support:
535
+ * http://goto/soy-param-migration
536
+ * @param {!proto.meshtrade.trading.limit_order.v1.GetLimitOrderRequest} msg The msg instance to transform.
537
+ * @return {!Object}
538
+ * @suppress {unusedLocalVariables} f is only used for nested messages
539
+ */
540
+ proto.meshtrade.trading.limit_order.v1.GetLimitOrderRequest.toObject = function(includeInstance, msg) {
541
+ var f, obj = {
542
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
543
+ liveLedgerData: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
544
+ };
545
+
546
+ if (includeInstance) {
547
+ obj.$jspbMessageInstance = msg;
548
+ }
549
+ return obj;
550
+ };
551
+ }
552
+
553
+
554
+ /**
555
+ * Deserializes binary data (in protobuf wire format).
556
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
557
+ * @return {!proto.meshtrade.trading.limit_order.v1.GetLimitOrderRequest}
558
+ */
559
+ proto.meshtrade.trading.limit_order.v1.GetLimitOrderRequest.deserializeBinary = function(bytes) {
560
+ var reader = new jspb.BinaryReader(bytes);
561
+ var msg = new proto.meshtrade.trading.limit_order.v1.GetLimitOrderRequest;
562
+ return proto.meshtrade.trading.limit_order.v1.GetLimitOrderRequest.deserializeBinaryFromReader(msg, reader);
563
+ };
564
+
565
+
566
+ /**
567
+ * Deserializes binary data (in protobuf wire format) from the
568
+ * given reader into the given message object.
569
+ * @param {!proto.meshtrade.trading.limit_order.v1.GetLimitOrderRequest} msg The message object to deserialize into.
570
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
571
+ * @return {!proto.meshtrade.trading.limit_order.v1.GetLimitOrderRequest}
572
+ */
573
+ proto.meshtrade.trading.limit_order.v1.GetLimitOrderRequest.deserializeBinaryFromReader = function(msg, reader) {
574
+ while (reader.nextField()) {
575
+ if (reader.isEndGroup()) {
576
+ break;
577
+ }
578
+ var field = reader.getFieldNumber();
579
+ switch (field) {
580
+ case 1:
581
+ var value = /** @type {string} */ (reader.readString());
582
+ msg.setName(value);
583
+ break;
584
+ case 2:
585
+ var value = /** @type {boolean} */ (reader.readBool());
586
+ msg.setLiveLedgerData(value);
587
+ break;
588
+ default:
589
+ reader.skipField();
590
+ break;
591
+ }
592
+ }
593
+ return msg;
594
+ };
595
+
596
+
597
+ /**
598
+ * Serializes the message to binary data (in protobuf wire format).
599
+ * @return {!Uint8Array}
600
+ */
601
+ proto.meshtrade.trading.limit_order.v1.GetLimitOrderRequest.prototype.serializeBinary = function() {
602
+ var writer = new jspb.BinaryWriter();
603
+ proto.meshtrade.trading.limit_order.v1.GetLimitOrderRequest.serializeBinaryToWriter(this, writer);
604
+ return writer.getResultBuffer();
605
+ };
606
+
607
+
608
+ /**
609
+ * Serializes the given message to binary data (in protobuf wire
610
+ * format), writing to the given BinaryWriter.
611
+ * @param {!proto.meshtrade.trading.limit_order.v1.GetLimitOrderRequest} message
612
+ * @param {!jspb.BinaryWriter} writer
613
+ * @suppress {unusedLocalVariables} f is only used for nested messages
614
+ */
615
+ proto.meshtrade.trading.limit_order.v1.GetLimitOrderRequest.serializeBinaryToWriter = function(message, writer) {
616
+ var f = undefined;
617
+ f = message.getName();
618
+ if (f.length > 0) {
619
+ writer.writeString(
620
+ 1,
621
+ f
622
+ );
623
+ }
624
+ f = message.getLiveLedgerData();
625
+ if (f) {
626
+ writer.writeBool(
627
+ 2,
628
+ f
629
+ );
630
+ }
631
+ };
632
+
633
+
634
+ /**
635
+ * optional string name = 1;
636
+ * @return {string}
637
+ */
638
+ proto.meshtrade.trading.limit_order.v1.GetLimitOrderRequest.prototype.getName = function() {
639
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
640
+ };
641
+
642
+
643
+ /**
644
+ * @param {string} value
645
+ * @return {!proto.meshtrade.trading.limit_order.v1.GetLimitOrderRequest} returns this
646
+ */
647
+ proto.meshtrade.trading.limit_order.v1.GetLimitOrderRequest.prototype.setName = function(value) {
648
+ return jspb.Message.setProto3StringField(this, 1, value);
649
+ };
650
+
651
+
652
+ /**
653
+ * optional bool live_ledger_data = 2;
654
+ * @return {boolean}
655
+ */
656
+ proto.meshtrade.trading.limit_order.v1.GetLimitOrderRequest.prototype.getLiveLedgerData = function() {
657
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
658
+ };
659
+
660
+
661
+ /**
662
+ * @param {boolean} value
663
+ * @return {!proto.meshtrade.trading.limit_order.v1.GetLimitOrderRequest} returns this
664
+ */
665
+ proto.meshtrade.trading.limit_order.v1.GetLimitOrderRequest.prototype.setLiveLedgerData = function(value) {
666
+ return jspb.Message.setProto3BooleanField(this, 2, value);
667
+ };
668
+
669
+
670
+
671
+
672
+
673
+ if (jspb.Message.GENERATE_TO_OBJECT) {
674
+ /**
675
+ * Creates an object representation of this proto.
676
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
677
+ * Optional fields that are not set will be set to undefined.
678
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
679
+ * For the list of reserved names please see:
680
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
681
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
682
+ * JSPB instance for transitional soy proto support:
683
+ * http://goto/soy-param-migration
684
+ * @return {!Object}
685
+ */
686
+ proto.meshtrade.trading.limit_order.v1.GetLimitOrderByExternalReferenceRequest.prototype.toObject = function(opt_includeInstance) {
687
+ return proto.meshtrade.trading.limit_order.v1.GetLimitOrderByExternalReferenceRequest.toObject(opt_includeInstance, this);
688
+ };
689
+
690
+
691
+ /**
692
+ * Static version of the {@see toObject} method.
693
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
694
+ * the JSPB instance for transitional soy proto support:
695
+ * http://goto/soy-param-migration
696
+ * @param {!proto.meshtrade.trading.limit_order.v1.GetLimitOrderByExternalReferenceRequest} msg The msg instance to transform.
697
+ * @return {!Object}
698
+ * @suppress {unusedLocalVariables} f is only used for nested messages
699
+ */
700
+ proto.meshtrade.trading.limit_order.v1.GetLimitOrderByExternalReferenceRequest.toObject = function(includeInstance, msg) {
701
+ var f, obj = {
702
+ externalReference: jspb.Message.getFieldWithDefault(msg, 1, ""),
703
+ liveLedgerData: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
704
+ };
705
+
706
+ if (includeInstance) {
707
+ obj.$jspbMessageInstance = msg;
708
+ }
709
+ return obj;
710
+ };
711
+ }
712
+
713
+
714
+ /**
715
+ * Deserializes binary data (in protobuf wire format).
716
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
717
+ * @return {!proto.meshtrade.trading.limit_order.v1.GetLimitOrderByExternalReferenceRequest}
718
+ */
719
+ proto.meshtrade.trading.limit_order.v1.GetLimitOrderByExternalReferenceRequest.deserializeBinary = function(bytes) {
720
+ var reader = new jspb.BinaryReader(bytes);
721
+ var msg = new proto.meshtrade.trading.limit_order.v1.GetLimitOrderByExternalReferenceRequest;
722
+ return proto.meshtrade.trading.limit_order.v1.GetLimitOrderByExternalReferenceRequest.deserializeBinaryFromReader(msg, reader);
723
+ };
724
+
725
+
726
+ /**
727
+ * Deserializes binary data (in protobuf wire format) from the
728
+ * given reader into the given message object.
729
+ * @param {!proto.meshtrade.trading.limit_order.v1.GetLimitOrderByExternalReferenceRequest} msg The message object to deserialize into.
730
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
731
+ * @return {!proto.meshtrade.trading.limit_order.v1.GetLimitOrderByExternalReferenceRequest}
732
+ */
733
+ proto.meshtrade.trading.limit_order.v1.GetLimitOrderByExternalReferenceRequest.deserializeBinaryFromReader = function(msg, reader) {
734
+ while (reader.nextField()) {
735
+ if (reader.isEndGroup()) {
736
+ break;
737
+ }
738
+ var field = reader.getFieldNumber();
739
+ switch (field) {
740
+ case 1:
741
+ var value = /** @type {string} */ (reader.readString());
742
+ msg.setExternalReference(value);
743
+ break;
744
+ case 2:
745
+ var value = /** @type {boolean} */ (reader.readBool());
746
+ msg.setLiveLedgerData(value);
747
+ break;
748
+ default:
749
+ reader.skipField();
750
+ break;
751
+ }
752
+ }
753
+ return msg;
754
+ };
755
+
756
+
757
+ /**
758
+ * Serializes the message to binary data (in protobuf wire format).
759
+ * @return {!Uint8Array}
760
+ */
761
+ proto.meshtrade.trading.limit_order.v1.GetLimitOrderByExternalReferenceRequest.prototype.serializeBinary = function() {
762
+ var writer = new jspb.BinaryWriter();
763
+ proto.meshtrade.trading.limit_order.v1.GetLimitOrderByExternalReferenceRequest.serializeBinaryToWriter(this, writer);
764
+ return writer.getResultBuffer();
765
+ };
766
+
767
+
768
+ /**
769
+ * Serializes the given message to binary data (in protobuf wire
770
+ * format), writing to the given BinaryWriter.
771
+ * @param {!proto.meshtrade.trading.limit_order.v1.GetLimitOrderByExternalReferenceRequest} message
772
+ * @param {!jspb.BinaryWriter} writer
773
+ * @suppress {unusedLocalVariables} f is only used for nested messages
774
+ */
775
+ proto.meshtrade.trading.limit_order.v1.GetLimitOrderByExternalReferenceRequest.serializeBinaryToWriter = function(message, writer) {
776
+ var f = undefined;
777
+ f = message.getExternalReference();
778
+ if (f.length > 0) {
779
+ writer.writeString(
780
+ 1,
781
+ f
782
+ );
783
+ }
784
+ f = message.getLiveLedgerData();
785
+ if (f) {
786
+ writer.writeBool(
787
+ 2,
788
+ f
789
+ );
790
+ }
791
+ };
792
+
793
+
794
+ /**
795
+ * optional string external_reference = 1;
796
+ * @return {string}
797
+ */
798
+ proto.meshtrade.trading.limit_order.v1.GetLimitOrderByExternalReferenceRequest.prototype.getExternalReference = function() {
799
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
800
+ };
801
+
802
+
803
+ /**
804
+ * @param {string} value
805
+ * @return {!proto.meshtrade.trading.limit_order.v1.GetLimitOrderByExternalReferenceRequest} returns this
806
+ */
807
+ proto.meshtrade.trading.limit_order.v1.GetLimitOrderByExternalReferenceRequest.prototype.setExternalReference = function(value) {
808
+ return jspb.Message.setProto3StringField(this, 1, value);
809
+ };
810
+
811
+
812
+ /**
813
+ * optional bool live_ledger_data = 2;
814
+ * @return {boolean}
815
+ */
816
+ proto.meshtrade.trading.limit_order.v1.GetLimitOrderByExternalReferenceRequest.prototype.getLiveLedgerData = function() {
817
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
818
+ };
819
+
820
+
821
+ /**
822
+ * @param {boolean} value
823
+ * @return {!proto.meshtrade.trading.limit_order.v1.GetLimitOrderByExternalReferenceRequest} returns this
824
+ */
825
+ proto.meshtrade.trading.limit_order.v1.GetLimitOrderByExternalReferenceRequest.prototype.setLiveLedgerData = function(value) {
826
+ return jspb.Message.setProto3BooleanField(this, 2, value);
827
+ };
828
+
829
+
830
+
831
+
832
+
833
+ if (jspb.Message.GENERATE_TO_OBJECT) {
834
+ /**
835
+ * Creates an object representation of this proto.
836
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
837
+ * Optional fields that are not set will be set to undefined.
838
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
839
+ * For the list of reserved names please see:
840
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
841
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
842
+ * JSPB instance for transitional soy proto support:
843
+ * http://goto/soy-param-migration
844
+ * @return {!Object}
845
+ */
846
+ proto.meshtrade.trading.limit_order.v1.ListLimitOrdersRequest.prototype.toObject = function(opt_includeInstance) {
847
+ return proto.meshtrade.trading.limit_order.v1.ListLimitOrdersRequest.toObject(opt_includeInstance, this);
848
+ };
849
+
850
+
851
+ /**
852
+ * Static version of the {@see toObject} method.
853
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
854
+ * the JSPB instance for transitional soy proto support:
855
+ * http://goto/soy-param-migration
856
+ * @param {!proto.meshtrade.trading.limit_order.v1.ListLimitOrdersRequest} msg The msg instance to transform.
857
+ * @return {!Object}
858
+ * @suppress {unusedLocalVariables} f is only used for nested messages
859
+ */
860
+ proto.meshtrade.trading.limit_order.v1.ListLimitOrdersRequest.toObject = function(includeInstance, msg) {
861
+ var f, obj = {
862
+ liveLedgerData: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
863
+ };
864
+
865
+ if (includeInstance) {
866
+ obj.$jspbMessageInstance = msg;
867
+ }
868
+ return obj;
869
+ };
870
+ }
871
+
872
+
873
+ /**
874
+ * Deserializes binary data (in protobuf wire format).
875
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
876
+ * @return {!proto.meshtrade.trading.limit_order.v1.ListLimitOrdersRequest}
877
+ */
878
+ proto.meshtrade.trading.limit_order.v1.ListLimitOrdersRequest.deserializeBinary = function(bytes) {
879
+ var reader = new jspb.BinaryReader(bytes);
880
+ var msg = new proto.meshtrade.trading.limit_order.v1.ListLimitOrdersRequest;
881
+ return proto.meshtrade.trading.limit_order.v1.ListLimitOrdersRequest.deserializeBinaryFromReader(msg, reader);
882
+ };
883
+
884
+
885
+ /**
886
+ * Deserializes binary data (in protobuf wire format) from the
887
+ * given reader into the given message object.
888
+ * @param {!proto.meshtrade.trading.limit_order.v1.ListLimitOrdersRequest} msg The message object to deserialize into.
889
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
890
+ * @return {!proto.meshtrade.trading.limit_order.v1.ListLimitOrdersRequest}
891
+ */
892
+ proto.meshtrade.trading.limit_order.v1.ListLimitOrdersRequest.deserializeBinaryFromReader = function(msg, reader) {
893
+ while (reader.nextField()) {
894
+ if (reader.isEndGroup()) {
895
+ break;
896
+ }
897
+ var field = reader.getFieldNumber();
898
+ switch (field) {
899
+ case 1:
900
+ var value = /** @type {boolean} */ (reader.readBool());
901
+ msg.setLiveLedgerData(value);
902
+ break;
903
+ default:
904
+ reader.skipField();
905
+ break;
906
+ }
907
+ }
908
+ return msg;
909
+ };
910
+
911
+
912
+ /**
913
+ * Serializes the message to binary data (in protobuf wire format).
914
+ * @return {!Uint8Array}
915
+ */
916
+ proto.meshtrade.trading.limit_order.v1.ListLimitOrdersRequest.prototype.serializeBinary = function() {
917
+ var writer = new jspb.BinaryWriter();
918
+ proto.meshtrade.trading.limit_order.v1.ListLimitOrdersRequest.serializeBinaryToWriter(this, writer);
919
+ return writer.getResultBuffer();
920
+ };
921
+
922
+
923
+ /**
924
+ * Serializes the given message to binary data (in protobuf wire
925
+ * format), writing to the given BinaryWriter.
926
+ * @param {!proto.meshtrade.trading.limit_order.v1.ListLimitOrdersRequest} message
927
+ * @param {!jspb.BinaryWriter} writer
928
+ * @suppress {unusedLocalVariables} f is only used for nested messages
929
+ */
930
+ proto.meshtrade.trading.limit_order.v1.ListLimitOrdersRequest.serializeBinaryToWriter = function(message, writer) {
931
+ var f = undefined;
932
+ f = message.getLiveLedgerData();
933
+ if (f) {
934
+ writer.writeBool(
935
+ 1,
936
+ f
937
+ );
938
+ }
939
+ };
940
+
941
+
942
+ /**
943
+ * optional bool live_ledger_data = 1;
944
+ * @return {boolean}
945
+ */
946
+ proto.meshtrade.trading.limit_order.v1.ListLimitOrdersRequest.prototype.getLiveLedgerData = function() {
947
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
948
+ };
949
+
950
+
951
+ /**
952
+ * @param {boolean} value
953
+ * @return {!proto.meshtrade.trading.limit_order.v1.ListLimitOrdersRequest} returns this
954
+ */
955
+ proto.meshtrade.trading.limit_order.v1.ListLimitOrdersRequest.prototype.setLiveLedgerData = function(value) {
956
+ return jspb.Message.setProto3BooleanField(this, 1, value);
957
+ };
958
+
959
+
960
+
961
+ /**
962
+ * List of repeated fields within this message type.
963
+ * @private {!Array<number>}
964
+ * @const
965
+ */
966
+ proto.meshtrade.trading.limit_order.v1.ListLimitOrdersResponse.repeatedFields_ = [1];
967
+
968
+
969
+
970
+ if (jspb.Message.GENERATE_TO_OBJECT) {
971
+ /**
972
+ * Creates an object representation of this proto.
973
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
974
+ * Optional fields that are not set will be set to undefined.
975
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
976
+ * For the list of reserved names please see:
977
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
978
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
979
+ * JSPB instance for transitional soy proto support:
980
+ * http://goto/soy-param-migration
981
+ * @return {!Object}
982
+ */
983
+ proto.meshtrade.trading.limit_order.v1.ListLimitOrdersResponse.prototype.toObject = function(opt_includeInstance) {
984
+ return proto.meshtrade.trading.limit_order.v1.ListLimitOrdersResponse.toObject(opt_includeInstance, this);
985
+ };
986
+
987
+
988
+ /**
989
+ * Static version of the {@see toObject} method.
990
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
991
+ * the JSPB instance for transitional soy proto support:
992
+ * http://goto/soy-param-migration
993
+ * @param {!proto.meshtrade.trading.limit_order.v1.ListLimitOrdersResponse} msg The msg instance to transform.
994
+ * @return {!Object}
995
+ * @suppress {unusedLocalVariables} f is only used for nested messages
996
+ */
997
+ proto.meshtrade.trading.limit_order.v1.ListLimitOrdersResponse.toObject = function(includeInstance, msg) {
998
+ var f, obj = {
999
+ limitOrdersList: jspb.Message.toObjectList(msg.getLimitOrdersList(),
1000
+ meshtrade_trading_limit_order_v1_limit_order_pb.LimitOrder.toObject, includeInstance)
1001
+ };
1002
+
1003
+ if (includeInstance) {
1004
+ obj.$jspbMessageInstance = msg;
1005
+ }
1006
+ return obj;
1007
+ };
1008
+ }
1009
+
1010
+
1011
+ /**
1012
+ * Deserializes binary data (in protobuf wire format).
1013
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1014
+ * @return {!proto.meshtrade.trading.limit_order.v1.ListLimitOrdersResponse}
1015
+ */
1016
+ proto.meshtrade.trading.limit_order.v1.ListLimitOrdersResponse.deserializeBinary = function(bytes) {
1017
+ var reader = new jspb.BinaryReader(bytes);
1018
+ var msg = new proto.meshtrade.trading.limit_order.v1.ListLimitOrdersResponse;
1019
+ return proto.meshtrade.trading.limit_order.v1.ListLimitOrdersResponse.deserializeBinaryFromReader(msg, reader);
1020
+ };
1021
+
1022
+
1023
+ /**
1024
+ * Deserializes binary data (in protobuf wire format) from the
1025
+ * given reader into the given message object.
1026
+ * @param {!proto.meshtrade.trading.limit_order.v1.ListLimitOrdersResponse} msg The message object to deserialize into.
1027
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1028
+ * @return {!proto.meshtrade.trading.limit_order.v1.ListLimitOrdersResponse}
1029
+ */
1030
+ proto.meshtrade.trading.limit_order.v1.ListLimitOrdersResponse.deserializeBinaryFromReader = function(msg, reader) {
1031
+ while (reader.nextField()) {
1032
+ if (reader.isEndGroup()) {
1033
+ break;
1034
+ }
1035
+ var field = reader.getFieldNumber();
1036
+ switch (field) {
1037
+ case 1:
1038
+ var value = new meshtrade_trading_limit_order_v1_limit_order_pb.LimitOrder;
1039
+ reader.readMessage(value,meshtrade_trading_limit_order_v1_limit_order_pb.LimitOrder.deserializeBinaryFromReader);
1040
+ msg.addLimitOrders(value);
1041
+ break;
1042
+ default:
1043
+ reader.skipField();
1044
+ break;
1045
+ }
1046
+ }
1047
+ return msg;
1048
+ };
1049
+
1050
+
1051
+ /**
1052
+ * Serializes the message to binary data (in protobuf wire format).
1053
+ * @return {!Uint8Array}
1054
+ */
1055
+ proto.meshtrade.trading.limit_order.v1.ListLimitOrdersResponse.prototype.serializeBinary = function() {
1056
+ var writer = new jspb.BinaryWriter();
1057
+ proto.meshtrade.trading.limit_order.v1.ListLimitOrdersResponse.serializeBinaryToWriter(this, writer);
1058
+ return writer.getResultBuffer();
1059
+ };
1060
+
1061
+
1062
+ /**
1063
+ * Serializes the given message to binary data (in protobuf wire
1064
+ * format), writing to the given BinaryWriter.
1065
+ * @param {!proto.meshtrade.trading.limit_order.v1.ListLimitOrdersResponse} message
1066
+ * @param {!jspb.BinaryWriter} writer
1067
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1068
+ */
1069
+ proto.meshtrade.trading.limit_order.v1.ListLimitOrdersResponse.serializeBinaryToWriter = function(message, writer) {
1070
+ var f = undefined;
1071
+ f = message.getLimitOrdersList();
1072
+ if (f.length > 0) {
1073
+ writer.writeRepeatedMessage(
1074
+ 1,
1075
+ f,
1076
+ meshtrade_trading_limit_order_v1_limit_order_pb.LimitOrder.serializeBinaryToWriter
1077
+ );
1078
+ }
1079
+ };
1080
+
1081
+
1082
+ /**
1083
+ * repeated LimitOrder limit_orders = 1;
1084
+ * @return {!Array<!proto.meshtrade.trading.limit_order.v1.LimitOrder>}
1085
+ */
1086
+ proto.meshtrade.trading.limit_order.v1.ListLimitOrdersResponse.prototype.getLimitOrdersList = function() {
1087
+ return /** @type{!Array<!proto.meshtrade.trading.limit_order.v1.LimitOrder>} */ (
1088
+ jspb.Message.getRepeatedWrapperField(this, meshtrade_trading_limit_order_v1_limit_order_pb.LimitOrder, 1));
1089
+ };
1090
+
1091
+
1092
+ /**
1093
+ * @param {!Array<!proto.meshtrade.trading.limit_order.v1.LimitOrder>} value
1094
+ * @return {!proto.meshtrade.trading.limit_order.v1.ListLimitOrdersResponse} returns this
1095
+ */
1096
+ proto.meshtrade.trading.limit_order.v1.ListLimitOrdersResponse.prototype.setLimitOrdersList = function(value) {
1097
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1098
+ };
1099
+
1100
+
1101
+ /**
1102
+ * @param {!proto.meshtrade.trading.limit_order.v1.LimitOrder=} opt_value
1103
+ * @param {number=} opt_index
1104
+ * @return {!proto.meshtrade.trading.limit_order.v1.LimitOrder}
1105
+ */
1106
+ proto.meshtrade.trading.limit_order.v1.ListLimitOrdersResponse.prototype.addLimitOrders = function(opt_value, opt_index) {
1107
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.meshtrade.trading.limit_order.v1.LimitOrder, opt_index);
1108
+ };
1109
+
1110
+
1111
+ /**
1112
+ * Clears the list making it empty but non-null.
1113
+ * @return {!proto.meshtrade.trading.limit_order.v1.ListLimitOrdersResponse} returns this
1114
+ */
1115
+ proto.meshtrade.trading.limit_order.v1.ListLimitOrdersResponse.prototype.clearLimitOrdersList = function() {
1116
+ return this.setLimitOrdersList([]);
1117
+ };
1118
+
1119
+
1120
+
1121
+
1122
+
1123
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1124
+ /**
1125
+ * Creates an object representation of this proto.
1126
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1127
+ * Optional fields that are not set will be set to undefined.
1128
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1129
+ * For the list of reserved names please see:
1130
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1131
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1132
+ * JSPB instance for transitional soy proto support:
1133
+ * http://goto/soy-param-migration
1134
+ * @return {!Object}
1135
+ */
1136
+ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest.prototype.toObject = function(opt_includeInstance) {
1137
+ return proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest.toObject(opt_includeInstance, this);
1138
+ };
1139
+
1140
+
1141
+ /**
1142
+ * Static version of the {@see toObject} method.
1143
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1144
+ * the JSPB instance for transitional soy proto support:
1145
+ * http://goto/soy-param-migration
1146
+ * @param {!proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest} msg The msg instance to transform.
1147
+ * @return {!Object}
1148
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1149
+ */
1150
+ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest.toObject = function(includeInstance, msg) {
1151
+ var f, obj = {
1152
+ token: jspb.Message.getFieldWithDefault(msg, 1, ""),
1153
+ account: jspb.Message.getFieldWithDefault(msg, 2, ""),
1154
+ liveLedgerData: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
1155
+ };
1156
+
1157
+ if (includeInstance) {
1158
+ obj.$jspbMessageInstance = msg;
1159
+ }
1160
+ return obj;
1161
+ };
1162
+ }
1163
+
1164
+
1165
+ /**
1166
+ * Deserializes binary data (in protobuf wire format).
1167
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1168
+ * @return {!proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest}
1169
+ */
1170
+ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest.deserializeBinary = function(bytes) {
1171
+ var reader = new jspb.BinaryReader(bytes);
1172
+ var msg = new proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest;
1173
+ return proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest.deserializeBinaryFromReader(msg, reader);
1174
+ };
1175
+
1176
+
1177
+ /**
1178
+ * Deserializes binary data (in protobuf wire format) from the
1179
+ * given reader into the given message object.
1180
+ * @param {!proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest} msg The message object to deserialize into.
1181
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1182
+ * @return {!proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest}
1183
+ */
1184
+ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest.deserializeBinaryFromReader = function(msg, reader) {
1185
+ while (reader.nextField()) {
1186
+ if (reader.isEndGroup()) {
1187
+ break;
1188
+ }
1189
+ var field = reader.getFieldNumber();
1190
+ switch (field) {
1191
+ case 1:
1192
+ var value = /** @type {string} */ (reader.readString());
1193
+ msg.setToken(value);
1194
+ break;
1195
+ case 2:
1196
+ var value = /** @type {string} */ (reader.readString());
1197
+ msg.setAccount(value);
1198
+ break;
1199
+ case 3:
1200
+ var value = /** @type {boolean} */ (reader.readBool());
1201
+ msg.setLiveLedgerData(value);
1202
+ break;
1203
+ default:
1204
+ reader.skipField();
1205
+ break;
1206
+ }
1207
+ }
1208
+ return msg;
1209
+ };
1210
+
1211
+
1212
+ /**
1213
+ * Serializes the message to binary data (in protobuf wire format).
1214
+ * @return {!Uint8Array}
1215
+ */
1216
+ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest.prototype.serializeBinary = function() {
1217
+ var writer = new jspb.BinaryWriter();
1218
+ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest.serializeBinaryToWriter(this, writer);
1219
+ return writer.getResultBuffer();
1220
+ };
1221
+
1222
+
1223
+ /**
1224
+ * Serializes the given message to binary data (in protobuf wire
1225
+ * format), writing to the given BinaryWriter.
1226
+ * @param {!proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest} message
1227
+ * @param {!jspb.BinaryWriter} writer
1228
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1229
+ */
1230
+ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest.serializeBinaryToWriter = function(message, writer) {
1231
+ var f = undefined;
1232
+ f = message.getToken();
1233
+ if (f.length > 0) {
1234
+ writer.writeString(
1235
+ 1,
1236
+ f
1237
+ );
1238
+ }
1239
+ f = message.getAccount();
1240
+ if (f.length > 0) {
1241
+ writer.writeString(
1242
+ 2,
1243
+ f
1244
+ );
1245
+ }
1246
+ f = message.getLiveLedgerData();
1247
+ if (f) {
1248
+ writer.writeBool(
1249
+ 3,
1250
+ f
1251
+ );
1252
+ }
1253
+ };
1254
+
1255
+
1256
+ /**
1257
+ * optional string token = 1;
1258
+ * @return {string}
1259
+ */
1260
+ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest.prototype.getToken = function() {
1261
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1262
+ };
1263
+
1264
+
1265
+ /**
1266
+ * @param {string} value
1267
+ * @return {!proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest} returns this
1268
+ */
1269
+ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest.prototype.setToken = function(value) {
1270
+ return jspb.Message.setProto3StringField(this, 1, value);
1271
+ };
1272
+
1273
+
1274
+ /**
1275
+ * optional string account = 2;
1276
+ * @return {string}
1277
+ */
1278
+ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest.prototype.getAccount = function() {
1279
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1280
+ };
1281
+
1282
+
1283
+ /**
1284
+ * @param {string} value
1285
+ * @return {!proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest} returns this
1286
+ */
1287
+ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest.prototype.setAccount = function(value) {
1288
+ return jspb.Message.setProto3StringField(this, 2, value);
1289
+ };
1290
+
1291
+
1292
+ /**
1293
+ * optional bool live_ledger_data = 3;
1294
+ * @return {boolean}
1295
+ */
1296
+ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest.prototype.getLiveLedgerData = function() {
1297
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
1298
+ };
1299
+
1300
+
1301
+ /**
1302
+ * @param {boolean} value
1303
+ * @return {!proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest} returns this
1304
+ */
1305
+ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest.prototype.setLiveLedgerData = function(value) {
1306
+ return jspb.Message.setProto3BooleanField(this, 3, value);
1307
+ };
1308
+
1309
+
1310
+
1311
+ /**
1312
+ * List of repeated fields within this message type.
1313
+ * @private {!Array<number>}
1314
+ * @const
1315
+ */
1316
+ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersResponse.repeatedFields_ = [1];
1317
+
1318
+
1319
+
1320
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1321
+ /**
1322
+ * Creates an object representation of this proto.
1323
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1324
+ * Optional fields that are not set will be set to undefined.
1325
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1326
+ * For the list of reserved names please see:
1327
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1328
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1329
+ * JSPB instance for transitional soy proto support:
1330
+ * http://goto/soy-param-migration
1331
+ * @return {!Object}
1332
+ */
1333
+ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersResponse.prototype.toObject = function(opt_includeInstance) {
1334
+ return proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersResponse.toObject(opt_includeInstance, this);
1335
+ };
1336
+
1337
+
1338
+ /**
1339
+ * Static version of the {@see toObject} method.
1340
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1341
+ * the JSPB instance for transitional soy proto support:
1342
+ * http://goto/soy-param-migration
1343
+ * @param {!proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersResponse} msg The msg instance to transform.
1344
+ * @return {!Object}
1345
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1346
+ */
1347
+ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersResponse.toObject = function(includeInstance, msg) {
1348
+ var f, obj = {
1349
+ limitOrdersList: jspb.Message.toObjectList(msg.getLimitOrdersList(),
1350
+ meshtrade_trading_limit_order_v1_limit_order_pb.LimitOrder.toObject, includeInstance)
1351
+ };
1352
+
1353
+ if (includeInstance) {
1354
+ obj.$jspbMessageInstance = msg;
1355
+ }
1356
+ return obj;
1357
+ };
1358
+ }
1359
+
1360
+
1361
+ /**
1362
+ * Deserializes binary data (in protobuf wire format).
1363
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1364
+ * @return {!proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersResponse}
1365
+ */
1366
+ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersResponse.deserializeBinary = function(bytes) {
1367
+ var reader = new jspb.BinaryReader(bytes);
1368
+ var msg = new proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersResponse;
1369
+ return proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersResponse.deserializeBinaryFromReader(msg, reader);
1370
+ };
1371
+
1372
+
1373
+ /**
1374
+ * Deserializes binary data (in protobuf wire format) from the
1375
+ * given reader into the given message object.
1376
+ * @param {!proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersResponse} msg The message object to deserialize into.
1377
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1378
+ * @return {!proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersResponse}
1379
+ */
1380
+ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersResponse.deserializeBinaryFromReader = function(msg, reader) {
1381
+ while (reader.nextField()) {
1382
+ if (reader.isEndGroup()) {
1383
+ break;
1384
+ }
1385
+ var field = reader.getFieldNumber();
1386
+ switch (field) {
1387
+ case 1:
1388
+ var value = new meshtrade_trading_limit_order_v1_limit_order_pb.LimitOrder;
1389
+ reader.readMessage(value,meshtrade_trading_limit_order_v1_limit_order_pb.LimitOrder.deserializeBinaryFromReader);
1390
+ msg.addLimitOrders(value);
1391
+ break;
1392
+ default:
1393
+ reader.skipField();
1394
+ break;
1395
+ }
1396
+ }
1397
+ return msg;
1398
+ };
1399
+
1400
+
1401
+ /**
1402
+ * Serializes the message to binary data (in protobuf wire format).
1403
+ * @return {!Uint8Array}
1404
+ */
1405
+ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersResponse.prototype.serializeBinary = function() {
1406
+ var writer = new jspb.BinaryWriter();
1407
+ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersResponse.serializeBinaryToWriter(this, writer);
1408
+ return writer.getResultBuffer();
1409
+ };
1410
+
1411
+
1412
+ /**
1413
+ * Serializes the given message to binary data (in protobuf wire
1414
+ * format), writing to the given BinaryWriter.
1415
+ * @param {!proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersResponse} message
1416
+ * @param {!jspb.BinaryWriter} writer
1417
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1418
+ */
1419
+ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersResponse.serializeBinaryToWriter = function(message, writer) {
1420
+ var f = undefined;
1421
+ f = message.getLimitOrdersList();
1422
+ if (f.length > 0) {
1423
+ writer.writeRepeatedMessage(
1424
+ 1,
1425
+ f,
1426
+ meshtrade_trading_limit_order_v1_limit_order_pb.LimitOrder.serializeBinaryToWriter
1427
+ );
1428
+ }
1429
+ };
1430
+
1431
+
1432
+ /**
1433
+ * repeated LimitOrder limit_orders = 1;
1434
+ * @return {!Array<!proto.meshtrade.trading.limit_order.v1.LimitOrder>}
1435
+ */
1436
+ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersResponse.prototype.getLimitOrdersList = function() {
1437
+ return /** @type{!Array<!proto.meshtrade.trading.limit_order.v1.LimitOrder>} */ (
1438
+ jspb.Message.getRepeatedWrapperField(this, meshtrade_trading_limit_order_v1_limit_order_pb.LimitOrder, 1));
1439
+ };
1440
+
1441
+
1442
+ /**
1443
+ * @param {!Array<!proto.meshtrade.trading.limit_order.v1.LimitOrder>} value
1444
+ * @return {!proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersResponse} returns this
1445
+ */
1446
+ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersResponse.prototype.setLimitOrdersList = function(value) {
1447
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1448
+ };
1449
+
1450
+
1451
+ /**
1452
+ * @param {!proto.meshtrade.trading.limit_order.v1.LimitOrder=} opt_value
1453
+ * @param {number=} opt_index
1454
+ * @return {!proto.meshtrade.trading.limit_order.v1.LimitOrder}
1455
+ */
1456
+ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersResponse.prototype.addLimitOrders = function(opt_value, opt_index) {
1457
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.meshtrade.trading.limit_order.v1.LimitOrder, opt_index);
1458
+ };
1459
+
1460
+
1461
+ /**
1462
+ * Clears the list making it empty but non-null.
1463
+ * @return {!proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersResponse} returns this
1464
+ */
1465
+ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersResponse.prototype.clearLimitOrdersList = function() {
1466
+ return this.setLimitOrdersList([]);
1467
+ };
1468
+
1469
+
1470
+
1471
+ /**
1472
+ * Oneof group definitions for this message. Each group defines the field
1473
+ * numbers belonging to that group. When of these fields' value is set, all
1474
+ * other fields in the group are cleared. During deserialization, if multiple
1475
+ * fields are encountered for a group, only the last value seen will be kept.
1476
+ * @private {!Array<!Array<number>>}
1477
+ * @const
1478
+ */
1479
+ proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.oneofGroups_ = [[1,2]];
1480
+
1481
+ /**
1482
+ * @enum {number}
1483
+ */
1484
+ proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.IdentifierCase = {
1485
+ IDENTIFIER_NOT_SET: 0,
1486
+ NAME: 1,
1487
+ EXTERNAL_REFERENCE: 2
1488
+ };
1489
+
1490
+ /**
1491
+ * @return {proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.IdentifierCase}
1492
+ */
1493
+ proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.prototype.getIdentifierCase = function() {
1494
+ return /** @type {proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.IdentifierCase} */(jspb.Message.computeOneofCase(this, proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.oneofGroups_[0]));
1495
+ };
1496
+
1497
+
1498
+
1499
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1500
+ /**
1501
+ * Creates an object representation of this proto.
1502
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1503
+ * Optional fields that are not set will be set to undefined.
1504
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1505
+ * For the list of reserved names please see:
1506
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1507
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1508
+ * JSPB instance for transitional soy proto support:
1509
+ * http://goto/soy-param-migration
1510
+ * @return {!Object}
1511
+ */
1512
+ proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.prototype.toObject = function(opt_includeInstance) {
1513
+ return proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.toObject(opt_includeInstance, this);
1514
+ };
1515
+
1516
+
1517
+ /**
1518
+ * Static version of the {@see toObject} method.
1519
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1520
+ * the JSPB instance for transitional soy proto support:
1521
+ * http://goto/soy-param-migration
1522
+ * @param {!proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest} msg The msg instance to transform.
1523
+ * @return {!Object}
1524
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1525
+ */
1526
+ proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.toObject = function(includeInstance, msg) {
1527
+ var f, obj = {
1528
+ name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
1529
+ externalReference: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f
1530
+ };
1531
+
1532
+ if (includeInstance) {
1533
+ obj.$jspbMessageInstance = msg;
1534
+ }
1535
+ return obj;
1536
+ };
1537
+ }
1538
+
1539
+
1540
+ /**
1541
+ * Deserializes binary data (in protobuf wire format).
1542
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1543
+ * @return {!proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest}
1544
+ */
1545
+ proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.deserializeBinary = function(bytes) {
1546
+ var reader = new jspb.BinaryReader(bytes);
1547
+ var msg = new proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest;
1548
+ return proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.deserializeBinaryFromReader(msg, reader);
1549
+ };
1550
+
1551
+
1552
+ /**
1553
+ * Deserializes binary data (in protobuf wire format) from the
1554
+ * given reader into the given message object.
1555
+ * @param {!proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest} msg The message object to deserialize into.
1556
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1557
+ * @return {!proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest}
1558
+ */
1559
+ proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.deserializeBinaryFromReader = function(msg, reader) {
1560
+ while (reader.nextField()) {
1561
+ if (reader.isEndGroup()) {
1562
+ break;
1563
+ }
1564
+ var field = reader.getFieldNumber();
1565
+ switch (field) {
1566
+ case 1:
1567
+ var value = /** @type {string} */ (reader.readString());
1568
+ msg.setName(value);
1569
+ break;
1570
+ case 2:
1571
+ var value = /** @type {string} */ (reader.readString());
1572
+ msg.setExternalReference(value);
1573
+ break;
1574
+ default:
1575
+ reader.skipField();
1576
+ break;
1577
+ }
1578
+ }
1579
+ return msg;
1580
+ };
1581
+
1582
+
1583
+ /**
1584
+ * Serializes the message to binary data (in protobuf wire format).
1585
+ * @return {!Uint8Array}
1586
+ */
1587
+ proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.prototype.serializeBinary = function() {
1588
+ var writer = new jspb.BinaryWriter();
1589
+ proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.serializeBinaryToWriter(this, writer);
1590
+ return writer.getResultBuffer();
1591
+ };
1592
+
1593
+
1594
+ /**
1595
+ * Serializes the given message to binary data (in protobuf wire
1596
+ * format), writing to the given BinaryWriter.
1597
+ * @param {!proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest} message
1598
+ * @param {!jspb.BinaryWriter} writer
1599
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1600
+ */
1601
+ proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.serializeBinaryToWriter = function(message, writer) {
1602
+ var f = undefined;
1603
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
1604
+ if (f != null) {
1605
+ writer.writeString(
1606
+ 1,
1607
+ f
1608
+ );
1609
+ }
1610
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
1611
+ if (f != null) {
1612
+ writer.writeString(
1613
+ 2,
1614
+ f
1615
+ );
1616
+ }
1617
+ };
1618
+
1619
+
1620
+ /**
1621
+ * optional string name = 1;
1622
+ * @return {string}
1623
+ */
1624
+ proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.prototype.getName = function() {
1625
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1626
+ };
1627
+
1628
+
1629
+ /**
1630
+ * @param {string} value
1631
+ * @return {!proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest} returns this
1632
+ */
1633
+ proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.prototype.setName = function(value) {
1634
+ return jspb.Message.setOneofField(this, 1, proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.oneofGroups_[0], value);
1635
+ };
1636
+
1637
+
1638
+ /**
1639
+ * Clears the field making it undefined.
1640
+ * @return {!proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest} returns this
1641
+ */
1642
+ proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.prototype.clearName = function() {
1643
+ return jspb.Message.setOneofField(this, 1, proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.oneofGroups_[0], undefined);
1644
+ };
1645
+
1646
+
1647
+ /**
1648
+ * Returns whether this field is set.
1649
+ * @return {boolean}
1650
+ */
1651
+ proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.prototype.hasName = function() {
1652
+ return jspb.Message.getField(this, 1) != null;
1653
+ };
1654
+
1655
+
1656
+ /**
1657
+ * optional string external_reference = 2;
1658
+ * @return {string}
1659
+ */
1660
+ proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.prototype.getExternalReference = function() {
1661
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1662
+ };
1663
+
1664
+
1665
+ /**
1666
+ * @param {string} value
1667
+ * @return {!proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest} returns this
1668
+ */
1669
+ proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.prototype.setExternalReference = function(value) {
1670
+ return jspb.Message.setOneofField(this, 2, proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.oneofGroups_[0], value);
1671
+ };
1672
+
1673
+
1674
+ /**
1675
+ * Clears the field making it undefined.
1676
+ * @return {!proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest} returns this
1677
+ */
1678
+ proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.prototype.clearExternalReference = function() {
1679
+ return jspb.Message.setOneofField(this, 2, proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.oneofGroups_[0], undefined);
1680
+ };
1681
+
1682
+
1683
+ /**
1684
+ * Returns whether this field is set.
1685
+ * @return {boolean}
1686
+ */
1687
+ proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.prototype.hasExternalReference = function() {
1688
+ return jspb.Message.getField(this, 2) != null;
1689
+ };
1690
+
1691
+
1692
+ goog.object.extend(exports, proto.meshtrade.trading.limit_order.v1);