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

325 行
13 KiB

  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/duration.proto
  3. #include <google/protobuf/duration.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. PROTOBUF_NAMESPACE_OPEN
  15. class DurationDefaultTypeInternal {
  16. public:
  17. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Duration> _instance;
  18. } _Duration_default_instance_;
  19. PROTOBUF_NAMESPACE_CLOSE
  20. static void InitDefaultsscc_info_Duration_google_2fprotobuf_2fduration_2eproto() {
  21. GOOGLE_PROTOBUF_VERIFY_VERSION;
  22. {
  23. void* ptr = &PROTOBUF_NAMESPACE_ID::_Duration_default_instance_;
  24. new (ptr) PROTOBUF_NAMESPACE_ID::Duration();
  25. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  26. }
  27. PROTOBUF_NAMESPACE_ID::Duration::InitAsDefaultInstance();
  28. }
  29. PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Duration_google_2fprotobuf_2fduration_2eproto =
  30. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Duration_google_2fprotobuf_2fduration_2eproto}, {}};
  31. static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_google_2fprotobuf_2fduration_2eproto[1];
  32. static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_google_2fprotobuf_2fduration_2eproto = nullptr;
  33. static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_google_2fprotobuf_2fduration_2eproto = nullptr;
  34. const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_google_2fprotobuf_2fduration_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  35. ~0u, // no _has_bits_
  36. PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Duration, _internal_metadata_),
  37. ~0u, // no _extensions_
  38. ~0u, // no _oneof_case_
  39. ~0u, // no _weak_field_map_
  40. PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Duration, seconds_),
  41. PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Duration, nanos_),
  42. };
  43. static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  44. { 0, -1, sizeof(PROTOBUF_NAMESPACE_ID::Duration)},
  45. };
  46. static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
  47. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_Duration_default_instance_),
  48. };
  49. const char descriptor_table_protodef_google_2fprotobuf_2fduration_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  50. "\n\036google/protobuf/duration.proto\022\017google"
  51. ".protobuf\"*\n\010Duration\022\017\n\007seconds\030\001 \001(\003\022\r"
  52. "\n\005nanos\030\002 \001(\005B|\n\023com.google.protobufB\rDu"
  53. "rationProtoP\001Z*github.com/golang/protobu"
  54. "f/ptypes/duration\370\001\001\242\002\003GPB\252\002\036Google.Prot"
  55. "obuf.WellKnownTypesb\006proto3"
  56. ;
  57. static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_google_2fprotobuf_2fduration_2eproto_deps[1] = {
  58. };
  59. static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_google_2fprotobuf_2fduration_2eproto_sccs[1] = {
  60. &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base,
  61. };
  62. static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_google_2fprotobuf_2fduration_2eproto_once;
  63. static bool descriptor_table_google_2fprotobuf_2fduration_2eproto_initialized = false;
  64. const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fduration_2eproto = {
  65. &descriptor_table_google_2fprotobuf_2fduration_2eproto_initialized, descriptor_table_protodef_google_2fprotobuf_2fduration_2eproto, "google/protobuf/duration.proto", 227,
  66. &descriptor_table_google_2fprotobuf_2fduration_2eproto_once, descriptor_table_google_2fprotobuf_2fduration_2eproto_sccs, descriptor_table_google_2fprotobuf_2fduration_2eproto_deps, 1, 0,
  67. schemas, file_default_instances, TableStruct_google_2fprotobuf_2fduration_2eproto::offsets,
  68. file_level_metadata_google_2fprotobuf_2fduration_2eproto, 1, file_level_enum_descriptors_google_2fprotobuf_2fduration_2eproto, file_level_service_descriptors_google_2fprotobuf_2fduration_2eproto,
  69. };
  70. // Force running AddDescriptors() at dynamic initialization time.
  71. static bool dynamic_init_dummy_google_2fprotobuf_2fduration_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_google_2fprotobuf_2fduration_2eproto), true);
  72. PROTOBUF_NAMESPACE_OPEN
  73. // ===================================================================
  74. void Duration::InitAsDefaultInstance() {
  75. }
  76. class Duration::_Internal {
  77. public:
  78. };
  79. Duration::Duration()
  80. : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
  81. SharedCtor();
  82. // @@protoc_insertion_point(constructor:google.protobuf.Duration)
  83. }
  84. Duration::Duration(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  85. : ::PROTOBUF_NAMESPACE_ID::Message(),
  86. _internal_metadata_(arena) {
  87. SharedCtor();
  88. RegisterArenaDtor(arena);
  89. // @@protoc_insertion_point(arena_constructor:google.protobuf.Duration)
  90. }
  91. Duration::Duration(const Duration& from)
  92. : ::PROTOBUF_NAMESPACE_ID::Message(),
  93. _internal_metadata_(nullptr) {
  94. _internal_metadata_.MergeFrom(from._internal_metadata_);
  95. ::memcpy(&seconds_, &from.seconds_,
  96. static_cast<size_t>(reinterpret_cast<char*>(&nanos_) -
  97. reinterpret_cast<char*>(&seconds_)) + sizeof(nanos_));
  98. // @@protoc_insertion_point(copy_constructor:google.protobuf.Duration)
  99. }
  100. void Duration::SharedCtor() {
  101. ::memset(&seconds_, 0, static_cast<size_t>(
  102. reinterpret_cast<char*>(&nanos_) -
  103. reinterpret_cast<char*>(&seconds_)) + sizeof(nanos_));
  104. }
  105. Duration::~Duration() {
  106. // @@protoc_insertion_point(destructor:google.protobuf.Duration)
  107. SharedDtor();
  108. }
  109. void Duration::SharedDtor() {
  110. GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
  111. }
  112. void Duration::ArenaDtor(void* object) {
  113. Duration* _this = reinterpret_cast< Duration* >(object);
  114. (void)_this;
  115. }
  116. void Duration::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  117. }
  118. void Duration::SetCachedSize(int size) const {
  119. _cached_size_.Set(size);
  120. }
  121. const Duration& Duration::default_instance() {
  122. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base);
  123. return *internal_default_instance();
  124. }
  125. void Duration::Clear() {
  126. // @@protoc_insertion_point(message_clear_start:google.protobuf.Duration)
  127. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  128. // Prevent compiler warnings about cached_has_bits being unused
  129. (void) cached_has_bits;
  130. ::memset(&seconds_, 0, static_cast<size_t>(
  131. reinterpret_cast<char*>(&nanos_) -
  132. reinterpret_cast<char*>(&seconds_)) + sizeof(nanos_));
  133. _internal_metadata_.Clear();
  134. }
  135. const char* Duration::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  136. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  137. ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
  138. while (!ctx->Done(&ptr)) {
  139. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  140. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  141. CHK_(ptr);
  142. switch (tag >> 3) {
  143. // int64 seconds = 1;
  144. case 1:
  145. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
  146. seconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  147. CHK_(ptr);
  148. } else goto handle_unusual;
  149. continue;
  150. // int32 nanos = 2;
  151. case 2:
  152. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
  153. nanos_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  154. CHK_(ptr);
  155. } else goto handle_unusual;
  156. continue;
  157. default: {
  158. handle_unusual:
  159. if ((tag & 7) == 4 || tag == 0) {
  160. ctx->SetLastTag(tag);
  161. goto success;
  162. }
  163. ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
  164. CHK_(ptr != nullptr);
  165. continue;
  166. }
  167. } // switch
  168. } // while
  169. success:
  170. return ptr;
  171. failure:
  172. ptr = nullptr;
  173. goto success;
  174. #undef CHK_
  175. }
  176. ::PROTOBUF_NAMESPACE_ID::uint8* Duration::InternalSerializeWithCachedSizesToArray(
  177. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  178. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Duration)
  179. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  180. (void) cached_has_bits;
  181. // int64 seconds = 1;
  182. if (this->seconds() != 0) {
  183. target = stream->EnsureSpace(target);
  184. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_seconds(), target);
  185. }
  186. // int32 nanos = 2;
  187. if (this->nanos() != 0) {
  188. target = stream->EnsureSpace(target);
  189. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_nanos(), target);
  190. }
  191. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  192. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  193. _internal_metadata_.unknown_fields(), target, stream);
  194. }
  195. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Duration)
  196. return target;
  197. }
  198. size_t Duration::ByteSizeLong() const {
  199. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Duration)
  200. size_t total_size = 0;
  201. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  202. // Prevent compiler warnings about cached_has_bits being unused
  203. (void) cached_has_bits;
  204. // int64 seconds = 1;
  205. if (this->seconds() != 0) {
  206. total_size += 1 +
  207. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
  208. this->_internal_seconds());
  209. }
  210. // int32 nanos = 2;
  211. if (this->nanos() != 0) {
  212. total_size += 1 +
  213. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
  214. this->_internal_nanos());
  215. }
  216. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  217. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  218. _internal_metadata_, total_size, &_cached_size_);
  219. }
  220. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  221. SetCachedSize(cached_size);
  222. return total_size;
  223. }
  224. void Duration::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  225. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Duration)
  226. GOOGLE_DCHECK_NE(&from, this);
  227. const Duration* source =
  228. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Duration>(
  229. &from);
  230. if (source == nullptr) {
  231. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Duration)
  232. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  233. } else {
  234. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Duration)
  235. MergeFrom(*source);
  236. }
  237. }
  238. void Duration::MergeFrom(const Duration& from) {
  239. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Duration)
  240. GOOGLE_DCHECK_NE(&from, this);
  241. _internal_metadata_.MergeFrom(from._internal_metadata_);
  242. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  243. (void) cached_has_bits;
  244. if (from.seconds() != 0) {
  245. _internal_set_seconds(from._internal_seconds());
  246. }
  247. if (from.nanos() != 0) {
  248. _internal_set_nanos(from._internal_nanos());
  249. }
  250. }
  251. void Duration::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  252. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Duration)
  253. if (&from == this) return;
  254. Clear();
  255. MergeFrom(from);
  256. }
  257. void Duration::CopyFrom(const Duration& from) {
  258. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Duration)
  259. if (&from == this) return;
  260. Clear();
  261. MergeFrom(from);
  262. }
  263. bool Duration::IsInitialized() const {
  264. return true;
  265. }
  266. void Duration::InternalSwap(Duration* other) {
  267. using std::swap;
  268. _internal_metadata_.Swap(&other->_internal_metadata_);
  269. swap(seconds_, other->seconds_);
  270. swap(nanos_, other->nanos_);
  271. }
  272. ::PROTOBUF_NAMESPACE_ID::Metadata Duration::GetMetadata() const {
  273. return GetMetadataStatic();
  274. }
  275. // @@protoc_insertion_point(namespace_scope)
  276. PROTOBUF_NAMESPACE_CLOSE
  277. PROTOBUF_NAMESPACE_OPEN
  278. template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::Duration* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Duration >(Arena* arena) {
  279. return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::Duration >(arena);
  280. }
  281. PROTOBUF_NAMESPACE_CLOSE
  282. // @@protoc_insertion_point(global_scope)
  283. #include <google/protobuf/port_undef.inc>