Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(614)

Side by Side Diff: third_party/protobuf/src/google/protobuf/timestamp.pb.h

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

Powered by Google App Engine
This is Rietveld 408576698