@aceplus/smartace-api 3.7.0-alpha.1 → 3.7.0-alpha.10

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 (249) hide show
  1. package/auth.account_pb.d.ts +433 -0
  2. package/auth.account_pb.js +3141 -0
  3. package/auth.account_pb_service.d.ts +216 -0
  4. package/auth.account_pb_service.js +382 -0
  5. package/auth.account_two_factor_pb.d.ts +135 -0
  6. package/auth.account_two_factor_pb.js +1002 -0
  7. package/auth.account_two_factor_pb_service.d.ts +102 -0
  8. package/auth.account_two_factor_pb_service.js +142 -0
  9. package/auth.app_account_pb.d.ts +186 -0
  10. package/auth.app_account_pb.js +1343 -0
  11. package/auth.app_account_pb_service.d.ts +179 -0
  12. package/auth.app_account_pb_service.js +303 -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 +242 -0
  18. package/auth.app_distribution_pb.js +1854 -0
  19. package/auth.app_distribution_pb_service.d.ts +158 -0
  20. package/auth.app_distribution_pb_service.js +261 -0
  21. package/auth.authn_pb.d.ts +95 -0
  22. package/auth.authn_pb.js +637 -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 +142 -0
  26. package/auth.cluster_pb.js +1050 -0
  27. package/auth.cluster_pb_service.d.ts +82 -0
  28. package/auth.cluster_pb_service.js +101 -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 +217 -0
  34. package/auth.email_pb.js +1508 -0
  35. package/auth.email_pb_service.d.ts +102 -0
  36. package/auth.email_pb_service.js +142 -0
  37. package/auth.firmware_pb.d.ts +256 -0
  38. package/auth.firmware_pb.js +1997 -0
  39. package/auth.firmware_pb_service.d.ts +120 -0
  40. package/auth.firmware_pb_service.js +181 -0
  41. package/auth.passkey_pb.d.ts +239 -0
  42. package/auth.passkey_pb.js +1842 -0
  43. package/auth.passkey_pb_service.d.ts +160 -0
  44. package/auth.passkey_pb_service.js +263 -0
  45. package/auth.push_notification_pb.d.ts +69 -0
  46. package/auth.push_notification_pb.js +411 -0
  47. package/auth.push_notification_pb_service.d.ts +64 -0
  48. package/auth.push_notification_pb_service.js +62 -0
  49. package/auth.sms_pb.d.ts +79 -0
  50. package/auth.sms_pb.js +575 -0
  51. package/auth.sms_pb_service.d.ts +83 -0
  52. package/auth.sms_pb_service.js +102 -0
  53. package/google/api/annotations_pb.d.ts +9 -0
  54. package/google/api/annotations_pb.js +54 -0
  55. package/google/api/annotations_pb_service.d.ts +3 -0
  56. package/google/api/annotations_pb_service.js +3 -0
  57. package/google/api/auth_pb.d.ts +150 -0
  58. package/google/api/auth_pb.js +1160 -0
  59. package/google/api/auth_pb_service.d.ts +3 -0
  60. package/google/api/auth_pb_service.js +3 -0
  61. package/google/api/backend_pb.d.ts +59 -0
  62. package/google/api/backend_pb.js +448 -0
  63. package/google/api/backend_pb_service.d.ts +3 -0
  64. package/google/api/backend_pb_service.js +3 -0
  65. package/google/api/billing_pb.d.ts +54 -0
  66. package/google/api/billing_pb.js +416 -0
  67. package/google/api/billing_pb_service.d.ts +3 -0
  68. package/google/api/billing_pb_service.js +3 -0
  69. package/google/api/client_pb.d.ts +12 -0
  70. package/google/api/client_pb.js +104 -0
  71. package/google/api/client_pb_service.d.ts +3 -0
  72. package/google/api/client_pb_service.js +3 -0
  73. package/google/api/config_change_pb.d.ts +72 -0
  74. package/google/api/config_change_pb.js +489 -0
  75. package/google/api/config_change_pb_service.d.ts +3 -0
  76. package/google/api/config_change_pb_service.js +3 -0
  77. package/google/api/consumer_pb.d.ts +65 -0
  78. package/google/api/consumer_pb.js +430 -0
  79. package/google/api/consumer_pb_service.d.ts +3 -0
  80. package/google/api/consumer_pb_service.js +3 -0
  81. package/google/api/context_pb.d.ts +59 -0
  82. package/google/api/context_pb.js +463 -0
  83. package/google/api/context_pb_service.d.ts +3 -0
  84. package/google/api/context_pb_service.js +3 -0
  85. package/google/api/control_pb.d.ts +25 -0
  86. package/google/api/control_pb.js +176 -0
  87. package/google/api/control_pb_service.d.ts +3 -0
  88. package/google/api/control_pb_service.js +3 -0
  89. package/google/api/distribution_pb.d.ts +235 -0
  90. package/google/api/distribution_pb.js +1805 -0
  91. package/google/api/distribution_pb_service.d.ts +3 -0
  92. package/google/api/distribution_pb_service.js +3 -0
  93. package/google/api/documentation_pb.d.ts +103 -0
  94. package/google/api/documentation_pb.js +803 -0
  95. package/google/api/documentation_pb_service.d.ts +3 -0
  96. package/google/api/documentation_pb_service.js +3 -0
  97. package/google/api/endpoint_pb.d.ts +46 -0
  98. package/google/api/endpoint_pb.js +343 -0
  99. package/google/api/endpoint_pb_service.d.ts +3 -0
  100. package/google/api/endpoint_pb_service.js +3 -0
  101. package/google/api/error_reason_pb.d.ts +40 -0
  102. package/google/api/error_reason_pb.js +61 -0
  103. package/google/api/error_reason_pb_service.d.ts +3 -0
  104. package/google/api/error_reason_pb_service.js +3 -0
  105. package/google/api/field_behavior_pb.d.ts +20 -0
  106. package/google/api/field_behavior_pb.js +66 -0
  107. package/google/api/field_behavior_pb_service.d.ts +3 -0
  108. package/google/api/field_behavior_pb_service.js +3 -0
  109. package/google/api/http_pb.d.ts +136 -0
  110. package/google/api/http_pb.js +1012 -0
  111. package/google/api/http_pb_service.d.ts +3 -0
  112. package/google/api/http_pb_service.js +3 -0
  113. package/google/api/httpbody_pb.d.ts +38 -0
  114. package/google/api/httpbody_pb.js +292 -0
  115. package/google/api/httpbody_pb_service.d.ts +3 -0
  116. package/google/api/httpbody_pb_service.js +3 -0
  117. package/google/api/label_pb.d.ts +41 -0
  118. package/google/api/label_pb.js +246 -0
  119. package/google/api/label_pb_service.d.ts +3 -0
  120. package/google/api/label_pb_service.js +3 -0
  121. package/google/api/launch_stage_pb.d.ts +16 -0
  122. package/google/api/launch_stage_pb.js +37 -0
  123. package/google/api/launch_stage_pb_service.d.ts +3 -0
  124. package/google/api/launch_stage_pb_service.js +3 -0
  125. package/google/api/log_pb.d.ts +40 -0
  126. package/google/api/log_pb.js +298 -0
  127. package/google/api/log_pb_service.d.ts +3 -0
  128. package/google/api/log_pb_service.js +3 -0
  129. package/google/api/logging_pb.d.ts +60 -0
  130. package/google/api/logging_pb.js +469 -0
  131. package/google/api/logging_pb_service.d.ts +3 -0
  132. package/google/api/logging_pb_service.js +3 -0
  133. package/google/api/metric_pb.d.ts +100 -0
  134. package/google/api/metric_pb.js +629 -0
  135. package/google/api/metric_pb_service.d.ts +3 -0
  136. package/google/api/metric_pb_service.js +3 -0
  137. package/google/api/monitored_resource_pb.d.ts +93 -0
  138. package/google/api/monitored_resource_pb.js +723 -0
  139. package/google/api/monitored_resource_pb_service.d.ts +3 -0
  140. package/google/api/monitored_resource_pb_service.js +3 -0
  141. package/google/api/monitoring_pb.d.ts +60 -0
  142. package/google/api/monitoring_pb.js +469 -0
  143. package/google/api/monitoring_pb_service.d.ts +3 -0
  144. package/google/api/monitoring_pb_service.js +3 -0
  145. package/google/api/policy_pb.d.ts +64 -0
  146. package/google/api/policy_pb.js +502 -0
  147. package/google/api/policy_pb_service.d.ts +3 -0
  148. package/google/api/policy_pb_service.js +3 -0
  149. package/google/api/quota_pb.d.ts +112 -0
  150. package/google/api/quota_pb.js +873 -0
  151. package/google/api/quota_pb_service.d.ts +3 -0
  152. package/google/api/quota_pb_service.js +3 -0
  153. package/google/api/resource_pb.d.ts +99 -0
  154. package/google/api/resource_pb.js +684 -0
  155. package/google/api/resource_pb_service.d.ts +3 -0
  156. package/google/api/resource_pb_service.js +3 -0
  157. package/google/api/routing_pb.d.ts +54 -0
  158. package/google/api/routing_pb.js +416 -0
  159. package/google/api/routing_pb_service.d.ts +3 -0
  160. package/google/api/routing_pb_service.js +3 -0
  161. package/google/api/service_pb.d.ts +184 -0
  162. package/google/api/service_pb.js +1400 -0
  163. package/google/api/service_pb_service.d.ts +3 -0
  164. package/google/api/service_pb_service.js +3 -0
  165. package/google/api/source_info_pb.d.ts +28 -0
  166. package/google/api/source_info_pb.js +208 -0
  167. package/google/api/source_info_pb_service.d.ts +3 -0
  168. package/google/api/source_info_pb_service.js +3 -0
  169. package/google/api/system_parameter_pb.d.ts +81 -0
  170. package/google/api/system_parameter_pb.js +630 -0
  171. package/google/api/system_parameter_pb_service.d.ts +3 -0
  172. package/google/api/system_parameter_pb_service.js +3 -0
  173. package/google/api/usage_pb.d.ts +66 -0
  174. package/google/api/usage_pb.js +499 -0
  175. package/google/api/usage_pb_service.d.ts +3 -0
  176. package/google/api/usage_pb_service.js +3 -0
  177. package/google/api/visibility_pb.d.ts +64 -0
  178. package/google/api/visibility_pb.js +546 -0
  179. package/google/api/visibility_pb_service.d.ts +3 -0
  180. package/google/api/visibility_pb_service.js +3 -0
  181. package/meta.client_pb.d.ts +167 -0
  182. package/meta.client_pb.js +1266 -0
  183. package/meta.client_pb_service.d.ts +122 -0
  184. package/meta.client_pb_service.js +183 -0
  185. package/meta.spic_config_pb.d.ts +184 -0
  186. package/meta.spic_config_pb.js +1382 -0
  187. package/meta.spic_config_pb_service.d.ts +122 -0
  188. package/meta.spic_config_pb_service.js +183 -0
  189. package/package.json +1 -1
  190. package/platform.activity_log_pb.d.ts +177 -0
  191. package/platform.activity_log_pb.js +1294 -0
  192. package/platform.activity_log_pb_service.d.ts +82 -0
  193. package/platform.activity_log_pb_service.js +101 -0
  194. package/platform.client_pb.d.ts +350 -0
  195. package/platform.client_pb.js +2663 -0
  196. package/platform.client_pb_service.d.ts +158 -0
  197. package/platform.client_pb_service.js +261 -0
  198. package/platform.group_pb.d.ts +195 -0
  199. package/platform.group_pb.js +1476 -0
  200. package/platform.group_pb_service.d.ts +139 -0
  201. package/platform.group_pb_service.js +221 -0
  202. package/platform.local_account_internal_pb.d.ts +125 -0
  203. package/platform.local_account_internal_pb.js +933 -0
  204. package/platform.local_account_internal_pb_service.d.ts +121 -0
  205. package/platform.local_account_internal_pb_service.js +182 -0
  206. package/platform.local_account_pb.d.ts +466 -0
  207. package/platform.local_account_pb.js +3489 -0
  208. package/platform.local_account_pb_service.d.ts +331 -0
  209. package/platform.local_account_pb_service.js +623 -0
  210. package/platform.local_distribution_pb.d.ts +73 -0
  211. package/platform.local_distribution_pb.js +536 -0
  212. package/platform.local_distribution_pb_service.d.ts +63 -0
  213. package/platform.local_distribution_pb_service.js +61 -0
  214. package/platform.location_pb.d.ts +271 -0
  215. package/platform.location_pb.js +2046 -0
  216. package/platform.location_pb_service.d.ts +139 -0
  217. package/platform.location_pb_service.js +221 -0
  218. package/platform.pagination_pb.d.ts +45 -0
  219. package/platform.pagination_pb.js +276 -0
  220. package/platform.pagination_pb_service.d.ts +3 -0
  221. package/platform.pagination_pb_service.js +3 -0
  222. package/spic.alarm_pb.d.ts +382 -0
  223. package/spic.alarm_pb.js +2915 -0
  224. package/spic.alarm_pb_service.d.ts +101 -0
  225. package/spic.alarm_pb_service.js +141 -0
  226. package/spic.asset_pb.d.ts +697 -0
  227. package/spic.asset_pb.js +4995 -0
  228. package/spic.asset_pb_service.d.ts +197 -0
  229. package/spic.asset_pb_service.js +342 -0
  230. package/spic.cabinet_pb.d.ts +1062 -0
  231. package/spic.cabinet_pb.js +7723 -0
  232. package/spic.cabinet_pb_service.d.ts +245 -0
  233. package/spic.cabinet_pb_service.js +437 -0
  234. package/spic.config_pb.d.ts +249 -0
  235. package/spic.config_pb.js +1891 -0
  236. package/spic.config_pb_service.d.ts +120 -0
  237. package/spic.config_pb_service.js +181 -0
  238. package/spic.contractor_pb.d.ts +195 -0
  239. package/spic.contractor_pb.js +1476 -0
  240. package/spic.contractor_pb_service.d.ts +139 -0
  241. package/spic.contractor_pb_service.js +221 -0
  242. package/spic.history_pb.d.ts +142 -0
  243. package/spic.history_pb.js +1130 -0
  244. package/spic.history_pb_service.d.ts +63 -0
  245. package/spic.history_pb_service.js +61 -0
  246. package/spic.open_request_pb.d.ts +237 -0
  247. package/spic.open_request_pb.js +1784 -0
  248. package/spic.open_request_pb_service.d.ts +101 -0
  249. package/spic.open_request_pb_service.js +141 -0
