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