field_mask.pb.h 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  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 < 3018000
  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 3018001 < 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/metadata_lite.h>
  25. #include <google/protobuf/generated_message_reflection.h>
  26. #include <google/protobuf/message.h>
  27. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  28. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  29. #include <google/protobuf/unknown_field_set.h>
  30. // @@protoc_insertion_point(includes)
  31. #include <google/protobuf/port_def.inc>
  32. #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ffield_5fmask_2eproto PROTOBUF_EXPORT
  33. PROTOBUF_NAMESPACE_OPEN
  34. namespace internal {
  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. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  41. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  42. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
  43. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  44. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
  45. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  46. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  47. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  48. static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
  49. };
  50. PROTOBUF_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2ffield_5fmask_2eproto;
  51. PROTOBUF_NAMESPACE_OPEN
  52. class FieldMask;
  53. struct FieldMaskDefaultTypeInternal;
  54. PROTOBUF_EXPORT extern FieldMaskDefaultTypeInternal _FieldMask_default_instance_;
  55. PROTOBUF_NAMESPACE_CLOSE
  56. PROTOBUF_NAMESPACE_OPEN
  57. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::FieldMask* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FieldMask>(Arena*);
  58. PROTOBUF_NAMESPACE_CLOSE
  59. PROTOBUF_NAMESPACE_OPEN
  60. // ===================================================================
  61. class PROTOBUF_EXPORT FieldMask final :
  62. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FieldMask) */ {
  63. public:
  64. inline FieldMask() : FieldMask(nullptr) {}
  65. ~FieldMask() override;
  66. explicit constexpr FieldMask(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  67. FieldMask(const FieldMask& from);
  68. FieldMask(FieldMask&& from) noexcept
  69. : FieldMask() {
  70. *this = ::std::move(from);
  71. }
  72. inline FieldMask& operator=(const FieldMask& from) {
  73. CopyFrom(from);
  74. return *this;
  75. }
  76. inline FieldMask& operator=(FieldMask&& from) noexcept {
  77. if (this == &from) return *this;
  78. if (GetOwningArena() == from.GetOwningArena()
  79. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  80. && GetOwningArena() != nullptr
  81. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  82. ) {
  83. InternalSwap(&from);
  84. } else {
  85. CopyFrom(from);
  86. }
  87. return *this;
  88. }
  89. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  90. return GetDescriptor();
  91. }
  92. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  93. return default_instance().GetMetadata().descriptor;
  94. }
  95. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  96. return default_instance().GetMetadata().reflection;
  97. }
  98. static const FieldMask& default_instance() {
  99. return *internal_default_instance();
  100. }
  101. static inline const FieldMask* internal_default_instance() {
  102. return reinterpret_cast<const FieldMask*>(
  103. &_FieldMask_default_instance_);
  104. }
  105. static constexpr int kIndexInFileMessages =
  106. 0;
  107. friend void swap(FieldMask& a, FieldMask& b) {
  108. a.Swap(&b);
  109. }
  110. inline void Swap(FieldMask* other) {
  111. if (other == this) return;
  112. if (GetOwningArena() == other->GetOwningArena()) {
  113. InternalSwap(other);
  114. } else {
  115. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  116. }
  117. }
  118. void UnsafeArenaSwap(FieldMask* other) {
  119. if (other == this) return;
  120. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  121. InternalSwap(other);
  122. }
  123. // implements Message ----------------------------------------------
  124. inline FieldMask* New() const final {
  125. return new FieldMask();
  126. }
  127. FieldMask* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  128. return CreateMaybeMessage<FieldMask>(arena);
  129. }
  130. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  131. void CopyFrom(const FieldMask& from);
  132. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  133. void MergeFrom(const FieldMask& from);
  134. private:
  135. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  136. public:
  137. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  138. bool IsInitialized() const final;
  139. size_t ByteSizeLong() const final;
  140. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  141. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  142. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  143. int GetCachedSize() const final { return _cached_size_.Get(); }
  144. private:
  145. void SharedCtor();
  146. void SharedDtor();
  147. void SetCachedSize(int size) const final;
  148. void InternalSwap(FieldMask* other);
  149. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  150. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  151. return "google.protobuf.FieldMask";
  152. }
  153. protected:
  154. explicit FieldMask(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  155. bool is_message_owned = false);
  156. private:
  157. static void ArenaDtor(void* object);
  158. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  159. public:
  160. static const ClassData _class_data_;
  161. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  162. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  163. // nested types ----------------------------------------------------
  164. // accessors -------------------------------------------------------
  165. enum : int {
  166. kPathsFieldNumber = 1,
  167. };
  168. // repeated string paths = 1;
  169. int paths_size() const;
  170. private:
  171. int _internal_paths_size() const;
  172. public:
  173. void clear_paths();
  174. const std::string& paths(int index) const;
  175. std::string* mutable_paths(int index);
  176. void set_paths(int index, const std::string& value);
  177. void set_paths(int index, std::string&& value);
  178. void set_paths(int index, const char* value);
  179. void set_paths(int index, const char* value, size_t size);
  180. std::string* add_paths();
  181. void add_paths(const std::string& value);
  182. void add_paths(std::string&& value);
  183. void add_paths(const char* value);
  184. void add_paths(const char* value, size_t size);
  185. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& paths() const;
  186. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_paths();
  187. private:
  188. const std::string& _internal_paths(int index) const;
  189. std::string* _internal_add_paths();
  190. public:
  191. // @@protoc_insertion_point(class_scope:google.protobuf.FieldMask)
  192. private:
  193. class _Internal;
  194. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  195. typedef void InternalArenaConstructable_;
  196. typedef void DestructorSkippable_;
  197. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> paths_;
  198. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  199. friend struct ::TableStruct_google_2fprotobuf_2ffield_5fmask_2eproto;
  200. };
  201. // ===================================================================
  202. // ===================================================================
  203. #ifdef __GNUC__
  204. #pragma GCC diagnostic push
  205. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  206. #endif // __GNUC__
  207. // FieldMask
  208. // repeated string paths = 1;
  209. inline int FieldMask::_internal_paths_size() const {
  210. return paths_.size();
  211. }
  212. inline int FieldMask::paths_size() const {
  213. return _internal_paths_size();
  214. }
  215. inline void FieldMask::clear_paths() {
  216. paths_.Clear();
  217. }
  218. inline std::string* FieldMask::add_paths() {
  219. std::string* _s = _internal_add_paths();
  220. // @@protoc_insertion_point(field_add_mutable:google.protobuf.FieldMask.paths)
  221. return _s;
  222. }
  223. inline const std::string& FieldMask::_internal_paths(int index) const {
  224. return paths_.Get(index);
  225. }
  226. inline const std::string& FieldMask::paths(int index) const {
  227. // @@protoc_insertion_point(field_get:google.protobuf.FieldMask.paths)
  228. return _internal_paths(index);
  229. }
  230. inline std::string* FieldMask::mutable_paths(int index) {
  231. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldMask.paths)
  232. return paths_.Mutable(index);
  233. }
  234. inline void FieldMask::set_paths(int index, const std::string& value) {
  235. paths_.Mutable(index)->assign(value);
  236. // @@protoc_insertion_point(field_set:google.protobuf.FieldMask.paths)
  237. }
  238. inline void FieldMask::set_paths(int index, std::string&& value) {
  239. paths_.Mutable(index)->assign(std::move(value));
  240. // @@protoc_insertion_point(field_set:google.protobuf.FieldMask.paths)
  241. }
  242. inline void FieldMask::set_paths(int index, const char* value) {
  243. GOOGLE_DCHECK(value != nullptr);
  244. paths_.Mutable(index)->assign(value);
  245. // @@protoc_insertion_point(field_set_char:google.protobuf.FieldMask.paths)
  246. }
  247. inline void FieldMask::set_paths(int index, const char* value, size_t size) {
  248. paths_.Mutable(index)->assign(
  249. reinterpret_cast<const char*>(value), size);
  250. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldMask.paths)
  251. }
  252. inline std::string* FieldMask::_internal_add_paths() {
  253. return paths_.Add();
  254. }
  255. inline void FieldMask::add_paths(const std::string& value) {
  256. paths_.Add()->assign(value);
  257. // @@protoc_insertion_point(field_add:google.protobuf.FieldMask.paths)
  258. }
  259. inline void FieldMask::add_paths(std::string&& value) {
  260. paths_.Add(std::move(value));
  261. // @@protoc_insertion_point(field_add:google.protobuf.FieldMask.paths)
  262. }
  263. inline void FieldMask::add_paths(const char* value) {
  264. GOOGLE_DCHECK(value != nullptr);
  265. paths_.Add()->assign(value);
  266. // @@protoc_insertion_point(field_add_char:google.protobuf.FieldMask.paths)
  267. }
  268. inline void FieldMask::add_paths(const char* value, size_t size) {
  269. paths_.Add()->assign(reinterpret_cast<const char*>(value), size);
  270. // @@protoc_insertion_point(field_add_pointer:google.protobuf.FieldMask.paths)
  271. }
  272. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  273. FieldMask::paths() const {
  274. // @@protoc_insertion_point(field_list:google.protobuf.FieldMask.paths)
  275. return paths_;
  276. }
  277. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  278. FieldMask::mutable_paths() {
  279. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FieldMask.paths)
  280. return &paths_;
  281. }
  282. #ifdef __GNUC__
  283. #pragma GCC diagnostic pop
  284. #endif // __GNUC__
  285. // @@protoc_insertion_point(namespace_scope)
  286. PROTOBUF_NAMESPACE_CLOSE
  287. // @@protoc_insertion_point(global_scope)
  288. #include <google/protobuf/port_undef.inc>
  289. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2ffield_5fmask_2eproto