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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. package/auth.account_pb.d.ts +585 -0
  2. package/auth.account_pb.js +4266 -0
  3. package/auth.account_pb_service.d.ts +340 -0
  4. package/auth.account_pb_service.js +637 -0
  5. package/auth.account_two_factor_pb.d.ts +159 -0
  6. package/auth.account_two_factor_pb.js +1184 -0
  7. package/auth.account_two_factor_pb_service.d.ts +121 -0
  8. package/auth.account_two_factor_pb_service.js +182 -0
  9. package/auth.app_account_pb.d.ts +156 -0
  10. package/auth.app_account_pb.js +1153 -0
  11. package/auth.app_account_pb_service.d.ts +160 -0
  12. package/auth.app_account_pb_service.js +263 -0
  13. package/auth.app_authn_pb.d.ts +172 -0
  14. package/auth.app_authn_pb.js +1233 -0
  15. package/auth.app_authn_pb_service.d.ts +140 -0
  16. package/auth.app_authn_pb_service.js +222 -0
  17. package/auth.app_distribution_pb.d.ts +174 -0
  18. package/auth.app_distribution_pb.js +1338 -0
  19. package/auth.app_distribution_pb_service.d.ts +120 -0
  20. package/auth.app_distribution_pb_service.js +181 -0
  21. package/auth.authn_pb.d.ts +94 -0
  22. package/auth.authn_pb.js +636 -0
  23. package/auth.authn_pb_service.d.ts +82 -0
  24. package/auth.authn_pb_service.js +101 -0
  25. package/auth.cluster_pb.d.ts +258 -0
  26. package/auth.cluster_pb.js +1929 -0
  27. package/auth.cluster_pb_service.d.ts +139 -0
  28. package/auth.cluster_pb_service.js +221 -0
  29. package/auth.distribution_pb.d.ts +233 -0
  30. package/auth.distribution_pb.js +1785 -0
  31. package/auth.distribution_pb_service.d.ts +82 -0
  32. package/auth.distribution_pb_service.js +101 -0
  33. package/auth.email_pb.d.ts +277 -0
  34. package/auth.email_pb.js +1960 -0
  35. package/auth.email_pb_service.d.ts +121 -0
  36. package/auth.email_pb_service.js +182 -0
  37. package/auth.firmware_pb.d.ts +256 -0
  38. package/auth.firmware_pb.js +1997 -0
  39. package/auth.firmware_pb_service.d.ts +120 -0
  40. package/auth.firmware_pb_service.js +181 -0
  41. package/auth.push_notification_pb.d.ts +187 -0
  42. package/auth.push_notification_pb.js +1289 -0
  43. package/auth.push_notification_pb_service.d.ts +121 -0
  44. package/auth.push_notification_pb_service.js +182 -0
  45. package/auth.sms_pb.d.ts +79 -0
  46. package/auth.sms_pb.js +575 -0
  47. package/auth.sms_pb_service.d.ts +83 -0
  48. package/auth.sms_pb_service.js +102 -0
  49. package/google/api/annotations_pb.d.ts +9 -0
  50. package/google/api/annotations_pb.js +54 -0
  51. package/google/api/annotations_pb_service.d.ts +3 -0
  52. package/google/api/annotations_pb_service.js +3 -0
  53. package/google/api/auth_pb.d.ts +150 -0
  54. package/google/api/auth_pb.js +1160 -0
  55. package/google/api/auth_pb_service.d.ts +3 -0
  56. package/google/api/auth_pb_service.js +3 -0
  57. package/google/api/backend_pb.d.ts +59 -0
  58. package/google/api/backend_pb.js +448 -0
  59. package/google/api/backend_pb_service.d.ts +3 -0
  60. package/google/api/backend_pb_service.js +3 -0
  61. package/google/api/billing_pb.d.ts +54 -0
  62. package/google/api/billing_pb.js +416 -0
  63. package/google/api/billing_pb_service.d.ts +3 -0
  64. package/google/api/billing_pb_service.js +3 -0
  65. package/google/api/client_pb.d.ts +12 -0
  66. package/google/api/client_pb.js +104 -0
  67. package/google/api/client_pb_service.d.ts +3 -0
  68. package/google/api/client_pb_service.js +3 -0
  69. package/google/api/config_change_pb.d.ts +72 -0
  70. package/google/api/config_change_pb.js +489 -0
  71. package/google/api/config_change_pb_service.d.ts +3 -0
  72. package/google/api/config_change_pb_service.js +3 -0
  73. package/google/api/consumer_pb.d.ts +65 -0
  74. package/google/api/consumer_pb.js +430 -0
  75. package/google/api/consumer_pb_service.d.ts +3 -0
  76. package/google/api/consumer_pb_service.js +3 -0
  77. package/google/api/context_pb.d.ts +59 -0
  78. package/google/api/context_pb.js +463 -0
  79. package/google/api/context_pb_service.d.ts +3 -0
  80. package/google/api/context_pb_service.js +3 -0
  81. package/google/api/control_pb.d.ts +25 -0
  82. package/google/api/control_pb.js +176 -0
  83. package/google/api/control_pb_service.d.ts +3 -0
  84. package/google/api/control_pb_service.js +3 -0
  85. package/google/api/distribution_pb.d.ts +235 -0
  86. package/google/api/distribution_pb.js +1805 -0
  87. package/google/api/distribution_pb_service.d.ts +3 -0
  88. package/google/api/distribution_pb_service.js +3 -0
  89. package/google/api/documentation_pb.d.ts +103 -0
  90. package/google/api/documentation_pb.js +803 -0
  91. package/google/api/documentation_pb_service.d.ts +3 -0
  92. package/google/api/documentation_pb_service.js +3 -0
  93. package/google/api/endpoint_pb.d.ts +46 -0
  94. package/google/api/endpoint_pb.js +343 -0
  95. package/google/api/endpoint_pb_service.d.ts +3 -0
  96. package/google/api/endpoint_pb_service.js +3 -0
  97. package/google/api/error_reason_pb.d.ts +40 -0
  98. package/google/api/error_reason_pb.js +61 -0
  99. package/google/api/error_reason_pb_service.d.ts +3 -0
  100. package/google/api/error_reason_pb_service.js +3 -0
  101. package/google/api/field_behavior_pb.d.ts +20 -0
  102. package/google/api/field_behavior_pb.js +66 -0
  103. package/google/api/field_behavior_pb_service.d.ts +3 -0
  104. package/google/api/field_behavior_pb_service.js +3 -0
  105. package/google/api/http_pb.d.ts +136 -0
  106. package/google/api/http_pb.js +1012 -0
  107. package/google/api/http_pb_service.d.ts +3 -0
  108. package/google/api/http_pb_service.js +3 -0
  109. package/google/api/httpbody_pb.d.ts +38 -0
  110. package/google/api/httpbody_pb.js +292 -0
  111. package/google/api/httpbody_pb_service.d.ts +3 -0
  112. package/google/api/httpbody_pb_service.js +3 -0
  113. package/google/api/label_pb.d.ts +41 -0
  114. package/google/api/label_pb.js +246 -0
  115. package/google/api/label_pb_service.d.ts +3 -0
  116. package/google/api/label_pb_service.js +3 -0
  117. package/google/api/launch_stage_pb.d.ts +16 -0
  118. package/google/api/launch_stage_pb.js +37 -0
  119. package/google/api/launch_stage_pb_service.d.ts +3 -0
  120. package/google/api/launch_stage_pb_service.js +3 -0
  121. package/google/api/log_pb.d.ts +40 -0
  122. package/google/api/log_pb.js +298 -0
  123. package/google/api/log_pb_service.d.ts +3 -0
  124. package/google/api/log_pb_service.js +3 -0
  125. package/google/api/logging_pb.d.ts +60 -0
  126. package/google/api/logging_pb.js +469 -0
  127. package/google/api/logging_pb_service.d.ts +3 -0
  128. package/google/api/logging_pb_service.js +3 -0
  129. package/google/api/metric_pb.d.ts +100 -0
  130. package/google/api/metric_pb.js +629 -0
  131. package/google/api/metric_pb_service.d.ts +3 -0
  132. package/google/api/metric_pb_service.js +3 -0
  133. package/google/api/monitored_resource_pb.d.ts +93 -0
  134. package/google/api/monitored_resource_pb.js +723 -0
  135. package/google/api/monitored_resource_pb_service.d.ts +3 -0
  136. package/google/api/monitored_resource_pb_service.js +3 -0
  137. package/google/api/monitoring_pb.d.ts +60 -0
  138. package/google/api/monitoring_pb.js +469 -0
  139. package/google/api/monitoring_pb_service.d.ts +3 -0
  140. package/google/api/monitoring_pb_service.js +3 -0
  141. package/google/api/policy_pb.d.ts +64 -0
  142. package/google/api/policy_pb.js +502 -0
  143. package/google/api/policy_pb_service.d.ts +3 -0
  144. package/google/api/policy_pb_service.js +3 -0
  145. package/google/api/quota_pb.d.ts +112 -0
  146. package/google/api/quota_pb.js +873 -0
  147. package/google/api/quota_pb_service.d.ts +3 -0
  148. package/google/api/quota_pb_service.js +3 -0
  149. package/google/api/resource_pb.d.ts +99 -0
  150. package/google/api/resource_pb.js +684 -0
  151. package/google/api/resource_pb_service.d.ts +3 -0
  152. package/google/api/resource_pb_service.js +3 -0
  153. package/google/api/routing_pb.d.ts +54 -0
  154. package/google/api/routing_pb.js +416 -0
  155. package/google/api/routing_pb_service.d.ts +3 -0
  156. package/google/api/routing_pb_service.js +3 -0
  157. package/google/api/service_pb.d.ts +184 -0
  158. package/google/api/service_pb.js +1400 -0
  159. package/google/api/service_pb_service.d.ts +3 -0
  160. package/google/api/service_pb_service.js +3 -0
  161. package/google/api/source_info_pb.d.ts +28 -0
  162. package/google/api/source_info_pb.js +208 -0
  163. package/google/api/source_info_pb_service.d.ts +3 -0
  164. package/google/api/source_info_pb_service.js +3 -0
  165. package/google/api/system_parameter_pb.d.ts +81 -0
  166. package/google/api/system_parameter_pb.js +630 -0
  167. package/google/api/system_parameter_pb_service.d.ts +3 -0
  168. package/google/api/system_parameter_pb_service.js +3 -0
  169. package/google/api/usage_pb.d.ts +66 -0
  170. package/google/api/usage_pb.js +499 -0
  171. package/google/api/usage_pb_service.d.ts +3 -0
  172. package/google/api/usage_pb_service.js +3 -0
  173. package/google/api/visibility_pb.d.ts +64 -0
  174. package/google/api/visibility_pb.js +546 -0
  175. package/google/api/visibility_pb_service.d.ts +3 -0
  176. package/google/api/visibility_pb_service.js +3 -0
  177. package/meta.client_pb.d.ts +167 -0
  178. package/meta.client_pb.js +1266 -0
  179. package/meta.client_pb_service.d.ts +122 -0
  180. package/meta.client_pb_service.js +183 -0
  181. package/meta.spic_config_pb.d.ts +184 -0
  182. package/meta.spic_config_pb.js +1382 -0
  183. package/meta.spic_config_pb_service.d.ts +122 -0
  184. package/meta.spic_config_pb_service.js +183 -0
  185. package/package.json +1 -1
  186. package/platform.activity_log_pb.d.ts +177 -0
  187. package/platform.activity_log_pb.js +1294 -0
  188. package/platform.activity_log_pb_service.d.ts +82 -0
  189. package/platform.activity_log_pb_service.js +101 -0
  190. package/platform.client_pb.d.ts +350 -0
  191. package/platform.client_pb.js +2663 -0
  192. package/platform.client_pb_service.d.ts +158 -0
  193. package/platform.client_pb_service.js +261 -0
  194. package/platform.group_pb.d.ts +195 -0
  195. package/platform.group_pb.js +1476 -0
  196. package/platform.group_pb_service.d.ts +139 -0
  197. package/platform.group_pb_service.js +221 -0
  198. package/platform.local_account_internal_pb.d.ts +121 -0
  199. package/platform.local_account_internal_pb.js +903 -0
  200. package/platform.local_account_internal_pb_service.d.ts +121 -0
  201. package/platform.local_account_internal_pb_service.js +182 -0
  202. package/platform.local_account_pb.d.ts +396 -0
  203. package/platform.local_account_pb.js +3023 -0
  204. package/platform.local_account_pb_service.d.ts +331 -0
  205. package/platform.local_account_pb_service.js +623 -0
  206. package/platform.local_distribution_pb.d.ts +69 -0
  207. package/platform.local_distribution_pb.js +506 -0
  208. package/platform.local_distribution_pb_service.d.ts +63 -0
  209. package/platform.local_distribution_pb_service.js +61 -0
  210. package/platform.location_pb.d.ts +271 -0
  211. package/platform.location_pb.js +2046 -0
  212. package/platform.location_pb_service.d.ts +139 -0
  213. package/platform.location_pb_service.js +221 -0
  214. package/platform.pagination_pb.d.ts +45 -0
  215. package/platform.pagination_pb.js +276 -0
  216. package/platform.pagination_pb_service.d.ts +3 -0
  217. package/platform.pagination_pb_service.js +3 -0
  218. package/spic.cabinet_pb.d.ts +1344 -0
  219. package/spic.cabinet_pb.js +9963 -0
  220. package/spic.cabinet_pb_service.d.ts +359 -0
  221. package/spic.cabinet_pb_service.js +677 -0
  222. package/spic.config_pb.d.ts +249 -0
  223. package/spic.config_pb.js +1891 -0
  224. package/spic.config_pb_service.d.ts +120 -0
  225. package/spic.config_pb_service.js +181 -0
  226. package/spic.contractor_pb.d.ts +195 -0
  227. package/spic.contractor_pb.js +1476 -0
  228. package/spic.contractor_pb_service.d.ts +139 -0
  229. package/spic.contractor_pb_service.js +221 -0
