|
|
|
@ -1,4 +1,6 @@
|
|
|
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
|
|
|
//
|
|
|
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#import "OWSSignalServiceProtos.pb.h"
|
|
|
|
|
// @@protoc_insertion_point(imports)
|
|
|
|
@ -5320,6 +5322,7 @@ static OWSSignalServiceProtosSyncMessageRead* defaultOWSSignalServiceProtosSyncM
|
|
|
|
|
@property UInt32 size;
|
|
|
|
|
@property (strong) NSData* thumbnail;
|
|
|
|
|
@property (strong) NSData* digest;
|
|
|
|
|
@property (strong) NSString* fileName;
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
@implementation OWSSignalServiceProtosAttachmentPointer
|
|
|
|
@ -5366,6 +5369,13 @@ static OWSSignalServiceProtosSyncMessageRead* defaultOWSSignalServiceProtosSyncM
|
|
|
|
|
hasDigest_ = !!_value_;
|
|
|
|
|
}
|
|
|
|
|
@synthesize digest;
|
|
|
|
|
- (BOOL) hasFileName {
|
|
|
|
|
return !!hasFileName_;
|
|
|
|
|
}
|
|
|
|
|
- (void) setHasFileName:(BOOL) _value_ {
|
|
|
|
|
hasFileName_ = !!_value_;
|
|
|
|
|
}
|
|
|
|
|
@synthesize fileName;
|
|
|
|
|
- (instancetype) init {
|
|
|
|
|
if ((self = [super init])) {
|
|
|
|
|
self.id = 0L;
|
|
|
|
@ -5374,6 +5384,7 @@ static OWSSignalServiceProtosSyncMessageRead* defaultOWSSignalServiceProtosSyncM
|
|
|
|
|
self.size = 0;
|
|
|
|
|
self.thumbnail = [NSData data];
|
|
|
|
|
self.digest = [NSData data];
|
|
|
|
|
self.fileName = @"";
|
|
|
|
|
}
|
|
|
|
|
return self;
|
|
|
|
|
}
|
|
|
|
@ -5411,6 +5422,9 @@ static OWSSignalServiceProtosAttachmentPointer* defaultOWSSignalServiceProtosAtt
|
|
|
|
|
if (self.hasDigest) {
|
|
|
|
|
[output writeData:6 value:self.digest];
|
|
|
|
|
}
|
|
|
|
|
if (self.hasFileName) {
|
|
|
|
|
[output writeString:7 value:self.fileName];
|
|
|
|
|
}
|
|
|
|
|
[self.unknownFields writeToCodedOutputStream:output];
|
|
|
|
|
}
|
|
|
|
|
- (SInt32) serializedSize {
|
|
|
|
@ -5438,6 +5452,9 @@ static OWSSignalServiceProtosAttachmentPointer* defaultOWSSignalServiceProtosAtt
|
|
|
|
|
if (self.hasDigest) {
|
|
|
|
|
size_ += computeDataSize(6, self.digest);
|
|
|
|
|
}
|
|
|
|
|
if (self.hasFileName) {
|
|
|
|
|
size_ += computeStringSize(7, self.fileName);
|
|
|
|
|
}
|
|
|
|
|
size_ += self.unknownFields.serializedSize;
|
|
|
|
|
memoizedSerializedSize = size_;
|
|
|
|
|
return size_;
|
|
|
|
@ -5491,6 +5508,9 @@ static OWSSignalServiceProtosAttachmentPointer* defaultOWSSignalServiceProtosAtt
|
|
|
|
|
if (self.hasDigest) {
|
|
|
|
|
[output appendFormat:@"%@%@: %@\n", indent, @"digest", self.digest];
|
|
|
|
|
}
|
|
|
|
|
if (self.hasFileName) {
|
|
|
|
|
[output appendFormat:@"%@%@: %@\n", indent, @"fileName", self.fileName];
|
|
|
|
|
}
|
|
|
|
|
[self.unknownFields writeDescriptionTo:output withIndent:indent];
|
|
|
|
|
}
|
|
|
|
|
- (void) storeInDictionary:(NSMutableDictionary *)dictionary {
|
|
|
|
@ -5512,6 +5532,9 @@ static OWSSignalServiceProtosAttachmentPointer* defaultOWSSignalServiceProtosAtt
|
|
|
|
|
if (self.hasDigest) {
|
|
|
|
|
[dictionary setObject: self.digest forKey: @"digest"];
|
|
|
|
|
}
|
|
|
|
|
if (self.hasFileName) {
|
|
|
|
|
[dictionary setObject: self.fileName forKey: @"fileName"];
|
|
|
|
|
}
|
|
|
|
|
[self.unknownFields storeInDictionary:dictionary];
|
|
|
|
|
}
|
|
|
|
|
- (BOOL) isEqual:(id)other {
|
|
|
|
@ -5535,6 +5558,8 @@ static OWSSignalServiceProtosAttachmentPointer* defaultOWSSignalServiceProtosAtt
|
|
|
|
|
(!self.hasThumbnail || [self.thumbnail isEqual:otherMessage.thumbnail]) &&
|
|
|
|
|
self.hasDigest == otherMessage.hasDigest &&
|
|
|
|
|
(!self.hasDigest || [self.digest isEqual:otherMessage.digest]) &&
|
|
|
|
|
self.hasFileName == otherMessage.hasFileName &&
|
|
|
|
|
(!self.hasFileName || [self.fileName isEqual:otherMessage.fileName]) &&
|
|
|
|
|
(self.unknownFields == otherMessage.unknownFields || (self.unknownFields != nil && [self.unknownFields isEqual:otherMessage.unknownFields]));
|
|
|
|
|
}
|
|
|
|
|
- (NSUInteger) hash {
|
|
|
|
@ -5557,6 +5582,9 @@ static OWSSignalServiceProtosAttachmentPointer* defaultOWSSignalServiceProtosAtt
|
|
|
|
|
if (self.hasDigest) {
|
|
|
|
|
hashCode = hashCode * 31 + [self.digest hash];
|
|
|
|
|
}
|
|
|
|
|
if (self.hasFileName) {
|
|
|
|
|
hashCode = hashCode * 31 + [self.fileName hash];
|
|
|
|
|
}
|
|
|
|
|
hashCode = hashCode * 31 + [self.unknownFields hash];
|
|
|
|
|
return hashCode;
|
|
|
|
|
}
|
|
|
|
@ -5618,6 +5646,9 @@ static OWSSignalServiceProtosAttachmentPointer* defaultOWSSignalServiceProtosAtt
|
|
|
|
|
if (other.hasDigest) {
|
|
|
|
|
[self setDigest:other.digest];
|
|
|
|
|
}
|
|
|
|
|
if (other.hasFileName) {
|
|
|
|
|
[self setFileName:other.fileName];
|
|
|
|
|
}
|
|
|
|
|
[self mergeUnknownFields:other.unknownFields];
|
|
|
|
|
return self;
|
|
|
|
|
}
|
|
|
|
@ -5663,6 +5694,10 @@ static OWSSignalServiceProtosAttachmentPointer* defaultOWSSignalServiceProtosAtt
|
|
|
|
|
[self setDigest:[input readData]];
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case 58: {
|
|
|
|
|
[self setFileName:[input readString]];
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -5762,6 +5797,22 @@ static OWSSignalServiceProtosAttachmentPointer* defaultOWSSignalServiceProtosAtt
|
|
|
|
|
resultAttachmentPointer.digest = [NSData data];
|
|
|
|
|
return self;
|
|
|
|
|
}
|
|
|
|
|
- (BOOL) hasFileName {
|
|
|
|
|
return resultAttachmentPointer.hasFileName;
|
|
|
|
|
}
|
|
|
|
|
- (NSString*) fileName {
|
|
|
|
|
return resultAttachmentPointer.fileName;
|
|
|
|
|
}
|
|
|
|
|
- (OWSSignalServiceProtosAttachmentPointerBuilder*) setFileName:(NSString*) value {
|
|
|
|
|
resultAttachmentPointer.hasFileName = YES;
|
|
|
|
|
resultAttachmentPointer.fileName = value;
|
|
|
|
|
return self;
|
|
|
|
|
}
|
|
|
|
|
- (OWSSignalServiceProtosAttachmentPointerBuilder*) clearFileName {
|
|
|
|
|
resultAttachmentPointer.hasFileName = NO;
|
|
|
|
|
resultAttachmentPointer.fileName = @"";
|
|
|
|
|
return self;
|
|
|
|
|
}
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
@interface OWSSignalServiceProtosGroupContext ()
|
|
|
|
@ -6001,6 +6052,7 @@ BOOL OWSSignalServiceProtosGroupContextTypeIsValidValue(OWSSignalServiceProtosGr
|
|
|
|
|
case OWSSignalServiceProtosGroupContextTypeUpdate:
|
|
|
|
|
case OWSSignalServiceProtosGroupContextTypeDeliver:
|
|
|
|
|
case OWSSignalServiceProtosGroupContextTypeQuit:
|
|
|
|
|
case OWSSignalServiceProtosGroupContextTypeRequestInfo:
|
|
|
|
|
return YES;
|
|
|
|
|
default:
|
|
|
|
|
return NO;
|
|
|
|
@ -6016,6 +6068,8 @@ NSString *NSStringFromOWSSignalServiceProtosGroupContextType(OWSSignalServicePro
|
|
|
|
|
return @"OWSSignalServiceProtosGroupContextTypeDeliver";
|
|
|
|
|
case OWSSignalServiceProtosGroupContextTypeQuit:
|
|
|
|
|
return @"OWSSignalServiceProtosGroupContextTypeQuit";
|
|
|
|
|
case OWSSignalServiceProtosGroupContextTypeRequestInfo:
|
|
|
|
|
return @"OWSSignalServiceProtosGroupContextTypeRequestInfo";
|
|
|
|
|
default:
|
|
|
|
|
return nil;
|
|
|
|
|
}
|
|
|
|
|