timestamp.pb.h 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  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 < 3015000
  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 3015006 < 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. extern PROTOBUF_EXPORT 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 PROTOBUF_FINAL :
  62. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Timestamp) */ {
  63. public:
  64. inline Timestamp() : Timestamp(nullptr) {}
  65. virtual ~Timestamp();
  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 (GetArena() == from.GetArena()) {
  78. if (this != &from) InternalSwap(&from);
  79. } else {
  80. CopyFrom(from);
  81. }
  82. return *this;
  83. }
  84. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  85. return GetDescriptor();
  86. }
  87. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  88. return default_instance().GetMetadata().descriptor;
  89. }
  90. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  91. return default_instance().GetMetadata().reflection;
  92. }
  93. static const Timestamp& default_instance() {
  94. return *internal_default_instance();
  95. }
  96. static inline const Timestamp* internal_default_instance() {
  97. return reinterpret_cast<const Timestamp*>(
  98. &_Timestamp_default_instance_);
  99. }
  100. static constexpr int kIndexInFileMessages =
  101. 0;
  102. friend void swap(Timestamp& a, Timestamp& b) {
  103. a.Swap(&b);
  104. }
  105. inline void Swap(Timestamp* other) {
  106. if (other == this) return;
  107. if (GetArena() == other->GetArena()) {
  108. InternalSwap(other);
  109. } else {
  110. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  111. }
  112. }
  113. void UnsafeArenaSwap(Timestamp* other) {
  114. if (other == this) return;
  115. GOOGLE_DCHECK(GetArena() == other->GetArena());
  116. InternalSwap(other);
  117. }
  118. // implements Message ----------------------------------------------
  119. inline Timestamp* New() const final {
  120. return CreateMaybeMessage<Timestamp>(nullptr);
  121. }
  122. Timestamp* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  123. return CreateMaybeMessage<Timestamp>(arena);
  124. }
  125. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  126. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  127. void CopyFrom(const Timestamp& from);
  128. void MergeFrom(const Timestamp& from);
  129. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  130. bool IsInitialized() const final;
  131. size_t ByteSizeLong() const final;
  132. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  133. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  134. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  135. int GetCachedSize() const final { return _cached_size_.Get(); }
  136. private:
  137. inline void SharedCtor();
  138. inline void SharedDtor();
  139. void SetCachedSize(int size) const final;
  140. void InternalSwap(Timestamp* other);
  141. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  142. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  143. return "google.protobuf.Timestamp";
  144. }
  145. protected:
  146. explicit Timestamp(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  147. private:
  148. static void ArenaDtor(void* object);
  149. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  150. public:
  151. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  152. // nested types ----------------------------------------------------
  153. // accessors -------------------------------------------------------
  154. enum : int {
  155. kSecondsFieldNumber = 1,
  156. kNanosFieldNumber = 2,
  157. };
  158. // int64 seconds = 1;
  159. void clear_seconds();
  160. ::PROTOBUF_NAMESPACE_ID::int64 seconds() const;
  161. void set_seconds(::PROTOBUF_NAMESPACE_ID::int64 value);
  162. private:
  163. ::PROTOBUF_NAMESPACE_ID::int64 _internal_seconds() const;
  164. void _internal_set_seconds(::PROTOBUF_NAMESPACE_ID::int64 value);
  165. public:
  166. // int32 nanos = 2;
  167. void clear_nanos();
  168. ::PROTOBUF_NAMESPACE_ID::int32 nanos() const;
  169. void set_nanos(::PROTOBUF_NAMESPACE_ID::int32 value);
  170. private:
  171. ::PROTOBUF_NAMESPACE_ID::int32 _internal_nanos() const;
  172. void _internal_set_nanos(::PROTOBUF_NAMESPACE_ID::int32 value);
  173. public:
  174. // @@protoc_insertion_point(class_scope:google.protobuf.Timestamp)
  175. private:
  176. class _Internal;
  177. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  178. typedef void InternalArenaConstructable_;
  179. typedef void DestructorSkippable_;
  180. ::PROTOBUF_NAMESPACE_ID::int64 seconds_;
  181. ::PROTOBUF_NAMESPACE_ID::int32 nanos_;
  182. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  183. friend struct ::TableStruct_google_2fprotobuf_2ftimestamp_2eproto;
  184. };
  185. // ===================================================================
  186. // ===================================================================
  187. #ifdef __GNUC__
  188. #pragma GCC diagnostic push
  189. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  190. #endif // __GNUC__
  191. // Timestamp
  192. // int64 seconds = 1;
  193. inline void Timestamp::clear_seconds() {
  194. seconds_ = PROTOBUF_LONGLONG(0);
  195. }
  196. inline ::PROTOBUF_NAMESPACE_ID::int64 Timestamp::_internal_seconds() const {
  197. return seconds_;
  198. }
  199. inline ::PROTOBUF_NAMESPACE_ID::int64 Timestamp::seconds() const {
  200. // @@protoc_insertion_point(field_get:google.protobuf.Timestamp.seconds)
  201. return _internal_seconds();
  202. }
  203. inline void Timestamp::_internal_set_seconds(::PROTOBUF_NAMESPACE_ID::int64 value) {
  204. seconds_ = value;
  205. }
  206. inline void Timestamp::set_seconds(::PROTOBUF_NAMESPACE_ID::int64 value) {
  207. _internal_set_seconds(value);
  208. // @@protoc_insertion_point(field_set:google.protobuf.Timestamp.seconds)
  209. }
  210. // int32 nanos = 2;
  211. inline void Timestamp::clear_nanos() {
  212. nanos_ = 0;
  213. }
  214. inline ::PROTOBUF_NAMESPACE_ID::int32 Timestamp::_internal_nanos() const {
  215. return nanos_;
  216. }
  217. inline ::PROTOBUF_NAMESPACE_ID::int32 Timestamp::nanos() const {
  218. // @@protoc_insertion_point(field_get:google.protobuf.Timestamp.nanos)
  219. return _internal_nanos();
  220. }
  221. inline void Timestamp::_internal_set_nanos(::PROTOBUF_NAMESPACE_ID::int32 value) {
  222. nanos_ = value;
  223. }
  224. inline void Timestamp::set_nanos(::PROTOBUF_NAMESPACE_ID::int32 value) {
  225. _internal_set_nanos(value);
  226. // @@protoc_insertion_point(field_set:google.protobuf.Timestamp.nanos)
  227. }
  228. #ifdef __GNUC__
  229. #pragma GCC diagnostic pop
  230. #endif // __GNUC__
  231. // @@protoc_insertion_point(namespace_scope)
  232. PROTOBUF_NAMESPACE_CLOSE
  233. // @@protoc_insertion_point(global_scope)
  234. #include <google/protobuf/port_undef.inc>
  235. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2ftimestamp_2eproto