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