• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/io/coded_stream.h>
9 #include <google/protobuf/extension_set.h>
10 #include <google/protobuf/wire_format_lite.h>
11 #include <google/protobuf/descriptor.h>
12 #include <google/protobuf/generated_message_reflection.h>
13 #include <google/protobuf/reflection_ops.h>
14 #include <google/protobuf/wire_format.h>
15 // @@protoc_insertion_point(includes)
16 #include <google/protobuf/port_def.inc>
17 PROTOBUF_NAMESPACE_OPEN
18 class EmptyDefaultTypeInternal {
19  public:
20   ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Empty> _instance;
21 } _Empty_default_instance_;
22 PROTOBUF_NAMESPACE_CLOSE
InitDefaultsscc_info_Empty_google_2fprotobuf_2fempty_2eproto()23 static void InitDefaultsscc_info_Empty_google_2fprotobuf_2fempty_2eproto() {
24   GOOGLE_PROTOBUF_VERIFY_VERSION;
25 
26   {
27     void* ptr = &PROTOBUF_NAMESPACE_ID::_Empty_default_instance_;
28     new (ptr) PROTOBUF_NAMESPACE_ID::Empty();
29     ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
30   }
31   PROTOBUF_NAMESPACE_ID::Empty::InitAsDefaultInstance();
32 }
33 
34 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Empty_google_2fprotobuf_2fempty_2eproto =
35     {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Empty_google_2fprotobuf_2fempty_2eproto}, {}};
36 
37 static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_google_2fprotobuf_2fempty_2eproto[1];
38 static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_google_2fprotobuf_2fempty_2eproto = nullptr;
39 static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_google_2fprotobuf_2fempty_2eproto = nullptr;
40 
41 const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_google_2fprotobuf_2fempty_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
42   ~0u,  // no _has_bits_
43   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Empty, _internal_metadata_),
44   ~0u,  // no _extensions_
45   ~0u,  // no _oneof_case_
46   ~0u,  // no _weak_field_map_
47 };
48 static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
49   { 0, -1, sizeof(PROTOBUF_NAMESPACE_ID::Empty)},
50 };
51 
52 static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
53   reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_Empty_default_instance_),
54 };
55 
56 const char descriptor_table_protodef_google_2fprotobuf_2fempty_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
57   "\n\033google/protobuf/empty.proto\022\017google.pr"
58   "otobuf\"\007\n\005EmptyBv\n\023com.google.protobufB\n"
59   "EmptyProtoP\001Z\'github.com/golang/protobuf"
60   "/ptypes/empty\370\001\001\242\002\003GPB\252\002\036Google.Protobuf"
61   ".WellKnownTypesb\006proto3"
62   ;
63 static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_google_2fprotobuf_2fempty_2eproto_deps[1] = {
64 };
65 static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_google_2fprotobuf_2fempty_2eproto_sccs[1] = {
66   &scc_info_Empty_google_2fprotobuf_2fempty_2eproto.base,
67 };
68 static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_google_2fprotobuf_2fempty_2eproto_once;
69 const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fempty_2eproto = {
70   false, false, descriptor_table_protodef_google_2fprotobuf_2fempty_2eproto, "google/protobuf/empty.proto", 183,
71   &descriptor_table_google_2fprotobuf_2fempty_2eproto_once, descriptor_table_google_2fprotobuf_2fempty_2eproto_sccs, descriptor_table_google_2fprotobuf_2fempty_2eproto_deps, 1, 0,
72   schemas, file_default_instances, TableStruct_google_2fprotobuf_2fempty_2eproto::offsets,
73   file_level_metadata_google_2fprotobuf_2fempty_2eproto, 1, file_level_enum_descriptors_google_2fprotobuf_2fempty_2eproto, file_level_service_descriptors_google_2fprotobuf_2fempty_2eproto,
74 };
75 
76 // Force running AddDescriptors() at dynamic initialization time.
77 static bool dynamic_init_dummy_google_2fprotobuf_2fempty_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_google_2fprotobuf_2fempty_2eproto)), true);
78 PROTOBUF_NAMESPACE_OPEN
79 
80 // ===================================================================
81 
InitAsDefaultInstance()82 void Empty::InitAsDefaultInstance() {
83 }
84 class Empty::_Internal {
85  public:
86 };
87 
Empty(::PROTOBUF_NAMESPACE_ID::Arena * arena)88 Empty::Empty(::PROTOBUF_NAMESPACE_ID::Arena* arena)
89   : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
90   SharedCtor();
91   RegisterArenaDtor(arena);
92   // @@protoc_insertion_point(arena_constructor:google.protobuf.Empty)
93 }
Empty(const Empty & from)94 Empty::Empty(const Empty& from)
95   : ::PROTOBUF_NAMESPACE_ID::Message() {
96   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
97   // @@protoc_insertion_point(copy_constructor:google.protobuf.Empty)
98 }
99 
SharedCtor()100 void Empty::SharedCtor() {
101 }
102 
~Empty()103 Empty::~Empty() {
104   // @@protoc_insertion_point(destructor:google.protobuf.Empty)
105   SharedDtor();
106   _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
107 }
108 
SharedDtor()109 void Empty::SharedDtor() {
110   GOOGLE_DCHECK(GetArena() == nullptr);
111 }
112 
ArenaDtor(void * object)113 void Empty::ArenaDtor(void* object) {
114   Empty* _this = reinterpret_cast< Empty* >(object);
115   (void)_this;
116 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)117 void Empty::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
118 }
SetCachedSize(int size) const119 void Empty::SetCachedSize(int size) const {
120   _cached_size_.Set(size);
121 }
default_instance()122 const Empty& Empty::default_instance() {
123   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Empty_google_2fprotobuf_2fempty_2eproto.base);
124   return *internal_default_instance();
125 }
126 
127 
Clear()128 void Empty::Clear() {
129 // @@protoc_insertion_point(message_clear_start:google.protobuf.Empty)
130   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
131   // Prevent compiler warnings about cached_has_bits being unused
132   (void) cached_has_bits;
133 
134   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
135 }
136 
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)137 const char* Empty::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
138 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
139   ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
140   while (!ctx->Done(&ptr)) {
141     ::PROTOBUF_NAMESPACE_ID::uint32 tag;
142     ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
143     CHK_(ptr);
144         if ((tag & 7) == 4 || tag == 0) {
145           ctx->SetLastTag(tag);
146           goto success;
147         }
148         ptr = UnknownFieldParse(tag,
149             _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
150             ptr, ctx);
151         CHK_(ptr != nullptr);
152         continue;
153   }  // while
154 success:
155   return ptr;
156 failure:
157   ptr = nullptr;
158   goto success;
159 #undef CHK_
160 }
161 
_InternalSerialize(::PROTOBUF_NAMESPACE_ID::uint8 * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const162 ::PROTOBUF_NAMESPACE_ID::uint8* Empty::_InternalSerialize(
163     ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
164   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Empty)
165   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
166   (void) cached_has_bits;
167 
168   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
169     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
170         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
171   }
172   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Empty)
173   return target;
174 }
175 
ByteSizeLong() const176 size_t Empty::ByteSizeLong() const {
177 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Empty)
178   size_t total_size = 0;
179 
180   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
181   // Prevent compiler warnings about cached_has_bits being unused
182   (void) cached_has_bits;
183 
184   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
185     return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
186         _internal_metadata_, total_size, &_cached_size_);
187   }
188   int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
189   SetCachedSize(cached_size);
190   return total_size;
191 }
192 
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)193 void Empty::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
194 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Empty)
195   GOOGLE_DCHECK_NE(&from, this);
196   const Empty* source =
197       ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Empty>(
198           &from);
199   if (source == nullptr) {
200   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Empty)
201     ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
202   } else {
203   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Empty)
204     MergeFrom(*source);
205   }
206 }
207 
MergeFrom(const Empty & from)208 void Empty::MergeFrom(const Empty& from) {
209 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Empty)
210   GOOGLE_DCHECK_NE(&from, this);
211   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
212   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
213   (void) cached_has_bits;
214 
215 }
216 
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)217 void Empty::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
218 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Empty)
219   if (&from == this) return;
220   Clear();
221   MergeFrom(from);
222 }
223 
CopyFrom(const Empty & from)224 void Empty::CopyFrom(const Empty& from) {
225 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Empty)
226   if (&from == this) return;
227   Clear();
228   MergeFrom(from);
229 }
230 
IsInitialized() const231 bool Empty::IsInitialized() const {
232   return true;
233 }
234 
InternalSwap(Empty * other)235 void Empty::InternalSwap(Empty* other) {
236   using std::swap;
237   _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
238 }
239 
GetMetadata() const240 ::PROTOBUF_NAMESPACE_ID::Metadata Empty::GetMetadata() const {
241   return GetMetadataStatic();
242 }
243 
244 
245 // @@protoc_insertion_point(namespace_scope)
246 PROTOBUF_NAMESPACE_CLOSE
247 PROTOBUF_NAMESPACE_OPEN
CreateMaybeMessage(Arena * arena)248 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::Empty* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Empty >(Arena* arena) {
249   return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::Empty >(arena);
250 }
251 PROTOBUF_NAMESPACE_CLOSE
252 
253 // @@protoc_insertion_point(global_scope)
254 #include <google/protobuf/port_undef.inc>
255