@aceplus/smartace-api 2.13.0-alpha.11 → 2.13.0-alpha.12

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