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