|
|
@ -2921,6 +2921,7 @@ static OWSSignalServiceProtosCallMessageHangup* defaultOWSSignalServiceProtosCal
|
|
|
|
@property UInt32 flags;
|
|
|
|
@property UInt32 flags;
|
|
|
|
@property UInt32 expireTimer;
|
|
|
|
@property UInt32 expireTimer;
|
|
|
|
@property (strong) NSData* profileKey;
|
|
|
|
@property (strong) NSData* profileKey;
|
|
|
|
|
|
|
|
@property UInt64 timestamp;
|
|
|
|
@end
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
@implementation OWSSignalServiceProtosDataMessage
|
|
|
|
@implementation OWSSignalServiceProtosDataMessage
|
|
|
@ -2962,6 +2963,13 @@ static OWSSignalServiceProtosCallMessageHangup* defaultOWSSignalServiceProtosCal
|
|
|
|
hasProfileKey_ = !!_value_;
|
|
|
|
hasProfileKey_ = !!_value_;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@synthesize profileKey;
|
|
|
|
@synthesize profileKey;
|
|
|
|
|
|
|
|
- (BOOL) hasTimestamp {
|
|
|
|
|
|
|
|
return !!hasTimestamp_;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) setHasTimestamp:(BOOL) _value_ {
|
|
|
|
|
|
|
|
hasTimestamp_ = !!_value_;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@synthesize timestamp;
|
|
|
|
- (instancetype) init {
|
|
|
|
- (instancetype) init {
|
|
|
|
if ((self = [super init])) {
|
|
|
|
if ((self = [super init])) {
|
|
|
|
self.body = @"";
|
|
|
|
self.body = @"";
|
|
|
@ -2969,6 +2977,7 @@ static OWSSignalServiceProtosCallMessageHangup* defaultOWSSignalServiceProtosCal
|
|
|
|
self.flags = 0;
|
|
|
|
self.flags = 0;
|
|
|
|
self.expireTimer = 0;
|
|
|
|
self.expireTimer = 0;
|
|
|
|
self.profileKey = [NSData data];
|
|
|
|
self.profileKey = [NSData data];
|
|
|
|
|
|
|
|
self.timestamp = 0L;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return self;
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -3012,6 +3021,9 @@ static OWSSignalServiceProtosDataMessage* defaultOWSSignalServiceProtosDataMessa
|
|
|
|
if (self.hasProfileKey) {
|
|
|
|
if (self.hasProfileKey) {
|
|
|
|
[output writeData:6 value:self.profileKey];
|
|
|
|
[output writeData:6 value:self.profileKey];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (self.hasTimestamp) {
|
|
|
|
|
|
|
|
[output writeUInt64:7 value:self.timestamp];
|
|
|
|
|
|
|
|
}
|
|
|
|
[self.unknownFields writeToCodedOutputStream:output];
|
|
|
|
[self.unknownFields writeToCodedOutputStream:output];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
- (SInt32) serializedSize {
|
|
|
|
- (SInt32) serializedSize {
|
|
|
@ -3039,6 +3051,9 @@ static OWSSignalServiceProtosDataMessage* defaultOWSSignalServiceProtosDataMessa
|
|
|
|
if (self.hasProfileKey) {
|
|
|
|
if (self.hasProfileKey) {
|
|
|
|
size_ += computeDataSize(6, self.profileKey);
|
|
|
|
size_ += computeDataSize(6, self.profileKey);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (self.hasTimestamp) {
|
|
|
|
|
|
|
|
size_ += computeUInt64Size(7, self.timestamp);
|
|
|
|
|
|
|
|
}
|
|
|
|
size_ += self.unknownFields.serializedSize;
|
|
|
|
size_ += self.unknownFields.serializedSize;
|
|
|
|
memoizedSerializedSize = size_;
|
|
|
|
memoizedSerializedSize = size_;
|
|
|
|
return size_;
|
|
|
|
return size_;
|
|
|
@ -3098,6 +3113,9 @@ static OWSSignalServiceProtosDataMessage* defaultOWSSignalServiceProtosDataMessa
|
|
|
|
if (self.hasProfileKey) {
|
|
|
|
if (self.hasProfileKey) {
|
|
|
|
[output appendFormat:@"%@%@: %@\n", indent, @"profileKey", self.profileKey];
|
|
|
|
[output appendFormat:@"%@%@: %@\n", indent, @"profileKey", self.profileKey];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (self.hasTimestamp) {
|
|
|
|
|
|
|
|
[output appendFormat:@"%@%@: %@\n", indent, @"timestamp", [NSNumber numberWithLongLong:self.timestamp]];
|
|
|
|
|
|
|
|
}
|
|
|
|
[self.unknownFields writeDescriptionTo:output withIndent:indent];
|
|
|
|
[self.unknownFields writeDescriptionTo:output withIndent:indent];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
- (void) storeInDictionary:(NSMutableDictionary *)dictionary {
|
|
|
|
- (void) storeInDictionary:(NSMutableDictionary *)dictionary {
|
|
|
@ -3123,6 +3141,9 @@ static OWSSignalServiceProtosDataMessage* defaultOWSSignalServiceProtosDataMessa
|
|
|
|
if (self.hasProfileKey) {
|
|
|
|
if (self.hasProfileKey) {
|
|
|
|
[dictionary setObject: self.profileKey forKey: @"profileKey"];
|
|
|
|
[dictionary setObject: self.profileKey forKey: @"profileKey"];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (self.hasTimestamp) {
|
|
|
|
|
|
|
|
[dictionary setObject: [NSNumber numberWithLongLong:self.timestamp] forKey: @"timestamp"];
|
|
|
|
|
|
|
|
}
|
|
|
|
[self.unknownFields storeInDictionary:dictionary];
|
|
|
|
[self.unknownFields storeInDictionary:dictionary];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
- (BOOL) isEqual:(id)other {
|
|
|
|
- (BOOL) isEqual:(id)other {
|
|
|
@ -3145,6 +3166,8 @@ static OWSSignalServiceProtosDataMessage* defaultOWSSignalServiceProtosDataMessa
|
|
|
|
(!self.hasExpireTimer || self.expireTimer == otherMessage.expireTimer) &&
|
|
|
|
(!self.hasExpireTimer || self.expireTimer == otherMessage.expireTimer) &&
|
|
|
|
self.hasProfileKey == otherMessage.hasProfileKey &&
|
|
|
|
self.hasProfileKey == otherMessage.hasProfileKey &&
|
|
|
|
(!self.hasProfileKey || [self.profileKey isEqual:otherMessage.profileKey]) &&
|
|
|
|
(!self.hasProfileKey || [self.profileKey isEqual:otherMessage.profileKey]) &&
|
|
|
|
|
|
|
|
self.hasTimestamp == otherMessage.hasTimestamp &&
|
|
|
|
|
|
|
|
(!self.hasTimestamp || self.timestamp == otherMessage.timestamp) &&
|
|
|
|
(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 {
|
|
|
@ -3167,6 +3190,9 @@ static OWSSignalServiceProtosDataMessage* defaultOWSSignalServiceProtosDataMessa
|
|
|
|
if (self.hasProfileKey) {
|
|
|
|
if (self.hasProfileKey) {
|
|
|
|
hashCode = hashCode * 31 + [self.profileKey hash];
|
|
|
|
hashCode = hashCode * 31 + [self.profileKey hash];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (self.hasTimestamp) {
|
|
|
|
|
|
|
|
hashCode = hashCode * 31 + [[NSNumber numberWithLongLong:self.timestamp] hash];
|
|
|
|
|
|
|
|
}
|
|
|
|
hashCode = hashCode * 31 + [self.unknownFields hash];
|
|
|
|
hashCode = hashCode * 31 + [self.unknownFields hash];
|
|
|
|
return hashCode;
|
|
|
|
return hashCode;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -3255,6 +3281,9 @@ NSString *NSStringFromOWSSignalServiceProtosDataMessageFlags(OWSSignalServicePro
|
|
|
|
if (other.hasProfileKey) {
|
|
|
|
if (other.hasProfileKey) {
|
|
|
|
[self setProfileKey:other.profileKey];
|
|
|
|
[self setProfileKey:other.profileKey];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (other.hasTimestamp) {
|
|
|
|
|
|
|
|
[self setTimestamp:other.timestamp];
|
|
|
|
|
|
|
|
}
|
|
|
|
[self mergeUnknownFields:other.unknownFields];
|
|
|
|
[self mergeUnknownFields:other.unknownFields];
|
|
|
|
return self;
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -3307,6 +3336,10 @@ NSString *NSStringFromOWSSignalServiceProtosDataMessageFlags(OWSSignalServicePro
|
|
|
|
[self setProfileKey:[input readData]];
|
|
|
|
[self setProfileKey:[input readData]];
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
case 56: {
|
|
|
|
|
|
|
|
[self setTimestamp:[input readUInt64]];
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -3425,6 +3458,22 @@ NSString *NSStringFromOWSSignalServiceProtosDataMessageFlags(OWSSignalServicePro
|
|
|
|
resultDataMessage.profileKey = [NSData data];
|
|
|
|
resultDataMessage.profileKey = [NSData data];
|
|
|
|
return self;
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL) hasTimestamp {
|
|
|
|
|
|
|
|
return resultDataMessage.hasTimestamp;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
- (UInt64) timestamp {
|
|
|
|
|
|
|
|
return resultDataMessage.timestamp;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
- (OWSSignalServiceProtosDataMessageBuilder*) setTimestamp:(UInt64) value {
|
|
|
|
|
|
|
|
resultDataMessage.hasTimestamp = YES;
|
|
|
|
|
|
|
|
resultDataMessage.timestamp = value;
|
|
|
|
|
|
|
|
return self;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
- (OWSSignalServiceProtosDataMessageBuilder*) clearTimestamp {
|
|
|
|
|
|
|
|
resultDataMessage.hasTimestamp = NO;
|
|
|
|
|
|
|
|
resultDataMessage.timestamp = 0L;
|
|
|
|
|
|
|
|
return self;
|
|
|
|
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
@interface OWSSignalServiceProtosNullMessage ()
|
|
|
|
@interface OWSSignalServiceProtosNullMessage ()
|
|
|
@ -6925,6 +6974,8 @@ static OWSSignalServiceProtosSyncMessageConfiguration* defaultOWSSignalServicePr
|
|
|
|
@property (strong) NSData* digest;
|
|
|
|
@property (strong) NSData* digest;
|
|
|
|
@property (strong) NSString* fileName;
|
|
|
|
@property (strong) NSString* fileName;
|
|
|
|
@property UInt32 flags;
|
|
|
|
@property UInt32 flags;
|
|
|
|
|
|
|
|
@property UInt32 width;
|
|
|
|
|
|
|
|
@property UInt32 height;
|
|
|
|
@end
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
@implementation OWSSignalServiceProtosAttachmentPointer
|
|
|
|
@implementation OWSSignalServiceProtosAttachmentPointer
|
|
|
@ -6985,6 +7036,20 @@ static OWSSignalServiceProtosSyncMessageConfiguration* defaultOWSSignalServicePr
|
|
|
|
hasFlags_ = !!_value_;
|
|
|
|
hasFlags_ = !!_value_;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@synthesize flags;
|
|
|
|
@synthesize flags;
|
|
|
|
|
|
|
|
- (BOOL) hasWidth {
|
|
|
|
|
|
|
|
return !!hasWidth_;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) setHasWidth:(BOOL) _value_ {
|
|
|
|
|
|
|
|
hasWidth_ = !!_value_;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@synthesize width;
|
|
|
|
|
|
|
|
- (BOOL) hasHeight {
|
|
|
|
|
|
|
|
return !!hasHeight_;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) setHasHeight:(BOOL) _value_ {
|
|
|
|
|
|
|
|
hasHeight_ = !!_value_;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@synthesize height;
|
|
|
|
- (instancetype) init {
|
|
|
|
- (instancetype) init {
|
|
|
|
if ((self = [super init])) {
|
|
|
|
if ((self = [super init])) {
|
|
|
|
self.id = 0L;
|
|
|
|
self.id = 0L;
|
|
|
@ -6995,6 +7060,8 @@ static OWSSignalServiceProtosSyncMessageConfiguration* defaultOWSSignalServicePr
|
|
|
|
self.digest = [NSData data];
|
|
|
|
self.digest = [NSData data];
|
|
|
|
self.fileName = @"";
|
|
|
|
self.fileName = @"";
|
|
|
|
self.flags = 0;
|
|
|
|
self.flags = 0;
|
|
|
|
|
|
|
|
self.width = 0;
|
|
|
|
|
|
|
|
self.height = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return self;
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -7038,6 +7105,12 @@ static OWSSignalServiceProtosAttachmentPointer* defaultOWSSignalServiceProtosAtt
|
|
|
|
if (self.hasFlags) {
|
|
|
|
if (self.hasFlags) {
|
|
|
|
[output writeUInt32:8 value:self.flags];
|
|
|
|
[output writeUInt32:8 value:self.flags];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (self.hasWidth) {
|
|
|
|
|
|
|
|
[output writeUInt32:9 value:self.width];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (self.hasHeight) {
|
|
|
|
|
|
|
|
[output writeUInt32:10 value:self.height];
|
|
|
|
|
|
|
|
}
|
|
|
|
[self.unknownFields writeToCodedOutputStream:output];
|
|
|
|
[self.unknownFields writeToCodedOutputStream:output];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
- (SInt32) serializedSize {
|
|
|
|
- (SInt32) serializedSize {
|
|
|
@ -7071,6 +7144,12 @@ static OWSSignalServiceProtosAttachmentPointer* defaultOWSSignalServiceProtosAtt
|
|
|
|
if (self.hasFlags) {
|
|
|
|
if (self.hasFlags) {
|
|
|
|
size_ += computeUInt32Size(8, self.flags);
|
|
|
|
size_ += computeUInt32Size(8, self.flags);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (self.hasWidth) {
|
|
|
|
|
|
|
|
size_ += computeUInt32Size(9, self.width);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (self.hasHeight) {
|
|
|
|
|
|
|
|
size_ += computeUInt32Size(10, self.height);
|
|
|
|
|
|
|
|
}
|
|
|
|
size_ += self.unknownFields.serializedSize;
|
|
|
|
size_ += self.unknownFields.serializedSize;
|
|
|
|
memoizedSerializedSize = size_;
|
|
|
|
memoizedSerializedSize = size_;
|
|
|
|
return size_;
|
|
|
|
return size_;
|
|
|
@ -7130,6 +7209,12 @@ static OWSSignalServiceProtosAttachmentPointer* defaultOWSSignalServiceProtosAtt
|
|
|
|
if (self.hasFlags) {
|
|
|
|
if (self.hasFlags) {
|
|
|
|
[output appendFormat:@"%@%@: %@\n", indent, @"flags", [NSNumber numberWithInteger:self.flags]];
|
|
|
|
[output appendFormat:@"%@%@: %@\n", indent, @"flags", [NSNumber numberWithInteger:self.flags]];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (self.hasWidth) {
|
|
|
|
|
|
|
|
[output appendFormat:@"%@%@: %@\n", indent, @"width", [NSNumber numberWithInteger:self.width]];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (self.hasHeight) {
|
|
|
|
|
|
|
|
[output appendFormat:@"%@%@: %@\n", indent, @"height", [NSNumber numberWithInteger:self.height]];
|
|
|
|
|
|
|
|
}
|
|
|
|
[self.unknownFields writeDescriptionTo:output withIndent:indent];
|
|
|
|
[self.unknownFields writeDescriptionTo:output withIndent:indent];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
- (void) storeInDictionary:(NSMutableDictionary *)dictionary {
|
|
|
|
- (void) storeInDictionary:(NSMutableDictionary *)dictionary {
|
|
|
@ -7157,6 +7242,12 @@ static OWSSignalServiceProtosAttachmentPointer* defaultOWSSignalServiceProtosAtt
|
|
|
|
if (self.hasFlags) {
|
|
|
|
if (self.hasFlags) {
|
|
|
|
[dictionary setObject: [NSNumber numberWithInteger:self.flags] forKey: @"flags"];
|
|
|
|
[dictionary setObject: [NSNumber numberWithInteger:self.flags] forKey: @"flags"];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (self.hasWidth) {
|
|
|
|
|
|
|
|
[dictionary setObject: [NSNumber numberWithInteger:self.width] forKey: @"width"];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (self.hasHeight) {
|
|
|
|
|
|
|
|
[dictionary setObject: [NSNumber numberWithInteger:self.height] forKey: @"height"];
|
|
|
|
|
|
|
|
}
|
|
|
|
[self.unknownFields storeInDictionary:dictionary];
|
|
|
|
[self.unknownFields storeInDictionary:dictionary];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
- (BOOL) isEqual:(id)other {
|
|
|
|
- (BOOL) isEqual:(id)other {
|
|
|
@ -7184,6 +7275,10 @@ static OWSSignalServiceProtosAttachmentPointer* defaultOWSSignalServiceProtosAtt
|
|
|
|
(!self.hasFileName || [self.fileName isEqual:otherMessage.fileName]) &&
|
|
|
|
(!self.hasFileName || [self.fileName isEqual:otherMessage.fileName]) &&
|
|
|
|
self.hasFlags == otherMessage.hasFlags &&
|
|
|
|
self.hasFlags == otherMessage.hasFlags &&
|
|
|
|
(!self.hasFlags || self.flags == otherMessage.flags) &&
|
|
|
|
(!self.hasFlags || self.flags == otherMessage.flags) &&
|
|
|
|
|
|
|
|
self.hasWidth == otherMessage.hasWidth &&
|
|
|
|
|
|
|
|
(!self.hasWidth || self.width == otherMessage.width) &&
|
|
|
|
|
|
|
|
self.hasHeight == otherMessage.hasHeight &&
|
|
|
|
|
|
|
|
(!self.hasHeight || self.height == otherMessage.height) &&
|
|
|
|
(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 {
|
|
|
@ -7212,6 +7307,12 @@ static OWSSignalServiceProtosAttachmentPointer* defaultOWSSignalServiceProtosAtt
|
|
|
|
if (self.hasFlags) {
|
|
|
|
if (self.hasFlags) {
|
|
|
|
hashCode = hashCode * 31 + [[NSNumber numberWithInteger:self.flags] hash];
|
|
|
|
hashCode = hashCode * 31 + [[NSNumber numberWithInteger:self.flags] hash];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (self.hasWidth) {
|
|
|
|
|
|
|
|
hashCode = hashCode * 31 + [[NSNumber numberWithInteger:self.width] hash];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (self.hasHeight) {
|
|
|
|
|
|
|
|
hashCode = hashCode * 31 + [[NSNumber numberWithInteger:self.height] hash];
|
|
|
|
|
|
|
|
}
|
|
|
|
hashCode = hashCode * 31 + [self.unknownFields hash];
|
|
|
|
hashCode = hashCode * 31 + [self.unknownFields hash];
|
|
|
|
return hashCode;
|
|
|
|
return hashCode;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -7296,6 +7397,12 @@ NSString *NSStringFromOWSSignalServiceProtosAttachmentPointerFlags(OWSSignalServ
|
|
|
|
if (other.hasFlags) {
|
|
|
|
if (other.hasFlags) {
|
|
|
|
[self setFlags:other.flags];
|
|
|
|
[self setFlags:other.flags];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (other.hasWidth) {
|
|
|
|
|
|
|
|
[self setWidth:other.width];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (other.hasHeight) {
|
|
|
|
|
|
|
|
[self setHeight:other.height];
|
|
|
|
|
|
|
|
}
|
|
|
|
[self mergeUnknownFields:other.unknownFields];
|
|
|
|
[self mergeUnknownFields:other.unknownFields];
|
|
|
|
return self;
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -7349,6 +7456,14 @@ NSString *NSStringFromOWSSignalServiceProtosAttachmentPointerFlags(OWSSignalServ
|
|
|
|
[self setFlags:[input readUInt32]];
|
|
|
|
[self setFlags:[input readUInt32]];
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
case 72: {
|
|
|
|
|
|
|
|
[self setWidth:[input readUInt32]];
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
case 80: {
|
|
|
|
|
|
|
|
[self setHeight:[input readUInt32]];
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -7480,6 +7595,38 @@ NSString *NSStringFromOWSSignalServiceProtosAttachmentPointerFlags(OWSSignalServ
|
|
|
|
resultAttachmentPointer.flags = 0;
|
|
|
|
resultAttachmentPointer.flags = 0;
|
|
|
|
return self;
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL) hasWidth {
|
|
|
|
|
|
|
|
return resultAttachmentPointer.hasWidth;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
- (UInt32) width {
|
|
|
|
|
|
|
|
return resultAttachmentPointer.width;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
- (OWSSignalServiceProtosAttachmentPointerBuilder*) setWidth:(UInt32) value {
|
|
|
|
|
|
|
|
resultAttachmentPointer.hasWidth = YES;
|
|
|
|
|
|
|
|
resultAttachmentPointer.width = value;
|
|
|
|
|
|
|
|
return self;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
- (OWSSignalServiceProtosAttachmentPointerBuilder*) clearWidth {
|
|
|
|
|
|
|
|
resultAttachmentPointer.hasWidth = NO;
|
|
|
|
|
|
|
|
resultAttachmentPointer.width = 0;
|
|
|
|
|
|
|
|
return self;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL) hasHeight {
|
|
|
|
|
|
|
|
return resultAttachmentPointer.hasHeight;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
- (UInt32) height {
|
|
|
|
|
|
|
|
return resultAttachmentPointer.height;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
- (OWSSignalServiceProtosAttachmentPointerBuilder*) setHeight:(UInt32) value {
|
|
|
|
|
|
|
|
resultAttachmentPointer.hasHeight = YES;
|
|
|
|
|
|
|
|
resultAttachmentPointer.height = value;
|
|
|
|
|
|
|
|
return self;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
- (OWSSignalServiceProtosAttachmentPointerBuilder*) clearHeight {
|
|
|
|
|
|
|
|
resultAttachmentPointer.hasHeight = NO;
|
|
|
|
|
|
|
|
resultAttachmentPointer.height = 0;
|
|
|
|
|
|
|
|
return self;
|
|
|
|
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
@interface OWSSignalServiceProtosGroupContext ()
|
|
|
|
@interface OWSSignalServiceProtosGroupContext ()
|
|
|
@ -7961,6 +8108,8 @@ NSString *NSStringFromOWSSignalServiceProtosGroupContextType(OWSSignalServicePro
|
|
|
|
@property (strong) NSString* color;
|
|
|
|
@property (strong) NSString* color;
|
|
|
|
@property (strong) OWSSignalServiceProtosVerified* verified;
|
|
|
|
@property (strong) OWSSignalServiceProtosVerified* verified;
|
|
|
|
@property (strong) NSData* profileKey;
|
|
|
|
@property (strong) NSData* profileKey;
|
|
|
|
|
|
|
|
@property BOOL blocked;
|
|
|
|
|
|
|
|
@property UInt32 expireTimer;
|
|
|
|
@end
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
@implementation OWSSignalServiceProtosContactDetails
|
|
|
|
@implementation OWSSignalServiceProtosContactDetails
|
|
|
@ -8007,6 +8156,25 @@ NSString *NSStringFromOWSSignalServiceProtosGroupContextType(OWSSignalServicePro
|
|
|
|
hasProfileKey_ = !!_value_;
|
|
|
|
hasProfileKey_ = !!_value_;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@synthesize profileKey;
|
|
|
|
@synthesize profileKey;
|
|
|
|
|
|
|
|
- (BOOL) hasBlocked {
|
|
|
|
|
|
|
|
return !!hasBlocked_;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) setHasBlocked:(BOOL) _value_ {
|
|
|
|
|
|
|
|
hasBlocked_ = !!_value_;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL) blocked {
|
|
|
|
|
|
|
|
return !!blocked_;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) setBlocked:(BOOL) _value_ {
|
|
|
|
|
|
|
|
blocked_ = !!_value_;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL) hasExpireTimer {
|
|
|
|
|
|
|
|
return !!hasExpireTimer_;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) setHasExpireTimer:(BOOL) _value_ {
|
|
|
|
|
|
|
|
hasExpireTimer_ = !!_value_;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@synthesize expireTimer;
|
|
|
|
- (instancetype) init {
|
|
|
|
- (instancetype) init {
|
|
|
|
if ((self = [super init])) {
|
|
|
|
if ((self = [super init])) {
|
|
|
|
self.number = @"";
|
|
|
|
self.number = @"";
|
|
|
@ -8015,6 +8183,8 @@ NSString *NSStringFromOWSSignalServiceProtosGroupContextType(OWSSignalServicePro
|
|
|
|
self.color = @"";
|
|
|
|
self.color = @"";
|
|
|
|
self.verified = [OWSSignalServiceProtosVerified defaultInstance];
|
|
|
|
self.verified = [OWSSignalServiceProtosVerified defaultInstance];
|
|
|
|
self.profileKey = [NSData data];
|
|
|
|
self.profileKey = [NSData data];
|
|
|
|
|
|
|
|
self.blocked = NO;
|
|
|
|
|
|
|
|
self.expireTimer = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return self;
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -8052,6 +8222,12 @@ static OWSSignalServiceProtosContactDetails* defaultOWSSignalServiceProtosContac
|
|
|
|
if (self.hasProfileKey) {
|
|
|
|
if (self.hasProfileKey) {
|
|
|
|
[output writeData:6 value:self.profileKey];
|
|
|
|
[output writeData:6 value:self.profileKey];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (self.hasBlocked) {
|
|
|
|
|
|
|
|
[output writeBool:7 value:self.blocked];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (self.hasExpireTimer) {
|
|
|
|
|
|
|
|
[output writeUInt32:8 value:self.expireTimer];
|
|
|
|
|
|
|
|
}
|
|
|
|
[self.unknownFields writeToCodedOutputStream:output];
|
|
|
|
[self.unknownFields writeToCodedOutputStream:output];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
- (SInt32) serializedSize {
|
|
|
|
- (SInt32) serializedSize {
|
|
|
@ -8079,6 +8255,12 @@ static OWSSignalServiceProtosContactDetails* defaultOWSSignalServiceProtosContac
|
|
|
|
if (self.hasProfileKey) {
|
|
|
|
if (self.hasProfileKey) {
|
|
|
|
size_ += computeDataSize(6, self.profileKey);
|
|
|
|
size_ += computeDataSize(6, self.profileKey);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (self.hasBlocked) {
|
|
|
|
|
|
|
|
size_ += computeBoolSize(7, self.blocked);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (self.hasExpireTimer) {
|
|
|
|
|
|
|
|
size_ += computeUInt32Size(8, self.expireTimer);
|
|
|
|
|
|
|
|
}
|
|
|
|
size_ += self.unknownFields.serializedSize;
|
|
|
|
size_ += self.unknownFields.serializedSize;
|
|
|
|
memoizedSerializedSize = size_;
|
|
|
|
memoizedSerializedSize = size_;
|
|
|
|
return size_;
|
|
|
|
return size_;
|
|
|
@ -8138,6 +8320,12 @@ static OWSSignalServiceProtosContactDetails* defaultOWSSignalServiceProtosContac
|
|
|
|
if (self.hasProfileKey) {
|
|
|
|
if (self.hasProfileKey) {
|
|
|
|
[output appendFormat:@"%@%@: %@\n", indent, @"profileKey", self.profileKey];
|
|
|
|
[output appendFormat:@"%@%@: %@\n", indent, @"profileKey", self.profileKey];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (self.hasBlocked) {
|
|
|
|
|
|
|
|
[output appendFormat:@"%@%@: %@\n", indent, @"blocked", [NSNumber numberWithBool:self.blocked]];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (self.hasExpireTimer) {
|
|
|
|
|
|
|
|
[output appendFormat:@"%@%@: %@\n", indent, @"expireTimer", [NSNumber numberWithInteger:self.expireTimer]];
|
|
|
|
|
|
|
|
}
|
|
|
|
[self.unknownFields writeDescriptionTo:output withIndent:indent];
|
|
|
|
[self.unknownFields writeDescriptionTo:output withIndent:indent];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
- (void) storeInDictionary:(NSMutableDictionary *)dictionary {
|
|
|
|
- (void) storeInDictionary:(NSMutableDictionary *)dictionary {
|
|
|
@ -8163,6 +8351,12 @@ static OWSSignalServiceProtosContactDetails* defaultOWSSignalServiceProtosContac
|
|
|
|
if (self.hasProfileKey) {
|
|
|
|
if (self.hasProfileKey) {
|
|
|
|
[dictionary setObject: self.profileKey forKey: @"profileKey"];
|
|
|
|
[dictionary setObject: self.profileKey forKey: @"profileKey"];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (self.hasBlocked) {
|
|
|
|
|
|
|
|
[dictionary setObject: [NSNumber numberWithBool:self.blocked] forKey: @"blocked"];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (self.hasExpireTimer) {
|
|
|
|
|
|
|
|
[dictionary setObject: [NSNumber numberWithInteger:self.expireTimer] forKey: @"expireTimer"];
|
|
|
|
|
|
|
|
}
|
|
|
|
[self.unknownFields storeInDictionary:dictionary];
|
|
|
|
[self.unknownFields storeInDictionary:dictionary];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
- (BOOL) isEqual:(id)other {
|
|
|
|
- (BOOL) isEqual:(id)other {
|
|
|
@ -8186,6 +8380,10 @@ static OWSSignalServiceProtosContactDetails* defaultOWSSignalServiceProtosContac
|
|
|
|
(!self.hasVerified || [self.verified isEqual:otherMessage.verified]) &&
|
|
|
|
(!self.hasVerified || [self.verified isEqual:otherMessage.verified]) &&
|
|
|
|
self.hasProfileKey == otherMessage.hasProfileKey &&
|
|
|
|
self.hasProfileKey == otherMessage.hasProfileKey &&
|
|
|
|
(!self.hasProfileKey || [self.profileKey isEqual:otherMessage.profileKey]) &&
|
|
|
|
(!self.hasProfileKey || [self.profileKey isEqual:otherMessage.profileKey]) &&
|
|
|
|
|
|
|
|
self.hasBlocked == otherMessage.hasBlocked &&
|
|
|
|
|
|
|
|
(!self.hasBlocked || self.blocked == otherMessage.blocked) &&
|
|
|
|
|
|
|
|
self.hasExpireTimer == otherMessage.hasExpireTimer &&
|
|
|
|
|
|
|
|
(!self.hasExpireTimer || self.expireTimer == otherMessage.expireTimer) &&
|
|
|
|
(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 {
|
|
|
@ -8208,6 +8406,12 @@ static OWSSignalServiceProtosContactDetails* defaultOWSSignalServiceProtosContac
|
|
|
|
if (self.hasProfileKey) {
|
|
|
|
if (self.hasProfileKey) {
|
|
|
|
hashCode = hashCode * 31 + [self.profileKey hash];
|
|
|
|
hashCode = hashCode * 31 + [self.profileKey hash];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (self.hasBlocked) {
|
|
|
|
|
|
|
|
hashCode = hashCode * 31 + [[NSNumber numberWithBool:self.blocked] hash];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (self.hasExpireTimer) {
|
|
|
|
|
|
|
|
hashCode = hashCode * 31 + [[NSNumber numberWithInteger:self.expireTimer] hash];
|
|
|
|
|
|
|
|
}
|
|
|
|
hashCode = hashCode * 31 + [self.unknownFields hash];
|
|
|
|
hashCode = hashCode * 31 + [self.unknownFields hash];
|
|
|
|
return hashCode;
|
|
|
|
return hashCode;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -8524,6 +8728,12 @@ static OWSSignalServiceProtosContactDetailsAvatar* defaultOWSSignalServiceProtos
|
|
|
|
if (other.hasProfileKey) {
|
|
|
|
if (other.hasProfileKey) {
|
|
|
|
[self setProfileKey:other.profileKey];
|
|
|
|
[self setProfileKey:other.profileKey];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (other.hasBlocked) {
|
|
|
|
|
|
|
|
[self setBlocked:other.blocked];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (other.hasExpireTimer) {
|
|
|
|
|
|
|
|
[self setExpireTimer:other.expireTimer];
|
|
|
|
|
|
|
|
}
|
|
|
|
[self mergeUnknownFields:other.unknownFields];
|
|
|
|
[self mergeUnknownFields:other.unknownFields];
|
|
|
|
return self;
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -8579,6 +8789,14 @@ static OWSSignalServiceProtosContactDetailsAvatar* defaultOWSSignalServiceProtos
|
|
|
|
[self setProfileKey:[input readData]];
|
|
|
|
[self setProfileKey:[input readData]];
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
case 56: {
|
|
|
|
|
|
|
|
[self setBlocked:[input readBool]];
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
case 64: {
|
|
|
|
|
|
|
|
[self setExpireTimer:[input readUInt32]];
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -8706,6 +8924,38 @@ static OWSSignalServiceProtosContactDetailsAvatar* defaultOWSSignalServiceProtos
|
|
|
|
resultContactDetails.profileKey = [NSData data];
|
|
|
|
resultContactDetails.profileKey = [NSData data];
|
|
|
|
return self;
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL) hasBlocked {
|
|
|
|
|
|
|
|
return resultContactDetails.hasBlocked;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL) blocked {
|
|
|
|
|
|
|
|
return resultContactDetails.blocked;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
- (OWSSignalServiceProtosContactDetailsBuilder*) setBlocked:(BOOL) value {
|
|
|
|
|
|
|
|
resultContactDetails.hasBlocked = YES;
|
|
|
|
|
|
|
|
resultContactDetails.blocked = value;
|
|
|
|
|
|
|
|
return self;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
- (OWSSignalServiceProtosContactDetailsBuilder*) clearBlocked {
|
|
|
|
|
|
|
|
resultContactDetails.hasBlocked = NO;
|
|
|
|
|
|
|
|
resultContactDetails.blocked = NO;
|
|
|
|
|
|
|
|
return self;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL) hasExpireTimer {
|
|
|
|
|
|
|
|
return resultContactDetails.hasExpireTimer;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
- (UInt32) expireTimer {
|
|
|
|
|
|
|
|
return resultContactDetails.expireTimer;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
- (OWSSignalServiceProtosContactDetailsBuilder*) setExpireTimer:(UInt32) value {
|
|
|
|
|
|
|
|
resultContactDetails.hasExpireTimer = YES;
|
|
|
|
|
|
|
|
resultContactDetails.expireTimer = value;
|
|
|
|
|
|
|
|
return self;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
- (OWSSignalServiceProtosContactDetailsBuilder*) clearExpireTimer {
|
|
|
|
|
|
|
|
resultContactDetails.hasExpireTimer = NO;
|
|
|
|
|
|
|
|
resultContactDetails.expireTimer = 0;
|
|
|
|
|
|
|
|
return self;
|
|
|
|
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
@interface OWSSignalServiceProtosGroupDetails ()
|
|
|
|
@interface OWSSignalServiceProtosGroupDetails ()
|
|
|
@ -8714,6 +8964,7 @@ static OWSSignalServiceProtosContactDetailsAvatar* defaultOWSSignalServiceProtos
|
|
|
|
@property (strong) NSMutableArray * membersArray;
|
|
|
|
@property (strong) NSMutableArray * membersArray;
|
|
|
|
@property (strong) OWSSignalServiceProtosGroupDetailsAvatar* avatar;
|
|
|
|
@property (strong) OWSSignalServiceProtosGroupDetailsAvatar* avatar;
|
|
|
|
@property BOOL active;
|
|
|
|
@property BOOL active;
|
|
|
|
|
|
|
|
@property UInt32 expireTimer;
|
|
|
|
@end
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
@implementation OWSSignalServiceProtosGroupDetails
|
|
|
|
@implementation OWSSignalServiceProtosGroupDetails
|
|
|
@ -8753,12 +9004,20 @@ static OWSSignalServiceProtosContactDetailsAvatar* defaultOWSSignalServiceProtos
|
|
|
|
- (void) setActive:(BOOL) _value_ {
|
|
|
|
- (void) setActive:(BOOL) _value_ {
|
|
|
|
active_ = !!_value_;
|
|
|
|
active_ = !!_value_;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL) hasExpireTimer {
|
|
|
|
|
|
|
|
return !!hasExpireTimer_;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) setHasExpireTimer:(BOOL) _value_ {
|
|
|
|
|
|
|
|
hasExpireTimer_ = !!_value_;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@synthesize expireTimer;
|
|
|
|
- (instancetype) init {
|
|
|
|
- (instancetype) init {
|
|
|
|
if ((self = [super init])) {
|
|
|
|
if ((self = [super init])) {
|
|
|
|
self.id = [NSData data];
|
|
|
|
self.id = [NSData data];
|
|
|
|
self.name = @"";
|
|
|
|
self.name = @"";
|
|
|
|
self.avatar = [OWSSignalServiceProtosGroupDetailsAvatar defaultInstance];
|
|
|
|
self.avatar = [OWSSignalServiceProtosGroupDetailsAvatar defaultInstance];
|
|
|
|
self.active = YES;
|
|
|
|
self.active = YES;
|
|
|
|
|
|
|
|
self.expireTimer = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return self;
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -8799,6 +9058,9 @@ static OWSSignalServiceProtosGroupDetails* defaultOWSSignalServiceProtosGroupDet
|
|
|
|
if (self.hasActive) {
|
|
|
|
if (self.hasActive) {
|
|
|
|
[output writeBool:5 value:self.active];
|
|
|
|
[output writeBool:5 value:self.active];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (self.hasExpireTimer) {
|
|
|
|
|
|
|
|
[output writeUInt32:6 value:self.expireTimer];
|
|
|
|
|
|
|
|
}
|
|
|
|
[self.unknownFields writeToCodedOutputStream:output];
|
|
|
|
[self.unknownFields writeToCodedOutputStream:output];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
- (SInt32) serializedSize {
|
|
|
|
- (SInt32) serializedSize {
|
|
|
@ -8829,6 +9091,9 @@ static OWSSignalServiceProtosGroupDetails* defaultOWSSignalServiceProtosGroupDet
|
|
|
|
if (self.hasActive) {
|
|
|
|
if (self.hasActive) {
|
|
|
|
size_ += computeBoolSize(5, self.active);
|
|
|
|
size_ += computeBoolSize(5, self.active);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (self.hasExpireTimer) {
|
|
|
|
|
|
|
|
size_ += computeUInt32Size(6, self.expireTimer);
|
|
|
|
|
|
|
|
}
|
|
|
|
size_ += self.unknownFields.serializedSize;
|
|
|
|
size_ += self.unknownFields.serializedSize;
|
|
|
|
memoizedSerializedSize = size_;
|
|
|
|
memoizedSerializedSize = size_;
|
|
|
|
return size_;
|
|
|
|
return size_;
|
|
|
@ -8882,6 +9147,9 @@ static OWSSignalServiceProtosGroupDetails* defaultOWSSignalServiceProtosGroupDet
|
|
|
|
if (self.hasActive) {
|
|
|
|
if (self.hasActive) {
|
|
|
|
[output appendFormat:@"%@%@: %@\n", indent, @"active", [NSNumber numberWithBool:self.active]];
|
|
|
|
[output appendFormat:@"%@%@: %@\n", indent, @"active", [NSNumber numberWithBool:self.active]];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (self.hasExpireTimer) {
|
|
|
|
|
|
|
|
[output appendFormat:@"%@%@: %@\n", indent, @"expireTimer", [NSNumber numberWithInteger:self.expireTimer]];
|
|
|
|
|
|
|
|
}
|
|
|
|
[self.unknownFields writeDescriptionTo:output withIndent:indent];
|
|
|
|
[self.unknownFields writeDescriptionTo:output withIndent:indent];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
- (void) storeInDictionary:(NSMutableDictionary *)dictionary {
|
|
|
|
- (void) storeInDictionary:(NSMutableDictionary *)dictionary {
|
|
|
@ -8900,6 +9168,9 @@ static OWSSignalServiceProtosGroupDetails* defaultOWSSignalServiceProtosGroupDet
|
|
|
|
if (self.hasActive) {
|
|
|
|
if (self.hasActive) {
|
|
|
|
[dictionary setObject: [NSNumber numberWithBool:self.active] forKey: @"active"];
|
|
|
|
[dictionary setObject: [NSNumber numberWithBool:self.active] forKey: @"active"];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (self.hasExpireTimer) {
|
|
|
|
|
|
|
|
[dictionary setObject: [NSNumber numberWithInteger:self.expireTimer] forKey: @"expireTimer"];
|
|
|
|
|
|
|
|
}
|
|
|
|
[self.unknownFields storeInDictionary:dictionary];
|
|
|
|
[self.unknownFields storeInDictionary:dictionary];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
- (BOOL) isEqual:(id)other {
|
|
|
|
- (BOOL) isEqual:(id)other {
|
|
|
@ -8920,6 +9191,8 @@ static OWSSignalServiceProtosGroupDetails* defaultOWSSignalServiceProtosGroupDet
|
|
|
|
(!self.hasAvatar || [self.avatar isEqual:otherMessage.avatar]) &&
|
|
|
|
(!self.hasAvatar || [self.avatar isEqual:otherMessage.avatar]) &&
|
|
|
|
self.hasActive == otherMessage.hasActive &&
|
|
|
|
self.hasActive == otherMessage.hasActive &&
|
|
|
|
(!self.hasActive || self.active == otherMessage.active) &&
|
|
|
|
(!self.hasActive || self.active == otherMessage.active) &&
|
|
|
|
|
|
|
|
self.hasExpireTimer == otherMessage.hasExpireTimer &&
|
|
|
|
|
|
|
|
(!self.hasExpireTimer || self.expireTimer == otherMessage.expireTimer) &&
|
|
|
|
(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 {
|
|
|
@ -8939,6 +9212,9 @@ static OWSSignalServiceProtosGroupDetails* defaultOWSSignalServiceProtosGroupDet
|
|
|
|
if (self.hasActive) {
|
|
|
|
if (self.hasActive) {
|
|
|
|
hashCode = hashCode * 31 + [[NSNumber numberWithBool:self.active] hash];
|
|
|
|
hashCode = hashCode * 31 + [[NSNumber numberWithBool:self.active] hash];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (self.hasExpireTimer) {
|
|
|
|
|
|
|
|
hashCode = hashCode * 31 + [[NSNumber numberWithInteger:self.expireTimer] hash];
|
|
|
|
|
|
|
|
}
|
|
|
|
hashCode = hashCode * 31 + [self.unknownFields hash];
|
|
|
|
hashCode = hashCode * 31 + [self.unknownFields hash];
|
|
|
|
return hashCode;
|
|
|
|
return hashCode;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -9256,6 +9532,9 @@ static OWSSignalServiceProtosGroupDetailsAvatar* defaultOWSSignalServiceProtosGr
|
|
|
|
if (other.hasActive) {
|
|
|
|
if (other.hasActive) {
|
|
|
|
[self setActive:other.active];
|
|
|
|
[self setActive:other.active];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (other.hasExpireTimer) {
|
|
|
|
|
|
|
|
[self setExpireTimer:other.expireTimer];
|
|
|
|
|
|
|
|
}
|
|
|
|
[self mergeUnknownFields:other.unknownFields];
|
|
|
|
[self mergeUnknownFields:other.unknownFields];
|
|
|
|
return self;
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -9302,6 +9581,10 @@ static OWSSignalServiceProtosGroupDetailsAvatar* defaultOWSSignalServiceProtosGr
|
|
|
|
[self setActive:[input readBool]];
|
|
|
|
[self setActive:[input readBool]];
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
case 48: {
|
|
|
|
|
|
|
|
[self setExpireTimer:[input readUInt32]];
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -9404,6 +9687,22 @@ static OWSSignalServiceProtosGroupDetailsAvatar* defaultOWSSignalServiceProtosGr
|
|
|
|
resultGroupDetails.active = YES;
|
|
|
|
resultGroupDetails.active = YES;
|
|
|
|
return self;
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL) hasExpireTimer {
|
|
|
|
|
|
|
|
return resultGroupDetails.hasExpireTimer;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
- (UInt32) expireTimer {
|
|
|
|
|
|
|
|
return resultGroupDetails.expireTimer;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
- (OWSSignalServiceProtosGroupDetailsBuilder*) setExpireTimer:(UInt32) value {
|
|
|
|
|
|
|
|
resultGroupDetails.hasExpireTimer = YES;
|
|
|
|
|
|
|
|
resultGroupDetails.expireTimer = value;
|
|
|
|
|
|
|
|
return self;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
- (OWSSignalServiceProtosGroupDetailsBuilder*) clearExpireTimer {
|
|
|
|
|
|
|
|
resultGroupDetails.hasExpireTimer = NO;
|
|
|
|
|
|
|
|
resultGroupDetails.expireTimer = 0;
|
|
|
|
|
|
|
|
return self;
|
|
|
|
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|