| // Generated by the protocol buffer compiler. DO NOT EDIT! |
| |
| #import "Account_info.pb.h" |
| // @@protoc_insertion_point(imports) |
| |
| @implementation AccountInfoRoot |
| static PBExtensionRegistry* extensionRegistry = nil; |
| + (PBExtensionRegistry*) extensionRegistry { |
| return extensionRegistry; |
| } |
| |
| + (void) initialize { |
| if (self == [AccountInfoRoot class]) { |
| PBMutableExtensionRegistry* registry = [PBMutableExtensionRegistry registry]; |
| [self registerAllExtensions:registry]; |
| extensionRegistry = registry; |
| } |
| } |
| + (void) registerAllExtensions:(PBMutableExtensionRegistry*) registry { |
| } |
| @end |
| |
| @interface AccountInfo () |
| @property (strong) NSString* userId; |
| @property (strong) NSString* structureId; |
| @end |
| |
| @implementation AccountInfo |
| |
| - (BOOL) hasUserId { |
| return !!hasUserId_; |
| } |
| - (void) setHasUserId:(BOOL) value_ { |
| hasUserId_ = !!value_; |
| } |
| @synthesize userId; |
| - (BOOL) hasStructureId { |
| return !!hasStructureId_; |
| } |
| - (void) setHasStructureId:(BOOL) value_ { |
| hasStructureId_ = !!value_; |
| } |
| @synthesize structureId; |
| - (id) init { |
| if ((self = [super init])) { |
| self.userId = @""; |
| self.structureId = @""; |
| } |
| return self; |
| } |
| static AccountInfo* defaultAccountInfoInstance = nil; |
| + (void) initialize { |
| if (self == [AccountInfo class]) { |
| defaultAccountInfoInstance = [[AccountInfo alloc] init]; |
| } |
| } |
| + (AccountInfo*) defaultInstance { |
| return defaultAccountInfoInstance; |
| } |
| - (AccountInfo*) defaultInstance { |
| return defaultAccountInfoInstance; |
| } |
| - (BOOL) isInitialized { |
| return YES; |
| } |
| - (void) writeToCodedOutputStream:(PBCodedOutputStream*) output { |
| if (self.hasUserId) { |
| [output writeString:1 value:self.userId]; |
| } |
| if (self.hasStructureId) { |
| [output writeString:2 value:self.structureId]; |
| } |
| [self.unknownFields writeToCodedOutputStream:output]; |
| } |
| - (SInt32) serializedSize { |
| __block SInt32 size_ = memoizedSerializedSize; |
| if (size_ != -1) { |
| return size_; |
| } |
| |
| size_ = 0; |
| if (self.hasUserId) { |
| size_ += computeStringSize(1, self.userId); |
| } |
| if (self.hasStructureId) { |
| size_ += computeStringSize(2, self.structureId); |
| } |
| size_ += self.unknownFields.serializedSize; |
| memoizedSerializedSize = size_; |
| return size_; |
| } |
| + (AccountInfo*) parseFromData:(NSData*) data { |
| return (AccountInfo*)[[[AccountInfo builder] mergeFromData:data] build]; |
| } |
| + (AccountInfo*) parseFromData:(NSData*) data extensionRegistry:(PBExtensionRegistry*) extensionRegistry { |
| return (AccountInfo*)[[[AccountInfo builder] mergeFromData:data extensionRegistry:extensionRegistry] build]; |
| } |
| + (AccountInfo*) parseFromInputStream:(NSInputStream*) input { |
| return (AccountInfo*)[[[AccountInfo builder] mergeFromInputStream:input] build]; |
| } |
| + (AccountInfo*) parseFromInputStream:(NSInputStream*) input extensionRegistry:(PBExtensionRegistry*) extensionRegistry { |
| return (AccountInfo*)[[[AccountInfo builder] mergeFromInputStream:input extensionRegistry:extensionRegistry] build]; |
| } |
| + (AccountInfo*) parseFromCodedInputStream:(PBCodedInputStream*) input { |
| return (AccountInfo*)[[[AccountInfo builder] mergeFromCodedInputStream:input] build]; |
| } |
| + (AccountInfo*) parseFromCodedInputStream:(PBCodedInputStream*) input extensionRegistry:(PBExtensionRegistry*) extensionRegistry { |
| return (AccountInfo*)[[[AccountInfo builder] mergeFromCodedInputStream:input extensionRegistry:extensionRegistry] build]; |
| } |
| + (AccountInfoBuilder*) builder { |
| return [[AccountInfoBuilder alloc] init]; |
| } |
| + (AccountInfoBuilder*) builderWithPrototype:(AccountInfo*) prototype { |
| return [[AccountInfo builder] mergeFrom:prototype]; |
| } |
| - (AccountInfoBuilder*) builder { |
| return [AccountInfo builder]; |
| } |
| - (AccountInfoBuilder*) toBuilder { |
| return [AccountInfo builderWithPrototype:self]; |
| } |
| - (void) writeDescriptionTo:(NSMutableString*) output withIndent:(NSString*) indent { |
| if (self.hasUserId) { |
| [output appendFormat:@"%@%@: %@\n", indent, @"userId", self.userId]; |
| } |
| if (self.hasStructureId) { |
| [output appendFormat:@"%@%@: %@\n", indent, @"structureId", self.structureId]; |
| } |
| [self.unknownFields writeDescriptionTo:output withIndent:indent]; |
| } |
| - (BOOL) isEqual:(id)other { |
| if (other == self) { |
| return YES; |
| } |
| if (![other isKindOfClass:[AccountInfo class]]) { |
| return NO; |
| } |
| AccountInfo *otherMessage = other; |
| return |
| self.hasUserId == otherMessage.hasUserId && |
| (!self.hasUserId || [self.userId isEqual:otherMessage.userId]) && |
| self.hasStructureId == otherMessage.hasStructureId && |
| (!self.hasStructureId || [self.structureId isEqual:otherMessage.structureId]) && |
| (self.unknownFields == otherMessage.unknownFields || (self.unknownFields != nil && [self.unknownFields isEqual:otherMessage.unknownFields])); |
| } |
| - (NSUInteger) hash { |
| __block NSUInteger hashCode = 7; |
| if (self.hasUserId) { |
| hashCode = hashCode * 31 + [self.userId hash]; |
| } |
| if (self.hasStructureId) { |
| hashCode = hashCode * 31 + [self.structureId hash]; |
| } |
| hashCode = hashCode * 31 + [self.unknownFields hash]; |
| return hashCode; |
| } |
| @end |
| |
| @interface AccountInfoBuilder() |
| @property (strong) AccountInfo* result; |
| @end |
| |
| @implementation AccountInfoBuilder |
| @synthesize result; |
| - (id) init { |
| if ((self = [super init])) { |
| self.result = [[AccountInfo alloc] init]; |
| } |
| return self; |
| } |
| - (PBGeneratedMessage*) internalGetResult { |
| return result; |
| } |
| - (AccountInfoBuilder*) clear { |
| self.result = [[AccountInfo alloc] init]; |
| return self; |
| } |
| - (AccountInfoBuilder*) clone { |
| return [AccountInfo builderWithPrototype:result]; |
| } |
| - (AccountInfo*) defaultInstance { |
| return [AccountInfo defaultInstance]; |
| } |
| - (AccountInfo*) build { |
| [self checkInitialized]; |
| return [self buildPartial]; |
| } |
| - (AccountInfo*) buildPartial { |
| AccountInfo* returnMe = result; |
| self.result = nil; |
| return returnMe; |
| } |
| - (AccountInfoBuilder*) mergeFrom:(AccountInfo*) other { |
| if (other == [AccountInfo defaultInstance]) { |
| return self; |
| } |
| if (other.hasUserId) { |
| [self setUserId:other.userId]; |
| } |
| if (other.hasStructureId) { |
| [self setStructureId:other.structureId]; |
| } |
| [self mergeUnknownFields:other.unknownFields]; |
| return self; |
| } |
| - (AccountInfoBuilder*) mergeFromCodedInputStream:(PBCodedInputStream*) input { |
| return [self mergeFromCodedInputStream:input extensionRegistry:[PBExtensionRegistry emptyRegistry]]; |
| } |
| - (AccountInfoBuilder*) mergeFromCodedInputStream:(PBCodedInputStream*) input extensionRegistry:(PBExtensionRegistry*) extensionRegistry { |
| PBUnknownFieldSetBuilder* unknownFields = [PBUnknownFieldSet builderWithUnknownFields:self.unknownFields]; |
| while (YES) { |
| SInt32 tag = [input readTag]; |
| switch (tag) { |
| case 0: |
| [self setUnknownFields:[unknownFields build]]; |
| return self; |
| default: { |
| if (![self parseUnknownField:input unknownFields:unknownFields extensionRegistry:extensionRegistry tag:tag]) { |
| [self setUnknownFields:[unknownFields build]]; |
| return self; |
| } |
| break; |
| } |
| case 10: { |
| [self setUserId:[input readString]]; |
| break; |
| } |
| case 18: { |
| [self setStructureId:[input readString]]; |
| break; |
| } |
| } |
| } |
| } |
| - (BOOL) hasUserId { |
| return result.hasUserId; |
| } |
| - (NSString*) userId { |
| return result.userId; |
| } |
| - (AccountInfoBuilder*) setUserId:(NSString*) value { |
| result.hasUserId = YES; |
| result.userId = value; |
| return self; |
| } |
| - (AccountInfoBuilder*) clearUserId { |
| result.hasUserId = NO; |
| result.userId = @""; |
| return self; |
| } |
| - (BOOL) hasStructureId { |
| return result.hasStructureId; |
| } |
| - (NSString*) structureId { |
| return result.structureId; |
| } |
| - (AccountInfoBuilder*) setStructureId:(NSString*) value { |
| result.hasStructureId = YES; |
| result.structureId = value; |
| return self; |
| } |
| - (AccountInfoBuilder*) clearStructureId { |
| result.hasStructureId = NO; |
| result.structureId = @""; |
| return self; |
| } |
| @end |
| |
| |
| // @@protoc_insertion_point(global_scope) |