@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,1233 +0,0 @@
1
- // source: auth.app_authn.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_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js');
25
- goog.object.extend(proto, google_protobuf_duration_pb);
26
- var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
27
- goog.object.extend(proto, google_protobuf_timestamp_pb);
28
- var google_api_annotations_pb = require('./google/api/annotations_pb.js');
29
- goog.object.extend(proto, google_api_annotations_pb);
30
- var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
31
- goog.object.extend(proto, google_protobuf_empty_pb);
32
- goog.exportSymbol('proto.Auth.AppAuthnProto', null, global);
33
- goog.exportSymbol('proto.Auth.AppAuthnProto.AppType', null, global);
34
- goog.exportSymbol('proto.Auth.AppAuthnProto.SmsLoginRequest', null, global);
35
- goog.exportSymbol('proto.Auth.AppAuthnProto.SmsRefreshRequest', null, global);
36
- goog.exportSymbol('proto.Auth.AppAuthnProto.SmsVerifyTokenRequest', null, global);
37
- goog.exportSymbol('proto.Auth.AppAuthnProto.VerifySecretRequest', null, global);
38
- /**
39
- * Generated by JsPbCodeGenerator.
40
- * @param {Array=} opt_data Optional initial data array, typically from a
41
- * server response, or constructed directly in Javascript. The array is used
42
- * in place and becomes part of the constructed object. It is not cloned.
43
- * If no data is provided, the constructed object will be empty, but still
44
- * valid.
45
- * @extends {jspb.Message}
46
- * @constructor
47
- */
48
- proto.Auth.AppAuthnProto = function(opt_data) {
49
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
50
- };
51
- goog.inherits(proto.Auth.AppAuthnProto, jspb.Message);
52
- if (goog.DEBUG && !COMPILED) {
53
- /**
54
- * @public
55
- * @override
56
- */
57
- proto.Auth.AppAuthnProto.displayName = 'proto.Auth.AppAuthnProto';
58
- }
59
- /**
60
- * Generated by JsPbCodeGenerator.
61
- * @param {Array=} opt_data Optional initial data array, typically from a
62
- * server response, or constructed directly in Javascript. The array is used
63
- * in place and becomes part of the constructed object. It is not cloned.
64
- * If no data is provided, the constructed object will be empty, but still
65
- * valid.
66
- * @extends {jspb.Message}
67
- * @constructor
68
- */
69
- proto.Auth.AppAuthnProto.SmsLoginRequest = function(opt_data) {
70
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
71
- };
72
- goog.inherits(proto.Auth.AppAuthnProto.SmsLoginRequest, jspb.Message);
73
- if (goog.DEBUG && !COMPILED) {
74
- /**
75
- * @public
76
- * @override
77
- */
78
- proto.Auth.AppAuthnProto.SmsLoginRequest.displayName = 'proto.Auth.AppAuthnProto.SmsLoginRequest';
79
- }
80
- /**
81
- * Generated by JsPbCodeGenerator.
82
- * @param {Array=} opt_data Optional initial data array, typically from a
83
- * server response, or constructed directly in Javascript. The array is used
84
- * in place and becomes part of the constructed object. It is not cloned.
85
- * If no data is provided, the constructed object will be empty, but still
86
- * valid.
87
- * @extends {jspb.Message}
88
- * @constructor
89
- */
90
- proto.Auth.AppAuthnProto.SmsRefreshRequest = function(opt_data) {
91
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
92
- };
93
- goog.inherits(proto.Auth.AppAuthnProto.SmsRefreshRequest, jspb.Message);
94
- if (goog.DEBUG && !COMPILED) {
95
- /**
96
- * @public
97
- * @override
98
- */
99
- proto.Auth.AppAuthnProto.SmsRefreshRequest.displayName = 'proto.Auth.AppAuthnProto.SmsRefreshRequest';
100
- }
101
- /**
102
- * Generated by JsPbCodeGenerator.
103
- * @param {Array=} opt_data Optional initial data array, typically from a
104
- * server response, or constructed directly in Javascript. The array is used
105
- * in place and becomes part of the constructed object. It is not cloned.
106
- * If no data is provided, the constructed object will be empty, but still
107
- * valid.
108
- * @extends {jspb.Message}
109
- * @constructor
110
- */
111
- proto.Auth.AppAuthnProto.SmsVerifyTokenRequest = function(opt_data) {
112
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
113
- };
114
- goog.inherits(proto.Auth.AppAuthnProto.SmsVerifyTokenRequest, jspb.Message);
115
- if (goog.DEBUG && !COMPILED) {
116
- /**
117
- * @public
118
- * @override
119
- */
120
- proto.Auth.AppAuthnProto.SmsVerifyTokenRequest.displayName = 'proto.Auth.AppAuthnProto.SmsVerifyTokenRequest';
121
- }
122
- /**
123
- * Generated by JsPbCodeGenerator.
124
- * @param {Array=} opt_data Optional initial data array, typically from a
125
- * server response, or constructed directly in Javascript. The array is used
126
- * in place and becomes part of the constructed object. It is not cloned.
127
- * If no data is provided, the constructed object will be empty, but still
128
- * valid.
129
- * @extends {jspb.Message}
130
- * @constructor
131
- */
132
- proto.Auth.AppAuthnProto.VerifySecretRequest = function(opt_data) {
133
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
134
- };
135
- goog.inherits(proto.Auth.AppAuthnProto.VerifySecretRequest, jspb.Message);
136
- if (goog.DEBUG && !COMPILED) {
137
- /**
138
- * @public
139
- * @override
140
- */
141
- proto.Auth.AppAuthnProto.VerifySecretRequest.displayName = 'proto.Auth.AppAuthnProto.VerifySecretRequest';
142
- }
143
-
144
-
145
-
146
- if (jspb.Message.GENERATE_TO_OBJECT) {
147
- /**
148
- * Creates an object representation of this proto.
149
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
150
- * Optional fields that are not set will be set to undefined.
151
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
152
- * For the list of reserved names please see:
153
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
154
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
155
- * JSPB instance for transitional soy proto support:
156
- * http://goto/soy-param-migration
157
- * @return {!Object}
158
- */
159
- proto.Auth.AppAuthnProto.prototype.toObject = function(opt_includeInstance) {
160
- return proto.Auth.AppAuthnProto.toObject(opt_includeInstance, this);
161
- };
162
-
163
-
164
- /**
165
- * Static version of the {@see toObject} method.
166
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
167
- * the JSPB instance for transitional soy proto support:
168
- * http://goto/soy-param-migration
169
- * @param {!proto.Auth.AppAuthnProto} msg The msg instance to transform.
170
- * @return {!Object}
171
- * @suppress {unusedLocalVariables} f is only used for nested messages
172
- */
173
- proto.Auth.AppAuthnProto.toObject = function(includeInstance, msg) {
174
- var f, obj = {
175
- accessToken: jspb.Message.getFieldWithDefault(msg, 1, ""),
176
- refreshToken: jspb.Message.getFieldWithDefault(msg, 2, ""),
177
- expiresIn: (f = msg.getExpiresIn()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f)
178
- };
179
-
180
- if (includeInstance) {
181
- obj.$jspbMessageInstance = msg;
182
- }
183
- return obj;
184
- };
185
- }
186
-
187
-
188
- /**
189
- * Deserializes binary data (in protobuf wire format).
190
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
191
- * @return {!proto.Auth.AppAuthnProto}
192
- */
193
- proto.Auth.AppAuthnProto.deserializeBinary = function(bytes) {
194
- var reader = new jspb.BinaryReader(bytes);
195
- var msg = new proto.Auth.AppAuthnProto;
196
- return proto.Auth.AppAuthnProto.deserializeBinaryFromReader(msg, reader);
197
- };
198
-
199
-
200
- /**
201
- * Deserializes binary data (in protobuf wire format) from the
202
- * given reader into the given message object.
203
- * @param {!proto.Auth.AppAuthnProto} msg The message object to deserialize into.
204
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
205
- * @return {!proto.Auth.AppAuthnProto}
206
- */
207
- proto.Auth.AppAuthnProto.deserializeBinaryFromReader = function(msg, reader) {
208
- while (reader.nextField()) {
209
- if (reader.isEndGroup()) {
210
- break;
211
- }
212
- var field = reader.getFieldNumber();
213
- switch (field) {
214
- case 1:
215
- var value = /** @type {string} */ (reader.readString());
216
- msg.setAccessToken(value);
217
- break;
218
- case 2:
219
- var value = /** @type {string} */ (reader.readString());
220
- msg.setRefreshToken(value);
221
- break;
222
- case 3:
223
- var value = new google_protobuf_duration_pb.Duration;
224
- reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
225
- msg.setExpiresIn(value);
226
- break;
227
- default:
228
- reader.skipField();
229
- break;
230
- }
231
- }
232
- return msg;
233
- };
234
-
235
-
236
- /**
237
- * Serializes the message to binary data (in protobuf wire format).
238
- * @return {!Uint8Array}
239
- */
240
- proto.Auth.AppAuthnProto.prototype.serializeBinary = function() {
241
- var writer = new jspb.BinaryWriter();
242
- proto.Auth.AppAuthnProto.serializeBinaryToWriter(this, writer);
243
- return writer.getResultBuffer();
244
- };
245
-
246
-
247
- /**
248
- * Serializes the given message to binary data (in protobuf wire
249
- * format), writing to the given BinaryWriter.
250
- * @param {!proto.Auth.AppAuthnProto} message
251
- * @param {!jspb.BinaryWriter} writer
252
- * @suppress {unusedLocalVariables} f is only used for nested messages
253
- */
254
- proto.Auth.AppAuthnProto.serializeBinaryToWriter = function(message, writer) {
255
- var f = undefined;
256
- f = message.getAccessToken();
257
- if (f.length > 0) {
258
- writer.writeString(
259
- 1,
260
- f
261
- );
262
- }
263
- f = message.getRefreshToken();
264
- if (f.length > 0) {
265
- writer.writeString(
266
- 2,
267
- f
268
- );
269
- }
270
- f = message.getExpiresIn();
271
- if (f != null) {
272
- writer.writeMessage(
273
- 3,
274
- f,
275
- google_protobuf_duration_pb.Duration.serializeBinaryToWriter
276
- );
277
- }
278
- };
279
-
280
-
281
- /**
282
- * @enum {number}
283
- */
284
- proto.Auth.AppAuthnProto.AppType = {
285
- APP_TYPE_ACEPLUSKEY: 0,
286
- APP_TYPE_ACEFIT: 1
287
- };
288
-
289
-
290
-
291
-
292
- if (jspb.Message.GENERATE_TO_OBJECT) {
293
- /**
294
- * Creates an object representation of this proto.
295
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
296
- * Optional fields that are not set will be set to undefined.
297
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
298
- * For the list of reserved names please see:
299
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
300
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
301
- * JSPB instance for transitional soy proto support:
302
- * http://goto/soy-param-migration
303
- * @return {!Object}
304
- */
305
- proto.Auth.AppAuthnProto.SmsLoginRequest.prototype.toObject = function(opt_includeInstance) {
306
- return proto.Auth.AppAuthnProto.SmsLoginRequest.toObject(opt_includeInstance, this);
307
- };
308
-
309
-
310
- /**
311
- * Static version of the {@see toObject} method.
312
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
313
- * the JSPB instance for transitional soy proto support:
314
- * http://goto/soy-param-migration
315
- * @param {!proto.Auth.AppAuthnProto.SmsLoginRequest} msg The msg instance to transform.
316
- * @return {!Object}
317
- * @suppress {unusedLocalVariables} f is only used for nested messages
318
- */
319
- proto.Auth.AppAuthnProto.SmsLoginRequest.toObject = function(includeInstance, msg) {
320
- var f, obj = {
321
- phone: jspb.Message.getFieldWithDefault(msg, 1, ""),
322
- locale: jspb.Message.getFieldWithDefault(msg, 2, "")
323
- };
324
-
325
- if (includeInstance) {
326
- obj.$jspbMessageInstance = msg;
327
- }
328
- return obj;
329
- };
330
- }
331
-
332
-
333
- /**
334
- * Deserializes binary data (in protobuf wire format).
335
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
336
- * @return {!proto.Auth.AppAuthnProto.SmsLoginRequest}
337
- */
338
- proto.Auth.AppAuthnProto.SmsLoginRequest.deserializeBinary = function(bytes) {
339
- var reader = new jspb.BinaryReader(bytes);
340
- var msg = new proto.Auth.AppAuthnProto.SmsLoginRequest;
341
- return proto.Auth.AppAuthnProto.SmsLoginRequest.deserializeBinaryFromReader(msg, reader);
342
- };
343
-
344
-
345
- /**
346
- * Deserializes binary data (in protobuf wire format) from the
347
- * given reader into the given message object.
348
- * @param {!proto.Auth.AppAuthnProto.SmsLoginRequest} msg The message object to deserialize into.
349
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
350
- * @return {!proto.Auth.AppAuthnProto.SmsLoginRequest}
351
- */
352
- proto.Auth.AppAuthnProto.SmsLoginRequest.deserializeBinaryFromReader = function(msg, reader) {
353
- while (reader.nextField()) {
354
- if (reader.isEndGroup()) {
355
- break;
356
- }
357
- var field = reader.getFieldNumber();
358
- switch (field) {
359
- case 1:
360
- var value = /** @type {string} */ (reader.readString());
361
- msg.setPhone(value);
362
- break;
363
- case 2:
364
- var value = /** @type {string} */ (reader.readString());
365
- msg.setLocale(value);
366
- break;
367
- default:
368
- reader.skipField();
369
- break;
370
- }
371
- }
372
- return msg;
373
- };
374
-
375
-
376
- /**
377
- * Serializes the message to binary data (in protobuf wire format).
378
- * @return {!Uint8Array}
379
- */
380
- proto.Auth.AppAuthnProto.SmsLoginRequest.prototype.serializeBinary = function() {
381
- var writer = new jspb.BinaryWriter();
382
- proto.Auth.AppAuthnProto.SmsLoginRequest.serializeBinaryToWriter(this, writer);
383
- return writer.getResultBuffer();
384
- };
385
-
386
-
387
- /**
388
- * Serializes the given message to binary data (in protobuf wire
389
- * format), writing to the given BinaryWriter.
390
- * @param {!proto.Auth.AppAuthnProto.SmsLoginRequest} message
391
- * @param {!jspb.BinaryWriter} writer
392
- * @suppress {unusedLocalVariables} f is only used for nested messages
393
- */
394
- proto.Auth.AppAuthnProto.SmsLoginRequest.serializeBinaryToWriter = function(message, writer) {
395
- var f = undefined;
396
- f = message.getPhone();
397
- if (f.length > 0) {
398
- writer.writeString(
399
- 1,
400
- f
401
- );
402
- }
403
- f = message.getLocale();
404
- if (f.length > 0) {
405
- writer.writeString(
406
- 2,
407
- f
408
- );
409
- }
410
- };
411
-
412
-
413
- /**
414
- * optional string phone = 1;
415
- * @return {string}
416
- */
417
- proto.Auth.AppAuthnProto.SmsLoginRequest.prototype.getPhone = function() {
418
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
419
- };
420
-
421
-
422
- /**
423
- * @param {string} value
424
- * @return {!proto.Auth.AppAuthnProto.SmsLoginRequest} returns this
425
- */
426
- proto.Auth.AppAuthnProto.SmsLoginRequest.prototype.setPhone = function(value) {
427
- return jspb.Message.setProto3StringField(this, 1, value);
428
- };
429
-
430
-
431
- /**
432
- * optional string locale = 2;
433
- * @return {string}
434
- */
435
- proto.Auth.AppAuthnProto.SmsLoginRequest.prototype.getLocale = function() {
436
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
437
- };
438
-
439
-
440
- /**
441
- * @param {string} value
442
- * @return {!proto.Auth.AppAuthnProto.SmsLoginRequest} returns this
443
- */
444
- proto.Auth.AppAuthnProto.SmsLoginRequest.prototype.setLocale = function(value) {
445
- return jspb.Message.setProto3StringField(this, 2, value);
446
- };
447
-
448
-
449
-
450
-
451
-
452
- if (jspb.Message.GENERATE_TO_OBJECT) {
453
- /**
454
- * Creates an object representation of this proto.
455
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
456
- * Optional fields that are not set will be set to undefined.
457
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
458
- * For the list of reserved names please see:
459
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
460
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
461
- * JSPB instance for transitional soy proto support:
462
- * http://goto/soy-param-migration
463
- * @return {!Object}
464
- */
465
- proto.Auth.AppAuthnProto.SmsRefreshRequest.prototype.toObject = function(opt_includeInstance) {
466
- return proto.Auth.AppAuthnProto.SmsRefreshRequest.toObject(opt_includeInstance, this);
467
- };
468
-
469
-
470
- /**
471
- * Static version of the {@see toObject} method.
472
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
473
- * the JSPB instance for transitional soy proto support:
474
- * http://goto/soy-param-migration
475
- * @param {!proto.Auth.AppAuthnProto.SmsRefreshRequest} msg The msg instance to transform.
476
- * @return {!Object}
477
- * @suppress {unusedLocalVariables} f is only used for nested messages
478
- */
479
- proto.Auth.AppAuthnProto.SmsRefreshRequest.toObject = function(includeInstance, msg) {
480
- var f, obj = {
481
- phone: jspb.Message.getFieldWithDefault(msg, 1, ""),
482
- locale: jspb.Message.getFieldWithDefault(msg, 2, "")
483
- };
484
-
485
- if (includeInstance) {
486
- obj.$jspbMessageInstance = msg;
487
- }
488
- return obj;
489
- };
490
- }
491
-
492
-
493
- /**
494
- * Deserializes binary data (in protobuf wire format).
495
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
496
- * @return {!proto.Auth.AppAuthnProto.SmsRefreshRequest}
497
- */
498
- proto.Auth.AppAuthnProto.SmsRefreshRequest.deserializeBinary = function(bytes) {
499
- var reader = new jspb.BinaryReader(bytes);
500
- var msg = new proto.Auth.AppAuthnProto.SmsRefreshRequest;
501
- return proto.Auth.AppAuthnProto.SmsRefreshRequest.deserializeBinaryFromReader(msg, reader);
502
- };
503
-
504
-
505
- /**
506
- * Deserializes binary data (in protobuf wire format) from the
507
- * given reader into the given message object.
508
- * @param {!proto.Auth.AppAuthnProto.SmsRefreshRequest} msg The message object to deserialize into.
509
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
510
- * @return {!proto.Auth.AppAuthnProto.SmsRefreshRequest}
511
- */
512
- proto.Auth.AppAuthnProto.SmsRefreshRequest.deserializeBinaryFromReader = function(msg, reader) {
513
- while (reader.nextField()) {
514
- if (reader.isEndGroup()) {
515
- break;
516
- }
517
- var field = reader.getFieldNumber();
518
- switch (field) {
519
- case 1:
520
- var value = /** @type {string} */ (reader.readString());
521
- msg.setPhone(value);
522
- break;
523
- case 2:
524
- var value = /** @type {string} */ (reader.readString());
525
- msg.setLocale(value);
526
- break;
527
- default:
528
- reader.skipField();
529
- break;
530
- }
531
- }
532
- return msg;
533
- };
534
-
535
-
536
- /**
537
- * Serializes the message to binary data (in protobuf wire format).
538
- * @return {!Uint8Array}
539
- */
540
- proto.Auth.AppAuthnProto.SmsRefreshRequest.prototype.serializeBinary = function() {
541
- var writer = new jspb.BinaryWriter();
542
- proto.Auth.AppAuthnProto.SmsRefreshRequest.serializeBinaryToWriter(this, writer);
543
- return writer.getResultBuffer();
544
- };
545
-
546
-
547
- /**
548
- * Serializes the given message to binary data (in protobuf wire
549
- * format), writing to the given BinaryWriter.
550
- * @param {!proto.Auth.AppAuthnProto.SmsRefreshRequest} message
551
- * @param {!jspb.BinaryWriter} writer
552
- * @suppress {unusedLocalVariables} f is only used for nested messages
553
- */
554
- proto.Auth.AppAuthnProto.SmsRefreshRequest.serializeBinaryToWriter = function(message, writer) {
555
- var f = undefined;
556
- f = message.getPhone();
557
- if (f.length > 0) {
558
- writer.writeString(
559
- 1,
560
- f
561
- );
562
- }
563
- f = message.getLocale();
564
- if (f.length > 0) {
565
- writer.writeString(
566
- 2,
567
- f
568
- );
569
- }
570
- };
571
-
572
-
573
- /**
574
- * optional string phone = 1;
575
- * @return {string}
576
- */
577
- proto.Auth.AppAuthnProto.SmsRefreshRequest.prototype.getPhone = function() {
578
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
579
- };
580
-
581
-
582
- /**
583
- * @param {string} value
584
- * @return {!proto.Auth.AppAuthnProto.SmsRefreshRequest} returns this
585
- */
586
- proto.Auth.AppAuthnProto.SmsRefreshRequest.prototype.setPhone = function(value) {
587
- return jspb.Message.setProto3StringField(this, 1, value);
588
- };
589
-
590
-
591
- /**
592
- * optional string locale = 2;
593
- * @return {string}
594
- */
595
- proto.Auth.AppAuthnProto.SmsRefreshRequest.prototype.getLocale = function() {
596
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
597
- };
598
-
599
-
600
- /**
601
- * @param {string} value
602
- * @return {!proto.Auth.AppAuthnProto.SmsRefreshRequest} returns this
603
- */
604
- proto.Auth.AppAuthnProto.SmsRefreshRequest.prototype.setLocale = function(value) {
605
- return jspb.Message.setProto3StringField(this, 2, 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.AppAuthnProto.SmsVerifyTokenRequest.prototype.toObject = function(opt_includeInstance) {
626
- return proto.Auth.AppAuthnProto.SmsVerifyTokenRequest.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.AppAuthnProto.SmsVerifyTokenRequest} msg The msg instance to transform.
636
- * @return {!Object}
637
- * @suppress {unusedLocalVariables} f is only used for nested messages
638
- */
639
- proto.Auth.AppAuthnProto.SmsVerifyTokenRequest.toObject = function(includeInstance, msg) {
640
- var f, obj = {
641
- phone: jspb.Message.getFieldWithDefault(msg, 1, ""),
642
- token: jspb.Message.getFieldWithDefault(msg, 2, ""),
643
- pushToken: jspb.Message.getFieldWithDefault(msg, 3, ""),
644
- uid: jspb.Message.getFieldWithDefault(msg, 4, ""),
645
- appType: jspb.Message.getFieldWithDefault(msg, 5, 0)
646
- };
647
-
648
- if (includeInstance) {
649
- obj.$jspbMessageInstance = msg;
650
- }
651
- return obj;
652
- };
653
- }
654
-
655
-
656
- /**
657
- * Deserializes binary data (in protobuf wire format).
658
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
659
- * @return {!proto.Auth.AppAuthnProto.SmsVerifyTokenRequest}
660
- */
661
- proto.Auth.AppAuthnProto.SmsVerifyTokenRequest.deserializeBinary = function(bytes) {
662
- var reader = new jspb.BinaryReader(bytes);
663
- var msg = new proto.Auth.AppAuthnProto.SmsVerifyTokenRequest;
664
- return proto.Auth.AppAuthnProto.SmsVerifyTokenRequest.deserializeBinaryFromReader(msg, reader);
665
- };
666
-
667
-
668
- /**
669
- * Deserializes binary data (in protobuf wire format) from the
670
- * given reader into the given message object.
671
- * @param {!proto.Auth.AppAuthnProto.SmsVerifyTokenRequest} msg The message object to deserialize into.
672
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
673
- * @return {!proto.Auth.AppAuthnProto.SmsVerifyTokenRequest}
674
- */
675
- proto.Auth.AppAuthnProto.SmsVerifyTokenRequest.deserializeBinaryFromReader = function(msg, reader) {
676
- while (reader.nextField()) {
677
- if (reader.isEndGroup()) {
678
- break;
679
- }
680
- var field = reader.getFieldNumber();
681
- switch (field) {
682
- case 1:
683
- var value = /** @type {string} */ (reader.readString());
684
- msg.setPhone(value);
685
- break;
686
- case 2:
687
- var value = /** @type {string} */ (reader.readString());
688
- msg.setToken(value);
689
- break;
690
- case 3:
691
- var value = /** @type {string} */ (reader.readString());
692
- msg.setPushToken(value);
693
- break;
694
- case 4:
695
- var value = /** @type {string} */ (reader.readString());
696
- msg.setUid(value);
697
- break;
698
- case 5:
699
- var value = /** @type {!proto.Auth.AppAuthnProto.AppType} */ (reader.readEnum());
700
- msg.setAppType(value);
701
- break;
702
- default:
703
- reader.skipField();
704
- break;
705
- }
706
- }
707
- return msg;
708
- };
709
-
710
-
711
- /**
712
- * Serializes the message to binary data (in protobuf wire format).
713
- * @return {!Uint8Array}
714
- */
715
- proto.Auth.AppAuthnProto.SmsVerifyTokenRequest.prototype.serializeBinary = function() {
716
- var writer = new jspb.BinaryWriter();
717
- proto.Auth.AppAuthnProto.SmsVerifyTokenRequest.serializeBinaryToWriter(this, writer);
718
- return writer.getResultBuffer();
719
- };
720
-
721
-
722
- /**
723
- * Serializes the given message to binary data (in protobuf wire
724
- * format), writing to the given BinaryWriter.
725
- * @param {!proto.Auth.AppAuthnProto.SmsVerifyTokenRequest} message
726
- * @param {!jspb.BinaryWriter} writer
727
- * @suppress {unusedLocalVariables} f is only used for nested messages
728
- */
729
- proto.Auth.AppAuthnProto.SmsVerifyTokenRequest.serializeBinaryToWriter = function(message, writer) {
730
- var f = undefined;
731
- f = message.getPhone();
732
- if (f.length > 0) {
733
- writer.writeString(
734
- 1,
735
- f
736
- );
737
- }
738
- f = message.getToken();
739
- if (f.length > 0) {
740
- writer.writeString(
741
- 2,
742
- f
743
- );
744
- }
745
- f = message.getPushToken();
746
- if (f.length > 0) {
747
- writer.writeString(
748
- 3,
749
- f
750
- );
751
- }
752
- f = message.getUid();
753
- if (f.length > 0) {
754
- writer.writeString(
755
- 4,
756
- f
757
- );
758
- }
759
- f = message.getAppType();
760
- if (f !== 0.0) {
761
- writer.writeEnum(
762
- 5,
763
- f
764
- );
765
- }
766
- };
767
-
768
-
769
- /**
770
- * optional string phone = 1;
771
- * @return {string}
772
- */
773
- proto.Auth.AppAuthnProto.SmsVerifyTokenRequest.prototype.getPhone = function() {
774
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
775
- };
776
-
777
-
778
- /**
779
- * @param {string} value
780
- * @return {!proto.Auth.AppAuthnProto.SmsVerifyTokenRequest} returns this
781
- */
782
- proto.Auth.AppAuthnProto.SmsVerifyTokenRequest.prototype.setPhone = function(value) {
783
- return jspb.Message.setProto3StringField(this, 1, value);
784
- };
785
-
786
-
787
- /**
788
- * optional string token = 2;
789
- * @return {string}
790
- */
791
- proto.Auth.AppAuthnProto.SmsVerifyTokenRequest.prototype.getToken = function() {
792
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
793
- };
794
-
795
-
796
- /**
797
- * @param {string} value
798
- * @return {!proto.Auth.AppAuthnProto.SmsVerifyTokenRequest} returns this
799
- */
800
- proto.Auth.AppAuthnProto.SmsVerifyTokenRequest.prototype.setToken = function(value) {
801
- return jspb.Message.setProto3StringField(this, 2, value);
802
- };
803
-
804
-
805
- /**
806
- * optional string push_token = 3;
807
- * @return {string}
808
- */
809
- proto.Auth.AppAuthnProto.SmsVerifyTokenRequest.prototype.getPushToken = function() {
810
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
811
- };
812
-
813
-
814
- /**
815
- * @param {string} value
816
- * @return {!proto.Auth.AppAuthnProto.SmsVerifyTokenRequest} returns this
817
- */
818
- proto.Auth.AppAuthnProto.SmsVerifyTokenRequest.prototype.setPushToken = function(value) {
819
- return jspb.Message.setProto3StringField(this, 3, value);
820
- };
821
-
822
-
823
- /**
824
- * optional string uid = 4;
825
- * @return {string}
826
- */
827
- proto.Auth.AppAuthnProto.SmsVerifyTokenRequest.prototype.getUid = function() {
828
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
829
- };
830
-
831
-
832
- /**
833
- * @param {string} value
834
- * @return {!proto.Auth.AppAuthnProto.SmsVerifyTokenRequest} returns this
835
- */
836
- proto.Auth.AppAuthnProto.SmsVerifyTokenRequest.prototype.setUid = function(value) {
837
- return jspb.Message.setProto3StringField(this, 4, value);
838
- };
839
-
840
-
841
- /**
842
- * optional AppType app_type = 5;
843
- * @return {!proto.Auth.AppAuthnProto.AppType}
844
- */
845
- proto.Auth.AppAuthnProto.SmsVerifyTokenRequest.prototype.getAppType = function() {
846
- return /** @type {!proto.Auth.AppAuthnProto.AppType} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
847
- };
848
-
849
-
850
- /**
851
- * @param {!proto.Auth.AppAuthnProto.AppType} value
852
- * @return {!proto.Auth.AppAuthnProto.SmsVerifyTokenRequest} returns this
853
- */
854
- proto.Auth.AppAuthnProto.SmsVerifyTokenRequest.prototype.setAppType = function(value) {
855
- return jspb.Message.setProto3EnumField(this, 5, value);
856
- };
857
-
858
-
859
-
860
-
861
-
862
- if (jspb.Message.GENERATE_TO_OBJECT) {
863
- /**
864
- * Creates an object representation of this proto.
865
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
866
- * Optional fields that are not set will be set to undefined.
867
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
868
- * For the list of reserved names please see:
869
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
870
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
871
- * JSPB instance for transitional soy proto support:
872
- * http://goto/soy-param-migration
873
- * @return {!Object}
874
- */
875
- proto.Auth.AppAuthnProto.VerifySecretRequest.prototype.toObject = function(opt_includeInstance) {
876
- return proto.Auth.AppAuthnProto.VerifySecretRequest.toObject(opt_includeInstance, this);
877
- };
878
-
879
-
880
- /**
881
- * Static version of the {@see toObject} method.
882
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
883
- * the JSPB instance for transitional soy proto support:
884
- * http://goto/soy-param-migration
885
- * @param {!proto.Auth.AppAuthnProto.VerifySecretRequest} msg The msg instance to transform.
886
- * @return {!Object}
887
- * @suppress {unusedLocalVariables} f is only used for nested messages
888
- */
889
- proto.Auth.AppAuthnProto.VerifySecretRequest.toObject = function(includeInstance, msg) {
890
- var f, obj = {
891
- phone: jspb.Message.getFieldWithDefault(msg, 1, ""),
892
- secret: jspb.Message.getFieldWithDefault(msg, 2, ""),
893
- pushToken: jspb.Message.getFieldWithDefault(msg, 3, ""),
894
- uid: jspb.Message.getFieldWithDefault(msg, 4, ""),
895
- timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
896
- appType: jspb.Message.getFieldWithDefault(msg, 6, 0)
897
- };
898
-
899
- if (includeInstance) {
900
- obj.$jspbMessageInstance = msg;
901
- }
902
- return obj;
903
- };
904
- }
905
-
906
-
907
- /**
908
- * Deserializes binary data (in protobuf wire format).
909
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
910
- * @return {!proto.Auth.AppAuthnProto.VerifySecretRequest}
911
- */
912
- proto.Auth.AppAuthnProto.VerifySecretRequest.deserializeBinary = function(bytes) {
913
- var reader = new jspb.BinaryReader(bytes);
914
- var msg = new proto.Auth.AppAuthnProto.VerifySecretRequest;
915
- return proto.Auth.AppAuthnProto.VerifySecretRequest.deserializeBinaryFromReader(msg, reader);
916
- };
917
-
918
-
919
- /**
920
- * Deserializes binary data (in protobuf wire format) from the
921
- * given reader into the given message object.
922
- * @param {!proto.Auth.AppAuthnProto.VerifySecretRequest} msg The message object to deserialize into.
923
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
924
- * @return {!proto.Auth.AppAuthnProto.VerifySecretRequest}
925
- */
926
- proto.Auth.AppAuthnProto.VerifySecretRequest.deserializeBinaryFromReader = function(msg, reader) {
927
- while (reader.nextField()) {
928
- if (reader.isEndGroup()) {
929
- break;
930
- }
931
- var field = reader.getFieldNumber();
932
- switch (field) {
933
- case 1:
934
- var value = /** @type {string} */ (reader.readString());
935
- msg.setPhone(value);
936
- break;
937
- case 2:
938
- var value = /** @type {string} */ (reader.readString());
939
- msg.setSecret(value);
940
- break;
941
- case 3:
942
- var value = /** @type {string} */ (reader.readString());
943
- msg.setPushToken(value);
944
- break;
945
- case 4:
946
- var value = /** @type {string} */ (reader.readString());
947
- msg.setUid(value);
948
- break;
949
- case 5:
950
- var value = new google_protobuf_timestamp_pb.Timestamp;
951
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
952
- msg.setTimestamp(value);
953
- break;
954
- case 6:
955
- var value = /** @type {!proto.Auth.AppAuthnProto.AppType} */ (reader.readEnum());
956
- msg.setAppType(value);
957
- break;
958
- default:
959
- reader.skipField();
960
- break;
961
- }
962
- }
963
- return msg;
964
- };
965
-
966
-
967
- /**
968
- * Serializes the message to binary data (in protobuf wire format).
969
- * @return {!Uint8Array}
970
- */
971
- proto.Auth.AppAuthnProto.VerifySecretRequest.prototype.serializeBinary = function() {
972
- var writer = new jspb.BinaryWriter();
973
- proto.Auth.AppAuthnProto.VerifySecretRequest.serializeBinaryToWriter(this, writer);
974
- return writer.getResultBuffer();
975
- };
976
-
977
-
978
- /**
979
- * Serializes the given message to binary data (in protobuf wire
980
- * format), writing to the given BinaryWriter.
981
- * @param {!proto.Auth.AppAuthnProto.VerifySecretRequest} message
982
- * @param {!jspb.BinaryWriter} writer
983
- * @suppress {unusedLocalVariables} f is only used for nested messages
984
- */
985
- proto.Auth.AppAuthnProto.VerifySecretRequest.serializeBinaryToWriter = function(message, writer) {
986
- var f = undefined;
987
- f = message.getPhone();
988
- if (f.length > 0) {
989
- writer.writeString(
990
- 1,
991
- f
992
- );
993
- }
994
- f = message.getSecret();
995
- if (f.length > 0) {
996
- writer.writeString(
997
- 2,
998
- f
999
- );
1000
- }
1001
- f = message.getPushToken();
1002
- if (f.length > 0) {
1003
- writer.writeString(
1004
- 3,
1005
- f
1006
- );
1007
- }
1008
- f = message.getUid();
1009
- if (f.length > 0) {
1010
- writer.writeString(
1011
- 4,
1012
- f
1013
- );
1014
- }
1015
- f = message.getTimestamp();
1016
- if (f != null) {
1017
- writer.writeMessage(
1018
- 5,
1019
- f,
1020
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1021
- );
1022
- }
1023
- f = message.getAppType();
1024
- if (f !== 0.0) {
1025
- writer.writeEnum(
1026
- 6,
1027
- f
1028
- );
1029
- }
1030
- };
1031
-
1032
-
1033
- /**
1034
- * optional string phone = 1;
1035
- * @return {string}
1036
- */
1037
- proto.Auth.AppAuthnProto.VerifySecretRequest.prototype.getPhone = function() {
1038
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1039
- };
1040
-
1041
-
1042
- /**
1043
- * @param {string} value
1044
- * @return {!proto.Auth.AppAuthnProto.VerifySecretRequest} returns this
1045
- */
1046
- proto.Auth.AppAuthnProto.VerifySecretRequest.prototype.setPhone = function(value) {
1047
- return jspb.Message.setProto3StringField(this, 1, value);
1048
- };
1049
-
1050
-
1051
- /**
1052
- * optional string secret = 2;
1053
- * @return {string}
1054
- */
1055
- proto.Auth.AppAuthnProto.VerifySecretRequest.prototype.getSecret = function() {
1056
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1057
- };
1058
-
1059
-
1060
- /**
1061
- * @param {string} value
1062
- * @return {!proto.Auth.AppAuthnProto.VerifySecretRequest} returns this
1063
- */
1064
- proto.Auth.AppAuthnProto.VerifySecretRequest.prototype.setSecret = function(value) {
1065
- return jspb.Message.setProto3StringField(this, 2, value);
1066
- };
1067
-
1068
-
1069
- /**
1070
- * optional string push_token = 3;
1071
- * @return {string}
1072
- */
1073
- proto.Auth.AppAuthnProto.VerifySecretRequest.prototype.getPushToken = function() {
1074
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1075
- };
1076
-
1077
-
1078
- /**
1079
- * @param {string} value
1080
- * @return {!proto.Auth.AppAuthnProto.VerifySecretRequest} returns this
1081
- */
1082
- proto.Auth.AppAuthnProto.VerifySecretRequest.prototype.setPushToken = function(value) {
1083
- return jspb.Message.setProto3StringField(this, 3, value);
1084
- };
1085
-
1086
-
1087
- /**
1088
- * optional string uid = 4;
1089
- * @return {string}
1090
- */
1091
- proto.Auth.AppAuthnProto.VerifySecretRequest.prototype.getUid = function() {
1092
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1093
- };
1094
-
1095
-
1096
- /**
1097
- * @param {string} value
1098
- * @return {!proto.Auth.AppAuthnProto.VerifySecretRequest} returns this
1099
- */
1100
- proto.Auth.AppAuthnProto.VerifySecretRequest.prototype.setUid = function(value) {
1101
- return jspb.Message.setProto3StringField(this, 4, value);
1102
- };
1103
-
1104
-
1105
- /**
1106
- * optional google.protobuf.Timestamp timestamp = 5;
1107
- * @return {?proto.google.protobuf.Timestamp}
1108
- */
1109
- proto.Auth.AppAuthnProto.VerifySecretRequest.prototype.getTimestamp = function() {
1110
- return /** @type{?proto.google.protobuf.Timestamp} */ (
1111
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
1112
- };
1113
-
1114
-
1115
- /**
1116
- * @param {?proto.google.protobuf.Timestamp|undefined} value
1117
- * @return {!proto.Auth.AppAuthnProto.VerifySecretRequest} returns this
1118
- */
1119
- proto.Auth.AppAuthnProto.VerifySecretRequest.prototype.setTimestamp = function(value) {
1120
- return jspb.Message.setWrapperField(this, 5, value);
1121
- };
1122
-
1123
-
1124
- /**
1125
- * Clears the message field making it undefined.
1126
- * @return {!proto.Auth.AppAuthnProto.VerifySecretRequest} returns this
1127
- */
1128
- proto.Auth.AppAuthnProto.VerifySecretRequest.prototype.clearTimestamp = function() {
1129
- return this.setTimestamp(undefined);
1130
- };
1131
-
1132
-
1133
- /**
1134
- * Returns whether this field is set.
1135
- * @return {boolean}
1136
- */
1137
- proto.Auth.AppAuthnProto.VerifySecretRequest.prototype.hasTimestamp = function() {
1138
- return jspb.Message.getField(this, 5) != null;
1139
- };
1140
-
1141
-
1142
- /**
1143
- * optional AppType app_type = 6;
1144
- * @return {!proto.Auth.AppAuthnProto.AppType}
1145
- */
1146
- proto.Auth.AppAuthnProto.VerifySecretRequest.prototype.getAppType = function() {
1147
- return /** @type {!proto.Auth.AppAuthnProto.AppType} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
1148
- };
1149
-
1150
-
1151
- /**
1152
- * @param {!proto.Auth.AppAuthnProto.AppType} value
1153
- * @return {!proto.Auth.AppAuthnProto.VerifySecretRequest} returns this
1154
- */
1155
- proto.Auth.AppAuthnProto.VerifySecretRequest.prototype.setAppType = function(value) {
1156
- return jspb.Message.setProto3EnumField(this, 6, value);
1157
- };
1158
-
1159
-
1160
- /**
1161
- * optional string access_token = 1;
1162
- * @return {string}
1163
- */
1164
- proto.Auth.AppAuthnProto.prototype.getAccessToken = function() {
1165
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1166
- };
1167
-
1168
-
1169
- /**
1170
- * @param {string} value
1171
- * @return {!proto.Auth.AppAuthnProto} returns this
1172
- */
1173
- proto.Auth.AppAuthnProto.prototype.setAccessToken = function(value) {
1174
- return jspb.Message.setProto3StringField(this, 1, value);
1175
- };
1176
-
1177
-
1178
- /**
1179
- * optional string refresh_token = 2;
1180
- * @return {string}
1181
- */
1182
- proto.Auth.AppAuthnProto.prototype.getRefreshToken = function() {
1183
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1184
- };
1185
-
1186
-
1187
- /**
1188
- * @param {string} value
1189
- * @return {!proto.Auth.AppAuthnProto} returns this
1190
- */
1191
- proto.Auth.AppAuthnProto.prototype.setRefreshToken = function(value) {
1192
- return jspb.Message.setProto3StringField(this, 2, value);
1193
- };
1194
-
1195
-
1196
- /**
1197
- * optional google.protobuf.Duration expires_in = 3;
1198
- * @return {?proto.google.protobuf.Duration}
1199
- */
1200
- proto.Auth.AppAuthnProto.prototype.getExpiresIn = function() {
1201
- return /** @type{?proto.google.protobuf.Duration} */ (
1202
- jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 3));
1203
- };
1204
-
1205
-
1206
- /**
1207
- * @param {?proto.google.protobuf.Duration|undefined} value
1208
- * @return {!proto.Auth.AppAuthnProto} returns this
1209
- */
1210
- proto.Auth.AppAuthnProto.prototype.setExpiresIn = function(value) {
1211
- return jspb.Message.setWrapperField(this, 3, value);
1212
- };
1213
-
1214
-
1215
- /**
1216
- * Clears the message field making it undefined.
1217
- * @return {!proto.Auth.AppAuthnProto} returns this
1218
- */
1219
- proto.Auth.AppAuthnProto.prototype.clearExpiresIn = function() {
1220
- return this.setExpiresIn(undefined);
1221
- };
1222
-
1223
-
1224
- /**
1225
- * Returns whether this field is set.
1226
- * @return {boolean}
1227
- */
1228
- proto.Auth.AppAuthnProto.prototype.hasExpiresIn = function() {
1229
- return jspb.Message.getField(this, 3) != null;
1230
- };
1231
-
1232
-
1233
- goog.object.extend(exports, proto.Auth);