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
;
13 #define OTPAIRINGMESSAGE_FUNCTION extern "C" __attribute__((visibility("hidden")))
15 #define OTPAIRINGMESSAGE_FUNCTION extern __attribute__((visibility("hidden")))
19 * Claimed for a field, but never used
22 __attribute__((visibility("hidden")))
23 @interface OTPairingMessage
: PBCodable
<NSCopying
>
25 OTSponsorToApplicantRound1M2
*_epoch
;
26 OTApplicantToSponsorRound2M1
*_prepare
;
27 OTSponsorToApplicantRound2M2
*_voucher
;
31 @
property (nonatomic
, readonly
) BOOL hasEpoch
;
32 @
property (nonatomic
, retain
) OTSponsorToApplicantRound1M2
*epoch
;
34 @
property (nonatomic
, readonly
) BOOL hasPrepare
;
35 @
property (nonatomic
, retain
) OTApplicantToSponsorRound2M1
*prepare
;
37 @
property (nonatomic
, readonly
) BOOL hasVoucher
;
38 @
property (nonatomic
, retain
) OTSponsorToApplicantRound2M2
*voucher
;
40 // Performs a shallow copy into other
41 - (void)copyTo
:(OTPairingMessage
*)other
;
43 // Performs a deep merge from other into self
44 // If set in other, singular values in self are replaced in self
45 // Singular composite values are recursively merged
46 // Repeated values from other are appended to repeated values in self
47 - (void)mergeFrom
:(OTPairingMessage
*)other
;
49 OTPAIRINGMESSAGE_FUNCTION BOOL
OTPairingMessageReadFrom(__unsafe_unretained OTPairingMessage
*self
, __unsafe_unretained PBDataReader
*reader
);