]> git.saurik.com Git - apple/security.git/blob - keychain/analytics/C2Metric/SECC2MPError.h
Security-59306.11.20.tar.gz
[apple/security.git] / keychain / analytics / C2Metric / SECC2MPError.h
1 // This file was automatically generated by protocompiler
2 // DO NOT EDIT!
3 // Compiled from C2Metric.proto
4
5 #import <Foundation/Foundation.h>
6 #import <ProtocolBuffer/PBCodable.h>
7
8 @class SECC2MPError;
9
10 #ifdef __cplusplus
11 #define SECC2MPERROR_FUNCTION extern "C" __attribute__((visibility("hidden")))
12 #else
13 #define SECC2MPERROR_FUNCTION extern __attribute__((visibility("hidden")))
14 #endif
15
16 __attribute__((visibility("hidden")))
17 @interface SECC2MPError : PBCodable <NSCopying>
18 {
19 int64_t _errorCode;
20 NSString *_errorDescription;
21 NSString *_errorDomain;
22 SECC2MPError *_underlyingError;
23 struct {
24 int errorCode:1;
25 } _has;
26 }
27
28
29 @property (nonatomic, readonly) BOOL hasErrorDomain;
30 @property (nonatomic, retain) NSString *errorDomain;
31
32 @property (nonatomic) BOOL hasErrorCode;
33 @property (nonatomic) int64_t errorCode;
34
35 @property (nonatomic, readonly) BOOL hasErrorDescription;
36 @property (nonatomic, retain) NSString *errorDescription;
37
38 @property (nonatomic, readonly) BOOL hasUnderlyingError;
39 @property (nonatomic, retain) SECC2MPError *underlyingError;
40
41 // Performs a shallow copy into other
42 - (void)copyTo:(SECC2MPError *)other;
43
44 // Performs a deep merge from other into self
45 // If set in other, singular values in self are replaced in self
46 // Singular composite values are recursively merged
47 // Repeated values from other are appended to repeated values in self
48 - (void)mergeFrom:(SECC2MPError *)other;
49
50 SECC2MPERROR_FUNCTION BOOL SECC2MPErrorReadFrom(__unsafe_unretained SECC2MPError *self, __unsafe_unretained PBDataReader *reader);
51
52 @end
53