@@ -0,0 +1,4266 @@
1
+ // source: auth.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_push_notification_pb = require('./auth.push_notification_pb.js');
25
+ goog.object.extend(proto, auth_push_notification_pb);
26
+ var google_api_annotations_pb = require('./google/api/annotations_pb.js');
27
+ goog.object.extend(proto, google_api_annotations_pb);
28
+ var platform_pagination_pb = require('./platform.pagination_pb.js');
29
+ goog.object.extend(proto, platform_pagination_pb);
30
+ var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
31
+ goog.object.extend(proto, google_protobuf_empty_pb);
32
+ goog.exportSymbol('proto.Auth.AccountProto', null, global);
33
+ goog.exportSymbol('proto.Auth.AccountProto.AccountTypes', null, global);
34
+ goog.exportSymbol('proto.Auth.AccountProto.AccountsActivationStatuses', null, global);
35
+ goog.exportSymbol('proto.Auth.AccountProto.ActivateAccountRequest', null, global);
36
+ goog.exportSymbol('proto.Auth.AccountProto.ActivationStatuses', null, global);
37
+ goog.exportSymbol('proto.Auth.AccountProto.ChangePasswordReply', null, global);
38
+ goog.exportSymbol('proto.Auth.AccountProto.ChangePasswordRequest', null, global);
39
+ goog.exportSymbol('proto.Auth.AccountProto.CreateAdminRequest', null, global);
40
+ goog.exportSymbol('proto.Auth.AccountProto.CreateAppRequest', null, global);
41
+ goog.exportSymbol('proto.Auth.AccountProto.DeleteReply', null, global);
42
+ goog.exportSymbol('proto.Auth.AccountProto.DeleteRequest', null, global);
43
+ goog.exportSymbol('proto.Auth.AccountProto.ForgotPasswordRequest', null, global);
44
+ goog.exportSymbol('proto.Auth.AccountProto.ResendInvitationRequest', null, global);
45
+ goog.exportSymbol('proto.Auth.AccountProto.ResetPasswordRequest', null, global);
46
+ goog.exportSymbol('proto.Auth.AccountProto.RetrieveAccountActivationStatusesReply', null, global);
47
+ goog.exportSymbol('proto.Auth.AccountProto.RetrieveAccountActivationStatusesRequest', null, global);
48
+ goog.exportSymbol('proto.Auth.AccountProto.RetrievePushInfoReply', null, global);
49
+ goog.exportSymbol('proto.Auth.AccountProto.RetrievePushInfoRequest', null, global);
50
+ goog.exportSymbol('proto.Auth.AccountProto.RetrieveRequest', null, global);
51
+ goog.exportSymbol('proto.Auth.AccountProto.Roles', null, global);
52
+ goog.exportSymbol('proto.Auth.AccountProto.SearchReply', null, global);
53
+ goog.exportSymbol('proto.Auth.AccountProto.SearchRequest', null, global);
54
+ goog.exportSymbol('proto.Auth.AccountProto.UpdateRequest', null, global);
55
+ /**
56
+ * Generated by JsPbCodeGenerator.
57
+ * @param {Array=} opt_data Optional initial data array, typically from a
58
+ * server response, or constructed directly in Javascript. The array is used
59
+ * in place and becomes part of the constructed object. It is not cloned.
60
+ * If no data is provided, the constructed object will be empty, but still
61
+ * valid.
62
+ * @extends {jspb.Message}
63
+ * @constructor
64
+ */
65
+ proto.Auth.AccountProto = function(opt_data) {
66
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
67
+ };
68
+ goog.inherits(proto.Auth.AccountProto, jspb.Message);
69
+ if (goog.DEBUG && !COMPILED) {
70
+ /**
71
+ * @public
72
+ * @override
73
+ */
74
+ proto.Auth.AccountProto.displayName = 'proto.Auth.AccountProto';
75
+ }
76
+ /**
77
+ * Generated by JsPbCodeGenerator.
78
+ * @param {Array=} opt_data Optional initial data array, typically from a
79
+ * server response, or constructed directly in Javascript. The array is used
80
+ * in place and becomes part of the constructed object. It is not cloned.
81
+ * If no data is provided, the constructed object will be empty, but still
82
+ * valid.
83
+ * @extends {jspb.Message}
84
+ * @constructor
85
+ */
86
+ proto.Auth.AccountProto.CreateAdminRequest = function(opt_data) {
87
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
88
+ };
89
+ goog.inherits(proto.Auth.AccountProto.CreateAdminRequest, jspb.Message);
90
+ if (goog.DEBUG && !COMPILED) {
91
+ /**
92
+ * @public
93
+ * @override
94
+ */
95
+ proto.Auth.AccountProto.CreateAdminRequest.displayName = 'proto.Auth.AccountProto.CreateAdminRequest';
96
+ }
97
+ /**
98
+ * Generated by JsPbCodeGenerator.
99
+ * @param {Array=} opt_data Optional initial data array, typically from a
100
+ * server response, or constructed directly in Javascript. The array is used
101
+ * in place and becomes part of the constructed object. It is not cloned.
102
+ * If no data is provided, the constructed object will be empty, but still
103
+ * valid.
104
+ * @extends {jspb.Message}
105
+ * @constructor
106
+ */
107
+ proto.Auth.AccountProto.CreateAppRequest = function(opt_data) {
108
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
109
+ };
110
+ goog.inherits(proto.Auth.AccountProto.CreateAppRequest, jspb.Message);
111
+ if (goog.DEBUG && !COMPILED) {
112
+ /**
113
+ * @public
114
+ * @override
115
+ */
116
+ proto.Auth.AccountProto.CreateAppRequest.displayName = 'proto.Auth.AccountProto.CreateAppRequest';
117
+ }
118
+ /**
119
+ * Generated by JsPbCodeGenerator.
120
+ * @param {Array=} opt_data Optional initial data array, typically from a
121
+ * server response, or constructed directly in Javascript. The array is used
122
+ * in place and becomes part of the constructed object. It is not cloned.
123
+ * If no data is provided, the constructed object will be empty, but still
124
+ * valid.
125
+ * @extends {jspb.Message}
126
+ * @constructor
127
+ */
128
+ proto.Auth.AccountProto.RetrieveRequest = function(opt_data) {
129
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
130
+ };
131
+ goog.inherits(proto.Auth.AccountProto.RetrieveRequest, jspb.Message);
132
+ if (goog.DEBUG && !COMPILED) {
133
+ /**
134
+ * @public
135
+ * @override
136
+ */
137
+ proto.Auth.AccountProto.RetrieveRequest.displayName = 'proto.Auth.AccountProto.RetrieveRequest';
138
+ }
139
+ /**
140
+ * Generated by JsPbCodeGenerator.
141
+ * @param {Array=} opt_data Optional initial data array, typically from a
142
+ * server response, or constructed directly in Javascript. The array is used
143
+ * in place and becomes part of the constructed object. It is not cloned.
144
+ * If no data is provided, the constructed object will be empty, but still
145
+ * valid.
146
+ * @extends {jspb.Message}
147
+ * @constructor
148
+ */
149
+ proto.Auth.AccountProto.SearchReply = function(opt_data) {
150
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Auth.AccountProto.SearchReply.repeatedFields_, null);
151
+ };
152
+ goog.inherits(proto.Auth.AccountProto.SearchReply, jspb.Message);
153
+ if (goog.DEBUG && !COMPILED) {
154
+ /**
155
+ * @public
156
+ * @override
157
+ */
158
+ proto.Auth.AccountProto.SearchReply.displayName = 'proto.Auth.AccountProto.SearchReply';
159
+ }
160
+ /**
161
+ * Generated by JsPbCodeGenerator.
162
+ * @param {Array=} opt_data Optional initial data array, typically from a
163
+ * server response, or constructed directly in Javascript. The array is used
164
+ * in place and becomes part of the constructed object. It is not cloned.
165
+ * If no data is provided, the constructed object will be empty, but still
166
+ * valid.
167
+ * @extends {jspb.Message}
168
+ * @constructor
169
+ */
170
+ proto.Auth.AccountProto.SearchRequest = function(opt_data) {
171
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
172
+ };
173
+ goog.inherits(proto.Auth.AccountProto.SearchRequest, jspb.Message);
174
+ if (goog.DEBUG && !COMPILED) {
175
+ /**
176
+ * @public
177
+ * @override
178
+ */
179
+ proto.Auth.AccountProto.SearchRequest.displayName = 'proto.Auth.AccountProto.SearchRequest';
180
+ }
181
+ /**
182
+ * Generated by JsPbCodeGenerator.
183
+ * @param {Array=} opt_data Optional initial data array, typically from a
184
+ * server response, or constructed directly in Javascript. The array is used
185
+ * in place and becomes part of the constructed object. It is not cloned.
186
+ * If no data is provided, the constructed object will be empty, but still
187
+ * valid.
188
+ * @extends {jspb.Message}
189
+ * @constructor
190
+ */
191
+ proto.Auth.AccountProto.UpdateRequest = function(opt_data) {
192
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
193
+ };
194
+ goog.inherits(proto.Auth.AccountProto.UpdateRequest, jspb.Message);
195
+ if (goog.DEBUG && !COMPILED) {
196
+ /**
197
+ * @public
198
+ * @override
199
+ */
200
+ proto.Auth.AccountProto.UpdateRequest.displayName = 'proto.Auth.AccountProto.UpdateRequest';
201
+ }
202
+ /**
203
+ * Generated by JsPbCodeGenerator.
204
+ * @param {Array=} opt_data Optional initial data array, typically from a
205
+ * server response, or constructed directly in Javascript. The array is used
206
+ * in place and becomes part of the constructed object. It is not cloned.
207
+ * If no data is provided, the constructed object will be empty, but still
208
+ * valid.
209
+ * @extends {jspb.Message}
210
+ * @constructor
211
+ */
212
+ proto.Auth.AccountProto.ActivateAccountRequest = function(opt_data) {
213
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
214
+ };
215
+ goog.inherits(proto.Auth.AccountProto.ActivateAccountRequest, jspb.Message);
216
+ if (goog.DEBUG && !COMPILED) {
217
+ /**
218
+ * @public
219
+ * @override
220
+ */
221
+ proto.Auth.AccountProto.ActivateAccountRequest.displayName = 'proto.Auth.AccountProto.ActivateAccountRequest';
222
+ }
223
+ /**
224
+ * Generated by JsPbCodeGenerator.
225
+ * @param {Array=} opt_data Optional initial data array, typically from a
226
+ * server response, or constructed directly in Javascript. The array is used
227
+ * in place and becomes part of the constructed object. It is not cloned.
228
+ * If no data is provided, the constructed object will be empty, but still
229
+ * valid.
230
+ * @extends {jspb.Message}
231
+ * @constructor
232
+ */
233
+ proto.Auth.AccountProto.ForgotPasswordRequest = function(opt_data) {
234
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
235
+ };
236
+ goog.inherits(proto.Auth.AccountProto.ForgotPasswordRequest, jspb.Message);
237
+ if (goog.DEBUG && !COMPILED) {
238
+ /**
239
+ * @public
240
+ * @override
241
+ */
242
+ proto.Auth.AccountProto.ForgotPasswordRequest.displayName = 'proto.Auth.AccountProto.ForgotPasswordRequest';
243
+ }
244
+ /**
245
+ * Generated by JsPbCodeGenerator.
246
+ * @param {Array=} opt_data Optional initial data array, typically from a
247
+ * server response, or constructed directly in Javascript. The array is used
248
+ * in place and becomes part of the constructed object. It is not cloned.
249
+ * If no data is provided, the constructed object will be empty, but still
250
+ * valid.
251
+ * @extends {jspb.Message}
252
+ * @constructor
253
+ */
254
+ proto.Auth.AccountProto.ResetPasswordRequest = function(opt_data) {
255
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
256
+ };
257
+ goog.inherits(proto.Auth.AccountProto.ResetPasswordRequest, jspb.Message);
258
+ if (goog.DEBUG && !COMPILED) {
259
+ /**
260
+ * @public
261
+ * @override
262
+ */
263
+ proto.Auth.AccountProto.ResetPasswordRequest.displayName = 'proto.Auth.AccountProto.ResetPasswordRequest';
264
+ }
265
+ /**
266
+ * Generated by JsPbCodeGenerator.
267
+ * @param {Array=} opt_data Optional initial data array, typically from a
268
+ * server response, or constructed directly in Javascript. The array is used
269
+ * in place and becomes part of the constructed object. It is not cloned.
270
+ * If no data is provided, the constructed object will be empty, but still
271
+ * valid.
272
+ * @extends {jspb.Message}
273
+ * @constructor
274
+ */
275
+ proto.Auth.AccountProto.ChangePasswordRequest = function(opt_data) {
276
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
277
+ };
278
+ goog.inherits(proto.Auth.AccountProto.ChangePasswordRequest, jspb.Message);
279
+ if (goog.DEBUG && !COMPILED) {
280
+ /**
281
+ * @public
282
+ * @override
283
+ */
284
+ proto.Auth.AccountProto.ChangePasswordRequest.displayName = 'proto.Auth.AccountProto.ChangePasswordRequest';
285
+ }
286
+ /**
287
+ * Generated by JsPbCodeGenerator.
288
+ * @param {Array=} opt_data Optional initial data array, typically from a
289
+ * server response, or constructed directly in Javascript. The array is used
290
+ * in place and becomes part of the constructed object. It is not cloned.
291
+ * If no data is provided, the constructed object will be empty, but still
292
+ * valid.
293
+ * @extends {jspb.Message}
294
+ * @constructor
295
+ */
296
+ proto.Auth.AccountProto.ChangePasswordReply = function(opt_data) {
297
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
298
+ };
299
+ goog.inherits(proto.Auth.AccountProto.ChangePasswordReply, jspb.Message);
300
+ if (goog.DEBUG && !COMPILED) {
301
+ /**
302
+ * @public
303
+ * @override
304
+ */
305
+ proto.Auth.AccountProto.ChangePasswordReply.displayName = 'proto.Auth.AccountProto.ChangePasswordReply';
306
+ }
307
+ /**
308
+ * Generated by JsPbCodeGenerator.
309
+ * @param {Array=} opt_data Optional initial data array, typically from a
310
+ * server response, or constructed directly in Javascript. The array is used
311
+ * in place and becomes part of the constructed object. It is not cloned.
312
+ * If no data is provided, the constructed object will be empty, but still
313
+ * valid.
314
+ * @extends {jspb.Message}
315
+ * @constructor
316
+ */
317
+ proto.Auth.AccountProto.DeleteRequest = function(opt_data) {
318
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
319
+ };
320
+ goog.inherits(proto.Auth.AccountProto.DeleteRequest, jspb.Message);
321
+ if (goog.DEBUG && !COMPILED) {
322
+ /**
323
+ * @public
324
+ * @override
325
+ */
326
+ proto.Auth.AccountProto.DeleteRequest.displayName = 'proto.Auth.AccountProto.DeleteRequest';
327
+ }
328
+ /**
329
+ * Generated by JsPbCodeGenerator.
330
+ * @param {Array=} opt_data Optional initial data array, typically from a
331
+ * server response, or constructed directly in Javascript. The array is used
332
+ * in place and becomes part of the constructed object. It is not cloned.
333
+ * If no data is provided, the constructed object will be empty, but still
334
+ * valid.
335
+ * @extends {jspb.Message}
336
+ * @constructor
337
+ */
338
+ proto.Auth.AccountProto.DeleteReply = function(opt_data) {
339
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
340
+ };
341
+ goog.inherits(proto.Auth.AccountProto.DeleteReply, jspb.Message);
342
+ if (goog.DEBUG && !COMPILED) {
343
+ /**
344
+ * @public
345
+ * @override
346
+ */
347
+ proto.Auth.AccountProto.DeleteReply.displayName = 'proto.Auth.AccountProto.DeleteReply';
348
+ }
349
+ /**
350
+ * Generated by JsPbCodeGenerator.
351
+ * @param {Array=} opt_data Optional initial data array, typically from a
352
+ * server response, or constructed directly in Javascript. The array is used
353
+ * in place and becomes part of the constructed object. It is not cloned.
354
+ * If no data is provided, the constructed object will be empty, but still
355
+ * valid.
356
+ * @extends {jspb.Message}
357
+ * @constructor
358
+ */
359
+ proto.Auth.AccountProto.RetrievePushInfoRequest = function(opt_data) {
360
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
361
+ };
362
+ goog.inherits(proto.Auth.AccountProto.RetrievePushInfoRequest, jspb.Message);
363
+ if (goog.DEBUG && !COMPILED) {
364
+ /**
365
+ * @public
366
+ * @override
367
+ */
368
+ proto.Auth.AccountProto.RetrievePushInfoRequest.displayName = 'proto.Auth.AccountProto.RetrievePushInfoRequest';
369
+ }
370
+ /**
371
+ * Generated by JsPbCodeGenerator.
372
+ * @param {Array=} opt_data Optional initial data array, typically from a
373
+ * server response, or constructed directly in Javascript. The array is used
374
+ * in place and becomes part of the constructed object. It is not cloned.
375
+ * If no data is provided, the constructed object will be empty, but still
376
+ * valid.
377
+ * @extends {jspb.Message}
378
+ * @constructor
379
+ */
380
+ proto.Auth.AccountProto.RetrievePushInfoReply = function(opt_data) {
381
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
382
+ };
383
+ goog.inherits(proto.Auth.AccountProto.RetrievePushInfoReply, jspb.Message);
384
+ if (goog.DEBUG && !COMPILED) {
385
+ /**
386
+ * @public
387
+ * @override
388
+ */
389
+ proto.Auth.AccountProto.RetrievePushInfoReply.displayName = 'proto.Auth.AccountProto.RetrievePushInfoReply';
390
+ }
391
+ /**
392
+ * Generated by JsPbCodeGenerator.
393
+ * @param {Array=} opt_data Optional initial data array, typically from a
394
+ * server response, or constructed directly in Javascript. The array is used
395
+ * in place and becomes part of the constructed object. It is not cloned.
396
+ * If no data is provided, the constructed object will be empty, but still
397
+ * valid.
398
+ * @extends {jspb.Message}
399
+ * @constructor
400
+ */
401
+ proto.Auth.AccountProto.RetrieveAccountActivationStatusesRequest = function(opt_data) {
402
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Auth.AccountProto.RetrieveAccountActivationStatusesRequest.repeatedFields_, null);
403
+ };
404
+ goog.inherits(proto.Auth.AccountProto.RetrieveAccountActivationStatusesRequest, jspb.Message);
405
+ if (goog.DEBUG && !COMPILED) {
406
+ /**
407
+ * @public
408
+ * @override
409
+ */
410
+ proto.Auth.AccountProto.RetrieveAccountActivationStatusesRequest.displayName = 'proto.Auth.AccountProto.RetrieveAccountActivationStatusesRequest';
411
+ }
412
+ /**
413
+ * Generated by JsPbCodeGenerator.
414
+ * @param {Array=} opt_data Optional initial data array, typically from a
415
+ * server response, or constructed directly in Javascript. The array is used
416
+ * in place and becomes part of the constructed object. It is not cloned.
417
+ * If no data is provided, the constructed object will be empty, but still
418
+ * valid.
419
+ * @extends {jspb.Message}
420
+ * @constructor
421
+ */
422
+ proto.Auth.AccountProto.AccountsActivationStatuses = function(opt_data) {
423
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
424
+ };
425
+ goog.inherits(proto.Auth.AccountProto.AccountsActivationStatuses, jspb.Message);
426
+ if (goog.DEBUG && !COMPILED) {
427
+ /**
428
+ * @public
429
+ * @override
430
+ */
431
+ proto.Auth.AccountProto.AccountsActivationStatuses.displayName = 'proto.Auth.AccountProto.AccountsActivationStatuses';
432
+ }
433
+ /**
434
+ * Generated by JsPbCodeGenerator.
435
+ * @param {Array=} opt_data Optional initial data array, typically from a
436
+ * server response, or constructed directly in Javascript. The array is used
437
+ * in place and becomes part of the constructed object. It is not cloned.
438
+ * If no data is provided, the constructed object will be empty, but still
439
+ * valid.
440
+ * @extends {jspb.Message}
441
+ * @constructor
442
+ */
443
+ proto.Auth.AccountProto.RetrieveAccountActivationStatusesReply = function(opt_data) {
444
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Auth.AccountProto.RetrieveAccountActivationStatusesReply.repeatedFields_, null);
445
+ };
446
+ goog.inherits(proto.Auth.AccountProto.RetrieveAccountActivationStatusesReply, jspb.Message);
447
+ if (goog.DEBUG && !COMPILED) {
448
+ /**
449
+ * @public
450
+ * @override
451
+ */
452
+ proto.Auth.AccountProto.RetrieveAccountActivationStatusesReply.displayName = 'proto.Auth.AccountProto.RetrieveAccountActivationStatusesReply';
453
+ }
454
+ /**
455
+ * Generated by JsPbCodeGenerator.
456
+ * @param {Array=} opt_data Optional initial data array, typically from a
457
+ * server response, or constructed directly in Javascript. The array is used
458
+ * in place and becomes part of the constructed object. It is not cloned.
459
+ * If no data is provided, the constructed object will be empty, but still
460
+ * valid.
461
+ * @extends {jspb.Message}
462
+ * @constructor
463
+ */
464
+ proto.Auth.AccountProto.ResendInvitationRequest = function(opt_data) {
465
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
466
+ };
467
+ goog.inherits(proto.Auth.AccountProto.ResendInvitationRequest, jspb.Message);
468
+ if (goog.DEBUG && !COMPILED) {
469
+ /**
470
+ * @public
471
+ * @override
472
+ */
473
+ proto.Auth.AccountProto.ResendInvitationRequest.displayName = 'proto.Auth.AccountProto.ResendInvitationRequest';
474
+ }
475
+
476
+
477
+
478
+ if (jspb.Message.GENERATE_TO_OBJECT) {
479
+ /**
480
+ * Creates an object representation of this proto.
481
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
482
+ * Optional fields that are not set will be set to undefined.
483
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
484
+ * For the list of reserved names please see:
485
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
486
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
487
+ * JSPB instance for transitional soy proto support:
488
+ * http://goto/soy-param-migration
489
+ * @return {!Object}
490
+ */
491
+ proto.Auth.AccountProto.prototype.toObject = function(opt_includeInstance) {
492
+ return proto.Auth.AccountProto.toObject(opt_includeInstance, this);
493
+ };
494
+
495
+
496
+ /**
497
+ * Static version of the {@see toObject} method.
498
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
499
+ * the JSPB instance for transitional soy proto support:
500
+ * http://goto/soy-param-migration
501
+ * @param {!proto.Auth.AccountProto} msg The msg instance to transform.
502
+ * @return {!Object}
503
+ * @suppress {unusedLocalVariables} f is only used for nested messages
504
+ */
505
+ proto.Auth.AccountProto.toObject = function(includeInstance, msg) {
506
+ var f, obj = {
507
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
508
+ email: jspb.Message.getFieldWithDefault(msg, 2, ""),
509
+ phone: jspb.Message.getFieldWithDefault(msg, 3, ""),
510
+ firstName: jspb.Message.getFieldWithDefault(msg, 4, ""),
511
+ lastName: jspb.Message.getFieldWithDefault(msg, 5, ""),
512
+ locale: jspb.Message.getFieldWithDefault(msg, 6, ""),
513
+ company: jspb.Message.getFieldWithDefault(msg, 7, ""),
514
+ active: jspb.Message.getFieldWithDefault(msg, 8, ""),
515
+ type: jspb.Message.getFieldWithDefault(msg, 9, 0)
516
+ };
517
+
518
+ if (includeInstance) {
519
+ obj.$jspbMessageInstance = msg;
520
+ }
521
+ return obj;
522
+ };
523
+ }
524
+
525
+
526
+ /**
527
+ * Deserializes binary data (in protobuf wire format).
528
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
529
+ * @return {!proto.Auth.AccountProto}
530
+ */
531
+ proto.Auth.AccountProto.deserializeBinary = function(bytes) {
532
+ var reader = new jspb.BinaryReader(bytes);
533
+ var msg = new proto.Auth.AccountProto;
534
+ return proto.Auth.AccountProto.deserializeBinaryFromReader(msg, reader);
535
+ };
536
+
537
+
538
+ /**
539
+ * Deserializes binary data (in protobuf wire format) from the
540
+ * given reader into the given message object.
541
+ * @param {!proto.Auth.AccountProto} msg The message object to deserialize into.
542
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
543
+ * @return {!proto.Auth.AccountProto}
544
+ */
545
+ proto.Auth.AccountProto.deserializeBinaryFromReader = function(msg, reader) {
546
+ while (reader.nextField()) {
547
+ if (reader.isEndGroup()) {
548
+ break;
549
+ }
550
+ var field = reader.getFieldNumber();
551
+ switch (field) {
552
+ case 1:
553
+ var value = /** @type {number} */ (reader.readInt64());
554
+ msg.setId(value);
555
+ break;
556
+ case 2:
557
+ var value = /** @type {string} */ (reader.readString());
558
+ msg.setEmail(value);
559
+ break;
560
+ case 3:
561
+ var value = /** @type {string} */ (reader.readString());
562
+ msg.setPhone(value);
563
+ break;
564
+ case 4:
565
+ var value = /** @type {string} */ (reader.readString());
566
+ msg.setFirstName(value);
567
+ break;
568
+ case 5:
569
+ var value = /** @type {string} */ (reader.readString());
570
+ msg.setLastName(value);
571
+ break;
572
+ case 6:
573
+ var value = /** @type {string} */ (reader.readString());
574
+ msg.setLocale(value);
575
+ break;
576
+ case 7:
577
+ var value = /** @type {string} */ (reader.readString());
578
+ msg.setCompany(value);
579
+ break;
580
+ case 8:
581
+ var value = /** @type {string} */ (reader.readString());
582
+ msg.setActive(value);
583
+ break;
584
+ case 9:
585
+ var value = /** @type {!proto.Auth.AccountProto.AccountTypes} */ (reader.readEnum());
586
+ msg.setType(value);
587
+ break;
588
+ default:
589
+ reader.skipField();
590
+ break;
591
+ }
592
+ }
593
+ return msg;
594
+ };
595
+
596
+
597
+ /**
598
+ * Serializes the message to binary data (in protobuf wire format).
599
+ * @return {!Uint8Array}
600
+ */
601
+ proto.Auth.AccountProto.prototype.serializeBinary = function() {
602
+ var writer = new jspb.BinaryWriter();
603
+ proto.Auth.AccountProto.serializeBinaryToWriter(this, writer);
604
+ return writer.getResultBuffer();
605
+ };
606
+
607
+
608
+ /**
609
+ * Serializes the given message to binary data (in protobuf wire
610
+ * format), writing to the given BinaryWriter.
611
+ * @param {!proto.Auth.AccountProto} message
612
+ * @param {!jspb.BinaryWriter} writer
613
+ * @suppress {unusedLocalVariables} f is only used for nested messages
614
+ */
615
+ proto.Auth.AccountProto.serializeBinaryToWriter = function(message, writer) {
616
+ var f = undefined;
617
+ f = message.getId();
618
+ if (f !== 0) {
619
+ writer.writeInt64(
620
+ 1,
621
+ f
622
+ );
623
+ }
624
+ f = message.getEmail();
625
+ if (f.length > 0) {
626
+ writer.writeString(
627
+ 2,
628
+ f
629
+ );
630
+ }
631
+ f = message.getPhone();
632
+ if (f.length > 0) {
633
+ writer.writeString(
634
+ 3,
635
+ f
636
+ );
637
+ }
638
+ f = message.getFirstName();
639
+ if (f.length > 0) {
640
+ writer.writeString(
641
+ 4,
642
+ f
643
+ );
644
+ }
645
+ f = message.getLastName();
646
+ if (f.length > 0) {
647
+ writer.writeString(
648
+ 5,
649
+ f
650
+ );
651
+ }
652
+ f = message.getLocale();
653
+ if (f.length > 0) {
654
+ writer.writeString(
655
+ 6,
656
+ f
657
+ );
658
+ }
659
+ f = message.getCompany();
660
+ if (f.length > 0) {
661
+ writer.writeString(
662
+ 7,
663
+ f
664
+ );
665
+ }
666
+ f = message.getActive();
667
+ if (f.length > 0) {
668
+ writer.writeString(
669
+ 8,
670
+ f
671
+ );
672
+ }
673
+ f = message.getType();
674
+ if (f !== 0.0) {
675
+ writer.writeEnum(
676
+ 9,
677
+ f
678
+ );
679
+ }
680
+ };
681
+
682
+
683
+ /**
684
+ * @enum {number}
685
+ */
686
+ proto.Auth.AccountProto.AccountTypes = {
687
+ EMAIL: 0,
688
+ MOBILE: 1
689
+ };
690
+
691
+ /**
692
+ * @enum {number}
693
+ */
694
+ proto.Auth.AccountProto.Roles = {
695
+ SYSTEM_ADMIN: 0,
696
+ ADMIN: 1,
697
+ APP_GLOBAL: 2,
698
+ APP_CLUSTER: 3,
699
+ SERVICE_USER: 4,
700
+ DRUM_API_ERP: 5,
701
+ DRUM_TRACKER_VIEW_ALL: 6,
702
+ DRUM_TRACKER_DEMO: 7
703
+ };
704
+
705
+ /**
706
+ * @enum {number}
707
+ */
708
+ proto.Auth.AccountProto.ActivationStatuses = {
709
+ ACTIVATED: 0,
710
+ PENDING: 1,
711
+ EXPIRED: 2
712
+ };
713
+
714
+
715
+
716
+
717
+ if (jspb.Message.GENERATE_TO_OBJECT) {
718
+ /**
719
+ * Creates an object representation of this proto.
720
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
721
+ * Optional fields that are not set will be set to undefined.
722
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
723
+ * For the list of reserved names please see:
724
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
725
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
726
+ * JSPB instance for transitional soy proto support:
727
+ * http://goto/soy-param-migration
728
+ * @return {!Object}
729
+ */
730
+ proto.Auth.AccountProto.CreateAdminRequest.prototype.toObject = function(opt_includeInstance) {
731
+ return proto.Auth.AccountProto.CreateAdminRequest.toObject(opt_includeInstance, this);
732
+ };
733
+
734
+
735
+ /**
736
+ * Static version of the {@see toObject} method.
737
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
738
+ * the JSPB instance for transitional soy proto support:
739
+ * http://goto/soy-param-migration
740
+ * @param {!proto.Auth.AccountProto.CreateAdminRequest} msg The msg instance to transform.
741
+ * @return {!Object}
742
+ * @suppress {unusedLocalVariables} f is only used for nested messages
743
+ */
744
+ proto.Auth.AccountProto.CreateAdminRequest.toObject = function(includeInstance, msg) {
745
+ var f, obj = {
746
+ email: jspb.Message.getFieldWithDefault(msg, 1, ""),
747
+ firstName: jspb.Message.getFieldWithDefault(msg, 2, ""),
748
+ lastName: jspb.Message.getFieldWithDefault(msg, 3, ""),
749
+ locale: jspb.Message.getFieldWithDefault(msg, 4, ""),
750
+ company: jspb.Message.getFieldWithDefault(msg, 5, "")
751
+ };
752
+
753
+ if (includeInstance) {
754
+ obj.$jspbMessageInstance = msg;
755
+ }
756
+ return obj;
757
+ };
758
+ }
759
+
760
+
761
+ /**
762
+ * Deserializes binary data (in protobuf wire format).
763
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
764
+ * @return {!proto.Auth.AccountProto.CreateAdminRequest}
765
+ */
766
+ proto.Auth.AccountProto.CreateAdminRequest.deserializeBinary = function(bytes) {
767
+ var reader = new jspb.BinaryReader(bytes);
768
+ var msg = new proto.Auth.AccountProto.CreateAdminRequest;
769
+ return proto.Auth.AccountProto.CreateAdminRequest.deserializeBinaryFromReader(msg, reader);
770
+ };
771
+
772
+
773
+ /**
774
+ * Deserializes binary data (in protobuf wire format) from the
775
+ * given reader into the given message object.
776
+ * @param {!proto.Auth.AccountProto.CreateAdminRequest} msg The message object to deserialize into.
777
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
778
+ * @return {!proto.Auth.AccountProto.CreateAdminRequest}
779
+ */
780
+ proto.Auth.AccountProto.CreateAdminRequest.deserializeBinaryFromReader = function(msg, reader) {
781
+ while (reader.nextField()) {
782
+ if (reader.isEndGroup()) {
783
+ break;
784
+ }
785
+ var field = reader.getFieldNumber();
786
+ switch (field) {
787
+ case 1:
788
+ var value = /** @type {string} */ (reader.readString());
789
+ msg.setEmail(value);
790
+ break;
791
+ case 2:
792
+ var value = /** @type {string} */ (reader.readString());
793
+ msg.setFirstName(value);
794
+ break;
795
+ case 3:
796
+ var value = /** @type {string} */ (reader.readString());
797
+ msg.setLastName(value);
798
+ break;
799
+ case 4:
800
+ var value = /** @type {string} */ (reader.readString());
801
+ msg.setLocale(value);
802
+ break;
803
+ case 5:
804
+ var value = /** @type {string} */ (reader.readString());
805
+ msg.setCompany(value);
806
+ break;
807
+ default:
808
+ reader.skipField();
809
+ break;
810
+ }
811
+ }
812
+ return msg;
813
+ };
814
+
815
+
816
+ /**
817
+ * Serializes the message to binary data (in protobuf wire format).
818
+ * @return {!Uint8Array}
819
+ */
820
+ proto.Auth.AccountProto.CreateAdminRequest.prototype.serializeBinary = function() {
821
+ var writer = new jspb.BinaryWriter();
822
+ proto.Auth.AccountProto.CreateAdminRequest.serializeBinaryToWriter(this, writer);
823
+ return writer.getResultBuffer();
824
+ };
825
+
826
+
827
+ /**
828
+ * Serializes the given message to binary data (in protobuf wire
829
+ * format), writing to the given BinaryWriter.
830
+ * @param {!proto.Auth.AccountProto.CreateAdminRequest} message
831
+ * @param {!jspb.BinaryWriter} writer
832
+ * @suppress {unusedLocalVariables} f is only used for nested messages
833
+ */
834
+ proto.Auth.AccountProto.CreateAdminRequest.serializeBinaryToWriter = function(message, writer) {
835
+ var f = undefined;
836
+ f = message.getEmail();
837
+ if (f.length > 0) {
838
+ writer.writeString(
839
+ 1,
840
+ f
841
+ );
842
+ }
843
+ f = message.getFirstName();
844
+ if (f.length > 0) {
845
+ writer.writeString(
846
+ 2,
847
+ f
848
+ );
849
+ }
850
+ f = message.getLastName();
851
+ if (f.length > 0) {
852
+ writer.writeString(
853
+ 3,
854
+ f
855
+ );
856
+ }
857
+ f = message.getLocale();
858
+ if (f.length > 0) {
859
+ writer.writeString(
860
+ 4,
861
+ f
862
+ );
863
+ }
864
+ f = message.getCompany();
865
+ if (f.length > 0) {
866
+ writer.writeString(
867
+ 5,
868
+ f
869
+ );
870
+ }
871
+ };
872
+
873
+
874
+ /**
875
+ * optional string email = 1;
876
+ * @return {string}
877
+ */
878
+ proto.Auth.AccountProto.CreateAdminRequest.prototype.getEmail = function() {
879
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
880
+ };
881
+
882
+
883
+ /**
884
+ * @param {string} value
885
+ * @return {!proto.Auth.AccountProto.CreateAdminRequest} returns this
886
+ */
887
+ proto.Auth.AccountProto.CreateAdminRequest.prototype.setEmail = function(value) {
888
+ return jspb.Message.setProto3StringField(this, 1, value);
889
+ };
890
+
891
+
892
+ /**
893
+ * optional string first_name = 2;
894
+ * @return {string}
895
+ */
896
+ proto.Auth.AccountProto.CreateAdminRequest.prototype.getFirstName = function() {
897
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
898
+ };
899
+
900
+
901
+ /**
902
+ * @param {string} value
903
+ * @return {!proto.Auth.AccountProto.CreateAdminRequest} returns this
904
+ */
905
+ proto.Auth.AccountProto.CreateAdminRequest.prototype.setFirstName = function(value) {
906
+ return jspb.Message.setProto3StringField(this, 2, value);
907
+ };
908
+
909
+
910
+ /**
911
+ * optional string last_name = 3;
912
+ * @return {string}
913
+ */
914
+ proto.Auth.AccountProto.CreateAdminRequest.prototype.getLastName = function() {
915
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
916
+ };
917
+
918
+
919
+ /**
920
+ * @param {string} value
921
+ * @return {!proto.Auth.AccountProto.CreateAdminRequest} returns this
922
+ */
923
+ proto.Auth.AccountProto.CreateAdminRequest.prototype.setLastName = function(value) {
924
+ return jspb.Message.setProto3StringField(this, 3, value);
925
+ };
926
+
927
+
928
+ /**
929
+ * optional string locale = 4;
930
+ * @return {string}
931
+ */
932
+ proto.Auth.AccountProto.CreateAdminRequest.prototype.getLocale = function() {
933
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
934
+ };
935
+
936
+
937
+ /**
938
+ * @param {string} value
939
+ * @return {!proto.Auth.AccountProto.CreateAdminRequest} returns this
940
+ */
941
+ proto.Auth.AccountProto.CreateAdminRequest.prototype.setLocale = function(value) {
942
+ return jspb.Message.setProto3StringField(this, 4, value);
943
+ };
944
+
945
+
946
+ /**
947
+ * optional string company = 5;
948
+ * @return {string}
949
+ */
950
+ proto.Auth.AccountProto.CreateAdminRequest.prototype.getCompany = function() {
951
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
952
+ };
953
+
954
+
955
+ /**
956
+ * @param {string} value
957
+ * @return {!proto.Auth.AccountProto.CreateAdminRequest} returns this
958
+ */
959
+ proto.Auth.AccountProto.CreateAdminRequest.prototype.setCompany = function(value) {
960
+ return jspb.Message.setProto3StringField(this, 5, value);
961
+ };
962
+
963
+
964
+
965
+
966
+
967
+ if (jspb.Message.GENERATE_TO_OBJECT) {
968
+ /**
969
+ * Creates an object representation of this proto.
970
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
971
+ * Optional fields that are not set will be set to undefined.
972
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
973
+ * For the list of reserved names please see:
974
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
975
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
976
+ * JSPB instance for transitional soy proto support:
977
+ * http://goto/soy-param-migration
978
+ * @return {!Object}
979
+ */
980
+ proto.Auth.AccountProto.CreateAppRequest.prototype.toObject = function(opt_includeInstance) {
981
+ return proto.Auth.AccountProto.CreateAppRequest.toObject(opt_includeInstance, this);
982
+ };
983
+
984
+
985
+ /**
986
+ * Static version of the {@see toObject} method.
987
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
988
+ * the JSPB instance for transitional soy proto support:
989
+ * http://goto/soy-param-migration
990
+ * @param {!proto.Auth.AccountProto.CreateAppRequest} msg The msg instance to transform.
991
+ * @return {!Object}
992
+ * @suppress {unusedLocalVariables} f is only used for nested messages
993
+ */
994
+ proto.Auth.AccountProto.CreateAppRequest.toObject = function(includeInstance, msg) {
995
+ var f, obj = {
996
+ phone: jspb.Message.getFieldWithDefault(msg, 1, ""),
997
+ firstName: jspb.Message.getFieldWithDefault(msg, 2, ""),
998
+ lastName: jspb.Message.getFieldWithDefault(msg, 3, ""),
999
+ locale: jspb.Message.getFieldWithDefault(msg, 4, ""),
1000
+ company: jspb.Message.getFieldWithDefault(msg, 5, "")
1001
+ };
1002
+
1003
+ if (includeInstance) {
1004
+ obj.$jspbMessageInstance = msg;
1005
+ }
1006
+ return obj;
1007
+ };
1008
+ }
1009
+
1010
+
1011
+ /**
1012
+ * Deserializes binary data (in protobuf wire format).
1013
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1014
+ * @return {!proto.Auth.AccountProto.CreateAppRequest}
1015
+ */
1016
+ proto.Auth.AccountProto.CreateAppRequest.deserializeBinary = function(bytes) {
1017
+ var reader = new jspb.BinaryReader(bytes);
1018
+ var msg = new proto.Auth.AccountProto.CreateAppRequest;
1019
+ return proto.Auth.AccountProto.CreateAppRequest.deserializeBinaryFromReader(msg, reader);
1020
+ };
1021
+
1022
+
1023
+ /**
1024
+ * Deserializes binary data (in protobuf wire format) from the
1025
+ * given reader into the given message object.
1026
+ * @param {!proto.Auth.AccountProto.CreateAppRequest} msg The message object to deserialize into.
1027
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1028
+ * @return {!proto.Auth.AccountProto.CreateAppRequest}
1029
+ */
1030
+ proto.Auth.AccountProto.CreateAppRequest.deserializeBinaryFromReader = function(msg, reader) {
1031
+ while (reader.nextField()) {
1032
+ if (reader.isEndGroup()) {
1033
+ break;
1034
+ }
1035
+ var field = reader.getFieldNumber();
1036
+ switch (field) {
1037
+ case 1:
1038
+ var value = /** @type {string} */ (reader.readString());
1039
+ msg.setPhone(value);
1040
+ break;
1041
+ case 2:
1042
+ var value = /** @type {string} */ (reader.readString());
1043
+ msg.setFirstName(value);
1044
+ break;
1045
+ case 3:
1046
+ var value = /** @type {string} */ (reader.readString());
1047
+ msg.setLastName(value);
1048
+ break;
1049
+ case 4:
1050
+ var value = /** @type {string} */ (reader.readString());
1051
+ msg.setLocale(value);
1052
+ break;
1053
+ case 5:
1054
+ var value = /** @type {string} */ (reader.readString());
1055
+ msg.setCompany(value);
1056
+ break;
1057
+ default:
1058
+ reader.skipField();
1059
+ break;
1060
+ }
1061
+ }
1062
+ return msg;
1063
+ };
1064
+
1065
+
1066
+ /**
1067
+ * Serializes the message to binary data (in protobuf wire format).
1068
+ * @return {!Uint8Array}
1069
+ */
1070
+ proto.Auth.AccountProto.CreateAppRequest.prototype.serializeBinary = function() {
1071
+ var writer = new jspb.BinaryWriter();
1072
+ proto.Auth.AccountProto.CreateAppRequest.serializeBinaryToWriter(this, writer);
1073
+ return writer.getResultBuffer();
1074
+ };
1075
+
1076
+
1077
+ /**
1078
+ * Serializes the given message to binary data (in protobuf wire
1079
+ * format), writing to the given BinaryWriter.
1080
+ * @param {!proto.Auth.AccountProto.CreateAppRequest} message
1081
+ * @param {!jspb.BinaryWriter} writer
1082
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1083
+ */
1084
+ proto.Auth.AccountProto.CreateAppRequest.serializeBinaryToWriter = function(message, writer) {
1085
+ var f = undefined;
1086
+ f = message.getPhone();
1087
+ if (f.length > 0) {
1088
+ writer.writeString(
1089
+ 1,
1090
+ f
1091
+ );
1092
+ }
1093
+ f = message.getFirstName();
1094
+ if (f.length > 0) {
1095
+ writer.writeString(
1096
+ 2,
1097
+ f
1098
+ );
1099
+ }
1100
+ f = message.getLastName();
1101
+ if (f.length > 0) {
1102
+ writer.writeString(
1103
+ 3,
1104
+ f
1105
+ );
1106
+ }
1107
+ f = message.getLocale();
1108
+ if (f.length > 0) {
1109
+ writer.writeString(
1110
+ 4,
1111
+ f
1112
+ );
1113
+ }
1114
+ f = message.getCompany();
1115
+ if (f.length > 0) {
1116
+ writer.writeString(
1117
+ 5,
1118
+ f
1119
+ );
1120
+ }
1121
+ };
1122
+
1123
+
1124
+ /**
1125
+ * optional string phone = 1;
1126
+ * @return {string}
1127
+ */
1128
+ proto.Auth.AccountProto.CreateAppRequest.prototype.getPhone = function() {
1129
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1130
+ };
1131
+
1132
+
1133
+ /**
1134
+ * @param {string} value
1135
+ * @return {!proto.Auth.AccountProto.CreateAppRequest} returns this
1136
+ */
1137
+ proto.Auth.AccountProto.CreateAppRequest.prototype.setPhone = function(value) {
1138
+ return jspb.Message.setProto3StringField(this, 1, value);
1139
+ };
1140
+
1141
+
1142
+ /**
1143
+ * optional string first_name = 2;
1144
+ * @return {string}
1145
+ */
1146
+ proto.Auth.AccountProto.CreateAppRequest.prototype.getFirstName = function() {
1147
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1148
+ };
1149
+
1150
+
1151
+ /**
1152
+ * @param {string} value
1153
+ * @return {!proto.Auth.AccountProto.CreateAppRequest} returns this
1154
+ */
1155
+ proto.Auth.AccountProto.CreateAppRequest.prototype.setFirstName = function(value) {
1156
+ return jspb.Message.setProto3StringField(this, 2, value);
1157
+ };
1158
+
1159
+
1160
+ /**
1161
+ * optional string last_name = 3;
1162
+ * @return {string}
1163
+ */
1164
+ proto.Auth.AccountProto.CreateAppRequest.prototype.getLastName = function() {
1165
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1166
+ };
1167
+
1168
+
1169
+ /**
1170
+ * @param {string} value
1171
+ * @return {!proto.Auth.AccountProto.CreateAppRequest} returns this
1172
+ */
1173
+ proto.Auth.AccountProto.CreateAppRequest.prototype.setLastName = function(value) {
1174
+ return jspb.Message.setProto3StringField(this, 3, value);
1175
+ };
1176
+
1177
+
1178
+ /**
1179
+ * optional string locale = 4;
1180
+ * @return {string}
1181
+ */
1182
+ proto.Auth.AccountProto.CreateAppRequest.prototype.getLocale = function() {
1183
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1184
+ };
1185
+
1186
+
1187
+ /**
1188
+ * @param {string} value
1189
+ * @return {!proto.Auth.AccountProto.CreateAppRequest} returns this
1190
+ */
1191
+ proto.Auth.AccountProto.CreateAppRequest.prototype.setLocale = function(value) {
1192
+ return jspb.Message.setProto3StringField(this, 4, value);
1193
+ };
1194
+
1195
+
1196
+ /**
1197
+ * optional string company = 5;
1198
+ * @return {string}
1199
+ */
1200
+ proto.Auth.AccountProto.CreateAppRequest.prototype.getCompany = function() {
1201
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1202
+ };
1203
+
1204
+
1205
+ /**
1206
+ * @param {string} value
1207
+ * @return {!proto.Auth.AccountProto.CreateAppRequest} returns this
1208
+ */
1209
+ proto.Auth.AccountProto.CreateAppRequest.prototype.setCompany = function(value) {
1210
+ return jspb.Message.setProto3StringField(this, 5, value);
1211
+ };
1212
+
1213
+
1214
+
1215
+
1216
+
1217
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1218
+ /**
1219
+ * Creates an object representation of this proto.
1220
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1221
+ * Optional fields that are not set will be set to undefined.
1222
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1223
+ * For the list of reserved names please see:
1224
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1225
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1226
+ * JSPB instance for transitional soy proto support:
1227
+ * http://goto/soy-param-migration
1228
+ * @return {!Object}
1229
+ */
1230
+ proto.Auth.AccountProto.RetrieveRequest.prototype.toObject = function(opt_includeInstance) {
1231
+ return proto.Auth.AccountProto.RetrieveRequest.toObject(opt_includeInstance, this);
1232
+ };
1233
+
1234
+
1235
+ /**
1236
+ * Static version of the {@see toObject} method.
1237
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1238
+ * the JSPB instance for transitional soy proto support:
1239
+ * http://goto/soy-param-migration
1240
+ * @param {!proto.Auth.AccountProto.RetrieveRequest} msg The msg instance to transform.
1241
+ * @return {!Object}
1242
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1243
+ */
1244
+ proto.Auth.AccountProto.RetrieveRequest.toObject = function(includeInstance, msg) {
1245
+ var f, obj = {
1246
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1247
+ clientid: jspb.Message.getFieldWithDefault(msg, 2, 0)
1248
+ };
1249
+
1250
+ if (includeInstance) {
1251
+ obj.$jspbMessageInstance = msg;
1252
+ }
1253
+ return obj;
1254
+ };
1255
+ }
1256
+
1257
+
1258
+ /**
1259
+ * Deserializes binary data (in protobuf wire format).
1260
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1261
+ * @return {!proto.Auth.AccountProto.RetrieveRequest}
1262
+ */
1263
+ proto.Auth.AccountProto.RetrieveRequest.deserializeBinary = function(bytes) {
1264
+ var reader = new jspb.BinaryReader(bytes);
1265
+ var msg = new proto.Auth.AccountProto.RetrieveRequest;
1266
+ return proto.Auth.AccountProto.RetrieveRequest.deserializeBinaryFromReader(msg, reader);
1267
+ };
1268
+
1269
+
1270
+ /**
1271
+ * Deserializes binary data (in protobuf wire format) from the
1272
+ * given reader into the given message object.
1273
+ * @param {!proto.Auth.AccountProto.RetrieveRequest} msg The message object to deserialize into.
1274
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1275
+ * @return {!proto.Auth.AccountProto.RetrieveRequest}
1276
+ */
1277
+ proto.Auth.AccountProto.RetrieveRequest.deserializeBinaryFromReader = function(msg, reader) {
1278
+ while (reader.nextField()) {
1279
+ if (reader.isEndGroup()) {
1280
+ break;
1281
+ }
1282
+ var field = reader.getFieldNumber();
1283
+ switch (field) {
1284
+ case 1:
1285
+ var value = /** @type {number} */ (reader.readInt64());
1286
+ msg.setId(value);
1287
+ break;
1288
+ case 2:
1289
+ var value = /** @type {number} */ (reader.readInt64());
1290
+ msg.setClientid(value);
1291
+ break;
1292
+ default:
1293
+ reader.skipField();
1294
+ break;
1295
+ }
1296
+ }
1297
+ return msg;
1298
+ };
1299
+
1300
+
1301
+ /**
1302
+ * Serializes the message to binary data (in protobuf wire format).
1303
+ * @return {!Uint8Array}
1304
+ */
1305
+ proto.Auth.AccountProto.RetrieveRequest.prototype.serializeBinary = function() {
1306
+ var writer = new jspb.BinaryWriter();
1307
+ proto.Auth.AccountProto.RetrieveRequest.serializeBinaryToWriter(this, writer);
1308
+ return writer.getResultBuffer();
1309
+ };
1310
+
1311
+
1312
+ /**
1313
+ * Serializes the given message to binary data (in protobuf wire
1314
+ * format), writing to the given BinaryWriter.
1315
+ * @param {!proto.Auth.AccountProto.RetrieveRequest} message
1316
+ * @param {!jspb.BinaryWriter} writer
1317
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1318
+ */
1319
+ proto.Auth.AccountProto.RetrieveRequest.serializeBinaryToWriter = function(message, writer) {
1320
+ var f = undefined;
1321
+ f = message.getId();
1322
+ if (f !== 0) {
1323
+ writer.writeInt64(
1324
+ 1,
1325
+ f
1326
+ );
1327
+ }
1328
+ f = message.getClientid();
1329
+ if (f !== 0) {
1330
+ writer.writeInt64(
1331
+ 2,
1332
+ f
1333
+ );
1334
+ }
1335
+ };
1336
+
1337
+
1338
+ /**
1339
+ * optional int64 id = 1;
1340
+ * @return {number}
1341
+ */
1342
+ proto.Auth.AccountProto.RetrieveRequest.prototype.getId = function() {
1343
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1344
+ };
1345
+
1346
+
1347
+ /**
1348
+ * @param {number} value
1349
+ * @return {!proto.Auth.AccountProto.RetrieveRequest} returns this
1350
+ */
1351
+ proto.Auth.AccountProto.RetrieveRequest.prototype.setId = function(value) {
1352
+ return jspb.Message.setProto3IntField(this, 1, value);
1353
+ };
1354
+
1355
+
1356
+ /**
1357
+ * optional int64 clientId = 2;
1358
+ * @return {number}
1359
+ */
1360
+ proto.Auth.AccountProto.RetrieveRequest.prototype.getClientid = function() {
1361
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1362
+ };
1363
+
1364
+
1365
+ /**
1366
+ * @param {number} value
1367
+ * @return {!proto.Auth.AccountProto.RetrieveRequest} returns this
1368
+ */
1369
+ proto.Auth.AccountProto.RetrieveRequest.prototype.setClientid = function(value) {
1370
+ return jspb.Message.setProto3IntField(this, 2, value);
1371
+ };
1372
+
1373
+
1374
+
1375
+ /**
1376
+ * List of repeated fields within this message type.
1377
+ * @private {!Array<number>}
1378
+ * @const
1379
+ */
1380
+ proto.Auth.AccountProto.SearchReply.repeatedFields_ = [1];
1381
+
1382
+
1383
+
1384
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1385
+ /**
1386
+ * Creates an object representation of this proto.
1387
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1388
+ * Optional fields that are not set will be set to undefined.
1389
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1390
+ * For the list of reserved names please see:
1391
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1392
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1393
+ * JSPB instance for transitional soy proto support:
1394
+ * http://goto/soy-param-migration
1395
+ * @return {!Object}
1396
+ */
1397
+ proto.Auth.AccountProto.SearchReply.prototype.toObject = function(opt_includeInstance) {
1398
+ return proto.Auth.AccountProto.SearchReply.toObject(opt_includeInstance, this);
1399
+ };
1400
+
1401
+
1402
+ /**
1403
+ * Static version of the {@see toObject} method.
1404
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1405
+ * the JSPB instance for transitional soy proto support:
1406
+ * http://goto/soy-param-migration
1407
+ * @param {!proto.Auth.AccountProto.SearchReply} msg The msg instance to transform.
1408
+ * @return {!Object}
1409
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1410
+ */
1411
+ proto.Auth.AccountProto.SearchReply.toObject = function(includeInstance, msg) {
1412
+ var f, obj = {
1413
+ accountsList: jspb.Message.toObjectList(msg.getAccountsList(),
1414
+ proto.Auth.AccountProto.toObject, includeInstance),
1415
+ pagination: (f = msg.getPagination()) && platform_pagination_pb.PaginationProto.toObject(includeInstance, f)
1416
+ };
1417
+
1418
+ if (includeInstance) {
1419
+ obj.$jspbMessageInstance = msg;
1420
+ }
1421
+ return obj;
1422
+ };
1423
+ }
1424
+
1425
+
1426
+ /**
1427
+ * Deserializes binary data (in protobuf wire format).
1428
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1429
+ * @return {!proto.Auth.AccountProto.SearchReply}
1430
+ */
1431
+ proto.Auth.AccountProto.SearchReply.deserializeBinary = function(bytes) {
1432
+ var reader = new jspb.BinaryReader(bytes);
1433
+ var msg = new proto.Auth.AccountProto.SearchReply;
1434
+ return proto.Auth.AccountProto.SearchReply.deserializeBinaryFromReader(msg, reader);
1435
+ };
1436
+
1437
+
1438
+ /**
1439
+ * Deserializes binary data (in protobuf wire format) from the
1440
+ * given reader into the given message object.
1441
+ * @param {!proto.Auth.AccountProto.SearchReply} msg The message object to deserialize into.
1442
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1443
+ * @return {!proto.Auth.AccountProto.SearchReply}
1444
+ */
1445
+ proto.Auth.AccountProto.SearchReply.deserializeBinaryFromReader = function(msg, reader) {
1446
+ while (reader.nextField()) {
1447
+ if (reader.isEndGroup()) {
1448
+ break;
1449
+ }
1450
+ var field = reader.getFieldNumber();
1451
+ switch (field) {
1452
+ case 1:
1453
+ var value = new proto.Auth.AccountProto;
1454
+ reader.readMessage(value,proto.Auth.AccountProto.deserializeBinaryFromReader);
1455
+ msg.addAccounts(value);
1456
+ break;
1457
+ case 2:
1458
+ var value = new platform_pagination_pb.PaginationProto;
1459
+ reader.readMessage(value,platform_pagination_pb.PaginationProto.deserializeBinaryFromReader);
1460
+ msg.setPagination(value);
1461
+ break;
1462
+ default:
1463
+ reader.skipField();
1464
+ break;
1465
+ }
1466
+ }
1467
+ return msg;
1468
+ };
1469
+
1470
+
1471
+ /**
1472
+ * Serializes the message to binary data (in protobuf wire format).
1473
+ * @return {!Uint8Array}
1474
+ */
1475
+ proto.Auth.AccountProto.SearchReply.prototype.serializeBinary = function() {
1476
+ var writer = new jspb.BinaryWriter();
1477
+ proto.Auth.AccountProto.SearchReply.serializeBinaryToWriter(this, writer);
1478
+ return writer.getResultBuffer();
1479
+ };
1480
+
1481
+
1482
+ /**
1483
+ * Serializes the given message to binary data (in protobuf wire
1484
+ * format), writing to the given BinaryWriter.
1485
+ * @param {!proto.Auth.AccountProto.SearchReply} message
1486
+ * @param {!jspb.BinaryWriter} writer
1487
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1488
+ */
1489
+ proto.Auth.AccountProto.SearchReply.serializeBinaryToWriter = function(message, writer) {
1490
+ var f = undefined;
1491
+ f = message.getAccountsList();
1492
+ if (f.length > 0) {
1493
+ writer.writeRepeatedMessage(
1494
+ 1,
1495
+ f,
1496
+ proto.Auth.AccountProto.serializeBinaryToWriter
1497
+ );
1498
+ }
1499
+ f = message.getPagination();
1500
+ if (f != null) {
1501
+ writer.writeMessage(
1502
+ 2,
1503
+ f,
1504
+ platform_pagination_pb.PaginationProto.serializeBinaryToWriter
1505
+ );
1506
+ }
1507
+ };
1508
+
1509
+
1510
+ /**
1511
+ * repeated AccountProto accounts = 1;
1512
+ * @return {!Array<!proto.Auth.AccountProto>}
1513
+ */
1514
+ proto.Auth.AccountProto.SearchReply.prototype.getAccountsList = function() {
1515
+ return /** @type{!Array<!proto.Auth.AccountProto>} */ (
1516
+ jspb.Message.getRepeatedWrapperField(this, proto.Auth.AccountProto, 1));
1517
+ };
1518
+
1519
+
1520
+ /**
1521
+ * @param {!Array<!proto.Auth.AccountProto>} value
1522
+ * @return {!proto.Auth.AccountProto.SearchReply} returns this
1523
+ */
1524
+ proto.Auth.AccountProto.SearchReply.prototype.setAccountsList = function(value) {
1525
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1526
+ };
1527
+
1528
+
1529
+ /**
1530
+ * @param {!proto.Auth.AccountProto=} opt_value
1531
+ * @param {number=} opt_index
1532
+ * @return {!proto.Auth.AccountProto}
1533
+ */
1534
+ proto.Auth.AccountProto.SearchReply.prototype.addAccounts = function(opt_value, opt_index) {
1535
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Auth.AccountProto, opt_index);
1536
+ };
1537
+
1538
+
1539
+ /**
1540
+ * Clears the list making it empty but non-null.
1541
+ * @return {!proto.Auth.AccountProto.SearchReply} returns this
1542
+ */
1543
+ proto.Auth.AccountProto.SearchReply.prototype.clearAccountsList = function() {
1544
+ return this.setAccountsList([]);
1545
+ };
1546
+
1547
+
1548
+ /**
1549
+ * optional Platform.PaginationProto pagination = 2;
1550
+ * @return {?proto.Platform.PaginationProto}
1551
+ */
1552
+ proto.Auth.AccountProto.SearchReply.prototype.getPagination = function() {
1553
+ return /** @type{?proto.Platform.PaginationProto} */ (
1554
+ jspb.Message.getWrapperField(this, platform_pagination_pb.PaginationProto, 2));
1555
+ };
1556
+
1557
+
1558
+ /**
1559
+ * @param {?proto.Platform.PaginationProto|undefined} value
1560
+ * @return {!proto.Auth.AccountProto.SearchReply} returns this
1561
+ */
1562
+ proto.Auth.AccountProto.SearchReply.prototype.setPagination = function(value) {
1563
+ return jspb.Message.setWrapperField(this, 2, value);
1564
+ };
1565
+
1566
+
1567
+ /**
1568
+ * Clears the message field making it undefined.
1569
+ * @return {!proto.Auth.AccountProto.SearchReply} returns this
1570
+ */
1571
+ proto.Auth.AccountProto.SearchReply.prototype.clearPagination = function() {
1572
+ return this.setPagination(undefined);
1573
+ };
1574
+
1575
+
1576
+ /**
1577
+ * Returns whether this field is set.
1578
+ * @return {boolean}
1579
+ */
1580
+ proto.Auth.AccountProto.SearchReply.prototype.hasPagination = function() {
1581
+ return jspb.Message.getField(this, 2) != null;
1582
+ };
1583
+
1584
+
1585
+
1586
+
1587
+
1588
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1589
+ /**
1590
+ * Creates an object representation of this proto.
1591
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1592
+ * Optional fields that are not set will be set to undefined.
1593
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1594
+ * For the list of reserved names please see:
1595
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1596
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1597
+ * JSPB instance for transitional soy proto support:
1598
+ * http://goto/soy-param-migration
1599
+ * @return {!Object}
1600
+ */
1601
+ proto.Auth.AccountProto.SearchRequest.prototype.toObject = function(opt_includeInstance) {
1602
+ return proto.Auth.AccountProto.SearchRequest.toObject(opt_includeInstance, this);
1603
+ };
1604
+
1605
+
1606
+ /**
1607
+ * Static version of the {@see toObject} method.
1608
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1609
+ * the JSPB instance for transitional soy proto support:
1610
+ * http://goto/soy-param-migration
1611
+ * @param {!proto.Auth.AccountProto.SearchRequest} msg The msg instance to transform.
1612
+ * @return {!Object}
1613
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1614
+ */
1615
+ proto.Auth.AccountProto.SearchRequest.toObject = function(includeInstance, msg) {
1616
+ var f, obj = {
1617
+ search: jspb.Message.getFieldWithDefault(msg, 1, ""),
1618
+ page: jspb.Message.getFieldWithDefault(msg, 2, 0),
1619
+ count: jspb.Message.getFieldWithDefault(msg, 3, 0)
1620
+ };
1621
+
1622
+ if (includeInstance) {
1623
+ obj.$jspbMessageInstance = msg;
1624
+ }
1625
+ return obj;
1626
+ };
1627
+ }
1628
+
1629
+
1630
+ /**
1631
+ * Deserializes binary data (in protobuf wire format).
1632
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1633
+ * @return {!proto.Auth.AccountProto.SearchRequest}
1634
+ */
1635
+ proto.Auth.AccountProto.SearchRequest.deserializeBinary = function(bytes) {
1636
+ var reader = new jspb.BinaryReader(bytes);
1637
+ var msg = new proto.Auth.AccountProto.SearchRequest;
1638
+ return proto.Auth.AccountProto.SearchRequest.deserializeBinaryFromReader(msg, reader);
1639
+ };
1640
+
1641
+
1642
+ /**
1643
+ * Deserializes binary data (in protobuf wire format) from the
1644
+ * given reader into the given message object.
1645
+ * @param {!proto.Auth.AccountProto.SearchRequest} msg The message object to deserialize into.
1646
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1647
+ * @return {!proto.Auth.AccountProto.SearchRequest}
1648
+ */
1649
+ proto.Auth.AccountProto.SearchRequest.deserializeBinaryFromReader = function(msg, reader) {
1650
+ while (reader.nextField()) {
1651
+ if (reader.isEndGroup()) {
1652
+ break;
1653
+ }
1654
+ var field = reader.getFieldNumber();
1655
+ switch (field) {
1656
+ case 1:
1657
+ var value = /** @type {string} */ (reader.readString());
1658
+ msg.setSearch(value);
1659
+ break;
1660
+ case 2:
1661
+ var value = /** @type {number} */ (reader.readInt32());
1662
+ msg.setPage(value);
1663
+ break;
1664
+ case 3:
1665
+ var value = /** @type {number} */ (reader.readInt32());
1666
+ msg.setCount(value);
1667
+ break;
1668
+ default:
1669
+ reader.skipField();
1670
+ break;
1671
+ }
1672
+ }
1673
+ return msg;
1674
+ };
1675
+
1676
+
1677
+ /**
1678
+ * Serializes the message to binary data (in protobuf wire format).
1679
+ * @return {!Uint8Array}
1680
+ */
1681
+ proto.Auth.AccountProto.SearchRequest.prototype.serializeBinary = function() {
1682
+ var writer = new jspb.BinaryWriter();
1683
+ proto.Auth.AccountProto.SearchRequest.serializeBinaryToWriter(this, writer);
1684
+ return writer.getResultBuffer();
1685
+ };
1686
+
1687
+
1688
+ /**
1689
+ * Serializes the given message to binary data (in protobuf wire
1690
+ * format), writing to the given BinaryWriter.
1691
+ * @param {!proto.Auth.AccountProto.SearchRequest} message
1692
+ * @param {!jspb.BinaryWriter} writer
1693
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1694
+ */
1695
+ proto.Auth.AccountProto.SearchRequest.serializeBinaryToWriter = function(message, writer) {
1696
+ var f = undefined;
1697
+ f = message.getSearch();
1698
+ if (f.length > 0) {
1699
+ writer.writeString(
1700
+ 1,
1701
+ f
1702
+ );
1703
+ }
1704
+ f = message.getPage();
1705
+ if (f !== 0) {
1706
+ writer.writeInt32(
1707
+ 2,
1708
+ f
1709
+ );
1710
+ }
1711
+ f = message.getCount();
1712
+ if (f !== 0) {
1713
+ writer.writeInt32(
1714
+ 3,
1715
+ f
1716
+ );
1717
+ }
1718
+ };
1719
+
1720
+
1721
+ /**
1722
+ * optional string search = 1;
1723
+ * @return {string}
1724
+ */
1725
+ proto.Auth.AccountProto.SearchRequest.prototype.getSearch = function() {
1726
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1727
+ };
1728
+
1729
+
1730
+ /**
1731
+ * @param {string} value
1732
+ * @return {!proto.Auth.AccountProto.SearchRequest} returns this
1733
+ */
1734
+ proto.Auth.AccountProto.SearchRequest.prototype.setSearch = function(value) {
1735
+ return jspb.Message.setProto3StringField(this, 1, value);
1736
+ };
1737
+
1738
+
1739
+ /**
1740
+ * optional int32 page = 2;
1741
+ * @return {number}
1742
+ */
1743
+ proto.Auth.AccountProto.SearchRequest.prototype.getPage = function() {
1744
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1745
+ };
1746
+
1747
+
1748
+ /**
1749
+ * @param {number} value
1750
+ * @return {!proto.Auth.AccountProto.SearchRequest} returns this
1751
+ */
1752
+ proto.Auth.AccountProto.SearchRequest.prototype.setPage = function(value) {
1753
+ return jspb.Message.setProto3IntField(this, 2, value);
1754
+ };
1755
+
1756
+
1757
+ /**
1758
+ * optional int32 count = 3;
1759
+ * @return {number}
1760
+ */
1761
+ proto.Auth.AccountProto.SearchRequest.prototype.getCount = function() {
1762
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1763
+ };
1764
+
1765
+
1766
+ /**
1767
+ * @param {number} value
1768
+ * @return {!proto.Auth.AccountProto.SearchRequest} returns this
1769
+ */
1770
+ proto.Auth.AccountProto.SearchRequest.prototype.setCount = function(value) {
1771
+ return jspb.Message.setProto3IntField(this, 3, value);
1772
+ };
1773
+
1774
+
1775
+
1776
+
1777
+
1778
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1779
+ /**
1780
+ * Creates an object representation of this proto.
1781
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1782
+ * Optional fields that are not set will be set to undefined.
1783
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1784
+ * For the list of reserved names please see:
1785
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1786
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1787
+ * JSPB instance for transitional soy proto support:
1788
+ * http://goto/soy-param-migration
1789
+ * @return {!Object}
1790
+ */
1791
+ proto.Auth.AccountProto.UpdateRequest.prototype.toObject = function(opt_includeInstance) {
1792
+ return proto.Auth.AccountProto.UpdateRequest.toObject(opt_includeInstance, this);
1793
+ };
1794
+
1795
+
1796
+ /**
1797
+ * Static version of the {@see toObject} method.
1798
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1799
+ * the JSPB instance for transitional soy proto support:
1800
+ * http://goto/soy-param-migration
1801
+ * @param {!proto.Auth.AccountProto.UpdateRequest} msg The msg instance to transform.
1802
+ * @return {!Object}
1803
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1804
+ */
1805
+ proto.Auth.AccountProto.UpdateRequest.toObject = function(includeInstance, msg) {
1806
+ var f, obj = {
1807
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1808
+ firstName: jspb.Message.getFieldWithDefault(msg, 2, ""),
1809
+ lastName: jspb.Message.getFieldWithDefault(msg, 3, ""),
1810
+ locale: jspb.Message.getFieldWithDefault(msg, 4, ""),
1811
+ company: jspb.Message.getFieldWithDefault(msg, 5, "")
1812
+ };
1813
+
1814
+ if (includeInstance) {
1815
+ obj.$jspbMessageInstance = msg;
1816
+ }
1817
+ return obj;
1818
+ };
1819
+ }
1820
+
1821
+
1822
+ /**
1823
+ * Deserializes binary data (in protobuf wire format).
1824
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1825
+ * @return {!proto.Auth.AccountProto.UpdateRequest}
1826
+ */
1827
+ proto.Auth.AccountProto.UpdateRequest.deserializeBinary = function(bytes) {
1828
+ var reader = new jspb.BinaryReader(bytes);
1829
+ var msg = new proto.Auth.AccountProto.UpdateRequest;
1830
+ return proto.Auth.AccountProto.UpdateRequest.deserializeBinaryFromReader(msg, reader);
1831
+ };
1832
+
1833
+
1834
+ /**
1835
+ * Deserializes binary data (in protobuf wire format) from the
1836
+ * given reader into the given message object.
1837
+ * @param {!proto.Auth.AccountProto.UpdateRequest} msg The message object to deserialize into.
1838
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1839
+ * @return {!proto.Auth.AccountProto.UpdateRequest}
1840
+ */
1841
+ proto.Auth.AccountProto.UpdateRequest.deserializeBinaryFromReader = function(msg, reader) {
1842
+ while (reader.nextField()) {
1843
+ if (reader.isEndGroup()) {
1844
+ break;
1845
+ }
1846
+ var field = reader.getFieldNumber();
1847
+ switch (field) {
1848
+ case 1:
1849
+ var value = /** @type {number} */ (reader.readInt64());
1850
+ msg.setId(value);
1851
+ break;
1852
+ case 2:
1853
+ var value = /** @type {string} */ (reader.readString());
1854
+ msg.setFirstName(value);
1855
+ break;
1856
+ case 3:
1857
+ var value = /** @type {string} */ (reader.readString());
1858
+ msg.setLastName(value);
1859
+ break;
1860
+ case 4:
1861
+ var value = /** @type {string} */ (reader.readString());
1862
+ msg.setLocale(value);
1863
+ break;
1864
+ case 5:
1865
+ var value = /** @type {string} */ (reader.readString());
1866
+ msg.setCompany(value);
1867
+ break;
1868
+ default:
1869
+ reader.skipField();
1870
+ break;
1871
+ }
1872
+ }
1873
+ return msg;
1874
+ };
1875
+
1876
+
1877
+ /**
1878
+ * Serializes the message to binary data (in protobuf wire format).
1879
+ * @return {!Uint8Array}
1880
+ */
1881
+ proto.Auth.AccountProto.UpdateRequest.prototype.serializeBinary = function() {
1882
+ var writer = new jspb.BinaryWriter();
1883
+ proto.Auth.AccountProto.UpdateRequest.serializeBinaryToWriter(this, writer);
1884
+ return writer.getResultBuffer();
1885
+ };
1886
+
1887
+
1888
+ /**
1889
+ * Serializes the given message to binary data (in protobuf wire
1890
+ * format), writing to the given BinaryWriter.
1891
+ * @param {!proto.Auth.AccountProto.UpdateRequest} message
1892
+ * @param {!jspb.BinaryWriter} writer
1893
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1894
+ */
1895
+ proto.Auth.AccountProto.UpdateRequest.serializeBinaryToWriter = function(message, writer) {
1896
+ var f = undefined;
1897
+ f = message.getId();
1898
+ if (f !== 0) {
1899
+ writer.writeInt64(
1900
+ 1,
1901
+ f
1902
+ );
1903
+ }
1904
+ f = message.getFirstName();
1905
+ if (f.length > 0) {
1906
+ writer.writeString(
1907
+ 2,
1908
+ f
1909
+ );
1910
+ }
1911
+ f = message.getLastName();
1912
+ if (f.length > 0) {
1913
+ writer.writeString(
1914
+ 3,
1915
+ f
1916
+ );
1917
+ }
1918
+ f = message.getLocale();
1919
+ if (f.length > 0) {
1920
+ writer.writeString(
1921
+ 4,
1922
+ f
1923
+ );
1924
+ }
1925
+ f = message.getCompany();
1926
+ if (f.length > 0) {
1927
+ writer.writeString(
1928
+ 5,
1929
+ f
1930
+ );
1931
+ }
1932
+ };
1933
+
1934
+
1935
+ /**
1936
+ * optional int64 id = 1;
1937
+ * @return {number}
1938
+ */
1939
+ proto.Auth.AccountProto.UpdateRequest.prototype.getId = function() {
1940
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1941
+ };
1942
+
1943
+
1944
+ /**
1945
+ * @param {number} value
1946
+ * @return {!proto.Auth.AccountProto.UpdateRequest} returns this
1947
+ */
1948
+ proto.Auth.AccountProto.UpdateRequest.prototype.setId = function(value) {
1949
+ return jspb.Message.setProto3IntField(this, 1, value);
1950
+ };
1951
+
1952
+
1953
+ /**
1954
+ * optional string first_name = 2;
1955
+ * @return {string}
1956
+ */
1957
+ proto.Auth.AccountProto.UpdateRequest.prototype.getFirstName = function() {
1958
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1959
+ };
1960
+
1961
+
1962
+ /**
1963
+ * @param {string} value
1964
+ * @return {!proto.Auth.AccountProto.UpdateRequest} returns this
1965
+ */
1966
+ proto.Auth.AccountProto.UpdateRequest.prototype.setFirstName = function(value) {
1967
+ return jspb.Message.setProto3StringField(this, 2, value);
1968
+ };
1969
+
1970
+
1971
+ /**
1972
+ * optional string last_name = 3;
1973
+ * @return {string}
1974
+ */
1975
+ proto.Auth.AccountProto.UpdateRequest.prototype.getLastName = function() {
1976
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1977
+ };
1978
+
1979
+
1980
+ /**
1981
+ * @param {string} value
1982
+ * @return {!proto.Auth.AccountProto.UpdateRequest} returns this
1983
+ */
1984
+ proto.Auth.AccountProto.UpdateRequest.prototype.setLastName = function(value) {
1985
+ return jspb.Message.setProto3StringField(this, 3, value);
1986
+ };
1987
+
1988
+
1989
+ /**
1990
+ * optional string locale = 4;
1991
+ * @return {string}
1992
+ */
1993
+ proto.Auth.AccountProto.UpdateRequest.prototype.getLocale = function() {
1994
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1995
+ };
1996
+
1997
+
1998
+ /**
1999
+ * @param {string} value
2000
+ * @return {!proto.Auth.AccountProto.UpdateRequest} returns this
2001
+ */
2002
+ proto.Auth.AccountProto.UpdateRequest.prototype.setLocale = function(value) {
2003
+ return jspb.Message.setProto3StringField(this, 4, value);
2004
+ };
2005
+
2006
+
2007
+ /**
2008
+ * optional string company = 5;
2009
+ * @return {string}
2010
+ */
2011
+ proto.Auth.AccountProto.UpdateRequest.prototype.getCompany = function() {
2012
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2013
+ };
2014
+
2015
+
2016
+ /**
2017
+ * @param {string} value
2018
+ * @return {!proto.Auth.AccountProto.UpdateRequest} returns this
2019
+ */
2020
+ proto.Auth.AccountProto.UpdateRequest.prototype.setCompany = function(value) {
2021
+ return jspb.Message.setProto3StringField(this, 5, value);
2022
+ };
2023
+
2024
+
2025
+
2026
+
2027
+
2028
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2029
+ /**
2030
+ * Creates an object representation of this proto.
2031
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2032
+ * Optional fields that are not set will be set to undefined.
2033
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2034
+ * For the list of reserved names please see:
2035
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2036
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2037
+ * JSPB instance for transitional soy proto support:
2038
+ * http://goto/soy-param-migration
2039
+ * @return {!Object}
2040
+ */
2041
+ proto.Auth.AccountProto.ActivateAccountRequest.prototype.toObject = function(opt_includeInstance) {
2042
+ return proto.Auth.AccountProto.ActivateAccountRequest.toObject(opt_includeInstance, this);
2043
+ };
2044
+
2045
+
2046
+ /**
2047
+ * Static version of the {@see toObject} method.
2048
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2049
+ * the JSPB instance for transitional soy proto support:
2050
+ * http://goto/soy-param-migration
2051
+ * @param {!proto.Auth.AccountProto.ActivateAccountRequest} msg The msg instance to transform.
2052
+ * @return {!Object}
2053
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2054
+ */
2055
+ proto.Auth.AccountProto.ActivateAccountRequest.toObject = function(includeInstance, msg) {
2056
+ var f, obj = {
2057
+ accountconfirmationtoken: jspb.Message.getFieldWithDefault(msg, 1, 0),
2058
+ password: jspb.Message.getFieldWithDefault(msg, 2, ""),
2059
+ confirmpassword: jspb.Message.getFieldWithDefault(msg, 3, ""),
2060
+ email: jspb.Message.getFieldWithDefault(msg, 4, "")
2061
+ };
2062
+
2063
+ if (includeInstance) {
2064
+ obj.$jspbMessageInstance = msg;
2065
+ }
2066
+ return obj;
2067
+ };
2068
+ }
2069
+
2070
+
2071
+ /**
2072
+ * Deserializes binary data (in protobuf wire format).
2073
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2074
+ * @return {!proto.Auth.AccountProto.ActivateAccountRequest}
2075
+ */
2076
+ proto.Auth.AccountProto.ActivateAccountRequest.deserializeBinary = function(bytes) {
2077
+ var reader = new jspb.BinaryReader(bytes);
2078
+ var msg = new proto.Auth.AccountProto.ActivateAccountRequest;
2079
+ return proto.Auth.AccountProto.ActivateAccountRequest.deserializeBinaryFromReader(msg, reader);
2080
+ };
2081
+
2082
+
2083
+ /**
2084
+ * Deserializes binary data (in protobuf wire format) from the
2085
+ * given reader into the given message object.
2086
+ * @param {!proto.Auth.AccountProto.ActivateAccountRequest} msg The message object to deserialize into.
2087
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2088
+ * @return {!proto.Auth.AccountProto.ActivateAccountRequest}
2089
+ */
2090
+ proto.Auth.AccountProto.ActivateAccountRequest.deserializeBinaryFromReader = function(msg, reader) {
2091
+ while (reader.nextField()) {
2092
+ if (reader.isEndGroup()) {
2093
+ break;
2094
+ }
2095
+ var field = reader.getFieldNumber();
2096
+ switch (field) {
2097
+ case 1:
2098
+ var value = /** @type {number} */ (reader.readInt32());
2099
+ msg.setAccountconfirmationtoken(value);
2100
+ break;
2101
+ case 2:
2102
+ var value = /** @type {string} */ (reader.readString());
2103
+ msg.setPassword(value);
2104
+ break;
2105
+ case 3:
2106
+ var value = /** @type {string} */ (reader.readString());
2107
+ msg.setConfirmpassword(value);
2108
+ break;
2109
+ case 4:
2110
+ var value = /** @type {string} */ (reader.readString());
2111
+ msg.setEmail(value);
2112
+ break;
2113
+ default:
2114
+ reader.skipField();
2115
+ break;
2116
+ }
2117
+ }
2118
+ return msg;
2119
+ };
2120
+
2121
+
2122
+ /**
2123
+ * Serializes the message to binary data (in protobuf wire format).
2124
+ * @return {!Uint8Array}
2125
+ */
2126
+ proto.Auth.AccountProto.ActivateAccountRequest.prototype.serializeBinary = function() {
2127
+ var writer = new jspb.BinaryWriter();
2128
+ proto.Auth.AccountProto.ActivateAccountRequest.serializeBinaryToWriter(this, writer);
2129
+ return writer.getResultBuffer();
2130
+ };
2131
+
2132
+
2133
+ /**
2134
+ * Serializes the given message to binary data (in protobuf wire
2135
+ * format), writing to the given BinaryWriter.
2136
+ * @param {!proto.Auth.AccountProto.ActivateAccountRequest} message
2137
+ * @param {!jspb.BinaryWriter} writer
2138
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2139
+ */
2140
+ proto.Auth.AccountProto.ActivateAccountRequest.serializeBinaryToWriter = function(message, writer) {
2141
+ var f = undefined;
2142
+ f = message.getAccountconfirmationtoken();
2143
+ if (f !== 0) {
2144
+ writer.writeInt32(
2145
+ 1,
2146
+ f
2147
+ );
2148
+ }
2149
+ f = message.getPassword();
2150
+ if (f.length > 0) {
2151
+ writer.writeString(
2152
+ 2,
2153
+ f
2154
+ );
2155
+ }
2156
+ f = message.getConfirmpassword();
2157
+ if (f.length > 0) {
2158
+ writer.writeString(
2159
+ 3,
2160
+ f
2161
+ );
2162
+ }
2163
+ f = message.getEmail();
2164
+ if (f.length > 0) {
2165
+ writer.writeString(
2166
+ 4,
2167
+ f
2168
+ );
2169
+ }
2170
+ };
2171
+
2172
+
2173
+ /**
2174
+ * optional int32 accountConfirmationToken = 1;
2175
+ * @return {number}
2176
+ */
2177
+ proto.Auth.AccountProto.ActivateAccountRequest.prototype.getAccountconfirmationtoken = function() {
2178
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2179
+ };
2180
+
2181
+
2182
+ /**
2183
+ * @param {number} value
2184
+ * @return {!proto.Auth.AccountProto.ActivateAccountRequest} returns this
2185
+ */
2186
+ proto.Auth.AccountProto.ActivateAccountRequest.prototype.setAccountconfirmationtoken = function(value) {
2187
+ return jspb.Message.setProto3IntField(this, 1, value);
2188
+ };
2189
+
2190
+
2191
+ /**
2192
+ * optional string password = 2;
2193
+ * @return {string}
2194
+ */
2195
+ proto.Auth.AccountProto.ActivateAccountRequest.prototype.getPassword = function() {
2196
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2197
+ };
2198
+
2199
+
2200
+ /**
2201
+ * @param {string} value
2202
+ * @return {!proto.Auth.AccountProto.ActivateAccountRequest} returns this
2203
+ */
2204
+ proto.Auth.AccountProto.ActivateAccountRequest.prototype.setPassword = function(value) {
2205
+ return jspb.Message.setProto3StringField(this, 2, value);
2206
+ };
2207
+
2208
+
2209
+ /**
2210
+ * optional string confirmPassword = 3;
2211
+ * @return {string}
2212
+ */
2213
+ proto.Auth.AccountProto.ActivateAccountRequest.prototype.getConfirmpassword = function() {
2214
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2215
+ };
2216
+
2217
+
2218
+ /**
2219
+ * @param {string} value
2220
+ * @return {!proto.Auth.AccountProto.ActivateAccountRequest} returns this
2221
+ */
2222
+ proto.Auth.AccountProto.ActivateAccountRequest.prototype.setConfirmpassword = function(value) {
2223
+ return jspb.Message.setProto3StringField(this, 3, value);
2224
+ };
2225
+
2226
+
2227
+ /**
2228
+ * optional string email = 4;
2229
+ * @return {string}
2230
+ */
2231
+ proto.Auth.AccountProto.ActivateAccountRequest.prototype.getEmail = function() {
2232
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2233
+ };
2234
+
2235
+
2236
+ /**
2237
+ * @param {string} value
2238
+ * @return {!proto.Auth.AccountProto.ActivateAccountRequest} returns this
2239
+ */
2240
+ proto.Auth.AccountProto.ActivateAccountRequest.prototype.setEmail = function(value) {
2241
+ return jspb.Message.setProto3StringField(this, 4, value);
2242
+ };
2243
+
2244
+
2245
+
2246
+
2247
+
2248
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2249
+ /**
2250
+ * Creates an object representation of this proto.
2251
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2252
+ * Optional fields that are not set will be set to undefined.
2253
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2254
+ * For the list of reserved names please see:
2255
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2256
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2257
+ * JSPB instance for transitional soy proto support:
2258
+ * http://goto/soy-param-migration
2259
+ * @return {!Object}
2260
+ */
2261
+ proto.Auth.AccountProto.ForgotPasswordRequest.prototype.toObject = function(opt_includeInstance) {
2262
+ return proto.Auth.AccountProto.ForgotPasswordRequest.toObject(opt_includeInstance, this);
2263
+ };
2264
+
2265
+
2266
+ /**
2267
+ * Static version of the {@see toObject} method.
2268
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2269
+ * the JSPB instance for transitional soy proto support:
2270
+ * http://goto/soy-param-migration
2271
+ * @param {!proto.Auth.AccountProto.ForgotPasswordRequest} msg The msg instance to transform.
2272
+ * @return {!Object}
2273
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2274
+ */
2275
+ proto.Auth.AccountProto.ForgotPasswordRequest.toObject = function(includeInstance, msg) {
2276
+ var f, obj = {
2277
+ email: jspb.Message.getFieldWithDefault(msg, 1, "")
2278
+ };
2279
+
2280
+ if (includeInstance) {
2281
+ obj.$jspbMessageInstance = msg;
2282
+ }
2283
+ return obj;
2284
+ };
2285
+ }
2286
+
2287
+
2288
+ /**
2289
+ * Deserializes binary data (in protobuf wire format).
2290
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2291
+ * @return {!proto.Auth.AccountProto.ForgotPasswordRequest}
2292
+ */
2293
+ proto.Auth.AccountProto.ForgotPasswordRequest.deserializeBinary = function(bytes) {
2294
+ var reader = new jspb.BinaryReader(bytes);
2295
+ var msg = new proto.Auth.AccountProto.ForgotPasswordRequest;
2296
+ return proto.Auth.AccountProto.ForgotPasswordRequest.deserializeBinaryFromReader(msg, reader);
2297
+ };
2298
+
2299
+
2300
+ /**
2301
+ * Deserializes binary data (in protobuf wire format) from the
2302
+ * given reader into the given message object.
2303
+ * @param {!proto.Auth.AccountProto.ForgotPasswordRequest} msg The message object to deserialize into.
2304
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2305
+ * @return {!proto.Auth.AccountProto.ForgotPasswordRequest}
2306
+ */
2307
+ proto.Auth.AccountProto.ForgotPasswordRequest.deserializeBinaryFromReader = function(msg, reader) {
2308
+ while (reader.nextField()) {
2309
+ if (reader.isEndGroup()) {
2310
+ break;
2311
+ }
2312
+ var field = reader.getFieldNumber();
2313
+ switch (field) {
2314
+ case 1:
2315
+ var value = /** @type {string} */ (reader.readString());
2316
+ msg.setEmail(value);
2317
+ break;
2318
+ default:
2319
+ reader.skipField();
2320
+ break;
2321
+ }
2322
+ }
2323
+ return msg;
2324
+ };
2325
+
2326
+
2327
+ /**
2328
+ * Serializes the message to binary data (in protobuf wire format).
2329
+ * @return {!Uint8Array}
2330
+ */
2331
+ proto.Auth.AccountProto.ForgotPasswordRequest.prototype.serializeBinary = function() {
2332
+ var writer = new jspb.BinaryWriter();
2333
+ proto.Auth.AccountProto.ForgotPasswordRequest.serializeBinaryToWriter(this, writer);
2334
+ return writer.getResultBuffer();
2335
+ };
2336
+
2337
+
2338
+ /**
2339
+ * Serializes the given message to binary data (in protobuf wire
2340
+ * format), writing to the given BinaryWriter.
2341
+ * @param {!proto.Auth.AccountProto.ForgotPasswordRequest} message
2342
+ * @param {!jspb.BinaryWriter} writer
2343
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2344
+ */
2345
+ proto.Auth.AccountProto.ForgotPasswordRequest.serializeBinaryToWriter = function(message, writer) {
2346
+ var f = undefined;
2347
+ f = message.getEmail();
2348
+ if (f.length > 0) {
2349
+ writer.writeString(
2350
+ 1,
2351
+ f
2352
+ );
2353
+ }
2354
+ };
2355
+
2356
+
2357
+ /**
2358
+ * optional string email = 1;
2359
+ * @return {string}
2360
+ */
2361
+ proto.Auth.AccountProto.ForgotPasswordRequest.prototype.getEmail = function() {
2362
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2363
+ };
2364
+
2365
+
2366
+ /**
2367
+ * @param {string} value
2368
+ * @return {!proto.Auth.AccountProto.ForgotPasswordRequest} returns this
2369
+ */
2370
+ proto.Auth.AccountProto.ForgotPasswordRequest.prototype.setEmail = function(value) {
2371
+ return jspb.Message.setProto3StringField(this, 1, value);
2372
+ };
2373
+
2374
+
2375
+
2376
+
2377
+
2378
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2379
+ /**
2380
+ * Creates an object representation of this proto.
2381
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2382
+ * Optional fields that are not set will be set to undefined.
2383
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2384
+ * For the list of reserved names please see:
2385
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2386
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2387
+ * JSPB instance for transitional soy proto support:
2388
+ * http://goto/soy-param-migration
2389
+ * @return {!Object}
2390
+ */
2391
+ proto.Auth.AccountProto.ResetPasswordRequest.prototype.toObject = function(opt_includeInstance) {
2392
+ return proto.Auth.AccountProto.ResetPasswordRequest.toObject(opt_includeInstance, this);
2393
+ };
2394
+
2395
+
2396
+ /**
2397
+ * Static version of the {@see toObject} method.
2398
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2399
+ * the JSPB instance for transitional soy proto support:
2400
+ * http://goto/soy-param-migration
2401
+ * @param {!proto.Auth.AccountProto.ResetPasswordRequest} msg The msg instance to transform.
2402
+ * @return {!Object}
2403
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2404
+ */
2405
+ proto.Auth.AccountProto.ResetPasswordRequest.toObject = function(includeInstance, msg) {
2406
+ var f, obj = {
2407
+ accountconfirmationtoken: jspb.Message.getFieldWithDefault(msg, 1, 0),
2408
+ password: jspb.Message.getFieldWithDefault(msg, 2, ""),
2409
+ confirmpassword: jspb.Message.getFieldWithDefault(msg, 3, ""),
2410
+ email: jspb.Message.getFieldWithDefault(msg, 4, "")
2411
+ };
2412
+
2413
+ if (includeInstance) {
2414
+ obj.$jspbMessageInstance = msg;
2415
+ }
2416
+ return obj;
2417
+ };
2418
+ }
2419
+
2420
+
2421
+ /**
2422
+ * Deserializes binary data (in protobuf wire format).
2423
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2424
+ * @return {!proto.Auth.AccountProto.ResetPasswordRequest}
2425
+ */
2426
+ proto.Auth.AccountProto.ResetPasswordRequest.deserializeBinary = function(bytes) {
2427
+ var reader = new jspb.BinaryReader(bytes);
2428
+ var msg = new proto.Auth.AccountProto.ResetPasswordRequest;
2429
+ return proto.Auth.AccountProto.ResetPasswordRequest.deserializeBinaryFromReader(msg, reader);
2430
+ };
2431
+
2432
+
2433
+ /**
2434
+ * Deserializes binary data (in protobuf wire format) from the
2435
+ * given reader into the given message object.
2436
+ * @param {!proto.Auth.AccountProto.ResetPasswordRequest} msg The message object to deserialize into.
2437
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2438
+ * @return {!proto.Auth.AccountProto.ResetPasswordRequest}
2439
+ */
2440
+ proto.Auth.AccountProto.ResetPasswordRequest.deserializeBinaryFromReader = function(msg, reader) {
2441
+ while (reader.nextField()) {
2442
+ if (reader.isEndGroup()) {
2443
+ break;
2444
+ }
2445
+ var field = reader.getFieldNumber();
2446
+ switch (field) {
2447
+ case 1:
2448
+ var value = /** @type {number} */ (reader.readInt32());
2449
+ msg.setAccountconfirmationtoken(value);
2450
+ break;
2451
+ case 2:
2452
+ var value = /** @type {string} */ (reader.readString());
2453
+ msg.setPassword(value);
2454
+ break;
2455
+ case 3:
2456
+ var value = /** @type {string} */ (reader.readString());
2457
+ msg.setConfirmpassword(value);
2458
+ break;
2459
+ case 4:
2460
+ var value = /** @type {string} */ (reader.readString());
2461
+ msg.setEmail(value);
2462
+ break;
2463
+ default:
2464
+ reader.skipField();
2465
+ break;
2466
+ }
2467
+ }
2468
+ return msg;
2469
+ };
2470
+
2471
+
2472
+ /**
2473
+ * Serializes the message to binary data (in protobuf wire format).
2474
+ * @return {!Uint8Array}
2475
+ */
2476
+ proto.Auth.AccountProto.ResetPasswordRequest.prototype.serializeBinary = function() {
2477
+ var writer = new jspb.BinaryWriter();
2478
+ proto.Auth.AccountProto.ResetPasswordRequest.serializeBinaryToWriter(this, writer);
2479
+ return writer.getResultBuffer();
2480
+ };
2481
+
2482
+
2483
+ /**
2484
+ * Serializes the given message to binary data (in protobuf wire
2485
+ * format), writing to the given BinaryWriter.
2486
+ * @param {!proto.Auth.AccountProto.ResetPasswordRequest} message
2487
+ * @param {!jspb.BinaryWriter} writer
2488
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2489
+ */
2490
+ proto.Auth.AccountProto.ResetPasswordRequest.serializeBinaryToWriter = function(message, writer) {
2491
+ var f = undefined;
2492
+ f = message.getAccountconfirmationtoken();
2493
+ if (f !== 0) {
2494
+ writer.writeInt32(
2495
+ 1,
2496
+ f
2497
+ );
2498
+ }
2499
+ f = message.getPassword();
2500
+ if (f.length > 0) {
2501
+ writer.writeString(
2502
+ 2,
2503
+ f
2504
+ );
2505
+ }
2506
+ f = message.getConfirmpassword();
2507
+ if (f.length > 0) {
2508
+ writer.writeString(
2509
+ 3,
2510
+ f
2511
+ );
2512
+ }
2513
+ f = message.getEmail();
2514
+ if (f.length > 0) {
2515
+ writer.writeString(
2516
+ 4,
2517
+ f
2518
+ );
2519
+ }
2520
+ };
2521
+
2522
+
2523
+ /**
2524
+ * optional int32 accountConfirmationToken = 1;
2525
+ * @return {number}
2526
+ */
2527
+ proto.Auth.AccountProto.ResetPasswordRequest.prototype.getAccountconfirmationtoken = function() {
2528
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2529
+ };
2530
+
2531
+
2532
+ /**
2533
+ * @param {number} value
2534
+ * @return {!proto.Auth.AccountProto.ResetPasswordRequest} returns this
2535
+ */
2536
+ proto.Auth.AccountProto.ResetPasswordRequest.prototype.setAccountconfirmationtoken = function(value) {
2537
+ return jspb.Message.setProto3IntField(this, 1, value);
2538
+ };
2539
+
2540
+
2541
+ /**
2542
+ * optional string password = 2;
2543
+ * @return {string}
2544
+ */
2545
+ proto.Auth.AccountProto.ResetPasswordRequest.prototype.getPassword = function() {
2546
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2547
+ };
2548
+
2549
+
2550
+ /**
2551
+ * @param {string} value
2552
+ * @return {!proto.Auth.AccountProto.ResetPasswordRequest} returns this
2553
+ */
2554
+ proto.Auth.AccountProto.ResetPasswordRequest.prototype.setPassword = function(value) {
2555
+ return jspb.Message.setProto3StringField(this, 2, value);
2556
+ };
2557
+
2558
+
2559
+ /**
2560
+ * optional string confirmPassword = 3;
2561
+ * @return {string}
2562
+ */
2563
+ proto.Auth.AccountProto.ResetPasswordRequest.prototype.getConfirmpassword = function() {
2564
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2565
+ };
2566
+
2567
+
2568
+ /**
2569
+ * @param {string} value
2570
+ * @return {!proto.Auth.AccountProto.ResetPasswordRequest} returns this
2571
+ */
2572
+ proto.Auth.AccountProto.ResetPasswordRequest.prototype.setConfirmpassword = function(value) {
2573
+ return jspb.Message.setProto3StringField(this, 3, value);
2574
+ };
2575
+
2576
+
2577
+ /**
2578
+ * optional string email = 4;
2579
+ * @return {string}
2580
+ */
2581
+ proto.Auth.AccountProto.ResetPasswordRequest.prototype.getEmail = function() {
2582
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2583
+ };
2584
+
2585
+
2586
+ /**
2587
+ * @param {string} value
2588
+ * @return {!proto.Auth.AccountProto.ResetPasswordRequest} returns this
2589
+ */
2590
+ proto.Auth.AccountProto.ResetPasswordRequest.prototype.setEmail = function(value) {
2591
+ return jspb.Message.setProto3StringField(this, 4, value);
2592
+ };
2593
+
2594
+
2595
+
2596
+
2597
+
2598
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2599
+ /**
2600
+ * Creates an object representation of this proto.
2601
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2602
+ * Optional fields that are not set will be set to undefined.
2603
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2604
+ * For the list of reserved names please see:
2605
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2606
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2607
+ * JSPB instance for transitional soy proto support:
2608
+ * http://goto/soy-param-migration
2609
+ * @return {!Object}
2610
+ */
2611
+ proto.Auth.AccountProto.ChangePasswordRequest.prototype.toObject = function(opt_includeInstance) {
2612
+ return proto.Auth.AccountProto.ChangePasswordRequest.toObject(opt_includeInstance, this);
2613
+ };
2614
+
2615
+
2616
+ /**
2617
+ * Static version of the {@see toObject} method.
2618
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2619
+ * the JSPB instance for transitional soy proto support:
2620
+ * http://goto/soy-param-migration
2621
+ * @param {!proto.Auth.AccountProto.ChangePasswordRequest} msg The msg instance to transform.
2622
+ * @return {!Object}
2623
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2624
+ */
2625
+ proto.Auth.AccountProto.ChangePasswordRequest.toObject = function(includeInstance, msg) {
2626
+ var f, obj = {
2627
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
2628
+ password: jspb.Message.getFieldWithDefault(msg, 2, ""),
2629
+ confirmpassword: jspb.Message.getFieldWithDefault(msg, 3, ""),
2630
+ oldpassword: jspb.Message.getFieldWithDefault(msg, 4, "")
2631
+ };
2632
+
2633
+ if (includeInstance) {
2634
+ obj.$jspbMessageInstance = msg;
2635
+ }
2636
+ return obj;
2637
+ };
2638
+ }
2639
+
2640
+
2641
+ /**
2642
+ * Deserializes binary data (in protobuf wire format).
2643
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2644
+ * @return {!proto.Auth.AccountProto.ChangePasswordRequest}
2645
+ */
2646
+ proto.Auth.AccountProto.ChangePasswordRequest.deserializeBinary = function(bytes) {
2647
+ var reader = new jspb.BinaryReader(bytes);
2648
+ var msg = new proto.Auth.AccountProto.ChangePasswordRequest;
2649
+ return proto.Auth.AccountProto.ChangePasswordRequest.deserializeBinaryFromReader(msg, reader);
2650
+ };
2651
+
2652
+
2653
+ /**
2654
+ * Deserializes binary data (in protobuf wire format) from the
2655
+ * given reader into the given message object.
2656
+ * @param {!proto.Auth.AccountProto.ChangePasswordRequest} msg The message object to deserialize into.
2657
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2658
+ * @return {!proto.Auth.AccountProto.ChangePasswordRequest}
2659
+ */
2660
+ proto.Auth.AccountProto.ChangePasswordRequest.deserializeBinaryFromReader = function(msg, reader) {
2661
+ while (reader.nextField()) {
2662
+ if (reader.isEndGroup()) {
2663
+ break;
2664
+ }
2665
+ var field = reader.getFieldNumber();
2666
+ switch (field) {
2667
+ case 1:
2668
+ var value = /** @type {number} */ (reader.readInt64());
2669
+ msg.setId(value);
2670
+ break;
2671
+ case 2:
2672
+ var value = /** @type {string} */ (reader.readString());
2673
+ msg.setPassword(value);
2674
+ break;
2675
+ case 3:
2676
+ var value = /** @type {string} */ (reader.readString());
2677
+ msg.setConfirmpassword(value);
2678
+ break;
2679
+ case 4:
2680
+ var value = /** @type {string} */ (reader.readString());
2681
+ msg.setOldpassword(value);
2682
+ break;
2683
+ default:
2684
+ reader.skipField();
2685
+ break;
2686
+ }
2687
+ }
2688
+ return msg;
2689
+ };
2690
+
2691
+
2692
+ /**
2693
+ * Serializes the message to binary data (in protobuf wire format).
2694
+ * @return {!Uint8Array}
2695
+ */
2696
+ proto.Auth.AccountProto.ChangePasswordRequest.prototype.serializeBinary = function() {
2697
+ var writer = new jspb.BinaryWriter();
2698
+ proto.Auth.AccountProto.ChangePasswordRequest.serializeBinaryToWriter(this, writer);
2699
+ return writer.getResultBuffer();
2700
+ };
2701
+
2702
+
2703
+ /**
2704
+ * Serializes the given message to binary data (in protobuf wire
2705
+ * format), writing to the given BinaryWriter.
2706
+ * @param {!proto.Auth.AccountProto.ChangePasswordRequest} message
2707
+ * @param {!jspb.BinaryWriter} writer
2708
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2709
+ */
2710
+ proto.Auth.AccountProto.ChangePasswordRequest.serializeBinaryToWriter = function(message, writer) {
2711
+ var f = undefined;
2712
+ f = message.getId();
2713
+ if (f !== 0) {
2714
+ writer.writeInt64(
2715
+ 1,
2716
+ f
2717
+ );
2718
+ }
2719
+ f = message.getPassword();
2720
+ if (f.length > 0) {
2721
+ writer.writeString(
2722
+ 2,
2723
+ f
2724
+ );
2725
+ }
2726
+ f = message.getConfirmpassword();
2727
+ if (f.length > 0) {
2728
+ writer.writeString(
2729
+ 3,
2730
+ f
2731
+ );
2732
+ }
2733
+ f = message.getOldpassword();
2734
+ if (f.length > 0) {
2735
+ writer.writeString(
2736
+ 4,
2737
+ f
2738
+ );
2739
+ }
2740
+ };
2741
+
2742
+
2743
+ /**
2744
+ * optional int64 id = 1;
2745
+ * @return {number}
2746
+ */
2747
+ proto.Auth.AccountProto.ChangePasswordRequest.prototype.getId = function() {
2748
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2749
+ };
2750
+
2751
+
2752
+ /**
2753
+ * @param {number} value
2754
+ * @return {!proto.Auth.AccountProto.ChangePasswordRequest} returns this
2755
+ */
2756
+ proto.Auth.AccountProto.ChangePasswordRequest.prototype.setId = function(value) {
2757
+ return jspb.Message.setProto3IntField(this, 1, value);
2758
+ };
2759
+
2760
+
2761
+ /**
2762
+ * optional string password = 2;
2763
+ * @return {string}
2764
+ */
2765
+ proto.Auth.AccountProto.ChangePasswordRequest.prototype.getPassword = function() {
2766
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2767
+ };
2768
+
2769
+
2770
+ /**
2771
+ * @param {string} value
2772
+ * @return {!proto.Auth.AccountProto.ChangePasswordRequest} returns this
2773
+ */
2774
+ proto.Auth.AccountProto.ChangePasswordRequest.prototype.setPassword = function(value) {
2775
+ return jspb.Message.setProto3StringField(this, 2, value);
2776
+ };
2777
+
2778
+
2779
+ /**
2780
+ * optional string confirmPassword = 3;
2781
+ * @return {string}
2782
+ */
2783
+ proto.Auth.AccountProto.ChangePasswordRequest.prototype.getConfirmpassword = function() {
2784
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2785
+ };
2786
+
2787
+
2788
+ /**
2789
+ * @param {string} value
2790
+ * @return {!proto.Auth.AccountProto.ChangePasswordRequest} returns this
2791
+ */
2792
+ proto.Auth.AccountProto.ChangePasswordRequest.prototype.setConfirmpassword = function(value) {
2793
+ return jspb.Message.setProto3StringField(this, 3, value);
2794
+ };
2795
+
2796
+
2797
+ /**
2798
+ * optional string oldPassword = 4;
2799
+ * @return {string}
2800
+ */
2801
+ proto.Auth.AccountProto.ChangePasswordRequest.prototype.getOldpassword = function() {
2802
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2803
+ };
2804
+
2805
+
2806
+ /**
2807
+ * @param {string} value
2808
+ * @return {!proto.Auth.AccountProto.ChangePasswordRequest} returns this
2809
+ */
2810
+ proto.Auth.AccountProto.ChangePasswordRequest.prototype.setOldpassword = function(value) {
2811
+ return jspb.Message.setProto3StringField(this, 4, value);
2812
+ };
2813
+
2814
+
2815
+
2816
+
2817
+
2818
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2819
+ /**
2820
+ * Creates an object representation of this proto.
2821
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2822
+ * Optional fields that are not set will be set to undefined.
2823
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2824
+ * For the list of reserved names please see:
2825
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2826
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2827
+ * JSPB instance for transitional soy proto support:
2828
+ * http://goto/soy-param-migration
2829
+ * @return {!Object}
2830
+ */
2831
+ proto.Auth.AccountProto.ChangePasswordReply.prototype.toObject = function(opt_includeInstance) {
2832
+ return proto.Auth.AccountProto.ChangePasswordReply.toObject(opt_includeInstance, this);
2833
+ };
2834
+
2835
+
2836
+ /**
2837
+ * Static version of the {@see toObject} method.
2838
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2839
+ * the JSPB instance for transitional soy proto support:
2840
+ * http://goto/soy-param-migration
2841
+ * @param {!proto.Auth.AccountProto.ChangePasswordReply} msg The msg instance to transform.
2842
+ * @return {!Object}
2843
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2844
+ */
2845
+ proto.Auth.AccountProto.ChangePasswordReply.toObject = function(includeInstance, msg) {
2846
+ var f, obj = {
2847
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
2848
+ };
2849
+
2850
+ if (includeInstance) {
2851
+ obj.$jspbMessageInstance = msg;
2852
+ }
2853
+ return obj;
2854
+ };
2855
+ }
2856
+
2857
+
2858
+ /**
2859
+ * Deserializes binary data (in protobuf wire format).
2860
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2861
+ * @return {!proto.Auth.AccountProto.ChangePasswordReply}
2862
+ */
2863
+ proto.Auth.AccountProto.ChangePasswordReply.deserializeBinary = function(bytes) {
2864
+ var reader = new jspb.BinaryReader(bytes);
2865
+ var msg = new proto.Auth.AccountProto.ChangePasswordReply;
2866
+ return proto.Auth.AccountProto.ChangePasswordReply.deserializeBinaryFromReader(msg, reader);
2867
+ };
2868
+
2869
+
2870
+ /**
2871
+ * Deserializes binary data (in protobuf wire format) from the
2872
+ * given reader into the given message object.
2873
+ * @param {!proto.Auth.AccountProto.ChangePasswordReply} msg The message object to deserialize into.
2874
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2875
+ * @return {!proto.Auth.AccountProto.ChangePasswordReply}
2876
+ */
2877
+ proto.Auth.AccountProto.ChangePasswordReply.deserializeBinaryFromReader = function(msg, reader) {
2878
+ while (reader.nextField()) {
2879
+ if (reader.isEndGroup()) {
2880
+ break;
2881
+ }
2882
+ var field = reader.getFieldNumber();
2883
+ switch (field) {
2884
+ case 1:
2885
+ var value = /** @type {number} */ (reader.readInt64());
2886
+ msg.setId(value);
2887
+ break;
2888
+ default:
2889
+ reader.skipField();
2890
+ break;
2891
+ }
2892
+ }
2893
+ return msg;
2894
+ };
2895
+
2896
+
2897
+ /**
2898
+ * Serializes the message to binary data (in protobuf wire format).
2899
+ * @return {!Uint8Array}
2900
+ */
2901
+ proto.Auth.AccountProto.ChangePasswordReply.prototype.serializeBinary = function() {
2902
+ var writer = new jspb.BinaryWriter();
2903
+ proto.Auth.AccountProto.ChangePasswordReply.serializeBinaryToWriter(this, writer);
2904
+ return writer.getResultBuffer();
2905
+ };
2906
+
2907
+
2908
+ /**
2909
+ * Serializes the given message to binary data (in protobuf wire
2910
+ * format), writing to the given BinaryWriter.
2911
+ * @param {!proto.Auth.AccountProto.ChangePasswordReply} message
2912
+ * @param {!jspb.BinaryWriter} writer
2913
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2914
+ */
2915
+ proto.Auth.AccountProto.ChangePasswordReply.serializeBinaryToWriter = function(message, writer) {
2916
+ var f = undefined;
2917
+ f = message.getId();
2918
+ if (f !== 0) {
2919
+ writer.writeInt64(
2920
+ 1,
2921
+ f
2922
+ );
2923
+ }
2924
+ };
2925
+
2926
+
2927
+ /**
2928
+ * optional int64 id = 1;
2929
+ * @return {number}
2930
+ */
2931
+ proto.Auth.AccountProto.ChangePasswordReply.prototype.getId = function() {
2932
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2933
+ };
2934
+
2935
+
2936
+ /**
2937
+ * @param {number} value
2938
+ * @return {!proto.Auth.AccountProto.ChangePasswordReply} returns this
2939
+ */
2940
+ proto.Auth.AccountProto.ChangePasswordReply.prototype.setId = function(value) {
2941
+ return jspb.Message.setProto3IntField(this, 1, value);
2942
+ };
2943
+
2944
+
2945
+
2946
+
2947
+
2948
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2949
+ /**
2950
+ * Creates an object representation of this proto.
2951
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2952
+ * Optional fields that are not set will be set to undefined.
2953
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2954
+ * For the list of reserved names please see:
2955
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2956
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2957
+ * JSPB instance for transitional soy proto support:
2958
+ * http://goto/soy-param-migration
2959
+ * @return {!Object}
2960
+ */
2961
+ proto.Auth.AccountProto.DeleteRequest.prototype.toObject = function(opt_includeInstance) {
2962
+ return proto.Auth.AccountProto.DeleteRequest.toObject(opt_includeInstance, this);
2963
+ };
2964
+
2965
+
2966
+ /**
2967
+ * Static version of the {@see toObject} method.
2968
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2969
+ * the JSPB instance for transitional soy proto support:
2970
+ * http://goto/soy-param-migration
2971
+ * @param {!proto.Auth.AccountProto.DeleteRequest} msg The msg instance to transform.
2972
+ * @return {!Object}
2973
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2974
+ */
2975
+ proto.Auth.AccountProto.DeleteRequest.toObject = function(includeInstance, msg) {
2976
+ var f, obj = {
2977
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
2978
+ };
2979
+
2980
+ if (includeInstance) {
2981
+ obj.$jspbMessageInstance = msg;
2982
+ }
2983
+ return obj;
2984
+ };
2985
+ }
2986
+
2987
+
2988
+ /**
2989
+ * Deserializes binary data (in protobuf wire format).
2990
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2991
+ * @return {!proto.Auth.AccountProto.DeleteRequest}
2992
+ */
2993
+ proto.Auth.AccountProto.DeleteRequest.deserializeBinary = function(bytes) {
2994
+ var reader = new jspb.BinaryReader(bytes);
2995
+ var msg = new proto.Auth.AccountProto.DeleteRequest;
2996
+ return proto.Auth.AccountProto.DeleteRequest.deserializeBinaryFromReader(msg, reader);
2997
+ };
2998
+
2999
+
3000
+ /**
3001
+ * Deserializes binary data (in protobuf wire format) from the
3002
+ * given reader into the given message object.
3003
+ * @param {!proto.Auth.AccountProto.DeleteRequest} msg The message object to deserialize into.
3004
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3005
+ * @return {!proto.Auth.AccountProto.DeleteRequest}
3006
+ */
3007
+ proto.Auth.AccountProto.DeleteRequest.deserializeBinaryFromReader = function(msg, reader) {
3008
+ while (reader.nextField()) {
3009
+ if (reader.isEndGroup()) {
3010
+ break;
3011
+ }
3012
+ var field = reader.getFieldNumber();
3013
+ switch (field) {
3014
+ case 1:
3015
+ var value = /** @type {number} */ (reader.readInt64());
3016
+ msg.setId(value);
3017
+ break;
3018
+ default:
3019
+ reader.skipField();
3020
+ break;
3021
+ }
3022
+ }
3023
+ return msg;
3024
+ };
3025
+
3026
+
3027
+ /**
3028
+ * Serializes the message to binary data (in protobuf wire format).
3029
+ * @return {!Uint8Array}
3030
+ */
3031
+ proto.Auth.AccountProto.DeleteRequest.prototype.serializeBinary = function() {
3032
+ var writer = new jspb.BinaryWriter();
3033
+ proto.Auth.AccountProto.DeleteRequest.serializeBinaryToWriter(this, writer);
3034
+ return writer.getResultBuffer();
3035
+ };
3036
+
3037
+
3038
+ /**
3039
+ * Serializes the given message to binary data (in protobuf wire
3040
+ * format), writing to the given BinaryWriter.
3041
+ * @param {!proto.Auth.AccountProto.DeleteRequest} message
3042
+ * @param {!jspb.BinaryWriter} writer
3043
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3044
+ */
3045
+ proto.Auth.AccountProto.DeleteRequest.serializeBinaryToWriter = function(message, writer) {
3046
+ var f = undefined;
3047
+ f = message.getId();
3048
+ if (f !== 0) {
3049
+ writer.writeInt64(
3050
+ 1,
3051
+ f
3052
+ );
3053
+ }
3054
+ };
3055
+
3056
+
3057
+ /**
3058
+ * optional int64 id = 1;
3059
+ * @return {number}
3060
+ */
3061
+ proto.Auth.AccountProto.DeleteRequest.prototype.getId = function() {
3062
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3063
+ };
3064
+
3065
+
3066
+ /**
3067
+ * @param {number} value
3068
+ * @return {!proto.Auth.AccountProto.DeleteRequest} returns this
3069
+ */
3070
+ proto.Auth.AccountProto.DeleteRequest.prototype.setId = function(value) {
3071
+ return jspb.Message.setProto3IntField(this, 1, value);
3072
+ };
3073
+
3074
+
3075
+
3076
+
3077
+
3078
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3079
+ /**
3080
+ * Creates an object representation of this proto.
3081
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3082
+ * Optional fields that are not set will be set to undefined.
3083
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3084
+ * For the list of reserved names please see:
3085
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3086
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3087
+ * JSPB instance for transitional soy proto support:
3088
+ * http://goto/soy-param-migration
3089
+ * @return {!Object}
3090
+ */
3091
+ proto.Auth.AccountProto.DeleteReply.prototype.toObject = function(opt_includeInstance) {
3092
+ return proto.Auth.AccountProto.DeleteReply.toObject(opt_includeInstance, this);
3093
+ };
3094
+
3095
+
3096
+ /**
3097
+ * Static version of the {@see toObject} method.
3098
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3099
+ * the JSPB instance for transitional soy proto support:
3100
+ * http://goto/soy-param-migration
3101
+ * @param {!proto.Auth.AccountProto.DeleteReply} msg The msg instance to transform.
3102
+ * @return {!Object}
3103
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3104
+ */
3105
+ proto.Auth.AccountProto.DeleteReply.toObject = function(includeInstance, msg) {
3106
+ var f, obj = {
3107
+
3108
+ };
3109
+
3110
+ if (includeInstance) {
3111
+ obj.$jspbMessageInstance = msg;
3112
+ }
3113
+ return obj;
3114
+ };
3115
+ }
3116
+
3117
+
3118
+ /**
3119
+ * Deserializes binary data (in protobuf wire format).
3120
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3121
+ * @return {!proto.Auth.AccountProto.DeleteReply}
3122
+ */
3123
+ proto.Auth.AccountProto.DeleteReply.deserializeBinary = function(bytes) {
3124
+ var reader = new jspb.BinaryReader(bytes);
3125
+ var msg = new proto.Auth.AccountProto.DeleteReply;
3126
+ return proto.Auth.AccountProto.DeleteReply.deserializeBinaryFromReader(msg, reader);
3127
+ };
3128
+
3129
+
3130
+ /**
3131
+ * Deserializes binary data (in protobuf wire format) from the
3132
+ * given reader into the given message object.
3133
+ * @param {!proto.Auth.AccountProto.DeleteReply} msg The message object to deserialize into.
3134
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3135
+ * @return {!proto.Auth.AccountProto.DeleteReply}
3136
+ */
3137
+ proto.Auth.AccountProto.DeleteReply.deserializeBinaryFromReader = function(msg, reader) {
3138
+ while (reader.nextField()) {
3139
+ if (reader.isEndGroup()) {
3140
+ break;
3141
+ }
3142
+ var field = reader.getFieldNumber();
3143
+ switch (field) {
3144
+ default:
3145
+ reader.skipField();
3146
+ break;
3147
+ }
3148
+ }
3149
+ return msg;
3150
+ };
3151
+
3152
+
3153
+ /**
3154
+ * Serializes the message to binary data (in protobuf wire format).
3155
+ * @return {!Uint8Array}
3156
+ */
3157
+ proto.Auth.AccountProto.DeleteReply.prototype.serializeBinary = function() {
3158
+ var writer = new jspb.BinaryWriter();
3159
+ proto.Auth.AccountProto.DeleteReply.serializeBinaryToWriter(this, writer);
3160
+ return writer.getResultBuffer();
3161
+ };
3162
+
3163
+
3164
+ /**
3165
+ * Serializes the given message to binary data (in protobuf wire
3166
+ * format), writing to the given BinaryWriter.
3167
+ * @param {!proto.Auth.AccountProto.DeleteReply} message
3168
+ * @param {!jspb.BinaryWriter} writer
3169
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3170
+ */
3171
+ proto.Auth.AccountProto.DeleteReply.serializeBinaryToWriter = function(message, writer) {
3172
+ var f = undefined;
3173
+ };
3174
+
3175
+
3176
+
3177
+
3178
+
3179
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3180
+ /**
3181
+ * Creates an object representation of this proto.
3182
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3183
+ * Optional fields that are not set will be set to undefined.
3184
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3185
+ * For the list of reserved names please see:
3186
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3187
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3188
+ * JSPB instance for transitional soy proto support:
3189
+ * http://goto/soy-param-migration
3190
+ * @return {!Object}
3191
+ */
3192
+ proto.Auth.AccountProto.RetrievePushInfoRequest.prototype.toObject = function(opt_includeInstance) {
3193
+ return proto.Auth.AccountProto.RetrievePushInfoRequest.toObject(opt_includeInstance, this);
3194
+ };
3195
+
3196
+
3197
+ /**
3198
+ * Static version of the {@see toObject} method.
3199
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3200
+ * the JSPB instance for transitional soy proto support:
3201
+ * http://goto/soy-param-migration
3202
+ * @param {!proto.Auth.AccountProto.RetrievePushInfoRequest} msg The msg instance to transform.
3203
+ * @return {!Object}
3204
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3205
+ */
3206
+ proto.Auth.AccountProto.RetrievePushInfoRequest.toObject = function(includeInstance, msg) {
3207
+ var f, obj = {
3208
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
3209
+ };
3210
+
3211
+ if (includeInstance) {
3212
+ obj.$jspbMessageInstance = msg;
3213
+ }
3214
+ return obj;
3215
+ };
3216
+ }
3217
+
3218
+
3219
+ /**
3220
+ * Deserializes binary data (in protobuf wire format).
3221
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3222
+ * @return {!proto.Auth.AccountProto.RetrievePushInfoRequest}
3223
+ */
3224
+ proto.Auth.AccountProto.RetrievePushInfoRequest.deserializeBinary = function(bytes) {
3225
+ var reader = new jspb.BinaryReader(bytes);
3226
+ var msg = new proto.Auth.AccountProto.RetrievePushInfoRequest;
3227
+ return proto.Auth.AccountProto.RetrievePushInfoRequest.deserializeBinaryFromReader(msg, reader);
3228
+ };
3229
+
3230
+
3231
+ /**
3232
+ * Deserializes binary data (in protobuf wire format) from the
3233
+ * given reader into the given message object.
3234
+ * @param {!proto.Auth.AccountProto.RetrievePushInfoRequest} msg The message object to deserialize into.
3235
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3236
+ * @return {!proto.Auth.AccountProto.RetrievePushInfoRequest}
3237
+ */
3238
+ proto.Auth.AccountProto.RetrievePushInfoRequest.deserializeBinaryFromReader = function(msg, reader) {
3239
+ while (reader.nextField()) {
3240
+ if (reader.isEndGroup()) {
3241
+ break;
3242
+ }
3243
+ var field = reader.getFieldNumber();
3244
+ switch (field) {
3245
+ case 1:
3246
+ var value = /** @type {number} */ (reader.readInt64());
3247
+ msg.setId(value);
3248
+ break;
3249
+ default:
3250
+ reader.skipField();
3251
+ break;
3252
+ }
3253
+ }
3254
+ return msg;
3255
+ };
3256
+
3257
+
3258
+ /**
3259
+ * Serializes the message to binary data (in protobuf wire format).
3260
+ * @return {!Uint8Array}
3261
+ */
3262
+ proto.Auth.AccountProto.RetrievePushInfoRequest.prototype.serializeBinary = function() {
3263
+ var writer = new jspb.BinaryWriter();
3264
+ proto.Auth.AccountProto.RetrievePushInfoRequest.serializeBinaryToWriter(this, writer);
3265
+ return writer.getResultBuffer();
3266
+ };
3267
+
3268
+
3269
+ /**
3270
+ * Serializes the given message to binary data (in protobuf wire
3271
+ * format), writing to the given BinaryWriter.
3272
+ * @param {!proto.Auth.AccountProto.RetrievePushInfoRequest} message
3273
+ * @param {!jspb.BinaryWriter} writer
3274
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3275
+ */
3276
+ proto.Auth.AccountProto.RetrievePushInfoRequest.serializeBinaryToWriter = function(message, writer) {
3277
+ var f = undefined;
3278
+ f = message.getId();
3279
+ if (f !== 0) {
3280
+ writer.writeInt64(
3281
+ 1,
3282
+ f
3283
+ );
3284
+ }
3285
+ };
3286
+
3287
+
3288
+ /**
3289
+ * optional int64 id = 1;
3290
+ * @return {number}
3291
+ */
3292
+ proto.Auth.AccountProto.RetrievePushInfoRequest.prototype.getId = function() {
3293
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3294
+ };
3295
+
3296
+
3297
+ /**
3298
+ * @param {number} value
3299
+ * @return {!proto.Auth.AccountProto.RetrievePushInfoRequest} returns this
3300
+ */
3301
+ proto.Auth.AccountProto.RetrievePushInfoRequest.prototype.setId = function(value) {
3302
+ return jspb.Message.setProto3IntField(this, 1, value);
3303
+ };
3304
+
3305
+
3306
+
3307
+
3308
+
3309
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3310
+ /**
3311
+ * Creates an object representation of this proto.
3312
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3313
+ * Optional fields that are not set will be set to undefined.
3314
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3315
+ * For the list of reserved names please see:
3316
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3317
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3318
+ * JSPB instance for transitional soy proto support:
3319
+ * http://goto/soy-param-migration
3320
+ * @return {!Object}
3321
+ */
3322
+ proto.Auth.AccountProto.RetrievePushInfoReply.prototype.toObject = function(opt_includeInstance) {
3323
+ return proto.Auth.AccountProto.RetrievePushInfoReply.toObject(opt_includeInstance, this);
3324
+ };
3325
+
3326
+
3327
+ /**
3328
+ * Static version of the {@see toObject} method.
3329
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3330
+ * the JSPB instance for transitional soy proto support:
3331
+ * http://goto/soy-param-migration
3332
+ * @param {!proto.Auth.AccountProto.RetrievePushInfoReply} msg The msg instance to transform.
3333
+ * @return {!Object}
3334
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3335
+ */
3336
+ proto.Auth.AccountProto.RetrievePushInfoReply.toObject = function(includeInstance, msg) {
3337
+ var f, obj = {
3338
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
3339
+ pushToken: jspb.Message.getFieldWithDefault(msg, 2, ""),
3340
+ pushtype: jspb.Message.getFieldWithDefault(msg, 3, 0)
3341
+ };
3342
+
3343
+ if (includeInstance) {
3344
+ obj.$jspbMessageInstance = msg;
3345
+ }
3346
+ return obj;
3347
+ };
3348
+ }
3349
+
3350
+
3351
+ /**
3352
+ * Deserializes binary data (in protobuf wire format).
3353
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3354
+ * @return {!proto.Auth.AccountProto.RetrievePushInfoReply}
3355
+ */
3356
+ proto.Auth.AccountProto.RetrievePushInfoReply.deserializeBinary = function(bytes) {
3357
+ var reader = new jspb.BinaryReader(bytes);
3358
+ var msg = new proto.Auth.AccountProto.RetrievePushInfoReply;
3359
+ return proto.Auth.AccountProto.RetrievePushInfoReply.deserializeBinaryFromReader(msg, reader);
3360
+ };
3361
+
3362
+
3363
+ /**
3364
+ * Deserializes binary data (in protobuf wire format) from the
3365
+ * given reader into the given message object.
3366
+ * @param {!proto.Auth.AccountProto.RetrievePushInfoReply} msg The message object to deserialize into.
3367
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3368
+ * @return {!proto.Auth.AccountProto.RetrievePushInfoReply}
3369
+ */
3370
+ proto.Auth.AccountProto.RetrievePushInfoReply.deserializeBinaryFromReader = function(msg, reader) {
3371
+ while (reader.nextField()) {
3372
+ if (reader.isEndGroup()) {
3373
+ break;
3374
+ }
3375
+ var field = reader.getFieldNumber();
3376
+ switch (field) {
3377
+ case 1:
3378
+ var value = /** @type {number} */ (reader.readInt64());
3379
+ msg.setId(value);
3380
+ break;
3381
+ case 2:
3382
+ var value = /** @type {string} */ (reader.readString());
3383
+ msg.setPushToken(value);
3384
+ break;
3385
+ case 3:
3386
+ var value = /** @type {!proto.Auth.PushNotificationProto.PushType} */ (reader.readEnum());
3387
+ msg.setPushtype(value);
3388
+ break;
3389
+ default:
3390
+ reader.skipField();
3391
+ break;
3392
+ }
3393
+ }
3394
+ return msg;
3395
+ };
3396
+
3397
+
3398
+ /**
3399
+ * Serializes the message to binary data (in protobuf wire format).
3400
+ * @return {!Uint8Array}
3401
+ */
3402
+ proto.Auth.AccountProto.RetrievePushInfoReply.prototype.serializeBinary = function() {
3403
+ var writer = new jspb.BinaryWriter();
3404
+ proto.Auth.AccountProto.RetrievePushInfoReply.serializeBinaryToWriter(this, writer);
3405
+ return writer.getResultBuffer();
3406
+ };
3407
+
3408
+
3409
+ /**
3410
+ * Serializes the given message to binary data (in protobuf wire
3411
+ * format), writing to the given BinaryWriter.
3412
+ * @param {!proto.Auth.AccountProto.RetrievePushInfoReply} message
3413
+ * @param {!jspb.BinaryWriter} writer
3414
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3415
+ */
3416
+ proto.Auth.AccountProto.RetrievePushInfoReply.serializeBinaryToWriter = function(message, writer) {
3417
+ var f = undefined;
3418
+ f = message.getId();
3419
+ if (f !== 0) {
3420
+ writer.writeInt64(
3421
+ 1,
3422
+ f
3423
+ );
3424
+ }
3425
+ f = message.getPushToken();
3426
+ if (f.length > 0) {
3427
+ writer.writeString(
3428
+ 2,
3429
+ f
3430
+ );
3431
+ }
3432
+ f = message.getPushtype();
3433
+ if (f !== 0.0) {
3434
+ writer.writeEnum(
3435
+ 3,
3436
+ f
3437
+ );
3438
+ }
3439
+ };
3440
+
3441
+
3442
+ /**
3443
+ * optional int64 id = 1;
3444
+ * @return {number}
3445
+ */
3446
+ proto.Auth.AccountProto.RetrievePushInfoReply.prototype.getId = function() {
3447
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3448
+ };
3449
+
3450
+
3451
+ /**
3452
+ * @param {number} value
3453
+ * @return {!proto.Auth.AccountProto.RetrievePushInfoReply} returns this
3454
+ */
3455
+ proto.Auth.AccountProto.RetrievePushInfoReply.prototype.setId = function(value) {
3456
+ return jspb.Message.setProto3IntField(this, 1, value);
3457
+ };
3458
+
3459
+
3460
+ /**
3461
+ * optional string push_token = 2;
3462
+ * @return {string}
3463
+ */
3464
+ proto.Auth.AccountProto.RetrievePushInfoReply.prototype.getPushToken = function() {
3465
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3466
+ };
3467
+
3468
+
3469
+ /**
3470
+ * @param {string} value
3471
+ * @return {!proto.Auth.AccountProto.RetrievePushInfoReply} returns this
3472
+ */
3473
+ proto.Auth.AccountProto.RetrievePushInfoReply.prototype.setPushToken = function(value) {
3474
+ return jspb.Message.setProto3StringField(this, 2, value);
3475
+ };
3476
+
3477
+
3478
+ /**
3479
+ * optional PushNotificationProto.PushType pushType = 3;
3480
+ * @return {!proto.Auth.PushNotificationProto.PushType}
3481
+ */
3482
+ proto.Auth.AccountProto.RetrievePushInfoReply.prototype.getPushtype = function() {
3483
+ return /** @type {!proto.Auth.PushNotificationProto.PushType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
3484
+ };
3485
+
3486
+
3487
+ /**
3488
+ * @param {!proto.Auth.PushNotificationProto.PushType} value
3489
+ * @return {!proto.Auth.AccountProto.RetrievePushInfoReply} returns this
3490
+ */
3491
+ proto.Auth.AccountProto.RetrievePushInfoReply.prototype.setPushtype = function(value) {
3492
+ return jspb.Message.setProto3EnumField(this, 3, value);
3493
+ };
3494
+
3495
+
3496
+
3497
+ /**
3498
+ * List of repeated fields within this message type.
3499
+ * @private {!Array<number>}
3500
+ * @const
3501
+ */
3502
+ proto.Auth.AccountProto.RetrieveAccountActivationStatusesRequest.repeatedFields_ = [1];
3503
+
3504
+
3505
+
3506
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3507
+ /**
3508
+ * Creates an object representation of this proto.
3509
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3510
+ * Optional fields that are not set will be set to undefined.
3511
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3512
+ * For the list of reserved names please see:
3513
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3514
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3515
+ * JSPB instance for transitional soy proto support:
3516
+ * http://goto/soy-param-migration
3517
+ * @return {!Object}
3518
+ */
3519
+ proto.Auth.AccountProto.RetrieveAccountActivationStatusesRequest.prototype.toObject = function(opt_includeInstance) {
3520
+ return proto.Auth.AccountProto.RetrieveAccountActivationStatusesRequest.toObject(opt_includeInstance, this);
3521
+ };
3522
+
3523
+
3524
+ /**
3525
+ * Static version of the {@see toObject} method.
3526
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3527
+ * the JSPB instance for transitional soy proto support:
3528
+ * http://goto/soy-param-migration
3529
+ * @param {!proto.Auth.AccountProto.RetrieveAccountActivationStatusesRequest} msg The msg instance to transform.
3530
+ * @return {!Object}
3531
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3532
+ */
3533
+ proto.Auth.AccountProto.RetrieveAccountActivationStatusesRequest.toObject = function(includeInstance, msg) {
3534
+ var f, obj = {
3535
+ idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
3536
+ };
3537
+
3538
+ if (includeInstance) {
3539
+ obj.$jspbMessageInstance = msg;
3540
+ }
3541
+ return obj;
3542
+ };
3543
+ }
3544
+
3545
+
3546
+ /**
3547
+ * Deserializes binary data (in protobuf wire format).
3548
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3549
+ * @return {!proto.Auth.AccountProto.RetrieveAccountActivationStatusesRequest}
3550
+ */
3551
+ proto.Auth.AccountProto.RetrieveAccountActivationStatusesRequest.deserializeBinary = function(bytes) {
3552
+ var reader = new jspb.BinaryReader(bytes);
3553
+ var msg = new proto.Auth.AccountProto.RetrieveAccountActivationStatusesRequest;
3554
+ return proto.Auth.AccountProto.RetrieveAccountActivationStatusesRequest.deserializeBinaryFromReader(msg, reader);
3555
+ };
3556
+
3557
+
3558
+ /**
3559
+ * Deserializes binary data (in protobuf wire format) from the
3560
+ * given reader into the given message object.
3561
+ * @param {!proto.Auth.AccountProto.RetrieveAccountActivationStatusesRequest} msg The message object to deserialize into.
3562
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3563
+ * @return {!proto.Auth.AccountProto.RetrieveAccountActivationStatusesRequest}
3564
+ */
3565
+ proto.Auth.AccountProto.RetrieveAccountActivationStatusesRequest.deserializeBinaryFromReader = function(msg, reader) {
3566
+ while (reader.nextField()) {
3567
+ if (reader.isEndGroup()) {
3568
+ break;
3569
+ }
3570
+ var field = reader.getFieldNumber();
3571
+ switch (field) {
3572
+ case 1:
3573
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt64() : [reader.readInt64()]);
3574
+ for (var i = 0; i < values.length; i++) {
3575
+ msg.addIds(values[i]);
3576
+ }
3577
+ break;
3578
+ default:
3579
+ reader.skipField();
3580
+ break;
3581
+ }
3582
+ }
3583
+ return msg;
3584
+ };
3585
+
3586
+
3587
+ /**
3588
+ * Serializes the message to binary data (in protobuf wire format).
3589
+ * @return {!Uint8Array}
3590
+ */
3591
+ proto.Auth.AccountProto.RetrieveAccountActivationStatusesRequest.prototype.serializeBinary = function() {
3592
+ var writer = new jspb.BinaryWriter();
3593
+ proto.Auth.AccountProto.RetrieveAccountActivationStatusesRequest.serializeBinaryToWriter(this, writer);
3594
+ return writer.getResultBuffer();
3595
+ };
3596
+
3597
+
3598
+ /**
3599
+ * Serializes the given message to binary data (in protobuf wire
3600
+ * format), writing to the given BinaryWriter.
3601
+ * @param {!proto.Auth.AccountProto.RetrieveAccountActivationStatusesRequest} message
3602
+ * @param {!jspb.BinaryWriter} writer
3603
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3604
+ */
3605
+ proto.Auth.AccountProto.RetrieveAccountActivationStatusesRequest.serializeBinaryToWriter = function(message, writer) {
3606
+ var f = undefined;
3607
+ f = message.getIdsList();
3608
+ if (f.length > 0) {
3609
+ writer.writePackedInt64(
3610
+ 1,
3611
+ f
3612
+ );
3613
+ }
3614
+ };
3615
+
3616
+
3617
+ /**
3618
+ * repeated int64 ids = 1;
3619
+ * @return {!Array<number>}
3620
+ */
3621
+ proto.Auth.AccountProto.RetrieveAccountActivationStatusesRequest.prototype.getIdsList = function() {
3622
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
3623
+ };
3624
+
3625
+
3626
+ /**
3627
+ * @param {!Array<number>} value
3628
+ * @return {!proto.Auth.AccountProto.RetrieveAccountActivationStatusesRequest} returns this
3629
+ */
3630
+ proto.Auth.AccountProto.RetrieveAccountActivationStatusesRequest.prototype.setIdsList = function(value) {
3631
+ return jspb.Message.setField(this, 1, value || []);
3632
+ };
3633
+
3634
+
3635
+ /**
3636
+ * @param {number} value
3637
+ * @param {number=} opt_index
3638
+ * @return {!proto.Auth.AccountProto.RetrieveAccountActivationStatusesRequest} returns this
3639
+ */
3640
+ proto.Auth.AccountProto.RetrieveAccountActivationStatusesRequest.prototype.addIds = function(value, opt_index) {
3641
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
3642
+ };
3643
+
3644
+
3645
+ /**
3646
+ * Clears the list making it empty but non-null.
3647
+ * @return {!proto.Auth.AccountProto.RetrieveAccountActivationStatusesRequest} returns this
3648
+ */
3649
+ proto.Auth.AccountProto.RetrieveAccountActivationStatusesRequest.prototype.clearIdsList = function() {
3650
+ return this.setIdsList([]);
3651
+ };
3652
+
3653
+
3654
+
3655
+
3656
+
3657
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3658
+ /**
3659
+ * Creates an object representation of this proto.
3660
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3661
+ * Optional fields that are not set will be set to undefined.
3662
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3663
+ * For the list of reserved names please see:
3664
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3665
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3666
+ * JSPB instance for transitional soy proto support:
3667
+ * http://goto/soy-param-migration
3668
+ * @return {!Object}
3669
+ */
3670
+ proto.Auth.AccountProto.AccountsActivationStatuses.prototype.toObject = function(opt_includeInstance) {
3671
+ return proto.Auth.AccountProto.AccountsActivationStatuses.toObject(opt_includeInstance, this);
3672
+ };
3673
+
3674
+
3675
+ /**
3676
+ * Static version of the {@see toObject} method.
3677
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3678
+ * the JSPB instance for transitional soy proto support:
3679
+ * http://goto/soy-param-migration
3680
+ * @param {!proto.Auth.AccountProto.AccountsActivationStatuses} msg The msg instance to transform.
3681
+ * @return {!Object}
3682
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3683
+ */
3684
+ proto.Auth.AccountProto.AccountsActivationStatuses.toObject = function(includeInstance, msg) {
3685
+ var f, obj = {
3686
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
3687
+ status: jspb.Message.getFieldWithDefault(msg, 2, 0)
3688
+ };
3689
+
3690
+ if (includeInstance) {
3691
+ obj.$jspbMessageInstance = msg;
3692
+ }
3693
+ return obj;
3694
+ };
3695
+ }
3696
+
3697
+
3698
+ /**
3699
+ * Deserializes binary data (in protobuf wire format).
3700
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3701
+ * @return {!proto.Auth.AccountProto.AccountsActivationStatuses}
3702
+ */
3703
+ proto.Auth.AccountProto.AccountsActivationStatuses.deserializeBinary = function(bytes) {
3704
+ var reader = new jspb.BinaryReader(bytes);
3705
+ var msg = new proto.Auth.AccountProto.AccountsActivationStatuses;
3706
+ return proto.Auth.AccountProto.AccountsActivationStatuses.deserializeBinaryFromReader(msg, reader);
3707
+ };
3708
+
3709
+
3710
+ /**
3711
+ * Deserializes binary data (in protobuf wire format) from the
3712
+ * given reader into the given message object.
3713
+ * @param {!proto.Auth.AccountProto.AccountsActivationStatuses} msg The message object to deserialize into.
3714
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3715
+ * @return {!proto.Auth.AccountProto.AccountsActivationStatuses}
3716
+ */
3717
+ proto.Auth.AccountProto.AccountsActivationStatuses.deserializeBinaryFromReader = function(msg, reader) {
3718
+ while (reader.nextField()) {
3719
+ if (reader.isEndGroup()) {
3720
+ break;
3721
+ }
3722
+ var field = reader.getFieldNumber();
3723
+ switch (field) {
3724
+ case 1:
3725
+ var value = /** @type {number} */ (reader.readInt64());
3726
+ msg.setId(value);
3727
+ break;
3728
+ case 2:
3729
+ var value = /** @type {!proto.Auth.AccountProto.ActivationStatuses} */ (reader.readEnum());
3730
+ msg.setStatus(value);
3731
+ break;
3732
+ default:
3733
+ reader.skipField();
3734
+ break;
3735
+ }
3736
+ }
3737
+ return msg;
3738
+ };
3739
+
3740
+
3741
+ /**
3742
+ * Serializes the message to binary data (in protobuf wire format).
3743
+ * @return {!Uint8Array}
3744
+ */
3745
+ proto.Auth.AccountProto.AccountsActivationStatuses.prototype.serializeBinary = function() {
3746
+ var writer = new jspb.BinaryWriter();
3747
+ proto.Auth.AccountProto.AccountsActivationStatuses.serializeBinaryToWriter(this, writer);
3748
+ return writer.getResultBuffer();
3749
+ };
3750
+
3751
+
3752
+ /**
3753
+ * Serializes the given message to binary data (in protobuf wire
3754
+ * format), writing to the given BinaryWriter.
3755
+ * @param {!proto.Auth.AccountProto.AccountsActivationStatuses} message
3756
+ * @param {!jspb.BinaryWriter} writer
3757
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3758
+ */
3759
+ proto.Auth.AccountProto.AccountsActivationStatuses.serializeBinaryToWriter = function(message, writer) {
3760
+ var f = undefined;
3761
+ f = message.getId();
3762
+ if (f !== 0) {
3763
+ writer.writeInt64(
3764
+ 1,
3765
+ f
3766
+ );
3767
+ }
3768
+ f = message.getStatus();
3769
+ if (f !== 0.0) {
3770
+ writer.writeEnum(
3771
+ 2,
3772
+ f
3773
+ );
3774
+ }
3775
+ };
3776
+
3777
+
3778
+ /**
3779
+ * optional int64 id = 1;
3780
+ * @return {number}
3781
+ */
3782
+ proto.Auth.AccountProto.AccountsActivationStatuses.prototype.getId = function() {
3783
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3784
+ };
3785
+
3786
+
3787
+ /**
3788
+ * @param {number} value
3789
+ * @return {!proto.Auth.AccountProto.AccountsActivationStatuses} returns this
3790
+ */
3791
+ proto.Auth.AccountProto.AccountsActivationStatuses.prototype.setId = function(value) {
3792
+ return jspb.Message.setProto3IntField(this, 1, value);
3793
+ };
3794
+
3795
+
3796
+ /**
3797
+ * optional ActivationStatuses status = 2;
3798
+ * @return {!proto.Auth.AccountProto.ActivationStatuses}
3799
+ */
3800
+ proto.Auth.AccountProto.AccountsActivationStatuses.prototype.getStatus = function() {
3801
+ return /** @type {!proto.Auth.AccountProto.ActivationStatuses} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
3802
+ };
3803
+
3804
+
3805
+ /**
3806
+ * @param {!proto.Auth.AccountProto.ActivationStatuses} value
3807
+ * @return {!proto.Auth.AccountProto.AccountsActivationStatuses} returns this
3808
+ */
3809
+ proto.Auth.AccountProto.AccountsActivationStatuses.prototype.setStatus = function(value) {
3810
+ return jspb.Message.setProto3EnumField(this, 2, value);
3811
+ };
3812
+
3813
+
3814
+
3815
+ /**
3816
+ * List of repeated fields within this message type.
3817
+ * @private {!Array<number>}
3818
+ * @const
3819
+ */
3820
+ proto.Auth.AccountProto.RetrieveAccountActivationStatusesReply.repeatedFields_ = [1];
3821
+
3822
+
3823
+
3824
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3825
+ /**
3826
+ * Creates an object representation of this proto.
3827
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3828
+ * Optional fields that are not set will be set to undefined.
3829
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3830
+ * For the list of reserved names please see:
3831
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3832
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3833
+ * JSPB instance for transitional soy proto support:
3834
+ * http://goto/soy-param-migration
3835
+ * @return {!Object}
3836
+ */
3837
+ proto.Auth.AccountProto.RetrieveAccountActivationStatusesReply.prototype.toObject = function(opt_includeInstance) {
3838
+ return proto.Auth.AccountProto.RetrieveAccountActivationStatusesReply.toObject(opt_includeInstance, this);
3839
+ };
3840
+
3841
+
3842
+ /**
3843
+ * Static version of the {@see toObject} method.
3844
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3845
+ * the JSPB instance for transitional soy proto support:
3846
+ * http://goto/soy-param-migration
3847
+ * @param {!proto.Auth.AccountProto.RetrieveAccountActivationStatusesReply} msg The msg instance to transform.
3848
+ * @return {!Object}
3849
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3850
+ */
3851
+ proto.Auth.AccountProto.RetrieveAccountActivationStatusesReply.toObject = function(includeInstance, msg) {
3852
+ var f, obj = {
3853
+ activationStatusesList: jspb.Message.toObjectList(msg.getActivationStatusesList(),
3854
+ proto.Auth.AccountProto.AccountsActivationStatuses.toObject, includeInstance)
3855
+ };
3856
+
3857
+ if (includeInstance) {
3858
+ obj.$jspbMessageInstance = msg;
3859
+ }
3860
+ return obj;
3861
+ };
3862
+ }
3863
+
3864
+
3865
+ /**
3866
+ * Deserializes binary data (in protobuf wire format).
3867
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3868
+ * @return {!proto.Auth.AccountProto.RetrieveAccountActivationStatusesReply}
3869
+ */
3870
+ proto.Auth.AccountProto.RetrieveAccountActivationStatusesReply.deserializeBinary = function(bytes) {
3871
+ var reader = new jspb.BinaryReader(bytes);
3872
+ var msg = new proto.Auth.AccountProto.RetrieveAccountActivationStatusesReply;
3873
+ return proto.Auth.AccountProto.RetrieveAccountActivationStatusesReply.deserializeBinaryFromReader(msg, reader);
3874
+ };
3875
+
3876
+
3877
+ /**
3878
+ * Deserializes binary data (in protobuf wire format) from the
3879
+ * given reader into the given message object.
3880
+ * @param {!proto.Auth.AccountProto.RetrieveAccountActivationStatusesReply} msg The message object to deserialize into.
3881
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3882
+ * @return {!proto.Auth.AccountProto.RetrieveAccountActivationStatusesReply}
3883
+ */
3884
+ proto.Auth.AccountProto.RetrieveAccountActivationStatusesReply.deserializeBinaryFromReader = function(msg, reader) {
3885
+ while (reader.nextField()) {
3886
+ if (reader.isEndGroup()) {
3887
+ break;
3888
+ }
3889
+ var field = reader.getFieldNumber();
3890
+ switch (field) {
3891
+ case 1:
3892
+ var value = new proto.Auth.AccountProto.AccountsActivationStatuses;
3893
+ reader.readMessage(value,proto.Auth.AccountProto.AccountsActivationStatuses.deserializeBinaryFromReader);
3894
+ msg.addActivationStatuses(value);
3895
+ break;
3896
+ default:
3897
+ reader.skipField();
3898
+ break;
3899
+ }
3900
+ }
3901
+ return msg;
3902
+ };
3903
+
3904
+
3905
+ /**
3906
+ * Serializes the message to binary data (in protobuf wire format).
3907
+ * @return {!Uint8Array}
3908
+ */
3909
+ proto.Auth.AccountProto.RetrieveAccountActivationStatusesReply.prototype.serializeBinary = function() {
3910
+ var writer = new jspb.BinaryWriter();
3911
+ proto.Auth.AccountProto.RetrieveAccountActivationStatusesReply.serializeBinaryToWriter(this, writer);
3912
+ return writer.getResultBuffer();
3913
+ };
3914
+
3915
+
3916
+ /**
3917
+ * Serializes the given message to binary data (in protobuf wire
3918
+ * format), writing to the given BinaryWriter.
3919
+ * @param {!proto.Auth.AccountProto.RetrieveAccountActivationStatusesReply} message
3920
+ * @param {!jspb.BinaryWriter} writer
3921
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3922
+ */
3923
+ proto.Auth.AccountProto.RetrieveAccountActivationStatusesReply.serializeBinaryToWriter = function(message, writer) {
3924
+ var f = undefined;
3925
+ f = message.getActivationStatusesList();
3926
+ if (f.length > 0) {
3927
+ writer.writeRepeatedMessage(
3928
+ 1,
3929
+ f,
3930
+ proto.Auth.AccountProto.AccountsActivationStatuses.serializeBinaryToWriter
3931
+ );
3932
+ }
3933
+ };
3934
+
3935
+
3936
+ /**
3937
+ * repeated AccountsActivationStatuses activation_statuses = 1;
3938
+ * @return {!Array<!proto.Auth.AccountProto.AccountsActivationStatuses>}
3939
+ */
3940
+ proto.Auth.AccountProto.RetrieveAccountActivationStatusesReply.prototype.getActivationStatusesList = function() {
3941
+ return /** @type{!Array<!proto.Auth.AccountProto.AccountsActivationStatuses>} */ (
3942
+ jspb.Message.getRepeatedWrapperField(this, proto.Auth.AccountProto.AccountsActivationStatuses, 1));
3943
+ };
3944
+
3945
+
3946
+ /**
3947
+ * @param {!Array<!proto.Auth.AccountProto.AccountsActivationStatuses>} value
3948
+ * @return {!proto.Auth.AccountProto.RetrieveAccountActivationStatusesReply} returns this
3949
+ */
3950
+ proto.Auth.AccountProto.RetrieveAccountActivationStatusesReply.prototype.setActivationStatusesList = function(value) {
3951
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
3952
+ };
3953
+
3954
+
3955
+ /**
3956
+ * @param {!proto.Auth.AccountProto.AccountsActivationStatuses=} opt_value
3957
+ * @param {number=} opt_index
3958
+ * @return {!proto.Auth.AccountProto.AccountsActivationStatuses}
3959
+ */
3960
+ proto.Auth.AccountProto.RetrieveAccountActivationStatusesReply.prototype.addActivationStatuses = function(opt_value, opt_index) {
3961
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Auth.AccountProto.AccountsActivationStatuses, opt_index);
3962
+ };
3963
+
3964
+
3965
+ /**
3966
+ * Clears the list making it empty but non-null.
3967
+ * @return {!proto.Auth.AccountProto.RetrieveAccountActivationStatusesReply} returns this
3968
+ */
3969
+ proto.Auth.AccountProto.RetrieveAccountActivationStatusesReply.prototype.clearActivationStatusesList = function() {
3970
+ return this.setActivationStatusesList([]);
3971
+ };
3972
+
3973
+
3974
+
3975
+
3976
+
3977
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3978
+ /**
3979
+ * Creates an object representation of this proto.
3980
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3981
+ * Optional fields that are not set will be set to undefined.
3982
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3983
+ * For the list of reserved names please see:
3984
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3985
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3986
+ * JSPB instance for transitional soy proto support:
3987
+ * http://goto/soy-param-migration
3988
+ * @return {!Object}
3989
+ */
3990
+ proto.Auth.AccountProto.ResendInvitationRequest.prototype.toObject = function(opt_includeInstance) {
3991
+ return proto.Auth.AccountProto.ResendInvitationRequest.toObject(opt_includeInstance, this);
3992
+ };
3993
+
3994
+
3995
+ /**
3996
+ * Static version of the {@see toObject} method.
3997
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3998
+ * the JSPB instance for transitional soy proto support:
3999
+ * http://goto/soy-param-migration
4000
+ * @param {!proto.Auth.AccountProto.ResendInvitationRequest} msg The msg instance to transform.
4001
+ * @return {!Object}
4002
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4003
+ */
4004
+ proto.Auth.AccountProto.ResendInvitationRequest.toObject = function(includeInstance, msg) {
4005
+ var f, obj = {
4006
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
4007
+ };
4008
+
4009
+ if (includeInstance) {
4010
+ obj.$jspbMessageInstance = msg;
4011
+ }
4012
+ return obj;
4013
+ };
4014
+ }
4015
+
4016
+
4017
+ /**
4018
+ * Deserializes binary data (in protobuf wire format).
4019
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4020
+ * @return {!proto.Auth.AccountProto.ResendInvitationRequest}
4021
+ */
4022
+ proto.Auth.AccountProto.ResendInvitationRequest.deserializeBinary = function(bytes) {
4023
+ var reader = new jspb.BinaryReader(bytes);
4024
+ var msg = new proto.Auth.AccountProto.ResendInvitationRequest;
4025
+ return proto.Auth.AccountProto.ResendInvitationRequest.deserializeBinaryFromReader(msg, reader);
4026
+ };
4027
+
4028
+
4029
+ /**
4030
+ * Deserializes binary data (in protobuf wire format) from the
4031
+ * given reader into the given message object.
4032
+ * @param {!proto.Auth.AccountProto.ResendInvitationRequest} msg The message object to deserialize into.
4033
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4034
+ * @return {!proto.Auth.AccountProto.ResendInvitationRequest}
4035
+ */
4036
+ proto.Auth.AccountProto.ResendInvitationRequest.deserializeBinaryFromReader = function(msg, reader) {
4037
+ while (reader.nextField()) {
4038
+ if (reader.isEndGroup()) {
4039
+ break;
4040
+ }
4041
+ var field = reader.getFieldNumber();
4042
+ switch (field) {
4043
+ case 1:
4044
+ var value = /** @type {number} */ (reader.readInt64());
4045
+ msg.setId(value);
4046
+ break;
4047
+ default:
4048
+ reader.skipField();
4049
+ break;
4050
+ }
4051
+ }
4052
+ return msg;
4053
+ };
4054
+
4055
+
4056
+ /**
4057
+ * Serializes the message to binary data (in protobuf wire format).
4058
+ * @return {!Uint8Array}
4059
+ */
4060
+ proto.Auth.AccountProto.ResendInvitationRequest.prototype.serializeBinary = function() {
4061
+ var writer = new jspb.BinaryWriter();
4062
+ proto.Auth.AccountProto.ResendInvitationRequest.serializeBinaryToWriter(this, writer);
4063
+ return writer.getResultBuffer();
4064
+ };
4065
+
4066
+
4067
+ /**
4068
+ * Serializes the given message to binary data (in protobuf wire
4069
+ * format), writing to the given BinaryWriter.
4070
+ * @param {!proto.Auth.AccountProto.ResendInvitationRequest} message
4071
+ * @param {!jspb.BinaryWriter} writer
4072
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4073
+ */
4074
+ proto.Auth.AccountProto.ResendInvitationRequest.serializeBinaryToWriter = function(message, writer) {
4075
+ var f = undefined;
4076
+ f = message.getId();
4077
+ if (f !== 0) {
4078
+ writer.writeInt64(
4079
+ 1,
4080
+ f
4081
+ );
4082
+ }
4083
+ };
4084
+
4085
+
4086
+ /**
4087
+ * optional int64 id = 1;
4088
+ * @return {number}
4089
+ */
4090
+ proto.Auth.AccountProto.ResendInvitationRequest.prototype.getId = function() {
4091
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
4092
+ };
4093
+
4094
+
4095
+ /**
4096
+ * @param {number} value
4097
+ * @return {!proto.Auth.AccountProto.ResendInvitationRequest} returns this
4098
+ */
4099
+ proto.Auth.AccountProto.ResendInvitationRequest.prototype.setId = function(value) {
4100
+ return jspb.Message.setProto3IntField(this, 1, value);
4101
+ };
4102
+
4103
+
4104
+ /**
4105
+ * optional int64 id = 1;
4106
+ * @return {number}
4107
+ */
4108
+ proto.Auth.AccountProto.prototype.getId = function() {
4109
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
4110
+ };
4111
+
4112
+
4113
+ /**
4114
+ * @param {number} value
4115
+ * @return {!proto.Auth.AccountProto} returns this
4116
+ */
4117
+ proto.Auth.AccountProto.prototype.setId = function(value) {
4118
+ return jspb.Message.setProto3IntField(this, 1, value);
4119
+ };
4120
+
4121
+
4122
+ /**
4123
+ * optional string email = 2;
4124
+ * @return {string}
4125
+ */
4126
+ proto.Auth.AccountProto.prototype.getEmail = function() {
4127
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4128
+ };
4129
+
4130
+
4131
+ /**
4132
+ * @param {string} value
4133
+ * @return {!proto.Auth.AccountProto} returns this
4134
+ */
4135
+ proto.Auth.AccountProto.prototype.setEmail = function(value) {
4136
+ return jspb.Message.setProto3StringField(this, 2, value);
4137
+ };
4138
+
4139
+
4140
+ /**
4141
+ * optional string phone = 3;
4142
+ * @return {string}
4143
+ */
4144
+ proto.Auth.AccountProto.prototype.getPhone = function() {
4145
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
4146
+ };
4147
+
4148
+
4149
+ /**
4150
+ * @param {string} value
4151
+ * @return {!proto.Auth.AccountProto} returns this
4152
+ */
4153
+ proto.Auth.AccountProto.prototype.setPhone = function(value) {
4154
+ return jspb.Message.setProto3StringField(this, 3, value);
4155
+ };
4156
+
4157
+
4158
+ /**
4159
+ * optional string first_name = 4;
4160
+ * @return {string}
4161
+ */
4162
+ proto.Auth.AccountProto.prototype.getFirstName = function() {
4163
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
4164
+ };
4165
+
4166
+
4167
+ /**
4168
+ * @param {string} value
4169
+ * @return {!proto.Auth.AccountProto} returns this
4170
+ */
4171
+ proto.Auth.AccountProto.prototype.setFirstName = function(value) {
4172
+ return jspb.Message.setProto3StringField(this, 4, value);
4173
+ };
4174
+
4175
+
4176
+ /**
4177
+ * optional string last_name = 5;
4178
+ * @return {string}
4179
+ */
4180
+ proto.Auth.AccountProto.prototype.getLastName = function() {
4181
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
4182
+ };
4183
+
4184
+
4185
+ /**
4186
+ * @param {string} value
4187
+ * @return {!proto.Auth.AccountProto} returns this
4188
+ */
4189
+ proto.Auth.AccountProto.prototype.setLastName = function(value) {
4190
+ return jspb.Message.setProto3StringField(this, 5, value);
4191
+ };
4192
+
4193
+
4194
+ /**
4195
+ * optional string locale = 6;
4196
+ * @return {string}
4197
+ */
4198
+ proto.Auth.AccountProto.prototype.getLocale = function() {
4199
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
4200
+ };
4201
+
4202
+
4203
+ /**
4204
+ * @param {string} value
4205
+ * @return {!proto.Auth.AccountProto} returns this
4206
+ */
4207
+ proto.Auth.AccountProto.prototype.setLocale = function(value) {
4208
+ return jspb.Message.setProto3StringField(this, 6, value);
4209
+ };
4210
+
4211
+
4212
+ /**
4213
+ * optional string company = 7;
4214
+ * @return {string}
4215
+ */
4216
+ proto.Auth.AccountProto.prototype.getCompany = function() {
4217
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
4218
+ };
4219
+
4220
+
4221
+ /**
4222
+ * @param {string} value
4223
+ * @return {!proto.Auth.AccountProto} returns this
4224
+ */
4225
+ proto.Auth.AccountProto.prototype.setCompany = function(value) {
4226
+ return jspb.Message.setProto3StringField(this, 7, value);
4227
+ };
4228
+
4229
+
4230
+ /**
4231
+ * optional string active = 8;
4232
+ * @return {string}
4233
+ */
4234
+ proto.Auth.AccountProto.prototype.getActive = function() {
4235
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
4236
+ };
4237
+
4238
+
4239
+ /**
4240
+ * @param {string} value
4241
+ * @return {!proto.Auth.AccountProto} returns this
4242
+ */
4243
+ proto.Auth.AccountProto.prototype.setActive = function(value) {
4244
+ return jspb.Message.setProto3StringField(this, 8, value);
4245
+ };
4246
+
4247
+
4248
+ /**
4249
+ * optional AccountTypes type = 9;
4250
+ * @return {!proto.Auth.AccountProto.AccountTypes}
4251
+ */
4252
+ proto.Auth.AccountProto.prototype.getType = function() {
4253
+ return /** @type {!proto.Auth.AccountProto.AccountTypes} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
4254
+ };
4255
+
4256
+
4257
+ /**
4258
+ * @param {!proto.Auth.AccountProto.AccountTypes} value
4259
+ * @return {!proto.Auth.AccountProto} returns this
4260
+ */
4261
+ proto.Auth.AccountProto.prototype.setType = function(value) {
4262
+ return jspb.Message.setProto3EnumField(this, 9, value);
4263
+ };
4264
+
4265
+
4266
+ goog.object.extend(exports, proto.Auth);