诸暨麻将添加redis
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
 
 

307 řádky
12 KiB

  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: Pb_Socket.proto
  3. #include "Pb_Socket.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/io/coded_stream.h>
  6. #include <google/protobuf/extension_set.h>
  7. #include <google/protobuf/wire_format_lite.h>
  8. #include <google/protobuf/descriptor.h>
  9. #include <google/protobuf/generated_message_reflection.h>
  10. #include <google/protobuf/reflection_ops.h>
  11. #include <google/protobuf/wire_format.h>
  12. // @@protoc_insertion_point(includes)
  13. #include <google/protobuf/port_def.inc>
  14. namespace Socket {
  15. class PB_KN_DetectSocketDefaultTypeInternal {
  16. public:
  17. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<PB_KN_DetectSocket> _instance;
  18. } _PB_KN_DetectSocket_default_instance_;
  19. } // namespace Socket
  20. static void InitDefaultsscc_info_PB_KN_DetectSocket_Pb_5fSocket_2eproto() {
  21. GOOGLE_PROTOBUF_VERIFY_VERSION;
  22. {
  23. void* ptr = &::Socket::_PB_KN_DetectSocket_default_instance_;
  24. new (ptr) ::Socket::PB_KN_DetectSocket();
  25. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  26. }
  27. ::Socket::PB_KN_DetectSocket::InitAsDefaultInstance();
  28. }
  29. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PB_KN_DetectSocket_Pb_5fSocket_2eproto =
  30. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PB_KN_DetectSocket_Pb_5fSocket_2eproto}, {}};
  31. static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_Pb_5fSocket_2eproto[1];
  32. static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_Pb_5fSocket_2eproto = nullptr;
  33. static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_Pb_5fSocket_2eproto = nullptr;
  34. const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_Pb_5fSocket_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  35. ~0u, // no _has_bits_
  36. PROTOBUF_FIELD_OFFSET(::Socket::PB_KN_DetectSocket, _internal_metadata_),
  37. ~0u, // no _extensions_
  38. ~0u, // no _oneof_case_
  39. ~0u, // no _weak_field_map_
  40. PROTOBUF_FIELD_OFFSET(::Socket::PB_KN_DetectSocket, dwsendtickcount_),
  41. PROTOBUF_FIELD_OFFSET(::Socket::PB_KN_DetectSocket, dwrecvtickcount_),
  42. };
  43. static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  44. { 0, -1, sizeof(::Socket::PB_KN_DetectSocket)},
  45. };
  46. static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
  47. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::Socket::_PB_KN_DetectSocket_default_instance_),
  48. };
  49. const char descriptor_table_protodef_Pb_5fSocket_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  50. "\n\017Pb_Socket.proto\022\006Socket\"F\n\022PB_KN_Detec"
  51. "tSocket\022\027\n\017dwSendTickCount\030\001 \001(\004\022\027\n\017dwRe"
  52. "cvTickCount\030\002 \001(\004b\006proto3"
  53. ;
  54. static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_Pb_5fSocket_2eproto_deps[1] = {
  55. };
  56. static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_Pb_5fSocket_2eproto_sccs[1] = {
  57. &scc_info_PB_KN_DetectSocket_Pb_5fSocket_2eproto.base,
  58. };
  59. static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_Pb_5fSocket_2eproto_once;
  60. static bool descriptor_table_Pb_5fSocket_2eproto_initialized = false;
  61. const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Pb_5fSocket_2eproto = {
  62. &descriptor_table_Pb_5fSocket_2eproto_initialized, descriptor_table_protodef_Pb_5fSocket_2eproto, "Pb_Socket.proto", 105,
  63. &descriptor_table_Pb_5fSocket_2eproto_once, descriptor_table_Pb_5fSocket_2eproto_sccs, descriptor_table_Pb_5fSocket_2eproto_deps, 1, 0,
  64. schemas, file_default_instances, TableStruct_Pb_5fSocket_2eproto::offsets,
  65. file_level_metadata_Pb_5fSocket_2eproto, 1, file_level_enum_descriptors_Pb_5fSocket_2eproto, file_level_service_descriptors_Pb_5fSocket_2eproto,
  66. };
  67. // Force running AddDescriptors() at dynamic initialization time.
  68. static bool dynamic_init_dummy_Pb_5fSocket_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_Pb_5fSocket_2eproto), true);
  69. namespace Socket {
  70. // ===================================================================
  71. void PB_KN_DetectSocket::InitAsDefaultInstance() {
  72. }
  73. class PB_KN_DetectSocket::_Internal {
  74. public:
  75. };
  76. PB_KN_DetectSocket::PB_KN_DetectSocket()
  77. : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
  78. SharedCtor();
  79. // @@protoc_insertion_point(constructor:Socket.PB_KN_DetectSocket)
  80. }
  81. PB_KN_DetectSocket::PB_KN_DetectSocket(const PB_KN_DetectSocket& from)
  82. : ::PROTOBUF_NAMESPACE_ID::Message(),
  83. _internal_metadata_(nullptr) {
  84. _internal_metadata_.MergeFrom(from._internal_metadata_);
  85. ::memcpy(&dwsendtickcount_, &from.dwsendtickcount_,
  86. static_cast<size_t>(reinterpret_cast<char*>(&dwrecvtickcount_) -
  87. reinterpret_cast<char*>(&dwsendtickcount_)) + sizeof(dwrecvtickcount_));
  88. // @@protoc_insertion_point(copy_constructor:Socket.PB_KN_DetectSocket)
  89. }
  90. void PB_KN_DetectSocket::SharedCtor() {
  91. ::memset(&dwsendtickcount_, 0, static_cast<size_t>(
  92. reinterpret_cast<char*>(&dwrecvtickcount_) -
  93. reinterpret_cast<char*>(&dwsendtickcount_)) + sizeof(dwrecvtickcount_));
  94. }
  95. PB_KN_DetectSocket::~PB_KN_DetectSocket() {
  96. // @@protoc_insertion_point(destructor:Socket.PB_KN_DetectSocket)
  97. SharedDtor();
  98. }
  99. void PB_KN_DetectSocket::SharedDtor() {
  100. }
  101. void PB_KN_DetectSocket::SetCachedSize(int size) const {
  102. _cached_size_.Set(size);
  103. }
  104. const PB_KN_DetectSocket& PB_KN_DetectSocket::default_instance() {
  105. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PB_KN_DetectSocket_Pb_5fSocket_2eproto.base);
  106. return *internal_default_instance();
  107. }
  108. void PB_KN_DetectSocket::Clear() {
  109. // @@protoc_insertion_point(message_clear_start:Socket.PB_KN_DetectSocket)
  110. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  111. // Prevent compiler warnings about cached_has_bits being unused
  112. (void) cached_has_bits;
  113. ::memset(&dwsendtickcount_, 0, static_cast<size_t>(
  114. reinterpret_cast<char*>(&dwrecvtickcount_) -
  115. reinterpret_cast<char*>(&dwsendtickcount_)) + sizeof(dwrecvtickcount_));
  116. _internal_metadata_.Clear();
  117. }
  118. const char* PB_KN_DetectSocket::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  119. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  120. while (!ctx->Done(&ptr)) {
  121. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  122. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  123. CHK_(ptr);
  124. switch (tag >> 3) {
  125. // uint64 dwSendTickCount = 1;
  126. case 1:
  127. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
  128. dwsendtickcount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  129. CHK_(ptr);
  130. } else goto handle_unusual;
  131. continue;
  132. // uint64 dwRecvTickCount = 2;
  133. case 2:
  134. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
  135. dwrecvtickcount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  136. CHK_(ptr);
  137. } else goto handle_unusual;
  138. continue;
  139. default: {
  140. handle_unusual:
  141. if ((tag & 7) == 4 || tag == 0) {
  142. ctx->SetLastTag(tag);
  143. goto success;
  144. }
  145. ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
  146. CHK_(ptr != nullptr);
  147. continue;
  148. }
  149. } // switch
  150. } // while
  151. success:
  152. return ptr;
  153. failure:
  154. ptr = nullptr;
  155. goto success;
  156. #undef CHK_
  157. }
  158. ::PROTOBUF_NAMESPACE_ID::uint8* PB_KN_DetectSocket::InternalSerializeWithCachedSizesToArray(
  159. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  160. // @@protoc_insertion_point(serialize_to_array_start:Socket.PB_KN_DetectSocket)
  161. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  162. (void) cached_has_bits;
  163. // uint64 dwSendTickCount = 1;
  164. if (this->dwsendtickcount() != 0) {
  165. target = stream->EnsureSpace(target);
  166. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_dwsendtickcount(), target);
  167. }
  168. // uint64 dwRecvTickCount = 2;
  169. if (this->dwrecvtickcount() != 0) {
  170. target = stream->EnsureSpace(target);
  171. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_dwrecvtickcount(), target);
  172. }
  173. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  174. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  175. _internal_metadata_.unknown_fields(), target, stream);
  176. }
  177. // @@protoc_insertion_point(serialize_to_array_end:Socket.PB_KN_DetectSocket)
  178. return target;
  179. }
  180. size_t PB_KN_DetectSocket::ByteSizeLong() const {
  181. // @@protoc_insertion_point(message_byte_size_start:Socket.PB_KN_DetectSocket)
  182. size_t total_size = 0;
  183. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  184. // Prevent compiler warnings about cached_has_bits being unused
  185. (void) cached_has_bits;
  186. // uint64 dwSendTickCount = 1;
  187. if (this->dwsendtickcount() != 0) {
  188. total_size += 1 +
  189. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
  190. this->_internal_dwsendtickcount());
  191. }
  192. // uint64 dwRecvTickCount = 2;
  193. if (this->dwrecvtickcount() != 0) {
  194. total_size += 1 +
  195. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
  196. this->_internal_dwrecvtickcount());
  197. }
  198. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  199. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  200. _internal_metadata_, total_size, &_cached_size_);
  201. }
  202. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  203. SetCachedSize(cached_size);
  204. return total_size;
  205. }
  206. void PB_KN_DetectSocket::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  207. // @@protoc_insertion_point(generalized_merge_from_start:Socket.PB_KN_DetectSocket)
  208. GOOGLE_DCHECK_NE(&from, this);
  209. const PB_KN_DetectSocket* source =
  210. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<PB_KN_DetectSocket>(
  211. &from);
  212. if (source == nullptr) {
  213. // @@protoc_insertion_point(generalized_merge_from_cast_fail:Socket.PB_KN_DetectSocket)
  214. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  215. } else {
  216. // @@protoc_insertion_point(generalized_merge_from_cast_success:Socket.PB_KN_DetectSocket)
  217. MergeFrom(*source);
  218. }
  219. }
  220. void PB_KN_DetectSocket::MergeFrom(const PB_KN_DetectSocket& from) {
  221. // @@protoc_insertion_point(class_specific_merge_from_start:Socket.PB_KN_DetectSocket)
  222. GOOGLE_DCHECK_NE(&from, this);
  223. _internal_metadata_.MergeFrom(from._internal_metadata_);
  224. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  225. (void) cached_has_bits;
  226. if (from.dwsendtickcount() != 0) {
  227. _internal_set_dwsendtickcount(from._internal_dwsendtickcount());
  228. }
  229. if (from.dwrecvtickcount() != 0) {
  230. _internal_set_dwrecvtickcount(from._internal_dwrecvtickcount());
  231. }
  232. }
  233. void PB_KN_DetectSocket::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  234. // @@protoc_insertion_point(generalized_copy_from_start:Socket.PB_KN_DetectSocket)
  235. if (&from == this) return;
  236. Clear();
  237. MergeFrom(from);
  238. }
  239. void PB_KN_DetectSocket::CopyFrom(const PB_KN_DetectSocket& from) {
  240. // @@protoc_insertion_point(class_specific_copy_from_start:Socket.PB_KN_DetectSocket)
  241. if (&from == this) return;
  242. Clear();
  243. MergeFrom(from);
  244. }
  245. bool PB_KN_DetectSocket::IsInitialized() const {
  246. return true;
  247. }
  248. void PB_KN_DetectSocket::InternalSwap(PB_KN_DetectSocket* other) {
  249. using std::swap;
  250. _internal_metadata_.Swap(&other->_internal_metadata_);
  251. swap(dwsendtickcount_, other->dwsendtickcount_);
  252. swap(dwrecvtickcount_, other->dwrecvtickcount_);
  253. }
  254. ::PROTOBUF_NAMESPACE_ID::Metadata PB_KN_DetectSocket::GetMetadata() const {
  255. return GetMetadataStatic();
  256. }
  257. // @@protoc_insertion_point(namespace_scope)
  258. } // namespace Socket
  259. PROTOBUF_NAMESPACE_OPEN
  260. template<> PROTOBUF_NOINLINE ::Socket::PB_KN_DetectSocket* Arena::CreateMaybeMessage< ::Socket::PB_KN_DetectSocket >(Arena* arena) {
  261. return Arena::CreateInternal< ::Socket::PB_KN_DetectSocket >(arena);
  262. }
  263. PROTOBUF_NAMESPACE_CLOSE
  264. // @@protoc_insertion_point(global_scope)
  265. #include <google/protobuf/port_undef.inc>