@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,1322 @@
1
+ // source: meshtrade/compliance/client/v1/company.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 google_type_date_pb = require('../../../../google/type/date_pb.js');
27
+ goog.object.extend(proto, google_type_date_pb);
28
+ var meshtrade_compliance_client_v1_company_representative_pb = require('../../../../meshtrade/compliance/client/v1/company_representative_pb.js');
29
+ goog.object.extend(proto, meshtrade_compliance_client_v1_company_representative_pb);
30
+ var meshtrade_compliance_client_v1_fund_pb = require('../../../../meshtrade/compliance/client/v1/fund_pb.js');
31
+ goog.object.extend(proto, meshtrade_compliance_client_v1_fund_pb);
32
+ var meshtrade_compliance_client_v1_industry_classification_pb = require('../../../../meshtrade/compliance/client/v1/industry_classification_pb.js');
33
+ goog.object.extend(proto, meshtrade_compliance_client_v1_industry_classification_pb);
34
+ var meshtrade_compliance_client_v1_natural_person_pb = require('../../../../meshtrade/compliance/client/v1/natural_person_pb.js');
35
+ goog.object.extend(proto, meshtrade_compliance_client_v1_natural_person_pb);
36
+ var meshtrade_compliance_client_v1_trust_pb = require('../../../../meshtrade/compliance/client/v1/trust_pb.js');
37
+ goog.object.extend(proto, meshtrade_compliance_client_v1_trust_pb);
38
+ var meshtrade_type_v1_address_pb = require('../../../../meshtrade/type/v1/address_pb.js');
39
+ goog.object.extend(proto, meshtrade_type_v1_address_pb);
40
+ var meshtrade_type_v1_decimal_pb = require('../../../../meshtrade/type/v1/decimal_pb.js');
41
+ goog.object.extend(proto, meshtrade_type_v1_decimal_pb);
42
+ goog.exportSymbol('proto.meshtrade.compliance.client.v1.Company', null, global);
43
+ goog.exportSymbol('proto.meshtrade.compliance.client.v1.ConnectedLegalPerson', null, global);
44
+ goog.exportSymbol('proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.LegalPersonCase', null, global);
45
+ goog.exportSymbol('proto.meshtrade.compliance.client.v1.LegalPersonConnectionType', null, global);
46
+ /**
47
+ * Generated by JsPbCodeGenerator.
48
+ * @param {Array=} opt_data Optional initial data array, typically from a
49
+ * server response, or constructed directly in Javascript. The array is used
50
+ * in place and becomes part of the constructed object. It is not cloned.
51
+ * If no data is provided, the constructed object will be empty, but still
52
+ * valid.
53
+ * @extends {jspb.Message}
54
+ * @constructor
55
+ */
56
+ proto.meshtrade.compliance.client.v1.Company = function(opt_data) {
57
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.meshtrade.compliance.client.v1.Company.repeatedFields_, null);
58
+ };
59
+ goog.inherits(proto.meshtrade.compliance.client.v1.Company, jspb.Message);
60
+ if (goog.DEBUG && !COMPILED) {
61
+ /**
62
+ * @public
63
+ * @override
64
+ */
65
+ proto.meshtrade.compliance.client.v1.Company.displayName = 'proto.meshtrade.compliance.client.v1.Company';
66
+ }
67
+ /**
68
+ * Generated by JsPbCodeGenerator.
69
+ * @param {Array=} opt_data Optional initial data array, typically from a
70
+ * server response, or constructed directly in Javascript. The array is used
71
+ * in place and becomes part of the constructed object. It is not cloned.
72
+ * If no data is provided, the constructed object will be empty, but still
73
+ * valid.
74
+ * @extends {jspb.Message}
75
+ * @constructor
76
+ */
77
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson = function(opt_data) {
78
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.repeatedFields_, proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.oneofGroups_);
79
+ };
80
+ goog.inherits(proto.meshtrade.compliance.client.v1.ConnectedLegalPerson, jspb.Message);
81
+ if (goog.DEBUG && !COMPILED) {
82
+ /**
83
+ * @public
84
+ * @override
85
+ */
86
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.displayName = 'proto.meshtrade.compliance.client.v1.ConnectedLegalPerson';
87
+ }
88
+
89
+ /**
90
+ * List of repeated fields within this message type.
91
+ * @private {!Array<number>}
92
+ * @const
93
+ */
94
+ proto.meshtrade.compliance.client.v1.Company.repeatedFields_ = [11,12];
95
+
96
+
97
+
98
+ if (jspb.Message.GENERATE_TO_OBJECT) {
99
+ /**
100
+ * Creates an object representation of this proto.
101
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
102
+ * Optional fields that are not set will be set to undefined.
103
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
104
+ * For the list of reserved names please see:
105
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
106
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
107
+ * JSPB instance for transitional soy proto support:
108
+ * http://goto/soy-param-migration
109
+ * @return {!Object}
110
+ */
111
+ proto.meshtrade.compliance.client.v1.Company.prototype.toObject = function(opt_includeInstance) {
112
+ return proto.meshtrade.compliance.client.v1.Company.toObject(opt_includeInstance, this);
113
+ };
114
+
115
+
116
+ /**
117
+ * Static version of the {@see toObject} method.
118
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
119
+ * the JSPB instance for transitional soy proto support:
120
+ * http://goto/soy-param-migration
121
+ * @param {!proto.meshtrade.compliance.client.v1.Company} msg The msg instance to transform.
122
+ * @return {!Object}
123
+ * @suppress {unusedLocalVariables} f is only used for nested messages
124
+ */
125
+ proto.meshtrade.compliance.client.v1.Company.toObject = function(includeInstance, msg) {
126
+ var f, obj = {
127
+ registeredName: jspb.Message.getFieldWithDefault(msg, 1, ""),
128
+ registrationNumber: jspb.Message.getFieldWithDefault(msg, 3, ""),
129
+ taxIdentifier: jspb.Message.getFieldWithDefault(msg, 4, ""),
130
+ countryOfIncorporation: jspb.Message.getFieldWithDefault(msg, 5, ""),
131
+ dateOfIncorporation: (f = msg.getDateOfIncorporation()) && google_type_date_pb.Date.toObject(includeInstance, f),
132
+ registeredAddress: (f = msg.getRegisteredAddress()) && meshtrade_type_v1_address_pb.Address.toObject(includeInstance, f),
133
+ principalPhysicalAddress: (f = msg.getPrincipalPhysicalAddress()) && meshtrade_type_v1_address_pb.Address.toObject(includeInstance, f),
134
+ postalAddress: (f = msg.getPostalAddress()) && meshtrade_type_v1_address_pb.Address.toObject(includeInstance, f),
135
+ headOfficeAddress: (f = msg.getHeadOfficeAddress()) && meshtrade_type_v1_address_pb.Address.toObject(includeInstance, f),
136
+ companyRepresentativesList: jspb.Message.toObjectList(msg.getCompanyRepresentativesList(),
137
+ meshtrade_compliance_client_v1_company_representative_pb.CompanyRepresentative.toObject, includeInstance),
138
+ connectedLegalPersonsList: jspb.Message.toObjectList(msg.getConnectedLegalPersonsList(),
139
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.toObject, includeInstance),
140
+ industryClassification: (f = msg.getIndustryClassification()) && meshtrade_compliance_client_v1_industry_classification_pb.IndustryClassification.toObject(includeInstance, f),
141
+ listedExchangeCode: jspb.Message.getFieldWithDefault(msg, 14, ""),
142
+ listingReference: jspb.Message.getFieldWithDefault(msg, 15, "")
143
+ };
144
+
145
+ if (includeInstance) {
146
+ obj.$jspbMessageInstance = msg;
147
+ }
148
+ return obj;
149
+ };
150
+ }
151
+
152
+
153
+ /**
154
+ * Deserializes binary data (in protobuf wire format).
155
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
156
+ * @return {!proto.meshtrade.compliance.client.v1.Company}
157
+ */
158
+ proto.meshtrade.compliance.client.v1.Company.deserializeBinary = function(bytes) {
159
+ var reader = new jspb.BinaryReader(bytes);
160
+ var msg = new proto.meshtrade.compliance.client.v1.Company;
161
+ return proto.meshtrade.compliance.client.v1.Company.deserializeBinaryFromReader(msg, reader);
162
+ };
163
+
164
+
165
+ /**
166
+ * Deserializes binary data (in protobuf wire format) from the
167
+ * given reader into the given message object.
168
+ * @param {!proto.meshtrade.compliance.client.v1.Company} msg The message object to deserialize into.
169
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
170
+ * @return {!proto.meshtrade.compliance.client.v1.Company}
171
+ */
172
+ proto.meshtrade.compliance.client.v1.Company.deserializeBinaryFromReader = function(msg, reader) {
173
+ while (reader.nextField()) {
174
+ if (reader.isEndGroup()) {
175
+ break;
176
+ }
177
+ var field = reader.getFieldNumber();
178
+ switch (field) {
179
+ case 1:
180
+ var value = /** @type {string} */ (reader.readString());
181
+ msg.setRegisteredName(value);
182
+ break;
183
+ case 3:
184
+ var value = /** @type {string} */ (reader.readString());
185
+ msg.setRegistrationNumber(value);
186
+ break;
187
+ case 4:
188
+ var value = /** @type {string} */ (reader.readString());
189
+ msg.setTaxIdentifier(value);
190
+ break;
191
+ case 5:
192
+ var value = /** @type {string} */ (reader.readString());
193
+ msg.setCountryOfIncorporation(value);
194
+ break;
195
+ case 6:
196
+ var value = new google_type_date_pb.Date;
197
+ reader.readMessage(value,google_type_date_pb.Date.deserializeBinaryFromReader);
198
+ msg.setDateOfIncorporation(value);
199
+ break;
200
+ case 7:
201
+ var value = new meshtrade_type_v1_address_pb.Address;
202
+ reader.readMessage(value,meshtrade_type_v1_address_pb.Address.deserializeBinaryFromReader);
203
+ msg.setRegisteredAddress(value);
204
+ break;
205
+ case 8:
206
+ var value = new meshtrade_type_v1_address_pb.Address;
207
+ reader.readMessage(value,meshtrade_type_v1_address_pb.Address.deserializeBinaryFromReader);
208
+ msg.setPrincipalPhysicalAddress(value);
209
+ break;
210
+ case 9:
211
+ var value = new meshtrade_type_v1_address_pb.Address;
212
+ reader.readMessage(value,meshtrade_type_v1_address_pb.Address.deserializeBinaryFromReader);
213
+ msg.setPostalAddress(value);
214
+ break;
215
+ case 10:
216
+ var value = new meshtrade_type_v1_address_pb.Address;
217
+ reader.readMessage(value,meshtrade_type_v1_address_pb.Address.deserializeBinaryFromReader);
218
+ msg.setHeadOfficeAddress(value);
219
+ break;
220
+ case 11:
221
+ var value = new meshtrade_compliance_client_v1_company_representative_pb.CompanyRepresentative;
222
+ reader.readMessage(value,meshtrade_compliance_client_v1_company_representative_pb.CompanyRepresentative.deserializeBinaryFromReader);
223
+ msg.addCompanyRepresentatives(value);
224
+ break;
225
+ case 12:
226
+ var value = new proto.meshtrade.compliance.client.v1.ConnectedLegalPerson;
227
+ reader.readMessage(value,proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.deserializeBinaryFromReader);
228
+ msg.addConnectedLegalPersons(value);
229
+ break;
230
+ case 13:
231
+ var value = new meshtrade_compliance_client_v1_industry_classification_pb.IndustryClassification;
232
+ reader.readMessage(value,meshtrade_compliance_client_v1_industry_classification_pb.IndustryClassification.deserializeBinaryFromReader);
233
+ msg.setIndustryClassification(value);
234
+ break;
235
+ case 14:
236
+ var value = /** @type {string} */ (reader.readString());
237
+ msg.setListedExchangeCode(value);
238
+ break;
239
+ case 15:
240
+ var value = /** @type {string} */ (reader.readString());
241
+ msg.setListingReference(value);
242
+ break;
243
+ default:
244
+ reader.skipField();
245
+ break;
246
+ }
247
+ }
248
+ return msg;
249
+ };
250
+
251
+
252
+ /**
253
+ * Serializes the message to binary data (in protobuf wire format).
254
+ * @return {!Uint8Array}
255
+ */
256
+ proto.meshtrade.compliance.client.v1.Company.prototype.serializeBinary = function() {
257
+ var writer = new jspb.BinaryWriter();
258
+ proto.meshtrade.compliance.client.v1.Company.serializeBinaryToWriter(this, writer);
259
+ return writer.getResultBuffer();
260
+ };
261
+
262
+
263
+ /**
264
+ * Serializes the given message to binary data (in protobuf wire
265
+ * format), writing to the given BinaryWriter.
266
+ * @param {!proto.meshtrade.compliance.client.v1.Company} message
267
+ * @param {!jspb.BinaryWriter} writer
268
+ * @suppress {unusedLocalVariables} f is only used for nested messages
269
+ */
270
+ proto.meshtrade.compliance.client.v1.Company.serializeBinaryToWriter = function(message, writer) {
271
+ var f = undefined;
272
+ f = message.getRegisteredName();
273
+ if (f.length > 0) {
274
+ writer.writeString(
275
+ 1,
276
+ f
277
+ );
278
+ }
279
+ f = message.getRegistrationNumber();
280
+ if (f.length > 0) {
281
+ writer.writeString(
282
+ 3,
283
+ f
284
+ );
285
+ }
286
+ f = message.getTaxIdentifier();
287
+ if (f.length > 0) {
288
+ writer.writeString(
289
+ 4,
290
+ f
291
+ );
292
+ }
293
+ f = message.getCountryOfIncorporation();
294
+ if (f.length > 0) {
295
+ writer.writeString(
296
+ 5,
297
+ f
298
+ );
299
+ }
300
+ f = message.getDateOfIncorporation();
301
+ if (f != null) {
302
+ writer.writeMessage(
303
+ 6,
304
+ f,
305
+ google_type_date_pb.Date.serializeBinaryToWriter
306
+ );
307
+ }
308
+ f = message.getRegisteredAddress();
309
+ if (f != null) {
310
+ writer.writeMessage(
311
+ 7,
312
+ f,
313
+ meshtrade_type_v1_address_pb.Address.serializeBinaryToWriter
314
+ );
315
+ }
316
+ f = message.getPrincipalPhysicalAddress();
317
+ if (f != null) {
318
+ writer.writeMessage(
319
+ 8,
320
+ f,
321
+ meshtrade_type_v1_address_pb.Address.serializeBinaryToWriter
322
+ );
323
+ }
324
+ f = message.getPostalAddress();
325
+ if (f != null) {
326
+ writer.writeMessage(
327
+ 9,
328
+ f,
329
+ meshtrade_type_v1_address_pb.Address.serializeBinaryToWriter
330
+ );
331
+ }
332
+ f = message.getHeadOfficeAddress();
333
+ if (f != null) {
334
+ writer.writeMessage(
335
+ 10,
336
+ f,
337
+ meshtrade_type_v1_address_pb.Address.serializeBinaryToWriter
338
+ );
339
+ }
340
+ f = message.getCompanyRepresentativesList();
341
+ if (f.length > 0) {
342
+ writer.writeRepeatedMessage(
343
+ 11,
344
+ f,
345
+ meshtrade_compliance_client_v1_company_representative_pb.CompanyRepresentative.serializeBinaryToWriter
346
+ );
347
+ }
348
+ f = message.getConnectedLegalPersonsList();
349
+ if (f.length > 0) {
350
+ writer.writeRepeatedMessage(
351
+ 12,
352
+ f,
353
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.serializeBinaryToWriter
354
+ );
355
+ }
356
+ f = message.getIndustryClassification();
357
+ if (f != null) {
358
+ writer.writeMessage(
359
+ 13,
360
+ f,
361
+ meshtrade_compliance_client_v1_industry_classification_pb.IndustryClassification.serializeBinaryToWriter
362
+ );
363
+ }
364
+ f = message.getListedExchangeCode();
365
+ if (f.length > 0) {
366
+ writer.writeString(
367
+ 14,
368
+ f
369
+ );
370
+ }
371
+ f = message.getListingReference();
372
+ if (f.length > 0) {
373
+ writer.writeString(
374
+ 15,
375
+ f
376
+ );
377
+ }
378
+ };
379
+
380
+
381
+ /**
382
+ * optional string registered_name = 1;
383
+ * @return {string}
384
+ */
385
+ proto.meshtrade.compliance.client.v1.Company.prototype.getRegisteredName = function() {
386
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
387
+ };
388
+
389
+
390
+ /**
391
+ * @param {string} value
392
+ * @return {!proto.meshtrade.compliance.client.v1.Company} returns this
393
+ */
394
+ proto.meshtrade.compliance.client.v1.Company.prototype.setRegisteredName = function(value) {
395
+ return jspb.Message.setProto3StringField(this, 1, value);
396
+ };
397
+
398
+
399
+ /**
400
+ * optional string registration_number = 3;
401
+ * @return {string}
402
+ */
403
+ proto.meshtrade.compliance.client.v1.Company.prototype.getRegistrationNumber = function() {
404
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
405
+ };
406
+
407
+
408
+ /**
409
+ * @param {string} value
410
+ * @return {!proto.meshtrade.compliance.client.v1.Company} returns this
411
+ */
412
+ proto.meshtrade.compliance.client.v1.Company.prototype.setRegistrationNumber = function(value) {
413
+ return jspb.Message.setProto3StringField(this, 3, value);
414
+ };
415
+
416
+
417
+ /**
418
+ * optional string tax_identifier = 4;
419
+ * @return {string}
420
+ */
421
+ proto.meshtrade.compliance.client.v1.Company.prototype.getTaxIdentifier = function() {
422
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
423
+ };
424
+
425
+
426
+ /**
427
+ * @param {string} value
428
+ * @return {!proto.meshtrade.compliance.client.v1.Company} returns this
429
+ */
430
+ proto.meshtrade.compliance.client.v1.Company.prototype.setTaxIdentifier = function(value) {
431
+ return jspb.Message.setProto3StringField(this, 4, value);
432
+ };
433
+
434
+
435
+ /**
436
+ * optional string country_of_incorporation = 5;
437
+ * @return {string}
438
+ */
439
+ proto.meshtrade.compliance.client.v1.Company.prototype.getCountryOfIncorporation = function() {
440
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
441
+ };
442
+
443
+
444
+ /**
445
+ * @param {string} value
446
+ * @return {!proto.meshtrade.compliance.client.v1.Company} returns this
447
+ */
448
+ proto.meshtrade.compliance.client.v1.Company.prototype.setCountryOfIncorporation = function(value) {
449
+ return jspb.Message.setProto3StringField(this, 5, value);
450
+ };
451
+
452
+
453
+ /**
454
+ * optional google.type.Date date_of_incorporation = 6;
455
+ * @return {?proto.google.type.Date}
456
+ */
457
+ proto.meshtrade.compliance.client.v1.Company.prototype.getDateOfIncorporation = function() {
458
+ return /** @type{?proto.google.type.Date} */ (
459
+ jspb.Message.getWrapperField(this, google_type_date_pb.Date, 6));
460
+ };
461
+
462
+
463
+ /**
464
+ * @param {?proto.google.type.Date|undefined} value
465
+ * @return {!proto.meshtrade.compliance.client.v1.Company} returns this
466
+ */
467
+ proto.meshtrade.compliance.client.v1.Company.prototype.setDateOfIncorporation = function(value) {
468
+ return jspb.Message.setWrapperField(this, 6, value);
469
+ };
470
+
471
+
472
+ /**
473
+ * Clears the message field making it undefined.
474
+ * @return {!proto.meshtrade.compliance.client.v1.Company} returns this
475
+ */
476
+ proto.meshtrade.compliance.client.v1.Company.prototype.clearDateOfIncorporation = function() {
477
+ return this.setDateOfIncorporation(undefined);
478
+ };
479
+
480
+
481
+ /**
482
+ * Returns whether this field is set.
483
+ * @return {boolean}
484
+ */
485
+ proto.meshtrade.compliance.client.v1.Company.prototype.hasDateOfIncorporation = function() {
486
+ return jspb.Message.getField(this, 6) != null;
487
+ };
488
+
489
+
490
+ /**
491
+ * optional meshtrade.type.v1.Address registered_address = 7;
492
+ * @return {?proto.meshtrade.type.v1.Address}
493
+ */
494
+ proto.meshtrade.compliance.client.v1.Company.prototype.getRegisteredAddress = function() {
495
+ return /** @type{?proto.meshtrade.type.v1.Address} */ (
496
+ jspb.Message.getWrapperField(this, meshtrade_type_v1_address_pb.Address, 7));
497
+ };
498
+
499
+
500
+ /**
501
+ * @param {?proto.meshtrade.type.v1.Address|undefined} value
502
+ * @return {!proto.meshtrade.compliance.client.v1.Company} returns this
503
+ */
504
+ proto.meshtrade.compliance.client.v1.Company.prototype.setRegisteredAddress = function(value) {
505
+ return jspb.Message.setWrapperField(this, 7, value);
506
+ };
507
+
508
+
509
+ /**
510
+ * Clears the message field making it undefined.
511
+ * @return {!proto.meshtrade.compliance.client.v1.Company} returns this
512
+ */
513
+ proto.meshtrade.compliance.client.v1.Company.prototype.clearRegisteredAddress = function() {
514
+ return this.setRegisteredAddress(undefined);
515
+ };
516
+
517
+
518
+ /**
519
+ * Returns whether this field is set.
520
+ * @return {boolean}
521
+ */
522
+ proto.meshtrade.compliance.client.v1.Company.prototype.hasRegisteredAddress = function() {
523
+ return jspb.Message.getField(this, 7) != null;
524
+ };
525
+
526
+
527
+ /**
528
+ * optional meshtrade.type.v1.Address principal_physical_address = 8;
529
+ * @return {?proto.meshtrade.type.v1.Address}
530
+ */
531
+ proto.meshtrade.compliance.client.v1.Company.prototype.getPrincipalPhysicalAddress = function() {
532
+ return /** @type{?proto.meshtrade.type.v1.Address} */ (
533
+ jspb.Message.getWrapperField(this, meshtrade_type_v1_address_pb.Address, 8));
534
+ };
535
+
536
+
537
+ /**
538
+ * @param {?proto.meshtrade.type.v1.Address|undefined} value
539
+ * @return {!proto.meshtrade.compliance.client.v1.Company} returns this
540
+ */
541
+ proto.meshtrade.compliance.client.v1.Company.prototype.setPrincipalPhysicalAddress = function(value) {
542
+ return jspb.Message.setWrapperField(this, 8, value);
543
+ };
544
+
545
+
546
+ /**
547
+ * Clears the message field making it undefined.
548
+ * @return {!proto.meshtrade.compliance.client.v1.Company} returns this
549
+ */
550
+ proto.meshtrade.compliance.client.v1.Company.prototype.clearPrincipalPhysicalAddress = function() {
551
+ return this.setPrincipalPhysicalAddress(undefined);
552
+ };
553
+
554
+
555
+ /**
556
+ * Returns whether this field is set.
557
+ * @return {boolean}
558
+ */
559
+ proto.meshtrade.compliance.client.v1.Company.prototype.hasPrincipalPhysicalAddress = function() {
560
+ return jspb.Message.getField(this, 8) != null;
561
+ };
562
+
563
+
564
+ /**
565
+ * optional meshtrade.type.v1.Address postal_address = 9;
566
+ * @return {?proto.meshtrade.type.v1.Address}
567
+ */
568
+ proto.meshtrade.compliance.client.v1.Company.prototype.getPostalAddress = function() {
569
+ return /** @type{?proto.meshtrade.type.v1.Address} */ (
570
+ jspb.Message.getWrapperField(this, meshtrade_type_v1_address_pb.Address, 9));
571
+ };
572
+
573
+
574
+ /**
575
+ * @param {?proto.meshtrade.type.v1.Address|undefined} value
576
+ * @return {!proto.meshtrade.compliance.client.v1.Company} returns this
577
+ */
578
+ proto.meshtrade.compliance.client.v1.Company.prototype.setPostalAddress = function(value) {
579
+ return jspb.Message.setWrapperField(this, 9, value);
580
+ };
581
+
582
+
583
+ /**
584
+ * Clears the message field making it undefined.
585
+ * @return {!proto.meshtrade.compliance.client.v1.Company} returns this
586
+ */
587
+ proto.meshtrade.compliance.client.v1.Company.prototype.clearPostalAddress = function() {
588
+ return this.setPostalAddress(undefined);
589
+ };
590
+
591
+
592
+ /**
593
+ * Returns whether this field is set.
594
+ * @return {boolean}
595
+ */
596
+ proto.meshtrade.compliance.client.v1.Company.prototype.hasPostalAddress = function() {
597
+ return jspb.Message.getField(this, 9) != null;
598
+ };
599
+
600
+
601
+ /**
602
+ * optional meshtrade.type.v1.Address head_office_address = 10;
603
+ * @return {?proto.meshtrade.type.v1.Address}
604
+ */
605
+ proto.meshtrade.compliance.client.v1.Company.prototype.getHeadOfficeAddress = function() {
606
+ return /** @type{?proto.meshtrade.type.v1.Address} */ (
607
+ jspb.Message.getWrapperField(this, meshtrade_type_v1_address_pb.Address, 10));
608
+ };
609
+
610
+
611
+ /**
612
+ * @param {?proto.meshtrade.type.v1.Address|undefined} value
613
+ * @return {!proto.meshtrade.compliance.client.v1.Company} returns this
614
+ */
615
+ proto.meshtrade.compliance.client.v1.Company.prototype.setHeadOfficeAddress = function(value) {
616
+ return jspb.Message.setWrapperField(this, 10, value);
617
+ };
618
+
619
+
620
+ /**
621
+ * Clears the message field making it undefined.
622
+ * @return {!proto.meshtrade.compliance.client.v1.Company} returns this
623
+ */
624
+ proto.meshtrade.compliance.client.v1.Company.prototype.clearHeadOfficeAddress = function() {
625
+ return this.setHeadOfficeAddress(undefined);
626
+ };
627
+
628
+
629
+ /**
630
+ * Returns whether this field is set.
631
+ * @return {boolean}
632
+ */
633
+ proto.meshtrade.compliance.client.v1.Company.prototype.hasHeadOfficeAddress = function() {
634
+ return jspb.Message.getField(this, 10) != null;
635
+ };
636
+
637
+
638
+ /**
639
+ * repeated CompanyRepresentative company_representatives = 11;
640
+ * @return {!Array<!proto.meshtrade.compliance.client.v1.CompanyRepresentative>}
641
+ */
642
+ proto.meshtrade.compliance.client.v1.Company.prototype.getCompanyRepresentativesList = function() {
643
+ return /** @type{!Array<!proto.meshtrade.compliance.client.v1.CompanyRepresentative>} */ (
644
+ jspb.Message.getRepeatedWrapperField(this, meshtrade_compliance_client_v1_company_representative_pb.CompanyRepresentative, 11));
645
+ };
646
+
647
+
648
+ /**
649
+ * @param {!Array<!proto.meshtrade.compliance.client.v1.CompanyRepresentative>} value
650
+ * @return {!proto.meshtrade.compliance.client.v1.Company} returns this
651
+ */
652
+ proto.meshtrade.compliance.client.v1.Company.prototype.setCompanyRepresentativesList = function(value) {
653
+ return jspb.Message.setRepeatedWrapperField(this, 11, value);
654
+ };
655
+
656
+
657
+ /**
658
+ * @param {!proto.meshtrade.compliance.client.v1.CompanyRepresentative=} opt_value
659
+ * @param {number=} opt_index
660
+ * @return {!proto.meshtrade.compliance.client.v1.CompanyRepresentative}
661
+ */
662
+ proto.meshtrade.compliance.client.v1.Company.prototype.addCompanyRepresentatives = function(opt_value, opt_index) {
663
+ return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.meshtrade.compliance.client.v1.CompanyRepresentative, opt_index);
664
+ };
665
+
666
+
667
+ /**
668
+ * Clears the list making it empty but non-null.
669
+ * @return {!proto.meshtrade.compliance.client.v1.Company} returns this
670
+ */
671
+ proto.meshtrade.compliance.client.v1.Company.prototype.clearCompanyRepresentativesList = function() {
672
+ return this.setCompanyRepresentativesList([]);
673
+ };
674
+
675
+
676
+ /**
677
+ * repeated ConnectedLegalPerson connected_legal_persons = 12;
678
+ * @return {!Array<!proto.meshtrade.compliance.client.v1.ConnectedLegalPerson>}
679
+ */
680
+ proto.meshtrade.compliance.client.v1.Company.prototype.getConnectedLegalPersonsList = function() {
681
+ return /** @type{!Array<!proto.meshtrade.compliance.client.v1.ConnectedLegalPerson>} */ (
682
+ jspb.Message.getRepeatedWrapperField(this, proto.meshtrade.compliance.client.v1.ConnectedLegalPerson, 12));
683
+ };
684
+
685
+
686
+ /**
687
+ * @param {!Array<!proto.meshtrade.compliance.client.v1.ConnectedLegalPerson>} value
688
+ * @return {!proto.meshtrade.compliance.client.v1.Company} returns this
689
+ */
690
+ proto.meshtrade.compliance.client.v1.Company.prototype.setConnectedLegalPersonsList = function(value) {
691
+ return jspb.Message.setRepeatedWrapperField(this, 12, value);
692
+ };
693
+
694
+
695
+ /**
696
+ * @param {!proto.meshtrade.compliance.client.v1.ConnectedLegalPerson=} opt_value
697
+ * @param {number=} opt_index
698
+ * @return {!proto.meshtrade.compliance.client.v1.ConnectedLegalPerson}
699
+ */
700
+ proto.meshtrade.compliance.client.v1.Company.prototype.addConnectedLegalPersons = function(opt_value, opt_index) {
701
+ return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.meshtrade.compliance.client.v1.ConnectedLegalPerson, opt_index);
702
+ };
703
+
704
+
705
+ /**
706
+ * Clears the list making it empty but non-null.
707
+ * @return {!proto.meshtrade.compliance.client.v1.Company} returns this
708
+ */
709
+ proto.meshtrade.compliance.client.v1.Company.prototype.clearConnectedLegalPersonsList = function() {
710
+ return this.setConnectedLegalPersonsList([]);
711
+ };
712
+
713
+
714
+ /**
715
+ * optional IndustryClassification industry_classification = 13;
716
+ * @return {?proto.meshtrade.compliance.client.v1.IndustryClassification}
717
+ */
718
+ proto.meshtrade.compliance.client.v1.Company.prototype.getIndustryClassification = function() {
719
+ return /** @type{?proto.meshtrade.compliance.client.v1.IndustryClassification} */ (
720
+ jspb.Message.getWrapperField(this, meshtrade_compliance_client_v1_industry_classification_pb.IndustryClassification, 13));
721
+ };
722
+
723
+
724
+ /**
725
+ * @param {?proto.meshtrade.compliance.client.v1.IndustryClassification|undefined} value
726
+ * @return {!proto.meshtrade.compliance.client.v1.Company} returns this
727
+ */
728
+ proto.meshtrade.compliance.client.v1.Company.prototype.setIndustryClassification = function(value) {
729
+ return jspb.Message.setWrapperField(this, 13, value);
730
+ };
731
+
732
+
733
+ /**
734
+ * Clears the message field making it undefined.
735
+ * @return {!proto.meshtrade.compliance.client.v1.Company} returns this
736
+ */
737
+ proto.meshtrade.compliance.client.v1.Company.prototype.clearIndustryClassification = function() {
738
+ return this.setIndustryClassification(undefined);
739
+ };
740
+
741
+
742
+ /**
743
+ * Returns whether this field is set.
744
+ * @return {boolean}
745
+ */
746
+ proto.meshtrade.compliance.client.v1.Company.prototype.hasIndustryClassification = function() {
747
+ return jspb.Message.getField(this, 13) != null;
748
+ };
749
+
750
+
751
+ /**
752
+ * optional string listed_exchange_code = 14;
753
+ * @return {string}
754
+ */
755
+ proto.meshtrade.compliance.client.v1.Company.prototype.getListedExchangeCode = function() {
756
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
757
+ };
758
+
759
+
760
+ /**
761
+ * @param {string} value
762
+ * @return {!proto.meshtrade.compliance.client.v1.Company} returns this
763
+ */
764
+ proto.meshtrade.compliance.client.v1.Company.prototype.setListedExchangeCode = function(value) {
765
+ return jspb.Message.setProto3StringField(this, 14, value);
766
+ };
767
+
768
+
769
+ /**
770
+ * optional string listing_reference = 15;
771
+ * @return {string}
772
+ */
773
+ proto.meshtrade.compliance.client.v1.Company.prototype.getListingReference = function() {
774
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
775
+ };
776
+
777
+
778
+ /**
779
+ * @param {string} value
780
+ * @return {!proto.meshtrade.compliance.client.v1.Company} returns this
781
+ */
782
+ proto.meshtrade.compliance.client.v1.Company.prototype.setListingReference = function(value) {
783
+ return jspb.Message.setProto3StringField(this, 15, value);
784
+ };
785
+
786
+
787
+
788
+ /**
789
+ * List of repeated fields within this message type.
790
+ * @private {!Array<number>}
791
+ * @const
792
+ */
793
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.repeatedFields_ = [5];
794
+
795
+ /**
796
+ * Oneof group definitions for this message. Each group defines the field
797
+ * numbers belonging to that group. When of these fields' value is set, all
798
+ * other fields in the group are cleared. During deserialization, if multiple
799
+ * fields are encountered for a group, only the last value seen will be kept.
800
+ * @private {!Array<!Array<number>>}
801
+ * @const
802
+ */
803
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.oneofGroups_ = [[1,2,3,4]];
804
+
805
+ /**
806
+ * @enum {number}
807
+ */
808
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.LegalPersonCase = {
809
+ LEGAL_PERSON_NOT_SET: 0,
810
+ NATURAL_PERSON: 1,
811
+ COMPANY: 2,
812
+ FUND: 3,
813
+ TRUST: 4
814
+ };
815
+
816
+ /**
817
+ * @return {proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.LegalPersonCase}
818
+ */
819
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.prototype.getLegalPersonCase = function() {
820
+ return /** @type {proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.LegalPersonCase} */(jspb.Message.computeOneofCase(this, proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.oneofGroups_[0]));
821
+ };
822
+
823
+
824
+
825
+ if (jspb.Message.GENERATE_TO_OBJECT) {
826
+ /**
827
+ * Creates an object representation of this proto.
828
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
829
+ * Optional fields that are not set will be set to undefined.
830
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
831
+ * For the list of reserved names please see:
832
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
833
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
834
+ * JSPB instance for transitional soy proto support:
835
+ * http://goto/soy-param-migration
836
+ * @return {!Object}
837
+ */
838
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.prototype.toObject = function(opt_includeInstance) {
839
+ return proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.toObject(opt_includeInstance, this);
840
+ };
841
+
842
+
843
+ /**
844
+ * Static version of the {@see toObject} method.
845
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
846
+ * the JSPB instance for transitional soy proto support:
847
+ * http://goto/soy-param-migration
848
+ * @param {!proto.meshtrade.compliance.client.v1.ConnectedLegalPerson} msg The msg instance to transform.
849
+ * @return {!Object}
850
+ * @suppress {unusedLocalVariables} f is only used for nested messages
851
+ */
852
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.toObject = function(includeInstance, msg) {
853
+ var f, obj = {
854
+ naturalPerson: (f = msg.getNaturalPerson()) && meshtrade_compliance_client_v1_natural_person_pb.NaturalPerson.toObject(includeInstance, f),
855
+ company: (f = msg.getCompany()) && proto.meshtrade.compliance.client.v1.Company.toObject(includeInstance, f),
856
+ fund: (f = msg.getFund()) && meshtrade_compliance_client_v1_fund_pb.Fund.toObject(includeInstance, f),
857
+ trust: (f = msg.getTrust()) && meshtrade_compliance_client_v1_trust_pb.Trust.toObject(includeInstance, f),
858
+ connectionTypesList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
859
+ ownershipPercentage: (f = msg.getOwnershipPercentage()) && meshtrade_type_v1_decimal_pb.Decimal.toObject(includeInstance, f),
860
+ votingRightsPercentage: (f = msg.getVotingRightsPercentage()) && meshtrade_type_v1_decimal_pb.Decimal.toObject(includeInstance, f),
861
+ connectionDescription: jspb.Message.getFieldWithDefault(msg, 8, "")
862
+ };
863
+
864
+ if (includeInstance) {
865
+ obj.$jspbMessageInstance = msg;
866
+ }
867
+ return obj;
868
+ };
869
+ }
870
+
871
+
872
+ /**
873
+ * Deserializes binary data (in protobuf wire format).
874
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
875
+ * @return {!proto.meshtrade.compliance.client.v1.ConnectedLegalPerson}
876
+ */
877
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.deserializeBinary = function(bytes) {
878
+ var reader = new jspb.BinaryReader(bytes);
879
+ var msg = new proto.meshtrade.compliance.client.v1.ConnectedLegalPerson;
880
+ return proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.deserializeBinaryFromReader(msg, reader);
881
+ };
882
+
883
+
884
+ /**
885
+ * Deserializes binary data (in protobuf wire format) from the
886
+ * given reader into the given message object.
887
+ * @param {!proto.meshtrade.compliance.client.v1.ConnectedLegalPerson} msg The message object to deserialize into.
888
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
889
+ * @return {!proto.meshtrade.compliance.client.v1.ConnectedLegalPerson}
890
+ */
891
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.deserializeBinaryFromReader = function(msg, reader) {
892
+ while (reader.nextField()) {
893
+ if (reader.isEndGroup()) {
894
+ break;
895
+ }
896
+ var field = reader.getFieldNumber();
897
+ switch (field) {
898
+ case 1:
899
+ var value = new meshtrade_compliance_client_v1_natural_person_pb.NaturalPerson;
900
+ reader.readMessage(value,meshtrade_compliance_client_v1_natural_person_pb.NaturalPerson.deserializeBinaryFromReader);
901
+ msg.setNaturalPerson(value);
902
+ break;
903
+ case 2:
904
+ var value = new proto.meshtrade.compliance.client.v1.Company;
905
+ reader.readMessage(value,proto.meshtrade.compliance.client.v1.Company.deserializeBinaryFromReader);
906
+ msg.setCompany(value);
907
+ break;
908
+ case 3:
909
+ var value = new meshtrade_compliance_client_v1_fund_pb.Fund;
910
+ reader.readMessage(value,meshtrade_compliance_client_v1_fund_pb.Fund.deserializeBinaryFromReader);
911
+ msg.setFund(value);
912
+ break;
913
+ case 4:
914
+ var value = new meshtrade_compliance_client_v1_trust_pb.Trust;
915
+ reader.readMessage(value,meshtrade_compliance_client_v1_trust_pb.Trust.deserializeBinaryFromReader);
916
+ msg.setTrust(value);
917
+ break;
918
+ case 5:
919
+ var values = /** @type {!Array<!proto.meshtrade.compliance.client.v1.LegalPersonConnectionType>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
920
+ for (var i = 0; i < values.length; i++) {
921
+ msg.addConnectionTypes(values[i]);
922
+ }
923
+ break;
924
+ case 6:
925
+ var value = new meshtrade_type_v1_decimal_pb.Decimal;
926
+ reader.readMessage(value,meshtrade_type_v1_decimal_pb.Decimal.deserializeBinaryFromReader);
927
+ msg.setOwnershipPercentage(value);
928
+ break;
929
+ case 7:
930
+ var value = new meshtrade_type_v1_decimal_pb.Decimal;
931
+ reader.readMessage(value,meshtrade_type_v1_decimal_pb.Decimal.deserializeBinaryFromReader);
932
+ msg.setVotingRightsPercentage(value);
933
+ break;
934
+ case 8:
935
+ var value = /** @type {string} */ (reader.readString());
936
+ msg.setConnectionDescription(value);
937
+ break;
938
+ default:
939
+ reader.skipField();
940
+ break;
941
+ }
942
+ }
943
+ return msg;
944
+ };
945
+
946
+
947
+ /**
948
+ * Serializes the message to binary data (in protobuf wire format).
949
+ * @return {!Uint8Array}
950
+ */
951
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.prototype.serializeBinary = function() {
952
+ var writer = new jspb.BinaryWriter();
953
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.serializeBinaryToWriter(this, writer);
954
+ return writer.getResultBuffer();
955
+ };
956
+
957
+
958
+ /**
959
+ * Serializes the given message to binary data (in protobuf wire
960
+ * format), writing to the given BinaryWriter.
961
+ * @param {!proto.meshtrade.compliance.client.v1.ConnectedLegalPerson} message
962
+ * @param {!jspb.BinaryWriter} writer
963
+ * @suppress {unusedLocalVariables} f is only used for nested messages
964
+ */
965
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.serializeBinaryToWriter = function(message, writer) {
966
+ var f = undefined;
967
+ f = message.getNaturalPerson();
968
+ if (f != null) {
969
+ writer.writeMessage(
970
+ 1,
971
+ f,
972
+ meshtrade_compliance_client_v1_natural_person_pb.NaturalPerson.serializeBinaryToWriter
973
+ );
974
+ }
975
+ f = message.getCompany();
976
+ if (f != null) {
977
+ writer.writeMessage(
978
+ 2,
979
+ f,
980
+ proto.meshtrade.compliance.client.v1.Company.serializeBinaryToWriter
981
+ );
982
+ }
983
+ f = message.getFund();
984
+ if (f != null) {
985
+ writer.writeMessage(
986
+ 3,
987
+ f,
988
+ meshtrade_compliance_client_v1_fund_pb.Fund.serializeBinaryToWriter
989
+ );
990
+ }
991
+ f = message.getTrust();
992
+ if (f != null) {
993
+ writer.writeMessage(
994
+ 4,
995
+ f,
996
+ meshtrade_compliance_client_v1_trust_pb.Trust.serializeBinaryToWriter
997
+ );
998
+ }
999
+ f = message.getConnectionTypesList();
1000
+ if (f.length > 0) {
1001
+ writer.writePackedEnum(
1002
+ 5,
1003
+ f
1004
+ );
1005
+ }
1006
+ f = message.getOwnershipPercentage();
1007
+ if (f != null) {
1008
+ writer.writeMessage(
1009
+ 6,
1010
+ f,
1011
+ meshtrade_type_v1_decimal_pb.Decimal.serializeBinaryToWriter
1012
+ );
1013
+ }
1014
+ f = message.getVotingRightsPercentage();
1015
+ if (f != null) {
1016
+ writer.writeMessage(
1017
+ 7,
1018
+ f,
1019
+ meshtrade_type_v1_decimal_pb.Decimal.serializeBinaryToWriter
1020
+ );
1021
+ }
1022
+ f = message.getConnectionDescription();
1023
+ if (f.length > 0) {
1024
+ writer.writeString(
1025
+ 8,
1026
+ f
1027
+ );
1028
+ }
1029
+ };
1030
+
1031
+
1032
+ /**
1033
+ * optional NaturalPerson natural_person = 1;
1034
+ * @return {?proto.meshtrade.compliance.client.v1.NaturalPerson}
1035
+ */
1036
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.prototype.getNaturalPerson = function() {
1037
+ return /** @type{?proto.meshtrade.compliance.client.v1.NaturalPerson} */ (
1038
+ jspb.Message.getWrapperField(this, meshtrade_compliance_client_v1_natural_person_pb.NaturalPerson, 1));
1039
+ };
1040
+
1041
+
1042
+ /**
1043
+ * @param {?proto.meshtrade.compliance.client.v1.NaturalPerson|undefined} value
1044
+ * @return {!proto.meshtrade.compliance.client.v1.ConnectedLegalPerson} returns this
1045
+ */
1046
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.prototype.setNaturalPerson = function(value) {
1047
+ return jspb.Message.setOneofWrapperField(this, 1, proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.oneofGroups_[0], value);
1048
+ };
1049
+
1050
+
1051
+ /**
1052
+ * Clears the message field making it undefined.
1053
+ * @return {!proto.meshtrade.compliance.client.v1.ConnectedLegalPerson} returns this
1054
+ */
1055
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.prototype.clearNaturalPerson = function() {
1056
+ return this.setNaturalPerson(undefined);
1057
+ };
1058
+
1059
+
1060
+ /**
1061
+ * Returns whether this field is set.
1062
+ * @return {boolean}
1063
+ */
1064
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.prototype.hasNaturalPerson = function() {
1065
+ return jspb.Message.getField(this, 1) != null;
1066
+ };
1067
+
1068
+
1069
+ /**
1070
+ * optional Company company = 2;
1071
+ * @return {?proto.meshtrade.compliance.client.v1.Company}
1072
+ */
1073
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.prototype.getCompany = function() {
1074
+ return /** @type{?proto.meshtrade.compliance.client.v1.Company} */ (
1075
+ jspb.Message.getWrapperField(this, proto.meshtrade.compliance.client.v1.Company, 2));
1076
+ };
1077
+
1078
+
1079
+ /**
1080
+ * @param {?proto.meshtrade.compliance.client.v1.Company|undefined} value
1081
+ * @return {!proto.meshtrade.compliance.client.v1.ConnectedLegalPerson} returns this
1082
+ */
1083
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.prototype.setCompany = function(value) {
1084
+ return jspb.Message.setOneofWrapperField(this, 2, proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.oneofGroups_[0], value);
1085
+ };
1086
+
1087
+
1088
+ /**
1089
+ * Clears the message field making it undefined.
1090
+ * @return {!proto.meshtrade.compliance.client.v1.ConnectedLegalPerson} returns this
1091
+ */
1092
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.prototype.clearCompany = function() {
1093
+ return this.setCompany(undefined);
1094
+ };
1095
+
1096
+
1097
+ /**
1098
+ * Returns whether this field is set.
1099
+ * @return {boolean}
1100
+ */
1101
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.prototype.hasCompany = function() {
1102
+ return jspb.Message.getField(this, 2) != null;
1103
+ };
1104
+
1105
+
1106
+ /**
1107
+ * optional Fund fund = 3;
1108
+ * @return {?proto.meshtrade.compliance.client.v1.Fund}
1109
+ */
1110
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.prototype.getFund = function() {
1111
+ return /** @type{?proto.meshtrade.compliance.client.v1.Fund} */ (
1112
+ jspb.Message.getWrapperField(this, meshtrade_compliance_client_v1_fund_pb.Fund, 3));
1113
+ };
1114
+
1115
+
1116
+ /**
1117
+ * @param {?proto.meshtrade.compliance.client.v1.Fund|undefined} value
1118
+ * @return {!proto.meshtrade.compliance.client.v1.ConnectedLegalPerson} returns this
1119
+ */
1120
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.prototype.setFund = function(value) {
1121
+ return jspb.Message.setOneofWrapperField(this, 3, proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.oneofGroups_[0], value);
1122
+ };
1123
+
1124
+
1125
+ /**
1126
+ * Clears the message field making it undefined.
1127
+ * @return {!proto.meshtrade.compliance.client.v1.ConnectedLegalPerson} returns this
1128
+ */
1129
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.prototype.clearFund = function() {
1130
+ return this.setFund(undefined);
1131
+ };
1132
+
1133
+
1134
+ /**
1135
+ * Returns whether this field is set.
1136
+ * @return {boolean}
1137
+ */
1138
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.prototype.hasFund = function() {
1139
+ return jspb.Message.getField(this, 3) != null;
1140
+ };
1141
+
1142
+
1143
+ /**
1144
+ * optional Trust trust = 4;
1145
+ * @return {?proto.meshtrade.compliance.client.v1.Trust}
1146
+ */
1147
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.prototype.getTrust = function() {
1148
+ return /** @type{?proto.meshtrade.compliance.client.v1.Trust} */ (
1149
+ jspb.Message.getWrapperField(this, meshtrade_compliance_client_v1_trust_pb.Trust, 4));
1150
+ };
1151
+
1152
+
1153
+ /**
1154
+ * @param {?proto.meshtrade.compliance.client.v1.Trust|undefined} value
1155
+ * @return {!proto.meshtrade.compliance.client.v1.ConnectedLegalPerson} returns this
1156
+ */
1157
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.prototype.setTrust = function(value) {
1158
+ return jspb.Message.setOneofWrapperField(this, 4, proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.oneofGroups_[0], value);
1159
+ };
1160
+
1161
+
1162
+ /**
1163
+ * Clears the message field making it undefined.
1164
+ * @return {!proto.meshtrade.compliance.client.v1.ConnectedLegalPerson} returns this
1165
+ */
1166
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.prototype.clearTrust = function() {
1167
+ return this.setTrust(undefined);
1168
+ };
1169
+
1170
+
1171
+ /**
1172
+ * Returns whether this field is set.
1173
+ * @return {boolean}
1174
+ */
1175
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.prototype.hasTrust = function() {
1176
+ return jspb.Message.getField(this, 4) != null;
1177
+ };
1178
+
1179
+
1180
+ /**
1181
+ * repeated LegalPersonConnectionType connection_types = 5;
1182
+ * @return {!Array<!proto.meshtrade.compliance.client.v1.LegalPersonConnectionType>}
1183
+ */
1184
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.prototype.getConnectionTypesList = function() {
1185
+ return /** @type {!Array<!proto.meshtrade.compliance.client.v1.LegalPersonConnectionType>} */ (jspb.Message.getRepeatedField(this, 5));
1186
+ };
1187
+
1188
+
1189
+ /**
1190
+ * @param {!Array<!proto.meshtrade.compliance.client.v1.LegalPersonConnectionType>} value
1191
+ * @return {!proto.meshtrade.compliance.client.v1.ConnectedLegalPerson} returns this
1192
+ */
1193
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.prototype.setConnectionTypesList = function(value) {
1194
+ return jspb.Message.setField(this, 5, value || []);
1195
+ };
1196
+
1197
+
1198
+ /**
1199
+ * @param {!proto.meshtrade.compliance.client.v1.LegalPersonConnectionType} value
1200
+ * @param {number=} opt_index
1201
+ * @return {!proto.meshtrade.compliance.client.v1.ConnectedLegalPerson} returns this
1202
+ */
1203
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.prototype.addConnectionTypes = function(value, opt_index) {
1204
+ return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
1205
+ };
1206
+
1207
+
1208
+ /**
1209
+ * Clears the list making it empty but non-null.
1210
+ * @return {!proto.meshtrade.compliance.client.v1.ConnectedLegalPerson} returns this
1211
+ */
1212
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.prototype.clearConnectionTypesList = function() {
1213
+ return this.setConnectionTypesList([]);
1214
+ };
1215
+
1216
+
1217
+ /**
1218
+ * optional meshtrade.type.v1.Decimal ownership_percentage = 6;
1219
+ * @return {?proto.meshtrade.type.v1.Decimal}
1220
+ */
1221
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.prototype.getOwnershipPercentage = function() {
1222
+ return /** @type{?proto.meshtrade.type.v1.Decimal} */ (
1223
+ jspb.Message.getWrapperField(this, meshtrade_type_v1_decimal_pb.Decimal, 6));
1224
+ };
1225
+
1226
+
1227
+ /**
1228
+ * @param {?proto.meshtrade.type.v1.Decimal|undefined} value
1229
+ * @return {!proto.meshtrade.compliance.client.v1.ConnectedLegalPerson} returns this
1230
+ */
1231
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.prototype.setOwnershipPercentage = function(value) {
1232
+ return jspb.Message.setWrapperField(this, 6, value);
1233
+ };
1234
+
1235
+
1236
+ /**
1237
+ * Clears the message field making it undefined.
1238
+ * @return {!proto.meshtrade.compliance.client.v1.ConnectedLegalPerson} returns this
1239
+ */
1240
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.prototype.clearOwnershipPercentage = function() {
1241
+ return this.setOwnershipPercentage(undefined);
1242
+ };
1243
+
1244
+
1245
+ /**
1246
+ * Returns whether this field is set.
1247
+ * @return {boolean}
1248
+ */
1249
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.prototype.hasOwnershipPercentage = function() {
1250
+ return jspb.Message.getField(this, 6) != null;
1251
+ };
1252
+
1253
+
1254
+ /**
1255
+ * optional meshtrade.type.v1.Decimal voting_rights_percentage = 7;
1256
+ * @return {?proto.meshtrade.type.v1.Decimal}
1257
+ */
1258
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.prototype.getVotingRightsPercentage = function() {
1259
+ return /** @type{?proto.meshtrade.type.v1.Decimal} */ (
1260
+ jspb.Message.getWrapperField(this, meshtrade_type_v1_decimal_pb.Decimal, 7));
1261
+ };
1262
+
1263
+
1264
+ /**
1265
+ * @param {?proto.meshtrade.type.v1.Decimal|undefined} value
1266
+ * @return {!proto.meshtrade.compliance.client.v1.ConnectedLegalPerson} returns this
1267
+ */
1268
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.prototype.setVotingRightsPercentage = function(value) {
1269
+ return jspb.Message.setWrapperField(this, 7, value);
1270
+ };
1271
+
1272
+
1273
+ /**
1274
+ * Clears the message field making it undefined.
1275
+ * @return {!proto.meshtrade.compliance.client.v1.ConnectedLegalPerson} returns this
1276
+ */
1277
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.prototype.clearVotingRightsPercentage = function() {
1278
+ return this.setVotingRightsPercentage(undefined);
1279
+ };
1280
+
1281
+
1282
+ /**
1283
+ * Returns whether this field is set.
1284
+ * @return {boolean}
1285
+ */
1286
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.prototype.hasVotingRightsPercentage = function() {
1287
+ return jspb.Message.getField(this, 7) != null;
1288
+ };
1289
+
1290
+
1291
+ /**
1292
+ * optional string connection_description = 8;
1293
+ * @return {string}
1294
+ */
1295
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.prototype.getConnectionDescription = function() {
1296
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1297
+ };
1298
+
1299
+
1300
+ /**
1301
+ * @param {string} value
1302
+ * @return {!proto.meshtrade.compliance.client.v1.ConnectedLegalPerson} returns this
1303
+ */
1304
+ proto.meshtrade.compliance.client.v1.ConnectedLegalPerson.prototype.setConnectionDescription = function(value) {
1305
+ return jspb.Message.setProto3StringField(this, 8, value);
1306
+ };
1307
+
1308
+
1309
+ /**
1310
+ * @enum {number}
1311
+ */
1312
+ proto.meshtrade.compliance.client.v1.LegalPersonConnectionType = {
1313
+ LEGAL_PERSON_CONNECTION_TYPE_UNSPECIFIED: 0,
1314
+ LEGAL_PERSON_CONNECTION_TYPE_SHAREHOLDER: 1,
1315
+ LEGAL_PERSON_CONNECTION_TYPE_PARENT_COMPANY: 2,
1316
+ LEGAL_PERSON_CONNECTION_TYPE_CORPORATE_DIRECTOR: 3,
1317
+ LEGAL_PERSON_CONNECTION_TYPE_TRUST: 4,
1318
+ LEGAL_PERSON_CONNECTION_TYPE_GENERAL_PARTNER: 5,
1319
+ LEGAL_PERSON_CONNECTION_TYPE_GUARANTOR: 6
1320
+ };
1321
+
1322
+ goog.object.extend(exports, proto.meshtrade.compliance.client.v1);