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 < 3011000
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 3011004 < 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 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
154 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
155 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
GetCachedSize()156 int GetCachedSize() const final { return _cached_size_.Get(); }
157
158 private:
159 inline void SharedCtor();
160 inline void SharedDtor();
161 void SetCachedSize(int size) const final;
162 void InternalSwap(FieldMask* other);
163 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
FullMessageName()164 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
165 return "google.protobuf.FieldMask";
166 }
167 protected:
168 explicit FieldMask(::PROTOBUF_NAMESPACE_ID::Arena* arena);
169 private:
170 static void ArenaDtor(void* object);
171 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
172 private:
GetArenaNoVirtual()173 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
174 return _internal_metadata_.arena();
175 }
MaybeArenaPtr()176 inline void* MaybeArenaPtr() const {
177 return _internal_metadata_.raw_arena_ptr();
178 }
179 public:
180
181 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
182 private:
GetMetadataStatic()183 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
184 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2ffield_5fmask_2eproto);
185 return ::descriptor_table_google_2fprotobuf_2ffield_5fmask_2eproto.file_level_metadata[kIndexInFileMessages];
186 }
187
188 public:
189
190 // nested types ----------------------------------------------------
191
192 // accessors -------------------------------------------------------
193
194 enum : int {
195 kPathsFieldNumber = 1,
196 };
197 // repeated string paths = 1;
198 int paths_size() const;
199 private:
200 int _internal_paths_size() const;
201 public:
202 void clear_paths();
203 const std::string& paths(int index) const;
204 std::string* mutable_paths(int index);
205 void set_paths(int index, const std::string& value);
206 void set_paths(int index, std::string&& value);
207 void set_paths(int index, const char* value);
208 void set_paths(int index, const char* value, size_t size);
209 std::string* add_paths();
210 void add_paths(const std::string& value);
211 void add_paths(std::string&& value);
212 void add_paths(const char* value);
213 void add_paths(const char* value, size_t size);
214 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& paths() const;
215 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_paths();
216 private:
217 const std::string& _internal_paths(int index) const;
218 std::string* _internal_add_paths();
219 public:
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;
_internal_paths_size()245 inline int FieldMask::_internal_paths_size() const {
246 return paths_.size();
247 }
paths_size()248 inline int FieldMask::paths_size() const {
249 return _internal_paths_size();
250 }
clear_paths()251 inline void FieldMask::clear_paths() {
252 paths_.Clear();
253 }
add_paths()254 inline std::string* FieldMask::add_paths() {
255 // @@protoc_insertion_point(field_add_mutable:google.protobuf.FieldMask.paths)
256 return _internal_add_paths();
257 }
_internal_paths(int index)258 inline const std::string& FieldMask::_internal_paths(int index) const {
259 return paths_.Get(index);
260 }
paths(int index)261 inline const std::string& FieldMask::paths(int index) const {
262 // @@protoc_insertion_point(field_get:google.protobuf.FieldMask.paths)
263 return _internal_paths(index);
264 }
mutable_paths(int index)265 inline std::string* FieldMask::mutable_paths(int index) {
266 // @@protoc_insertion_point(field_mutable:google.protobuf.FieldMask.paths)
267 return paths_.Mutable(index);
268 }
set_paths(int index,const std::string & value)269 inline void FieldMask::set_paths(int index, const std::string& value) {
270 // @@protoc_insertion_point(field_set:google.protobuf.FieldMask.paths)
271 paths_.Mutable(index)->assign(value);
272 }
set_paths(int index,std::string && value)273 inline void FieldMask::set_paths(int index, std::string&& value) {
274 // @@protoc_insertion_point(field_set:google.protobuf.FieldMask.paths)
275 paths_.Mutable(index)->assign(std::move(value));
276 }
set_paths(int index,const char * value)277 inline void FieldMask::set_paths(int index, const char* value) {
278 GOOGLE_DCHECK(value != nullptr);
279 paths_.Mutable(index)->assign(value);
280 // @@protoc_insertion_point(field_set_char:google.protobuf.FieldMask.paths)
281 }
set_paths(int index,const char * value,size_t size)282 inline void FieldMask::set_paths(int index, const char* value, size_t size) {
283 paths_.Mutable(index)->assign(
284 reinterpret_cast<const char*>(value), size);
285 // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldMask.paths)
286 }
_internal_add_paths()287 inline std::string* FieldMask::_internal_add_paths() {
288 return paths_.Add();
289 }
add_paths(const std::string & value)290 inline void FieldMask::add_paths(const std::string& value) {
291 paths_.Add()->assign(value);
292 // @@protoc_insertion_point(field_add:google.protobuf.FieldMask.paths)
293 }
add_paths(std::string && value)294 inline void FieldMask::add_paths(std::string&& value) {
295 paths_.Add(std::move(value));
296 // @@protoc_insertion_point(field_add:google.protobuf.FieldMask.paths)
297 }
add_paths(const char * value)298 inline void FieldMask::add_paths(const char* value) {
299 GOOGLE_DCHECK(value != nullptr);
300 paths_.Add()->assign(value);
301 // @@protoc_insertion_point(field_add_char:google.protobuf.FieldMask.paths)
302 }
add_paths(const char * value,size_t size)303 inline void FieldMask::add_paths(const char* value, size_t size) {
304 paths_.Add()->assign(reinterpret_cast<const char*>(value), size);
305 // @@protoc_insertion_point(field_add_pointer:google.protobuf.FieldMask.paths)
306 }
307 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
paths()308 FieldMask::paths() const {
309 // @@protoc_insertion_point(field_list:google.protobuf.FieldMask.paths)
310 return paths_;
311 }
312 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
mutable_paths()313 FieldMask::mutable_paths() {
314 // @@protoc_insertion_point(field_mutable_list:google.protobuf.FieldMask.paths)
315 return &paths_;
316 }
317
318 #ifdef __GNUC__
319 #pragma GCC diagnostic pop
320 #endif // __GNUC__
321
322 // @@protoc_insertion_point(namespace_scope)
323
324 PROTOBUF_NAMESPACE_CLOSE
325
326 // @@protoc_insertion_point(global_scope)
327
328 #include <google/protobuf/port_undef.inc>
329 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2ffield_5fmask_2eproto
330