Timestamp.pbobjc.m 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/timestamp.proto
  3. #import "GPBProtocolBuffers_RuntimeSupport.h"
  4. #import "google/protobuf/Timestamp.pbobjc.h"
  5. // @@protoc_insertion_point(imports)
  6. #pragma mark - GPBTimestampRoot
  7. @implementation GPBTimestampRoot
  8. @end
  9. #pragma mark - GPBTimestampRoot_FileDescriptor
  10. static GPBFileDescriptor *GPBTimestampRoot_FileDescriptor(void) {
  11. // This is called by +initialize so there is no need to worry
  12. // about thread safety of the singleton.
  13. static GPBFileDescriptor *descriptor = NULL;
  14. if (!descriptor) {
  15. GPBDebugCheckRuntimeVersion();
  16. descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf"
  17. syntax:GPBFileSyntaxProto3];
  18. }
  19. return descriptor;
  20. }
  21. #pragma mark - GPBTimestamp
  22. @implementation GPBTimestamp
  23. @dynamic seconds;
  24. @dynamic nanos;
  25. typedef struct GPBTimestamp__storage_ {
  26. uint32_t _has_storage_[1];
  27. int32_t nanos;
  28. int64_t seconds;
  29. } GPBTimestamp__storage_;
  30. // This method is threadsafe because it is initially called
  31. // in +initialize for each subclass.
  32. + (GPBDescriptor *)descriptor {
  33. static GPBDescriptor *descriptor = nil;
  34. if (!descriptor) {
  35. static GPBMessageFieldDescription fields[] = {
  36. {
  37. .name = "seconds",
  38. .number = GPBTimestamp_FieldNumber_Seconds,
  39. .hasIndex = 0,
  40. .flags = GPBFieldOptional,
  41. .dataType = GPBDataTypeInt64,
  42. .offset = offsetof(GPBTimestamp__storage_, seconds),
  43. .defaultValue.valueInt64 = 0LL,
  44. .dataTypeSpecific.className = NULL,
  45. .fieldOptions = NULL,
  46. },
  47. {
  48. .name = "nanos",
  49. .number = GPBTimestamp_FieldNumber_Nanos,
  50. .hasIndex = 1,
  51. .flags = GPBFieldOptional,
  52. .dataType = GPBDataTypeInt32,
  53. .offset = offsetof(GPBTimestamp__storage_, nanos),
  54. .defaultValue.valueInt32 = 0,
  55. .dataTypeSpecific.className = NULL,
  56. .fieldOptions = NULL,
  57. },
  58. };
  59. GPBDescriptor *localDescriptor =
  60. [GPBDescriptor allocDescriptorForClass:[GPBTimestamp class]
  61. rootClass:[GPBTimestampRoot class]
  62. file:GPBTimestampRoot_FileDescriptor()
  63. fields:fields
  64. fieldCount:sizeof(fields) / sizeof(GPBMessageFieldDescription)
  65. oneofs:NULL
  66. oneofCount:0
  67. enums:NULL
  68. enumCount:0
  69. ranges:NULL
  70. rangeCount:0
  71. storageSize:sizeof(GPBTimestamp__storage_)
  72. wireFormat:NO];
  73. NSAssert(descriptor == nil, @"Startup recursed!");
  74. descriptor = localDescriptor;
  75. }
  76. return descriptor;
  77. }
  78. @end
  79. // @@protoc_insertion_point(global_scope)