]> git.saurik.com Git - apple/security.git/blob - keychain/analytics/C2Metric/SECC2MPGenericEventMetricValue.h
Security-59754.80.3.tar.gz
[apple/security.git] / keychain / analytics / C2Metric / SECC2MPGenericEventMetricValue.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 SECC2MPGENERICEVENTMETRICVALUE_FUNCTION extern "C" __attribute__((visibility("hidden")))
12 #else
13 #define SECC2MPGENERICEVENTMETRICVALUE_FUNCTION extern __attribute__((visibility("hidden")))
14 #endif
15
16 __attribute__((visibility("hidden")))
17 @interface SECC2MPGenericEventMetricValue : PBCodable <NSCopying>
18 {
19 uint64_t _dateValue;
20 double _doubleValue;
21 SECC2MPError *_errorValue;
22 NSString *_stringValue;
23 struct {
24 int dateValue:1;
25 int doubleValue:1;
26 } _has;
27 }
28
29
30 @property (nonatomic, readonly) BOOL hasStringValue;
31 @property (nonatomic, retain) NSString *stringValue;
32
33 @property (nonatomic) BOOL hasDoubleValue;
34 @property (nonatomic) double doubleValue;
35
36 @property (nonatomic) BOOL hasDateValue;
37 @property (nonatomic) uint64_t dateValue;
38
39 @property (nonatomic, readonly) BOOL hasErrorValue;
40 @property (nonatomic, retain) SECC2MPError *errorValue;
41
42 // Performs a shallow copy into other
43 - (void)copyTo:(SECC2MPGenericEventMetricValue *)other;
44
45 // Performs a deep merge from other into self
46 // If set in other, singular values in self are replaced in self
47 // Singular composite values are recursively merged
48 // Repeated values from other are appended to repeated values in self
49 - (void)mergeFrom:(SECC2MPGenericEventMetricValue *)other;
50
51 SECC2MPGENERICEVENTMETRICVALUE_FUNCTION BOOL SECC2MPGenericEventMetricValueReadFrom(__unsafe_unretained SECC2MPGenericEventMetricValue *self, __unsafe_unretained PBDataReader *reader);
52
53 @end
54