1 // This file was automatically generated by protocompiler
3 // Compiled from OTBottleContents.proto
5 #import <Foundation/Foundation.h>
6 #import <ProtocolBuffer/PBCodable.h>
11 #define OTBOTTLECONTENTS_FUNCTION extern "C" __attribute__((visibility("hidden")))
13 #define OTBOTTLECONTENTS_FUNCTION extern __attribute__((visibility("hidden")))
16 __attribute__((visibility("hidden")))
17 @interface OTBottleContents
: PBCodable
<NSCopying
>
19 OTPrivateKey
*_peerEncryptionPrivKey
;
20 OTPrivateKey
*_peerSigningPrivKey
;
26 @
property (nonatomic
, readonly
) BOOL hasReserved1
;
27 /** tags 1 and 2 were briefly used during development for the raw private key data, with nothing to specify the key type. */
28 @
property (nonatomic
, retain
) NSData
*reserved1
;
30 @
property (nonatomic
, readonly
) BOOL hasReserved2
;
31 @
property (nonatomic
, retain
) NSData
*reserved2
;
33 @
property (nonatomic
, readonly
) BOOL hasPeerSigningPrivKey
;
34 @
property (nonatomic
, retain
) OTPrivateKey
*peerSigningPrivKey
;
36 @
property (nonatomic
, readonly
) BOOL hasPeerEncryptionPrivKey
;
37 @
property (nonatomic
, retain
) OTPrivateKey
*peerEncryptionPrivKey
;
39 // Performs a shallow copy into other
40 - (void)copyTo
:(OTBottleContents
*)other
;
42 // Performs a deep merge from other into self
43 // If set in other, singular values in self are replaced in self
44 // Singular composite values are recursively merged
45 // Repeated values from other are appended to repeated values in self
46 - (void)mergeFrom
:(OTBottleContents
*)other
;
48 OTBOTTLECONTENTS_FUNCTION BOOL
OTBottleContentsReadFrom(__unsafe_unretained OTBottleContents
*self
, __unsafe_unretained PBDataReader
*reader
);