/protobuf-2.5.0/src/google/protobuf/timestamp.pb.h

https://gitlab.com/f1ssi0n/sniffles · C Header · 172 lines · 112 code · 38 blank · 22 comment · 0 complexity · be3b80ffba8934a6275291332772a7ff MD5 · raw file

  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/timestamp.proto
  3. #ifndef PROTOBUF_google_2fprotobuf_2ftimestamp_2eproto__INCLUDED
  4. #define PROTOBUF_google_2fprotobuf_2ftimestamp_2eproto__INCLUDED
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 3000000
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/arena.h>
  18. #include <google/protobuf/arenastring.h>
  19. #include <google/protobuf/generated_message_util.h>
  20. #include <google/protobuf/metadata.h>
  21. #include <google/protobuf/message.h>
  22. #include <google/protobuf/repeated_field.h>
  23. #include <google/protobuf/extension_set.h>
  24. #include <google/protobuf/unknown_field_set.h>
  25. // @@protoc_insertion_point(includes)
  26. namespace google {
  27. namespace protobuf {
  28. // Internal implementation detail -- do not call these.
  29. void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2ftimestamp_2eproto();
  30. void protobuf_AssignDesc_google_2fprotobuf_2ftimestamp_2eproto();
  31. void protobuf_ShutdownFile_google_2fprotobuf_2ftimestamp_2eproto();
  32. class Timestamp;
  33. // ===================================================================
  34. class LIBPROTOBUF_EXPORT Timestamp : public ::google::protobuf::Message {
  35. public:
  36. Timestamp();
  37. virtual ~Timestamp();
  38. Timestamp(const Timestamp& from);
  39. inline Timestamp& operator=(const Timestamp& from) {
  40. CopyFrom(from);
  41. return *this;
  42. }
  43. static const ::google::protobuf::Descriptor* descriptor();
  44. static const Timestamp& default_instance();
  45. void Swap(Timestamp* other);
  46. // implements Message ----------------------------------------------
  47. inline Timestamp* New() const { return New(NULL); }
  48. Timestamp* New(::google::protobuf::Arena* arena) const;
  49. void CopyFrom(const ::google::protobuf::Message& from);
  50. void MergeFrom(const ::google::protobuf::Message& from);
  51. void CopyFrom(const Timestamp& from);
  52. void MergeFrom(const Timestamp& from);
  53. void Clear();
  54. bool IsInitialized() const;
  55. int ByteSize() const;
  56. bool MergePartialFromCodedStream(
  57. ::google::protobuf::io::CodedInputStream* input);
  58. void SerializeWithCachedSizes(
  59. ::google::protobuf::io::CodedOutputStream* output) const;
  60. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  61. int GetCachedSize() const { return _cached_size_; }
  62. private:
  63. void SharedCtor();
  64. void SharedDtor();
  65. void SetCachedSize(int size) const;
  66. void InternalSwap(Timestamp* other);
  67. private:
  68. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  69. return _internal_metadata_.arena();
  70. }
  71. inline void* MaybeArenaPtr() const {
  72. return _internal_metadata_.raw_arena_ptr();
  73. }
  74. public:
  75. ::google::protobuf::Metadata GetMetadata() const;
  76. // nested types ----------------------------------------------------
  77. // accessors -------------------------------------------------------
  78. // optional int64 seconds = 1;
  79. void clear_seconds();
  80. static const int kSecondsFieldNumber = 1;
  81. ::google::protobuf::int64 seconds() const;
  82. void set_seconds(::google::protobuf::int64 value);
  83. // optional int32 nanos = 2;
  84. void clear_nanos();
  85. static const int kNanosFieldNumber = 2;
  86. ::google::protobuf::int32 nanos() const;
  87. void set_nanos(::google::protobuf::int32 value);
  88. // @@protoc_insertion_point(class_scope:google.protobuf.Timestamp)
  89. private:
  90. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  91. bool _is_default_instance_;
  92. ::google::protobuf::int64 seconds_;
  93. ::google::protobuf::int32 nanos_;
  94. mutable int _cached_size_;
  95. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2ftimestamp_2eproto();
  96. friend void protobuf_AssignDesc_google_2fprotobuf_2ftimestamp_2eproto();
  97. friend void protobuf_ShutdownFile_google_2fprotobuf_2ftimestamp_2eproto();
  98. void InitAsDefaultInstance();
  99. static Timestamp* default_instance_;
  100. };
  101. // ===================================================================
  102. // ===================================================================
  103. #if !PROTOBUF_INLINE_NOT_IN_HEADERS
  104. // Timestamp
  105. // optional int64 seconds = 1;
  106. inline void Timestamp::clear_seconds() {
  107. seconds_ = GOOGLE_LONGLONG(0);
  108. }
  109. inline ::google::protobuf::int64 Timestamp::seconds() const {
  110. // @@protoc_insertion_point(field_get:google.protobuf.Timestamp.seconds)
  111. return seconds_;
  112. }
  113. inline void Timestamp::set_seconds(::google::protobuf::int64 value) {
  114. seconds_ = value;
  115. // @@protoc_insertion_point(field_set:google.protobuf.Timestamp.seconds)
  116. }
  117. // optional int32 nanos = 2;
  118. inline void Timestamp::clear_nanos() {
  119. nanos_ = 0;
  120. }
  121. inline ::google::protobuf::int32 Timestamp::nanos() const {
  122. // @@protoc_insertion_point(field_get:google.protobuf.Timestamp.nanos)
  123. return nanos_;
  124. }
  125. inline void Timestamp::set_nanos(::google::protobuf::int32 value) {
  126. nanos_ = value;
  127. // @@protoc_insertion_point(field_set:google.protobuf.Timestamp.nanos)
  128. }
  129. #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
  130. // @@protoc_insertion_point(namespace_scope)
  131. } // namespace protobuf
  132. } // namespace google
  133. // @@protoc_insertion_point(global_scope)
  134. #endif // PROTOBUF_google_2fprotobuf_2ftimestamp_2eproto__INCLUDED