Move profile key to data, call, sync and null protos.

// FREEBIE
pull/1/head
Matthew Chen 8 years ago
parent 37ce388eb6
commit b5fdc05b91

@ -35,7 +35,6 @@ message Content {
optional SyncMessage syncMessage = 2; optional SyncMessage syncMessage = 2;
optional CallMessage callMessage = 3; optional CallMessage callMessage = 3;
optional NullMessage nullMessage = 4; optional NullMessage nullMessage = 4;
optional bytes profileKey = 5;
} }
message NullMessage { message NullMessage {
@ -85,12 +84,12 @@ message CallMessage {
optional uint64 id = 1; optional uint64 id = 1;
} }
optional Offer offer = 1;
optional Offer offer = 1; optional Answer answer = 2;
optional Answer answer = 2; repeated IceUpdate iceUpdate = 3;
repeated IceUpdate iceUpdate = 3; optional Hangup hangup = 4;
optional Hangup hangup = 4; optional Busy busy = 5;
optional Busy busy = 5; optional bytes profileKey = 6;
} }
message DataMessage { message DataMessage {
@ -104,6 +103,7 @@ message DataMessage {
optional GroupContext group = 3; optional GroupContext group = 3;
optional uint32 flags = 4; optional uint32 flags = 4;
optional uint32 expireTimer = 5; optional uint32 expireTimer = 5;
optional bytes profileKey = 6;
} }
message SyncMessage { message SyncMessage {
@ -143,14 +143,15 @@ message SyncMessage {
optional uint64 timestamp = 2; optional uint64 timestamp = 2;
} }
optional Sent sent = 1; optional Sent sent = 1;
optional Contacts contacts = 2; optional Contacts contacts = 2;
optional Groups groups = 3; optional Groups groups = 3;
optional Request request = 4; optional Request request = 4;
repeated Read read = 5; repeated Read read = 5;
optional Blocked blocked = 6; optional Blocked blocked = 6;
optional Verified verified = 7; optional Verified verified = 7;
optional bytes padding = 8; optional bytes padding = 8;
optional bytes profileKey = 9;
} }
message AttachmentPointer { message AttachmentPointer {

@ -275,30 +275,25 @@ NSString *NSStringFromOWSSignalServiceProtosGroupContextType(OWSSignalServicePro
#define Content_syncMessage @"syncMessage" #define Content_syncMessage @"syncMessage"
#define Content_callMessage @"callMessage" #define Content_callMessage @"callMessage"
#define Content_nullMessage @"nullMessage" #define Content_nullMessage @"nullMessage"
#define Content_profileKey @"profileKey"
@interface OWSSignalServiceProtosContent : PBGeneratedMessage<GeneratedMessageProtocol> { @interface OWSSignalServiceProtosContent : PBGeneratedMessage<GeneratedMessageProtocol> {
@private @private
BOOL hasDataMessage_:1; BOOL hasDataMessage_:1;
BOOL hasSyncMessage_:1; BOOL hasSyncMessage_:1;
BOOL hasCallMessage_:1; BOOL hasCallMessage_:1;
BOOL hasNullMessage_:1; BOOL hasNullMessage_:1;
BOOL hasProfileKey_:1;
OWSSignalServiceProtosDataMessage* dataMessage; OWSSignalServiceProtosDataMessage* dataMessage;
OWSSignalServiceProtosSyncMessage* syncMessage; OWSSignalServiceProtosSyncMessage* syncMessage;
OWSSignalServiceProtosCallMessage* callMessage; OWSSignalServiceProtosCallMessage* callMessage;
OWSSignalServiceProtosNullMessage* nullMessage; OWSSignalServiceProtosNullMessage* nullMessage;
NSData* profileKey;
} }
- (BOOL) hasDataMessage; - (BOOL) hasDataMessage;
- (BOOL) hasSyncMessage; - (BOOL) hasSyncMessage;
- (BOOL) hasCallMessage; - (BOOL) hasCallMessage;
- (BOOL) hasNullMessage; - (BOOL) hasNullMessage;
- (BOOL) hasProfileKey;
@property (readonly, strong) OWSSignalServiceProtosDataMessage* dataMessage; @property (readonly, strong) OWSSignalServiceProtosDataMessage* dataMessage;
@property (readonly, strong) OWSSignalServiceProtosSyncMessage* syncMessage; @property (readonly, strong) OWSSignalServiceProtosSyncMessage* syncMessage;
@property (readonly, strong) OWSSignalServiceProtosCallMessage* callMessage; @property (readonly, strong) OWSSignalServiceProtosCallMessage* callMessage;
@property (readonly, strong) OWSSignalServiceProtosNullMessage* nullMessage; @property (readonly, strong) OWSSignalServiceProtosNullMessage* nullMessage;
@property (readonly, strong) NSData* profileKey;
+ (instancetype) defaultInstance; + (instancetype) defaultInstance;
- (instancetype) defaultInstance; - (instancetype) defaultInstance;
@ -362,11 +357,6 @@ NSString *NSStringFromOWSSignalServiceProtosGroupContextType(OWSSignalServicePro
- (OWSSignalServiceProtosContentBuilder*) setNullMessageBuilder:(OWSSignalServiceProtosNullMessageBuilder*) builderForValue; - (OWSSignalServiceProtosContentBuilder*) setNullMessageBuilder:(OWSSignalServiceProtosNullMessageBuilder*) builderForValue;
- (OWSSignalServiceProtosContentBuilder*) mergeNullMessage:(OWSSignalServiceProtosNullMessage*) value; - (OWSSignalServiceProtosContentBuilder*) mergeNullMessage:(OWSSignalServiceProtosNullMessage*) value;
- (OWSSignalServiceProtosContentBuilder*) clearNullMessage; - (OWSSignalServiceProtosContentBuilder*) clearNullMessage;
- (BOOL) hasProfileKey;
- (NSData*) profileKey;
- (OWSSignalServiceProtosContentBuilder*) setProfileKey:(NSData*) value;
- (OWSSignalServiceProtosContentBuilder*) clearProfileKey;
@end @end
#define NullMessage_padding @"padding" #define NullMessage_padding @"padding"
@ -504,27 +494,32 @@ NSString *NSStringFromOWSSignalServiceProtosGroupContextType(OWSSignalServicePro
#define CallMessage_iceUpdate @"iceUpdate" #define CallMessage_iceUpdate @"iceUpdate"
#define CallMessage_hangup @"hangup" #define CallMessage_hangup @"hangup"
#define CallMessage_busy @"busy" #define CallMessage_busy @"busy"
#define CallMessage_profileKey @"profileKey"
@interface OWSSignalServiceProtosCallMessage : PBGeneratedMessage<GeneratedMessageProtocol> { @interface OWSSignalServiceProtosCallMessage : PBGeneratedMessage<GeneratedMessageProtocol> {
@private @private
BOOL hasOffer_:1; BOOL hasOffer_:1;
BOOL hasAnswer_:1; BOOL hasAnswer_:1;
BOOL hasHangup_:1; BOOL hasHangup_:1;
BOOL hasBusy_:1; BOOL hasBusy_:1;
BOOL hasProfileKey_:1;
OWSSignalServiceProtosCallMessageOffer* offer; OWSSignalServiceProtosCallMessageOffer* offer;
OWSSignalServiceProtosCallMessageAnswer* answer; OWSSignalServiceProtosCallMessageAnswer* answer;
OWSSignalServiceProtosCallMessageHangup* hangup; OWSSignalServiceProtosCallMessageHangup* hangup;
OWSSignalServiceProtosCallMessageBusy* busy; OWSSignalServiceProtosCallMessageBusy* busy;
NSData* profileKey;
NSMutableArray * iceUpdateArray; NSMutableArray * iceUpdateArray;
} }
- (BOOL) hasOffer; - (BOOL) hasOffer;
- (BOOL) hasAnswer; - (BOOL) hasAnswer;
- (BOOL) hasHangup; - (BOOL) hasHangup;
- (BOOL) hasBusy; - (BOOL) hasBusy;
- (BOOL) hasProfileKey;
@property (readonly, strong) OWSSignalServiceProtosCallMessageOffer* offer; @property (readonly, strong) OWSSignalServiceProtosCallMessageOffer* offer;
@property (readonly, strong) OWSSignalServiceProtosCallMessageAnswer* answer; @property (readonly, strong) OWSSignalServiceProtosCallMessageAnswer* answer;
@property (readonly, strong) NSArray<OWSSignalServiceProtosCallMessageIceUpdate*> * iceUpdate; @property (readonly, strong) NSArray<OWSSignalServiceProtosCallMessageIceUpdate*> * iceUpdate;
@property (readonly, strong) OWSSignalServiceProtosCallMessageHangup* hangup; @property (readonly, strong) OWSSignalServiceProtosCallMessageHangup* hangup;
@property (readonly, strong) OWSSignalServiceProtosCallMessageBusy* busy; @property (readonly, strong) OWSSignalServiceProtosCallMessageBusy* busy;
@property (readonly, strong) NSData* profileKey;
- (OWSSignalServiceProtosCallMessageIceUpdate*)iceUpdateAtIndex:(NSUInteger)index; - (OWSSignalServiceProtosCallMessageIceUpdate*)iceUpdateAtIndex:(NSUInteger)index;
+ (instancetype) defaultInstance; + (instancetype) defaultInstance;
@ -895,6 +890,11 @@ NSString *NSStringFromOWSSignalServiceProtosGroupContextType(OWSSignalServicePro
- (OWSSignalServiceProtosCallMessageBuilder*) setBusyBuilder:(OWSSignalServiceProtosCallMessageBusyBuilder*) builderForValue; - (OWSSignalServiceProtosCallMessageBuilder*) setBusyBuilder:(OWSSignalServiceProtosCallMessageBusyBuilder*) builderForValue;
- (OWSSignalServiceProtosCallMessageBuilder*) mergeBusy:(OWSSignalServiceProtosCallMessageBusy*) value; - (OWSSignalServiceProtosCallMessageBuilder*) mergeBusy:(OWSSignalServiceProtosCallMessageBusy*) value;
- (OWSSignalServiceProtosCallMessageBuilder*) clearBusy; - (OWSSignalServiceProtosCallMessageBuilder*) clearBusy;
- (BOOL) hasProfileKey;
- (NSData*) profileKey;
- (OWSSignalServiceProtosCallMessageBuilder*) setProfileKey:(NSData*) value;
- (OWSSignalServiceProtosCallMessageBuilder*) clearProfileKey;
@end @end
#define DataMessage_body @"body" #define DataMessage_body @"body"
@ -902,14 +902,17 @@ NSString *NSStringFromOWSSignalServiceProtosGroupContextType(OWSSignalServicePro
#define DataMessage_group @"group" #define DataMessage_group @"group"
#define DataMessage_flags @"flags" #define DataMessage_flags @"flags"
#define DataMessage_expireTimer @"expireTimer" #define DataMessage_expireTimer @"expireTimer"
#define DataMessage_profileKey @"profileKey"
@interface OWSSignalServiceProtosDataMessage : PBGeneratedMessage<GeneratedMessageProtocol> { @interface OWSSignalServiceProtosDataMessage : PBGeneratedMessage<GeneratedMessageProtocol> {
@private @private
BOOL hasBody_:1; BOOL hasBody_:1;
BOOL hasGroup_:1; BOOL hasGroup_:1;
BOOL hasProfileKey_:1;
BOOL hasFlags_:1; BOOL hasFlags_:1;
BOOL hasExpireTimer_:1; BOOL hasExpireTimer_:1;
NSString* body; NSString* body;
OWSSignalServiceProtosGroupContext* group; OWSSignalServiceProtosGroupContext* group;
NSData* profileKey;
UInt32 flags; UInt32 flags;
UInt32 expireTimer; UInt32 expireTimer;
NSMutableArray * attachmentsArray; NSMutableArray * attachmentsArray;
@ -918,11 +921,13 @@ NSString *NSStringFromOWSSignalServiceProtosGroupContextType(OWSSignalServicePro
- (BOOL) hasGroup; - (BOOL) hasGroup;
- (BOOL) hasFlags; - (BOOL) hasFlags;
- (BOOL) hasExpireTimer; - (BOOL) hasExpireTimer;
- (BOOL) hasProfileKey;
@property (readonly, strong) NSString* body; @property (readonly, strong) NSString* body;
@property (readonly, strong) NSArray<OWSSignalServiceProtosAttachmentPointer*> * attachments; @property (readonly, strong) NSArray<OWSSignalServiceProtosAttachmentPointer*> * attachments;
@property (readonly, strong) OWSSignalServiceProtosGroupContext* group; @property (readonly, strong) OWSSignalServiceProtosGroupContext* group;
@property (readonly) UInt32 flags; @property (readonly) UInt32 flags;
@property (readonly) UInt32 expireTimer; @property (readonly) UInt32 expireTimer;
@property (readonly, strong) NSData* profileKey;
- (OWSSignalServiceProtosAttachmentPointer*)attachmentsAtIndex:(NSUInteger)index; - (OWSSignalServiceProtosAttachmentPointer*)attachmentsAtIndex:(NSUInteger)index;
+ (instancetype) defaultInstance; + (instancetype) defaultInstance;
@ -987,6 +992,11 @@ NSString *NSStringFromOWSSignalServiceProtosGroupContextType(OWSSignalServicePro
- (UInt32) expireTimer; - (UInt32) expireTimer;
- (OWSSignalServiceProtosDataMessageBuilder*) setExpireTimer:(UInt32) value; - (OWSSignalServiceProtosDataMessageBuilder*) setExpireTimer:(UInt32) value;
- (OWSSignalServiceProtosDataMessageBuilder*) clearExpireTimer; - (OWSSignalServiceProtosDataMessageBuilder*) clearExpireTimer;
- (BOOL) hasProfileKey;
- (NSData*) profileKey;
- (OWSSignalServiceProtosDataMessageBuilder*) setProfileKey:(NSData*) value;
- (OWSSignalServiceProtosDataMessageBuilder*) clearProfileKey;
@end @end
#define SyncMessage_sent @"sent" #define SyncMessage_sent @"sent"
@ -997,6 +1007,7 @@ NSString *NSStringFromOWSSignalServiceProtosGroupContextType(OWSSignalServicePro
#define SyncMessage_blocked @"blocked" #define SyncMessage_blocked @"blocked"
#define SyncMessage_verified @"verified" #define SyncMessage_verified @"verified"
#define SyncMessage_padding @"padding" #define SyncMessage_padding @"padding"
#define SyncMessage_profileKey @"profileKey"
@interface OWSSignalServiceProtosSyncMessage : PBGeneratedMessage<GeneratedMessageProtocol> { @interface OWSSignalServiceProtosSyncMessage : PBGeneratedMessage<GeneratedMessageProtocol> {
@private @private
BOOL hasSent_:1; BOOL hasSent_:1;
@ -1006,6 +1017,7 @@ NSString *NSStringFromOWSSignalServiceProtosGroupContextType(OWSSignalServicePro
BOOL hasBlocked_:1; BOOL hasBlocked_:1;
BOOL hasVerified_:1; BOOL hasVerified_:1;
BOOL hasPadding_:1; BOOL hasPadding_:1;
BOOL hasProfileKey_:1;
OWSSignalServiceProtosSyncMessageSent* sent; OWSSignalServiceProtosSyncMessageSent* sent;
OWSSignalServiceProtosSyncMessageContacts* contacts; OWSSignalServiceProtosSyncMessageContacts* contacts;
OWSSignalServiceProtosSyncMessageGroups* groups; OWSSignalServiceProtosSyncMessageGroups* groups;
@ -1013,6 +1025,7 @@ NSString *NSStringFromOWSSignalServiceProtosGroupContextType(OWSSignalServicePro
OWSSignalServiceProtosSyncMessageBlocked* blocked; OWSSignalServiceProtosSyncMessageBlocked* blocked;
OWSSignalServiceProtosVerified* verified; OWSSignalServiceProtosVerified* verified;
NSData* padding; NSData* padding;
NSData* profileKey;
NSMutableArray * readArray; NSMutableArray * readArray;
} }
- (BOOL) hasSent; - (BOOL) hasSent;
@ -1022,6 +1035,7 @@ NSString *NSStringFromOWSSignalServiceProtosGroupContextType(OWSSignalServicePro
- (BOOL) hasBlocked; - (BOOL) hasBlocked;
- (BOOL) hasVerified; - (BOOL) hasVerified;
- (BOOL) hasPadding; - (BOOL) hasPadding;
- (BOOL) hasProfileKey;
@property (readonly, strong) OWSSignalServiceProtosSyncMessageSent* sent; @property (readonly, strong) OWSSignalServiceProtosSyncMessageSent* sent;
@property (readonly, strong) OWSSignalServiceProtosSyncMessageContacts* contacts; @property (readonly, strong) OWSSignalServiceProtosSyncMessageContacts* contacts;
@property (readonly, strong) OWSSignalServiceProtosSyncMessageGroups* groups; @property (readonly, strong) OWSSignalServiceProtosSyncMessageGroups* groups;
@ -1030,6 +1044,7 @@ NSString *NSStringFromOWSSignalServiceProtosGroupContextType(OWSSignalServicePro
@property (readonly, strong) OWSSignalServiceProtosSyncMessageBlocked* blocked; @property (readonly, strong) OWSSignalServiceProtosSyncMessageBlocked* blocked;
@property (readonly, strong) OWSSignalServiceProtosVerified* verified; @property (readonly, strong) OWSSignalServiceProtosVerified* verified;
@property (readonly, strong) NSData* padding; @property (readonly, strong) NSData* padding;
@property (readonly, strong) NSData* profileKey;
- (OWSSignalServiceProtosSyncMessageRead*)readAtIndex:(NSUInteger)index; - (OWSSignalServiceProtosSyncMessageRead*)readAtIndex:(NSUInteger)index;
+ (instancetype) defaultInstance; + (instancetype) defaultInstance;
@ -1475,6 +1490,11 @@ NSString *NSStringFromOWSSignalServiceProtosGroupContextType(OWSSignalServicePro
- (NSData*) padding; - (NSData*) padding;
- (OWSSignalServiceProtosSyncMessageBuilder*) setPadding:(NSData*) value; - (OWSSignalServiceProtosSyncMessageBuilder*) setPadding:(NSData*) value;
- (OWSSignalServiceProtosSyncMessageBuilder*) clearPadding; - (OWSSignalServiceProtosSyncMessageBuilder*) clearPadding;
- (BOOL) hasProfileKey;
- (NSData*) profileKey;
- (OWSSignalServiceProtosSyncMessageBuilder*) setProfileKey:(NSData*) value;
- (OWSSignalServiceProtosSyncMessageBuilder*) clearProfileKey;
@end @end
#define AttachmentPointer_id @"id" #define AttachmentPointer_id @"id"

@ -560,7 +560,6 @@ NSString *NSStringFromOWSSignalServiceProtosEnvelopeType(OWSSignalServiceProtosE
@property (strong) OWSSignalServiceProtosSyncMessage* syncMessage; @property (strong) OWSSignalServiceProtosSyncMessage* syncMessage;
@property (strong) OWSSignalServiceProtosCallMessage* callMessage; @property (strong) OWSSignalServiceProtosCallMessage* callMessage;
@property (strong) OWSSignalServiceProtosNullMessage* nullMessage; @property (strong) OWSSignalServiceProtosNullMessage* nullMessage;
@property (strong) NSData* profileKey;
@end @end
@implementation OWSSignalServiceProtosContent @implementation OWSSignalServiceProtosContent
@ -593,20 +592,12 @@ NSString *NSStringFromOWSSignalServiceProtosEnvelopeType(OWSSignalServiceProtosE
hasNullMessage_ = !!_value_; hasNullMessage_ = !!_value_;
} }
@synthesize nullMessage; @synthesize nullMessage;
- (BOOL) hasProfileKey {
return !!hasProfileKey_;
}
- (void) setHasProfileKey:(BOOL) _value_ {
hasProfileKey_ = !!_value_;
}
@synthesize profileKey;
- (instancetype) init { - (instancetype) init {
if ((self = [super init])) { if ((self = [super init])) {
self.dataMessage = [OWSSignalServiceProtosDataMessage defaultInstance]; self.dataMessage = [OWSSignalServiceProtosDataMessage defaultInstance];
self.syncMessage = [OWSSignalServiceProtosSyncMessage defaultInstance]; self.syncMessage = [OWSSignalServiceProtosSyncMessage defaultInstance];
self.callMessage = [OWSSignalServiceProtosCallMessage defaultInstance]; self.callMessage = [OWSSignalServiceProtosCallMessage defaultInstance];
self.nullMessage = [OWSSignalServiceProtosNullMessage defaultInstance]; self.nullMessage = [OWSSignalServiceProtosNullMessage defaultInstance];
self.profileKey = [NSData data];
} }
return self; return self;
} }
@ -638,9 +629,6 @@ static OWSSignalServiceProtosContent* defaultOWSSignalServiceProtosContentInstan
if (self.hasNullMessage) { if (self.hasNullMessage) {
[output writeMessage:4 value:self.nullMessage]; [output writeMessage:4 value:self.nullMessage];
} }
if (self.hasProfileKey) {
[output writeData:5 value:self.profileKey];
}
[self.unknownFields writeToCodedOutputStream:output]; [self.unknownFields writeToCodedOutputStream:output];
} }
- (SInt32) serializedSize { - (SInt32) serializedSize {
@ -662,9 +650,6 @@ static OWSSignalServiceProtosContent* defaultOWSSignalServiceProtosContentInstan
if (self.hasNullMessage) { if (self.hasNullMessage) {
size_ += computeMessageSize(4, self.nullMessage); size_ += computeMessageSize(4, self.nullMessage);
} }
if (self.hasProfileKey) {
size_ += computeDataSize(5, self.profileKey);
}
size_ += self.unknownFields.serializedSize; size_ += self.unknownFields.serializedSize;
memoizedSerializedSize = size_; memoizedSerializedSize = size_;
return size_; return size_;
@ -724,9 +709,6 @@ static OWSSignalServiceProtosContent* defaultOWSSignalServiceProtosContentInstan
withIndent:[NSString stringWithFormat:@"%@ ", indent]]; withIndent:[NSString stringWithFormat:@"%@ ", indent]];
[output appendFormat:@"%@}\n", indent]; [output appendFormat:@"%@}\n", indent];
} }
if (self.hasProfileKey) {
[output appendFormat:@"%@%@: %@\n", indent, @"profileKey", self.profileKey];
}
[self.unknownFields writeDescriptionTo:output withIndent:indent]; [self.unknownFields writeDescriptionTo:output withIndent:indent];
} }
- (void) storeInDictionary:(NSMutableDictionary *)dictionary { - (void) storeInDictionary:(NSMutableDictionary *)dictionary {
@ -750,9 +732,6 @@ static OWSSignalServiceProtosContent* defaultOWSSignalServiceProtosContentInstan
[self.nullMessage storeInDictionary:messageDictionary]; [self.nullMessage storeInDictionary:messageDictionary];
[dictionary setObject:[NSDictionary dictionaryWithDictionary:messageDictionary] forKey:@"nullMessage"]; [dictionary setObject:[NSDictionary dictionaryWithDictionary:messageDictionary] forKey:@"nullMessage"];
} }
if (self.hasProfileKey) {
[dictionary setObject: self.profileKey forKey: @"profileKey"];
}
[self.unknownFields storeInDictionary:dictionary]; [self.unknownFields storeInDictionary:dictionary];
} }
- (BOOL) isEqual:(id)other { - (BOOL) isEqual:(id)other {
@ -772,8 +751,6 @@ static OWSSignalServiceProtosContent* defaultOWSSignalServiceProtosContentInstan
(!self.hasCallMessage || [self.callMessage isEqual:otherMessage.callMessage]) && (!self.hasCallMessage || [self.callMessage isEqual:otherMessage.callMessage]) &&
self.hasNullMessage == otherMessage.hasNullMessage && self.hasNullMessage == otherMessage.hasNullMessage &&
(!self.hasNullMessage || [self.nullMessage isEqual:otherMessage.nullMessage]) && (!self.hasNullMessage || [self.nullMessage isEqual:otherMessage.nullMessage]) &&
self.hasProfileKey == otherMessage.hasProfileKey &&
(!self.hasProfileKey || [self.profileKey isEqual:otherMessage.profileKey]) &&
(self.unknownFields == otherMessage.unknownFields || (self.unknownFields != nil && [self.unknownFields isEqual:otherMessage.unknownFields])); (self.unknownFields == otherMessage.unknownFields || (self.unknownFields != nil && [self.unknownFields isEqual:otherMessage.unknownFields]));
} }
- (NSUInteger) hash { - (NSUInteger) hash {
@ -790,9 +767,6 @@ static OWSSignalServiceProtosContent* defaultOWSSignalServiceProtosContentInstan
if (self.hasNullMessage) { if (self.hasNullMessage) {
hashCode = hashCode * 31 + [self.nullMessage hash]; hashCode = hashCode * 31 + [self.nullMessage hash];
} }
if (self.hasProfileKey) {
hashCode = hashCode * 31 + [self.profileKey hash];
}
hashCode = hashCode * 31 + [self.unknownFields hash]; hashCode = hashCode * 31 + [self.unknownFields hash];
return hashCode; return hashCode;
} }
@ -848,9 +822,6 @@ static OWSSignalServiceProtosContent* defaultOWSSignalServiceProtosContentInstan
if (other.hasNullMessage) { if (other.hasNullMessage) {
[self mergeNullMessage:other.nullMessage]; [self mergeNullMessage:other.nullMessage];
} }
if (other.hasProfileKey) {
[self setProfileKey:other.profileKey];
}
[self mergeUnknownFields:other.unknownFields]; [self mergeUnknownFields:other.unknownFields];
return self; return self;
} }
@ -908,10 +879,6 @@ static OWSSignalServiceProtosContent* defaultOWSSignalServiceProtosContentInstan
[self setNullMessage:[subBuilder buildPartial]]; [self setNullMessage:[subBuilder buildPartial]];
break; break;
} }
case 42: {
[self setProfileKey:[input readData]];
break;
}
} }
} }
} }
@ -1035,22 +1002,6 @@ static OWSSignalServiceProtosContent* defaultOWSSignalServiceProtosContentInstan
resultContent.nullMessage = [OWSSignalServiceProtosNullMessage defaultInstance]; resultContent.nullMessage = [OWSSignalServiceProtosNullMessage defaultInstance];
return self; return self;
} }
- (BOOL) hasProfileKey {
return resultContent.hasProfileKey;
}
- (NSData*) profileKey {
return resultContent.profileKey;
}
- (OWSSignalServiceProtosContentBuilder*) setProfileKey:(NSData*) value {
resultContent.hasProfileKey = YES;
resultContent.profileKey = value;
return self;
}
- (OWSSignalServiceProtosContentBuilder*) clearProfileKey {
resultContent.hasProfileKey = NO;
resultContent.profileKey = [NSData data];
return self;
}
@end @end
@interface OWSSignalServiceProtosNullMessage () @interface OWSSignalServiceProtosNullMessage ()
@ -1646,6 +1597,7 @@ NSString *NSStringFromOWSSignalServiceProtosVerifiedState(OWSSignalServiceProtos
@property (strong) NSMutableArray<OWSSignalServiceProtosCallMessageIceUpdate*> * iceUpdateArray; @property (strong) NSMutableArray<OWSSignalServiceProtosCallMessageIceUpdate*> * iceUpdateArray;
@property (strong) OWSSignalServiceProtosCallMessageHangup* hangup; @property (strong) OWSSignalServiceProtosCallMessageHangup* hangup;
@property (strong) OWSSignalServiceProtosCallMessageBusy* busy; @property (strong) OWSSignalServiceProtosCallMessageBusy* busy;
@property (strong) NSData* profileKey;
@end @end
@implementation OWSSignalServiceProtosCallMessage @implementation OWSSignalServiceProtosCallMessage
@ -1680,12 +1632,20 @@ NSString *NSStringFromOWSSignalServiceProtosVerifiedState(OWSSignalServiceProtos
hasBusy_ = !!_value_; hasBusy_ = !!_value_;
} }
@synthesize busy; @synthesize busy;
- (BOOL) hasProfileKey {
return !!hasProfileKey_;
}
- (void) setHasProfileKey:(BOOL) _value_ {
hasProfileKey_ = !!_value_;
}
@synthesize profileKey;
- (instancetype) init { - (instancetype) init {
if ((self = [super init])) { if ((self = [super init])) {
self.offer = [OWSSignalServiceProtosCallMessageOffer defaultInstance]; self.offer = [OWSSignalServiceProtosCallMessageOffer defaultInstance];
self.answer = [OWSSignalServiceProtosCallMessageAnswer defaultInstance]; self.answer = [OWSSignalServiceProtosCallMessageAnswer defaultInstance];
self.hangup = [OWSSignalServiceProtosCallMessageHangup defaultInstance]; self.hangup = [OWSSignalServiceProtosCallMessageHangup defaultInstance];
self.busy = [OWSSignalServiceProtosCallMessageBusy defaultInstance]; self.busy = [OWSSignalServiceProtosCallMessageBusy defaultInstance];
self.profileKey = [NSData data];
} }
return self; return self;
} }
@ -1726,6 +1686,9 @@ static OWSSignalServiceProtosCallMessage* defaultOWSSignalServiceProtosCallMessa
if (self.hasBusy) { if (self.hasBusy) {
[output writeMessage:5 value:self.busy]; [output writeMessage:5 value:self.busy];
} }
if (self.hasProfileKey) {
[output writeData:6 value:self.profileKey];
}
[self.unknownFields writeToCodedOutputStream:output]; [self.unknownFields writeToCodedOutputStream:output];
} }
- (SInt32) serializedSize { - (SInt32) serializedSize {
@ -1750,6 +1713,9 @@ static OWSSignalServiceProtosCallMessage* defaultOWSSignalServiceProtosCallMessa
if (self.hasBusy) { if (self.hasBusy) {
size_ += computeMessageSize(5, self.busy); size_ += computeMessageSize(5, self.busy);
} }
if (self.hasProfileKey) {
size_ += computeDataSize(6, self.profileKey);
}
size_ += self.unknownFields.serializedSize; size_ += self.unknownFields.serializedSize;
memoizedSerializedSize = size_; memoizedSerializedSize = size_;
return size_; return size_;
@ -1815,6 +1781,9 @@ static OWSSignalServiceProtosCallMessage* defaultOWSSignalServiceProtosCallMessa
withIndent:[NSString stringWithFormat:@"%@ ", indent]]; withIndent:[NSString stringWithFormat:@"%@ ", indent]];
[output appendFormat:@"%@}\n", indent]; [output appendFormat:@"%@}\n", indent];
} }
if (self.hasProfileKey) {
[output appendFormat:@"%@%@: %@\n", indent, @"profileKey", self.profileKey];
}
[self.unknownFields writeDescriptionTo:output withIndent:indent]; [self.unknownFields writeDescriptionTo:output withIndent:indent];
} }
- (void) storeInDictionary:(NSMutableDictionary *)dictionary { - (void) storeInDictionary:(NSMutableDictionary *)dictionary {
@ -1843,6 +1812,9 @@ static OWSSignalServiceProtosCallMessage* defaultOWSSignalServiceProtosCallMessa
[self.busy storeInDictionary:messageDictionary]; [self.busy storeInDictionary:messageDictionary];
[dictionary setObject:[NSDictionary dictionaryWithDictionary:messageDictionary] forKey:@"busy"]; [dictionary setObject:[NSDictionary dictionaryWithDictionary:messageDictionary] forKey:@"busy"];
} }
if (self.hasProfileKey) {
[dictionary setObject: self.profileKey forKey: @"profileKey"];
}
[self.unknownFields storeInDictionary:dictionary]; [self.unknownFields storeInDictionary:dictionary];
} }
- (BOOL) isEqual:(id)other { - (BOOL) isEqual:(id)other {
@ -1863,6 +1835,8 @@ static OWSSignalServiceProtosCallMessage* defaultOWSSignalServiceProtosCallMessa
(!self.hasHangup || [self.hangup isEqual:otherMessage.hangup]) && (!self.hasHangup || [self.hangup isEqual:otherMessage.hangup]) &&
self.hasBusy == otherMessage.hasBusy && self.hasBusy == otherMessage.hasBusy &&
(!self.hasBusy || [self.busy isEqual:otherMessage.busy]) && (!self.hasBusy || [self.busy isEqual:otherMessage.busy]) &&
self.hasProfileKey == otherMessage.hasProfileKey &&
(!self.hasProfileKey || [self.profileKey isEqual:otherMessage.profileKey]) &&
(self.unknownFields == otherMessage.unknownFields || (self.unknownFields != nil && [self.unknownFields isEqual:otherMessage.unknownFields])); (self.unknownFields == otherMessage.unknownFields || (self.unknownFields != nil && [self.unknownFields isEqual:otherMessage.unknownFields]));
} }
- (NSUInteger) hash { - (NSUInteger) hash {
@ -1882,6 +1856,9 @@ static OWSSignalServiceProtosCallMessage* defaultOWSSignalServiceProtosCallMessa
if (self.hasBusy) { if (self.hasBusy) {
hashCode = hashCode * 31 + [self.busy hash]; hashCode = hashCode * 31 + [self.busy hash];
} }
if (self.hasProfileKey) {
hashCode = hashCode * 31 + [self.profileKey hash];
}
hashCode = hashCode * 31 + [self.unknownFields hash]; hashCode = hashCode * 31 + [self.unknownFields hash];
return hashCode; return hashCode;
} }
@ -3219,6 +3196,9 @@ static OWSSignalServiceProtosCallMessageHangup* defaultOWSSignalServiceProtosCal
if (other.hasBusy) { if (other.hasBusy) {
[self mergeBusy:other.busy]; [self mergeBusy:other.busy];
} }
if (other.hasProfileKey) {
[self setProfileKey:other.profileKey];
}
[self mergeUnknownFields:other.unknownFields]; [self mergeUnknownFields:other.unknownFields];
return self; return self;
} }
@ -3282,6 +3262,10 @@ static OWSSignalServiceProtosCallMessageHangup* defaultOWSSignalServiceProtosCal
[self setBusy:[subBuilder buildPartial]]; [self setBusy:[subBuilder buildPartial]];
break; break;
} }
case 50: {
[self setProfileKey:[input readData]];
break;
}
} }
} }
} }
@ -3426,6 +3410,22 @@ static OWSSignalServiceProtosCallMessageHangup* defaultOWSSignalServiceProtosCal
resultCallMessage.busy = [OWSSignalServiceProtosCallMessageBusy defaultInstance]; resultCallMessage.busy = [OWSSignalServiceProtosCallMessageBusy defaultInstance];
return self; return self;
} }
- (BOOL) hasProfileKey {
return resultCallMessage.hasProfileKey;
}
- (NSData*) profileKey {
return resultCallMessage.profileKey;
}
- (OWSSignalServiceProtosCallMessageBuilder*) setProfileKey:(NSData*) value {
resultCallMessage.hasProfileKey = YES;
resultCallMessage.profileKey = value;
return self;
}
- (OWSSignalServiceProtosCallMessageBuilder*) clearProfileKey {
resultCallMessage.hasProfileKey = NO;
resultCallMessage.profileKey = [NSData data];
return self;
}
@end @end
@interface OWSSignalServiceProtosDataMessage () @interface OWSSignalServiceProtosDataMessage ()
@ -3434,6 +3434,7 @@ static OWSSignalServiceProtosCallMessageHangup* defaultOWSSignalServiceProtosCal
@property (strong) OWSSignalServiceProtosGroupContext* group; @property (strong) OWSSignalServiceProtosGroupContext* group;
@property UInt32 flags; @property UInt32 flags;
@property UInt32 expireTimer; @property UInt32 expireTimer;
@property (strong) NSData* profileKey;
@end @end
@implementation OWSSignalServiceProtosDataMessage @implementation OWSSignalServiceProtosDataMessage
@ -3468,12 +3469,20 @@ static OWSSignalServiceProtosCallMessageHangup* defaultOWSSignalServiceProtosCal
hasExpireTimer_ = !!_value_; hasExpireTimer_ = !!_value_;
} }
@synthesize expireTimer; @synthesize expireTimer;
- (BOOL) hasProfileKey {
return !!hasProfileKey_;
}
- (void) setHasProfileKey:(BOOL) _value_ {
hasProfileKey_ = !!_value_;
}
@synthesize profileKey;
- (instancetype) init { - (instancetype) init {
if ((self = [super init])) { if ((self = [super init])) {
self.body = @""; self.body = @"";
self.group = [OWSSignalServiceProtosGroupContext defaultInstance]; self.group = [OWSSignalServiceProtosGroupContext defaultInstance];
self.flags = 0; self.flags = 0;
self.expireTimer = 0; self.expireTimer = 0;
self.profileKey = [NSData data];
} }
return self; return self;
} }
@ -3514,6 +3523,9 @@ static OWSSignalServiceProtosDataMessage* defaultOWSSignalServiceProtosDataMessa
if (self.hasExpireTimer) { if (self.hasExpireTimer) {
[output writeUInt32:5 value:self.expireTimer]; [output writeUInt32:5 value:self.expireTimer];
} }
if (self.hasProfileKey) {
[output writeData:6 value:self.profileKey];
}
[self.unknownFields writeToCodedOutputStream:output]; [self.unknownFields writeToCodedOutputStream:output];
} }
- (SInt32) serializedSize { - (SInt32) serializedSize {
@ -3538,6 +3550,9 @@ static OWSSignalServiceProtosDataMessage* defaultOWSSignalServiceProtosDataMessa
if (self.hasExpireTimer) { if (self.hasExpireTimer) {
size_ += computeUInt32Size(5, self.expireTimer); size_ += computeUInt32Size(5, self.expireTimer);
} }
if (self.hasProfileKey) {
size_ += computeDataSize(6, self.profileKey);
}
size_ += self.unknownFields.serializedSize; size_ += self.unknownFields.serializedSize;
memoizedSerializedSize = size_; memoizedSerializedSize = size_;
return size_; return size_;
@ -3594,6 +3609,9 @@ static OWSSignalServiceProtosDataMessage* defaultOWSSignalServiceProtosDataMessa
if (self.hasExpireTimer) { if (self.hasExpireTimer) {
[output appendFormat:@"%@%@: %@\n", indent, @"expireTimer", [NSNumber numberWithInteger:self.expireTimer]]; [output appendFormat:@"%@%@: %@\n", indent, @"expireTimer", [NSNumber numberWithInteger:self.expireTimer]];
} }
if (self.hasProfileKey) {
[output appendFormat:@"%@%@: %@\n", indent, @"profileKey", self.profileKey];
}
[self.unknownFields writeDescriptionTo:output withIndent:indent]; [self.unknownFields writeDescriptionTo:output withIndent:indent];
} }
- (void) storeInDictionary:(NSMutableDictionary *)dictionary { - (void) storeInDictionary:(NSMutableDictionary *)dictionary {
@ -3616,6 +3634,9 @@ static OWSSignalServiceProtosDataMessage* defaultOWSSignalServiceProtosDataMessa
if (self.hasExpireTimer) { if (self.hasExpireTimer) {
[dictionary setObject: [NSNumber numberWithInteger:self.expireTimer] forKey: @"expireTimer"]; [dictionary setObject: [NSNumber numberWithInteger:self.expireTimer] forKey: @"expireTimer"];
} }
if (self.hasProfileKey) {
[dictionary setObject: self.profileKey forKey: @"profileKey"];
}
[self.unknownFields storeInDictionary:dictionary]; [self.unknownFields storeInDictionary:dictionary];
} }
- (BOOL) isEqual:(id)other { - (BOOL) isEqual:(id)other {
@ -3636,6 +3657,8 @@ static OWSSignalServiceProtosDataMessage* defaultOWSSignalServiceProtosDataMessa
(!self.hasFlags || self.flags == otherMessage.flags) && (!self.hasFlags || self.flags == otherMessage.flags) &&
self.hasExpireTimer == otherMessage.hasExpireTimer && self.hasExpireTimer == otherMessage.hasExpireTimer &&
(!self.hasExpireTimer || self.expireTimer == otherMessage.expireTimer) && (!self.hasExpireTimer || self.expireTimer == otherMessage.expireTimer) &&
self.hasProfileKey == otherMessage.hasProfileKey &&
(!self.hasProfileKey || [self.profileKey isEqual:otherMessage.profileKey]) &&
(self.unknownFields == otherMessage.unknownFields || (self.unknownFields != nil && [self.unknownFields isEqual:otherMessage.unknownFields])); (self.unknownFields == otherMessage.unknownFields || (self.unknownFields != nil && [self.unknownFields isEqual:otherMessage.unknownFields]));
} }
- (NSUInteger) hash { - (NSUInteger) hash {
@ -3655,6 +3678,9 @@ static OWSSignalServiceProtosDataMessage* defaultOWSSignalServiceProtosDataMessa
if (self.hasExpireTimer) { if (self.hasExpireTimer) {
hashCode = hashCode * 31 + [[NSNumber numberWithInteger:self.expireTimer] hash]; hashCode = hashCode * 31 + [[NSNumber numberWithInteger:self.expireTimer] hash];
} }
if (self.hasProfileKey) {
hashCode = hashCode * 31 + [self.profileKey hash];
}
hashCode = hashCode * 31 + [self.unknownFields hash]; hashCode = hashCode * 31 + [self.unknownFields hash];
return hashCode; return hashCode;
} }
@ -3737,6 +3763,9 @@ NSString *NSStringFromOWSSignalServiceProtosDataMessageFlags(OWSSignalServicePro
if (other.hasExpireTimer) { if (other.hasExpireTimer) {
[self setExpireTimer:other.expireTimer]; [self setExpireTimer:other.expireTimer];
} }
if (other.hasProfileKey) {
[self setProfileKey:other.profileKey];
}
[self mergeUnknownFields:other.unknownFields]; [self mergeUnknownFields:other.unknownFields];
return self; return self;
} }
@ -3785,6 +3814,10 @@ NSString *NSStringFromOWSSignalServiceProtosDataMessageFlags(OWSSignalServicePro
[self setExpireTimer:[input readUInt32]]; [self setExpireTimer:[input readUInt32]];
break; break;
} }
case 50: {
[self setProfileKey:[input readData]];
break;
}
} }
} }
} }
@ -3887,6 +3920,22 @@ NSString *NSStringFromOWSSignalServiceProtosDataMessageFlags(OWSSignalServicePro
resultDataMessage.expireTimer = 0; resultDataMessage.expireTimer = 0;
return self; return self;
} }
- (BOOL) hasProfileKey {
return resultDataMessage.hasProfileKey;
}
- (NSData*) profileKey {
return resultDataMessage.profileKey;
}
- (OWSSignalServiceProtosDataMessageBuilder*) setProfileKey:(NSData*) value {
resultDataMessage.hasProfileKey = YES;
resultDataMessage.profileKey = value;
return self;
}
- (OWSSignalServiceProtosDataMessageBuilder*) clearProfileKey {
resultDataMessage.hasProfileKey = NO;
resultDataMessage.profileKey = [NSData data];
return self;
}
@end @end
@interface OWSSignalServiceProtosSyncMessage () @interface OWSSignalServiceProtosSyncMessage ()
@ -3898,6 +3947,7 @@ NSString *NSStringFromOWSSignalServiceProtosDataMessageFlags(OWSSignalServicePro
@property (strong) OWSSignalServiceProtosSyncMessageBlocked* blocked; @property (strong) OWSSignalServiceProtosSyncMessageBlocked* blocked;
@property (strong) OWSSignalServiceProtosVerified* verified; @property (strong) OWSSignalServiceProtosVerified* verified;
@property (strong) NSData* padding; @property (strong) NSData* padding;
@property (strong) NSData* profileKey;
@end @end
@implementation OWSSignalServiceProtosSyncMessage @implementation OWSSignalServiceProtosSyncMessage
@ -3953,6 +4003,13 @@ NSString *NSStringFromOWSSignalServiceProtosDataMessageFlags(OWSSignalServicePro
hasPadding_ = !!_value_; hasPadding_ = !!_value_;
} }
@synthesize padding; @synthesize padding;
- (BOOL) hasProfileKey {
return !!hasProfileKey_;
}
- (void) setHasProfileKey:(BOOL) _value_ {
hasProfileKey_ = !!_value_;
}
@synthesize profileKey;
- (instancetype) init { - (instancetype) init {
if ((self = [super init])) { if ((self = [super init])) {
self.sent = [OWSSignalServiceProtosSyncMessageSent defaultInstance]; self.sent = [OWSSignalServiceProtosSyncMessageSent defaultInstance];
@ -3962,6 +4019,7 @@ NSString *NSStringFromOWSSignalServiceProtosDataMessageFlags(OWSSignalServicePro
self.blocked = [OWSSignalServiceProtosSyncMessageBlocked defaultInstance]; self.blocked = [OWSSignalServiceProtosSyncMessageBlocked defaultInstance];
self.verified = [OWSSignalServiceProtosVerified defaultInstance]; self.verified = [OWSSignalServiceProtosVerified defaultInstance];
self.padding = [NSData data]; self.padding = [NSData data];
self.profileKey = [NSData data];
} }
return self; return self;
} }
@ -4011,6 +4069,9 @@ static OWSSignalServiceProtosSyncMessage* defaultOWSSignalServiceProtosSyncMessa
if (self.hasPadding) { if (self.hasPadding) {
[output writeData:8 value:self.padding]; [output writeData:8 value:self.padding];
} }
if (self.hasProfileKey) {
[output writeData:9 value:self.profileKey];
}
[self.unknownFields writeToCodedOutputStream:output]; [self.unknownFields writeToCodedOutputStream:output];
} }
- (SInt32) serializedSize { - (SInt32) serializedSize {
@ -4044,6 +4105,9 @@ static OWSSignalServiceProtosSyncMessage* defaultOWSSignalServiceProtosSyncMessa
if (self.hasPadding) { if (self.hasPadding) {
size_ += computeDataSize(8, self.padding); size_ += computeDataSize(8, self.padding);
} }
if (self.hasProfileKey) {
size_ += computeDataSize(9, self.profileKey);
}
size_ += self.unknownFields.serializedSize; size_ += self.unknownFields.serializedSize;
memoizedSerializedSize = size_; memoizedSerializedSize = size_;
return size_; return size_;
@ -4124,6 +4188,9 @@ static OWSSignalServiceProtosSyncMessage* defaultOWSSignalServiceProtosSyncMessa
if (self.hasPadding) { if (self.hasPadding) {
[output appendFormat:@"%@%@: %@\n", indent, @"padding", self.padding]; [output appendFormat:@"%@%@: %@\n", indent, @"padding", self.padding];
} }
if (self.hasProfileKey) {
[output appendFormat:@"%@%@: %@\n", indent, @"profileKey", self.profileKey];
}
[self.unknownFields writeDescriptionTo:output withIndent:indent]; [self.unknownFields writeDescriptionTo:output withIndent:indent];
} }
- (void) storeInDictionary:(NSMutableDictionary *)dictionary { - (void) storeInDictionary:(NSMutableDictionary *)dictionary {
@ -4165,6 +4232,9 @@ static OWSSignalServiceProtosSyncMessage* defaultOWSSignalServiceProtosSyncMessa
if (self.hasPadding) { if (self.hasPadding) {
[dictionary setObject: self.padding forKey: @"padding"]; [dictionary setObject: self.padding forKey: @"padding"];
} }
if (self.hasProfileKey) {
[dictionary setObject: self.profileKey forKey: @"profileKey"];
}
[self.unknownFields storeInDictionary:dictionary]; [self.unknownFields storeInDictionary:dictionary];
} }
- (BOOL) isEqual:(id)other { - (BOOL) isEqual:(id)other {
@ -4191,6 +4261,8 @@ static OWSSignalServiceProtosSyncMessage* defaultOWSSignalServiceProtosSyncMessa
(!self.hasVerified || [self.verified isEqual:otherMessage.verified]) && (!self.hasVerified || [self.verified isEqual:otherMessage.verified]) &&
self.hasPadding == otherMessage.hasPadding && self.hasPadding == otherMessage.hasPadding &&
(!self.hasPadding || [self.padding isEqual:otherMessage.padding]) && (!self.hasPadding || [self.padding isEqual:otherMessage.padding]) &&
self.hasProfileKey == otherMessage.hasProfileKey &&
(!self.hasProfileKey || [self.profileKey isEqual:otherMessage.profileKey]) &&
(self.unknownFields == otherMessage.unknownFields || (self.unknownFields != nil && [self.unknownFields isEqual:otherMessage.unknownFields])); (self.unknownFields == otherMessage.unknownFields || (self.unknownFields != nil && [self.unknownFields isEqual:otherMessage.unknownFields]));
} }
- (NSUInteger) hash { - (NSUInteger) hash {
@ -4219,6 +4291,9 @@ static OWSSignalServiceProtosSyncMessage* defaultOWSSignalServiceProtosSyncMessa
if (self.hasPadding) { if (self.hasPadding) {
hashCode = hashCode * 31 + [self.padding hash]; hashCode = hashCode * 31 + [self.padding hash];
} }
if (self.hasProfileKey) {
hashCode = hashCode * 31 + [self.profileKey hash];
}
hashCode = hashCode * 31 + [self.unknownFields hash]; hashCode = hashCode * 31 + [self.unknownFields hash];
return hashCode; return hashCode;
} }
@ -5891,6 +5966,9 @@ static OWSSignalServiceProtosSyncMessageRead* defaultOWSSignalServiceProtosSyncM
if (other.hasPadding) { if (other.hasPadding) {
[self setPadding:other.padding]; [self setPadding:other.padding];
} }
if (other.hasProfileKey) {
[self setProfileKey:other.profileKey];
}
[self mergeUnknownFields:other.unknownFields]; [self mergeUnknownFields:other.unknownFields];
return self; return self;
} }
@ -5976,6 +6054,10 @@ static OWSSignalServiceProtosSyncMessageRead* defaultOWSSignalServiceProtosSyncM
[self setPadding:[input readData]]; [self setPadding:[input readData]];
break; break;
} }
case 74: {
[self setProfileKey:[input readData]];
break;
}
} }
} }
} }
@ -6196,6 +6278,22 @@ static OWSSignalServiceProtosSyncMessageRead* defaultOWSSignalServiceProtosSyncM
resultSyncMessage.padding = [NSData data]; resultSyncMessage.padding = [NSData data];
return self; return self;
} }
- (BOOL) hasProfileKey {
return resultSyncMessage.hasProfileKey;
}
- (NSData*) profileKey {
return resultSyncMessage.profileKey;
}
- (OWSSignalServiceProtosSyncMessageBuilder*) setProfileKey:(NSData*) value {
resultSyncMessage.hasProfileKey = YES;
resultSyncMessage.profileKey = value;
return self;
}
- (OWSSignalServiceProtosSyncMessageBuilder*) clearProfileKey {
resultSyncMessage.hasProfileKey = NO;
resultSyncMessage.profileKey = [NSData data];
return self;
}
@end @end
@interface OWSSignalServiceProtosAttachmentPointer () @interface OWSSignalServiceProtosAttachmentPointer ()

Loading…
Cancel
Save