@@ -0,0 +1,1002 @@
1
+ // source: auth.account_two_factor.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 google_api_annotations_pb = require('./google/api/annotations_pb.js');
25
+ goog.object.extend(proto, google_api_annotations_pb);
26
+ var auth_authn_pb = require('./auth.authn_pb.js');
27
+ goog.object.extend(proto, auth_authn_pb);
28
+ goog.exportSymbol('proto.Auth.TwoFactorProto', null, global);
29
+ goog.exportSymbol('proto.Auth.TwoFactorProto.ConfirmReply', null, global);
30
+ goog.exportSymbol('proto.Auth.TwoFactorProto.RemoveRequest', null, global);
31
+ goog.exportSymbol('proto.Auth.TwoFactorProto.SetupReply', null, global);
32
+ goog.exportSymbol('proto.Auth.TwoFactorProto.SetupRequest', null, global);
33
+ goog.exportSymbol('proto.Auth.TwoFactorProto.ValidateRequest', null, global);
34
+ /**
35
+ * Generated by JsPbCodeGenerator.
36
+ * @param {Array=} opt_data Optional initial data array, typically from a
37
+ * server response, or constructed directly in Javascript. The array is used
38
+ * in place and becomes part of the constructed object. It is not cloned.
39
+ * If no data is provided, the constructed object will be empty, but still
40
+ * valid.
41
+ * @extends {jspb.Message}
42
+ * @constructor
43
+ */
44
+ proto.Auth.TwoFactorProto = function(opt_data) {
45
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
46
+ };
47
+ goog.inherits(proto.Auth.TwoFactorProto, jspb.Message);
48
+ if (goog.DEBUG && !COMPILED) {
49
+ /**
50
+ * @public
51
+ * @override
52
+ */
53
+ proto.Auth.TwoFactorProto.displayName = 'proto.Auth.TwoFactorProto';
54
+ }
55
+ /**
56
+ * Generated by JsPbCodeGenerator.
57
+ * @param {Array=} opt_data Optional initial data array, typically from a
58
+ * server response, or constructed directly in Javascript. The array is used
59
+ * in place and becomes part of the constructed object. It is not cloned.
60
+ * If no data is provided, the constructed object will be empty, but still
61
+ * valid.
62
+ * @extends {jspb.Message}
63
+ * @constructor
64
+ */
65
+ proto.Auth.TwoFactorProto.SetupRequest = function(opt_data) {
66
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
67
+ };
68
+ goog.inherits(proto.Auth.TwoFactorProto.SetupRequest, jspb.Message);
69
+ if (goog.DEBUG && !COMPILED) {
70
+ /**
71
+ * @public
72
+ * @override
73
+ */
74
+ proto.Auth.TwoFactorProto.SetupRequest.displayName = 'proto.Auth.TwoFactorProto.SetupRequest';
75
+ }
76
+ /**
77
+ * Generated by JsPbCodeGenerator.
78
+ * @param {Array=} opt_data Optional initial data array, typically from a
79
+ * server response, or constructed directly in Javascript. The array is used
80
+ * in place and becomes part of the constructed object. It is not cloned.
81
+ * If no data is provided, the constructed object will be empty, but still
82
+ * valid.
83
+ * @extends {jspb.Message}
84
+ * @constructor
85
+ */
86
+ proto.Auth.TwoFactorProto.SetupReply = function(opt_data) {
87
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
88
+ };
89
+ goog.inherits(proto.Auth.TwoFactorProto.SetupReply, jspb.Message);
90
+ if (goog.DEBUG && !COMPILED) {
91
+ /**
92
+ * @public
93
+ * @override
94
+ */
95
+ proto.Auth.TwoFactorProto.SetupReply.displayName = 'proto.Auth.TwoFactorProto.SetupReply';
96
+ }
97
+ /**
98
+ * Generated by JsPbCodeGenerator.
99
+ * @param {Array=} opt_data Optional initial data array, typically from a
100
+ * server response, or constructed directly in Javascript. The array is used
101
+ * in place and becomes part of the constructed object. It is not cloned.
102
+ * If no data is provided, the constructed object will be empty, but still
103
+ * valid.
104
+ * @extends {jspb.Message}
105
+ * @constructor
106
+ */
107
+ proto.Auth.TwoFactorProto.ConfirmReply = function(opt_data) {
108
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
109
+ };
110
+ goog.inherits(proto.Auth.TwoFactorProto.ConfirmReply, jspb.Message);
111
+ if (goog.DEBUG && !COMPILED) {
112
+ /**
113
+ * @public
114
+ * @override
115
+ */
116
+ proto.Auth.TwoFactorProto.ConfirmReply.displayName = 'proto.Auth.TwoFactorProto.ConfirmReply';
117
+ }
118
+ /**
119
+ * Generated by JsPbCodeGenerator.
120
+ * @param {Array=} opt_data Optional initial data array, typically from a
121
+ * server response, or constructed directly in Javascript. The array is used
122
+ * in place and becomes part of the constructed object. It is not cloned.
123
+ * If no data is provided, the constructed object will be empty, but still
124
+ * valid.
125
+ * @extends {jspb.Message}
126
+ * @constructor
127
+ */
128
+ proto.Auth.TwoFactorProto.RemoveRequest = function(opt_data) {
129
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
130
+ };
131
+ goog.inherits(proto.Auth.TwoFactorProto.RemoveRequest, jspb.Message);
132
+ if (goog.DEBUG && !COMPILED) {
133
+ /**
134
+ * @public
135
+ * @override
136
+ */
137
+ proto.Auth.TwoFactorProto.RemoveRequest.displayName = 'proto.Auth.TwoFactorProto.RemoveRequest';
138
+ }
139
+ /**
140
+ * Generated by JsPbCodeGenerator.
141
+ * @param {Array=} opt_data Optional initial data array, typically from a
142
+ * server response, or constructed directly in Javascript. The array is used
143
+ * in place and becomes part of the constructed object. It is not cloned.
144
+ * If no data is provided, the constructed object will be empty, but still
145
+ * valid.
146
+ * @extends {jspb.Message}
147
+ * @constructor
148
+ */
149
+ proto.Auth.TwoFactorProto.ValidateRequest = function(opt_data) {
150
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
151
+ };
152
+ goog.inherits(proto.Auth.TwoFactorProto.ValidateRequest, jspb.Message);
153
+ if (goog.DEBUG && !COMPILED) {
154
+ /**
155
+ * @public
156
+ * @override
157
+ */
158
+ proto.Auth.TwoFactorProto.ValidateRequest.displayName = 'proto.Auth.TwoFactorProto.ValidateRequest';
159
+ }
160
+
161
+
162
+
163
+ if (jspb.Message.GENERATE_TO_OBJECT) {
164
+ /**
165
+ * Creates an object representation of this proto.
166
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
167
+ * Optional fields that are not set will be set to undefined.
168
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
169
+ * For the list of reserved names please see:
170
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
171
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
172
+ * JSPB instance for transitional soy proto support:
173
+ * http://goto/soy-param-migration
174
+ * @return {!Object}
175
+ */
176
+ proto.Auth.TwoFactorProto.prototype.toObject = function(opt_includeInstance) {
177
+ return proto.Auth.TwoFactorProto.toObject(opt_includeInstance, this);
178
+ };
179
+
180
+
181
+ /**
182
+ * Static version of the {@see toObject} method.
183
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
184
+ * the JSPB instance for transitional soy proto support:
185
+ * http://goto/soy-param-migration
186
+ * @param {!proto.Auth.TwoFactorProto} msg The msg instance to transform.
187
+ * @return {!Object}
188
+ * @suppress {unusedLocalVariables} f is only used for nested messages
189
+ */
190
+ proto.Auth.TwoFactorProto.toObject = function(includeInstance, msg) {
191
+ var f, obj = {
192
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
193
+ accountId: jspb.Message.getFieldWithDefault(msg, 2, 0),
194
+ browserFingerprint: jspb.Message.getFieldWithDefault(msg, 3, "")
195
+ };
196
+
197
+ if (includeInstance) {
198
+ obj.$jspbMessageInstance = msg;
199
+ }
200
+ return obj;
201
+ };
202
+ }
203
+
204
+
205
+ /**
206
+ * Deserializes binary data (in protobuf wire format).
207
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
208
+ * @return {!proto.Auth.TwoFactorProto}
209
+ */
210
+ proto.Auth.TwoFactorProto.deserializeBinary = function(bytes) {
211
+ var reader = new jspb.BinaryReader(bytes);
212
+ var msg = new proto.Auth.TwoFactorProto;
213
+ return proto.Auth.TwoFactorProto.deserializeBinaryFromReader(msg, reader);
214
+ };
215
+
216
+
217
+ /**
218
+ * Deserializes binary data (in protobuf wire format) from the
219
+ * given reader into the given message object.
220
+ * @param {!proto.Auth.TwoFactorProto} msg The message object to deserialize into.
221
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
222
+ * @return {!proto.Auth.TwoFactorProto}
223
+ */
224
+ proto.Auth.TwoFactorProto.deserializeBinaryFromReader = function(msg, reader) {
225
+ while (reader.nextField()) {
226
+ if (reader.isEndGroup()) {
227
+ break;
228
+ }
229
+ var field = reader.getFieldNumber();
230
+ switch (field) {
231
+ case 1:
232
+ var value = /** @type {number} */ (reader.readInt64());
233
+ msg.setId(value);
234
+ break;
235
+ case 2:
236
+ var value = /** @type {number} */ (reader.readInt64());
237
+ msg.setAccountId(value);
238
+ break;
239
+ case 3:
240
+ var value = /** @type {string} */ (reader.readString());
241
+ msg.setBrowserFingerprint(value);
242
+ break;
243
+ default:
244
+ reader.skipField();
245
+ break;
246
+ }
247
+ }
248
+ return msg;
249
+ };
250
+
251
+
252
+ /**
253
+ * Serializes the message to binary data (in protobuf wire format).
254
+ * @return {!Uint8Array}
255
+ */
256
+ proto.Auth.TwoFactorProto.prototype.serializeBinary = function() {
257
+ var writer = new jspb.BinaryWriter();
258
+ proto.Auth.TwoFactorProto.serializeBinaryToWriter(this, writer);
259
+ return writer.getResultBuffer();
260
+ };
261
+
262
+
263
+ /**
264
+ * Serializes the given message to binary data (in protobuf wire
265
+ * format), writing to the given BinaryWriter.
266
+ * @param {!proto.Auth.TwoFactorProto} message
267
+ * @param {!jspb.BinaryWriter} writer
268
+ * @suppress {unusedLocalVariables} f is only used for nested messages
269
+ */
270
+ proto.Auth.TwoFactorProto.serializeBinaryToWriter = function(message, writer) {
271
+ var f = undefined;
272
+ f = message.getId();
273
+ if (f !== 0) {
274
+ writer.writeInt64(
275
+ 1,
276
+ f
277
+ );
278
+ }
279
+ f = message.getAccountId();
280
+ if (f !== 0) {
281
+ writer.writeInt64(
282
+ 2,
283
+ f
284
+ );
285
+ }
286
+ f = message.getBrowserFingerprint();
287
+ if (f.length > 0) {
288
+ writer.writeString(
289
+ 3,
290
+ f
291
+ );
292
+ }
293
+ };
294
+
295
+
296
+
297
+
298
+
299
+ if (jspb.Message.GENERATE_TO_OBJECT) {
300
+ /**
301
+ * Creates an object representation of this proto.
302
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
303
+ * Optional fields that are not set will be set to undefined.
304
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
305
+ * For the list of reserved names please see:
306
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
307
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
308
+ * JSPB instance for transitional soy proto support:
309
+ * http://goto/soy-param-migration
310
+ * @return {!Object}
311
+ */
312
+ proto.Auth.TwoFactorProto.SetupRequest.prototype.toObject = function(opt_includeInstance) {
313
+ return proto.Auth.TwoFactorProto.SetupRequest.toObject(opt_includeInstance, this);
314
+ };
315
+
316
+
317
+ /**
318
+ * Static version of the {@see toObject} method.
319
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
320
+ * the JSPB instance for transitional soy proto support:
321
+ * http://goto/soy-param-migration
322
+ * @param {!proto.Auth.TwoFactorProto.SetupRequest} msg The msg instance to transform.
323
+ * @return {!Object}
324
+ * @suppress {unusedLocalVariables} f is only used for nested messages
325
+ */
326
+ proto.Auth.TwoFactorProto.SetupRequest.toObject = function(includeInstance, msg) {
327
+ var f, obj = {
328
+
329
+ };
330
+
331
+ if (includeInstance) {
332
+ obj.$jspbMessageInstance = msg;
333
+ }
334
+ return obj;
335
+ };
336
+ }
337
+
338
+
339
+ /**
340
+ * Deserializes binary data (in protobuf wire format).
341
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
342
+ * @return {!proto.Auth.TwoFactorProto.SetupRequest}
343
+ */
344
+ proto.Auth.TwoFactorProto.SetupRequest.deserializeBinary = function(bytes) {
345
+ var reader = new jspb.BinaryReader(bytes);
346
+ var msg = new proto.Auth.TwoFactorProto.SetupRequest;
347
+ return proto.Auth.TwoFactorProto.SetupRequest.deserializeBinaryFromReader(msg, reader);
348
+ };
349
+
350
+
351
+ /**
352
+ * Deserializes binary data (in protobuf wire format) from the
353
+ * given reader into the given message object.
354
+ * @param {!proto.Auth.TwoFactorProto.SetupRequest} msg The message object to deserialize into.
355
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
356
+ * @return {!proto.Auth.TwoFactorProto.SetupRequest}
357
+ */
358
+ proto.Auth.TwoFactorProto.SetupRequest.deserializeBinaryFromReader = function(msg, reader) {
359
+ while (reader.nextField()) {
360
+ if (reader.isEndGroup()) {
361
+ break;
362
+ }
363
+ var field = reader.getFieldNumber();
364
+ switch (field) {
365
+ default:
366
+ reader.skipField();
367
+ break;
368
+ }
369
+ }
370
+ return msg;
371
+ };
372
+
373
+
374
+ /**
375
+ * Serializes the message to binary data (in protobuf wire format).
376
+ * @return {!Uint8Array}
377
+ */
378
+ proto.Auth.TwoFactorProto.SetupRequest.prototype.serializeBinary = function() {
379
+ var writer = new jspb.BinaryWriter();
380
+ proto.Auth.TwoFactorProto.SetupRequest.serializeBinaryToWriter(this, writer);
381
+ return writer.getResultBuffer();
382
+ };
383
+
384
+
385
+ /**
386
+ * Serializes the given message to binary data (in protobuf wire
387
+ * format), writing to the given BinaryWriter.
388
+ * @param {!proto.Auth.TwoFactorProto.SetupRequest} message
389
+ * @param {!jspb.BinaryWriter} writer
390
+ * @suppress {unusedLocalVariables} f is only used for nested messages
391
+ */
392
+ proto.Auth.TwoFactorProto.SetupRequest.serializeBinaryToWriter = function(message, writer) {
393
+ var f = undefined;
394
+ };
395
+
396
+
397
+
398
+
399
+
400
+ if (jspb.Message.GENERATE_TO_OBJECT) {
401
+ /**
402
+ * Creates an object representation of this proto.
403
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
404
+ * Optional fields that are not set will be set to undefined.
405
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
406
+ * For the list of reserved names please see:
407
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
408
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
409
+ * JSPB instance for transitional soy proto support:
410
+ * http://goto/soy-param-migration
411
+ * @return {!Object}
412
+ */
413
+ proto.Auth.TwoFactorProto.SetupReply.prototype.toObject = function(opt_includeInstance) {
414
+ return proto.Auth.TwoFactorProto.SetupReply.toObject(opt_includeInstance, this);
415
+ };
416
+
417
+
418
+ /**
419
+ * Static version of the {@see toObject} method.
420
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
421
+ * the JSPB instance for transitional soy proto support:
422
+ * http://goto/soy-param-migration
423
+ * @param {!proto.Auth.TwoFactorProto.SetupReply} msg The msg instance to transform.
424
+ * @return {!Object}
425
+ * @suppress {unusedLocalVariables} f is only used for nested messages
426
+ */
427
+ proto.Auth.TwoFactorProto.SetupReply.toObject = function(includeInstance, msg) {
428
+ var f, obj = {
429
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
430
+ qrData: jspb.Message.getFieldWithDefault(msg, 2, ""),
431
+ manualEntryKey: jspb.Message.getFieldWithDefault(msg, 3, "")
432
+ };
433
+
434
+ if (includeInstance) {
435
+ obj.$jspbMessageInstance = msg;
436
+ }
437
+ return obj;
438
+ };
439
+ }
440
+
441
+
442
+ /**
443
+ * Deserializes binary data (in protobuf wire format).
444
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
445
+ * @return {!proto.Auth.TwoFactorProto.SetupReply}
446
+ */
447
+ proto.Auth.TwoFactorProto.SetupReply.deserializeBinary = function(bytes) {
448
+ var reader = new jspb.BinaryReader(bytes);
449
+ var msg = new proto.Auth.TwoFactorProto.SetupReply;
450
+ return proto.Auth.TwoFactorProto.SetupReply.deserializeBinaryFromReader(msg, reader);
451
+ };
452
+
453
+
454
+ /**
455
+ * Deserializes binary data (in protobuf wire format) from the
456
+ * given reader into the given message object.
457
+ * @param {!proto.Auth.TwoFactorProto.SetupReply} msg The message object to deserialize into.
458
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
459
+ * @return {!proto.Auth.TwoFactorProto.SetupReply}
460
+ */
461
+ proto.Auth.TwoFactorProto.SetupReply.deserializeBinaryFromReader = function(msg, reader) {
462
+ while (reader.nextField()) {
463
+ if (reader.isEndGroup()) {
464
+ break;
465
+ }
466
+ var field = reader.getFieldNumber();
467
+ switch (field) {
468
+ case 1:
469
+ var value = /** @type {number} */ (reader.readInt64());
470
+ msg.setId(value);
471
+ break;
472
+ case 2:
473
+ var value = /** @type {string} */ (reader.readString());
474
+ msg.setQrData(value);
475
+ break;
476
+ case 3:
477
+ var value = /** @type {string} */ (reader.readString());
478
+ msg.setManualEntryKey(value);
479
+ break;
480
+ default:
481
+ reader.skipField();
482
+ break;
483
+ }
484
+ }
485
+ return msg;
486
+ };
487
+
488
+
489
+ /**
490
+ * Serializes the message to binary data (in protobuf wire format).
491
+ * @return {!Uint8Array}
492
+ */
493
+ proto.Auth.TwoFactorProto.SetupReply.prototype.serializeBinary = function() {
494
+ var writer = new jspb.BinaryWriter();
495
+ proto.Auth.TwoFactorProto.SetupReply.serializeBinaryToWriter(this, writer);
496
+ return writer.getResultBuffer();
497
+ };
498
+
499
+
500
+ /**
501
+ * Serializes the given message to binary data (in protobuf wire
502
+ * format), writing to the given BinaryWriter.
503
+ * @param {!proto.Auth.TwoFactorProto.SetupReply} message
504
+ * @param {!jspb.BinaryWriter} writer
505
+ * @suppress {unusedLocalVariables} f is only used for nested messages
506
+ */
507
+ proto.Auth.TwoFactorProto.SetupReply.serializeBinaryToWriter = function(message, writer) {
508
+ var f = undefined;
509
+ f = message.getId();
510
+ if (f !== 0) {
511
+ writer.writeInt64(
512
+ 1,
513
+ f
514
+ );
515
+ }
516
+ f = message.getQrData();
517
+ if (f.length > 0) {
518
+ writer.writeString(
519
+ 2,
520
+ f
521
+ );
522
+ }
523
+ f = message.getManualEntryKey();
524
+ if (f.length > 0) {
525
+ writer.writeString(
526
+ 3,
527
+ f
528
+ );
529
+ }
530
+ };
531
+
532
+
533
+ /**
534
+ * optional int64 id = 1;
535
+ * @return {number}
536
+ */
537
+ proto.Auth.TwoFactorProto.SetupReply.prototype.getId = function() {
538
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
539
+ };
540
+
541
+
542
+ /**
543
+ * @param {number} value
544
+ * @return {!proto.Auth.TwoFactorProto.SetupReply} returns this
545
+ */
546
+ proto.Auth.TwoFactorProto.SetupReply.prototype.setId = function(value) {
547
+ return jspb.Message.setProto3IntField(this, 1, value);
548
+ };
549
+
550
+
551
+ /**
552
+ * optional string qr_data = 2;
553
+ * @return {string}
554
+ */
555
+ proto.Auth.TwoFactorProto.SetupReply.prototype.getQrData = function() {
556
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
557
+ };
558
+
559
+
560
+ /**
561
+ * @param {string} value
562
+ * @return {!proto.Auth.TwoFactorProto.SetupReply} returns this
563
+ */
564
+ proto.Auth.TwoFactorProto.SetupReply.prototype.setQrData = function(value) {
565
+ return jspb.Message.setProto3StringField(this, 2, value);
566
+ };
567
+
568
+
569
+ /**
570
+ * optional string manual_entry_key = 3;
571
+ * @return {string}
572
+ */
573
+ proto.Auth.TwoFactorProto.SetupReply.prototype.getManualEntryKey = function() {
574
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
575
+ };
576
+
577
+
578
+ /**
579
+ * @param {string} value
580
+ * @return {!proto.Auth.TwoFactorProto.SetupReply} returns this
581
+ */
582
+ proto.Auth.TwoFactorProto.SetupReply.prototype.setManualEntryKey = function(value) {
583
+ return jspb.Message.setProto3StringField(this, 3, value);
584
+ };
585
+
586
+
587
+
588
+
589
+
590
+ if (jspb.Message.GENERATE_TO_OBJECT) {
591
+ /**
592
+ * Creates an object representation of this proto.
593
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
594
+ * Optional fields that are not set will be set to undefined.
595
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
596
+ * For the list of reserved names please see:
597
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
598
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
599
+ * JSPB instance for transitional soy proto support:
600
+ * http://goto/soy-param-migration
601
+ * @return {!Object}
602
+ */
603
+ proto.Auth.TwoFactorProto.ConfirmReply.prototype.toObject = function(opt_includeInstance) {
604
+ return proto.Auth.TwoFactorProto.ConfirmReply.toObject(opt_includeInstance, this);
605
+ };
606
+
607
+
608
+ /**
609
+ * Static version of the {@see toObject} method.
610
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
611
+ * the JSPB instance for transitional soy proto support:
612
+ * http://goto/soy-param-migration
613
+ * @param {!proto.Auth.TwoFactorProto.ConfirmReply} msg The msg instance to transform.
614
+ * @return {!Object}
615
+ * @suppress {unusedLocalVariables} f is only used for nested messages
616
+ */
617
+ proto.Auth.TwoFactorProto.ConfirmReply.toObject = function(includeInstance, msg) {
618
+ var f, obj = {
619
+
620
+ };
621
+
622
+ if (includeInstance) {
623
+ obj.$jspbMessageInstance = msg;
624
+ }
625
+ return obj;
626
+ };
627
+ }
628
+
629
+
630
+ /**
631
+ * Deserializes binary data (in protobuf wire format).
632
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
633
+ * @return {!proto.Auth.TwoFactorProto.ConfirmReply}
634
+ */
635
+ proto.Auth.TwoFactorProto.ConfirmReply.deserializeBinary = function(bytes) {
636
+ var reader = new jspb.BinaryReader(bytes);
637
+ var msg = new proto.Auth.TwoFactorProto.ConfirmReply;
638
+ return proto.Auth.TwoFactorProto.ConfirmReply.deserializeBinaryFromReader(msg, reader);
639
+ };
640
+
641
+
642
+ /**
643
+ * Deserializes binary data (in protobuf wire format) from the
644
+ * given reader into the given message object.
645
+ * @param {!proto.Auth.TwoFactorProto.ConfirmReply} msg The message object to deserialize into.
646
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
647
+ * @return {!proto.Auth.TwoFactorProto.ConfirmReply}
648
+ */
649
+ proto.Auth.TwoFactorProto.ConfirmReply.deserializeBinaryFromReader = function(msg, reader) {
650
+ while (reader.nextField()) {
651
+ if (reader.isEndGroup()) {
652
+ break;
653
+ }
654
+ var field = reader.getFieldNumber();
655
+ switch (field) {
656
+ default:
657
+ reader.skipField();
658
+ break;
659
+ }
660
+ }
661
+ return msg;
662
+ };
663
+
664
+
665
+ /**
666
+ * Serializes the message to binary data (in protobuf wire format).
667
+ * @return {!Uint8Array}
668
+ */
669
+ proto.Auth.TwoFactorProto.ConfirmReply.prototype.serializeBinary = function() {
670
+ var writer = new jspb.BinaryWriter();
671
+ proto.Auth.TwoFactorProto.ConfirmReply.serializeBinaryToWriter(this, writer);
672
+ return writer.getResultBuffer();
673
+ };
674
+
675
+
676
+ /**
677
+ * Serializes the given message to binary data (in protobuf wire
678
+ * format), writing to the given BinaryWriter.
679
+ * @param {!proto.Auth.TwoFactorProto.ConfirmReply} message
680
+ * @param {!jspb.BinaryWriter} writer
681
+ * @suppress {unusedLocalVariables} f is only used for nested messages
682
+ */
683
+ proto.Auth.TwoFactorProto.ConfirmReply.serializeBinaryToWriter = function(message, writer) {
684
+ var f = undefined;
685
+ };
686
+
687
+
688
+
689
+
690
+
691
+ if (jspb.Message.GENERATE_TO_OBJECT) {
692
+ /**
693
+ * Creates an object representation of this proto.
694
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
695
+ * Optional fields that are not set will be set to undefined.
696
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
697
+ * For the list of reserved names please see:
698
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
699
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
700
+ * JSPB instance for transitional soy proto support:
701
+ * http://goto/soy-param-migration
702
+ * @return {!Object}
703
+ */
704
+ proto.Auth.TwoFactorProto.RemoveRequest.prototype.toObject = function(opt_includeInstance) {
705
+ return proto.Auth.TwoFactorProto.RemoveRequest.toObject(opt_includeInstance, this);
706
+ };
707
+
708
+
709
+ /**
710
+ * Static version of the {@see toObject} method.
711
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
712
+ * the JSPB instance for transitional soy proto support:
713
+ * http://goto/soy-param-migration
714
+ * @param {!proto.Auth.TwoFactorProto.RemoveRequest} msg The msg instance to transform.
715
+ * @return {!Object}
716
+ * @suppress {unusedLocalVariables} f is only used for nested messages
717
+ */
718
+ proto.Auth.TwoFactorProto.RemoveRequest.toObject = function(includeInstance, msg) {
719
+ var f, obj = {
720
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
721
+ };
722
+
723
+ if (includeInstance) {
724
+ obj.$jspbMessageInstance = msg;
725
+ }
726
+ return obj;
727
+ };
728
+ }
729
+
730
+
731
+ /**
732
+ * Deserializes binary data (in protobuf wire format).
733
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
734
+ * @return {!proto.Auth.TwoFactorProto.RemoveRequest}
735
+ */
736
+ proto.Auth.TwoFactorProto.RemoveRequest.deserializeBinary = function(bytes) {
737
+ var reader = new jspb.BinaryReader(bytes);
738
+ var msg = new proto.Auth.TwoFactorProto.RemoveRequest;
739
+ return proto.Auth.TwoFactorProto.RemoveRequest.deserializeBinaryFromReader(msg, reader);
740
+ };
741
+
742
+
743
+ /**
744
+ * Deserializes binary data (in protobuf wire format) from the
745
+ * given reader into the given message object.
746
+ * @param {!proto.Auth.TwoFactorProto.RemoveRequest} msg The message object to deserialize into.
747
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
748
+ * @return {!proto.Auth.TwoFactorProto.RemoveRequest}
749
+ */
750
+ proto.Auth.TwoFactorProto.RemoveRequest.deserializeBinaryFromReader = function(msg, reader) {
751
+ while (reader.nextField()) {
752
+ if (reader.isEndGroup()) {
753
+ break;
754
+ }
755
+ var field = reader.getFieldNumber();
756
+ switch (field) {
757
+ case 1:
758
+ var value = /** @type {number} */ (reader.readInt64());
759
+ msg.setId(value);
760
+ break;
761
+ default:
762
+ reader.skipField();
763
+ break;
764
+ }
765
+ }
766
+ return msg;
767
+ };
768
+
769
+
770
+ /**
771
+ * Serializes the message to binary data (in protobuf wire format).
772
+ * @return {!Uint8Array}
773
+ */
774
+ proto.Auth.TwoFactorProto.RemoveRequest.prototype.serializeBinary = function() {
775
+ var writer = new jspb.BinaryWriter();
776
+ proto.Auth.TwoFactorProto.RemoveRequest.serializeBinaryToWriter(this, writer);
777
+ return writer.getResultBuffer();
778
+ };
779
+
780
+
781
+ /**
782
+ * Serializes the given message to binary data (in protobuf wire
783
+ * format), writing to the given BinaryWriter.
784
+ * @param {!proto.Auth.TwoFactorProto.RemoveRequest} message
785
+ * @param {!jspb.BinaryWriter} writer
786
+ * @suppress {unusedLocalVariables} f is only used for nested messages
787
+ */
788
+ proto.Auth.TwoFactorProto.RemoveRequest.serializeBinaryToWriter = function(message, writer) {
789
+ var f = undefined;
790
+ f = message.getId();
791
+ if (f !== 0) {
792
+ writer.writeInt64(
793
+ 1,
794
+ f
795
+ );
796
+ }
797
+ };
798
+
799
+
800
+ /**
801
+ * optional int64 id = 1;
802
+ * @return {number}
803
+ */
804
+ proto.Auth.TwoFactorProto.RemoveRequest.prototype.getId = function() {
805
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
806
+ };
807
+
808
+
809
+ /**
810
+ * @param {number} value
811
+ * @return {!proto.Auth.TwoFactorProto.RemoveRequest} returns this
812
+ */
813
+ proto.Auth.TwoFactorProto.RemoveRequest.prototype.setId = function(value) {
814
+ return jspb.Message.setProto3IntField(this, 1, value);
815
+ };
816
+
817
+
818
+
819
+
820
+
821
+ if (jspb.Message.GENERATE_TO_OBJECT) {
822
+ /**
823
+ * Creates an object representation of this proto.
824
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
825
+ * Optional fields that are not set will be set to undefined.
826
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
827
+ * For the list of reserved names please see:
828
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
829
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
830
+ * JSPB instance for transitional soy proto support:
831
+ * http://goto/soy-param-migration
832
+ * @return {!Object}
833
+ */
834
+ proto.Auth.TwoFactorProto.ValidateRequest.prototype.toObject = function(opt_includeInstance) {
835
+ return proto.Auth.TwoFactorProto.ValidateRequest.toObject(opt_includeInstance, this);
836
+ };
837
+
838
+
839
+ /**
840
+ * Static version of the {@see toObject} method.
841
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
842
+ * the JSPB instance for transitional soy proto support:
843
+ * http://goto/soy-param-migration
844
+ * @param {!proto.Auth.TwoFactorProto.ValidateRequest} msg The msg instance to transform.
845
+ * @return {!Object}
846
+ * @suppress {unusedLocalVariables} f is only used for nested messages
847
+ */
848
+ proto.Auth.TwoFactorProto.ValidateRequest.toObject = function(includeInstance, msg) {
849
+ var f, obj = {
850
+ validationkey: jspb.Message.getFieldWithDefault(msg, 1, "")
851
+ };
852
+
853
+ if (includeInstance) {
854
+ obj.$jspbMessageInstance = msg;
855
+ }
856
+ return obj;
857
+ };
858
+ }
859
+
860
+
861
+ /**
862
+ * Deserializes binary data (in protobuf wire format).
863
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
864
+ * @return {!proto.Auth.TwoFactorProto.ValidateRequest}
865
+ */
866
+ proto.Auth.TwoFactorProto.ValidateRequest.deserializeBinary = function(bytes) {
867
+ var reader = new jspb.BinaryReader(bytes);
868
+ var msg = new proto.Auth.TwoFactorProto.ValidateRequest;
869
+ return proto.Auth.TwoFactorProto.ValidateRequest.deserializeBinaryFromReader(msg, reader);
870
+ };
871
+
872
+
873
+ /**
874
+ * Deserializes binary data (in protobuf wire format) from the
875
+ * given reader into the given message object.
876
+ * @param {!proto.Auth.TwoFactorProto.ValidateRequest} msg The message object to deserialize into.
877
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
878
+ * @return {!proto.Auth.TwoFactorProto.ValidateRequest}
879
+ */
880
+ proto.Auth.TwoFactorProto.ValidateRequest.deserializeBinaryFromReader = function(msg, reader) {
881
+ while (reader.nextField()) {
882
+ if (reader.isEndGroup()) {
883
+ break;
884
+ }
885
+ var field = reader.getFieldNumber();
886
+ switch (field) {
887
+ case 1:
888
+ var value = /** @type {string} */ (reader.readString());
889
+ msg.setValidationkey(value);
890
+ break;
891
+ default:
892
+ reader.skipField();
893
+ break;
894
+ }
895
+ }
896
+ return msg;
897
+ };
898
+
899
+
900
+ /**
901
+ * Serializes the message to binary data (in protobuf wire format).
902
+ * @return {!Uint8Array}
903
+ */
904
+ proto.Auth.TwoFactorProto.ValidateRequest.prototype.serializeBinary = function() {
905
+ var writer = new jspb.BinaryWriter();
906
+ proto.Auth.TwoFactorProto.ValidateRequest.serializeBinaryToWriter(this, writer);
907
+ return writer.getResultBuffer();
908
+ };
909
+
910
+
911
+ /**
912
+ * Serializes the given message to binary data (in protobuf wire
913
+ * format), writing to the given BinaryWriter.
914
+ * @param {!proto.Auth.TwoFactorProto.ValidateRequest} message
915
+ * @param {!jspb.BinaryWriter} writer
916
+ * @suppress {unusedLocalVariables} f is only used for nested messages
917
+ */
918
+ proto.Auth.TwoFactorProto.ValidateRequest.serializeBinaryToWriter = function(message, writer) {
919
+ var f = undefined;
920
+ f = message.getValidationkey();
921
+ if (f.length > 0) {
922
+ writer.writeString(
923
+ 1,
924
+ f
925
+ );
926
+ }
927
+ };
928
+
929
+
930
+ /**
931
+ * optional string validationKey = 1;
932
+ * @return {string}
933
+ */
934
+ proto.Auth.TwoFactorProto.ValidateRequest.prototype.getValidationkey = function() {
935
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
936
+ };
937
+
938
+
939
+ /**
940
+ * @param {string} value
941
+ * @return {!proto.Auth.TwoFactorProto.ValidateRequest} returns this
942
+ */
943
+ proto.Auth.TwoFactorProto.ValidateRequest.prototype.setValidationkey = function(value) {
944
+ return jspb.Message.setProto3StringField(this, 1, value);
945
+ };
946
+
947
+
948
+ /**
949
+ * optional int64 id = 1;
950
+ * @return {number}
951
+ */
952
+ proto.Auth.TwoFactorProto.prototype.getId = function() {
953
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
954
+ };
955
+
956
+
957
+ /**
958
+ * @param {number} value
959
+ * @return {!proto.Auth.TwoFactorProto} returns this
960
+ */
961
+ proto.Auth.TwoFactorProto.prototype.setId = function(value) {
962
+ return jspb.Message.setProto3IntField(this, 1, value);
963
+ };
964
+
965
+
966
+ /**
967
+ * optional int64 account_id = 2;
968
+ * @return {number}
969
+ */
970
+ proto.Auth.TwoFactorProto.prototype.getAccountId = function() {
971
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
972
+ };
973
+
974
+
975
+ /**
976
+ * @param {number} value
977
+ * @return {!proto.Auth.TwoFactorProto} returns this
978
+ */
979
+ proto.Auth.TwoFactorProto.prototype.setAccountId = function(value) {
980
+ return jspb.Message.setProto3IntField(this, 2, value);
981
+ };
982
+
983
+
984
+ /**
985
+ * optional string browser_fingerprint = 3;
986
+ * @return {string}
987
+ */
988
+ proto.Auth.TwoFactorProto.prototype.getBrowserFingerprint = function() {
989
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
990
+ };
991
+
992
+
993
+ /**
994
+ * @param {string} value
995
+ * @return {!proto.Auth.TwoFactorProto} returns this
996
+ */
997
+ proto.Auth.TwoFactorProto.prototype.setBrowserFingerprint = function(value) {
998
+ return jspb.Message.setProto3StringField(this, 3, value);
999
+ };
1000
+
1001
+
1002
+ goog.object.extend(exports, proto.Auth);