1 // This file was automatically generated by protocompiler
3 // Compiled from OTBottleContents.proto
5 #import <Foundation/Foundation.h>
6 #import <ProtocolBuffer/PBCodable.h>
12 #define OTBOTTLECONTENTS_FUNCTION extern "C" __attribute__((visibility("hidden")))
14 #define OTBOTTLECONTENTS_FUNCTION extern __attribute__((visibility("hidden")))
17 __attribute__((visibility("hidden")))
18 @interface OTBottleContents
: PBCodable
<NSCopying
>
20 OTPrivateKey
*_peerEncryptionPrivKey
;
21 OTPrivateKey
*_peerSigningPrivKey
;
27 @
property (nonatomic
, readonly
) BOOL hasReserved1
;
28 /** tags 1 and 2 were briefly used during development for the raw private key data, with nothing to specify the key type. */
29 @
property (nonatomic
, retain
) NSData
*reserved1
;
31 @
property (nonatomic
, readonly
) BOOL hasReserved2
;
32 @
property (nonatomic
, retain
) NSData
*reserved2
;
34 @
property (nonatomic
, readonly
) BOOL hasPeerSigningPrivKey
;
35 @
property (nonatomic
, retain
) OTPrivateKey
*peerSigningPrivKey
;
37 @
property (nonatomic
, readonly
) BOOL hasPeerEncryptionPrivKey
;
38 @
property (nonatomic
, retain
) OTPrivateKey
*peerEncryptionPrivKey
;
40 // Performs a shallow copy into other
41 - (void)copyTo
:(OTBottleContents
*)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
:(OTBottleContents
*)other
;
49 OTBOTTLECONTENTS_FUNCTION BOOL
OTBottleContentsReadFrom(__unsafe_unretained OTBottleContents
*self
, __unsafe_unretained PBDataReader
*reader
);