@aceplus/smartace-api 2.9.0-alpha.27 → 2.9.0-alpha.28

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