Empty.pbobjc.m 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/empty.proto
  3. // This CPP symbol can be defined to use imports that match up to the framework
  4. // imports needed when using CocoaPods.
  5. #if !defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS)
  6. #define GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS 0
  7. #endif
  8. #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
  9. #import <Protobuf/GPBProtocolBuffers_RuntimeSupport.h>
  10. #else
  11. #import "GPBProtocolBuffers_RuntimeSupport.h"
  12. #endif
  13. #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
  14. #import <Protobuf/Empty.pbobjc.h>
  15. #else
  16. #import "google/protobuf/Empty.pbobjc.h"
  17. #endif
  18. // @@protoc_insertion_point(imports)
  19. #pragma clang diagnostic push
  20. #pragma clang diagnostic ignored "-Wdeprecated-declarations"
  21. #pragma mark - GPBEmptyRoot
  22. @implementation GPBEmptyRoot
  23. @end
  24. #pragma mark - GPBEmptyRoot_FileDescriptor
  25. static GPBFileDescriptor *GPBEmptyRoot_FileDescriptor(void) {
  26. // This is called by +initialize so there is no need to worry
  27. // about thread safety of the singleton.
  28. static GPBFileDescriptor *descriptor = NULL;
  29. if (!descriptor) {
  30. GPBDebugCheckRuntimeVersion();
  31. descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf"
  32. syntax:GPBFileSyntaxProto3];
  33. }
  34. return descriptor;
  35. }
  36. #pragma mark - GPBEmpty
  37. @implementation GPBEmpty
  38. typedef struct GPBEmpty__storage_ {
  39. uint32_t _has_storage_[1];
  40. } GPBEmpty__storage_;
  41. // This method is threadsafe because it is initially called
  42. // in +initialize for each subclass.
  43. + (GPBDescriptor *)descriptor {
  44. static GPBDescriptor *descriptor = nil;
  45. if (!descriptor) {
  46. GPBDescriptor *localDescriptor =
  47. [GPBDescriptor allocDescriptorForClass:[GPBEmpty class]
  48. rootClass:[GPBEmptyRoot class]
  49. file:GPBEmptyRoot_FileDescriptor()
  50. fields:NULL
  51. fieldCount:0
  52. storageSize:sizeof(GPBEmpty__storage_)
  53. flags:0];
  54. NSAssert(descriptor == nil, @"Startup recursed!");
  55. descriptor = localDescriptor;
  56. }
  57. return descriptor;
  58. }
  59. @end
  60. #pragma clang diagnostic pop
  61. // @@protoc_insertion_point(global_scope)