@aceplus/smartace-api 2.5.0 → 2.6.0

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