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 < 3021000 |
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 3021004 < 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_util.h> |
27 | #include <google/protobuf/metadata_lite.h> |
28 | #include <google/protobuf/generated_message_reflection.h> |
29 | #include <google/protobuf/message.h> |
30 | #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
31 | #include <google/protobuf/extension_set.h> // IWYU pragma: export |
32 | #include <google/protobuf/unknown_field_set.h> |
33 | // @@protoc_insertion_point(includes) |
34 | #include <google/protobuf/port_def.inc> |
35 | #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ffield_5fmask_2eproto PROTOBUF_EXPORT |
36 | PROTOBUF_NAMESPACE_OPEN |
37 | namespace internal { |
38 | class AnyMetadata; |
39 | } // namespace internal |
40 | PROTOBUF_NAMESPACE_CLOSE |
41 | |
42 | // Internal implementation detail -- do not use these members. |
43 | struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2ffield_5fmask_2eproto { |
44 | static const uint32_t offsets[]; |
45 | }; |
46 | PROTOBUF_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2ffield_5fmask_2eproto; |
47 | PROTOBUF_NAMESPACE_OPEN |
48 | class FieldMask; |
49 | struct FieldMaskDefaultTypeInternal; |
50 | PROTOBUF_EXPORT extern FieldMaskDefaultTypeInternal _FieldMask_default_instance_; |
51 | PROTOBUF_NAMESPACE_CLOSE |
52 | PROTOBUF_NAMESPACE_OPEN |
53 | template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::FieldMask* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FieldMask>(Arena*); |
54 | PROTOBUF_NAMESPACE_CLOSE |
55 | PROTOBUF_NAMESPACE_OPEN |
56 | |
57 | // =================================================================== |
58 | |
59 | class PROTOBUF_EXPORT FieldMask final : |
60 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FieldMask) */ { |
61 | public: |
62 | inline FieldMask() : FieldMask(nullptr) {} |
63 | ~FieldMask() override; |
64 | explicit PROTOBUF_CONSTEXPR FieldMask(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
65 | |
66 | FieldMask(const FieldMask& from); |
67 | FieldMask(FieldMask&& from) noexcept |
68 | : FieldMask() { |
69 | *this = ::std::move(from); |
70 | } |
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(other: &from); |
84 | } else { |
85 | CopyFrom(from); |
86 | } |
87 | return *this; |
88 | } |
89 | |
90 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
91 | return GetDescriptor(); |
92 | } |
93 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
94 | return default_instance().GetMetadata().descriptor; |
95 | } |
96 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
97 | return default_instance().GetMetadata().reflection; |
98 | } |
99 | static const FieldMask& default_instance() { |
100 | return *internal_default_instance(); |
101 | } |
102 | static inline const FieldMask* internal_default_instance() { |
103 | return reinterpret_cast<const FieldMask*>( |
104 | &_FieldMask_default_instance_); |
105 | } |
106 | static constexpr int kIndexInFileMessages = |
107 | 0; |
108 | |
109 | friend void swap(FieldMask& a, FieldMask& b) { |
110 | a.Swap(other: &b); |
111 | } |
112 | inline void Swap(FieldMask* other) { |
113 | if (other == this) return; |
114 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
115 | if (GetOwningArena() != nullptr && |
116 | GetOwningArena() == other->GetOwningArena()) { |
117 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
118 | if (GetOwningArena() == other->GetOwningArena()) { |
119 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
120 | InternalSwap(other); |
121 | } else { |
122 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(m1: this, m2: other); |
123 | } |
124 | } |
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 | |
133 | FieldMask* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
134 | return CreateMaybeMessage<FieldMask>(arena); |
135 | } |
136 | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
137 | void CopyFrom(const FieldMask& from); |
138 | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
139 | void MergeFrom( const FieldMask& from) { |
140 | FieldMask::MergeImpl(to_msg&: *this, from_msg: from); |
141 | } |
142 | private: |
143 | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
144 | public: |
145 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
146 | bool IsInitialized() const final; |
147 | |
148 | size_t ByteSizeLong() const final; |
149 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
150 | uint8_t* _InternalSerialize( |
151 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
152 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
153 | |
154 | private: |
155 | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
156 | void SharedDtor(); |
157 | void SetCachedSize(int size) const final; |
158 | void InternalSwap(FieldMask* other); |
159 | |
160 | private: |
161 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
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 | public: |
169 | |
170 | static const ClassData _class_data_; |
171 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
172 | |
173 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
174 | |
175 | // nested types ---------------------------------------------------- |
176 | |
177 | // accessors ------------------------------------------------------- |
178 | |
179 | enum : int { |
180 | kPathsFieldNumber = 1, |
181 | }; |
182 | // repeated string paths = 1; |
183 | int paths_size() const; |
184 | private: |
185 | int _internal_paths_size() const; |
186 | public: |
187 | void clear_paths(); |
188 | const std::string& paths(int index) const; |
189 | std::string* mutable_paths(int index); |
190 | void set_paths(int index, const std::string& value); |
191 | void set_paths(int index, std::string&& value); |
192 | void set_paths(int index, const char* value); |
193 | void set_paths(int index, const char* value, size_t size); |
194 | std::string* add_paths(); |
195 | void add_paths(const std::string& value); |
196 | void add_paths(std::string&& value); |
197 | void add_paths(const char* value); |
198 | void add_paths(const char* value, size_t size); |
199 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& paths() const; |
200 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_paths(); |
201 | private: |
202 | const std::string& _internal_paths(int index) const; |
203 | std::string* _internal_add_paths(); |
204 | public: |
205 | |
206 | // @@protoc_insertion_point(class_scope:google.protobuf.FieldMask) |
207 | private: |
208 | class _Internal; |
209 | |
210 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
211 | typedef void InternalArenaConstructable_; |
212 | typedef void DestructorSkippable_; |
213 | struct Impl_ { |
214 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> paths_; |
215 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
216 | }; |
217 | union { Impl_ _impl_; }; |
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; |
232 | inline int FieldMask::_internal_paths_size() const { |
233 | return _impl_.paths_.size(); |
234 | } |
235 | inline int FieldMask::paths_size() const { |
236 | return _internal_paths_size(); |
237 | } |
238 | inline void FieldMask::clear_paths() { |
239 | _impl_.paths_.Clear(); |
240 | } |
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 | } |
246 | inline const std::string& FieldMask::_internal_paths(int index) const { |
247 | return _impl_.paths_.Get(index); |
248 | } |
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 | } |
253 | inline std::string* FieldMask::mutable_paths(int index) { |
254 | // @@protoc_insertion_point(field_mutable:google.protobuf.FieldMask.paths) |
255 | return _impl_.paths_.Mutable(index); |
256 | } |
257 | inline void FieldMask::set_paths(int index, const std::string& value) { |
258 | _impl_.paths_.Mutable(index)->assign(str: value); |
259 | // @@protoc_insertion_point(field_set:google.protobuf.FieldMask.paths) |
260 | } |
261 | inline void FieldMask::set_paths(int index, std::string&& value) { |
262 | _impl_.paths_.Mutable(index)->assign(str: std::move(value)); |
263 | // @@protoc_insertion_point(field_set:google.protobuf.FieldMask.paths) |
264 | } |
265 | inline void FieldMask::set_paths(int index, const char* value) { |
266 | GOOGLE_DCHECK(value != nullptr); |
267 | _impl_.paths_.Mutable(index)->assign(s: value); |
268 | // @@protoc_insertion_point(field_set_char:google.protobuf.FieldMask.paths) |
269 | } |
270 | inline void FieldMask::set_paths(int index, const char* value, size_t size) { |
271 | _impl_.paths_.Mutable(index)->assign( |
272 | s: reinterpret_cast<const char*>(value), n: size); |
273 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldMask.paths) |
274 | } |
275 | inline std::string* FieldMask::_internal_add_paths() { |
276 | return _impl_.paths_.Add(); |
277 | } |
278 | inline void FieldMask::add_paths(const std::string& value) { |
279 | _impl_.paths_.Add()->assign(str: value); |
280 | // @@protoc_insertion_point(field_add:google.protobuf.FieldMask.paths) |
281 | } |
282 | inline void FieldMask::add_paths(std::string&& value) { |
283 | _impl_.paths_.Add(value: std::move(value)); |
284 | // @@protoc_insertion_point(field_add:google.protobuf.FieldMask.paths) |
285 | } |
286 | inline void FieldMask::add_paths(const char* value) { |
287 | GOOGLE_DCHECK(value != nullptr); |
288 | _impl_.paths_.Add()->assign(s: value); |
289 | // @@protoc_insertion_point(field_add_char:google.protobuf.FieldMask.paths) |
290 | } |
291 | inline void FieldMask::add_paths(const char* value, size_t size) { |
292 | _impl_.paths_.Add()->assign(s: reinterpret_cast<const char*>(value), n: size); |
293 | // @@protoc_insertion_point(field_add_pointer:google.protobuf.FieldMask.paths) |
294 | } |
295 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& |
296 | FieldMask::paths() const { |
297 | // @@protoc_insertion_point(field_list:google.protobuf.FieldMask.paths) |
298 | return _impl_.paths_; |
299 | } |
300 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* |
301 | FieldMask::mutable_paths() { |
302 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.FieldMask.paths) |
303 | return &_impl_.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 | |