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