You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

field_mask.pb.h 12 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/field_mask.proto
  3. #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2ffield_5fmask_2eproto
  4. #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2ffield_5fmask_2eproto
  5. #include <limits>
  6. #include <string>
  7. #include <google/protobuf/port_def.inc>
  8. #if PROTOBUF_VERSION < 3021000
  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 3021006 < 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_util.h>
  23. #include <google/protobuf/metadata_lite.h>
  24. #include <google/protobuf/generated_message_reflection.h>
  25. #include <google/protobuf/message.h>
  26. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  27. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  28. #include <google/protobuf/unknown_field_set.h>
  29. // @@protoc_insertion_point(includes)
  30. #include <google/protobuf/port_def.inc>
  31. #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ffield_5fmask_2eproto PROTOBUF_EXPORT
  32. PROTOBUF_NAMESPACE_OPEN
  33. namespace internal
  34. {
  35. class AnyMetadata;
  36. } // namespace internal
  37. PROTOBUF_NAMESPACE_CLOSE
  38. // Internal implementation detail -- do not use these members.
  39. struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2ffield_5fmask_2eproto
  40. {
  41. static const uint32_t offsets[];
  42. };
  43. PROTOBUF_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2ffield_5fmask_2eproto;
  44. PROTOBUF_NAMESPACE_OPEN
  45. class FieldMask;
  46. struct FieldMaskDefaultTypeInternal;
  47. PROTOBUF_EXPORT extern FieldMaskDefaultTypeInternal _FieldMask_default_instance_;
  48. PROTOBUF_NAMESPACE_CLOSE
  49. PROTOBUF_NAMESPACE_OPEN
  50. template<>
  51. PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::FieldMask* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FieldMask>(Arena*);
  52. PROTOBUF_NAMESPACE_CLOSE
  53. PROTOBUF_NAMESPACE_OPEN
  54. // ===================================================================
  55. class PROTOBUF_EXPORT FieldMask final :
  56. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FieldMask) */
  57. {
  58. public:
  59. inline FieldMask() :
  60. FieldMask(nullptr)
  61. {
  62. }
  63. ~FieldMask() override;
  64. explicit PROTOBUF_CONSTEXPR FieldMask(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  65. FieldMask(const FieldMask& from);
  66. FieldMask(FieldMask&& from) noexcept
  67. :
  68. FieldMask()
  69. {
  70. *this = ::std::move(from);
  71. }
  72. inline FieldMask& operator=(const FieldMask& from)
  73. {
  74. CopyFrom(from);
  75. return *this;
  76. }
  77. inline FieldMask& operator=(FieldMask&& from) noexcept
  78. {
  79. if (this == &from)
  80. return *this;
  81. if (GetOwningArena() == from.GetOwningArena()
  82. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  83. && GetOwningArena() != nullptr
  84. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  85. )
  86. {
  87. InternalSwap(&from);
  88. }
  89. else
  90. {
  91. CopyFrom(from);
  92. }
  93. return *this;
  94. }
  95. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor()
  96. {
  97. return GetDescriptor();
  98. }
  99. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor()
  100. {
  101. return default_instance().GetMetadata().descriptor;
  102. }
  103. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection()
  104. {
  105. return default_instance().GetMetadata().reflection;
  106. }
  107. static const FieldMask& default_instance()
  108. {
  109. return *internal_default_instance();
  110. }
  111. static inline const FieldMask* internal_default_instance()
  112. {
  113. return reinterpret_cast<const FieldMask*>(
  114. &_FieldMask_default_instance_
  115. );
  116. }
  117. static constexpr int kIndexInFileMessages =
  118. 0;
  119. friend void swap(FieldMask& a, FieldMask& b)
  120. {
  121. a.Swap(&b);
  122. }
  123. inline void Swap(FieldMask* other)
  124. {
  125. if (other == this)
  126. return;
  127. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  128. if (GetOwningArena() != nullptr &&
  129. GetOwningArena() == other->GetOwningArena())
  130. {
  131. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  132. if (GetOwningArena() == other->GetOwningArena())
  133. {
  134. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  135. InternalSwap(other);
  136. }
  137. else
  138. {
  139. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  140. }
  141. }
  142. void UnsafeArenaSwap(FieldMask* other)
  143. {
  144. if (other == this)
  145. return;
  146. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  147. InternalSwap(other);
  148. }
  149. // implements Message ----------------------------------------------
  150. FieldMask* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final
  151. {
  152. return CreateMaybeMessage<FieldMask>(arena);
  153. }
  154. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  155. void CopyFrom(const FieldMask& from);
  156. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  157. void MergeFrom(const FieldMask& from)
  158. {
  159. FieldMask::MergeImpl(*this, from);
  160. }
  161. private:
  162. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  163. public:
  164. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  165. bool IsInitialized() const final;
  166. size_t ByteSizeLong() const final;
  167. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  168. uint8_t* _InternalSerialize(
  169. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream
  170. ) const final;
  171. int GetCachedSize() const final
  172. {
  173. return _impl_._cached_size_.Get();
  174. }
  175. private:
  176. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  177. void SharedDtor();
  178. void SetCachedSize(int size) const final;
  179. void InternalSwap(FieldMask* other);
  180. private:
  181. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  182. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
  183. {
  184. return "google.protobuf.FieldMask";
  185. }
  186. protected:
  187. explicit FieldMask(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false);
  188. public:
  189. static const ClassData _class_data_;
  190. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final;
  191. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  192. // nested types ----------------------------------------------------
  193. // accessors -------------------------------------------------------
  194. enum : int
  195. {
  196. kPathsFieldNumber = 1,
  197. };
  198. // repeated string paths = 1;
  199. int paths_size() const;
  200. private:
  201. int _internal_paths_size() const;
  202. public:
  203. void clear_paths();
  204. const std::string& paths(int index) const;
  205. std::string* mutable_paths(int index);
  206. void set_paths(int index, const std::string& value);
  207. void set_paths(int index, std::string&& value);
  208. void set_paths(int index, const char* value);
  209. void set_paths(int index, const char* value, size_t size);
  210. std::string* add_paths();
  211. void add_paths(const std::string& value);
  212. void add_paths(std::string&& value);
  213. void add_paths(const char* value);
  214. void add_paths(const char* value, size_t size);
  215. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& paths() const;
  216. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_paths();
  217. private:
  218. const std::string& _internal_paths(int index) const;
  219. std::string* _internal_add_paths();
  220. public:
  221. // @@protoc_insertion_point(class_scope:google.protobuf.FieldMask)
  222. private:
  223. class _Internal;
  224. template<typename T>
  225. friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  226. typedef void InternalArenaConstructable_;
  227. typedef void DestructorSkippable_;
  228. struct Impl_
  229. {
  230. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> paths_;
  231. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  232. };
  233. union
  234. {
  235. Impl_ _impl_;
  236. };
  237. friend struct ::TableStruct_google_2fprotobuf_2ffield_5fmask_2eproto;
  238. };
  239. // ===================================================================
  240. // ===================================================================
  241. #ifdef __GNUC__
  242. #pragma GCC diagnostic push
  243. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  244. #endif // __GNUC__
  245. // FieldMask
  246. // repeated string paths = 1;
  247. inline int FieldMask::_internal_paths_size() const
  248. {
  249. return _impl_.paths_.size();
  250. }
  251. inline int FieldMask::paths_size() const
  252. {
  253. return _internal_paths_size();
  254. }
  255. inline void FieldMask::clear_paths()
  256. {
  257. _impl_.paths_.Clear();
  258. }
  259. inline std::string* FieldMask::add_paths()
  260. {
  261. std::string* _s = _internal_add_paths();
  262. // @@protoc_insertion_point(field_add_mutable:google.protobuf.FieldMask.paths)
  263. return _s;
  264. }
  265. inline const std::string& FieldMask::_internal_paths(int index) const
  266. {
  267. return _impl_.paths_.Get(index);
  268. }
  269. inline const std::string& FieldMask::paths(int index) const
  270. {
  271. // @@protoc_insertion_point(field_get:google.protobuf.FieldMask.paths)
  272. return _internal_paths(index);
  273. }
  274. inline std::string* FieldMask::mutable_paths(int index)
  275. {
  276. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldMask.paths)
  277. return _impl_.paths_.Mutable(index);
  278. }
  279. inline void FieldMask::set_paths(int index, const std::string& value)
  280. {
  281. _impl_.paths_.Mutable(index)->assign(value);
  282. // @@protoc_insertion_point(field_set:google.protobuf.FieldMask.paths)
  283. }
  284. inline void FieldMask::set_paths(int index, std::string&& value)
  285. {
  286. _impl_.paths_.Mutable(index)->assign(std::move(value));
  287. // @@protoc_insertion_point(field_set:google.protobuf.FieldMask.paths)
  288. }
  289. inline void FieldMask::set_paths(int index, const char* value)
  290. {
  291. GOOGLE_DCHECK(value != nullptr);
  292. _impl_.paths_.Mutable(index)->assign(value);
  293. // @@protoc_insertion_point(field_set_char:google.protobuf.FieldMask.paths)
  294. }
  295. inline void FieldMask::set_paths(int index, const char* value, size_t size)
  296. {
  297. _impl_.paths_.Mutable(index)->assign(
  298. reinterpret_cast<const char*>(value), size
  299. );
  300. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldMask.paths)
  301. }
  302. inline std::string* FieldMask::_internal_add_paths()
  303. {
  304. return _impl_.paths_.Add();
  305. }
  306. inline void FieldMask::add_paths(const std::string& value)
  307. {
  308. _impl_.paths_.Add()->assign(value);
  309. // @@protoc_insertion_point(field_add:google.protobuf.FieldMask.paths)
  310. }
  311. inline void FieldMask::add_paths(std::string&& value)
  312. {
  313. _impl_.paths_.Add(std::move(value));
  314. // @@protoc_insertion_point(field_add:google.protobuf.FieldMask.paths)
  315. }
  316. inline void FieldMask::add_paths(const char* value)
  317. {
  318. GOOGLE_DCHECK(value != nullptr);
  319. _impl_.paths_.Add()->assign(value);
  320. // @@protoc_insertion_point(field_add_char:google.protobuf.FieldMask.paths)
  321. }
  322. inline void FieldMask::add_paths(const char* value, size_t size)
  323. {
  324. _impl_.paths_.Add()->assign(reinterpret_cast<const char*>(value), size);
  325. // @@protoc_insertion_point(field_add_pointer:google.protobuf.FieldMask.paths)
  326. }
  327. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  328. FieldMask::paths() const
  329. {
  330. // @@protoc_insertion_point(field_list:google.protobuf.FieldMask.paths)
  331. return _impl_.paths_;
  332. }
  333. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  334. FieldMask::mutable_paths()
  335. {
  336. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FieldMask.paths)
  337. return &_impl_.paths_;
  338. }
  339. #ifdef __GNUC__
  340. #pragma GCC diagnostic pop
  341. #endif // __GNUC__
  342. // @@protoc_insertion_point(namespace_scope)
  343. PROTOBUF_NAMESPACE_CLOSE
  344. // @@protoc_insertion_point(global_scope)
  345. #include <google/protobuf/port_undef.inc>
  346. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2ffield_5fmask_2eproto