@aceplus/smartace-api 2.5.0 → 2.5.1

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