timestamp.pb.h 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/timestamp.proto
  3. #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2ftimestamp_2eproto
  4. #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2ftimestamp_2eproto
  5. #include <limits>
  6. #include <string>
  7. #include <google/protobuf/port_def.inc>
  8. #if PROTOBUF_VERSION < 3017000
  9. #error This file was generated by a newer version of protoc which is
  10. #error incompatible with your Protocol Buffer headers. Please update
  11. #error your headers.
  12. #endif
  13. #if 3017003 < PROTOBUF_MIN_PROTOC_VERSION
  14. #error This file was generated by an older version of protoc which is
  15. #error incompatible with your Protocol Buffer headers. Please
  16. #error regenerate this file with a newer version of protoc.
  17. #endif
  18. #include <google/protobuf/port_undef.inc>
  19. #include <google/protobuf/io/coded_stream.h>
  20. #include <google/protobuf/arena.h>
  21. #include <google/protobuf/arenastring.h>
  22. #include <google/protobuf/generated_message_table_driven.h>
  23. #include <google/protobuf/generated_message_util.h>
  24. #include <google/protobuf/metadata_lite.h>
  25. #include <google/protobuf/generated_message_reflection.h>
  26. #include <google/protobuf/message.h>
  27. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  28. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  29. #include <google/protobuf/unknown_field_set.h>
  30. // @@protoc_insertion_point(includes)
  31. #include <google/protobuf/port_def.inc>
  32. #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto PROTOBUF_EXPORT
  33. PROTOBUF_NAMESPACE_OPEN
  34. namespace internal {
  35. class AnyMetadata;
  36. } // namespace internal
  37. PROTOBUF_NAMESPACE_CLOSE
  38. // Internal implementation detail -- do not use these members.
  39. struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2ftimestamp_2eproto {
  40. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  41. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  42. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
  43. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  44. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
  45. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  46. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  47. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  48. static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
  49. };
  50. PROTOBUF_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2ftimestamp_2eproto;
  51. PROTOBUF_NAMESPACE_OPEN
  52. class Timestamp;
  53. struct TimestampDefaultTypeInternal;
  54. PROTOBUF_EXPORT extern TimestampDefaultTypeInternal _Timestamp_default_instance_;
  55. PROTOBUF_NAMESPACE_CLOSE
  56. PROTOBUF_NAMESPACE_OPEN
  57. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::Timestamp* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(Arena*);
  58. PROTOBUF_NAMESPACE_CLOSE
  59. PROTOBUF_NAMESPACE_OPEN
  60. // ===================================================================
  61. class PROTOBUF_EXPORT Timestamp final :
  62. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Timestamp) */ {
  63. public:
  64. inline Timestamp() : Timestamp(nullptr) {}
  65. ~Timestamp() override;
  66. explicit constexpr Timestamp(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  67. Timestamp(const Timestamp& from);
  68. Timestamp(Timestamp&& from) noexcept
  69. : Timestamp() {
  70. *this = ::std::move(from);
  71. }
  72. inline Timestamp& operator=(const Timestamp& from) {
  73. CopyFrom(from);
  74. return *this;
  75. }
  76. inline Timestamp& operator=(Timestamp&& from) noexcept {
  77. if (this == &from) return *this;
  78. if (GetOwningArena() == from.GetOwningArena()) {
  79. InternalSwap(&from);
  80. } else {
  81. CopyFrom(from);
  82. }
  83. return *this;
  84. }
  85. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  86. return GetDescriptor();
  87. }
  88. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  89. return default_instance().GetMetadata().descriptor;
  90. }
  91. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  92. return default_instance().GetMetadata().reflection;
  93. }
  94. static const Timestamp& default_instance() {
  95. return *internal_default_instance();
  96. }
  97. static inline const Timestamp* internal_default_instance() {
  98. return reinterpret_cast<const Timestamp*>(
  99. &_Timestamp_default_instance_);
  100. }
  101. static constexpr int kIndexInFileMessages =
  102. 0;
  103. friend void swap(Timestamp& a, Timestamp& b) {
  104. a.Swap(&b);
  105. }
  106. inline void Swap(Timestamp* other) {
  107. if (other == this) return;
  108. if (GetOwningArena() == other->GetOwningArena()) {
  109. InternalSwap(other);
  110. } else {
  111. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  112. }
  113. }
  114. void UnsafeArenaSwap(Timestamp* other) {
  115. if (other == this) return;
  116. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  117. InternalSwap(other);
  118. }
  119. // implements Message ----------------------------------------------
  120. inline Timestamp* New() const final {
  121. return new Timestamp();
  122. }
  123. Timestamp* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  124. return CreateMaybeMessage<Timestamp>(arena);
  125. }
  126. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  127. void CopyFrom(const Timestamp& from);
  128. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  129. void MergeFrom(const Timestamp& from);
  130. private:
  131. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message*to, const ::PROTOBUF_NAMESPACE_ID::Message&from);
  132. public:
  133. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  134. bool IsInitialized() const final;
  135. size_t ByteSizeLong() const final;
  136. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  137. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  138. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  139. int GetCachedSize() const final { return _cached_size_.Get(); }
  140. private:
  141. void SharedCtor();
  142. void SharedDtor();
  143. void SetCachedSize(int size) const final;
  144. void InternalSwap(Timestamp* other);
  145. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  146. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  147. return "google.protobuf.Timestamp";
  148. }
  149. protected:
  150. explicit Timestamp(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  151. bool is_message_owned = false);
  152. private:
  153. static void ArenaDtor(void* object);
  154. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  155. public:
  156. static const ClassData _class_data_;
  157. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  158. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  159. // nested types ----------------------------------------------------
  160. // accessors -------------------------------------------------------
  161. enum : int {
  162. kSecondsFieldNumber = 1,
  163. kNanosFieldNumber = 2,
  164. };
  165. // int64 seconds = 1;
  166. void clear_seconds();
  167. ::PROTOBUF_NAMESPACE_ID::int64 seconds() const;
  168. void set_seconds(::PROTOBUF_NAMESPACE_ID::int64 value);
  169. private:
  170. ::PROTOBUF_NAMESPACE_ID::int64 _internal_seconds() const;
  171. void _internal_set_seconds(::PROTOBUF_NAMESPACE_ID::int64 value);
  172. public:
  173. // int32 nanos = 2;
  174. void clear_nanos();
  175. ::PROTOBUF_NAMESPACE_ID::int32 nanos() const;
  176. void set_nanos(::PROTOBUF_NAMESPACE_ID::int32 value);
  177. private:
  178. ::PROTOBUF_NAMESPACE_ID::int32 _internal_nanos() const;
  179. void _internal_set_nanos(::PROTOBUF_NAMESPACE_ID::int32 value);
  180. public:
  181. // @@protoc_insertion_point(class_scope:google.protobuf.Timestamp)
  182. private:
  183. class _Internal;
  184. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  185. typedef void InternalArenaConstructable_;
  186. typedef void DestructorSkippable_;
  187. ::PROTOBUF_NAMESPACE_ID::int64 seconds_;
  188. ::PROTOBUF_NAMESPACE_ID::int32 nanos_;
  189. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  190. friend struct ::TableStruct_google_2fprotobuf_2ftimestamp_2eproto;
  191. };
  192. // ===================================================================
  193. // ===================================================================
  194. #ifdef __GNUC__
  195. #pragma GCC diagnostic push
  196. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  197. #endif // __GNUC__
  198. // Timestamp
  199. // int64 seconds = 1;
  200. inline void Timestamp::clear_seconds() {
  201. seconds_ = int64_t{0};
  202. }
  203. inline ::PROTOBUF_NAMESPACE_ID::int64 Timestamp::_internal_seconds() const {
  204. return seconds_;
  205. }
  206. inline ::PROTOBUF_NAMESPACE_ID::int64 Timestamp::seconds() const {
  207. // @@protoc_insertion_point(field_get:google.protobuf.Timestamp.seconds)
  208. return _internal_seconds();
  209. }
  210. inline void Timestamp::_internal_set_seconds(::PROTOBUF_NAMESPACE_ID::int64 value) {
  211. seconds_ = value;
  212. }
  213. inline void Timestamp::set_seconds(::PROTOBUF_NAMESPACE_ID::int64 value) {
  214. _internal_set_seconds(value);
  215. // @@protoc_insertion_point(field_set:google.protobuf.Timestamp.seconds)
  216. }
  217. // int32 nanos = 2;
  218. inline void Timestamp::clear_nanos() {
  219. nanos_ = 0;
  220. }
  221. inline ::PROTOBUF_NAMESPACE_ID::int32 Timestamp::_internal_nanos() const {
  222. return nanos_;
  223. }
  224. inline ::PROTOBUF_NAMESPACE_ID::int32 Timestamp::nanos() const {
  225. // @@protoc_insertion_point(field_get:google.protobuf.Timestamp.nanos)
  226. return _internal_nanos();
  227. }
  228. inline void Timestamp::_internal_set_nanos(::PROTOBUF_NAMESPACE_ID::int32 value) {
  229. nanos_ = value;
  230. }
  231. inline void Timestamp::set_nanos(::PROTOBUF_NAMESPACE_ID::int32 value) {
  232. _internal_set_nanos(value);
  233. // @@protoc_insertion_point(field_set:google.protobuf.Timestamp.nanos)
  234. }
  235. #ifdef __GNUC__
  236. #pragma GCC diagnostic pop
  237. #endif // __GNUC__
  238. // @@protoc_insertion_point(namespace_scope)
  239. PROTOBUF_NAMESPACE_CLOSE
  240. // @@protoc_insertion_point(global_scope)
  241. #include <google/protobuf/port_undef.inc>
  242. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2ftimestamp_2eproto