1 // This file was automatically generated by protocompiler
3 // Compiled from OTPairingMessage.proto
5 #import <Foundation/Foundation.h>
6 #import <ProtocolBuffer/PBCodable.h>
8 @
class OTApplicantToSponsorRound2M1
;
9 @
class OTSponsorToApplicantRound1M2
;
10 @
class OTSponsorToApplicantRound2M2
;
11 @
class OTSupportOctagonMessage
;
12 @
class OTSupportSOSMessage
;
15 #define OTPAIRINGMESSAGE_FUNCTION extern "C" __attribute__((visibility("hidden")))
17 #define OTPAIRINGMESSAGE_FUNCTION extern __attribute__((visibility("hidden")))
21 * Claimed for a field, but never used
24 __attribute__((visibility("hidden")))
25 @interface OTPairingMessage
: PBCodable
<NSCopying
>
27 OTSponsorToApplicantRound1M2
*_epoch
;
28 OTApplicantToSponsorRound2M1
*_prepare
;
29 OTSupportOctagonMessage
*_supportsOctagon
;
30 OTSupportSOSMessage
*_supportsSOS
;
31 OTSponsorToApplicantRound2M2
*_voucher
;
35 @
property (nonatomic
, readonly
) BOOL hasEpoch
;
36 @
property (nonatomic
, retain
) OTSponsorToApplicantRound1M2
*epoch
;
38 @
property (nonatomic
, readonly
) BOOL hasPrepare
;
39 @
property (nonatomic
, retain
) OTApplicantToSponsorRound2M1
*prepare
;
41 @
property (nonatomic
, readonly
) BOOL hasVoucher
;
42 @
property (nonatomic
, retain
) OTSponsorToApplicantRound2M2
*voucher
;
44 @
property (nonatomic
, readonly
) BOOL hasSupportsOctagon
;
45 @
property (nonatomic
, retain
) OTSupportOctagonMessage
*supportsOctagon
;
47 @
property (nonatomic
, readonly
) BOOL hasSupportsSOS
;
48 @
property (nonatomic
, retain
) OTSupportSOSMessage
*supportsSOS
;
50 // Performs a shallow copy into other
51 - (void)copyTo
:(OTPairingMessage
*)other
;
53 // Performs a deep merge from other into self
54 // If set in other, singular values in self are replaced in self
55 // Singular composite values are recursively merged
56 // Repeated values from other are appended to repeated values in self
57 - (void)mergeFrom
:(OTPairingMessage
*)other
;
59 OTPAIRINGMESSAGE_FUNCTION BOOL
OTPairingMessageReadFrom(__unsafe_unretained OTPairingMessage
*self
, __unsafe_unretained PBDataReader
*reader
);