Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Side by Side Diff: third_party/protobuf/objectivec/google/protobuf/Duration.pbobjc.m

Issue 2590803003: Revert "third_party/protobuf: Update to HEAD (83d681ee2c)" (Closed)
Patch Set: Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Generated by the protocol buffer compiler. DO NOT EDIT! 1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: google/protobuf/duration.proto 2 // source: google/protobuf/duration.proto
3 3
4 // This CPP symbol can be defined to use imports that match up to the framework 4 #import "GPBProtocolBuffers_RuntimeSupport.h"
5 // imports needed when using CocoaPods. 5 #import "google/protobuf/Duration.pbobjc.h"
6 #if !defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS)
7 #define GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS 0
8 #endif
9
10 #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
11 #import <Protobuf/GPBProtocolBuffers_RuntimeSupport.h>
12 #else
13 #import "GPBProtocolBuffers_RuntimeSupport.h"
14 #endif
15
16 #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
17 #import <Protobuf/Duration.pbobjc.h>
18 #else
19 #import "google/protobuf/Duration.pbobjc.h"
20 #endif
21 // @@protoc_insertion_point(imports) 6 // @@protoc_insertion_point(imports)
22 7
23 #pragma clang diagnostic push 8 #pragma clang diagnostic push
24 #pragma clang diagnostic ignored "-Wdeprecated-declarations" 9 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
25 10
26 #pragma mark - GPBDurationRoot 11 #pragma mark - GPBDurationRoot
27 12
28 @implementation GPBDurationRoot 13 @implementation GPBDurationRoot
29 14
30 // No extensions in the file and no imports, so no need to generate
31 // +extensionRegistry.
32
33 @end 15 @end
34 16
35 #pragma mark - GPBDurationRoot_FileDescriptor 17 #pragma mark - GPBDurationRoot_FileDescriptor
36 18
37 static GPBFileDescriptor *GPBDurationRoot_FileDescriptor(void) { 19 static GPBFileDescriptor *GPBDurationRoot_FileDescriptor(void) {
38 // This is called by +initialize so there is no need to worry 20 // This is called by +initialize so there is no need to worry
39 // about thread safety of the singleton. 21 // about thread safety of the singleton.
40 static GPBFileDescriptor *descriptor = NULL; 22 static GPBFileDescriptor *descriptor = NULL;
41 if (!descriptor) { 23 if (!descriptor) {
42 GPB_DEBUG_CHECK_RUNTIME_VERSIONS(); 24 GPBDebugCheckRuntimeVersion();
43 descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf" 25 descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf"
44 objcPrefix:@"GPB"
45 syntax:GPBFileSyntaxProto3] ; 26 syntax:GPBFileSyntaxProto3] ;
46 } 27 }
47 return descriptor; 28 return descriptor;
48 } 29 }
49 30
50 #pragma mark - GPBDuration 31 #pragma mark - GPBDuration
51 32
52 @implementation GPBDuration 33 @implementation GPBDuration
53 34
54 @dynamic seconds; 35 @dynamic seconds;
(...skipping 30 matching lines...) Expand all
85 .dataType = GPBDataTypeInt32, 66 .dataType = GPBDataTypeInt32,
86 }, 67 },
87 }; 68 };
88 GPBDescriptor *localDescriptor = 69 GPBDescriptor *localDescriptor =
89 [GPBDescriptor allocDescriptorForClass:[GPBDuration class] 70 [GPBDescriptor allocDescriptorForClass:[GPBDuration class]
90 rootClass:[GPBDurationRoot class] 71 rootClass:[GPBDurationRoot class]
91 file:GPBDurationRoot_FileDescriptor() 72 file:GPBDurationRoot_FileDescriptor()
92 fields:fields 73 fields:fields
93 fieldCount:(uint32_t)(sizeof(fields) / sizeo f(GPBMessageFieldDescription)) 74 fieldCount:(uint32_t)(sizeof(fields) / sizeo f(GPBMessageFieldDescription))
94 storageSize:sizeof(GPBDuration__storage_) 75 storageSize:sizeof(GPBDuration__storage_)
95 flags:GPBDescriptorInitializationFlag_N one]; 76 flags:0];
96 NSAssert(descriptor == nil, @"Startup recursed!"); 77 NSAssert(descriptor == nil, @"Startup recursed!");
97 descriptor = localDescriptor; 78 descriptor = localDescriptor;
98 } 79 }
99 return descriptor; 80 return descriptor;
100 } 81 }
101 82
102 @end 83 @end
103 84
104 85
105 #pragma clang diagnostic pop 86 #pragma clang diagnostic pop
106 87
107 // @@protoc_insertion_point(global_scope) 88 // @@protoc_insertion_point(global_scope)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698