1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: google/protobuf/empty.proto
3 
4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5 #include <google/protobuf/empty.pb.h>
6 
7 #include <algorithm>
8 
9 #include <google/protobuf/stubs/common.h>
10 #include <google/protobuf/stubs/port.h>
11 #include <google/protobuf/stubs/once.h>
12 #include <google/protobuf/io/coded_stream.h>
13 #include <google/protobuf/wire_format_lite_inl.h>
14 #include <google/protobuf/descriptor.h>
15 #include <google/protobuf/generated_message_reflection.h>
16 #include <google/protobuf/reflection_ops.h>
17 #include <google/protobuf/wire_format.h>
18 // @@protoc_insertion_point(includes)
19 
20 namespace google {
21 namespace protobuf {
22 
23 namespace {
24 
25 const ::google::protobuf::Descriptor* Empty_descriptor_ = NULL;
26 const ::google::protobuf::internal::GeneratedMessageReflection*
27   Empty_reflection_ = NULL;
28 
29 }  // namespace
30 
31 
32 void protobuf_AssignDesc_google_2fprotobuf_2fempty_2eproto() GOOGLE_ATTRIBUTE_COLD;
protobuf_AssignDesc_google_2fprotobuf_2fempty_2eproto()33 void protobuf_AssignDesc_google_2fprotobuf_2fempty_2eproto() {
34   protobuf_AddDesc_google_2fprotobuf_2fempty_2eproto();
35   const ::google::protobuf::FileDescriptor* file =
36     ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
37       "google/protobuf/empty.proto");
38   GOOGLE_CHECK(file != NULL);
39   Empty_descriptor_ = file->message_type(0);
40   static const int Empty_offsets_[1] = {
41   };
42   Empty_reflection_ =
43     ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
44       Empty_descriptor_,
45       Empty::default_instance_,
46       Empty_offsets_,
47       -1,
48       -1,
49       -1,
50       sizeof(Empty),
51       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Empty, _internal_metadata_),
52       GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Empty, _is_default_instance_));
53 }
54 
55 namespace {
56 
57 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
protobuf_AssignDescriptorsOnce()58 inline void protobuf_AssignDescriptorsOnce() {
59   ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
60                  &protobuf_AssignDesc_google_2fprotobuf_2fempty_2eproto);
61 }
62 
63 void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD;
protobuf_RegisterTypes(const::std::string &)64 void protobuf_RegisterTypes(const ::std::string&) {
65   protobuf_AssignDescriptorsOnce();
66   ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
67       Empty_descriptor_, &Empty::default_instance());
68 }
69 
70 }  // namespace
71 
protobuf_ShutdownFile_google_2fprotobuf_2fempty_2eproto()72 void protobuf_ShutdownFile_google_2fprotobuf_2fempty_2eproto() {
73   delete Empty::default_instance_;
74   delete Empty_reflection_;
75 }
76 
77 void protobuf_AddDesc_google_2fprotobuf_2fempty_2eproto() GOOGLE_ATTRIBUTE_COLD;
protobuf_AddDesc_google_2fprotobuf_2fempty_2eproto()78 void protobuf_AddDesc_google_2fprotobuf_2fempty_2eproto() {
79   static bool already_here = false;
80   if (already_here) return;
81   already_here = true;
82   GOOGLE_PROTOBUF_VERIFY_VERSION;
83 
84   ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
85     "\n\033google/protobuf/empty.proto\022\017google.pr"
86     "otobuf\"\007\n\005EmptyBy\n\023com.google.protobufB\n"
87     "EmptyProtoP\001Z\'github.com/golang/protobuf"
88     "/ptypes/empty\240\001\001\370\001\001\242\002\003GPB\252\002\036Google.Proto"
89     "buf.WellKnownTypesb\006proto3", 186);
90   ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
91     "google/protobuf/empty.proto", &protobuf_RegisterTypes);
92   Empty::default_instance_ = new Empty();
93   Empty::default_instance_->InitAsDefaultInstance();
94   ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fprotobuf_2fempty_2eproto);
95 }
96 
97 // Force AddDescriptors() to be called at static initialization time.
98 struct StaticDescriptorInitializer_google_2fprotobuf_2fempty_2eproto {
StaticDescriptorInitializer_google_2fprotobuf_2fempty_2eprotogoogle::protobuf::StaticDescriptorInitializer_google_2fprotobuf_2fempty_2eproto99   StaticDescriptorInitializer_google_2fprotobuf_2fempty_2eproto() {
100     protobuf_AddDesc_google_2fprotobuf_2fempty_2eproto();
101   }
102 } static_descriptor_initializer_google_2fprotobuf_2fempty_2eproto_;
103 
104 // ===================================================================
105 
106 #if !defined(_MSC_VER) || _MSC_VER >= 1900
107 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
108 
Empty()109 Empty::Empty()
110   : ::google::protobuf::Message(), _internal_metadata_(NULL) {
111   SharedCtor();
112   // @@protoc_insertion_point(constructor:google.protobuf.Empty)
113 }
114 
Empty(::google::protobuf::Arena * arena)115 Empty::Empty(::google::protobuf::Arena* arena)
116   : ::google::protobuf::Message(),
117   _internal_metadata_(arena) {
118   SharedCtor();
119   RegisterArenaDtor(arena);
120   // @@protoc_insertion_point(arena_constructor:google.protobuf.Empty)
121 }
122 
InitAsDefaultInstance()123 void Empty::InitAsDefaultInstance() {
124   _is_default_instance_ = true;
125 }
126 
Empty(const Empty & from)127 Empty::Empty(const Empty& from)
128   : ::google::protobuf::Message(),
129     _internal_metadata_(NULL) {
130   SharedCtor();
131   MergeFrom(from);
132   // @@protoc_insertion_point(copy_constructor:google.protobuf.Empty)
133 }
134 
SharedCtor()135 void Empty::SharedCtor() {
136     _is_default_instance_ = false;
137   _cached_size_ = 0;
138 }
139 
~Empty()140 Empty::~Empty() {
141   // @@protoc_insertion_point(destructor:google.protobuf.Empty)
142   SharedDtor();
143 }
144 
SharedDtor()145 void Empty::SharedDtor() {
146   if (GetArenaNoVirtual() != NULL) {
147     return;
148   }
149 
150   if (this != default_instance_) {
151   }
152 }
153 
ArenaDtor(void * object)154 void Empty::ArenaDtor(void* object) {
155   Empty* _this = reinterpret_cast< Empty* >(object);
156   (void)_this;
157 }
RegisterArenaDtor(::google::protobuf::Arena * arena)158 void Empty::RegisterArenaDtor(::google::protobuf::Arena* arena) {
159 }
SetCachedSize(int size) const160 void Empty::SetCachedSize(int size) const {
161   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
162   _cached_size_ = size;
163   GOOGLE_SAFE_CONCURRENT_WRITES_END();
164 }
descriptor()165 const ::google::protobuf::Descriptor* Empty::descriptor() {
166   protobuf_AssignDescriptorsOnce();
167   return Empty_descriptor_;
168 }
169 
default_instance()170 const Empty& Empty::default_instance() {
171   if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fempty_2eproto();
172   return *default_instance_;
173 }
174 
175 Empty* Empty::default_instance_ = NULL;
176 
New(::google::protobuf::Arena * arena) const177 Empty* Empty::New(::google::protobuf::Arena* arena) const {
178   return ::google::protobuf::Arena::CreateMessage<Empty>(arena);
179 }
180 
Clear()181 void Empty::Clear() {
182 // @@protoc_insertion_point(message_clear_start:google.protobuf.Empty)
183 }
184 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)185 bool Empty::MergePartialFromCodedStream(
186     ::google::protobuf::io::CodedInputStream* input) {
187 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
188   ::google::protobuf::uint32 tag;
189   // @@protoc_insertion_point(parse_start:google.protobuf.Empty)
190   for (;;) {
191     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
192     tag = p.first;
193     if (!p.second) goto handle_unusual;
194   handle_unusual:
195     if (tag == 0 ||
196         ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
197         ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
198       goto success;
199     }
200     DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
201   }
202 success:
203   // @@protoc_insertion_point(parse_success:google.protobuf.Empty)
204   return true;
205 failure:
206   // @@protoc_insertion_point(parse_failure:google.protobuf.Empty)
207   return false;
208 #undef DO_
209 }
210 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const211 void Empty::SerializeWithCachedSizes(
212     ::google::protobuf::io::CodedOutputStream* output) const {
213   // @@protoc_insertion_point(serialize_start:google.protobuf.Empty)
214   // @@protoc_insertion_point(serialize_end:google.protobuf.Empty)
215 }
216 
InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 * target) const217 ::google::protobuf::uint8* Empty::InternalSerializeWithCachedSizesToArray(
218     bool deterministic, ::google::protobuf::uint8* target) const {
219   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Empty)
220   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Empty)
221   return target;
222 }
223 
ByteSize() const224 int Empty::ByteSize() const {
225 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Empty)
226   int total_size = 0;
227 
228   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
229   _cached_size_ = total_size;
230   GOOGLE_SAFE_CONCURRENT_WRITES_END();
231   return total_size;
232 }
233 
MergeFrom(const::google::protobuf::Message & from)234 void Empty::MergeFrom(const ::google::protobuf::Message& from) {
235 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Empty)
236   if (GOOGLE_PREDICT_FALSE(&from == this)) {
237     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
238   }
239   const Empty* source =
240       ::google::protobuf::internal::DynamicCastToGenerated<const Empty>(
241           &from);
242   if (source == NULL) {
243   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Empty)
244     ::google::protobuf::internal::ReflectionOps::Merge(from, this);
245   } else {
246   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Empty)
247     MergeFrom(*source);
248   }
249 }
250 
MergeFrom(const Empty & from)251 void Empty::MergeFrom(const Empty& from) {
252 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Empty)
253   if (GOOGLE_PREDICT_FALSE(&from == this)) {
254     ::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
255   }
256 }
257 
CopyFrom(const::google::protobuf::Message & from)258 void Empty::CopyFrom(const ::google::protobuf::Message& from) {
259 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Empty)
260   if (&from == this) return;
261   Clear();
262   MergeFrom(from);
263 }
264 
CopyFrom(const Empty & from)265 void Empty::CopyFrom(const Empty& from) {
266 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Empty)
267   if (&from == this) return;
268   Clear();
269   MergeFrom(from);
270 }
271 
IsInitialized() const272 bool Empty::IsInitialized() const {
273 
274   return true;
275 }
276 
Swap(Empty * other)277 void Empty::Swap(Empty* other) {
278   if (other == this) return;
279   if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
280     InternalSwap(other);
281   } else {
282     Empty temp;
283     temp.MergeFrom(*this);
284     CopyFrom(*other);
285     other->CopyFrom(temp);
286   }
287 }
UnsafeArenaSwap(Empty * other)288 void Empty::UnsafeArenaSwap(Empty* other) {
289   if (other == this) return;
290   GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
291   InternalSwap(other);
292 }
InternalSwap(Empty * other)293 void Empty::InternalSwap(Empty* other) {
294   _internal_metadata_.Swap(&other->_internal_metadata_);
295   std::swap(_cached_size_, other->_cached_size_);
296 }
297 
GetMetadata() const298 ::google::protobuf::Metadata Empty::GetMetadata() const {
299   protobuf_AssignDescriptorsOnce();
300   ::google::protobuf::Metadata metadata;
301   metadata.descriptor = Empty_descriptor_;
302   metadata.reflection = Empty_reflection_;
303   return metadata;
304 }
305 
306 #if PROTOBUF_INLINE_NOT_IN_HEADERS
307 // Empty
308 
309 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
310 
311 // @@protoc_insertion_point(namespace_scope)
312 
313 }  // namespace protobuf
314 }  // namespace google
315 
316 // @@protoc_insertion_point(global_scope)
317