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