Masterarbeit Richard Stern. Flutter App, sich mit einem Bluetooth-Gerät verbindet und Berührungen auf einem Sensor visualisiert.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Timestamp.pbobjc.h 5.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/timestamp.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/GPBDescriptor.h>
  10. #import <Protobuf/GPBMessage.h>
  11. #import <Protobuf/GPBRootObject.h>
  12. #else
  13. #import "GPBDescriptor.h"
  14. #import "GPBMessage.h"
  15. #import "GPBRootObject.h"
  16. #endif
  17. #if GOOGLE_PROTOBUF_OBJC_VERSION < 30002
  18. #error This file was generated by a newer version of protoc which is incompatible with your Protocol Buffer library sources.
  19. #endif
  20. #if 30002 < GOOGLE_PROTOBUF_OBJC_MIN_SUPPORTED_VERSION
  21. #error This file was generated by an older version of protoc which is incompatible with your Protocol Buffer library sources.
  22. #endif
  23. // @@protoc_insertion_point(imports)
  24. #pragma clang diagnostic push
  25. #pragma clang diagnostic ignored "-Wdeprecated-declarations"
  26. CF_EXTERN_C_BEGIN
  27. NS_ASSUME_NONNULL_BEGIN
  28. #pragma mark - GPBTimestampRoot
  29. /**
  30. * Exposes the extension registry for this file.
  31. *
  32. * The base class provides:
  33. * @code
  34. * + (GPBExtensionRegistry *)extensionRegistry;
  35. * @endcode
  36. * which is a @c GPBExtensionRegistry that includes all the extensions defined by
  37. * this file and all files that it depends on.
  38. **/
  39. @interface GPBTimestampRoot : GPBRootObject
  40. @end
  41. #pragma mark - GPBTimestamp
  42. typedef GPB_ENUM(GPBTimestamp_FieldNumber) {
  43. GPBTimestamp_FieldNumber_Seconds = 1,
  44. GPBTimestamp_FieldNumber_Nanos = 2,
  45. };
  46. /**
  47. * A Timestamp represents a point in time independent of any time zone
  48. * or calendar, represented as seconds and fractions of seconds at
  49. * nanosecond resolution in UTC Epoch time. It is encoded using the
  50. * Proleptic Gregorian Calendar which extends the Gregorian calendar
  51. * backwards to year one. It is encoded assuming all minutes are 60
  52. * seconds long, i.e. leap seconds are "smeared" so that no leap second
  53. * table is needed for interpretation. Range is from
  54. * 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z.
  55. * By restricting to that range, we ensure that we can convert to
  56. * and from RFC 3339 date strings.
  57. * See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt).
  58. *
  59. * # Examples
  60. *
  61. * Example 1: Compute Timestamp from POSIX `time()`.
  62. *
  63. * Timestamp timestamp;
  64. * timestamp.set_seconds(time(NULL));
  65. * timestamp.set_nanos(0);
  66. *
  67. * Example 2: Compute Timestamp from POSIX `gettimeofday()`.
  68. *
  69. * struct timeval tv;
  70. * gettimeofday(&tv, NULL);
  71. *
  72. * Timestamp timestamp;
  73. * timestamp.set_seconds(tv.tv_sec);
  74. * timestamp.set_nanos(tv.tv_usec * 1000);
  75. *
  76. * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
  77. *
  78. * FILETIME ft;
  79. * GetSystemTimeAsFileTime(&ft);
  80. * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
  81. *
  82. * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
  83. * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
  84. * Timestamp timestamp;
  85. * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
  86. * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
  87. *
  88. * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
  89. *
  90. * long millis = System.currentTimeMillis();
  91. *
  92. * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
  93. * .setNanos((int) ((millis % 1000) * 1000000)).build();
  94. *
  95. *
  96. * Example 5: Compute Timestamp from current time in Python.
  97. *
  98. * timestamp = Timestamp()
  99. * timestamp.GetCurrentTime()
  100. *
  101. * # JSON Mapping
  102. *
  103. * In JSON format, the Timestamp type is encoded as a string in the
  104. * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
  105. * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
  106. * where {year} is always expressed using four digits while {month}, {day},
  107. * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
  108. * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
  109. * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
  110. * is required. A proto3 JSON serializer should always use UTC (as indicated by
  111. * "Z") when printing the Timestamp type and a proto3 JSON parser should be
  112. * able to accept both UTC and other timezones (as indicated by an offset).
  113. *
  114. * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
  115. * 01:30 UTC on January 15, 2017.
  116. *
  117. * In JavaScript, one can convert a Date object to this format using the
  118. * standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString]
  119. * method. In Python, a standard `datetime.datetime` object can be converted
  120. * to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime)
  121. * with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one
  122. * can use the Joda Time's [`ISODateTimeFormat.dateTime()`](
  123. * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime--
  124. * ) to obtain a formatter capable of generating timestamps in this format.
  125. **/
  126. @interface GPBTimestamp : GPBMessage
  127. /**
  128. * Represents seconds of UTC time since Unix epoch
  129. * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
  130. * 9999-12-31T23:59:59Z inclusive.
  131. **/
  132. @property(nonatomic, readwrite) int64_t seconds;
  133. /**
  134. * Non-negative fractions of a second at nanosecond resolution. Negative
  135. * second values with fractions must still have non-negative nanos values
  136. * that count forward in time. Must be from 0 to 999,999,999
  137. * inclusive.
  138. **/
  139. @property(nonatomic, readwrite) int32_t nanos;
  140. @end
  141. NS_ASSUME_NONNULL_END
  142. CF_EXTERN_C_END
  143. #pragma clang diagnostic pop
  144. // @@protoc_insertion_point(global_scope)