field_mask.pb.h 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/field_mask.proto
  3. #ifndef PROTOBUF_INCLUDED_google_2fprotobuf_2ffield_5fmask_2eproto
  4. #define PROTOBUF_INCLUDED_google_2fprotobuf_2ffield_5fmask_2eproto
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 3006001
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/io/coded_stream.h>
  18. #include <google/protobuf/arena.h>
  19. #include <google/protobuf/arenastring.h>
  20. #include <google/protobuf/generated_message_table_driven.h>
  21. #include <google/protobuf/generated_message_util.h>
  22. #include <google/protobuf/inlined_string_field.h>
  23. #include <google/protobuf/metadata.h>
  24. #include <google/protobuf/message.h>
  25. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  26. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  27. #include <google/protobuf/unknown_field_set.h>
  28. // @@protoc_insertion_point(includes)
  29. #define PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2ffield_5fmask_2eproto LIBPROTOBUF_EXPORT
  30. namespace protobuf_google_2fprotobuf_2ffield_5fmask_2eproto {
  31. // Internal implementation detail -- do not use these members.
  32. struct LIBPROTOBUF_EXPORT TableStruct {
  33. static const ::google::protobuf::internal::ParseTableField entries[];
  34. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  35. static const ::google::protobuf::internal::ParseTable schema[1];
  36. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  37. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  38. static const ::google::protobuf::uint32 offsets[];
  39. };
  40. void LIBPROTOBUF_EXPORT AddDescriptors();
  41. } // namespace protobuf_google_2fprotobuf_2ffield_5fmask_2eproto
  42. namespace google {
  43. namespace protobuf {
  44. class FieldMask;
  45. class FieldMaskDefaultTypeInternal;
  46. LIBPROTOBUF_EXPORT extern FieldMaskDefaultTypeInternal _FieldMask_default_instance_;
  47. } // namespace protobuf
  48. } // namespace google
  49. namespace google {
  50. namespace protobuf {
  51. template<> LIBPROTOBUF_EXPORT ::google::protobuf::FieldMask* Arena::CreateMaybeMessage<::google::protobuf::FieldMask>(Arena*);
  52. } // namespace protobuf
  53. } // namespace google
  54. namespace google {
  55. namespace protobuf {
  56. // ===================================================================
  57. class LIBPROTOBUF_EXPORT FieldMask : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FieldMask) */ {
  58. public:
  59. FieldMask();
  60. virtual ~FieldMask();
  61. FieldMask(const FieldMask& from);
  62. inline FieldMask& operator=(const FieldMask& from) {
  63. CopyFrom(from);
  64. return *this;
  65. }
  66. #if LANG_CXX11
  67. FieldMask(FieldMask&& from) noexcept
  68. : FieldMask() {
  69. *this = ::std::move(from);
  70. }
  71. inline FieldMask& operator=(FieldMask&& from) noexcept {
  72. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  73. if (this != &from) InternalSwap(&from);
  74. } else {
  75. CopyFrom(from);
  76. }
  77. return *this;
  78. }
  79. #endif
  80. static const ::google::protobuf::Descriptor* descriptor();
  81. static const FieldMask& default_instance();
  82. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  83. static inline const FieldMask* internal_default_instance() {
  84. return reinterpret_cast<const FieldMask*>(
  85. &_FieldMask_default_instance_);
  86. }
  87. static constexpr int kIndexInFileMessages =
  88. 0;
  89. void Swap(FieldMask* other);
  90. friend void swap(FieldMask& a, FieldMask& b) {
  91. a.Swap(&b);
  92. }
  93. // implements Message ----------------------------------------------
  94. inline FieldMask* New() const final {
  95. return CreateMaybeMessage<FieldMask>(NULL);
  96. }
  97. FieldMask* New(::google::protobuf::Arena* arena) const final {
  98. return CreateMaybeMessage<FieldMask>(arena);
  99. }
  100. void CopyFrom(const ::google::protobuf::Message& from) final;
  101. void MergeFrom(const ::google::protobuf::Message& from) final;
  102. void CopyFrom(const FieldMask& from);
  103. void MergeFrom(const FieldMask& from);
  104. void Clear() final;
  105. bool IsInitialized() const final;
  106. size_t ByteSizeLong() const final;
  107. bool MergePartialFromCodedStream(
  108. ::google::protobuf::io::CodedInputStream* input) final;
  109. void SerializeWithCachedSizes(
  110. ::google::protobuf::io::CodedOutputStream* output) const final;
  111. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  112. bool deterministic, ::google::protobuf::uint8* target) const final;
  113. int GetCachedSize() const final { return _cached_size_.Get(); }
  114. private:
  115. void SharedCtor();
  116. void SharedDtor();
  117. void SetCachedSize(int size) const final;
  118. void InternalSwap(FieldMask* other);
  119. private:
  120. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  121. return NULL;
  122. }
  123. inline void* MaybeArenaPtr() const {
  124. return NULL;
  125. }
  126. public:
  127. ::google::protobuf::Metadata GetMetadata() const final;
  128. // nested types ----------------------------------------------------
  129. // accessors -------------------------------------------------------
  130. // repeated string paths = 1;
  131. int paths_size() const;
  132. void clear_paths();
  133. static const int kPathsFieldNumber = 1;
  134. const ::std::string& paths(int index) const;
  135. ::std::string* mutable_paths(int index);
  136. void set_paths(int index, const ::std::string& value);
  137. #if LANG_CXX11
  138. void set_paths(int index, ::std::string&& value);
  139. #endif
  140. void set_paths(int index, const char* value);
  141. void set_paths(int index, const char* value, size_t size);
  142. ::std::string* add_paths();
  143. void add_paths(const ::std::string& value);
  144. #if LANG_CXX11
  145. void add_paths(::std::string&& value);
  146. #endif
  147. void add_paths(const char* value);
  148. void add_paths(const char* value, size_t size);
  149. const ::google::protobuf::RepeatedPtrField< ::std::string>& paths() const;
  150. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_paths();
  151. // @@protoc_insertion_point(class_scope:google.protobuf.FieldMask)
  152. private:
  153. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  154. ::google::protobuf::RepeatedPtrField< ::std::string> paths_;
  155. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  156. friend struct ::protobuf_google_2fprotobuf_2ffield_5fmask_2eproto::TableStruct;
  157. };
  158. // ===================================================================
  159. // ===================================================================
  160. #ifdef __GNUC__
  161. #pragma GCC diagnostic push
  162. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  163. #endif // __GNUC__
  164. // FieldMask
  165. // repeated string paths = 1;
  166. inline int FieldMask::paths_size() const {
  167. return paths_.size();
  168. }
  169. inline void FieldMask::clear_paths() {
  170. paths_.Clear();
  171. }
  172. inline const ::std::string& FieldMask::paths(int index) const {
  173. // @@protoc_insertion_point(field_get:google.protobuf.FieldMask.paths)
  174. return paths_.Get(index);
  175. }
  176. inline ::std::string* FieldMask::mutable_paths(int index) {
  177. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldMask.paths)
  178. return paths_.Mutable(index);
  179. }
  180. inline void FieldMask::set_paths(int index, const ::std::string& value) {
  181. // @@protoc_insertion_point(field_set:google.protobuf.FieldMask.paths)
  182. paths_.Mutable(index)->assign(value);
  183. }
  184. #if LANG_CXX11
  185. inline void FieldMask::set_paths(int index, ::std::string&& value) {
  186. // @@protoc_insertion_point(field_set:google.protobuf.FieldMask.paths)
  187. paths_.Mutable(index)->assign(std::move(value));
  188. }
  189. #endif
  190. inline void FieldMask::set_paths(int index, const char* value) {
  191. GOOGLE_DCHECK(value != NULL);
  192. paths_.Mutable(index)->assign(value);
  193. // @@protoc_insertion_point(field_set_char:google.protobuf.FieldMask.paths)
  194. }
  195. inline void FieldMask::set_paths(int index, const char* value, size_t size) {
  196. paths_.Mutable(index)->assign(
  197. reinterpret_cast<const char*>(value), size);
  198. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldMask.paths)
  199. }
  200. inline ::std::string* FieldMask::add_paths() {
  201. // @@protoc_insertion_point(field_add_mutable:google.protobuf.FieldMask.paths)
  202. return paths_.Add();
  203. }
  204. inline void FieldMask::add_paths(const ::std::string& value) {
  205. paths_.Add()->assign(value);
  206. // @@protoc_insertion_point(field_add:google.protobuf.FieldMask.paths)
  207. }
  208. #if LANG_CXX11
  209. inline void FieldMask::add_paths(::std::string&& value) {
  210. paths_.Add(std::move(value));
  211. // @@protoc_insertion_point(field_add:google.protobuf.FieldMask.paths)
  212. }
  213. #endif
  214. inline void FieldMask::add_paths(const char* value) {
  215. GOOGLE_DCHECK(value != NULL);
  216. paths_.Add()->assign(value);
  217. // @@protoc_insertion_point(field_add_char:google.protobuf.FieldMask.paths)
  218. }
  219. inline void FieldMask::add_paths(const char* value, size_t size) {
  220. paths_.Add()->assign(reinterpret_cast<const char*>(value), size);
  221. // @@protoc_insertion_point(field_add_pointer:google.protobuf.FieldMask.paths)
  222. }
  223. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  224. FieldMask::paths() const {
  225. // @@protoc_insertion_point(field_list:google.protobuf.FieldMask.paths)
  226. return paths_;
  227. }
  228. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  229. FieldMask::mutable_paths() {
  230. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FieldMask.paths)
  231. return &paths_;
  232. }
  233. #ifdef __GNUC__
  234. #pragma GCC diagnostic pop
  235. #endif // __GNUC__
  236. // @@protoc_insertion_point(namespace_scope)
  237. } // namespace protobuf
  238. } // namespace google
  239. // @@protoc_insertion_point(global_scope)
  240. #endif // PROTOBUF_INCLUDED_google_2fprotobuf_2ffield_5fmask_2eproto