1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: google/protobuf/empty.proto
3
4 #include <google/protobuf/empty.pb.h>
5
6 #include <algorithm>
7
8 #include <google/protobuf/stubs/common.h>
9 #include <google/protobuf/io/coded_stream.h>
10 #include <google/protobuf/extension_set.h>
11 #include <google/protobuf/wire_format_lite.h>
12 #include <google/protobuf/descriptor.h>
13 #include <google/protobuf/generated_message_reflection.h>
14 #include <google/protobuf/reflection_ops.h>
15 #include <google/protobuf/wire_format.h>
16 // @@protoc_insertion_point(includes)
17 #include <google/protobuf/port_def.inc>
18 PROTOBUF_NAMESPACE_OPEN
19 class EmptyDefaultTypeInternal {
20 public:
21 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Empty> _instance;
22 } _Empty_default_instance_;
23 PROTOBUF_NAMESPACE_CLOSE
InitDefaultsscc_info_Empty_google_2fprotobuf_2fempty_2eproto()24 static void InitDefaultsscc_info_Empty_google_2fprotobuf_2fempty_2eproto() {
25 GOOGLE_PROTOBUF_VERIFY_VERSION;
26
27 {
28 void* ptr = &PROTOBUF_NAMESPACE_ID::_Empty_default_instance_;
29 new (ptr) PROTOBUF_NAMESPACE_ID::Empty();
30 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
31 }
32 PROTOBUF_NAMESPACE_ID::Empty::InitAsDefaultInstance();
33 }
34
35 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Empty_google_2fprotobuf_2fempty_2eproto =
36 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_Empty_google_2fprotobuf_2fempty_2eproto}, {}};
37
38 static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_google_2fprotobuf_2fempty_2eproto[1];
39 static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_google_2fprotobuf_2fempty_2eproto = nullptr;
40 static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_google_2fprotobuf_2fempty_2eproto = nullptr;
41
42 const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_google_2fprotobuf_2fempty_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
43 ~0u, // no _has_bits_
44 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Empty, _internal_metadata_),
45 ~0u, // no _extensions_
46 ~0u, // no _oneof_case_
47 ~0u, // no _weak_field_map_
48 };
49 static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
50 { 0, -1, sizeof(PROTOBUF_NAMESPACE_ID::Empty)},
51 };
52
53 static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
54 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_Empty_default_instance_),
55 };
56
57 const char descriptor_table_protodef_google_2fprotobuf_2fempty_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
58 "\n\033google/protobuf/empty.proto\022\017google.pr"
59 "otobuf\"\007\n\005EmptyBv\n\023com.google.protobufB\n"
60 "EmptyProtoP\001Z\'github.com/golang/protobuf"
61 "/ptypes/empty\370\001\001\242\002\003GPB\252\002\036Google.Protobuf"
62 ".WellKnownTypesb\006proto3"
63 ;
64 static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_google_2fprotobuf_2fempty_2eproto_deps[1] = {
65 };
66 static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_google_2fprotobuf_2fempty_2eproto_sccs[1] = {
67 &scc_info_Empty_google_2fprotobuf_2fempty_2eproto.base,
68 };
69 static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_google_2fprotobuf_2fempty_2eproto_once;
70 static bool descriptor_table_google_2fprotobuf_2fempty_2eproto_initialized = false;
71 const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fempty_2eproto = {
72 &descriptor_table_google_2fprotobuf_2fempty_2eproto_initialized, descriptor_table_protodef_google_2fprotobuf_2fempty_2eproto, "google/protobuf/empty.proto", 183,
73 &descriptor_table_google_2fprotobuf_2fempty_2eproto_once, descriptor_table_google_2fprotobuf_2fempty_2eproto_sccs, descriptor_table_google_2fprotobuf_2fempty_2eproto_deps, 1, 0,
74 schemas, file_default_instances, TableStruct_google_2fprotobuf_2fempty_2eproto::offsets,
75 file_level_metadata_google_2fprotobuf_2fempty_2eproto, 1, file_level_enum_descriptors_google_2fprotobuf_2fempty_2eproto, file_level_service_descriptors_google_2fprotobuf_2fempty_2eproto,
76 };
77
78 // Force running AddDescriptors() at dynamic initialization time.
79 static bool dynamic_init_dummy_google_2fprotobuf_2fempty_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_google_2fprotobuf_2fempty_2eproto), true);
80 PROTOBUF_NAMESPACE_OPEN
81
82 // ===================================================================
83
InitAsDefaultInstance()84 void Empty::InitAsDefaultInstance() {
85 }
86 class Empty::_Internal {
87 public:
88 };
89
Empty()90 Empty::Empty()
91 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
92 SharedCtor();
93 // @@protoc_insertion_point(constructor:google.protobuf.Empty)
94 }
Empty(::PROTOBUF_NAMESPACE_ID::Arena * arena)95 Empty::Empty(::PROTOBUF_NAMESPACE_ID::Arena* arena)
96 : ::PROTOBUF_NAMESPACE_ID::Message(),
97 _internal_metadata_(arena) {
98 SharedCtor();
99 RegisterArenaDtor(arena);
100 // @@protoc_insertion_point(arena_constructor:google.protobuf.Empty)
101 }
Empty(const Empty & from)102 Empty::Empty(const Empty& from)
103 : ::PROTOBUF_NAMESPACE_ID::Message(),
104 _internal_metadata_(nullptr) {
105 _internal_metadata_.MergeFrom(from._internal_metadata_);
106 // @@protoc_insertion_point(copy_constructor:google.protobuf.Empty)
107 }
108
SharedCtor()109 void Empty::SharedCtor() {
110 }
111
~Empty()112 Empty::~Empty() {
113 // @@protoc_insertion_point(destructor:google.protobuf.Empty)
114 SharedDtor();
115 }
116
SharedDtor()117 void Empty::SharedDtor() {
118 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
119 }
120
ArenaDtor(void * object)121 void Empty::ArenaDtor(void* object) {
122 Empty* _this = reinterpret_cast< Empty* >(object);
123 (void)_this;
124 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)125 void Empty::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
126 }
SetCachedSize(int size) const127 void Empty::SetCachedSize(int size) const {
128 _cached_size_.Set(size);
129 }
default_instance()130 const Empty& Empty::default_instance() {
131 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Empty_google_2fprotobuf_2fempty_2eproto.base);
132 return *internal_default_instance();
133 }
134
135
Clear()136 void Empty::Clear() {
137 // @@protoc_insertion_point(message_clear_start:google.protobuf.Empty)
138 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
139 // Prevent compiler warnings about cached_has_bits being unused
140 (void) cached_has_bits;
141
142 _internal_metadata_.Clear();
143 }
144
145 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)146 const char* Empty::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
147 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
148 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
149 while (!ctx->Done(&ptr)) {
150 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
151 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
152 CHK_(ptr);
153 switch (tag >> 3) {
154 default: {
155 if ((tag & 7) == 4 || tag == 0) {
156 ctx->SetLastTag(tag);
157 goto success;
158 }
159 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
160 CHK_(ptr != nullptr);
161 continue;
162 }
163 } // switch
164 } // while
165 success:
166 return ptr;
167 failure:
168 ptr = nullptr;
169 goto success;
170 #undef CHK_
171 }
172 #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream * input)173 bool Empty::MergePartialFromCodedStream(
174 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
175 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
176 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
177 // @@protoc_insertion_point(parse_start:google.protobuf.Empty)
178 for (;;) {
179 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
180 tag = p.first;
181 if (!p.second) goto handle_unusual;
182 handle_unusual:
183 if (tag == 0) {
184 goto success;
185 }
186 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
187 input, tag, _internal_metadata_.mutable_unknown_fields()));
188 }
189 success:
190 // @@protoc_insertion_point(parse_success:google.protobuf.Empty)
191 return true;
192 failure:
193 // @@protoc_insertion_point(parse_failure:google.protobuf.Empty)
194 return false;
195 #undef DO_
196 }
197 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
198
SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream * output) const199 void Empty::SerializeWithCachedSizes(
200 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
201 // @@protoc_insertion_point(serialize_start:google.protobuf.Empty)
202 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
203 (void) cached_has_bits;
204
205 if (_internal_metadata_.have_unknown_fields()) {
206 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
207 _internal_metadata_.unknown_fields(), output);
208 }
209 // @@protoc_insertion_point(serialize_end:google.protobuf.Empty)
210 }
211
InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 * target) const212 ::PROTOBUF_NAMESPACE_ID::uint8* Empty::InternalSerializeWithCachedSizesToArray(
213 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
214 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Empty)
215 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
216 (void) cached_has_bits;
217
218 if (_internal_metadata_.have_unknown_fields()) {
219 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
220 _internal_metadata_.unknown_fields(), target);
221 }
222 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Empty)
223 return target;
224 }
225
ByteSizeLong() const226 size_t Empty::ByteSizeLong() const {
227 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Empty)
228 size_t total_size = 0;
229
230 if (_internal_metadata_.have_unknown_fields()) {
231 total_size +=
232 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
233 _internal_metadata_.unknown_fields());
234 }
235 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
236 // Prevent compiler warnings about cached_has_bits being unused
237 (void) cached_has_bits;
238
239 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
240 SetCachedSize(cached_size);
241 return total_size;
242 }
243
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)244 void Empty::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
245 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Empty)
246 GOOGLE_DCHECK_NE(&from, this);
247 const Empty* source =
248 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Empty>(
249 &from);
250 if (source == nullptr) {
251 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Empty)
252 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
253 } else {
254 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Empty)
255 MergeFrom(*source);
256 }
257 }
258
MergeFrom(const Empty & from)259 void Empty::MergeFrom(const Empty& from) {
260 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Empty)
261 GOOGLE_DCHECK_NE(&from, this);
262 _internal_metadata_.MergeFrom(from._internal_metadata_);
263 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
264 (void) cached_has_bits;
265
266 }
267
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)268 void Empty::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
269 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Empty)
270 if (&from == this) return;
271 Clear();
272 MergeFrom(from);
273 }
274
CopyFrom(const Empty & from)275 void Empty::CopyFrom(const Empty& from) {
276 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Empty)
277 if (&from == this) return;
278 Clear();
279 MergeFrom(from);
280 }
281
IsInitialized() const282 bool Empty::IsInitialized() const {
283 return true;
284 }
285
InternalSwap(Empty * other)286 void Empty::InternalSwap(Empty* other) {
287 using std::swap;
288 _internal_metadata_.Swap(&other->_internal_metadata_);
289 }
290
GetMetadata() const291 ::PROTOBUF_NAMESPACE_ID::Metadata Empty::GetMetadata() const {
292 return GetMetadataStatic();
293 }
294
295
296 // @@protoc_insertion_point(namespace_scope)
297 PROTOBUF_NAMESPACE_CLOSE
298 PROTOBUF_NAMESPACE_OPEN
CreateMaybeMessage(Arena * arena)299 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::Empty* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Empty >(Arena* arena) {
300 return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::Empty >(arena);
301 }
302 PROTOBUF_NAMESPACE_CLOSE
303
304 // @@protoc_insertion_point(global_scope)
305 #include <google/protobuf/port_undef.inc>
306