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 < 3013000
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 3013000 < 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_lite.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::AuxiliaryParseTableField 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 PROTOBUF_FINAL :
70 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FieldMask) */ {
71 public:
FieldMask()72 inline FieldMask() : FieldMask(nullptr) {}
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 (GetArena() == from.GetArena()) {
87 if (this != &from) InternalSwap(&from);
88 } else {
89 CopyFrom(from);
90 }
91 return *this;
92 }
93
descriptor()94 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
95 return GetDescriptor();
96 }
GetDescriptor()97 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
98 return GetMetadataStatic().descriptor;
99 }
GetReflection()100 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
101 return GetMetadataStatic().reflection;
102 }
103 static const FieldMask& default_instance();
104
105 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
internal_default_instance()106 static inline const FieldMask* internal_default_instance() {
107 return reinterpret_cast<const FieldMask*>(
108 &_FieldMask_default_instance_);
109 }
110 static constexpr int kIndexInFileMessages =
111 0;
112
swap(FieldMask & a,FieldMask & b)113 friend void swap(FieldMask& a, FieldMask& b) {
114 a.Swap(&b);
115 }
Swap(FieldMask * other)116 inline void Swap(FieldMask* other) {
117 if (other == this) return;
118 if (GetArena() == other->GetArena()) {
119 InternalSwap(other);
120 } else {
121 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
122 }
123 }
UnsafeArenaSwap(FieldMask * other)124 void UnsafeArenaSwap(FieldMask* other) {
125 if (other == this) return;
126 GOOGLE_DCHECK(GetArena() == other->GetArena());
127 InternalSwap(other);
128 }
129
130 // implements Message ----------------------------------------------
131
New()132 inline FieldMask* New() const final {
133 return CreateMaybeMessage<FieldMask>(nullptr);
134 }
135
New(::PROTOBUF_NAMESPACE_ID::Arena * arena)136 FieldMask* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
137 return CreateMaybeMessage<FieldMask>(arena);
138 }
139 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
140 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
141 void CopyFrom(const FieldMask& from);
142 void MergeFrom(const FieldMask& from);
143 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
144 bool IsInitialized() const final;
145
146 size_t ByteSizeLong() const final;
147 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
148 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
149 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
GetCachedSize()150 int GetCachedSize() const final { return _cached_size_.Get(); }
151
152 private:
153 inline void SharedCtor();
154 inline void SharedDtor();
155 void SetCachedSize(int size) const final;
156 void InternalSwap(FieldMask* other);
157 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
FullMessageName()158 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
159 return "google.protobuf.FieldMask";
160 }
161 protected:
162 explicit FieldMask(::PROTOBUF_NAMESPACE_ID::Arena* arena);
163 private:
164 static void ArenaDtor(void* object);
165 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
166 public:
167
168 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
169 private:
GetMetadataStatic()170 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
171 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2ffield_5fmask_2eproto);
172 return ::descriptor_table_google_2fprotobuf_2ffield_5fmask_2eproto.file_level_metadata[kIndexInFileMessages];
173 }
174
175 public:
176
177 // nested types ----------------------------------------------------
178
179 // accessors -------------------------------------------------------
180
181 enum : int {
182 kPathsFieldNumber = 1,
183 };
184 // repeated string paths = 1;
185 int paths_size() const;
186 private:
187 int _internal_paths_size() const;
188 public:
189 void clear_paths();
190 const std::string& paths(int index) const;
191 std::string* mutable_paths(int index);
192 void set_paths(int index, const std::string& value);
193 void set_paths(int index, std::string&& value);
194 void set_paths(int index, const char* value);
195 void set_paths(int index, const char* value, size_t size);
196 std::string* add_paths();
197 void add_paths(const std::string& value);
198 void add_paths(std::string&& value);
199 void add_paths(const char* value);
200 void add_paths(const char* value, size_t size);
201 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& paths() const;
202 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_paths();
203 private:
204 const std::string& _internal_paths(int index) const;
205 std::string* _internal_add_paths();
206 public:
207
208 // @@protoc_insertion_point(class_scope:google.protobuf.FieldMask)
209 private:
210 class _Internal;
211
212 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
213 typedef void InternalArenaConstructable_;
214 typedef void DestructorSkippable_;
215 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> paths_;
216 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
217 friend struct ::TableStruct_google_2fprotobuf_2ffield_5fmask_2eproto;
218 };
219 // ===================================================================
220
221
222 // ===================================================================
223
224 #ifdef __GNUC__
225 #pragma GCC diagnostic push
226 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
227 #endif // __GNUC__
228 // FieldMask
229
230 // repeated string paths = 1;
_internal_paths_size()231 inline int FieldMask::_internal_paths_size() const {
232 return paths_.size();
233 }
paths_size()234 inline int FieldMask::paths_size() const {
235 return _internal_paths_size();
236 }
clear_paths()237 inline void FieldMask::clear_paths() {
238 paths_.Clear();
239 }
add_paths()240 inline std::string* FieldMask::add_paths() {
241 // @@protoc_insertion_point(field_add_mutable:google.protobuf.FieldMask.paths)
242 return _internal_add_paths();
243 }
_internal_paths(int index)244 inline const std::string& FieldMask::_internal_paths(int index) const {
245 return paths_.Get(index);
246 }
paths(int index)247 inline const std::string& FieldMask::paths(int index) const {
248 // @@protoc_insertion_point(field_get:google.protobuf.FieldMask.paths)
249 return _internal_paths(index);
250 }
mutable_paths(int index)251 inline std::string* FieldMask::mutable_paths(int index) {
252 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldMask.paths)
253 return paths_.Mutable(index);
254 }
set_paths(int index,const std::string & value)255 inline void FieldMask::set_paths(int index, const std::string& value) {
256 // @@protoc_insertion_point(field_set:google.protobuf.FieldMask.paths)
257 paths_.Mutable(index)->assign(value);
258 }
set_paths(int index,std::string && value)259 inline void FieldMask::set_paths(int index, std::string&& value) {
260 // @@protoc_insertion_point(field_set:google.protobuf.FieldMask.paths)
261 paths_.Mutable(index)->assign(std::move(value));
262 }
set_paths(int index,const char * value)263 inline void FieldMask::set_paths(int index, const char* value) {
264 GOOGLE_DCHECK(value != nullptr);
265 paths_.Mutable(index)->assign(value);
266 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldMask.paths)
267 }
set_paths(int index,const char * value,size_t size)268 inline void FieldMask::set_paths(int index, const char* value, size_t size) {
269 paths_.Mutable(index)->assign(
270 reinterpret_cast<const char*>(value), size);
271 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldMask.paths)
272 }
_internal_add_paths()273 inline std::string* FieldMask::_internal_add_paths() {
274 return paths_.Add();
275 }
add_paths(const std::string & value)276 inline void FieldMask::add_paths(const std::string& value) {
277 paths_.Add()->assign(value);
278 // @@protoc_insertion_point(field_add:google.protobuf.FieldMask.paths)
279 }
add_paths(std::string && value)280 inline void FieldMask::add_paths(std::string&& value) {
281 paths_.Add(std::move(value));
282 // @@protoc_insertion_point(field_add:google.protobuf.FieldMask.paths)
283 }
add_paths(const char * value)284 inline void FieldMask::add_paths(const char* value) {
285 GOOGLE_DCHECK(value != nullptr);
286 paths_.Add()->assign(value);
287 // @@protoc_insertion_point(field_add_char:google.protobuf.FieldMask.paths)
288 }
add_paths(const char * value,size_t size)289 inline void FieldMask::add_paths(const char* value, size_t size) {
290 paths_.Add()->assign(reinterpret_cast<const char*>(value), size);
291 // @@protoc_insertion_point(field_add_pointer:google.protobuf.FieldMask.paths)
292 }
293 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
paths()294 FieldMask::paths() const {
295 // @@protoc_insertion_point(field_list:google.protobuf.FieldMask.paths)
296 return paths_;
297 }
298 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
mutable_paths()299 FieldMask::mutable_paths() {
300 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FieldMask.paths)
301 return &paths_;
302 }
303
304 #ifdef __GNUC__
305 #pragma GCC diagnostic pop
306 #endif // __GNUC__
307
308 // @@protoc_insertion_point(namespace_scope)
309
310 PROTOBUF_NAMESPACE_CLOSE
311
312 // @@protoc_insertion_point(global_scope)
313
314 #include <google/protobuf/port_undef.inc>
315 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2ffield_5fmask_2eproto
316