@aceplus/smartace-api 3.7.0-alpha.1 → 3.7.0-alpha.10

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 (249) hide show
  1. package/auth.account_pb.d.ts +433 -0
  2. package/auth.account_pb.js +3141 -0
  3. package/auth.account_pb_service.d.ts +216 -0
  4. package/auth.account_pb_service.js +382 -0
  5. package/auth.account_two_factor_pb.d.ts +135 -0
  6. package/auth.account_two_factor_pb.js +1002 -0
  7. package/auth.account_two_factor_pb_service.d.ts +102 -0
  8. package/auth.account_two_factor_pb_service.js +142 -0
  9. package/auth.app_account_pb.d.ts +186 -0
  10. package/auth.app_account_pb.js +1343 -0
  11. package/auth.app_account_pb_service.d.ts +179 -0
  12. package/auth.app_account_pb_service.js +303 -0
  13. package/auth.app_authn_pb.d.ts +172 -0
  14. package/auth.app_authn_pb.js +1233 -0
  15. package/auth.app_authn_pb_service.d.ts +140 -0
  16. package/auth.app_authn_pb_service.js +222 -0
  17. package/auth.app_distribution_pb.d.ts +242 -0
  18. package/auth.app_distribution_pb.js +1854 -0
  19. package/auth.app_distribution_pb_service.d.ts +158 -0
  20. package/auth.app_distribution_pb_service.js +261 -0
  21. package/auth.authn_pb.d.ts +95 -0
  22. package/auth.authn_pb.js +637 -0
  23. package/auth.authn_pb_service.d.ts +82 -0
  24. package/auth.authn_pb_service.js +101 -0
  25. package/auth.cluster_pb.d.ts +142 -0
  26. package/auth.cluster_pb.js +1050 -0
  27. package/auth.cluster_pb_service.d.ts +82 -0
  28. package/auth.cluster_pb_service.js +101 -0
  29. package/auth.distribution_pb.d.ts +233 -0
  30. package/auth.distribution_pb.js +1785 -0
  31. package/auth.distribution_pb_service.d.ts +82 -0
  32. package/auth.distribution_pb_service.js +101 -0
  33. package/auth.email_pb.d.ts +217 -0
  34. package/auth.email_pb.js +1508 -0
  35. package/auth.email_pb_service.d.ts +102 -0
  36. package/auth.email_pb_service.js +142 -0
  37. package/auth.firmware_pb.d.ts +256 -0
  38. package/auth.firmware_pb.js +1997 -0
  39. package/auth.firmware_pb_service.d.ts +120 -0
  40. package/auth.firmware_pb_service.js +181 -0
  41. package/auth.passkey_pb.d.ts +239 -0
  42. package/auth.passkey_pb.js +1842 -0
  43. package/auth.passkey_pb_service.d.ts +160 -0
  44. package/auth.passkey_pb_service.js +263 -0
  45. package/auth.push_notification_pb.d.ts +69 -0
  46. package/auth.push_notification_pb.js +411 -0
  47. package/auth.push_notification_pb_service.d.ts +64 -0
  48. package/auth.push_notification_pb_service.js +62 -0
  49. package/auth.sms_pb.d.ts +79 -0
  50. package/auth.sms_pb.js +575 -0
  51. package/auth.sms_pb_service.d.ts +83 -0
  52. package/auth.sms_pb_service.js +102 -0
  53. package/google/api/annotations_pb.d.ts +9 -0
  54. package/google/api/annotations_pb.js +54 -0
  55. package/google/api/annotations_pb_service.d.ts +3 -0
  56. package/google/api/annotations_pb_service.js +3 -0
  57. package/google/api/auth_pb.d.ts +150 -0
  58. package/google/api/auth_pb.js +1160 -0
  59. package/google/api/auth_pb_service.d.ts +3 -0
  60. package/google/api/auth_pb_service.js +3 -0
  61. package/google/api/backend_pb.d.ts +59 -0
  62. package/google/api/backend_pb.js +448 -0
  63. package/google/api/backend_pb_service.d.ts +3 -0
  64. package/google/api/backend_pb_service.js +3 -0
  65. package/google/api/billing_pb.d.ts +54 -0
  66. package/google/api/billing_pb.js +416 -0
  67. package/google/api/billing_pb_service.d.ts +3 -0
  68. package/google/api/billing_pb_service.js +3 -0
  69. package/google/api/client_pb.d.ts +12 -0
  70. package/google/api/client_pb.js +104 -0
  71. package/google/api/client_pb_service.d.ts +3 -0
  72. package/google/api/client_pb_service.js +3 -0
  73. package/google/api/config_change_pb.d.ts +72 -0
  74. package/google/api/config_change_pb.js +489 -0
  75. package/google/api/config_change_pb_service.d.ts +3 -0
  76. package/google/api/config_change_pb_service.js +3 -0
  77. package/google/api/consumer_pb.d.ts +65 -0
  78. package/google/api/consumer_pb.js +430 -0
  79. package/google/api/consumer_pb_service.d.ts +3 -0
  80. package/google/api/consumer_pb_service.js +3 -0
  81. package/google/api/context_pb.d.ts +59 -0
  82. package/google/api/context_pb.js +463 -0
  83. package/google/api/context_pb_service.d.ts +3 -0
  84. package/google/api/context_pb_service.js +3 -0
  85. package/google/api/control_pb.d.ts +25 -0
  86. package/google/api/control_pb.js +176 -0
  87. package/google/api/control_pb_service.d.ts +3 -0
  88. package/google/api/control_pb_service.js +3 -0
  89. package/google/api/distribution_pb.d.ts +235 -0
  90. package/google/api/distribution_pb.js +1805 -0
  91. package/google/api/distribution_pb_service.d.ts +3 -0
  92. package/google/api/distribution_pb_service.js +3 -0
  93. package/google/api/documentation_pb.d.ts +103 -0
  94. package/google/api/documentation_pb.js +803 -0
  95. package/google/api/documentation_pb_service.d.ts +3 -0
  96. package/google/api/documentation_pb_service.js +3 -0
  97. package/google/api/endpoint_pb.d.ts +46 -0
  98. package/google/api/endpoint_pb.js +343 -0
  99. package/google/api/endpoint_pb_service.d.ts +3 -0
  100. package/google/api/endpoint_pb_service.js +3 -0
  101. package/google/api/error_reason_pb.d.ts +40 -0
  102. package/google/api/error_reason_pb.js +61 -0
  103. package/google/api/error_reason_pb_service.d.ts +3 -0
  104. package/google/api/error_reason_pb_service.js +3 -0
  105. package/google/api/field_behavior_pb.d.ts +20 -0
  106. package/google/api/field_behavior_pb.js +66 -0
  107. package/google/api/field_behavior_pb_service.d.ts +3 -0
  108. package/google/api/field_behavior_pb_service.js +3 -0
  109. package/google/api/http_pb.d.ts +136 -0
  110. package/google/api/http_pb.js +1012 -0
  111. package/google/api/http_pb_service.d.ts +3 -0
  112. package/google/api/http_pb_service.js +3 -0
  113. package/google/api/httpbody_pb.d.ts +38 -0
  114. package/google/api/httpbody_pb.js +292 -0
  115. package/google/api/httpbody_pb_service.d.ts +3 -0
  116. package/google/api/httpbody_pb_service.js +3 -0
  117. package/google/api/label_pb.d.ts +41 -0
  118. package/google/api/label_pb.js +246 -0
  119. package/google/api/label_pb_service.d.ts +3 -0
  120. package/google/api/label_pb_service.js +3 -0
  121. package/google/api/launch_stage_pb.d.ts +16 -0
  122. package/google/api/launch_stage_pb.js +37 -0
  123. package/google/api/launch_stage_pb_service.d.ts +3 -0
  124. package/google/api/launch_stage_pb_service.js +3 -0
  125. package/google/api/log_pb.d.ts +40 -0
  126. package/google/api/log_pb.js +298 -0
  127. package/google/api/log_pb_service.d.ts +3 -0
  128. package/google/api/log_pb_service.js +3 -0
  129. package/google/api/logging_pb.d.ts +60 -0
  130. package/google/api/logging_pb.js +469 -0
  131. package/google/api/logging_pb_service.d.ts +3 -0
  132. package/google/api/logging_pb_service.js +3 -0
  133. package/google/api/metric_pb.d.ts +100 -0
  134. package/google/api/metric_pb.js +629 -0
  135. package/google/api/metric_pb_service.d.ts +3 -0
  136. package/google/api/metric_pb_service.js +3 -0
  137. package/google/api/monitored_resource_pb.d.ts +93 -0
  138. package/google/api/monitored_resource_pb.js +723 -0
  139. package/google/api/monitored_resource_pb_service.d.ts +3 -0
  140. package/google/api/monitored_resource_pb_service.js +3 -0
  141. package/google/api/monitoring_pb.d.ts +60 -0
  142. package/google/api/monitoring_pb.js +469 -0
  143. package/google/api/monitoring_pb_service.d.ts +3 -0
  144. package/google/api/monitoring_pb_service.js +3 -0
  145. package/google/api/policy_pb.d.ts +64 -0
  146. package/google/api/policy_pb.js +502 -0
  147. package/google/api/policy_pb_service.d.ts +3 -0
  148. package/google/api/policy_pb_service.js +3 -0
  149. package/google/api/quota_pb.d.ts +112 -0
  150. package/google/api/quota_pb.js +873 -0
  151. package/google/api/quota_pb_service.d.ts +3 -0
  152. package/google/api/quota_pb_service.js +3 -0
  153. package/google/api/resource_pb.d.ts +99 -0
  154. package/google/api/resource_pb.js +684 -0
  155. package/google/api/resource_pb_service.d.ts +3 -0
  156. package/google/api/resource_pb_service.js +3 -0
  157. package/google/api/routing_pb.d.ts +54 -0
  158. package/google/api/routing_pb.js +416 -0
  159. package/google/api/routing_pb_service.d.ts +3 -0
  160. package/google/api/routing_pb_service.js +3 -0
  161. package/google/api/service_pb.d.ts +184 -0
  162. package/google/api/service_pb.js +1400 -0
  163. package/google/api/service_pb_service.d.ts +3 -0
  164. package/google/api/service_pb_service.js +3 -0
  165. package/google/api/source_info_pb.d.ts +28 -0
  166. package/google/api/source_info_pb.js +208 -0
  167. package/google/api/source_info_pb_service.d.ts +3 -0
  168. package/google/api/source_info_pb_service.js +3 -0
  169. package/google/api/system_parameter_pb.d.ts +81 -0
  170. package/google/api/system_parameter_pb.js +630 -0
  171. package/google/api/system_parameter_pb_service.d.ts +3 -0
  172. package/google/api/system_parameter_pb_service.js +3 -0
  173. package/google/api/usage_pb.d.ts +66 -0
  174. package/google/api/usage_pb.js +499 -0
  175. package/google/api/usage_pb_service.d.ts +3 -0
  176. package/google/api/usage_pb_service.js +3 -0
  177. package/google/api/visibility_pb.d.ts +64 -0
  178. package/google/api/visibility_pb.js +546 -0
  179. package/google/api/visibility_pb_service.d.ts +3 -0
  180. package/google/api/visibility_pb_service.js +3 -0
  181. package/meta.client_pb.d.ts +167 -0
  182. package/meta.client_pb.js +1266 -0
  183. package/meta.client_pb_service.d.ts +122 -0
  184. package/meta.client_pb_service.js +183 -0
  185. package/meta.spic_config_pb.d.ts +184 -0
  186. package/meta.spic_config_pb.js +1382 -0
  187. package/meta.spic_config_pb_service.d.ts +122 -0
  188. package/meta.spic_config_pb_service.js +183 -0
  189. package/package.json +1 -1
  190. package/platform.activity_log_pb.d.ts +177 -0
  191. package/platform.activity_log_pb.js +1294 -0
  192. package/platform.activity_log_pb_service.d.ts +82 -0
  193. package/platform.activity_log_pb_service.js +101 -0
  194. package/platform.client_pb.d.ts +350 -0
  195. package/platform.client_pb.js +2663 -0
  196. package/platform.client_pb_service.d.ts +158 -0
  197. package/platform.client_pb_service.js +261 -0
  198. package/platform.group_pb.d.ts +195 -0
  199. package/platform.group_pb.js +1476 -0
  200. package/platform.group_pb_service.d.ts +139 -0
  201. package/platform.group_pb_service.js +221 -0
  202. package/platform.local_account_internal_pb.d.ts +125 -0
  203. package/platform.local_account_internal_pb.js +933 -0
  204. package/platform.local_account_internal_pb_service.d.ts +121 -0
  205. package/platform.local_account_internal_pb_service.js +182 -0
  206. package/platform.local_account_pb.d.ts +466 -0
  207. package/platform.local_account_pb.js +3489 -0
  208. package/platform.local_account_pb_service.d.ts +331 -0
  209. package/platform.local_account_pb_service.js +623 -0
  210. package/platform.local_distribution_pb.d.ts +73 -0
  211. package/platform.local_distribution_pb.js +536 -0
  212. package/platform.local_distribution_pb_service.d.ts +63 -0
  213. package/platform.local_distribution_pb_service.js +61 -0
  214. package/platform.location_pb.d.ts +271 -0
  215. package/platform.location_pb.js +2046 -0
  216. package/platform.location_pb_service.d.ts +139 -0
  217. package/platform.location_pb_service.js +221 -0
  218. package/platform.pagination_pb.d.ts +45 -0
  219. package/platform.pagination_pb.js +276 -0
  220. package/platform.pagination_pb_service.d.ts +3 -0
  221. package/platform.pagination_pb_service.js +3 -0
  222. package/spic.alarm_pb.d.ts +382 -0
  223. package/spic.alarm_pb.js +2915 -0
  224. package/spic.alarm_pb_service.d.ts +101 -0
  225. package/spic.alarm_pb_service.js +141 -0
  226. package/spic.asset_pb.d.ts +697 -0
  227. package/spic.asset_pb.js +4995 -0
  228. package/spic.asset_pb_service.d.ts +197 -0
  229. package/spic.asset_pb_service.js +342 -0
  230. package/spic.cabinet_pb.d.ts +1062 -0
  231. package/spic.cabinet_pb.js +7723 -0
  232. package/spic.cabinet_pb_service.d.ts +245 -0
  233. package/spic.cabinet_pb_service.js +437 -0
  234. package/spic.config_pb.d.ts +249 -0
  235. package/spic.config_pb.js +1891 -0
  236. package/spic.config_pb_service.d.ts +120 -0
  237. package/spic.config_pb_service.js +181 -0
  238. package/spic.contractor_pb.d.ts +195 -0
  239. package/spic.contractor_pb.js +1476 -0
  240. package/spic.contractor_pb_service.d.ts +139 -0
  241. package/spic.contractor_pb_service.js +221 -0
  242. package/spic.history_pb.d.ts +142 -0
  243. package/spic.history_pb.js +1130 -0
  244. package/spic.history_pb_service.d.ts +63 -0
  245. package/spic.history_pb_service.js +61 -0
  246. package/spic.open_request_pb.d.ts +237 -0
  247. package/spic.open_request_pb.js +1784 -0
  248. package/spic.open_request_pb_service.d.ts +101 -0
  249. package/spic.open_request_pb_service.js +141 -0
