timestamp.pb.h 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. #if !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)
  2. // Generated by the protocol buffer compiler. DO NOT EDIT!
  3. // source: google/protobuf/timestamp.proto
  4. #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2ftimestamp_2eproto
  5. #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2ftimestamp_2eproto
  6. #include <limits>
  7. #include <string>
  8. #include <google/protobuf/port_def.inc>
  9. #if PROTOBUF_VERSION < 3013000
  10. #error This file was generated by a newer version of protoc which is
  11. #error incompatible with your Protocol Buffer headers. Please update
  12. #error your headers.
  13. #endif
  14. #if 3013000 < PROTOBUF_MIN_PROTOC_VERSION
  15. #error This file was generated by an older version of protoc which is
  16. #error incompatible with your Protocol Buffer headers. Please
  17. #error regenerate this file with a newer version of protoc.
  18. #endif
  19. #include <google/protobuf/port_undef.inc>
  20. #include <google/protobuf/io/coded_stream.h>
  21. #include <google/protobuf/arena.h>
  22. #include <google/protobuf/arenastring.h>
  23. #include <google/protobuf/generated_message_table_driven.h>
  24. #include <google/protobuf/generated_message_util.h>
  25. #include <google/protobuf/inlined_string_field.h>
  26. #include <google/protobuf/metadata_lite.h>
  27. #include <google/protobuf/generated_message_reflection.h>
  28. #include <google/protobuf/message.h>
  29. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  30. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  31. #include <google/protobuf/unknown_field_set.h>
  32. // @@protoc_insertion_point(includes)
  33. #include <google/protobuf/port_def.inc>
  34. #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto PROTOBUF_EXPORT
  35. PROTOBUF_NAMESPACE_OPEN
  36. namespace internal {
  37. class AnyMetadata;
  38. } // namespace internal
  39. PROTOBUF_NAMESPACE_CLOSE
  40. // Internal implementation detail -- do not use these members.
  41. struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2ftimestamp_2eproto {
  42. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  43. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  44. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
  45. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  46. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
  47. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  48. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  49. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  50. static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
  51. };
  52. extern PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2ftimestamp_2eproto;
  53. PROTOBUF_NAMESPACE_OPEN
  54. class Timestamp;
  55. class TimestampDefaultTypeInternal;
  56. PROTOBUF_EXPORT extern TimestampDefaultTypeInternal _Timestamp_default_instance_;
  57. PROTOBUF_NAMESPACE_CLOSE
  58. PROTOBUF_NAMESPACE_OPEN
  59. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::Timestamp* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(Arena*);
  60. PROTOBUF_NAMESPACE_CLOSE
  61. PROTOBUF_NAMESPACE_OPEN
  62. // ===================================================================
  63. class PROTOBUF_EXPORT Timestamp PROTOBUF_FINAL :
  64. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Timestamp) */ {
  65. public:
  66. inline Timestamp() : Timestamp(nullptr) {}
  67. virtual ~Timestamp();
  68. Timestamp(const Timestamp& from);
  69. Timestamp(Timestamp&& from) noexcept
  70. : Timestamp() {
  71. *this = ::std::move(from);
  72. }
  73. inline Timestamp& operator=(const Timestamp& from) {
  74. CopyFrom(from);
  75. return *this;
  76. }
  77. inline Timestamp& operator=(Timestamp&& from) noexcept {
  78. if (GetArena() == from.GetArena()) {
  79. if (this != &from) 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 GetMetadataStatic().descriptor;
  90. }
  91. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  92. return GetMetadataStatic().reflection;
  93. }
  94. static const Timestamp& default_instance();
  95. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  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. private:
  153. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  154. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto);
  155. return ::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto.file_level_metadata[kIndexInFileMessages];
  156. }
  157. public:
  158. // nested types ----------------------------------------------------
  159. // accessors -------------------------------------------------------
  160. enum : int {
  161. kSecondsFieldNumber = 1,
  162. kNanosFieldNumber = 2,
  163. };
  164. // int64 seconds = 1;
  165. void clear_seconds();
  166. ::PROTOBUF_NAMESPACE_ID::int64 seconds() const;
  167. void set_seconds(::PROTOBUF_NAMESPACE_ID::int64 value);
  168. private:
  169. ::PROTOBUF_NAMESPACE_ID::int64 _internal_seconds() const;
  170. void _internal_set_seconds(::PROTOBUF_NAMESPACE_ID::int64 value);
  171. public:
  172. // int32 nanos = 2;
  173. void clear_nanos();
  174. ::PROTOBUF_NAMESPACE_ID::int32 nanos() const;
  175. void set_nanos(::PROTOBUF_NAMESPACE_ID::int32 value);
  176. private:
  177. ::PROTOBUF_NAMESPACE_ID::int32 _internal_nanos() const;
  178. void _internal_set_nanos(::PROTOBUF_NAMESPACE_ID::int32 value);
  179. public:
  180. // @@protoc_insertion_point(class_scope:google.protobuf.Timestamp)
  181. private:
  182. class _Internal;
  183. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  184. typedef void InternalArenaConstructable_;
  185. typedef void DestructorSkippable_;
  186. ::PROTOBUF_NAMESPACE_ID::int64 seconds_;
  187. ::PROTOBUF_NAMESPACE_ID::int32 nanos_;
  188. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  189. friend struct ::TableStruct_google_2fprotobuf_2ftimestamp_2eproto;
  190. };
  191. // ===================================================================
  192. // ===================================================================
  193. #ifdef __GNUC__
  194. #pragma GCC diagnostic push
  195. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  196. #endif // __GNUC__
  197. // Timestamp
  198. // int64 seconds = 1;
  199. inline void Timestamp::clear_seconds() {
  200. seconds_ = PROTOBUF_LONGLONG(0);
  201. }
  202. inline ::PROTOBUF_NAMESPACE_ID::int64 Timestamp::_internal_seconds() const {
  203. return seconds_;
  204. }
  205. inline ::PROTOBUF_NAMESPACE_ID::int64 Timestamp::seconds() const {
  206. // @@protoc_insertion_point(field_get:google.protobuf.Timestamp.seconds)
  207. return _internal_seconds();
  208. }
  209. inline void Timestamp::_internal_set_seconds(::PROTOBUF_NAMESPACE_ID::int64 value) {
  210. seconds_ = value;
  211. }
  212. inline void Timestamp::set_seconds(::PROTOBUF_NAMESPACE_ID::int64 value) {
  213. _internal_set_seconds(value);
  214. // @@protoc_insertion_point(field_set:google.protobuf.Timestamp.seconds)
  215. }
  216. // int32 nanos = 2;
  217. inline void Timestamp::clear_nanos() {
  218. nanos_ = 0;
  219. }
  220. inline ::PROTOBUF_NAMESPACE_ID::int32 Timestamp::_internal_nanos() const {
  221. return nanos_;
  222. }
  223. inline ::PROTOBUF_NAMESPACE_ID::int32 Timestamp::nanos() const {
  224. // @@protoc_insertion_point(field_get:google.protobuf.Timestamp.nanos)
  225. return _internal_nanos();
  226. }
  227. inline void Timestamp::_internal_set_nanos(::PROTOBUF_NAMESPACE_ID::int32 value) {
  228. nanos_ = value;
  229. }
  230. inline void Timestamp::set_nanos(::PROTOBUF_NAMESPACE_ID::int32 value) {
  231. _internal_set_nanos(value);
  232. // @@protoc_insertion_point(field_set:google.protobuf.Timestamp.nanos)
  233. }
  234. #ifdef __GNUC__
  235. #pragma GCC diagnostic pop
  236. #endif // __GNUC__
  237. // @@protoc_insertion_point(namespace_scope)
  238. PROTOBUF_NAMESPACE_CLOSE
  239. // @@protoc_insertion_point(global_scope)
  240. #include <google/protobuf/port_undef.inc>
  241. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2ftimestamp_2eproto
  242. #else
  243. #error "This file should not be included when either TORCH_STABLE_ONLY or TORCH_TARGET_VERSION is defined."
  244. #endif // !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)