诸暨麻将添加redis
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

307 行
12 KiB

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