1 // This file was automatically generated by protocompiler
5 #import <Foundation/Foundation.h>
6 #import <ProtocolBuffer/PBCodable.h>
8 #import "AWDIPMonitorGlobalEnums.h"
10 typedef NS_ENUM(int32_t, AWDIPMonitorInterfaceAdvisoryReport_Flags
) {
11 AWDIPMonitorInterfaceAdvisoryReport_Flags_LINK_LAYER_ISSUE
= 1,
12 AWDIPMonitorInterfaceAdvisoryReport_Flags_UPLINK_ISSUE
= 2,
15 NS_INLINE NSString
*AWDIPMonitorInterfaceAdvisoryReport_FlagsAsString(AWDIPMonitorInterfaceAdvisoryReport_Flags value
)
19 case AWDIPMonitorInterfaceAdvisoryReport_Flags_LINK_LAYER_ISSUE
: return @
"LINK_LAYER_ISSUE";
20 case AWDIPMonitorInterfaceAdvisoryReport_Flags_UPLINK_ISSUE
: return @
"UPLINK_ISSUE";
21 default: return [NSString stringWithFormat
:@
"(unknown: %i)", value
];
26 NS_INLINE AWDIPMonitorInterfaceAdvisoryReport_Flags
StringAsAWDIPMonitorInterfaceAdvisoryReport_Flags(NSString
*value
)
28 if ([value isEqualToString
:@
"LINK_LAYER_ISSUE"]) return AWDIPMonitorInterfaceAdvisoryReport_Flags_LINK_LAYER_ISSUE
;
29 if ([value isEqualToString
:@
"UPLINK_ISSUE"]) return AWDIPMonitorInterfaceAdvisoryReport_Flags_UPLINK_ISSUE
;
30 return AWDIPMonitorInterfaceAdvisoryReport_Flags_LINK_LAYER_ISSUE
;
35 #define AWDIPMONITORINTERFACEADVISORYREPORT_FUNCTION extern "C"
37 #define AWDIPMONITORINTERFACEADVISORYREPORT_FUNCTION extern
40 @interface AWDIPMonitorInterfaceAdvisoryReport
: PBCodable
<NSCopying
>
43 uint32_t _advisoryCount
;
45 AWDIPMonitorInterfaceType _interfaceType
;
55 @
property (nonatomic
) BOOL hasTimestamp
;
56 @
property (nonatomic
) uint64_t timestamp
;
58 @
property (nonatomic
) BOOL hasInterfaceType
;
59 @
property (nonatomic
) AWDIPMonitorInterfaceType interfaceType
;
60 - (NSString
*)interfaceTypeAsString
:(AWDIPMonitorInterfaceType
)value
;
61 - (AWDIPMonitorInterfaceType
)StringAsInterfaceType
:(NSString
*)str
;
63 @
property (nonatomic
) BOOL hasFlags
;
64 @
property (nonatomic
) uint32_t flags
;
66 @
property (nonatomic
) BOOL hasAdvisoryCount
;
67 @
property (nonatomic
) uint32_t advisoryCount
;
69 // Performs a shallow copy into other
70 - (void)copyTo
:(AWDIPMonitorInterfaceAdvisoryReport
*)other
;
72 // Performs a deep merge from other into self
73 // If set in other, singular values in self are replaced in self
74 // Singular composite values are recursively merged
75 // Repeated values from other are appended to repeated values in self
76 - (void)mergeFrom
:(AWDIPMonitorInterfaceAdvisoryReport
*)other
;
78 AWDIPMONITORINTERFACEADVISORYREPORT_FUNCTION BOOL
AWDIPMonitorInterfaceAdvisoryReportReadFrom(AWDIPMonitorInterfaceAdvisoryReport
*self
, PBDataReader
*reader
);