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