@@ -0,0 +1,3489 @@
1
+ // source: platform.local_account.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 auth_account_pb = require('./auth.account_pb.js');
25
+ goog.object.extend(proto, auth_account_pb);
26
+ var google_api_annotations_pb = require('./google/api/annotations_pb.js');
27
+ goog.object.extend(proto, google_api_annotations_pb);
28
+ var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
29
+ goog.object.extend(proto, google_protobuf_empty_pb);
30
+ var platform_pagination_pb = require('./platform.pagination_pb.js');
31
+ goog.object.extend(proto, platform_pagination_pb);
32
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
33
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
34
+ goog.exportSymbol('proto.Platform.LocalAccountProto', null, global);
35
+ goog.exportSymbol('proto.Platform.LocalAccountProto.AccountTypes', null, global);
36
+ goog.exportSymbol('proto.Platform.LocalAccountProto.CreateAdminRequest', null, global);
37
+ goog.exportSymbol('proto.Platform.LocalAccountProto.CreateAppRequest', null, global);
38
+ goog.exportSymbol('proto.Platform.LocalAccountProto.DeleteRequest', null, global);
39
+ goog.exportSymbol('proto.Platform.LocalAccountProto.DisableAccount', null, global);
40
+ goog.exportSymbol('proto.Platform.LocalAccountProto.EnableAccount', null, global);
41
+ goog.exportSymbol('proto.Platform.LocalAccountProto.ResendInvitationRequest', null, global);
42
+ goog.exportSymbol('proto.Platform.LocalAccountProto.RetrieveRequest', null, global);
43
+ goog.exportSymbol('proto.Platform.LocalAccountProto.RetrieveRequest.SearchCase', null, global);
44
+ goog.exportSymbol('proto.Platform.LocalAccountProto.SearchReply', null, global);
45
+ goog.exportSymbol('proto.Platform.LocalAccountProto.SearchRequest', null, global);
46
+ goog.exportSymbol('proto.Platform.LocalAccountProto.SetClientRequest', null, global);
47
+ goog.exportSymbol('proto.Platform.LocalAccountProto.UpdateExpiredAt', null, global);
48
+ goog.exportSymbol('proto.Platform.LocalAccountProto.UpdateRequest', null, global);
49
+ /**
50
+ * Generated by JsPbCodeGenerator.
51
+ * @param {Array=} opt_data Optional initial data array, typically from a
52
+ * server response, or constructed directly in Javascript. The array is used
53
+ * in place and becomes part of the constructed object. It is not cloned.
54
+ * If no data is provided, the constructed object will be empty, but still
55
+ * valid.
56
+ * @extends {jspb.Message}
57
+ * @constructor
58
+ */
59
+ proto.Platform.LocalAccountProto = function(opt_data) {
60
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Platform.LocalAccountProto.repeatedFields_, null);
61
+ };
62
+ goog.inherits(proto.Platform.LocalAccountProto, jspb.Message);
63
+ if (goog.DEBUG && !COMPILED) {
64
+ /**
65
+ * @public
66
+ * @override
67
+ */
68
+ proto.Platform.LocalAccountProto.displayName = 'proto.Platform.LocalAccountProto';
69
+ }
70
+ /**
71
+ * Generated by JsPbCodeGenerator.
72
+ * @param {Array=} opt_data Optional initial data array, typically from a
73
+ * server response, or constructed directly in Javascript. The array is used
74
+ * in place and becomes part of the constructed object. It is not cloned.
75
+ * If no data is provided, the constructed object will be empty, but still
76
+ * valid.
77
+ * @extends {jspb.Message}
78
+ * @constructor
79
+ */
80
+ proto.Platform.LocalAccountProto.RetrieveRequest = function(opt_data) {
81
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.Platform.LocalAccountProto.RetrieveRequest.oneofGroups_);
82
+ };
83
+ goog.inherits(proto.Platform.LocalAccountProto.RetrieveRequest, jspb.Message);
84
+ if (goog.DEBUG && !COMPILED) {
85
+ /**
86
+ * @public
87
+ * @override
88
+ */
89
+ proto.Platform.LocalAccountProto.RetrieveRequest.displayName = 'proto.Platform.LocalAccountProto.RetrieveRequest';
90
+ }
91
+ /**
92
+ * Generated by JsPbCodeGenerator.
93
+ * @param {Array=} opt_data Optional initial data array, typically from a
94
+ * server response, or constructed directly in Javascript. The array is used
95
+ * in place and becomes part of the constructed object. It is not cloned.
96
+ * If no data is provided, the constructed object will be empty, but still
97
+ * valid.
98
+ * @extends {jspb.Message}
99
+ * @constructor
100
+ */
101
+ proto.Platform.LocalAccountProto.CreateAdminRequest = function(opt_data) {
102
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Platform.LocalAccountProto.CreateAdminRequest.repeatedFields_, null);
103
+ };
104
+ goog.inherits(proto.Platform.LocalAccountProto.CreateAdminRequest, jspb.Message);
105
+ if (goog.DEBUG && !COMPILED) {
106
+ /**
107
+ * @public
108
+ * @override
109
+ */
110
+ proto.Platform.LocalAccountProto.CreateAdminRequest.displayName = 'proto.Platform.LocalAccountProto.CreateAdminRequest';
111
+ }
112
+ /**
113
+ * Generated by JsPbCodeGenerator.
114
+ * @param {Array=} opt_data Optional initial data array, typically from a
115
+ * server response, or constructed directly in Javascript. The array is used
116
+ * in place and becomes part of the constructed object. It is not cloned.
117
+ * If no data is provided, the constructed object will be empty, but still
118
+ * valid.
119
+ * @extends {jspb.Message}
120
+ * @constructor
121
+ */
122
+ proto.Platform.LocalAccountProto.CreateAppRequest = function(opt_data) {
123
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
124
+ };
125
+ goog.inherits(proto.Platform.LocalAccountProto.CreateAppRequest, jspb.Message);
126
+ if (goog.DEBUG && !COMPILED) {
127
+ /**
128
+ * @public
129
+ * @override
130
+ */
131
+ proto.Platform.LocalAccountProto.CreateAppRequest.displayName = 'proto.Platform.LocalAccountProto.CreateAppRequest';
132
+ }
133
+ /**
134
+ * Generated by JsPbCodeGenerator.
135
+ * @param {Array=} opt_data Optional initial data array, typically from a
136
+ * server response, or constructed directly in Javascript. The array is used
137
+ * in place and becomes part of the constructed object. It is not cloned.
138
+ * If no data is provided, the constructed object will be empty, but still
139
+ * valid.
140
+ * @extends {jspb.Message}
141
+ * @constructor
142
+ */
143
+ proto.Platform.LocalAccountProto.UpdateRequest = function(opt_data) {
144
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Platform.LocalAccountProto.UpdateRequest.repeatedFields_, null);
145
+ };
146
+ goog.inherits(proto.Platform.LocalAccountProto.UpdateRequest, jspb.Message);
147
+ if (goog.DEBUG && !COMPILED) {
148
+ /**
149
+ * @public
150
+ * @override
151
+ */
152
+ proto.Platform.LocalAccountProto.UpdateRequest.displayName = 'proto.Platform.LocalAccountProto.UpdateRequest';
153
+ }
154
+ /**
155
+ * Generated by JsPbCodeGenerator.
156
+ * @param {Array=} opt_data Optional initial data array, typically from a
157
+ * server response, or constructed directly in Javascript. The array is used
158
+ * in place and becomes part of the constructed object. It is not cloned.
159
+ * If no data is provided, the constructed object will be empty, but still
160
+ * valid.
161
+ * @extends {jspb.Message}
162
+ * @constructor
163
+ */
164
+ proto.Platform.LocalAccountProto.DeleteRequest = function(opt_data) {
165
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
166
+ };
167
+ goog.inherits(proto.Platform.LocalAccountProto.DeleteRequest, jspb.Message);
168
+ if (goog.DEBUG && !COMPILED) {
169
+ /**
170
+ * @public
171
+ * @override
172
+ */
173
+ proto.Platform.LocalAccountProto.DeleteRequest.displayName = 'proto.Platform.LocalAccountProto.DeleteRequest';
174
+ }
175
+ /**
176
+ * Generated by JsPbCodeGenerator.
177
+ * @param {Array=} opt_data Optional initial data array, typically from a
178
+ * server response, or constructed directly in Javascript. The array is used
179
+ * in place and becomes part of the constructed object. It is not cloned.
180
+ * If no data is provided, the constructed object will be empty, but still
181
+ * valid.
182
+ * @extends {jspb.Message}
183
+ * @constructor
184
+ */
185
+ proto.Platform.LocalAccountProto.SearchRequest = function(opt_data) {
186
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
187
+ };
188
+ goog.inherits(proto.Platform.LocalAccountProto.SearchRequest, jspb.Message);
189
+ if (goog.DEBUG && !COMPILED) {
190
+ /**
191
+ * @public
192
+ * @override
193
+ */
194
+ proto.Platform.LocalAccountProto.SearchRequest.displayName = 'proto.Platform.LocalAccountProto.SearchRequest';
195
+ }
196
+ /**
197
+ * Generated by JsPbCodeGenerator.
198
+ * @param {Array=} opt_data Optional initial data array, typically from a
199
+ * server response, or constructed directly in Javascript. The array is used
200
+ * in place and becomes part of the constructed object. It is not cloned.
201
+ * If no data is provided, the constructed object will be empty, but still
202
+ * valid.
203
+ * @extends {jspb.Message}
204
+ * @constructor
205
+ */
206
+ proto.Platform.LocalAccountProto.SearchReply = function(opt_data) {
207
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Platform.LocalAccountProto.SearchReply.repeatedFields_, null);
208
+ };
209
+ goog.inherits(proto.Platform.LocalAccountProto.SearchReply, jspb.Message);
210
+ if (goog.DEBUG && !COMPILED) {
211
+ /**
212
+ * @public
213
+ * @override
214
+ */
215
+ proto.Platform.LocalAccountProto.SearchReply.displayName = 'proto.Platform.LocalAccountProto.SearchReply';
216
+ }
217
+ /**
218
+ * Generated by JsPbCodeGenerator.
219
+ * @param {Array=} opt_data Optional initial data array, typically from a
220
+ * server response, or constructed directly in Javascript. The array is used
221
+ * in place and becomes part of the constructed object. It is not cloned.
222
+ * If no data is provided, the constructed object will be empty, but still
223
+ * valid.
224
+ * @extends {jspb.Message}
225
+ * @constructor
226
+ */
227
+ proto.Platform.LocalAccountProto.SetClientRequest = function(opt_data) {
228
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
229
+ };
230
+ goog.inherits(proto.Platform.LocalAccountProto.SetClientRequest, jspb.Message);
231
+ if (goog.DEBUG && !COMPILED) {
232
+ /**
233
+ * @public
234
+ * @override
235
+ */
236
+ proto.Platform.LocalAccountProto.SetClientRequest.displayName = 'proto.Platform.LocalAccountProto.SetClientRequest';
237
+ }
238
+ /**
239
+ * Generated by JsPbCodeGenerator.
240
+ * @param {Array=} opt_data Optional initial data array, typically from a
241
+ * server response, or constructed directly in Javascript. The array is used
242
+ * in place and becomes part of the constructed object. It is not cloned.
243
+ * If no data is provided, the constructed object will be empty, but still
244
+ * valid.
245
+ * @extends {jspb.Message}
246
+ * @constructor
247
+ */
248
+ proto.Platform.LocalAccountProto.EnableAccount = function(opt_data) {
249
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
250
+ };
251
+ goog.inherits(proto.Platform.LocalAccountProto.EnableAccount, jspb.Message);
252
+ if (goog.DEBUG && !COMPILED) {
253
+ /**
254
+ * @public
255
+ * @override
256
+ */
257
+ proto.Platform.LocalAccountProto.EnableAccount.displayName = 'proto.Platform.LocalAccountProto.EnableAccount';
258
+ }
259
+ /**
260
+ * Generated by JsPbCodeGenerator.
261
+ * @param {Array=} opt_data Optional initial data array, typically from a
262
+ * server response, or constructed directly in Javascript. The array is used
263
+ * in place and becomes part of the constructed object. It is not cloned.
264
+ * If no data is provided, the constructed object will be empty, but still
265
+ * valid.
266
+ * @extends {jspb.Message}
267
+ * @constructor
268
+ */
269
+ proto.Platform.LocalAccountProto.DisableAccount = function(opt_data) {
270
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
271
+ };
272
+ goog.inherits(proto.Platform.LocalAccountProto.DisableAccount, jspb.Message);
273
+ if (goog.DEBUG && !COMPILED) {
274
+ /**
275
+ * @public
276
+ * @override
277
+ */
278
+ proto.Platform.LocalAccountProto.DisableAccount.displayName = 'proto.Platform.LocalAccountProto.DisableAccount';
279
+ }
280
+ /**
281
+ * Generated by JsPbCodeGenerator.
282
+ * @param {Array=} opt_data Optional initial data array, typically from a
283
+ * server response, or constructed directly in Javascript. The array is used
284
+ * in place and becomes part of the constructed object. It is not cloned.
285
+ * If no data is provided, the constructed object will be empty, but still
286
+ * valid.
287
+ * @extends {jspb.Message}
288
+ * @constructor
289
+ */
290
+ proto.Platform.LocalAccountProto.UpdateExpiredAt = function(opt_data) {
291
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
292
+ };
293
+ goog.inherits(proto.Platform.LocalAccountProto.UpdateExpiredAt, jspb.Message);
294
+ if (goog.DEBUG && !COMPILED) {
295
+ /**
296
+ * @public
297
+ * @override
298
+ */
299
+ proto.Platform.LocalAccountProto.UpdateExpiredAt.displayName = 'proto.Platform.LocalAccountProto.UpdateExpiredAt';
300
+ }
301
+ /**
302
+ * Generated by JsPbCodeGenerator.
303
+ * @param {Array=} opt_data Optional initial data array, typically from a
304
+ * server response, or constructed directly in Javascript. The array is used
305
+ * in place and becomes part of the constructed object. It is not cloned.
306
+ * If no data is provided, the constructed object will be empty, but still
307
+ * valid.
308
+ * @extends {jspb.Message}
309
+ * @constructor
310
+ */
311
+ proto.Platform.LocalAccountProto.ResendInvitationRequest = function(opt_data) {
312
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
313
+ };
314
+ goog.inherits(proto.Platform.LocalAccountProto.ResendInvitationRequest, jspb.Message);
315
+ if (goog.DEBUG && !COMPILED) {
316
+ /**
317
+ * @public
318
+ * @override
319
+ */
320
+ proto.Platform.LocalAccountProto.ResendInvitationRequest.displayName = 'proto.Platform.LocalAccountProto.ResendInvitationRequest';
321
+ }
322
+
323
+ /**
324
+ * List of repeated fields within this message type.
325
+ * @private {!Array<number>}
326
+ * @const
327
+ */
328
+ proto.Platform.LocalAccountProto.repeatedFields_ = [11];
329
+
330
+
331
+
332
+ if (jspb.Message.GENERATE_TO_OBJECT) {
333
+ /**
334
+ * Creates an object representation of this proto.
335
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
336
+ * Optional fields that are not set will be set to undefined.
337
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
338
+ * For the list of reserved names please see:
339
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
340
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
341
+ * JSPB instance for transitional soy proto support:
342
+ * http://goto/soy-param-migration
343
+ * @return {!Object}
344
+ */
345
+ proto.Platform.LocalAccountProto.prototype.toObject = function(opt_includeInstance) {
346
+ return proto.Platform.LocalAccountProto.toObject(opt_includeInstance, this);
347
+ };
348
+
349
+
350
+ /**
351
+ * Static version of the {@see toObject} method.
352
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
353
+ * the JSPB instance for transitional soy proto support:
354
+ * http://goto/soy-param-migration
355
+ * @param {!proto.Platform.LocalAccountProto} msg The msg instance to transform.
356
+ * @return {!Object}
357
+ * @suppress {unusedLocalVariables} f is only used for nested messages
358
+ */
359
+ proto.Platform.LocalAccountProto.toObject = function(includeInstance, msg) {
360
+ var f, obj = {
361
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
362
+ email: jspb.Message.getFieldWithDefault(msg, 2, ""),
363
+ phone: jspb.Message.getFieldWithDefault(msg, 3, ""),
364
+ lastName: jspb.Message.getFieldWithDefault(msg, 4, ""),
365
+ firstName: jspb.Message.getFieldWithDefault(msg, 5, ""),
366
+ locale: jspb.Message.getFieldWithDefault(msg, 6, ""),
367
+ company: jspb.Message.getFieldWithDefault(msg, 7, ""),
368
+ groupId: jspb.Message.getFieldWithDefault(msg, 8, ""),
369
+ enabled: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
370
+ expiredAt: (f = msg.getExpiredAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
371
+ clientRolesList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f,
372
+ status: jspb.Message.getFieldWithDefault(msg, 12, 0),
373
+ deleted: jspb.Message.getBooleanFieldWithDefault(msg, 13, false),
374
+ clientId: jspb.Message.getFieldWithDefault(msg, 14, 0),
375
+ type: jspb.Message.getFieldWithDefault(msg, 15, 0),
376
+ clientName: jspb.Message.getFieldWithDefault(msg, 16, "")
377
+ };
378
+
379
+ if (includeInstance) {
380
+ obj.$jspbMessageInstance = msg;
381
+ }
382
+ return obj;
383
+ };
384
+ }
385
+
386
+
387
+ /**
388
+ * Deserializes binary data (in protobuf wire format).
389
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
390
+ * @return {!proto.Platform.LocalAccountProto}
391
+ */
392
+ proto.Platform.LocalAccountProto.deserializeBinary = function(bytes) {
393
+ var reader = new jspb.BinaryReader(bytes);
394
+ var msg = new proto.Platform.LocalAccountProto;
395
+ return proto.Platform.LocalAccountProto.deserializeBinaryFromReader(msg, reader);
396
+ };
397
+
398
+
399
+ /**
400
+ * Deserializes binary data (in protobuf wire format) from the
401
+ * given reader into the given message object.
402
+ * @param {!proto.Platform.LocalAccountProto} msg The message object to deserialize into.
403
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
404
+ * @return {!proto.Platform.LocalAccountProto}
405
+ */
406
+ proto.Platform.LocalAccountProto.deserializeBinaryFromReader = function(msg, reader) {
407
+ while (reader.nextField()) {
408
+ if (reader.isEndGroup()) {
409
+ break;
410
+ }
411
+ var field = reader.getFieldNumber();
412
+ switch (field) {
413
+ case 1:
414
+ var value = /** @type {number} */ (reader.readInt64());
415
+ msg.setId(value);
416
+ break;
417
+ case 2:
418
+ var value = /** @type {string} */ (reader.readString());
419
+ msg.setEmail(value);
420
+ break;
421
+ case 3:
422
+ var value = /** @type {string} */ (reader.readString());
423
+ msg.setPhone(value);
424
+ break;
425
+ case 4:
426
+ var value = /** @type {string} */ (reader.readString());
427
+ msg.setLastName(value);
428
+ break;
429
+ case 5:
430
+ var value = /** @type {string} */ (reader.readString());
431
+ msg.setFirstName(value);
432
+ break;
433
+ case 6:
434
+ var value = /** @type {string} */ (reader.readString());
435
+ msg.setLocale(value);
436
+ break;
437
+ case 7:
438
+ var value = /** @type {string} */ (reader.readString());
439
+ msg.setCompany(value);
440
+ break;
441
+ case 8:
442
+ var value = /** @type {string} */ (reader.readString());
443
+ msg.setGroupId(value);
444
+ break;
445
+ case 9:
446
+ var value = /** @type {boolean} */ (reader.readBool());
447
+ msg.setEnabled(value);
448
+ break;
449
+ case 10:
450
+ var value = new google_protobuf_timestamp_pb.Timestamp;
451
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
452
+ msg.setExpiredAt(value);
453
+ break;
454
+ case 11:
455
+ var values = /** @type {!Array<!proto.Auth.AccountProto.Roles>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
456
+ for (var i = 0; i < values.length; i++) {
457
+ msg.addClientRoles(values[i]);
458
+ }
459
+ break;
460
+ case 12:
461
+ var value = /** @type {!proto.Auth.AccountProto.ActivationStatuses} */ (reader.readEnum());
462
+ msg.setStatus(value);
463
+ break;
464
+ case 13:
465
+ var value = /** @type {boolean} */ (reader.readBool());
466
+ msg.setDeleted(value);
467
+ break;
468
+ case 14:
469
+ var value = /** @type {number} */ (reader.readInt64());
470
+ msg.setClientId(value);
471
+ break;
472
+ case 15:
473
+ var value = /** @type {!proto.Platform.LocalAccountProto.AccountTypes} */ (reader.readEnum());
474
+ msg.setType(value);
475
+ break;
476
+ case 16:
477
+ var value = /** @type {string} */ (reader.readString());
478
+ msg.setClientName(value);
479
+ break;
480
+ default:
481
+ reader.skipField();
482
+ break;
483
+ }
484
+ }
485
+ return msg;
486
+ };
487
+
488
+
489
+ /**
490
+ * Serializes the message to binary data (in protobuf wire format).
491
+ * @return {!Uint8Array}
492
+ */
493
+ proto.Platform.LocalAccountProto.prototype.serializeBinary = function() {
494
+ var writer = new jspb.BinaryWriter();
495
+ proto.Platform.LocalAccountProto.serializeBinaryToWriter(this, writer);
496
+ return writer.getResultBuffer();
497
+ };
498
+
499
+
500
+ /**
501
+ * Serializes the given message to binary data (in protobuf wire
502
+ * format), writing to the given BinaryWriter.
503
+ * @param {!proto.Platform.LocalAccountProto} message
504
+ * @param {!jspb.BinaryWriter} writer
505
+ * @suppress {unusedLocalVariables} f is only used for nested messages
506
+ */
507
+ proto.Platform.LocalAccountProto.serializeBinaryToWriter = function(message, writer) {
508
+ var f = undefined;
509
+ f = message.getId();
510
+ if (f !== 0) {
511
+ writer.writeInt64(
512
+ 1,
513
+ f
514
+ );
515
+ }
516
+ f = message.getEmail();
517
+ if (f.length > 0) {
518
+ writer.writeString(
519
+ 2,
520
+ f
521
+ );
522
+ }
523
+ f = message.getPhone();
524
+ if (f.length > 0) {
525
+ writer.writeString(
526
+ 3,
527
+ f
528
+ );
529
+ }
530
+ f = message.getLastName();
531
+ if (f.length > 0) {
532
+ writer.writeString(
533
+ 4,
534
+ f
535
+ );
536
+ }
537
+ f = message.getFirstName();
538
+ if (f.length > 0) {
539
+ writer.writeString(
540
+ 5,
541
+ f
542
+ );
543
+ }
544
+ f = message.getLocale();
545
+ if (f.length > 0) {
546
+ writer.writeString(
547
+ 6,
548
+ f
549
+ );
550
+ }
551
+ f = message.getCompany();
552
+ if (f.length > 0) {
553
+ writer.writeString(
554
+ 7,
555
+ f
556
+ );
557
+ }
558
+ f = message.getGroupId();
559
+ if (f.length > 0) {
560
+ writer.writeString(
561
+ 8,
562
+ f
563
+ );
564
+ }
565
+ f = message.getEnabled();
566
+ if (f) {
567
+ writer.writeBool(
568
+ 9,
569
+ f
570
+ );
571
+ }
572
+ f = message.getExpiredAt();
573
+ if (f != null) {
574
+ writer.writeMessage(
575
+ 10,
576
+ f,
577
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
578
+ );
579
+ }
580
+ f = message.getClientRolesList();
581
+ if (f.length > 0) {
582
+ writer.writePackedEnum(
583
+ 11,
584
+ f
585
+ );
586
+ }
587
+ f = message.getStatus();
588
+ if (f !== 0.0) {
589
+ writer.writeEnum(
590
+ 12,
591
+ f
592
+ );
593
+ }
594
+ f = message.getDeleted();
595
+ if (f) {
596
+ writer.writeBool(
597
+ 13,
598
+ f
599
+ );
600
+ }
601
+ f = message.getClientId();
602
+ if (f !== 0) {
603
+ writer.writeInt64(
604
+ 14,
605
+ f
606
+ );
607
+ }
608
+ f = message.getType();
609
+ if (f !== 0.0) {
610
+ writer.writeEnum(
611
+ 15,
612
+ f
613
+ );
614
+ }
615
+ f = message.getClientName();
616
+ if (f.length > 0) {
617
+ writer.writeString(
618
+ 16,
619
+ f
620
+ );
621
+ }
622
+ };
623
+
624
+
625
+ /**
626
+ * @enum {number}
627
+ */
628
+ proto.Platform.LocalAccountProto.AccountTypes = {
629
+ ADMIN: 0,
630
+ APP: 1
631
+ };
632
+
633
+
634
+ /**
635
+ * Oneof group definitions for this message. Each group defines the field
636
+ * numbers belonging to that group. When of these fields' value is set, all
637
+ * other fields in the group are cleared. During deserialization, if multiple
638
+ * fields are encountered for a group, only the last value seen will be kept.
639
+ * @private {!Array<!Array<number>>}
640
+ * @const
641
+ */
642
+ proto.Platform.LocalAccountProto.RetrieveRequest.oneofGroups_ = [[1,2]];
643
+
644
+ /**
645
+ * @enum {number}
646
+ */
647
+ proto.Platform.LocalAccountProto.RetrieveRequest.SearchCase = {
648
+ SEARCH_NOT_SET: 0,
649
+ ID: 1,
650
+ AUTH_ID: 2
651
+ };
652
+
653
+ /**
654
+ * @return {proto.Platform.LocalAccountProto.RetrieveRequest.SearchCase}
655
+ */
656
+ proto.Platform.LocalAccountProto.RetrieveRequest.prototype.getSearchCase = function() {
657
+ return /** @type {proto.Platform.LocalAccountProto.RetrieveRequest.SearchCase} */(jspb.Message.computeOneofCase(this, proto.Platform.LocalAccountProto.RetrieveRequest.oneofGroups_[0]));
658
+ };
659
+
660
+
661
+
662
+ if (jspb.Message.GENERATE_TO_OBJECT) {
663
+ /**
664
+ * Creates an object representation of this proto.
665
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
666
+ * Optional fields that are not set will be set to undefined.
667
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
668
+ * For the list of reserved names please see:
669
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
670
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
671
+ * JSPB instance for transitional soy proto support:
672
+ * http://goto/soy-param-migration
673
+ * @return {!Object}
674
+ */
675
+ proto.Platform.LocalAccountProto.RetrieveRequest.prototype.toObject = function(opt_includeInstance) {
676
+ return proto.Platform.LocalAccountProto.RetrieveRequest.toObject(opt_includeInstance, this);
677
+ };
678
+
679
+
680
+ /**
681
+ * Static version of the {@see toObject} method.
682
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
683
+ * the JSPB instance for transitional soy proto support:
684
+ * http://goto/soy-param-migration
685
+ * @param {!proto.Platform.LocalAccountProto.RetrieveRequest} msg The msg instance to transform.
686
+ * @return {!Object}
687
+ * @suppress {unusedLocalVariables} f is only used for nested messages
688
+ */
689
+ proto.Platform.LocalAccountProto.RetrieveRequest.toObject = function(includeInstance, msg) {
690
+ var f, obj = {
691
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
692
+ authId: jspb.Message.getFieldWithDefault(msg, 2, 0),
693
+ clientId: jspb.Message.getFieldWithDefault(msg, 3, 0)
694
+ };
695
+
696
+ if (includeInstance) {
697
+ obj.$jspbMessageInstance = msg;
698
+ }
699
+ return obj;
700
+ };
701
+ }
702
+
703
+
704
+ /**
705
+ * Deserializes binary data (in protobuf wire format).
706
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
707
+ * @return {!proto.Platform.LocalAccountProto.RetrieveRequest}
708
+ */
709
+ proto.Platform.LocalAccountProto.RetrieveRequest.deserializeBinary = function(bytes) {
710
+ var reader = new jspb.BinaryReader(bytes);
711
+ var msg = new proto.Platform.LocalAccountProto.RetrieveRequest;
712
+ return proto.Platform.LocalAccountProto.RetrieveRequest.deserializeBinaryFromReader(msg, reader);
713
+ };
714
+
715
+
716
+ /**
717
+ * Deserializes binary data (in protobuf wire format) from the
718
+ * given reader into the given message object.
719
+ * @param {!proto.Platform.LocalAccountProto.RetrieveRequest} msg The message object to deserialize into.
720
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
721
+ * @return {!proto.Platform.LocalAccountProto.RetrieveRequest}
722
+ */
723
+ proto.Platform.LocalAccountProto.RetrieveRequest.deserializeBinaryFromReader = function(msg, reader) {
724
+ while (reader.nextField()) {
725
+ if (reader.isEndGroup()) {
726
+ break;
727
+ }
728
+ var field = reader.getFieldNumber();
729
+ switch (field) {
730
+ case 1:
731
+ var value = /** @type {number} */ (reader.readInt64());
732
+ msg.setId(value);
733
+ break;
734
+ case 2:
735
+ var value = /** @type {number} */ (reader.readInt64());
736
+ msg.setAuthId(value);
737
+ break;
738
+ case 3:
739
+ var value = /** @type {number} */ (reader.readInt64());
740
+ msg.setClientId(value);
741
+ break;
742
+ default:
743
+ reader.skipField();
744
+ break;
745
+ }
746
+ }
747
+ return msg;
748
+ };
749
+
750
+
751
+ /**
752
+ * Serializes the message to binary data (in protobuf wire format).
753
+ * @return {!Uint8Array}
754
+ */
755
+ proto.Platform.LocalAccountProto.RetrieveRequest.prototype.serializeBinary = function() {
756
+ var writer = new jspb.BinaryWriter();
757
+ proto.Platform.LocalAccountProto.RetrieveRequest.serializeBinaryToWriter(this, writer);
758
+ return writer.getResultBuffer();
759
+ };
760
+
761
+
762
+ /**
763
+ * Serializes the given message to binary data (in protobuf wire
764
+ * format), writing to the given BinaryWriter.
765
+ * @param {!proto.Platform.LocalAccountProto.RetrieveRequest} message
766
+ * @param {!jspb.BinaryWriter} writer
767
+ * @suppress {unusedLocalVariables} f is only used for nested messages
768
+ */
769
+ proto.Platform.LocalAccountProto.RetrieveRequest.serializeBinaryToWriter = function(message, writer) {
770
+ var f = undefined;
771
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
772
+ if (f != null) {
773
+ writer.writeInt64(
774
+ 1,
775
+ f
776
+ );
777
+ }
778
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
779
+ if (f != null) {
780
+ writer.writeInt64(
781
+ 2,
782
+ f
783
+ );
784
+ }
785
+ f = message.getClientId();
786
+ if (f !== 0) {
787
+ writer.writeInt64(
788
+ 3,
789
+ f
790
+ );
791
+ }
792
+ };
793
+
794
+
795
+ /**
796
+ * optional int64 id = 1;
797
+ * @return {number}
798
+ */
799
+ proto.Platform.LocalAccountProto.RetrieveRequest.prototype.getId = function() {
800
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
801
+ };
802
+
803
+
804
+ /**
805
+ * @param {number} value
806
+ * @return {!proto.Platform.LocalAccountProto.RetrieveRequest} returns this
807
+ */
808
+ proto.Platform.LocalAccountProto.RetrieveRequest.prototype.setId = function(value) {
809
+ return jspb.Message.setOneofField(this, 1, proto.Platform.LocalAccountProto.RetrieveRequest.oneofGroups_[0], value);
810
+ };
811
+
812
+
813
+ /**
814
+ * Clears the field making it undefined.
815
+ * @return {!proto.Platform.LocalAccountProto.RetrieveRequest} returns this
816
+ */
817
+ proto.Platform.LocalAccountProto.RetrieveRequest.prototype.clearId = function() {
818
+ return jspb.Message.setOneofField(this, 1, proto.Platform.LocalAccountProto.RetrieveRequest.oneofGroups_[0], undefined);
819
+ };
820
+
821
+
822
+ /**
823
+ * Returns whether this field is set.
824
+ * @return {boolean}
825
+ */
826
+ proto.Platform.LocalAccountProto.RetrieveRequest.prototype.hasId = function() {
827
+ return jspb.Message.getField(this, 1) != null;
828
+ };
829
+
830
+
831
+ /**
832
+ * optional int64 auth_id = 2;
833
+ * @return {number}
834
+ */
835
+ proto.Platform.LocalAccountProto.RetrieveRequest.prototype.getAuthId = function() {
836
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
837
+ };
838
+
839
+
840
+ /**
841
+ * @param {number} value
842
+ * @return {!proto.Platform.LocalAccountProto.RetrieveRequest} returns this
843
+ */
844
+ proto.Platform.LocalAccountProto.RetrieveRequest.prototype.setAuthId = function(value) {
845
+ return jspb.Message.setOneofField(this, 2, proto.Platform.LocalAccountProto.RetrieveRequest.oneofGroups_[0], value);
846
+ };
847
+
848
+
849
+ /**
850
+ * Clears the field making it undefined.
851
+ * @return {!proto.Platform.LocalAccountProto.RetrieveRequest} returns this
852
+ */
853
+ proto.Platform.LocalAccountProto.RetrieveRequest.prototype.clearAuthId = function() {
854
+ return jspb.Message.setOneofField(this, 2, proto.Platform.LocalAccountProto.RetrieveRequest.oneofGroups_[0], undefined);
855
+ };
856
+
857
+
858
+ /**
859
+ * Returns whether this field is set.
860
+ * @return {boolean}
861
+ */
862
+ proto.Platform.LocalAccountProto.RetrieveRequest.prototype.hasAuthId = function() {
863
+ return jspb.Message.getField(this, 2) != null;
864
+ };
865
+
866
+
867
+ /**
868
+ * optional int64 client_id = 3;
869
+ * @return {number}
870
+ */
871
+ proto.Platform.LocalAccountProto.RetrieveRequest.prototype.getClientId = function() {
872
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
873
+ };
874
+
875
+
876
+ /**
877
+ * @param {number} value
878
+ * @return {!proto.Platform.LocalAccountProto.RetrieveRequest} returns this
879
+ */
880
+ proto.Platform.LocalAccountProto.RetrieveRequest.prototype.setClientId = function(value) {
881
+ return jspb.Message.setProto3IntField(this, 3, value);
882
+ };
883
+
884
+
885
+
886
+ /**
887
+ * List of repeated fields within this message type.
888
+ * @private {!Array<number>}
889
+ * @const
890
+ */
891
+ proto.Platform.LocalAccountProto.CreateAdminRequest.repeatedFields_ = [8];
892
+
893
+
894
+
895
+ if (jspb.Message.GENERATE_TO_OBJECT) {
896
+ /**
897
+ * Creates an object representation of this proto.
898
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
899
+ * Optional fields that are not set will be set to undefined.
900
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
901
+ * For the list of reserved names please see:
902
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
903
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
904
+ * JSPB instance for transitional soy proto support:
905
+ * http://goto/soy-param-migration
906
+ * @return {!Object}
907
+ */
908
+ proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.toObject = function(opt_includeInstance) {
909
+ return proto.Platform.LocalAccountProto.CreateAdminRequest.toObject(opt_includeInstance, this);
910
+ };
911
+
912
+
913
+ /**
914
+ * Static version of the {@see toObject} method.
915
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
916
+ * the JSPB instance for transitional soy proto support:
917
+ * http://goto/soy-param-migration
918
+ * @param {!proto.Platform.LocalAccountProto.CreateAdminRequest} msg The msg instance to transform.
919
+ * @return {!Object}
920
+ * @suppress {unusedLocalVariables} f is only used for nested messages
921
+ */
922
+ proto.Platform.LocalAccountProto.CreateAdminRequest.toObject = function(includeInstance, msg) {
923
+ var f, obj = {
924
+ email: jspb.Message.getFieldWithDefault(msg, 1, ""),
925
+ lastName: jspb.Message.getFieldWithDefault(msg, 2, ""),
926
+ firstName: jspb.Message.getFieldWithDefault(msg, 3, ""),
927
+ locale: jspb.Message.getFieldWithDefault(msg, 4, ""),
928
+ company: jspb.Message.getFieldWithDefault(msg, 5, ""),
929
+ clientId: jspb.Message.getFieldWithDefault(msg, 6, 0),
930
+ groupId: jspb.Message.getFieldWithDefault(msg, 7, ""),
931
+ clientRolesList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f
932
+ };
933
+
934
+ if (includeInstance) {
935
+ obj.$jspbMessageInstance = msg;
936
+ }
937
+ return obj;
938
+ };
939
+ }
940
+
941
+
942
+ /**
943
+ * Deserializes binary data (in protobuf wire format).
944
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
945
+ * @return {!proto.Platform.LocalAccountProto.CreateAdminRequest}
946
+ */
947
+ proto.Platform.LocalAccountProto.CreateAdminRequest.deserializeBinary = function(bytes) {
948
+ var reader = new jspb.BinaryReader(bytes);
949
+ var msg = new proto.Platform.LocalAccountProto.CreateAdminRequest;
950
+ return proto.Platform.LocalAccountProto.CreateAdminRequest.deserializeBinaryFromReader(msg, reader);
951
+ };
952
+
953
+
954
+ /**
955
+ * Deserializes binary data (in protobuf wire format) from the
956
+ * given reader into the given message object.
957
+ * @param {!proto.Platform.LocalAccountProto.CreateAdminRequest} msg The message object to deserialize into.
958
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
959
+ * @return {!proto.Platform.LocalAccountProto.CreateAdminRequest}
960
+ */
961
+ proto.Platform.LocalAccountProto.CreateAdminRequest.deserializeBinaryFromReader = function(msg, reader) {
962
+ while (reader.nextField()) {
963
+ if (reader.isEndGroup()) {
964
+ break;
965
+ }
966
+ var field = reader.getFieldNumber();
967
+ switch (field) {
968
+ case 1:
969
+ var value = /** @type {string} */ (reader.readString());
970
+ msg.setEmail(value);
971
+ break;
972
+ case 2:
973
+ var value = /** @type {string} */ (reader.readString());
974
+ msg.setLastName(value);
975
+ break;
976
+ case 3:
977
+ var value = /** @type {string} */ (reader.readString());
978
+ msg.setFirstName(value);
979
+ break;
980
+ case 4:
981
+ var value = /** @type {string} */ (reader.readString());
982
+ msg.setLocale(value);
983
+ break;
984
+ case 5:
985
+ var value = /** @type {string} */ (reader.readString());
986
+ msg.setCompany(value);
987
+ break;
988
+ case 6:
989
+ var value = /** @type {number} */ (reader.readInt32());
990
+ msg.setClientId(value);
991
+ break;
992
+ case 7:
993
+ var value = /** @type {string} */ (reader.readString());
994
+ msg.setGroupId(value);
995
+ break;
996
+ case 8:
997
+ var values = /** @type {!Array<!proto.Auth.AccountProto.Roles>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
998
+ for (var i = 0; i < values.length; i++) {
999
+ msg.addClientRoles(values[i]);
1000
+ }
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.Platform.LocalAccountProto.CreateAdminRequest.prototype.serializeBinary = function() {
1016
+ var writer = new jspb.BinaryWriter();
1017
+ proto.Platform.LocalAccountProto.CreateAdminRequest.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.Platform.LocalAccountProto.CreateAdminRequest} message
1026
+ * @param {!jspb.BinaryWriter} writer
1027
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1028
+ */
1029
+ proto.Platform.LocalAccountProto.CreateAdminRequest.serializeBinaryToWriter = function(message, writer) {
1030
+ var f = undefined;
1031
+ f = message.getEmail();
1032
+ if (f.length > 0) {
1033
+ writer.writeString(
1034
+ 1,
1035
+ f
1036
+ );
1037
+ }
1038
+ f = message.getLastName();
1039
+ if (f.length > 0) {
1040
+ writer.writeString(
1041
+ 2,
1042
+ f
1043
+ );
1044
+ }
1045
+ f = message.getFirstName();
1046
+ if (f.length > 0) {
1047
+ writer.writeString(
1048
+ 3,
1049
+ f
1050
+ );
1051
+ }
1052
+ f = message.getLocale();
1053
+ if (f.length > 0) {
1054
+ writer.writeString(
1055
+ 4,
1056
+ f
1057
+ );
1058
+ }
1059
+ f = message.getCompany();
1060
+ if (f.length > 0) {
1061
+ writer.writeString(
1062
+ 5,
1063
+ f
1064
+ );
1065
+ }
1066
+ f = message.getClientId();
1067
+ if (f !== 0) {
1068
+ writer.writeInt32(
1069
+ 6,
1070
+ f
1071
+ );
1072
+ }
1073
+ f = message.getGroupId();
1074
+ if (f.length > 0) {
1075
+ writer.writeString(
1076
+ 7,
1077
+ f
1078
+ );
1079
+ }
1080
+ f = message.getClientRolesList();
1081
+ if (f.length > 0) {
1082
+ writer.writePackedEnum(
1083
+ 8,
1084
+ f
1085
+ );
1086
+ }
1087
+ };
1088
+
1089
+
1090
+ /**
1091
+ * optional string email = 1;
1092
+ * @return {string}
1093
+ */
1094
+ proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.getEmail = function() {
1095
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1096
+ };
1097
+
1098
+
1099
+ /**
1100
+ * @param {string} value
1101
+ * @return {!proto.Platform.LocalAccountProto.CreateAdminRequest} returns this
1102
+ */
1103
+ proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.setEmail = function(value) {
1104
+ return jspb.Message.setProto3StringField(this, 1, value);
1105
+ };
1106
+
1107
+
1108
+ /**
1109
+ * optional string last_name = 2;
1110
+ * @return {string}
1111
+ */
1112
+ proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.getLastName = function() {
1113
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1114
+ };
1115
+
1116
+
1117
+ /**
1118
+ * @param {string} value
1119
+ * @return {!proto.Platform.LocalAccountProto.CreateAdminRequest} returns this
1120
+ */
1121
+ proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.setLastName = function(value) {
1122
+ return jspb.Message.setProto3StringField(this, 2, value);
1123
+ };
1124
+
1125
+
1126
+ /**
1127
+ * optional string first_name = 3;
1128
+ * @return {string}
1129
+ */
1130
+ proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.getFirstName = function() {
1131
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1132
+ };
1133
+
1134
+
1135
+ /**
1136
+ * @param {string} value
1137
+ * @return {!proto.Platform.LocalAccountProto.CreateAdminRequest} returns this
1138
+ */
1139
+ proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.setFirstName = function(value) {
1140
+ return jspb.Message.setProto3StringField(this, 3, value);
1141
+ };
1142
+
1143
+
1144
+ /**
1145
+ * optional string locale = 4;
1146
+ * @return {string}
1147
+ */
1148
+ proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.getLocale = function() {
1149
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1150
+ };
1151
+
1152
+
1153
+ /**
1154
+ * @param {string} value
1155
+ * @return {!proto.Platform.LocalAccountProto.CreateAdminRequest} returns this
1156
+ */
1157
+ proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.setLocale = function(value) {
1158
+ return jspb.Message.setProto3StringField(this, 4, value);
1159
+ };
1160
+
1161
+
1162
+ /**
1163
+ * optional string company = 5;
1164
+ * @return {string}
1165
+ */
1166
+ proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.getCompany = function() {
1167
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1168
+ };
1169
+
1170
+
1171
+ /**
1172
+ * @param {string} value
1173
+ * @return {!proto.Platform.LocalAccountProto.CreateAdminRequest} returns this
1174
+ */
1175
+ proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.setCompany = function(value) {
1176
+ return jspb.Message.setProto3StringField(this, 5, value);
1177
+ };
1178
+
1179
+
1180
+ /**
1181
+ * optional int32 client_id = 6;
1182
+ * @return {number}
1183
+ */
1184
+ proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.getClientId = function() {
1185
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
1186
+ };
1187
+
1188
+
1189
+ /**
1190
+ * @param {number} value
1191
+ * @return {!proto.Platform.LocalAccountProto.CreateAdminRequest} returns this
1192
+ */
1193
+ proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.setClientId = function(value) {
1194
+ return jspb.Message.setProto3IntField(this, 6, value);
1195
+ };
1196
+
1197
+
1198
+ /**
1199
+ * optional string group_id = 7;
1200
+ * @return {string}
1201
+ */
1202
+ proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.getGroupId = function() {
1203
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1204
+ };
1205
+
1206
+
1207
+ /**
1208
+ * @param {string} value
1209
+ * @return {!proto.Platform.LocalAccountProto.CreateAdminRequest} returns this
1210
+ */
1211
+ proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.setGroupId = function(value) {
1212
+ return jspb.Message.setProto3StringField(this, 7, value);
1213
+ };
1214
+
1215
+
1216
+ /**
1217
+ * repeated Auth.AccountProto.Roles client_roles = 8;
1218
+ * @return {!Array<!proto.Auth.AccountProto.Roles>}
1219
+ */
1220
+ proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.getClientRolesList = function() {
1221
+ return /** @type {!Array<!proto.Auth.AccountProto.Roles>} */ (jspb.Message.getRepeatedField(this, 8));
1222
+ };
1223
+
1224
+
1225
+ /**
1226
+ * @param {!Array<!proto.Auth.AccountProto.Roles>} value
1227
+ * @return {!proto.Platform.LocalAccountProto.CreateAdminRequest} returns this
1228
+ */
1229
+ proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.setClientRolesList = function(value) {
1230
+ return jspb.Message.setField(this, 8, value || []);
1231
+ };
1232
+
1233
+
1234
+ /**
1235
+ * @param {!proto.Auth.AccountProto.Roles} value
1236
+ * @param {number=} opt_index
1237
+ * @return {!proto.Platform.LocalAccountProto.CreateAdminRequest} returns this
1238
+ */
1239
+ proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.addClientRoles = function(value, opt_index) {
1240
+ return jspb.Message.addToRepeatedField(this, 8, value, opt_index);
1241
+ };
1242
+
1243
+
1244
+ /**
1245
+ * Clears the list making it empty but non-null.
1246
+ * @return {!proto.Platform.LocalAccountProto.CreateAdminRequest} returns this
1247
+ */
1248
+ proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.clearClientRolesList = function() {
1249
+ return this.setClientRolesList([]);
1250
+ };
1251
+
1252
+
1253
+
1254
+
1255
+
1256
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1257
+ /**
1258
+ * Creates an object representation of this proto.
1259
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1260
+ * Optional fields that are not set will be set to undefined.
1261
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1262
+ * For the list of reserved names please see:
1263
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1264
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1265
+ * JSPB instance for transitional soy proto support:
1266
+ * http://goto/soy-param-migration
1267
+ * @return {!Object}
1268
+ */
1269
+ proto.Platform.LocalAccountProto.CreateAppRequest.prototype.toObject = function(opt_includeInstance) {
1270
+ return proto.Platform.LocalAccountProto.CreateAppRequest.toObject(opt_includeInstance, this);
1271
+ };
1272
+
1273
+
1274
+ /**
1275
+ * Static version of the {@see toObject} method.
1276
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1277
+ * the JSPB instance for transitional soy proto support:
1278
+ * http://goto/soy-param-migration
1279
+ * @param {!proto.Platform.LocalAccountProto.CreateAppRequest} msg The msg instance to transform.
1280
+ * @return {!Object}
1281
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1282
+ */
1283
+ proto.Platform.LocalAccountProto.CreateAppRequest.toObject = function(includeInstance, msg) {
1284
+ var f, obj = {
1285
+ phone: jspb.Message.getFieldWithDefault(msg, 1, ""),
1286
+ lastName: jspb.Message.getFieldWithDefault(msg, 2, ""),
1287
+ firstName: jspb.Message.getFieldWithDefault(msg, 3, ""),
1288
+ locale: jspb.Message.getFieldWithDefault(msg, 4, ""),
1289
+ company: jspb.Message.getFieldWithDefault(msg, 5, ""),
1290
+ clientId: jspb.Message.getFieldWithDefault(msg, 6, 0),
1291
+ groupId: jspb.Message.getFieldWithDefault(msg, 7, "")
1292
+ };
1293
+
1294
+ if (includeInstance) {
1295
+ obj.$jspbMessageInstance = msg;
1296
+ }
1297
+ return obj;
1298
+ };
1299
+ }
1300
+
1301
+
1302
+ /**
1303
+ * Deserializes binary data (in protobuf wire format).
1304
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1305
+ * @return {!proto.Platform.LocalAccountProto.CreateAppRequest}
1306
+ */
1307
+ proto.Platform.LocalAccountProto.CreateAppRequest.deserializeBinary = function(bytes) {
1308
+ var reader = new jspb.BinaryReader(bytes);
1309
+ var msg = new proto.Platform.LocalAccountProto.CreateAppRequest;
1310
+ return proto.Platform.LocalAccountProto.CreateAppRequest.deserializeBinaryFromReader(msg, reader);
1311
+ };
1312
+
1313
+
1314
+ /**
1315
+ * Deserializes binary data (in protobuf wire format) from the
1316
+ * given reader into the given message object.
1317
+ * @param {!proto.Platform.LocalAccountProto.CreateAppRequest} msg The message object to deserialize into.
1318
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1319
+ * @return {!proto.Platform.LocalAccountProto.CreateAppRequest}
1320
+ */
1321
+ proto.Platform.LocalAccountProto.CreateAppRequest.deserializeBinaryFromReader = function(msg, reader) {
1322
+ while (reader.nextField()) {
1323
+ if (reader.isEndGroup()) {
1324
+ break;
1325
+ }
1326
+ var field = reader.getFieldNumber();
1327
+ switch (field) {
1328
+ case 1:
1329
+ var value = /** @type {string} */ (reader.readString());
1330
+ msg.setPhone(value);
1331
+ break;
1332
+ case 2:
1333
+ var value = /** @type {string} */ (reader.readString());
1334
+ msg.setLastName(value);
1335
+ break;
1336
+ case 3:
1337
+ var value = /** @type {string} */ (reader.readString());
1338
+ msg.setFirstName(value);
1339
+ break;
1340
+ case 4:
1341
+ var value = /** @type {string} */ (reader.readString());
1342
+ msg.setLocale(value);
1343
+ break;
1344
+ case 5:
1345
+ var value = /** @type {string} */ (reader.readString());
1346
+ msg.setCompany(value);
1347
+ break;
1348
+ case 6:
1349
+ var value = /** @type {number} */ (reader.readInt32());
1350
+ msg.setClientId(value);
1351
+ break;
1352
+ case 7:
1353
+ var value = /** @type {string} */ (reader.readString());
1354
+ msg.setGroupId(value);
1355
+ break;
1356
+ default:
1357
+ reader.skipField();
1358
+ break;
1359
+ }
1360
+ }
1361
+ return msg;
1362
+ };
1363
+
1364
+
1365
+ /**
1366
+ * Serializes the message to binary data (in protobuf wire format).
1367
+ * @return {!Uint8Array}
1368
+ */
1369
+ proto.Platform.LocalAccountProto.CreateAppRequest.prototype.serializeBinary = function() {
1370
+ var writer = new jspb.BinaryWriter();
1371
+ proto.Platform.LocalAccountProto.CreateAppRequest.serializeBinaryToWriter(this, writer);
1372
+ return writer.getResultBuffer();
1373
+ };
1374
+
1375
+
1376
+ /**
1377
+ * Serializes the given message to binary data (in protobuf wire
1378
+ * format), writing to the given BinaryWriter.
1379
+ * @param {!proto.Platform.LocalAccountProto.CreateAppRequest} message
1380
+ * @param {!jspb.BinaryWriter} writer
1381
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1382
+ */
1383
+ proto.Platform.LocalAccountProto.CreateAppRequest.serializeBinaryToWriter = function(message, writer) {
1384
+ var f = undefined;
1385
+ f = message.getPhone();
1386
+ if (f.length > 0) {
1387
+ writer.writeString(
1388
+ 1,
1389
+ f
1390
+ );
1391
+ }
1392
+ f = message.getLastName();
1393
+ if (f.length > 0) {
1394
+ writer.writeString(
1395
+ 2,
1396
+ f
1397
+ );
1398
+ }
1399
+ f = message.getFirstName();
1400
+ if (f.length > 0) {
1401
+ writer.writeString(
1402
+ 3,
1403
+ f
1404
+ );
1405
+ }
1406
+ f = message.getLocale();
1407
+ if (f.length > 0) {
1408
+ writer.writeString(
1409
+ 4,
1410
+ f
1411
+ );
1412
+ }
1413
+ f = message.getCompany();
1414
+ if (f.length > 0) {
1415
+ writer.writeString(
1416
+ 5,
1417
+ f
1418
+ );
1419
+ }
1420
+ f = message.getClientId();
1421
+ if (f !== 0) {
1422
+ writer.writeInt32(
1423
+ 6,
1424
+ f
1425
+ );
1426
+ }
1427
+ f = message.getGroupId();
1428
+ if (f.length > 0) {
1429
+ writer.writeString(
1430
+ 7,
1431
+ f
1432
+ );
1433
+ }
1434
+ };
1435
+
1436
+
1437
+ /**
1438
+ * optional string phone = 1;
1439
+ * @return {string}
1440
+ */
1441
+ proto.Platform.LocalAccountProto.CreateAppRequest.prototype.getPhone = function() {
1442
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1443
+ };
1444
+
1445
+
1446
+ /**
1447
+ * @param {string} value
1448
+ * @return {!proto.Platform.LocalAccountProto.CreateAppRequest} returns this
1449
+ */
1450
+ proto.Platform.LocalAccountProto.CreateAppRequest.prototype.setPhone = function(value) {
1451
+ return jspb.Message.setProto3StringField(this, 1, value);
1452
+ };
1453
+
1454
+
1455
+ /**
1456
+ * optional string last_name = 2;
1457
+ * @return {string}
1458
+ */
1459
+ proto.Platform.LocalAccountProto.CreateAppRequest.prototype.getLastName = function() {
1460
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1461
+ };
1462
+
1463
+
1464
+ /**
1465
+ * @param {string} value
1466
+ * @return {!proto.Platform.LocalAccountProto.CreateAppRequest} returns this
1467
+ */
1468
+ proto.Platform.LocalAccountProto.CreateAppRequest.prototype.setLastName = function(value) {
1469
+ return jspb.Message.setProto3StringField(this, 2, value);
1470
+ };
1471
+
1472
+
1473
+ /**
1474
+ * optional string first_name = 3;
1475
+ * @return {string}
1476
+ */
1477
+ proto.Platform.LocalAccountProto.CreateAppRequest.prototype.getFirstName = function() {
1478
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1479
+ };
1480
+
1481
+
1482
+ /**
1483
+ * @param {string} value
1484
+ * @return {!proto.Platform.LocalAccountProto.CreateAppRequest} returns this
1485
+ */
1486
+ proto.Platform.LocalAccountProto.CreateAppRequest.prototype.setFirstName = function(value) {
1487
+ return jspb.Message.setProto3StringField(this, 3, value);
1488
+ };
1489
+
1490
+
1491
+ /**
1492
+ * optional string locale = 4;
1493
+ * @return {string}
1494
+ */
1495
+ proto.Platform.LocalAccountProto.CreateAppRequest.prototype.getLocale = function() {
1496
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1497
+ };
1498
+
1499
+
1500
+ /**
1501
+ * @param {string} value
1502
+ * @return {!proto.Platform.LocalAccountProto.CreateAppRequest} returns this
1503
+ */
1504
+ proto.Platform.LocalAccountProto.CreateAppRequest.prototype.setLocale = function(value) {
1505
+ return jspb.Message.setProto3StringField(this, 4, value);
1506
+ };
1507
+
1508
+
1509
+ /**
1510
+ * optional string company = 5;
1511
+ * @return {string}
1512
+ */
1513
+ proto.Platform.LocalAccountProto.CreateAppRequest.prototype.getCompany = function() {
1514
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1515
+ };
1516
+
1517
+
1518
+ /**
1519
+ * @param {string} value
1520
+ * @return {!proto.Platform.LocalAccountProto.CreateAppRequest} returns this
1521
+ */
1522
+ proto.Platform.LocalAccountProto.CreateAppRequest.prototype.setCompany = function(value) {
1523
+ return jspb.Message.setProto3StringField(this, 5, value);
1524
+ };
1525
+
1526
+
1527
+ /**
1528
+ * optional int32 client_id = 6;
1529
+ * @return {number}
1530
+ */
1531
+ proto.Platform.LocalAccountProto.CreateAppRequest.prototype.getClientId = function() {
1532
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
1533
+ };
1534
+
1535
+
1536
+ /**
1537
+ * @param {number} value
1538
+ * @return {!proto.Platform.LocalAccountProto.CreateAppRequest} returns this
1539
+ */
1540
+ proto.Platform.LocalAccountProto.CreateAppRequest.prototype.setClientId = function(value) {
1541
+ return jspb.Message.setProto3IntField(this, 6, value);
1542
+ };
1543
+
1544
+
1545
+ /**
1546
+ * optional string group_id = 7;
1547
+ * @return {string}
1548
+ */
1549
+ proto.Platform.LocalAccountProto.CreateAppRequest.prototype.getGroupId = function() {
1550
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1551
+ };
1552
+
1553
+
1554
+ /**
1555
+ * @param {string} value
1556
+ * @return {!proto.Platform.LocalAccountProto.CreateAppRequest} returns this
1557
+ */
1558
+ proto.Platform.LocalAccountProto.CreateAppRequest.prototype.setGroupId = function(value) {
1559
+ return jspb.Message.setProto3StringField(this, 7, value);
1560
+ };
1561
+
1562
+
1563
+
1564
+ /**
1565
+ * List of repeated fields within this message type.
1566
+ * @private {!Array<number>}
1567
+ * @const
1568
+ */
1569
+ proto.Platform.LocalAccountProto.UpdateRequest.repeatedFields_ = [7];
1570
+
1571
+
1572
+
1573
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1574
+ /**
1575
+ * Creates an object representation of this proto.
1576
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1577
+ * Optional fields that are not set will be set to undefined.
1578
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1579
+ * For the list of reserved names please see:
1580
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1581
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1582
+ * JSPB instance for transitional soy proto support:
1583
+ * http://goto/soy-param-migration
1584
+ * @return {!Object}
1585
+ */
1586
+ proto.Platform.LocalAccountProto.UpdateRequest.prototype.toObject = function(opt_includeInstance) {
1587
+ return proto.Platform.LocalAccountProto.UpdateRequest.toObject(opt_includeInstance, this);
1588
+ };
1589
+
1590
+
1591
+ /**
1592
+ * Static version of the {@see toObject} method.
1593
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1594
+ * the JSPB instance for transitional soy proto support:
1595
+ * http://goto/soy-param-migration
1596
+ * @param {!proto.Platform.LocalAccountProto.UpdateRequest} msg The msg instance to transform.
1597
+ * @return {!Object}
1598
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1599
+ */
1600
+ proto.Platform.LocalAccountProto.UpdateRequest.toObject = function(includeInstance, msg) {
1601
+ var f, obj = {
1602
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1603
+ lastName: jspb.Message.getFieldWithDefault(msg, 2, ""),
1604
+ firstName: jspb.Message.getFieldWithDefault(msg, 3, ""),
1605
+ locale: jspb.Message.getFieldWithDefault(msg, 4, ""),
1606
+ company: jspb.Message.getFieldWithDefault(msg, 5, ""),
1607
+ groupId: jspb.Message.getFieldWithDefault(msg, 6, ""),
1608
+ clientRolesList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f
1609
+ };
1610
+
1611
+ if (includeInstance) {
1612
+ obj.$jspbMessageInstance = msg;
1613
+ }
1614
+ return obj;
1615
+ };
1616
+ }
1617
+
1618
+
1619
+ /**
1620
+ * Deserializes binary data (in protobuf wire format).
1621
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1622
+ * @return {!proto.Platform.LocalAccountProto.UpdateRequest}
1623
+ */
1624
+ proto.Platform.LocalAccountProto.UpdateRequest.deserializeBinary = function(bytes) {
1625
+ var reader = new jspb.BinaryReader(bytes);
1626
+ var msg = new proto.Platform.LocalAccountProto.UpdateRequest;
1627
+ return proto.Platform.LocalAccountProto.UpdateRequest.deserializeBinaryFromReader(msg, reader);
1628
+ };
1629
+
1630
+
1631
+ /**
1632
+ * Deserializes binary data (in protobuf wire format) from the
1633
+ * given reader into the given message object.
1634
+ * @param {!proto.Platform.LocalAccountProto.UpdateRequest} msg The message object to deserialize into.
1635
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1636
+ * @return {!proto.Platform.LocalAccountProto.UpdateRequest}
1637
+ */
1638
+ proto.Platform.LocalAccountProto.UpdateRequest.deserializeBinaryFromReader = function(msg, reader) {
1639
+ while (reader.nextField()) {
1640
+ if (reader.isEndGroup()) {
1641
+ break;
1642
+ }
1643
+ var field = reader.getFieldNumber();
1644
+ switch (field) {
1645
+ case 1:
1646
+ var value = /** @type {number} */ (reader.readInt64());
1647
+ msg.setId(value);
1648
+ break;
1649
+ case 2:
1650
+ var value = /** @type {string} */ (reader.readString());
1651
+ msg.setLastName(value);
1652
+ break;
1653
+ case 3:
1654
+ var value = /** @type {string} */ (reader.readString());
1655
+ msg.setFirstName(value);
1656
+ break;
1657
+ case 4:
1658
+ var value = /** @type {string} */ (reader.readString());
1659
+ msg.setLocale(value);
1660
+ break;
1661
+ case 5:
1662
+ var value = /** @type {string} */ (reader.readString());
1663
+ msg.setCompany(value);
1664
+ break;
1665
+ case 6:
1666
+ var value = /** @type {string} */ (reader.readString());
1667
+ msg.setGroupId(value);
1668
+ break;
1669
+ case 7:
1670
+ var values = /** @type {!Array<!proto.Auth.AccountProto.Roles>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
1671
+ for (var i = 0; i < values.length; i++) {
1672
+ msg.addClientRoles(values[i]);
1673
+ }
1674
+ break;
1675
+ default:
1676
+ reader.skipField();
1677
+ break;
1678
+ }
1679
+ }
1680
+ return msg;
1681
+ };
1682
+
1683
+
1684
+ /**
1685
+ * Serializes the message to binary data (in protobuf wire format).
1686
+ * @return {!Uint8Array}
1687
+ */
1688
+ proto.Platform.LocalAccountProto.UpdateRequest.prototype.serializeBinary = function() {
1689
+ var writer = new jspb.BinaryWriter();
1690
+ proto.Platform.LocalAccountProto.UpdateRequest.serializeBinaryToWriter(this, writer);
1691
+ return writer.getResultBuffer();
1692
+ };
1693
+
1694
+
1695
+ /**
1696
+ * Serializes the given message to binary data (in protobuf wire
1697
+ * format), writing to the given BinaryWriter.
1698
+ * @param {!proto.Platform.LocalAccountProto.UpdateRequest} message
1699
+ * @param {!jspb.BinaryWriter} writer
1700
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1701
+ */
1702
+ proto.Platform.LocalAccountProto.UpdateRequest.serializeBinaryToWriter = function(message, writer) {
1703
+ var f = undefined;
1704
+ f = message.getId();
1705
+ if (f !== 0) {
1706
+ writer.writeInt64(
1707
+ 1,
1708
+ f
1709
+ );
1710
+ }
1711
+ f = message.getLastName();
1712
+ if (f.length > 0) {
1713
+ writer.writeString(
1714
+ 2,
1715
+ f
1716
+ );
1717
+ }
1718
+ f = message.getFirstName();
1719
+ if (f.length > 0) {
1720
+ writer.writeString(
1721
+ 3,
1722
+ f
1723
+ );
1724
+ }
1725
+ f = message.getLocale();
1726
+ if (f.length > 0) {
1727
+ writer.writeString(
1728
+ 4,
1729
+ f
1730
+ );
1731
+ }
1732
+ f = message.getCompany();
1733
+ if (f.length > 0) {
1734
+ writer.writeString(
1735
+ 5,
1736
+ f
1737
+ );
1738
+ }
1739
+ f = message.getGroupId();
1740
+ if (f.length > 0) {
1741
+ writer.writeString(
1742
+ 6,
1743
+ f
1744
+ );
1745
+ }
1746
+ f = message.getClientRolesList();
1747
+ if (f.length > 0) {
1748
+ writer.writePackedEnum(
1749
+ 7,
1750
+ f
1751
+ );
1752
+ }
1753
+ };
1754
+
1755
+
1756
+ /**
1757
+ * optional int64 id = 1;
1758
+ * @return {number}
1759
+ */
1760
+ proto.Platform.LocalAccountProto.UpdateRequest.prototype.getId = function() {
1761
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1762
+ };
1763
+
1764
+
1765
+ /**
1766
+ * @param {number} value
1767
+ * @return {!proto.Platform.LocalAccountProto.UpdateRequest} returns this
1768
+ */
1769
+ proto.Platform.LocalAccountProto.UpdateRequest.prototype.setId = function(value) {
1770
+ return jspb.Message.setProto3IntField(this, 1, value);
1771
+ };
1772
+
1773
+
1774
+ /**
1775
+ * optional string last_name = 2;
1776
+ * @return {string}
1777
+ */
1778
+ proto.Platform.LocalAccountProto.UpdateRequest.prototype.getLastName = function() {
1779
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1780
+ };
1781
+
1782
+
1783
+ /**
1784
+ * @param {string} value
1785
+ * @return {!proto.Platform.LocalAccountProto.UpdateRequest} returns this
1786
+ */
1787
+ proto.Platform.LocalAccountProto.UpdateRequest.prototype.setLastName = function(value) {
1788
+ return jspb.Message.setProto3StringField(this, 2, value);
1789
+ };
1790
+
1791
+
1792
+ /**
1793
+ * optional string first_name = 3;
1794
+ * @return {string}
1795
+ */
1796
+ proto.Platform.LocalAccountProto.UpdateRequest.prototype.getFirstName = function() {
1797
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1798
+ };
1799
+
1800
+
1801
+ /**
1802
+ * @param {string} value
1803
+ * @return {!proto.Platform.LocalAccountProto.UpdateRequest} returns this
1804
+ */
1805
+ proto.Platform.LocalAccountProto.UpdateRequest.prototype.setFirstName = function(value) {
1806
+ return jspb.Message.setProto3StringField(this, 3, value);
1807
+ };
1808
+
1809
+
1810
+ /**
1811
+ * optional string locale = 4;
1812
+ * @return {string}
1813
+ */
1814
+ proto.Platform.LocalAccountProto.UpdateRequest.prototype.getLocale = function() {
1815
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1816
+ };
1817
+
1818
+
1819
+ /**
1820
+ * @param {string} value
1821
+ * @return {!proto.Platform.LocalAccountProto.UpdateRequest} returns this
1822
+ */
1823
+ proto.Platform.LocalAccountProto.UpdateRequest.prototype.setLocale = function(value) {
1824
+ return jspb.Message.setProto3StringField(this, 4, value);
1825
+ };
1826
+
1827
+
1828
+ /**
1829
+ * optional string company = 5;
1830
+ * @return {string}
1831
+ */
1832
+ proto.Platform.LocalAccountProto.UpdateRequest.prototype.getCompany = function() {
1833
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1834
+ };
1835
+
1836
+
1837
+ /**
1838
+ * @param {string} value
1839
+ * @return {!proto.Platform.LocalAccountProto.UpdateRequest} returns this
1840
+ */
1841
+ proto.Platform.LocalAccountProto.UpdateRequest.prototype.setCompany = function(value) {
1842
+ return jspb.Message.setProto3StringField(this, 5, value);
1843
+ };
1844
+
1845
+
1846
+ /**
1847
+ * optional string group_id = 6;
1848
+ * @return {string}
1849
+ */
1850
+ proto.Platform.LocalAccountProto.UpdateRequest.prototype.getGroupId = function() {
1851
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1852
+ };
1853
+
1854
+
1855
+ /**
1856
+ * @param {string} value
1857
+ * @return {!proto.Platform.LocalAccountProto.UpdateRequest} returns this
1858
+ */
1859
+ proto.Platform.LocalAccountProto.UpdateRequest.prototype.setGroupId = function(value) {
1860
+ return jspb.Message.setProto3StringField(this, 6, value);
1861
+ };
1862
+
1863
+
1864
+ /**
1865
+ * repeated Auth.AccountProto.Roles client_roles = 7;
1866
+ * @return {!Array<!proto.Auth.AccountProto.Roles>}
1867
+ */
1868
+ proto.Platform.LocalAccountProto.UpdateRequest.prototype.getClientRolesList = function() {
1869
+ return /** @type {!Array<!proto.Auth.AccountProto.Roles>} */ (jspb.Message.getRepeatedField(this, 7));
1870
+ };
1871
+
1872
+
1873
+ /**
1874
+ * @param {!Array<!proto.Auth.AccountProto.Roles>} value
1875
+ * @return {!proto.Platform.LocalAccountProto.UpdateRequest} returns this
1876
+ */
1877
+ proto.Platform.LocalAccountProto.UpdateRequest.prototype.setClientRolesList = function(value) {
1878
+ return jspb.Message.setField(this, 7, value || []);
1879
+ };
1880
+
1881
+
1882
+ /**
1883
+ * @param {!proto.Auth.AccountProto.Roles} value
1884
+ * @param {number=} opt_index
1885
+ * @return {!proto.Platform.LocalAccountProto.UpdateRequest} returns this
1886
+ */
1887
+ proto.Platform.LocalAccountProto.UpdateRequest.prototype.addClientRoles = function(value, opt_index) {
1888
+ return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
1889
+ };
1890
+
1891
+
1892
+ /**
1893
+ * Clears the list making it empty but non-null.
1894
+ * @return {!proto.Platform.LocalAccountProto.UpdateRequest} returns this
1895
+ */
1896
+ proto.Platform.LocalAccountProto.UpdateRequest.prototype.clearClientRolesList = function() {
1897
+ return this.setClientRolesList([]);
1898
+ };
1899
+
1900
+
1901
+
1902
+
1903
+
1904
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1905
+ /**
1906
+ * Creates an object representation of this proto.
1907
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1908
+ * Optional fields that are not set will be set to undefined.
1909
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1910
+ * For the list of reserved names please see:
1911
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1912
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1913
+ * JSPB instance for transitional soy proto support:
1914
+ * http://goto/soy-param-migration
1915
+ * @return {!Object}
1916
+ */
1917
+ proto.Platform.LocalAccountProto.DeleteRequest.prototype.toObject = function(opt_includeInstance) {
1918
+ return proto.Platform.LocalAccountProto.DeleteRequest.toObject(opt_includeInstance, this);
1919
+ };
1920
+
1921
+
1922
+ /**
1923
+ * Static version of the {@see toObject} method.
1924
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1925
+ * the JSPB instance for transitional soy proto support:
1926
+ * http://goto/soy-param-migration
1927
+ * @param {!proto.Platform.LocalAccountProto.DeleteRequest} msg The msg instance to transform.
1928
+ * @return {!Object}
1929
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1930
+ */
1931
+ proto.Platform.LocalAccountProto.DeleteRequest.toObject = function(includeInstance, msg) {
1932
+ var f, obj = {
1933
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
1934
+ };
1935
+
1936
+ if (includeInstance) {
1937
+ obj.$jspbMessageInstance = msg;
1938
+ }
1939
+ return obj;
1940
+ };
1941
+ }
1942
+
1943
+
1944
+ /**
1945
+ * Deserializes binary data (in protobuf wire format).
1946
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1947
+ * @return {!proto.Platform.LocalAccountProto.DeleteRequest}
1948
+ */
1949
+ proto.Platform.LocalAccountProto.DeleteRequest.deserializeBinary = function(bytes) {
1950
+ var reader = new jspb.BinaryReader(bytes);
1951
+ var msg = new proto.Platform.LocalAccountProto.DeleteRequest;
1952
+ return proto.Platform.LocalAccountProto.DeleteRequest.deserializeBinaryFromReader(msg, reader);
1953
+ };
1954
+
1955
+
1956
+ /**
1957
+ * Deserializes binary data (in protobuf wire format) from the
1958
+ * given reader into the given message object.
1959
+ * @param {!proto.Platform.LocalAccountProto.DeleteRequest} msg The message object to deserialize into.
1960
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1961
+ * @return {!proto.Platform.LocalAccountProto.DeleteRequest}
1962
+ */
1963
+ proto.Platform.LocalAccountProto.DeleteRequest.deserializeBinaryFromReader = function(msg, reader) {
1964
+ while (reader.nextField()) {
1965
+ if (reader.isEndGroup()) {
1966
+ break;
1967
+ }
1968
+ var field = reader.getFieldNumber();
1969
+ switch (field) {
1970
+ case 1:
1971
+ var value = /** @type {number} */ (reader.readInt64());
1972
+ msg.setId(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.Platform.LocalAccountProto.DeleteRequest.prototype.serializeBinary = function() {
1988
+ var writer = new jspb.BinaryWriter();
1989
+ proto.Platform.LocalAccountProto.DeleteRequest.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.Platform.LocalAccountProto.DeleteRequest} message
1998
+ * @param {!jspb.BinaryWriter} writer
1999
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2000
+ */
2001
+ proto.Platform.LocalAccountProto.DeleteRequest.serializeBinaryToWriter = function(message, writer) {
2002
+ var f = undefined;
2003
+ f = message.getId();
2004
+ if (f !== 0) {
2005
+ writer.writeInt64(
2006
+ 1,
2007
+ f
2008
+ );
2009
+ }
2010
+ };
2011
+
2012
+
2013
+ /**
2014
+ * optional int64 id = 1;
2015
+ * @return {number}
2016
+ */
2017
+ proto.Platform.LocalAccountProto.DeleteRequest.prototype.getId = function() {
2018
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2019
+ };
2020
+
2021
+
2022
+ /**
2023
+ * @param {number} value
2024
+ * @return {!proto.Platform.LocalAccountProto.DeleteRequest} returns this
2025
+ */
2026
+ proto.Platform.LocalAccountProto.DeleteRequest.prototype.setId = function(value) {
2027
+ return jspb.Message.setProto3IntField(this, 1, value);
2028
+ };
2029
+
2030
+
2031
+
2032
+
2033
+
2034
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2035
+ /**
2036
+ * Creates an object representation of this proto.
2037
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2038
+ * Optional fields that are not set will be set to undefined.
2039
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2040
+ * For the list of reserved names please see:
2041
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2042
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2043
+ * JSPB instance for transitional soy proto support:
2044
+ * http://goto/soy-param-migration
2045
+ * @return {!Object}
2046
+ */
2047
+ proto.Platform.LocalAccountProto.SearchRequest.prototype.toObject = function(opt_includeInstance) {
2048
+ return proto.Platform.LocalAccountProto.SearchRequest.toObject(opt_includeInstance, this);
2049
+ };
2050
+
2051
+
2052
+ /**
2053
+ * Static version of the {@see toObject} method.
2054
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2055
+ * the JSPB instance for transitional soy proto support:
2056
+ * http://goto/soy-param-migration
2057
+ * @param {!proto.Platform.LocalAccountProto.SearchRequest} msg The msg instance to transform.
2058
+ * @return {!Object}
2059
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2060
+ */
2061
+ proto.Platform.LocalAccountProto.SearchRequest.toObject = function(includeInstance, msg) {
2062
+ var f, obj = {
2063
+ search: jspb.Message.getFieldWithDefault(msg, 1, ""),
2064
+ page: jspb.Message.getFieldWithDefault(msg, 2, 0),
2065
+ count: jspb.Message.getFieldWithDefault(msg, 3, 0)
2066
+ };
2067
+
2068
+ if (includeInstance) {
2069
+ obj.$jspbMessageInstance = msg;
2070
+ }
2071
+ return obj;
2072
+ };
2073
+ }
2074
+
2075
+
2076
+ /**
2077
+ * Deserializes binary data (in protobuf wire format).
2078
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2079
+ * @return {!proto.Platform.LocalAccountProto.SearchRequest}
2080
+ */
2081
+ proto.Platform.LocalAccountProto.SearchRequest.deserializeBinary = function(bytes) {
2082
+ var reader = new jspb.BinaryReader(bytes);
2083
+ var msg = new proto.Platform.LocalAccountProto.SearchRequest;
2084
+ return proto.Platform.LocalAccountProto.SearchRequest.deserializeBinaryFromReader(msg, reader);
2085
+ };
2086
+
2087
+
2088
+ /**
2089
+ * Deserializes binary data (in protobuf wire format) from the
2090
+ * given reader into the given message object.
2091
+ * @param {!proto.Platform.LocalAccountProto.SearchRequest} msg The message object to deserialize into.
2092
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2093
+ * @return {!proto.Platform.LocalAccountProto.SearchRequest}
2094
+ */
2095
+ proto.Platform.LocalAccountProto.SearchRequest.deserializeBinaryFromReader = function(msg, reader) {
2096
+ while (reader.nextField()) {
2097
+ if (reader.isEndGroup()) {
2098
+ break;
2099
+ }
2100
+ var field = reader.getFieldNumber();
2101
+ switch (field) {
2102
+ case 1:
2103
+ var value = /** @type {string} */ (reader.readString());
2104
+ msg.setSearch(value);
2105
+ break;
2106
+ case 2:
2107
+ var value = /** @type {number} */ (reader.readInt32());
2108
+ msg.setPage(value);
2109
+ break;
2110
+ case 3:
2111
+ var value = /** @type {number} */ (reader.readInt32());
2112
+ msg.setCount(value);
2113
+ break;
2114
+ default:
2115
+ reader.skipField();
2116
+ break;
2117
+ }
2118
+ }
2119
+ return msg;
2120
+ };
2121
+
2122
+
2123
+ /**
2124
+ * Serializes the message to binary data (in protobuf wire format).
2125
+ * @return {!Uint8Array}
2126
+ */
2127
+ proto.Platform.LocalAccountProto.SearchRequest.prototype.serializeBinary = function() {
2128
+ var writer = new jspb.BinaryWriter();
2129
+ proto.Platform.LocalAccountProto.SearchRequest.serializeBinaryToWriter(this, writer);
2130
+ return writer.getResultBuffer();
2131
+ };
2132
+
2133
+
2134
+ /**
2135
+ * Serializes the given message to binary data (in protobuf wire
2136
+ * format), writing to the given BinaryWriter.
2137
+ * @param {!proto.Platform.LocalAccountProto.SearchRequest} message
2138
+ * @param {!jspb.BinaryWriter} writer
2139
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2140
+ */
2141
+ proto.Platform.LocalAccountProto.SearchRequest.serializeBinaryToWriter = function(message, writer) {
2142
+ var f = undefined;
2143
+ f = message.getSearch();
2144
+ if (f.length > 0) {
2145
+ writer.writeString(
2146
+ 1,
2147
+ f
2148
+ );
2149
+ }
2150
+ f = message.getPage();
2151
+ if (f !== 0) {
2152
+ writer.writeInt32(
2153
+ 2,
2154
+ f
2155
+ );
2156
+ }
2157
+ f = message.getCount();
2158
+ if (f !== 0) {
2159
+ writer.writeInt32(
2160
+ 3,
2161
+ f
2162
+ );
2163
+ }
2164
+ };
2165
+
2166
+
2167
+ /**
2168
+ * optional string search = 1;
2169
+ * @return {string}
2170
+ */
2171
+ proto.Platform.LocalAccountProto.SearchRequest.prototype.getSearch = function() {
2172
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2173
+ };
2174
+
2175
+
2176
+ /**
2177
+ * @param {string} value
2178
+ * @return {!proto.Platform.LocalAccountProto.SearchRequest} returns this
2179
+ */
2180
+ proto.Platform.LocalAccountProto.SearchRequest.prototype.setSearch = function(value) {
2181
+ return jspb.Message.setProto3StringField(this, 1, value);
2182
+ };
2183
+
2184
+
2185
+ /**
2186
+ * optional int32 page = 2;
2187
+ * @return {number}
2188
+ */
2189
+ proto.Platform.LocalAccountProto.SearchRequest.prototype.getPage = function() {
2190
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2191
+ };
2192
+
2193
+
2194
+ /**
2195
+ * @param {number} value
2196
+ * @return {!proto.Platform.LocalAccountProto.SearchRequest} returns this
2197
+ */
2198
+ proto.Platform.LocalAccountProto.SearchRequest.prototype.setPage = function(value) {
2199
+ return jspb.Message.setProto3IntField(this, 2, value);
2200
+ };
2201
+
2202
+
2203
+ /**
2204
+ * optional int32 count = 3;
2205
+ * @return {number}
2206
+ */
2207
+ proto.Platform.LocalAccountProto.SearchRequest.prototype.getCount = function() {
2208
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2209
+ };
2210
+
2211
+
2212
+ /**
2213
+ * @param {number} value
2214
+ * @return {!proto.Platform.LocalAccountProto.SearchRequest} returns this
2215
+ */
2216
+ proto.Platform.LocalAccountProto.SearchRequest.prototype.setCount = function(value) {
2217
+ return jspb.Message.setProto3IntField(this, 3, value);
2218
+ };
2219
+
2220
+
2221
+
2222
+ /**
2223
+ * List of repeated fields within this message type.
2224
+ * @private {!Array<number>}
2225
+ * @const
2226
+ */
2227
+ proto.Platform.LocalAccountProto.SearchReply.repeatedFields_ = [1];
2228
+
2229
+
2230
+
2231
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2232
+ /**
2233
+ * Creates an object representation of this proto.
2234
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2235
+ * Optional fields that are not set will be set to undefined.
2236
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2237
+ * For the list of reserved names please see:
2238
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2239
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2240
+ * JSPB instance for transitional soy proto support:
2241
+ * http://goto/soy-param-migration
2242
+ * @return {!Object}
2243
+ */
2244
+ proto.Platform.LocalAccountProto.SearchReply.prototype.toObject = function(opt_includeInstance) {
2245
+ return proto.Platform.LocalAccountProto.SearchReply.toObject(opt_includeInstance, this);
2246
+ };
2247
+
2248
+
2249
+ /**
2250
+ * Static version of the {@see toObject} method.
2251
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2252
+ * the JSPB instance for transitional soy proto support:
2253
+ * http://goto/soy-param-migration
2254
+ * @param {!proto.Platform.LocalAccountProto.SearchReply} msg The msg instance to transform.
2255
+ * @return {!Object}
2256
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2257
+ */
2258
+ proto.Platform.LocalAccountProto.SearchReply.toObject = function(includeInstance, msg) {
2259
+ var f, obj = {
2260
+ accountsList: jspb.Message.toObjectList(msg.getAccountsList(),
2261
+ proto.Platform.LocalAccountProto.toObject, includeInstance),
2262
+ pagination: (f = msg.getPagination()) && platform_pagination_pb.PaginationProto.toObject(includeInstance, f)
2263
+ };
2264
+
2265
+ if (includeInstance) {
2266
+ obj.$jspbMessageInstance = msg;
2267
+ }
2268
+ return obj;
2269
+ };
2270
+ }
2271
+
2272
+
2273
+ /**
2274
+ * Deserializes binary data (in protobuf wire format).
2275
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2276
+ * @return {!proto.Platform.LocalAccountProto.SearchReply}
2277
+ */
2278
+ proto.Platform.LocalAccountProto.SearchReply.deserializeBinary = function(bytes) {
2279
+ var reader = new jspb.BinaryReader(bytes);
2280
+ var msg = new proto.Platform.LocalAccountProto.SearchReply;
2281
+ return proto.Platform.LocalAccountProto.SearchReply.deserializeBinaryFromReader(msg, reader);
2282
+ };
2283
+
2284
+
2285
+ /**
2286
+ * Deserializes binary data (in protobuf wire format) from the
2287
+ * given reader into the given message object.
2288
+ * @param {!proto.Platform.LocalAccountProto.SearchReply} msg The message object to deserialize into.
2289
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2290
+ * @return {!proto.Platform.LocalAccountProto.SearchReply}
2291
+ */
2292
+ proto.Platform.LocalAccountProto.SearchReply.deserializeBinaryFromReader = function(msg, reader) {
2293
+ while (reader.nextField()) {
2294
+ if (reader.isEndGroup()) {
2295
+ break;
2296
+ }
2297
+ var field = reader.getFieldNumber();
2298
+ switch (field) {
2299
+ case 1:
2300
+ var value = new proto.Platform.LocalAccountProto;
2301
+ reader.readMessage(value,proto.Platform.LocalAccountProto.deserializeBinaryFromReader);
2302
+ msg.addAccounts(value);
2303
+ break;
2304
+ case 2:
2305
+ var value = new platform_pagination_pb.PaginationProto;
2306
+ reader.readMessage(value,platform_pagination_pb.PaginationProto.deserializeBinaryFromReader);
2307
+ msg.setPagination(value);
2308
+ break;
2309
+ default:
2310
+ reader.skipField();
2311
+ break;
2312
+ }
2313
+ }
2314
+ return msg;
2315
+ };
2316
+
2317
+
2318
+ /**
2319
+ * Serializes the message to binary data (in protobuf wire format).
2320
+ * @return {!Uint8Array}
2321
+ */
2322
+ proto.Platform.LocalAccountProto.SearchReply.prototype.serializeBinary = function() {
2323
+ var writer = new jspb.BinaryWriter();
2324
+ proto.Platform.LocalAccountProto.SearchReply.serializeBinaryToWriter(this, writer);
2325
+ return writer.getResultBuffer();
2326
+ };
2327
+
2328
+
2329
+ /**
2330
+ * Serializes the given message to binary data (in protobuf wire
2331
+ * format), writing to the given BinaryWriter.
2332
+ * @param {!proto.Platform.LocalAccountProto.SearchReply} message
2333
+ * @param {!jspb.BinaryWriter} writer
2334
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2335
+ */
2336
+ proto.Platform.LocalAccountProto.SearchReply.serializeBinaryToWriter = function(message, writer) {
2337
+ var f = undefined;
2338
+ f = message.getAccountsList();
2339
+ if (f.length > 0) {
2340
+ writer.writeRepeatedMessage(
2341
+ 1,
2342
+ f,
2343
+ proto.Platform.LocalAccountProto.serializeBinaryToWriter
2344
+ );
2345
+ }
2346
+ f = message.getPagination();
2347
+ if (f != null) {
2348
+ writer.writeMessage(
2349
+ 2,
2350
+ f,
2351
+ platform_pagination_pb.PaginationProto.serializeBinaryToWriter
2352
+ );
2353
+ }
2354
+ };
2355
+
2356
+
2357
+ /**
2358
+ * repeated LocalAccountProto accounts = 1;
2359
+ * @return {!Array<!proto.Platform.LocalAccountProto>}
2360
+ */
2361
+ proto.Platform.LocalAccountProto.SearchReply.prototype.getAccountsList = function() {
2362
+ return /** @type{!Array<!proto.Platform.LocalAccountProto>} */ (
2363
+ jspb.Message.getRepeatedWrapperField(this, proto.Platform.LocalAccountProto, 1));
2364
+ };
2365
+
2366
+
2367
+ /**
2368
+ * @param {!Array<!proto.Platform.LocalAccountProto>} value
2369
+ * @return {!proto.Platform.LocalAccountProto.SearchReply} returns this
2370
+ */
2371
+ proto.Platform.LocalAccountProto.SearchReply.prototype.setAccountsList = function(value) {
2372
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2373
+ };
2374
+
2375
+
2376
+ /**
2377
+ * @param {!proto.Platform.LocalAccountProto=} opt_value
2378
+ * @param {number=} opt_index
2379
+ * @return {!proto.Platform.LocalAccountProto}
2380
+ */
2381
+ proto.Platform.LocalAccountProto.SearchReply.prototype.addAccounts = function(opt_value, opt_index) {
2382
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Platform.LocalAccountProto, opt_index);
2383
+ };
2384
+
2385
+
2386
+ /**
2387
+ * Clears the list making it empty but non-null.
2388
+ * @return {!proto.Platform.LocalAccountProto.SearchReply} returns this
2389
+ */
2390
+ proto.Platform.LocalAccountProto.SearchReply.prototype.clearAccountsList = function() {
2391
+ return this.setAccountsList([]);
2392
+ };
2393
+
2394
+
2395
+ /**
2396
+ * optional PaginationProto pagination = 2;
2397
+ * @return {?proto.Platform.PaginationProto}
2398
+ */
2399
+ proto.Platform.LocalAccountProto.SearchReply.prototype.getPagination = function() {
2400
+ return /** @type{?proto.Platform.PaginationProto} */ (
2401
+ jspb.Message.getWrapperField(this, platform_pagination_pb.PaginationProto, 2));
2402
+ };
2403
+
2404
+
2405
+ /**
2406
+ * @param {?proto.Platform.PaginationProto|undefined} value
2407
+ * @return {!proto.Platform.LocalAccountProto.SearchReply} returns this
2408
+ */
2409
+ proto.Platform.LocalAccountProto.SearchReply.prototype.setPagination = function(value) {
2410
+ return jspb.Message.setWrapperField(this, 2, value);
2411
+ };
2412
+
2413
+
2414
+ /**
2415
+ * Clears the message field making it undefined.
2416
+ * @return {!proto.Platform.LocalAccountProto.SearchReply} returns this
2417
+ */
2418
+ proto.Platform.LocalAccountProto.SearchReply.prototype.clearPagination = function() {
2419
+ return this.setPagination(undefined);
2420
+ };
2421
+
2422
+
2423
+ /**
2424
+ * Returns whether this field is set.
2425
+ * @return {boolean}
2426
+ */
2427
+ proto.Platform.LocalAccountProto.SearchReply.prototype.hasPagination = function() {
2428
+ return jspb.Message.getField(this, 2) != null;
2429
+ };
2430
+
2431
+
2432
+
2433
+
2434
+
2435
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2436
+ /**
2437
+ * Creates an object representation of this proto.
2438
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2439
+ * Optional fields that are not set will be set to undefined.
2440
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2441
+ * For the list of reserved names please see:
2442
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2443
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2444
+ * JSPB instance for transitional soy proto support:
2445
+ * http://goto/soy-param-migration
2446
+ * @return {!Object}
2447
+ */
2448
+ proto.Platform.LocalAccountProto.SetClientRequest.prototype.toObject = function(opt_includeInstance) {
2449
+ return proto.Platform.LocalAccountProto.SetClientRequest.toObject(opt_includeInstance, this);
2450
+ };
2451
+
2452
+
2453
+ /**
2454
+ * Static version of the {@see toObject} method.
2455
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2456
+ * the JSPB instance for transitional soy proto support:
2457
+ * http://goto/soy-param-migration
2458
+ * @param {!proto.Platform.LocalAccountProto.SetClientRequest} msg The msg instance to transform.
2459
+ * @return {!Object}
2460
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2461
+ */
2462
+ proto.Platform.LocalAccountProto.SetClientRequest.toObject = function(includeInstance, msg) {
2463
+ var f, obj = {
2464
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
2465
+ clientId: jspb.Message.getFieldWithDefault(msg, 2, 0)
2466
+ };
2467
+
2468
+ if (includeInstance) {
2469
+ obj.$jspbMessageInstance = msg;
2470
+ }
2471
+ return obj;
2472
+ };
2473
+ }
2474
+
2475
+
2476
+ /**
2477
+ * Deserializes binary data (in protobuf wire format).
2478
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2479
+ * @return {!proto.Platform.LocalAccountProto.SetClientRequest}
2480
+ */
2481
+ proto.Platform.LocalAccountProto.SetClientRequest.deserializeBinary = function(bytes) {
2482
+ var reader = new jspb.BinaryReader(bytes);
2483
+ var msg = new proto.Platform.LocalAccountProto.SetClientRequest;
2484
+ return proto.Platform.LocalAccountProto.SetClientRequest.deserializeBinaryFromReader(msg, reader);
2485
+ };
2486
+
2487
+
2488
+ /**
2489
+ * Deserializes binary data (in protobuf wire format) from the
2490
+ * given reader into the given message object.
2491
+ * @param {!proto.Platform.LocalAccountProto.SetClientRequest} msg The message object to deserialize into.
2492
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2493
+ * @return {!proto.Platform.LocalAccountProto.SetClientRequest}
2494
+ */
2495
+ proto.Platform.LocalAccountProto.SetClientRequest.deserializeBinaryFromReader = function(msg, reader) {
2496
+ while (reader.nextField()) {
2497
+ if (reader.isEndGroup()) {
2498
+ break;
2499
+ }
2500
+ var field = reader.getFieldNumber();
2501
+ switch (field) {
2502
+ case 1:
2503
+ var value = /** @type {number} */ (reader.readInt64());
2504
+ msg.setId(value);
2505
+ break;
2506
+ case 2:
2507
+ var value = /** @type {number} */ (reader.readInt32());
2508
+ msg.setClientId(value);
2509
+ break;
2510
+ default:
2511
+ reader.skipField();
2512
+ break;
2513
+ }
2514
+ }
2515
+ return msg;
2516
+ };
2517
+
2518
+
2519
+ /**
2520
+ * Serializes the message to binary data (in protobuf wire format).
2521
+ * @return {!Uint8Array}
2522
+ */
2523
+ proto.Platform.LocalAccountProto.SetClientRequest.prototype.serializeBinary = function() {
2524
+ var writer = new jspb.BinaryWriter();
2525
+ proto.Platform.LocalAccountProto.SetClientRequest.serializeBinaryToWriter(this, writer);
2526
+ return writer.getResultBuffer();
2527
+ };
2528
+
2529
+
2530
+ /**
2531
+ * Serializes the given message to binary data (in protobuf wire
2532
+ * format), writing to the given BinaryWriter.
2533
+ * @param {!proto.Platform.LocalAccountProto.SetClientRequest} message
2534
+ * @param {!jspb.BinaryWriter} writer
2535
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2536
+ */
2537
+ proto.Platform.LocalAccountProto.SetClientRequest.serializeBinaryToWriter = function(message, writer) {
2538
+ var f = undefined;
2539
+ f = message.getId();
2540
+ if (f !== 0) {
2541
+ writer.writeInt64(
2542
+ 1,
2543
+ f
2544
+ );
2545
+ }
2546
+ f = message.getClientId();
2547
+ if (f !== 0) {
2548
+ writer.writeInt32(
2549
+ 2,
2550
+ f
2551
+ );
2552
+ }
2553
+ };
2554
+
2555
+
2556
+ /**
2557
+ * optional int64 id = 1;
2558
+ * @return {number}
2559
+ */
2560
+ proto.Platform.LocalAccountProto.SetClientRequest.prototype.getId = function() {
2561
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2562
+ };
2563
+
2564
+
2565
+ /**
2566
+ * @param {number} value
2567
+ * @return {!proto.Platform.LocalAccountProto.SetClientRequest} returns this
2568
+ */
2569
+ proto.Platform.LocalAccountProto.SetClientRequest.prototype.setId = function(value) {
2570
+ return jspb.Message.setProto3IntField(this, 1, value);
2571
+ };
2572
+
2573
+
2574
+ /**
2575
+ * optional int32 client_id = 2;
2576
+ * @return {number}
2577
+ */
2578
+ proto.Platform.LocalAccountProto.SetClientRequest.prototype.getClientId = function() {
2579
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2580
+ };
2581
+
2582
+
2583
+ /**
2584
+ * @param {number} value
2585
+ * @return {!proto.Platform.LocalAccountProto.SetClientRequest} returns this
2586
+ */
2587
+ proto.Platform.LocalAccountProto.SetClientRequest.prototype.setClientId = function(value) {
2588
+ return jspb.Message.setProto3IntField(this, 2, value);
2589
+ };
2590
+
2591
+
2592
+
2593
+
2594
+
2595
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2596
+ /**
2597
+ * Creates an object representation of this proto.
2598
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2599
+ * Optional fields that are not set will be set to undefined.
2600
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2601
+ * For the list of reserved names please see:
2602
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2603
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2604
+ * JSPB instance for transitional soy proto support:
2605
+ * http://goto/soy-param-migration
2606
+ * @return {!Object}
2607
+ */
2608
+ proto.Platform.LocalAccountProto.EnableAccount.prototype.toObject = function(opt_includeInstance) {
2609
+ return proto.Platform.LocalAccountProto.EnableAccount.toObject(opt_includeInstance, this);
2610
+ };
2611
+
2612
+
2613
+ /**
2614
+ * Static version of the {@see toObject} method.
2615
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2616
+ * the JSPB instance for transitional soy proto support:
2617
+ * http://goto/soy-param-migration
2618
+ * @param {!proto.Platform.LocalAccountProto.EnableAccount} msg The msg instance to transform.
2619
+ * @return {!Object}
2620
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2621
+ */
2622
+ proto.Platform.LocalAccountProto.EnableAccount.toObject = function(includeInstance, msg) {
2623
+ var f, obj = {
2624
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
2625
+ };
2626
+
2627
+ if (includeInstance) {
2628
+ obj.$jspbMessageInstance = msg;
2629
+ }
2630
+ return obj;
2631
+ };
2632
+ }
2633
+
2634
+
2635
+ /**
2636
+ * Deserializes binary data (in protobuf wire format).
2637
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2638
+ * @return {!proto.Platform.LocalAccountProto.EnableAccount}
2639
+ */
2640
+ proto.Platform.LocalAccountProto.EnableAccount.deserializeBinary = function(bytes) {
2641
+ var reader = new jspb.BinaryReader(bytes);
2642
+ var msg = new proto.Platform.LocalAccountProto.EnableAccount;
2643
+ return proto.Platform.LocalAccountProto.EnableAccount.deserializeBinaryFromReader(msg, reader);
2644
+ };
2645
+
2646
+
2647
+ /**
2648
+ * Deserializes binary data (in protobuf wire format) from the
2649
+ * given reader into the given message object.
2650
+ * @param {!proto.Platform.LocalAccountProto.EnableAccount} msg The message object to deserialize into.
2651
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2652
+ * @return {!proto.Platform.LocalAccountProto.EnableAccount}
2653
+ */
2654
+ proto.Platform.LocalAccountProto.EnableAccount.deserializeBinaryFromReader = function(msg, reader) {
2655
+ while (reader.nextField()) {
2656
+ if (reader.isEndGroup()) {
2657
+ break;
2658
+ }
2659
+ var field = reader.getFieldNumber();
2660
+ switch (field) {
2661
+ case 1:
2662
+ var value = /** @type {number} */ (reader.readInt64());
2663
+ msg.setId(value);
2664
+ break;
2665
+ default:
2666
+ reader.skipField();
2667
+ break;
2668
+ }
2669
+ }
2670
+ return msg;
2671
+ };
2672
+
2673
+
2674
+ /**
2675
+ * Serializes the message to binary data (in protobuf wire format).
2676
+ * @return {!Uint8Array}
2677
+ */
2678
+ proto.Platform.LocalAccountProto.EnableAccount.prototype.serializeBinary = function() {
2679
+ var writer = new jspb.BinaryWriter();
2680
+ proto.Platform.LocalAccountProto.EnableAccount.serializeBinaryToWriter(this, writer);
2681
+ return writer.getResultBuffer();
2682
+ };
2683
+
2684
+
2685
+ /**
2686
+ * Serializes the given message to binary data (in protobuf wire
2687
+ * format), writing to the given BinaryWriter.
2688
+ * @param {!proto.Platform.LocalAccountProto.EnableAccount} message
2689
+ * @param {!jspb.BinaryWriter} writer
2690
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2691
+ */
2692
+ proto.Platform.LocalAccountProto.EnableAccount.serializeBinaryToWriter = function(message, writer) {
2693
+ var f = undefined;
2694
+ f = message.getId();
2695
+ if (f !== 0) {
2696
+ writer.writeInt64(
2697
+ 1,
2698
+ f
2699
+ );
2700
+ }
2701
+ };
2702
+
2703
+
2704
+ /**
2705
+ * optional int64 id = 1;
2706
+ * @return {number}
2707
+ */
2708
+ proto.Platform.LocalAccountProto.EnableAccount.prototype.getId = function() {
2709
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2710
+ };
2711
+
2712
+
2713
+ /**
2714
+ * @param {number} value
2715
+ * @return {!proto.Platform.LocalAccountProto.EnableAccount} returns this
2716
+ */
2717
+ proto.Platform.LocalAccountProto.EnableAccount.prototype.setId = function(value) {
2718
+ return jspb.Message.setProto3IntField(this, 1, value);
2719
+ };
2720
+
2721
+
2722
+
2723
+
2724
+
2725
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2726
+ /**
2727
+ * Creates an object representation of this proto.
2728
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2729
+ * Optional fields that are not set will be set to undefined.
2730
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2731
+ * For the list of reserved names please see:
2732
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2733
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2734
+ * JSPB instance for transitional soy proto support:
2735
+ * http://goto/soy-param-migration
2736
+ * @return {!Object}
2737
+ */
2738
+ proto.Platform.LocalAccountProto.DisableAccount.prototype.toObject = function(opt_includeInstance) {
2739
+ return proto.Platform.LocalAccountProto.DisableAccount.toObject(opt_includeInstance, this);
2740
+ };
2741
+
2742
+
2743
+ /**
2744
+ * Static version of the {@see toObject} method.
2745
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2746
+ * the JSPB instance for transitional soy proto support:
2747
+ * http://goto/soy-param-migration
2748
+ * @param {!proto.Platform.LocalAccountProto.DisableAccount} msg The msg instance to transform.
2749
+ * @return {!Object}
2750
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2751
+ */
2752
+ proto.Platform.LocalAccountProto.DisableAccount.toObject = function(includeInstance, msg) {
2753
+ var f, obj = {
2754
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
2755
+ };
2756
+
2757
+ if (includeInstance) {
2758
+ obj.$jspbMessageInstance = msg;
2759
+ }
2760
+ return obj;
2761
+ };
2762
+ }
2763
+
2764
+
2765
+ /**
2766
+ * Deserializes binary data (in protobuf wire format).
2767
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2768
+ * @return {!proto.Platform.LocalAccountProto.DisableAccount}
2769
+ */
2770
+ proto.Platform.LocalAccountProto.DisableAccount.deserializeBinary = function(bytes) {
2771
+ var reader = new jspb.BinaryReader(bytes);
2772
+ var msg = new proto.Platform.LocalAccountProto.DisableAccount;
2773
+ return proto.Platform.LocalAccountProto.DisableAccount.deserializeBinaryFromReader(msg, reader);
2774
+ };
2775
+
2776
+
2777
+ /**
2778
+ * Deserializes binary data (in protobuf wire format) from the
2779
+ * given reader into the given message object.
2780
+ * @param {!proto.Platform.LocalAccountProto.DisableAccount} msg The message object to deserialize into.
2781
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2782
+ * @return {!proto.Platform.LocalAccountProto.DisableAccount}
2783
+ */
2784
+ proto.Platform.LocalAccountProto.DisableAccount.deserializeBinaryFromReader = function(msg, reader) {
2785
+ while (reader.nextField()) {
2786
+ if (reader.isEndGroup()) {
2787
+ break;
2788
+ }
2789
+ var field = reader.getFieldNumber();
2790
+ switch (field) {
2791
+ case 1:
2792
+ var value = /** @type {number} */ (reader.readInt64());
2793
+ msg.setId(value);
2794
+ break;
2795
+ default:
2796
+ reader.skipField();
2797
+ break;
2798
+ }
2799
+ }
2800
+ return msg;
2801
+ };
2802
+
2803
+
2804
+ /**
2805
+ * Serializes the message to binary data (in protobuf wire format).
2806
+ * @return {!Uint8Array}
2807
+ */
2808
+ proto.Platform.LocalAccountProto.DisableAccount.prototype.serializeBinary = function() {
2809
+ var writer = new jspb.BinaryWriter();
2810
+ proto.Platform.LocalAccountProto.DisableAccount.serializeBinaryToWriter(this, writer);
2811
+ return writer.getResultBuffer();
2812
+ };
2813
+
2814
+
2815
+ /**
2816
+ * Serializes the given message to binary data (in protobuf wire
2817
+ * format), writing to the given BinaryWriter.
2818
+ * @param {!proto.Platform.LocalAccountProto.DisableAccount} message
2819
+ * @param {!jspb.BinaryWriter} writer
2820
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2821
+ */
2822
+ proto.Platform.LocalAccountProto.DisableAccount.serializeBinaryToWriter = function(message, writer) {
2823
+ var f = undefined;
2824
+ f = message.getId();
2825
+ if (f !== 0) {
2826
+ writer.writeInt64(
2827
+ 1,
2828
+ f
2829
+ );
2830
+ }
2831
+ };
2832
+
2833
+
2834
+ /**
2835
+ * optional int64 id = 1;
2836
+ * @return {number}
2837
+ */
2838
+ proto.Platform.LocalAccountProto.DisableAccount.prototype.getId = function() {
2839
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2840
+ };
2841
+
2842
+
2843
+ /**
2844
+ * @param {number} value
2845
+ * @return {!proto.Platform.LocalAccountProto.DisableAccount} returns this
2846
+ */
2847
+ proto.Platform.LocalAccountProto.DisableAccount.prototype.setId = function(value) {
2848
+ return jspb.Message.setProto3IntField(this, 1, value);
2849
+ };
2850
+
2851
+
2852
+
2853
+
2854
+
2855
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2856
+ /**
2857
+ * Creates an object representation of this proto.
2858
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2859
+ * Optional fields that are not set will be set to undefined.
2860
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2861
+ * For the list of reserved names please see:
2862
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2863
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2864
+ * JSPB instance for transitional soy proto support:
2865
+ * http://goto/soy-param-migration
2866
+ * @return {!Object}
2867
+ */
2868
+ proto.Platform.LocalAccountProto.UpdateExpiredAt.prototype.toObject = function(opt_includeInstance) {
2869
+ return proto.Platform.LocalAccountProto.UpdateExpiredAt.toObject(opt_includeInstance, this);
2870
+ };
2871
+
2872
+
2873
+ /**
2874
+ * Static version of the {@see toObject} method.
2875
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2876
+ * the JSPB instance for transitional soy proto support:
2877
+ * http://goto/soy-param-migration
2878
+ * @param {!proto.Platform.LocalAccountProto.UpdateExpiredAt} msg The msg instance to transform.
2879
+ * @return {!Object}
2880
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2881
+ */
2882
+ proto.Platform.LocalAccountProto.UpdateExpiredAt.toObject = function(includeInstance, msg) {
2883
+ var f, obj = {
2884
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
2885
+ expiredAt: (f = msg.getExpiredAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
2886
+ };
2887
+
2888
+ if (includeInstance) {
2889
+ obj.$jspbMessageInstance = msg;
2890
+ }
2891
+ return obj;
2892
+ };
2893
+ }
2894
+
2895
+
2896
+ /**
2897
+ * Deserializes binary data (in protobuf wire format).
2898
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2899
+ * @return {!proto.Platform.LocalAccountProto.UpdateExpiredAt}
2900
+ */
2901
+ proto.Platform.LocalAccountProto.UpdateExpiredAt.deserializeBinary = function(bytes) {
2902
+ var reader = new jspb.BinaryReader(bytes);
2903
+ var msg = new proto.Platform.LocalAccountProto.UpdateExpiredAt;
2904
+ return proto.Platform.LocalAccountProto.UpdateExpiredAt.deserializeBinaryFromReader(msg, reader);
2905
+ };
2906
+
2907
+
2908
+ /**
2909
+ * Deserializes binary data (in protobuf wire format) from the
2910
+ * given reader into the given message object.
2911
+ * @param {!proto.Platform.LocalAccountProto.UpdateExpiredAt} msg The message object to deserialize into.
2912
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2913
+ * @return {!proto.Platform.LocalAccountProto.UpdateExpiredAt}
2914
+ */
2915
+ proto.Platform.LocalAccountProto.UpdateExpiredAt.deserializeBinaryFromReader = function(msg, reader) {
2916
+ while (reader.nextField()) {
2917
+ if (reader.isEndGroup()) {
2918
+ break;
2919
+ }
2920
+ var field = reader.getFieldNumber();
2921
+ switch (field) {
2922
+ case 1:
2923
+ var value = /** @type {number} */ (reader.readInt64());
2924
+ msg.setId(value);
2925
+ break;
2926
+ case 2:
2927
+ var value = new google_protobuf_timestamp_pb.Timestamp;
2928
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
2929
+ msg.setExpiredAt(value);
2930
+ break;
2931
+ default:
2932
+ reader.skipField();
2933
+ break;
2934
+ }
2935
+ }
2936
+ return msg;
2937
+ };
2938
+
2939
+
2940
+ /**
2941
+ * Serializes the message to binary data (in protobuf wire format).
2942
+ * @return {!Uint8Array}
2943
+ */
2944
+ proto.Platform.LocalAccountProto.UpdateExpiredAt.prototype.serializeBinary = function() {
2945
+ var writer = new jspb.BinaryWriter();
2946
+ proto.Platform.LocalAccountProto.UpdateExpiredAt.serializeBinaryToWriter(this, writer);
2947
+ return writer.getResultBuffer();
2948
+ };
2949
+
2950
+
2951
+ /**
2952
+ * Serializes the given message to binary data (in protobuf wire
2953
+ * format), writing to the given BinaryWriter.
2954
+ * @param {!proto.Platform.LocalAccountProto.UpdateExpiredAt} message
2955
+ * @param {!jspb.BinaryWriter} writer
2956
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2957
+ */
2958
+ proto.Platform.LocalAccountProto.UpdateExpiredAt.serializeBinaryToWriter = function(message, writer) {
2959
+ var f = undefined;
2960
+ f = message.getId();
2961
+ if (f !== 0) {
2962
+ writer.writeInt64(
2963
+ 1,
2964
+ f
2965
+ );
2966
+ }
2967
+ f = message.getExpiredAt();
2968
+ if (f != null) {
2969
+ writer.writeMessage(
2970
+ 2,
2971
+ f,
2972
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
2973
+ );
2974
+ }
2975
+ };
2976
+
2977
+
2978
+ /**
2979
+ * optional int64 id = 1;
2980
+ * @return {number}
2981
+ */
2982
+ proto.Platform.LocalAccountProto.UpdateExpiredAt.prototype.getId = function() {
2983
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2984
+ };
2985
+
2986
+
2987
+ /**
2988
+ * @param {number} value
2989
+ * @return {!proto.Platform.LocalAccountProto.UpdateExpiredAt} returns this
2990
+ */
2991
+ proto.Platform.LocalAccountProto.UpdateExpiredAt.prototype.setId = function(value) {
2992
+ return jspb.Message.setProto3IntField(this, 1, value);
2993
+ };
2994
+
2995
+
2996
+ /**
2997
+ * optional google.protobuf.Timestamp expired_at = 2;
2998
+ * @return {?proto.google.protobuf.Timestamp}
2999
+ */
3000
+ proto.Platform.LocalAccountProto.UpdateExpiredAt.prototype.getExpiredAt = function() {
3001
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
3002
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
3003
+ };
3004
+
3005
+
3006
+ /**
3007
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
3008
+ * @return {!proto.Platform.LocalAccountProto.UpdateExpiredAt} returns this
3009
+ */
3010
+ proto.Platform.LocalAccountProto.UpdateExpiredAt.prototype.setExpiredAt = function(value) {
3011
+ return jspb.Message.setWrapperField(this, 2, value);
3012
+ };
3013
+
3014
+
3015
+ /**
3016
+ * Clears the message field making it undefined.
3017
+ * @return {!proto.Platform.LocalAccountProto.UpdateExpiredAt} returns this
3018
+ */
3019
+ proto.Platform.LocalAccountProto.UpdateExpiredAt.prototype.clearExpiredAt = function() {
3020
+ return this.setExpiredAt(undefined);
3021
+ };
3022
+
3023
+
3024
+ /**
3025
+ * Returns whether this field is set.
3026
+ * @return {boolean}
3027
+ */
3028
+ proto.Platform.LocalAccountProto.UpdateExpiredAt.prototype.hasExpiredAt = function() {
3029
+ return jspb.Message.getField(this, 2) != null;
3030
+ };
3031
+
3032
+
3033
+
3034
+
3035
+
3036
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3037
+ /**
3038
+ * Creates an object representation of this proto.
3039
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3040
+ * Optional fields that are not set will be set to undefined.
3041
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3042
+ * For the list of reserved names please see:
3043
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3044
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3045
+ * JSPB instance for transitional soy proto support:
3046
+ * http://goto/soy-param-migration
3047
+ * @return {!Object}
3048
+ */
3049
+ proto.Platform.LocalAccountProto.ResendInvitationRequest.prototype.toObject = function(opt_includeInstance) {
3050
+ return proto.Platform.LocalAccountProto.ResendInvitationRequest.toObject(opt_includeInstance, this);
3051
+ };
3052
+
3053
+
3054
+ /**
3055
+ * Static version of the {@see toObject} method.
3056
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3057
+ * the JSPB instance for transitional soy proto support:
3058
+ * http://goto/soy-param-migration
3059
+ * @param {!proto.Platform.LocalAccountProto.ResendInvitationRequest} msg The msg instance to transform.
3060
+ * @return {!Object}
3061
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3062
+ */
3063
+ proto.Platform.LocalAccountProto.ResendInvitationRequest.toObject = function(includeInstance, msg) {
3064
+ var f, obj = {
3065
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
3066
+ };
3067
+
3068
+ if (includeInstance) {
3069
+ obj.$jspbMessageInstance = msg;
3070
+ }
3071
+ return obj;
3072
+ };
3073
+ }
3074
+
3075
+
3076
+ /**
3077
+ * Deserializes binary data (in protobuf wire format).
3078
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3079
+ * @return {!proto.Platform.LocalAccountProto.ResendInvitationRequest}
3080
+ */
3081
+ proto.Platform.LocalAccountProto.ResendInvitationRequest.deserializeBinary = function(bytes) {
3082
+ var reader = new jspb.BinaryReader(bytes);
3083
+ var msg = new proto.Platform.LocalAccountProto.ResendInvitationRequest;
3084
+ return proto.Platform.LocalAccountProto.ResendInvitationRequest.deserializeBinaryFromReader(msg, reader);
3085
+ };
3086
+
3087
+
3088
+ /**
3089
+ * Deserializes binary data (in protobuf wire format) from the
3090
+ * given reader into the given message object.
3091
+ * @param {!proto.Platform.LocalAccountProto.ResendInvitationRequest} msg The message object to deserialize into.
3092
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3093
+ * @return {!proto.Platform.LocalAccountProto.ResendInvitationRequest}
3094
+ */
3095
+ proto.Platform.LocalAccountProto.ResendInvitationRequest.deserializeBinaryFromReader = function(msg, reader) {
3096
+ while (reader.nextField()) {
3097
+ if (reader.isEndGroup()) {
3098
+ break;
3099
+ }
3100
+ var field = reader.getFieldNumber();
3101
+ switch (field) {
3102
+ case 1:
3103
+ var value = /** @type {number} */ (reader.readInt64());
3104
+ msg.setId(value);
3105
+ break;
3106
+ default:
3107
+ reader.skipField();
3108
+ break;
3109
+ }
3110
+ }
3111
+ return msg;
3112
+ };
3113
+
3114
+
3115
+ /**
3116
+ * Serializes the message to binary data (in protobuf wire format).
3117
+ * @return {!Uint8Array}
3118
+ */
3119
+ proto.Platform.LocalAccountProto.ResendInvitationRequest.prototype.serializeBinary = function() {
3120
+ var writer = new jspb.BinaryWriter();
3121
+ proto.Platform.LocalAccountProto.ResendInvitationRequest.serializeBinaryToWriter(this, writer);
3122
+ return writer.getResultBuffer();
3123
+ };
3124
+
3125
+
3126
+ /**
3127
+ * Serializes the given message to binary data (in protobuf wire
3128
+ * format), writing to the given BinaryWriter.
3129
+ * @param {!proto.Platform.LocalAccountProto.ResendInvitationRequest} message
3130
+ * @param {!jspb.BinaryWriter} writer
3131
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3132
+ */
3133
+ proto.Platform.LocalAccountProto.ResendInvitationRequest.serializeBinaryToWriter = function(message, writer) {
3134
+ var f = undefined;
3135
+ f = message.getId();
3136
+ if (f !== 0) {
3137
+ writer.writeInt64(
3138
+ 1,
3139
+ f
3140
+ );
3141
+ }
3142
+ };
3143
+
3144
+
3145
+ /**
3146
+ * optional int64 id = 1;
3147
+ * @return {number}
3148
+ */
3149
+ proto.Platform.LocalAccountProto.ResendInvitationRequest.prototype.getId = function() {
3150
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3151
+ };
3152
+
3153
+
3154
+ /**
3155
+ * @param {number} value
3156
+ * @return {!proto.Platform.LocalAccountProto.ResendInvitationRequest} returns this
3157
+ */
3158
+ proto.Platform.LocalAccountProto.ResendInvitationRequest.prototype.setId = function(value) {
3159
+ return jspb.Message.setProto3IntField(this, 1, value);
3160
+ };
3161
+
3162
+
3163
+ /**
3164
+ * optional int64 id = 1;
3165
+ * @return {number}
3166
+ */
3167
+ proto.Platform.LocalAccountProto.prototype.getId = function() {
3168
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3169
+ };
3170
+
3171
+
3172
+ /**
3173
+ * @param {number} value
3174
+ * @return {!proto.Platform.LocalAccountProto} returns this
3175
+ */
3176
+ proto.Platform.LocalAccountProto.prototype.setId = function(value) {
3177
+ return jspb.Message.setProto3IntField(this, 1, value);
3178
+ };
3179
+
3180
+
3181
+ /**
3182
+ * optional string email = 2;
3183
+ * @return {string}
3184
+ */
3185
+ proto.Platform.LocalAccountProto.prototype.getEmail = function() {
3186
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3187
+ };
3188
+
3189
+
3190
+ /**
3191
+ * @param {string} value
3192
+ * @return {!proto.Platform.LocalAccountProto} returns this
3193
+ */
3194
+ proto.Platform.LocalAccountProto.prototype.setEmail = function(value) {
3195
+ return jspb.Message.setProto3StringField(this, 2, value);
3196
+ };
3197
+
3198
+
3199
+ /**
3200
+ * optional string phone = 3;
3201
+ * @return {string}
3202
+ */
3203
+ proto.Platform.LocalAccountProto.prototype.getPhone = function() {
3204
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3205
+ };
3206
+
3207
+
3208
+ /**
3209
+ * @param {string} value
3210
+ * @return {!proto.Platform.LocalAccountProto} returns this
3211
+ */
3212
+ proto.Platform.LocalAccountProto.prototype.setPhone = function(value) {
3213
+ return jspb.Message.setProto3StringField(this, 3, value);
3214
+ };
3215
+
3216
+
3217
+ /**
3218
+ * optional string last_name = 4;
3219
+ * @return {string}
3220
+ */
3221
+ proto.Platform.LocalAccountProto.prototype.getLastName = function() {
3222
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3223
+ };
3224
+
3225
+
3226
+ /**
3227
+ * @param {string} value
3228
+ * @return {!proto.Platform.LocalAccountProto} returns this
3229
+ */
3230
+ proto.Platform.LocalAccountProto.prototype.setLastName = function(value) {
3231
+ return jspb.Message.setProto3StringField(this, 4, value);
3232
+ };
3233
+
3234
+
3235
+ /**
3236
+ * optional string first_name = 5;
3237
+ * @return {string}
3238
+ */
3239
+ proto.Platform.LocalAccountProto.prototype.getFirstName = function() {
3240
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3241
+ };
3242
+
3243
+
3244
+ /**
3245
+ * @param {string} value
3246
+ * @return {!proto.Platform.LocalAccountProto} returns this
3247
+ */
3248
+ proto.Platform.LocalAccountProto.prototype.setFirstName = function(value) {
3249
+ return jspb.Message.setProto3StringField(this, 5, value);
3250
+ };
3251
+
3252
+
3253
+ /**
3254
+ * optional string locale = 6;
3255
+ * @return {string}
3256
+ */
3257
+ proto.Platform.LocalAccountProto.prototype.getLocale = function() {
3258
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
3259
+ };
3260
+
3261
+
3262
+ /**
3263
+ * @param {string} value
3264
+ * @return {!proto.Platform.LocalAccountProto} returns this
3265
+ */
3266
+ proto.Platform.LocalAccountProto.prototype.setLocale = function(value) {
3267
+ return jspb.Message.setProto3StringField(this, 6, value);
3268
+ };
3269
+
3270
+
3271
+ /**
3272
+ * optional string company = 7;
3273
+ * @return {string}
3274
+ */
3275
+ proto.Platform.LocalAccountProto.prototype.getCompany = function() {
3276
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
3277
+ };
3278
+
3279
+
3280
+ /**
3281
+ * @param {string} value
3282
+ * @return {!proto.Platform.LocalAccountProto} returns this
3283
+ */
3284
+ proto.Platform.LocalAccountProto.prototype.setCompany = function(value) {
3285
+ return jspb.Message.setProto3StringField(this, 7, value);
3286
+ };
3287
+
3288
+
3289
+ /**
3290
+ * optional string group_id = 8;
3291
+ * @return {string}
3292
+ */
3293
+ proto.Platform.LocalAccountProto.prototype.getGroupId = function() {
3294
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
3295
+ };
3296
+
3297
+
3298
+ /**
3299
+ * @param {string} value
3300
+ * @return {!proto.Platform.LocalAccountProto} returns this
3301
+ */
3302
+ proto.Platform.LocalAccountProto.prototype.setGroupId = function(value) {
3303
+ return jspb.Message.setProto3StringField(this, 8, value);
3304
+ };
3305
+
3306
+
3307
+ /**
3308
+ * optional bool enabled = 9;
3309
+ * @return {boolean}
3310
+ */
3311
+ proto.Platform.LocalAccountProto.prototype.getEnabled = function() {
3312
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
3313
+ };
3314
+
3315
+
3316
+ /**
3317
+ * @param {boolean} value
3318
+ * @return {!proto.Platform.LocalAccountProto} returns this
3319
+ */
3320
+ proto.Platform.LocalAccountProto.prototype.setEnabled = function(value) {
3321
+ return jspb.Message.setProto3BooleanField(this, 9, value);
3322
+ };
3323
+
3324
+
3325
+ /**
3326
+ * optional google.protobuf.Timestamp expired_at = 10;
3327
+ * @return {?proto.google.protobuf.Timestamp}
3328
+ */
3329
+ proto.Platform.LocalAccountProto.prototype.getExpiredAt = function() {
3330
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
3331
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10));
3332
+ };
3333
+
3334
+
3335
+ /**
3336
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
3337
+ * @return {!proto.Platform.LocalAccountProto} returns this
3338
+ */
3339
+ proto.Platform.LocalAccountProto.prototype.setExpiredAt = function(value) {
3340
+ return jspb.Message.setWrapperField(this, 10, value);
3341
+ };
3342
+
3343
+
3344
+ /**
3345
+ * Clears the message field making it undefined.
3346
+ * @return {!proto.Platform.LocalAccountProto} returns this
3347
+ */
3348
+ proto.Platform.LocalAccountProto.prototype.clearExpiredAt = function() {
3349
+ return this.setExpiredAt(undefined);
3350
+ };
3351
+
3352
+
3353
+ /**
3354
+ * Returns whether this field is set.
3355
+ * @return {boolean}
3356
+ */
3357
+ proto.Platform.LocalAccountProto.prototype.hasExpiredAt = function() {
3358
+ return jspb.Message.getField(this, 10) != null;
3359
+ };
3360
+
3361
+
3362
+ /**
3363
+ * repeated Auth.AccountProto.Roles client_roles = 11;
3364
+ * @return {!Array<!proto.Auth.AccountProto.Roles>}
3365
+ */
3366
+ proto.Platform.LocalAccountProto.prototype.getClientRolesList = function() {
3367
+ return /** @type {!Array<!proto.Auth.AccountProto.Roles>} */ (jspb.Message.getRepeatedField(this, 11));
3368
+ };
3369
+
3370
+
3371
+ /**
3372
+ * @param {!Array<!proto.Auth.AccountProto.Roles>} value
3373
+ * @return {!proto.Platform.LocalAccountProto} returns this
3374
+ */
3375
+ proto.Platform.LocalAccountProto.prototype.setClientRolesList = function(value) {
3376
+ return jspb.Message.setField(this, 11, value || []);
3377
+ };
3378
+
3379
+
3380
+ /**
3381
+ * @param {!proto.Auth.AccountProto.Roles} value
3382
+ * @param {number=} opt_index
3383
+ * @return {!proto.Platform.LocalAccountProto} returns this
3384
+ */
3385
+ proto.Platform.LocalAccountProto.prototype.addClientRoles = function(value, opt_index) {
3386
+ return jspb.Message.addToRepeatedField(this, 11, value, opt_index);
3387
+ };
3388
+
3389
+
3390
+ /**
3391
+ * Clears the list making it empty but non-null.
3392
+ * @return {!proto.Platform.LocalAccountProto} returns this
3393
+ */
3394
+ proto.Platform.LocalAccountProto.prototype.clearClientRolesList = function() {
3395
+ return this.setClientRolesList([]);
3396
+ };
3397
+
3398
+
3399
+ /**
3400
+ * optional Auth.AccountProto.ActivationStatuses status = 12;
3401
+ * @return {!proto.Auth.AccountProto.ActivationStatuses}
3402
+ */
3403
+ proto.Platform.LocalAccountProto.prototype.getStatus = function() {
3404
+ return /** @type {!proto.Auth.AccountProto.ActivationStatuses} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
3405
+ };
3406
+
3407
+
3408
+ /**
3409
+ * @param {!proto.Auth.AccountProto.ActivationStatuses} value
3410
+ * @return {!proto.Platform.LocalAccountProto} returns this
3411
+ */
3412
+ proto.Platform.LocalAccountProto.prototype.setStatus = function(value) {
3413
+ return jspb.Message.setProto3EnumField(this, 12, value);
3414
+ };
3415
+
3416
+
3417
+ /**
3418
+ * optional bool deleted = 13;
3419
+ * @return {boolean}
3420
+ */
3421
+ proto.Platform.LocalAccountProto.prototype.getDeleted = function() {
3422
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false));
3423
+ };
3424
+
3425
+
3426
+ /**
3427
+ * @param {boolean} value
3428
+ * @return {!proto.Platform.LocalAccountProto} returns this
3429
+ */
3430
+ proto.Platform.LocalAccountProto.prototype.setDeleted = function(value) {
3431
+ return jspb.Message.setProto3BooleanField(this, 13, value);
3432
+ };
3433
+
3434
+
3435
+ /**
3436
+ * optional int64 client_id = 14;
3437
+ * @return {number}
3438
+ */
3439
+ proto.Platform.LocalAccountProto.prototype.getClientId = function() {
3440
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
3441
+ };
3442
+
3443
+
3444
+ /**
3445
+ * @param {number} value
3446
+ * @return {!proto.Platform.LocalAccountProto} returns this
3447
+ */
3448
+ proto.Platform.LocalAccountProto.prototype.setClientId = function(value) {
3449
+ return jspb.Message.setProto3IntField(this, 14, value);
3450
+ };
3451
+
3452
+
3453
+ /**
3454
+ * optional AccountTypes type = 15;
3455
+ * @return {!proto.Platform.LocalAccountProto.AccountTypes}
3456
+ */
3457
+ proto.Platform.LocalAccountProto.prototype.getType = function() {
3458
+ return /** @type {!proto.Platform.LocalAccountProto.AccountTypes} */ (jspb.Message.getFieldWithDefault(this, 15, 0));
3459
+ };
3460
+
3461
+
3462
+ /**
3463
+ * @param {!proto.Platform.LocalAccountProto.AccountTypes} value
3464
+ * @return {!proto.Platform.LocalAccountProto} returns this
3465
+ */
3466
+ proto.Platform.LocalAccountProto.prototype.setType = function(value) {
3467
+ return jspb.Message.setProto3EnumField(this, 15, value);
3468
+ };
3469
+
3470
+
3471
+ /**
3472
+ * optional string client_name = 16;
3473
+ * @return {string}
3474
+ */
3475
+ proto.Platform.LocalAccountProto.prototype.getClientName = function() {
3476
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
3477
+ };
3478
+
3479
+
3480
+ /**
3481
+ * @param {string} value
3482
+ * @return {!proto.Platform.LocalAccountProto} returns this
3483
+ */
3484
+ proto.Platform.LocalAccountProto.prototype.setClientName = function(value) {
3485
+ return jspb.Message.setProto3StringField(this, 16, value);
3486
+ };
3487
+
3488
+
3489
+ goog.object.extend(exports, proto.Platform);