@aceplus/smartace-api 3.6.0-alpha.17 → 3.6.0-alpha.18

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