commit | author | age
|
aca600
|
1 |
// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) |
L |
2 |
#ifndef FIREBASECOREINTERNAL_SWIFT_H |
|
3 |
#define FIREBASECOREINTERNAL_SWIFT_H |
|
4 |
#pragma clang diagnostic push |
|
5 |
#pragma clang diagnostic ignored "-Wgcc-compat" |
|
6 |
|
|
7 |
#if !defined(__has_include) |
|
8 |
# define __has_include(x) 0 |
|
9 |
#endif |
|
10 |
#if !defined(__has_attribute) |
|
11 |
# define __has_attribute(x) 0 |
|
12 |
#endif |
|
13 |
#if !defined(__has_feature) |
|
14 |
# define __has_feature(x) 0 |
|
15 |
#endif |
|
16 |
#if !defined(__has_warning) |
|
17 |
# define __has_warning(x) 0 |
|
18 |
#endif |
|
19 |
|
|
20 |
#if __has_include(<swift/objc-prologue.h>) |
|
21 |
# include <swift/objc-prologue.h> |
|
22 |
#endif |
|
23 |
|
|
24 |
#pragma clang diagnostic ignored "-Wauto-import" |
|
25 |
#include <Foundation/Foundation.h> |
|
26 |
#include <stdint.h> |
|
27 |
#include <stddef.h> |
|
28 |
#include <stdbool.h> |
|
29 |
|
|
30 |
#if !defined(SWIFT_TYPEDEFS) |
|
31 |
# define SWIFT_TYPEDEFS 1 |
|
32 |
# if __has_include(<uchar.h>) |
|
33 |
# include <uchar.h> |
|
34 |
# elif !defined(__cplusplus) |
|
35 |
typedef uint_least16_t char16_t; |
|
36 |
typedef uint_least32_t char32_t; |
|
37 |
# endif |
|
38 |
typedef float swift_float2 __attribute__((__ext_vector_type__(2))); |
|
39 |
typedef float swift_float3 __attribute__((__ext_vector_type__(3))); |
|
40 |
typedef float swift_float4 __attribute__((__ext_vector_type__(4))); |
|
41 |
typedef double swift_double2 __attribute__((__ext_vector_type__(2))); |
|
42 |
typedef double swift_double3 __attribute__((__ext_vector_type__(3))); |
|
43 |
typedef double swift_double4 __attribute__((__ext_vector_type__(4))); |
|
44 |
typedef int swift_int2 __attribute__((__ext_vector_type__(2))); |
|
45 |
typedef int swift_int3 __attribute__((__ext_vector_type__(3))); |
|
46 |
typedef int swift_int4 __attribute__((__ext_vector_type__(4))); |
|
47 |
typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); |
|
48 |
typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); |
|
49 |
typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); |
|
50 |
#endif |
|
51 |
|
|
52 |
#if !defined(SWIFT_PASTE) |
|
53 |
# define SWIFT_PASTE_HELPER(x, y) x##y |
|
54 |
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) |
|
55 |
#endif |
|
56 |
#if !defined(SWIFT_METATYPE) |
|
57 |
# define SWIFT_METATYPE(X) Class |
|
58 |
#endif |
|
59 |
#if !defined(SWIFT_CLASS_PROPERTY) |
|
60 |
# if __has_feature(objc_class_property) |
|
61 |
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ |
|
62 |
# else |
|
63 |
# define SWIFT_CLASS_PROPERTY(...) |
|
64 |
# endif |
|
65 |
#endif |
|
66 |
|
|
67 |
#if __has_attribute(objc_runtime_name) |
|
68 |
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) |
|
69 |
#else |
|
70 |
# define SWIFT_RUNTIME_NAME(X) |
|
71 |
#endif |
|
72 |
#if __has_attribute(swift_name) |
|
73 |
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) |
|
74 |
#else |
|
75 |
# define SWIFT_COMPILE_NAME(X) |
|
76 |
#endif |
|
77 |
#if __has_attribute(objc_method_family) |
|
78 |
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) |
|
79 |
#else |
|
80 |
# define SWIFT_METHOD_FAMILY(X) |
|
81 |
#endif |
|
82 |
#if __has_attribute(noescape) |
|
83 |
# define SWIFT_NOESCAPE __attribute__((noescape)) |
|
84 |
#else |
|
85 |
# define SWIFT_NOESCAPE |
|
86 |
#endif |
|
87 |
#if __has_attribute(ns_consumed) |
|
88 |
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) |
|
89 |
#else |
|
90 |
# define SWIFT_RELEASES_ARGUMENT |
|
91 |
#endif |
|
92 |
#if __has_attribute(warn_unused_result) |
|
93 |
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) |
|
94 |
#else |
|
95 |
# define SWIFT_WARN_UNUSED_RESULT |
|
96 |
#endif |
|
97 |
#if __has_attribute(noreturn) |
|
98 |
# define SWIFT_NORETURN __attribute__((noreturn)) |
|
99 |
#else |
|
100 |
# define SWIFT_NORETURN |
|
101 |
#endif |
|
102 |
#if !defined(SWIFT_CLASS_EXTRA) |
|
103 |
# define SWIFT_CLASS_EXTRA |
|
104 |
#endif |
|
105 |
#if !defined(SWIFT_PROTOCOL_EXTRA) |
|
106 |
# define SWIFT_PROTOCOL_EXTRA |
|
107 |
#endif |
|
108 |
#if !defined(SWIFT_ENUM_EXTRA) |
|
109 |
# define SWIFT_ENUM_EXTRA |
|
110 |
#endif |
|
111 |
#if !defined(SWIFT_CLASS) |
|
112 |
# if __has_attribute(objc_subclassing_restricted) |
|
113 |
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA |
|
114 |
# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA |
|
115 |
# else |
|
116 |
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA |
|
117 |
# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA |
|
118 |
# endif |
|
119 |
#endif |
|
120 |
#if !defined(SWIFT_RESILIENT_CLASS) |
|
121 |
# if __has_attribute(objc_class_stub) |
|
122 |
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) |
|
123 |
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) |
|
124 |
# else |
|
125 |
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) |
|
126 |
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) |
|
127 |
# endif |
|
128 |
#endif |
|
129 |
|
|
130 |
#if !defined(SWIFT_PROTOCOL) |
|
131 |
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA |
|
132 |
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA |
|
133 |
#endif |
|
134 |
|
|
135 |
#if !defined(SWIFT_EXTENSION) |
|
136 |
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) |
|
137 |
#endif |
|
138 |
|
|
139 |
#if !defined(OBJC_DESIGNATED_INITIALIZER) |
|
140 |
# if __has_attribute(objc_designated_initializer) |
|
141 |
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) |
|
142 |
# else |
|
143 |
# define OBJC_DESIGNATED_INITIALIZER |
|
144 |
# endif |
|
145 |
#endif |
|
146 |
#if !defined(SWIFT_ENUM_ATTR) |
|
147 |
# if defined(__has_attribute) && __has_attribute(enum_extensibility) |
|
148 |
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) |
|
149 |
# else |
|
150 |
# define SWIFT_ENUM_ATTR(_extensibility) |
|
151 |
# endif |
|
152 |
#endif |
|
153 |
#if !defined(SWIFT_ENUM) |
|
154 |
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type |
|
155 |
# if __has_feature(generalized_swift_name) |
|
156 |
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type |
|
157 |
# else |
|
158 |
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) |
|
159 |
# endif |
|
160 |
#endif |
|
161 |
#if !defined(SWIFT_UNAVAILABLE) |
|
162 |
# define SWIFT_UNAVAILABLE __attribute__((unavailable)) |
|
163 |
#endif |
|
164 |
#if !defined(SWIFT_UNAVAILABLE_MSG) |
|
165 |
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) |
|
166 |
#endif |
|
167 |
#if !defined(SWIFT_AVAILABILITY) |
|
168 |
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) |
|
169 |
#endif |
|
170 |
#if !defined(SWIFT_WEAK_IMPORT) |
|
171 |
# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) |
|
172 |
#endif |
|
173 |
#if !defined(SWIFT_DEPRECATED) |
|
174 |
# define SWIFT_DEPRECATED __attribute__((deprecated)) |
|
175 |
#endif |
|
176 |
#if !defined(SWIFT_DEPRECATED_MSG) |
|
177 |
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) |
|
178 |
#endif |
|
179 |
#if __has_feature(attribute_diagnose_if_objc) |
|
180 |
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) |
|
181 |
#else |
|
182 |
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) |
|
183 |
#endif |
|
184 |
#if !defined(IBSegueAction) |
|
185 |
# define IBSegueAction |
|
186 |
#endif |
|
187 |
#if !defined(SWIFT_EXTERN) |
|
188 |
# if defined(__cplusplus) |
|
189 |
# define SWIFT_EXTERN extern "C" |
|
190 |
# else |
|
191 |
# define SWIFT_EXTERN extern |
|
192 |
# endif |
|
193 |
#endif |
|
194 |
#if __has_feature(modules) |
|
195 |
#if __has_warning("-Watimport-in-framework-header") |
|
196 |
#pragma clang diagnostic ignored "-Watimport-in-framework-header" |
|
197 |
#endif |
|
198 |
@import ObjectiveC; |
|
199 |
#endif |
|
200 |
|
|
201 |
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" |
|
202 |
#pragma clang diagnostic ignored "-Wduplicate-method-arg" |
|
203 |
#if __has_warning("-Wpragma-clang-attribute") |
|
204 |
# pragma clang diagnostic ignored "-Wpragma-clang-attribute" |
|
205 |
#endif |
|
206 |
#pragma clang diagnostic ignored "-Wunknown-pragmas" |
|
207 |
#pragma clang diagnostic ignored "-Wnullability" |
|
208 |
|
|
209 |
#if __has_attribute(external_source_symbol) |
|
210 |
# pragma push_macro("any") |
|
211 |
# undef any |
|
212 |
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FirebaseCoreInternal",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) |
|
213 |
# pragma pop_macro("any") |
|
214 |
#endif |
|
215 |
|
|
216 |
|
|
217 |
@class NSString; |
|
218 |
@class FIRHeartbeatsPayload; |
|
219 |
|
|
220 |
/// An object that provides API to log and flush heartbeats from a synchronized storage container. |
|
221 |
SWIFT_CLASS_NAMED("_ObjC_HeartbeatController") |
|
222 |
@interface FIRHeartbeatController : NSObject |
|
223 |
/// Public initializer. |
|
224 |
/// \param id The <code>id</code> to associate this controller’s heartbeat storage with. |
|
225 |
/// |
|
226 |
- (nonnull instancetype)initWithId:(NSString * _Nonnull)id OBJC_DESIGNATED_INITIALIZER; |
|
227 |
/// Asynchronously logs a new heartbeat, if needed. |
|
228 |
/// note: |
|
229 |
/// This API is thread-safe. |
|
230 |
/// \param agent The string agent (i.e. Firebase User Agent) to associate the logged heartbeat with. |
|
231 |
/// |
|
232 |
- (void)log:(NSString * _Nonnull)agent; |
|
233 |
/// Synchronously flushes heartbeats from storage into a heartbeats payload. |
|
234 |
/// note: |
|
235 |
/// This API is thread-safe. |
|
236 |
/// |
|
237 |
/// returns: |
|
238 |
/// A heartbeats payload for the flushed heartbeat(s). |
|
239 |
- (FIRHeartbeatsPayload * _Nonnull)flush SWIFT_WARN_UNUSED_RESULT; |
|
240 |
/// Synchronously flushes the heartbeat for today. |
|
241 |
/// If no heartbeat was logged today, the returned payload is empty. |
|
242 |
/// note: |
|
243 |
/// This API is thread-safe. |
|
244 |
/// |
|
245 |
/// returns: |
|
246 |
/// A heartbeats payload for the flushed heartbeat. |
|
247 |
- (FIRHeartbeatsPayload * _Nonnull)flushHeartbeatFromToday SWIFT_WARN_UNUSED_RESULT; |
|
248 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
249 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
250 |
@end |
|
251 |
|
|
252 |
|
|
253 |
/// A model object representing a payload of heartbeat data intended for sending in network requests. |
|
254 |
SWIFT_CLASS_NAMED("_ObjC_HeartbeatsPayload") |
|
255 |
@interface FIRHeartbeatsPayload : NSObject |
|
256 |
/// Returns a processed payload string intended for use in a HTTP header. |
|
257 |
/// |
|
258 |
/// returns: |
|
259 |
/// A string value from the heartbeats payload. |
|
260 |
- (NSString * _Nonnull)headerValue SWIFT_WARN_UNUSED_RESULT; |
|
261 |
/// A Boolean value indicating whether the payload is empty. |
|
262 |
@property (nonatomic, readonly) BOOL isEmpty; |
|
263 |
- (nonnull instancetype)init SWIFT_UNAVAILABLE; |
|
264 |
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); |
|
265 |
@end |
|
266 |
|
|
267 |
#if __has_attribute(external_source_symbol) |
|
268 |
# pragma clang attribute pop |
|
269 |
#endif |
|
270 |
#pragma clang diagnostic pop |
|
271 |
#endif |