OTSOSMessage.h   [plain text]


// This file was automatically generated by protocompiler
// DO NOT EDIT!
// Compiled from OTPairingMessage.proto

#import <Foundation/Foundation.h>
#import <ProtocolBuffer/PBCodable.h>

#ifdef __cplusplus
#define OTSOSMESSAGE_FUNCTION extern "C" __attribute__((visibility("hidden")))
#else
#define OTSOSMESSAGE_FUNCTION extern __attribute__((visibility("hidden")))
#endif

__attribute__((visibility("hidden")))
@interface OTSOSMessage : PBCodable <NSCopying>
{
    NSData *_circleBlob;
    NSData *_credential;
    NSData *_initialSyncItems;
    NSData *_peerInfo;
}


@property (nonatomic, readonly) BOOL hasCredential;
@property (nonatomic, retain) NSData *credential;

@property (nonatomic, readonly) BOOL hasPeerInfo;
@property (nonatomic, retain) NSData *peerInfo;

@property (nonatomic, readonly) BOOL hasCircleBlob;
@property (nonatomic, retain) NSData *circleBlob;

@property (nonatomic, readonly) BOOL hasInitialSyncItems;
@property (nonatomic, retain) NSData *initialSyncItems;

// Performs a shallow copy into other
- (void)copyTo:(OTSOSMessage *)other;

// Performs a deep merge from other into self
// If set in other, singular values in self are replaced in self
// Singular composite values are recursively merged
// Repeated values from other are appended to repeated values in self
- (void)mergeFrom:(OTSOSMessage *)other;

OTSOSMESSAGE_FUNCTION BOOL OTSOSMessageReadFrom(__unsafe_unretained OTSOSMessage *self, __unsafe_unretained PBDataReader *reader);

@end