诸暨麻将添加redis
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

380 lines
14 KiB

  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/any.proto
  3. #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fany_2eproto
  4. #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fany_2eproto
  5. #include <limits>
  6. #include <string>
  7. #include <google/protobuf/port_def.inc>
  8. #if PROTOBUF_VERSION < 3011000
  9. #error This file was generated by a newer version of protoc which is
  10. #error incompatible with your Protocol Buffer headers. Please update
  11. #error your headers.
  12. #endif
  13. #if 3011000 < PROTOBUF_MIN_PROTOC_VERSION
  14. #error This file was generated by an older version of protoc which is
  15. #error incompatible with your Protocol Buffer headers. Please
  16. #error regenerate this file with a newer version of protoc.
  17. #endif
  18. #include <google/protobuf/port_undef.inc>
  19. #include <google/protobuf/io/coded_stream.h>
  20. #include <google/protobuf/arena.h>
  21. #include <google/protobuf/arenastring.h>
  22. #include <google/protobuf/generated_message_table_driven.h>
  23. #include <google/protobuf/generated_message_util.h>
  24. #include <google/protobuf/inlined_string_field.h>
  25. #include <google/protobuf/metadata.h>
  26. #include <google/protobuf/generated_message_reflection.h>
  27. #include <google/protobuf/message.h>
  28. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  29. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  30. #include <google/protobuf/unknown_field_set.h>
  31. #include <google/protobuf/any.h>
  32. // @@protoc_insertion_point(includes)
  33. #include <google/protobuf/port_def.inc>
  34. #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fany_2eproto PROTOBUF_EXPORT
  35. PROTOBUF_NAMESPACE_OPEN
  36. namespace internal {
  37. class AnyMetadata;
  38. } // namespace internal
  39. PROTOBUF_NAMESPACE_CLOSE
  40. // Internal implementation detail -- do not use these members.
  41. struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2fany_2eproto {
  42. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  43. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  44. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
  45. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  46. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
  47. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  48. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  49. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  50. static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
  51. };
  52. extern PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fany_2eproto;
  53. PROTOBUF_NAMESPACE_OPEN
  54. class Any;
  55. class AnyDefaultTypeInternal;
  56. PROTOBUF_EXPORT extern AnyDefaultTypeInternal _Any_default_instance_;
  57. PROTOBUF_NAMESPACE_CLOSE
  58. PROTOBUF_NAMESPACE_OPEN
  59. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::Any* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Any>(Arena*);
  60. PROTOBUF_NAMESPACE_CLOSE
  61. PROTOBUF_NAMESPACE_OPEN
  62. // ===================================================================
  63. class PROTOBUF_EXPORT Any :
  64. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Any) */ {
  65. public:
  66. Any();
  67. virtual ~Any();
  68. Any(const Any& from);
  69. Any(Any&& from) noexcept
  70. : Any() {
  71. *this = ::std::move(from);
  72. }
  73. inline Any& operator=(const Any& from) {
  74. CopyFrom(from);
  75. return *this;
  76. }
  77. inline Any& operator=(Any&& from) noexcept {
  78. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  79. if (this != &from) InternalSwap(&from);
  80. } else {
  81. CopyFrom(from);
  82. }
  83. return *this;
  84. }
  85. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  86. return GetDescriptor();
  87. }
  88. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  89. return GetMetadataStatic().descriptor;
  90. }
  91. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  92. return GetMetadataStatic().reflection;
  93. }
  94. static const Any& default_instance();
  95. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  96. static inline const Any* internal_default_instance() {
  97. return reinterpret_cast<const Any*>(
  98. &_Any_default_instance_);
  99. }
  100. static constexpr int kIndexInFileMessages =
  101. 0;
  102. // implements Any -----------------------------------------------
  103. void PackFrom(const ::PROTOBUF_NAMESPACE_ID::Message& message);
  104. void PackFrom(const ::PROTOBUF_NAMESPACE_ID::Message& message,
  105. const std::string& type_url_prefix);
  106. bool UnpackTo(::PROTOBUF_NAMESPACE_ID::Message* message) const;
  107. static bool GetAnyFieldDescriptors(
  108. const ::PROTOBUF_NAMESPACE_ID::Message& message,
  109. const ::PROTOBUF_NAMESPACE_ID::FieldDescriptor** type_url_field,
  110. const ::PROTOBUF_NAMESPACE_ID::FieldDescriptor** value_field);
  111. template<typename T> bool Is() const {
  112. return _any_metadata_.Is<T>();
  113. }
  114. static bool ParseAnyTypeUrl(const string& type_url,
  115. std::string* full_type_name);
  116. friend void swap(Any& a, Any& b) {
  117. a.Swap(&b);
  118. }
  119. inline void Swap(Any* other) {
  120. if (other == this) return;
  121. InternalSwap(other);
  122. }
  123. // implements Message ----------------------------------------------
  124. inline Any* New() const final {
  125. return CreateMaybeMessage<Any>(nullptr);
  126. }
  127. Any* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  128. return CreateMaybeMessage<Any>(arena);
  129. }
  130. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  131. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  132. void CopyFrom(const Any& from);
  133. void MergeFrom(const Any& from);
  134. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  135. bool IsInitialized() const final;
  136. size_t ByteSizeLong() const final;
  137. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  138. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  139. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  140. int GetCachedSize() const final { return _cached_size_.Get(); }
  141. private:
  142. inline void SharedCtor();
  143. inline void SharedDtor();
  144. void SetCachedSize(int size) const final;
  145. void InternalSwap(Any* other);
  146. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  147. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  148. return "google.protobuf.Any";
  149. }
  150. private:
  151. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  152. return nullptr;
  153. }
  154. inline void* MaybeArenaPtr() const {
  155. return nullptr;
  156. }
  157. public:
  158. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  159. private:
  160. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  161. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fany_2eproto);
  162. return ::descriptor_table_google_2fprotobuf_2fany_2eproto.file_level_metadata[kIndexInFileMessages];
  163. }
  164. public:
  165. // nested types ----------------------------------------------------
  166. // accessors -------------------------------------------------------
  167. enum : int {
  168. kTypeUrlFieldNumber = 1,
  169. kValueFieldNumber = 2,
  170. };
  171. // string type_url = 1;
  172. void clear_type_url();
  173. const std::string& type_url() const;
  174. void set_type_url(const std::string& value);
  175. void set_type_url(std::string&& value);
  176. void set_type_url(const char* value);
  177. void set_type_url(const char* value, size_t size);
  178. std::string* mutable_type_url();
  179. std::string* release_type_url();
  180. void set_allocated_type_url(std::string* type_url);
  181. private:
  182. const std::string& _internal_type_url() const;
  183. void _internal_set_type_url(const std::string& value);
  184. std::string* _internal_mutable_type_url();
  185. public:
  186. // bytes value = 2;
  187. void clear_value();
  188. const std::string& value() const;
  189. void set_value(const std::string& value);
  190. void set_value(std::string&& value);
  191. void set_value(const char* value);
  192. void set_value(const void* value, size_t size);
  193. std::string* mutable_value();
  194. std::string* release_value();
  195. void set_allocated_value(std::string* value);
  196. private:
  197. const std::string& _internal_value() const;
  198. void _internal_set_value(const std::string& value);
  199. std::string* _internal_mutable_value();
  200. public:
  201. // @@protoc_insertion_point(class_scope:google.protobuf.Any)
  202. private:
  203. class _Internal;
  204. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  205. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_url_;
  206. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_;
  207. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  208. ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata _any_metadata_;
  209. friend struct ::TableStruct_google_2fprotobuf_2fany_2eproto;
  210. };
  211. // ===================================================================
  212. // ===================================================================
  213. #ifdef __GNUC__
  214. #pragma GCC diagnostic push
  215. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  216. #endif // __GNUC__
  217. // Any
  218. // string type_url = 1;
  219. inline void Any::clear_type_url() {
  220. type_url_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  221. }
  222. inline const std::string& Any::type_url() const {
  223. // @@protoc_insertion_point(field_get:google.protobuf.Any.type_url)
  224. return _internal_type_url();
  225. }
  226. inline void Any::set_type_url(const std::string& value) {
  227. _internal_set_type_url(value);
  228. // @@protoc_insertion_point(field_set:google.protobuf.Any.type_url)
  229. }
  230. inline std::string* Any::mutable_type_url() {
  231. // @@protoc_insertion_point(field_mutable:google.protobuf.Any.type_url)
  232. return _internal_mutable_type_url();
  233. }
  234. inline const std::string& Any::_internal_type_url() const {
  235. return type_url_.GetNoArena();
  236. }
  237. inline void Any::_internal_set_type_url(const std::string& value) {
  238. type_url_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  239. }
  240. inline void Any::set_type_url(std::string&& value) {
  241. type_url_.SetNoArena(
  242. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  243. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Any.type_url)
  244. }
  245. inline void Any::set_type_url(const char* value) {
  246. GOOGLE_DCHECK(value != nullptr);
  247. type_url_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  248. // @@protoc_insertion_point(field_set_char:google.protobuf.Any.type_url)
  249. }
  250. inline void Any::set_type_url(const char* value, size_t size) {
  251. type_url_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  252. ::std::string(reinterpret_cast<const char*>(value), size));
  253. // @@protoc_insertion_point(field_set_pointer:google.protobuf.Any.type_url)
  254. }
  255. inline std::string* Any::_internal_mutable_type_url() {
  256. return type_url_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  257. }
  258. inline std::string* Any::release_type_url() {
  259. // @@protoc_insertion_point(field_release:google.protobuf.Any.type_url)
  260. return type_url_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  261. }
  262. inline void Any::set_allocated_type_url(std::string* type_url) {
  263. if (type_url != nullptr) {
  264. } else {
  265. }
  266. type_url_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), type_url);
  267. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Any.type_url)
  268. }
  269. // bytes value = 2;
  270. inline void Any::clear_value() {
  271. value_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  272. }
  273. inline const std::string& Any::value() const {
  274. // @@protoc_insertion_point(field_get:google.protobuf.Any.value)
  275. return _internal_value();
  276. }
  277. inline void Any::set_value(const std::string& value) {
  278. _internal_set_value(value);
  279. // @@protoc_insertion_point(field_set:google.protobuf.Any.value)
  280. }
  281. inline std::string* Any::mutable_value() {
  282. // @@protoc_insertion_point(field_mutable:google.protobuf.Any.value)
  283. return _internal_mutable_value();
  284. }
  285. inline const std::string& Any::_internal_value() const {
  286. return value_.GetNoArena();
  287. }
  288. inline void Any::_internal_set_value(const std::string& value) {
  289. value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  290. }
  291. inline void Any::set_value(std::string&& value) {
  292. value_.SetNoArena(
  293. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  294. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Any.value)
  295. }
  296. inline void Any::set_value(const char* value) {
  297. GOOGLE_DCHECK(value != nullptr);
  298. value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  299. // @@protoc_insertion_point(field_set_char:google.protobuf.Any.value)
  300. }
  301. inline void Any::set_value(const void* value, size_t size) {
  302. value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  303. ::std::string(reinterpret_cast<const char*>(value), size));
  304. // @@protoc_insertion_point(field_set_pointer:google.protobuf.Any.value)
  305. }
  306. inline std::string* Any::_internal_mutable_value() {
  307. return value_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  308. }
  309. inline std::string* Any::release_value() {
  310. // @@protoc_insertion_point(field_release:google.protobuf.Any.value)
  311. return value_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  312. }
  313. inline void Any::set_allocated_value(std::string* value) {
  314. if (value != nullptr) {
  315. } else {
  316. }
  317. value_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  318. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Any.value)
  319. }
  320. #ifdef __GNUC__
  321. #pragma GCC diagnostic pop
  322. #endif // __GNUC__
  323. // @@protoc_insertion_point(namespace_scope)
  324. PROTOBUF_NAMESPACE_CLOSE
  325. // @@protoc_insertion_point(global_scope)
  326. #include <google/protobuf/port_undef.inc>
  327. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fany_2eproto