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