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 OTSponsorToApplicantRound1M2
;
9 @
class OTApplicantToSponsorRound2M1
;
10 @
class OTSponsorToApplicantRound2M2
;
14 #define OTPAIRINGMESSAGE_FUNCTION extern "C" __attribute__((visibility("hidden")))
16 #define OTPAIRINGMESSAGE_FUNCTION extern __attribute__((visibility("hidden")))
19 __attribute__((visibility("hidden")))
20 @interface OTPairingMessage
: PBCodable
<NSCopying
>
22 OTSponsorToApplicantRound1M2
*_epoch
;
23 OTApplicantToSponsorRound2M1
*_prepare
;
24 OTSOSMessage
*_sosPairingMessage
;
25 OTSponsorToApplicantRound2M2
*_voucher
;
29 @
property (nonatomic
, readonly
) BOOL hasEpoch
;
30 @
property (nonatomic
, retain
) OTSponsorToApplicantRound1M2
*epoch
;
32 @
property (nonatomic
, readonly
) BOOL hasPrepare
;
33 @
property (nonatomic
, retain
) OTApplicantToSponsorRound2M1
*prepare
;
35 @
property (nonatomic
, readonly
) BOOL hasVoucher
;
36 @
property (nonatomic
, retain
) OTSponsorToApplicantRound2M2
*voucher
;
38 @
property (nonatomic
, readonly
) BOOL hasSosPairingMessage
;
39 @
property (nonatomic
, retain
) OTSOSMessage
*sosPairingMessage
;
41 // Performs a shallow copy into other
42 - (void)copyTo
:(OTPairingMessage
*)other
;
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
:(OTPairingMessage
*)other
;
50 OTPAIRINGMESSAGE_FUNCTION BOOL
OTPairingMessageReadFrom(__unsafe_unretained OTPairingMessage
*self
, __unsafe_unretained PBDataReader
*reader
);