empty.pb.cc 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/empty.proto
  3. #include <google/protobuf/empty.pb.h>
  4. #include <algorithm>
  5. #include <google/protobuf/stubs/common.h>
  6. #include <google/protobuf/stubs/port.h>
  7. #include <google/protobuf/io/coded_stream.h>
  8. #include <google/protobuf/wire_format_lite_inl.h>
  9. #include <google/protobuf/descriptor.h>
  10. #include <google/protobuf/generated_message_reflection.h>
  11. #include <google/protobuf/reflection_ops.h>
  12. #include <google/protobuf/wire_format.h>
  13. // This is a temporary google only hack
  14. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  15. #include "third_party/protobuf/version.h"
  16. #endif
  17. // @@protoc_insertion_point(includes)
  18. namespace google {
  19. namespace protobuf {
  20. class EmptyDefaultTypeInternal {
  21. public:
  22. ::google::protobuf::internal::ExplicitlyConstructed<Empty>
  23. _instance;
  24. } _Empty_default_instance_;
  25. } // namespace protobuf
  26. } // namespace google
  27. namespace protobuf_google_2fprotobuf_2fempty_2eproto {
  28. static void InitDefaultsEmpty() {
  29. GOOGLE_PROTOBUF_VERIFY_VERSION;
  30. {
  31. void* ptr = &::google::protobuf::_Empty_default_instance_;
  32. new (ptr) ::google::protobuf::Empty();
  33. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  34. }
  35. ::google::protobuf::Empty::InitAsDefaultInstance();
  36. }
  37. LIBPROTOBUF_EXPORT ::google::protobuf::internal::SCCInfo<0> scc_info_Empty =
  38. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEmpty}, {}};
  39. void InitDefaults() {
  40. ::google::protobuf::internal::InitSCC(&scc_info_Empty.base);
  41. }
  42. ::google::protobuf::Metadata file_level_metadata[1];
  43. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  44. ~0u, // no _has_bits_
  45. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::Empty, _internal_metadata_),
  46. ~0u, // no _extensions_
  47. ~0u, // no _oneof_case_
  48. ~0u, // no _weak_field_map_
  49. };
  50. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  51. { 0, -1, sizeof(::google::protobuf::Empty)},
  52. };
  53. static ::google::protobuf::Message const * const file_default_instances[] = {
  54. reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::_Empty_default_instance_),
  55. };
  56. void protobuf_AssignDescriptors() {
  57. AddDescriptors();
  58. AssignDescriptors(
  59. "google/protobuf/empty.proto", schemas, file_default_instances, TableStruct::offsets,
  60. file_level_metadata, NULL, NULL);
  61. }
  62. void protobuf_AssignDescriptorsOnce() {
  63. static ::google::protobuf::internal::once_flag once;
  64. ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
  65. }
  66. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  67. void protobuf_RegisterTypes(const ::std::string&) {
  68. protobuf_AssignDescriptorsOnce();
  69. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1);
  70. }
  71. void AddDescriptorsImpl() {
  72. InitDefaults();
  73. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  74. "\n\033google/protobuf/empty.proto\022\017google.pr"
  75. "otobuf\"\007\n\005EmptyBv\n\023com.google.protobufB\n"
  76. "EmptyProtoP\001Z\'github.com/golang/protobuf"
  77. "/ptypes/empty\370\001\001\242\002\003GPB\252\002\036Google.Protobuf"
  78. ".WellKnownTypesb\006proto3"
  79. };
  80. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  81. descriptor, 183);
  82. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  83. "google/protobuf/empty.proto", &protobuf_RegisterTypes);
  84. }
  85. void AddDescriptors() {
  86. static ::google::protobuf::internal::once_flag once;
  87. ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
  88. }
  89. // Force AddDescriptors() to be called at dynamic initialization time.
  90. struct StaticDescriptorInitializer {
  91. StaticDescriptorInitializer() {
  92. AddDescriptors();
  93. }
  94. } static_descriptor_initializer;
  95. } // namespace protobuf_google_2fprotobuf_2fempty_2eproto
  96. namespace google {
  97. namespace protobuf {
  98. // ===================================================================
  99. void Empty::InitAsDefaultInstance() {
  100. }
  101. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  102. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  103. Empty::Empty()
  104. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  105. ::google::protobuf::internal::InitSCC(
  106. &protobuf_google_2fprotobuf_2fempty_2eproto::scc_info_Empty.base);
  107. SharedCtor();
  108. // @@protoc_insertion_point(constructor:google.protobuf.Empty)
  109. }
  110. Empty::Empty(::google::protobuf::Arena* arena)
  111. : ::google::protobuf::Message(),
  112. _internal_metadata_(arena) {
  113. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fempty_2eproto::scc_info_Empty.base);
  114. SharedCtor();
  115. RegisterArenaDtor(arena);
  116. // @@protoc_insertion_point(arena_constructor:google.protobuf.Empty)
  117. }
  118. Empty::Empty(const Empty& from)
  119. : ::google::protobuf::Message(),
  120. _internal_metadata_(NULL) {
  121. _internal_metadata_.MergeFrom(from._internal_metadata_);
  122. // @@protoc_insertion_point(copy_constructor:google.protobuf.Empty)
  123. }
  124. void Empty::SharedCtor() {
  125. }
  126. Empty::~Empty() {
  127. // @@protoc_insertion_point(destructor:google.protobuf.Empty)
  128. SharedDtor();
  129. }
  130. void Empty::SharedDtor() {
  131. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  132. }
  133. void Empty::ArenaDtor(void* object) {
  134. Empty* _this = reinterpret_cast< Empty* >(object);
  135. (void)_this;
  136. }
  137. void Empty::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  138. }
  139. void Empty::SetCachedSize(int size) const {
  140. _cached_size_.Set(size);
  141. }
  142. const ::google::protobuf::Descriptor* Empty::descriptor() {
  143. ::protobuf_google_2fprotobuf_2fempty_2eproto::protobuf_AssignDescriptorsOnce();
  144. return ::protobuf_google_2fprotobuf_2fempty_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  145. }
  146. const Empty& Empty::default_instance() {
  147. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fempty_2eproto::scc_info_Empty.base);
  148. return *internal_default_instance();
  149. }
  150. void Empty::Clear() {
  151. // @@protoc_insertion_point(message_clear_start:google.protobuf.Empty)
  152. ::google::protobuf::uint32 cached_has_bits = 0;
  153. // Prevent compiler warnings about cached_has_bits being unused
  154. (void) cached_has_bits;
  155. _internal_metadata_.Clear();
  156. }
  157. bool Empty::MergePartialFromCodedStream(
  158. ::google::protobuf::io::CodedInputStream* input) {
  159. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  160. ::google::protobuf::uint32 tag;
  161. // @@protoc_insertion_point(parse_start:google.protobuf.Empty)
  162. for (;;) {
  163. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  164. tag = p.first;
  165. if (!p.second) goto handle_unusual;
  166. handle_unusual:
  167. if (tag == 0) {
  168. goto success;
  169. }
  170. DO_(::google::protobuf::internal::WireFormat::SkipField(
  171. input, tag, _internal_metadata_.mutable_unknown_fields()));
  172. }
  173. success:
  174. // @@protoc_insertion_point(parse_success:google.protobuf.Empty)
  175. return true;
  176. failure:
  177. // @@protoc_insertion_point(parse_failure:google.protobuf.Empty)
  178. return false;
  179. #undef DO_
  180. }
  181. void Empty::SerializeWithCachedSizes(
  182. ::google::protobuf::io::CodedOutputStream* output) const {
  183. // @@protoc_insertion_point(serialize_start:google.protobuf.Empty)
  184. ::google::protobuf::uint32 cached_has_bits = 0;
  185. (void) cached_has_bits;
  186. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  187. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  188. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  189. }
  190. // @@protoc_insertion_point(serialize_end:google.protobuf.Empty)
  191. }
  192. ::google::protobuf::uint8* Empty::InternalSerializeWithCachedSizesToArray(
  193. bool deterministic, ::google::protobuf::uint8* target) const {
  194. (void)deterministic; // Unused
  195. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Empty)
  196. ::google::protobuf::uint32 cached_has_bits = 0;
  197. (void) cached_has_bits;
  198. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  199. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  200. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  201. }
  202. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Empty)
  203. return target;
  204. }
  205. size_t Empty::ByteSizeLong() const {
  206. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Empty)
  207. size_t total_size = 0;
  208. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  209. total_size +=
  210. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  211. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  212. }
  213. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  214. SetCachedSize(cached_size);
  215. return total_size;
  216. }
  217. void Empty::MergeFrom(const ::google::protobuf::Message& from) {
  218. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Empty)
  219. GOOGLE_DCHECK_NE(&from, this);
  220. const Empty* source =
  221. ::google::protobuf::internal::DynamicCastToGenerated<const Empty>(
  222. &from);
  223. if (source == NULL) {
  224. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Empty)
  225. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  226. } else {
  227. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Empty)
  228. MergeFrom(*source);
  229. }
  230. }
  231. void Empty::MergeFrom(const Empty& from) {
  232. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Empty)
  233. GOOGLE_DCHECK_NE(&from, this);
  234. _internal_metadata_.MergeFrom(from._internal_metadata_);
  235. ::google::protobuf::uint32 cached_has_bits = 0;
  236. (void) cached_has_bits;
  237. }
  238. void Empty::CopyFrom(const ::google::protobuf::Message& from) {
  239. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Empty)
  240. if (&from == this) return;
  241. Clear();
  242. MergeFrom(from);
  243. }
  244. void Empty::CopyFrom(const Empty& from) {
  245. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Empty)
  246. if (&from == this) return;
  247. Clear();
  248. MergeFrom(from);
  249. }
  250. bool Empty::IsInitialized() const {
  251. return true;
  252. }
  253. void Empty::Swap(Empty* other) {
  254. if (other == this) return;
  255. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  256. InternalSwap(other);
  257. } else {
  258. Empty* temp = New(GetArenaNoVirtual());
  259. temp->MergeFrom(*other);
  260. other->CopyFrom(*this);
  261. InternalSwap(temp);
  262. if (GetArenaNoVirtual() == NULL) {
  263. delete temp;
  264. }
  265. }
  266. }
  267. void Empty::UnsafeArenaSwap(Empty* other) {
  268. if (other == this) return;
  269. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  270. InternalSwap(other);
  271. }
  272. void Empty::InternalSwap(Empty* other) {
  273. using std::swap;
  274. _internal_metadata_.Swap(&other->_internal_metadata_);
  275. }
  276. ::google::protobuf::Metadata Empty::GetMetadata() const {
  277. protobuf_google_2fprotobuf_2fempty_2eproto::protobuf_AssignDescriptorsOnce();
  278. return ::protobuf_google_2fprotobuf_2fempty_2eproto::file_level_metadata[kIndexInFileMessages];
  279. }
  280. // @@protoc_insertion_point(namespace_scope)
  281. } // namespace protobuf
  282. } // namespace google
  283. namespace google {
  284. namespace protobuf {
  285. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::Empty* Arena::CreateMaybeMessage< ::google::protobuf::Empty >(Arena* arena) {
  286. return Arena::CreateMessageInternal< ::google::protobuf::Empty >(arena);
  287. }
  288. } // namespace protobuf
  289. } // namespace google
  290. // @@protoc_insertion_point(global_scope)