@aceplus/smartace-api 2.13.0-alpha.16 → 2.13.0-alpha.17

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