@aceplus/smartace-api 3.6.0-alpha.2 → 3.6.0-alpha.20

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