• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 < 3009000
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 3009001 < 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/inlined_string_field.h>
29 #include <google/protobuf/metadata.h>
30 #include <google/protobuf/generated_message_reflection.h>
31 #include <google/protobuf/message.h>
32 #include <google/protobuf/repeated_field.h>  // IWYU pragma: export
33 #include <google/protobuf/extension_set.h>  // IWYU pragma: export
34 #include <google/protobuf/unknown_field_set.h>
35 // @@protoc_insertion_point(includes)
36 #include <google/protobuf/port_def.inc>
37 #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ffield_5fmask_2eproto PROTOBUF_EXPORT
38 PROTOBUF_NAMESPACE_OPEN
39 namespace internal {
40 class AnyMetadata;
41 }  // namespace internal
42 PROTOBUF_NAMESPACE_CLOSE
43 
44 // Internal implementation detail -- do not use these members.
45 struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2ffield_5fmask_2eproto {
46   static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
47     PROTOBUF_SECTION_VARIABLE(protodesc_cold);
48   static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
49     PROTOBUF_SECTION_VARIABLE(protodesc_cold);
50   static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
51     PROTOBUF_SECTION_VARIABLE(protodesc_cold);
52   static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
53   static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
54   static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
55 };
56 extern PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2ffield_5fmask_2eproto;
57 PROTOBUF_NAMESPACE_OPEN
58 class FieldMask;
59 class FieldMaskDefaultTypeInternal;
60 PROTOBUF_EXPORT extern FieldMaskDefaultTypeInternal _FieldMask_default_instance_;
61 PROTOBUF_NAMESPACE_CLOSE
62 PROTOBUF_NAMESPACE_OPEN
63 template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::FieldMask* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::FieldMask>(Arena*);
64 PROTOBUF_NAMESPACE_CLOSE
65 PROTOBUF_NAMESPACE_OPEN
66 
67 // ===================================================================
68 
69 class PROTOBUF_EXPORT FieldMask :
70     public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FieldMask) */ {
71  public:
72   FieldMask();
73   virtual ~FieldMask();
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 (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
87       if (this != &from) InternalSwap(&from);
88     } else {
89       CopyFrom(from);
90     }
91     return *this;
92   }
93 
GetArena()94   inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
95     return GetArenaNoVirtual();
96   }
GetMaybeArenaPointer()97   inline void* GetMaybeArenaPointer() const final {
98     return MaybeArenaPtr();
99   }
descriptor()100   static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
101     return GetDescriptor();
102   }
GetDescriptor()103   static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
104     return GetMetadataStatic().descriptor;
105   }
GetReflection()106   static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
107     return GetMetadataStatic().reflection;
108   }
109   static const FieldMask& default_instance();
110 
111   static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
internal_default_instance()112   static inline const FieldMask* internal_default_instance() {
113     return reinterpret_cast<const FieldMask*>(
114                &_FieldMask_default_instance_);
115   }
116   static constexpr int kIndexInFileMessages =
117     0;
118 
swap(FieldMask & a,FieldMask & b)119   friend void swap(FieldMask& a, FieldMask& b) {
120     a.Swap(&b);
121   }
Swap(FieldMask * other)122   inline void Swap(FieldMask* other) {
123     if (other == this) return;
124     if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
125       InternalSwap(other);
126     } else {
127       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
128     }
129   }
UnsafeArenaSwap(FieldMask * other)130   void UnsafeArenaSwap(FieldMask* other) {
131     if (other == this) return;
132     GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
133     InternalSwap(other);
134   }
135 
136   // implements Message ----------------------------------------------
137 
New()138   inline FieldMask* New() const final {
139     return CreateMaybeMessage<FieldMask>(nullptr);
140   }
141 
New(::PROTOBUF_NAMESPACE_ID::Arena * arena)142   FieldMask* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
143     return CreateMaybeMessage<FieldMask>(arena);
144   }
145   void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
146   void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
147   void CopyFrom(const FieldMask& from);
148   void MergeFrom(const FieldMask& from);
149   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
150   bool IsInitialized() const final;
151 
152   size_t ByteSizeLong() const final;
153   #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
154   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
155   #else
156   bool MergePartialFromCodedStream(
157       ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
158   #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
159   void SerializeWithCachedSizes(
160       ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
161   ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
162       ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
GetCachedSize()163   int GetCachedSize() const final { return _cached_size_.Get(); }
164 
165   private:
166   inline void SharedCtor();
167   inline void SharedDtor();
168   void SetCachedSize(int size) const final;
169   void InternalSwap(FieldMask* other);
170   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
FullMessageName()171   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
172     return "google.protobuf.FieldMask";
173   }
174   protected:
175   explicit FieldMask(::PROTOBUF_NAMESPACE_ID::Arena* arena);
176   private:
177   static void ArenaDtor(void* object);
178   inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
179   private:
GetArenaNoVirtual()180   inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
181     return _internal_metadata_.arena();
182   }
MaybeArenaPtr()183   inline void* MaybeArenaPtr() const {
184     return _internal_metadata_.raw_arena_ptr();
185   }
186   public:
187 
188   ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
189   private:
GetMetadataStatic()190   static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
191     ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2ffield_5fmask_2eproto);
192     return ::descriptor_table_google_2fprotobuf_2ffield_5fmask_2eproto.file_level_metadata[kIndexInFileMessages];
193   }
194 
195   public:
196 
197   // nested types ----------------------------------------------------
198 
199   // accessors -------------------------------------------------------
200 
201   enum : int {
202     kPathsFieldNumber = 1,
203   };
204   // repeated string paths = 1;
205   int paths_size() const;
206   void clear_paths();
207   const std::string& paths(int index) const;
208   std::string* mutable_paths(int index);
209   void set_paths(int index, const std::string& value);
210   void set_paths(int index, std::string&& value);
211   void set_paths(int index, const char* value);
212   void set_paths(int index, const char* value, size_t size);
213   std::string* add_paths();
214   void add_paths(const std::string& value);
215   void add_paths(std::string&& value);
216   void add_paths(const char* value);
217   void add_paths(const char* value, size_t size);
218   const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& paths() const;
219   ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_paths();
220 
221   // @@protoc_insertion_point(class_scope:google.protobuf.FieldMask)
222  private:
223   class _Internal;
224 
225   ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
226   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
227   typedef void InternalArenaConstructable_;
228   typedef void DestructorSkippable_;
229   ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> paths_;
230   mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
231   friend struct ::TableStruct_google_2fprotobuf_2ffield_5fmask_2eproto;
232 };
233 // ===================================================================
234 
235 
236 // ===================================================================
237 
238 #ifdef __GNUC__
239   #pragma GCC diagnostic push
240   #pragma GCC diagnostic ignored "-Wstrict-aliasing"
241 #endif  // __GNUC__
242 // FieldMask
243 
244 // repeated string paths = 1;
paths_size()245 inline int FieldMask::paths_size() const {
246   return paths_.size();
247 }
clear_paths()248 inline void FieldMask::clear_paths() {
249   paths_.Clear();
250 }
paths(int index)251 inline const std::string& FieldMask::paths(int index) const {
252   // @@protoc_insertion_point(field_get:google.protobuf.FieldMask.paths)
253   return paths_.Get(index);
254 }
mutable_paths(int index)255 inline std::string* FieldMask::mutable_paths(int index) {
256   // @@protoc_insertion_point(field_mutable:google.protobuf.FieldMask.paths)
257   return paths_.Mutable(index);
258 }
set_paths(int index,const std::string & value)259 inline void FieldMask::set_paths(int index, const std::string& value) {
260   // @@protoc_insertion_point(field_set:google.protobuf.FieldMask.paths)
261   paths_.Mutable(index)->assign(value);
262 }
set_paths(int index,std::string && value)263 inline void FieldMask::set_paths(int index, std::string&& value) {
264   // @@protoc_insertion_point(field_set:google.protobuf.FieldMask.paths)
265   paths_.Mutable(index)->assign(std::move(value));
266 }
set_paths(int index,const char * value)267 inline void FieldMask::set_paths(int index, const char* value) {
268   GOOGLE_DCHECK(value != nullptr);
269   paths_.Mutable(index)->assign(value);
270   // @@protoc_insertion_point(field_set_char:google.protobuf.FieldMask.paths)
271 }
set_paths(int index,const char * value,size_t size)272 inline void FieldMask::set_paths(int index, const char* value, size_t size) {
273   paths_.Mutable(index)->assign(
274     reinterpret_cast<const char*>(value), size);
275   // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldMask.paths)
276 }
add_paths()277 inline std::string* FieldMask::add_paths() {
278   // @@protoc_insertion_point(field_add_mutable:google.protobuf.FieldMask.paths)
279   return paths_.Add();
280 }
add_paths(const std::string & value)281 inline void FieldMask::add_paths(const std::string& value) {
282   paths_.Add()->assign(value);
283   // @@protoc_insertion_point(field_add:google.protobuf.FieldMask.paths)
284 }
add_paths(std::string && value)285 inline void FieldMask::add_paths(std::string&& value) {
286   paths_.Add(std::move(value));
287   // @@protoc_insertion_point(field_add:google.protobuf.FieldMask.paths)
288 }
add_paths(const char * value)289 inline void FieldMask::add_paths(const char* value) {
290   GOOGLE_DCHECK(value != nullptr);
291   paths_.Add()->assign(value);
292   // @@protoc_insertion_point(field_add_char:google.protobuf.FieldMask.paths)
293 }
add_paths(const char * value,size_t size)294 inline void FieldMask::add_paths(const char* value, size_t size) {
295   paths_.Add()->assign(reinterpret_cast<const char*>(value), size);
296   // @@protoc_insertion_point(field_add_pointer:google.protobuf.FieldMask.paths)
297 }
298 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
paths()299 FieldMask::paths() const {
300   // @@protoc_insertion_point(field_list:google.protobuf.FieldMask.paths)
301   return paths_;
302 }
303 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
mutable_paths()304 FieldMask::mutable_paths() {
305   // @@protoc_insertion_point(field_mutable_list:google.protobuf.FieldMask.paths)
306   return &paths_;
307 }
308 
309 #ifdef __GNUC__
310   #pragma GCC diagnostic pop
311 #endif  // __GNUC__
312 
313 // @@protoc_insertion_point(namespace_scope)
314 
315 PROTOBUF_NAMESPACE_CLOSE
316 
317 // @@protoc_insertion_point(global_scope)
318 
319 #include <google/protobuf/port_undef.inc>
320 #endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2ffield_5fmask_2eproto
321