blob: 4550921b181c5f95e095272fbabcff8f071642cf [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"
Jisi Liu3b3c8ab2016-03-30 11:39:59 -070083 "otobuf\"\007\n\005EmptyBy\n\023com.google.protobufB\n"
84 "EmptyProtoP\001Z\'github.com/golang/protobuf"
85 "/ptypes/empty\240\001\001\370\001\001\242\002\003GPB\252\002\036Google.Proto"
86 "buf.WellKnownTypesb\006proto3", 186);
Feng Xiao33c92802015-05-11 13:47:41 -070087 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
88 "google/protobuf/empty.proto", &protobuf_RegisterTypes);
89 Empty::default_instance_ = new Empty();
90 Empty::default_instance_->InitAsDefaultInstance();
91 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fprotobuf_2fempty_2eproto);
92}
93
94// Force AddDescriptors() to be called at static initialization time.
95struct StaticDescriptorInitializer_google_2fprotobuf_2fempty_2eproto {
96 StaticDescriptorInitializer_google_2fprotobuf_2fempty_2eproto() {
97 protobuf_AddDesc_google_2fprotobuf_2fempty_2eproto();
98 }
99} static_descriptor_initializer_google_2fprotobuf_2fempty_2eproto_;
100
101namespace {
102
103static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD;
104static void MergeFromFail(int line) {
105 GOOGLE_CHECK(false) << __FILE__ << ":" << line;
106}
107
108} // namespace
109
110
111// ===================================================================
112
Bo Yang1f0286a2015-12-04 13:18:44 -0800113#if !defined(_MSC_VER) || _MSC_VER >= 1900
114#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Feng Xiao33c92802015-05-11 13:47:41 -0700115
116Empty::Empty()
Bo Yang5db21732015-05-21 14:28:59 -0700117 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
Feng Xiao33c92802015-05-11 13:47:41 -0700118 SharedCtor();
119 // @@protoc_insertion_point(constructor:google.protobuf.Empty)
120}
121
Feng Xiaoe841bac2015-12-11 17:09:20 -0800122Empty::Empty(::google::protobuf::Arena* arena)
123 : ::google::protobuf::Message(),
124 _internal_metadata_(arena) {
125 SharedCtor();
126 RegisterArenaDtor(arena);
127 // @@protoc_insertion_point(arena_constructor:google.protobuf.Empty)
128}
129
Feng Xiao33c92802015-05-11 13:47:41 -0700130void Empty::InitAsDefaultInstance() {
131 _is_default_instance_ = true;
132}
133
134Empty::Empty(const Empty& from)
135 : ::google::protobuf::Message(),
136 _internal_metadata_(NULL) {
137 SharedCtor();
138 MergeFrom(from);
139 // @@protoc_insertion_point(copy_constructor:google.protobuf.Empty)
140}
141
142void Empty::SharedCtor() {
143 _is_default_instance_ = false;
144 _cached_size_ = 0;
145}
146
147Empty::~Empty() {
148 // @@protoc_insertion_point(destructor:google.protobuf.Empty)
149 SharedDtor();
150}
151
152void Empty::SharedDtor() {
Feng Xiaoe841bac2015-12-11 17:09:20 -0800153 if (GetArenaNoVirtual() != NULL) {
154 return;
155 }
156
Feng Xiao33c92802015-05-11 13:47:41 -0700157 if (this != default_instance_) {
158 }
159}
160
Feng Xiaoe841bac2015-12-11 17:09:20 -0800161void Empty::ArenaDtor(void* object) {
162 Empty* _this = reinterpret_cast< Empty* >(object);
163 (void)_this;
164}
165void Empty::RegisterArenaDtor(::google::protobuf::Arena* arena) {
166}
Feng Xiao33c92802015-05-11 13:47:41 -0700167void Empty::SetCachedSize(int size) const {
168 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
169 _cached_size_ = size;
170 GOOGLE_SAFE_CONCURRENT_WRITES_END();
171}
172const ::google::protobuf::Descriptor* Empty::descriptor() {
173 protobuf_AssignDescriptorsOnce();
174 return Empty_descriptor_;
175}
176
177const Empty& Empty::default_instance() {
178 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fempty_2eproto();
179 return *default_instance_;
180}
181
182Empty* Empty::default_instance_ = NULL;
183
184Empty* Empty::New(::google::protobuf::Arena* arena) const {
Feng Xiaoe841bac2015-12-11 17:09:20 -0800185 return ::google::protobuf::Arena::CreateMessage<Empty>(arena);
Feng Xiao33c92802015-05-11 13:47:41 -0700186}
187
188void Empty::Clear() {
189}
190
191bool Empty::MergePartialFromCodedStream(
192 ::google::protobuf::io::CodedInputStream* input) {
193#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
194 ::google::protobuf::uint32 tag;
195 // @@protoc_insertion_point(parse_start:google.protobuf.Empty)
196 for (;;) {
197 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
198 tag = p.first;
199 if (!p.second) goto handle_unusual;
200 handle_unusual:
201 if (tag == 0 ||
202 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
203 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
204 goto success;
205 }
206 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
207 }
208success:
209 // @@protoc_insertion_point(parse_success:google.protobuf.Empty)
210 return true;
211failure:
212 // @@protoc_insertion_point(parse_failure:google.protobuf.Empty)
213 return false;
214#undef DO_
215}
216
217void Empty::SerializeWithCachedSizes(
218 ::google::protobuf::io::CodedOutputStream* output) const {
219 // @@protoc_insertion_point(serialize_start:google.protobuf.Empty)
220 // @@protoc_insertion_point(serialize_end:google.protobuf.Empty)
221}
222
223::google::protobuf::uint8* Empty::SerializeWithCachedSizesToArray(
224 ::google::protobuf::uint8* target) const {
225 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Empty)
226 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Empty)
227 return target;
228}
229
230int Empty::ByteSize() const {
231 int total_size = 0;
232
233 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
234 _cached_size_ = total_size;
235 GOOGLE_SAFE_CONCURRENT_WRITES_END();
236 return total_size;
237}
238
239void Empty::MergeFrom(const ::google::protobuf::Message& from) {
240 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
Bo Yang5db21732015-05-21 14:28:59 -0700241 const Empty* source =
242 ::google::protobuf::internal::DynamicCastToGenerated<const Empty>(
243 &from);
Feng Xiao33c92802015-05-11 13:47:41 -0700244 if (source == NULL) {
245 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
246 } else {
247 MergeFrom(*source);
248 }
249}
250
251void Empty::MergeFrom(const Empty& from) {
252 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
253}
254
255void Empty::CopyFrom(const ::google::protobuf::Message& from) {
256 if (&from == this) return;
257 Clear();
258 MergeFrom(from);
259}
260
261void Empty::CopyFrom(const Empty& from) {
262 if (&from == this) return;
263 Clear();
264 MergeFrom(from);
265}
266
267bool Empty::IsInitialized() const {
268
269 return true;
270}
271
272void Empty::Swap(Empty* other) {
273 if (other == this) return;
Feng Xiaoe841bac2015-12-11 17:09:20 -0800274 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
275 InternalSwap(other);
276 } else {
277 Empty temp;
278 temp.MergeFrom(*this);
279 CopyFrom(*other);
280 other->CopyFrom(temp);
281 }
282}
283void Empty::UnsafeArenaSwap(Empty* other) {
284 if (other == this) return;
285 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
Feng Xiao33c92802015-05-11 13:47:41 -0700286 InternalSwap(other);
287}
288void Empty::InternalSwap(Empty* other) {
289 _internal_metadata_.Swap(&other->_internal_metadata_);
290 std::swap(_cached_size_, other->_cached_size_);
291}
292
293::google::protobuf::Metadata Empty::GetMetadata() const {
294 protobuf_AssignDescriptorsOnce();
295 ::google::protobuf::Metadata metadata;
296 metadata.descriptor = Empty_descriptor_;
297 metadata.reflection = Empty_reflection_;
298 return metadata;
299}
300
301#if PROTOBUF_INLINE_NOT_IN_HEADERS
302// Empty
303
304#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
305
306// @@protoc_insertion_point(namespace_scope)
307
308} // namespace protobuf
309} // namespace google
310
311// @@protoc_insertion_point(global_scope)