@aceplus/smartace-api 2.5.0 → 2.6.0

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