/src/LPM/external.protobuf/include/google/protobuf/any.pb.h
Line | Count | Source (jump to first uncovered line) |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // NO CHECKED-IN PROTOBUF GENCODE |
3 | | // source: google/protobuf/any.proto |
4 | | // Protobuf C++ Version: 5.27.1 |
5 | | |
6 | | #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fany_2eproto_2epb_2eh |
7 | | #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fany_2eproto_2epb_2eh |
8 | | |
9 | | #include <limits> |
10 | | #include <string> |
11 | | #include <type_traits> |
12 | | #include <utility> |
13 | | |
14 | | #include "google/protobuf/runtime_version.h" |
15 | | #if PROTOBUF_VERSION != 5027001 |
16 | | #error "Protobuf C++ gencode is built with an incompatible version of" |
17 | | #error "Protobuf C++ headers/runtime. See" |
18 | | #error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" |
19 | | #endif |
20 | | #include "google/protobuf/io/coded_stream.h" |
21 | | #include "google/protobuf/arena.h" |
22 | | #include "google/protobuf/arenastring.h" |
23 | | #include "google/protobuf/generated_message_tctable_decl.h" |
24 | | #include "google/protobuf/generated_message_util.h" |
25 | | #include "google/protobuf/metadata_lite.h" |
26 | | #include "google/protobuf/generated_message_reflection.h" |
27 | | #include "google/protobuf/message.h" |
28 | | #include "google/protobuf/repeated_field.h" // IWYU pragma: export |
29 | | #include "google/protobuf/extension_set.h" // IWYU pragma: export |
30 | | #include "google/protobuf/unknown_field_set.h" |
31 | | // @@protoc_insertion_point(includes) |
32 | | |
33 | | // Must be included last. |
34 | | #include "google/protobuf/port_def.inc" |
35 | | |
36 | | #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fany_2eproto PROTOBUF_EXPORT |
37 | | |
38 | | namespace google { |
39 | | namespace protobuf { |
40 | | namespace internal { |
41 | | class AnyMetadata; |
42 | | } // namespace internal |
43 | | } // namespace protobuf |
44 | | } // namespace google |
45 | | |
46 | | // Internal implementation detail -- do not use these members. |
47 | | struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2fany_2eproto { |
48 | | static const ::uint32_t offsets[]; |
49 | | }; |
50 | | PROTOBUF_EXPORT extern const ::google::protobuf::internal::DescriptorTable |
51 | | descriptor_table_google_2fprotobuf_2fany_2eproto; |
52 | | namespace google { |
53 | | namespace protobuf { |
54 | | class Any; |
55 | | struct AnyDefaultTypeInternal; |
56 | | PROTOBUF_EXPORT extern AnyDefaultTypeInternal _Any_default_instance_; |
57 | | } // namespace protobuf |
58 | | } // namespace google |
59 | | |
60 | | namespace google { |
61 | | namespace protobuf { |
62 | | |
63 | | // =================================================================== |
64 | | |
65 | | |
66 | | // ------------------------------------------------------------------- |
67 | | |
68 | | class PROTOBUF_EXPORT Any final : public ::google::protobuf::Message |
69 | | /* @@protoc_insertion_point(class_definition:google.protobuf.Any) */ { |
70 | | public: |
71 | 0 | inline Any() : Any(nullptr) {} |
72 | | ~Any() override; |
73 | | template <typename = void> |
74 | | explicit PROTOBUF_CONSTEXPR Any( |
75 | | ::google::protobuf::internal::ConstantInitialized); |
76 | | |
77 | 0 | inline Any(const Any& from) : Any(nullptr, from) {} |
78 | | inline Any(Any&& from) noexcept |
79 | 0 | : Any(nullptr, std::move(from)) {} |
80 | 0 | inline Any& operator=(const Any& from) { |
81 | 0 | CopyFrom(from); |
82 | 0 | return *this; |
83 | 0 | } |
84 | 0 | inline Any& operator=(Any&& from) noexcept { |
85 | 0 | if (this == &from) return *this; |
86 | 0 | if (GetArena() == from.GetArena() |
87 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
88 | 0 | && GetArena() != nullptr |
89 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
90 | 0 | ) { |
91 | 0 | InternalSwap(&from); |
92 | 0 | } else { |
93 | 0 | CopyFrom(from); |
94 | 0 | } |
95 | 0 | return *this; |
96 | 0 | } |
97 | | |
98 | | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const |
99 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
100 | 0 | return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); |
101 | 0 | } |
102 | | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() |
103 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
104 | 0 | return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); |
105 | 0 | } |
106 | | |
107 | 0 | static const ::google::protobuf::Descriptor* descriptor() { |
108 | 0 | return GetDescriptor(); |
109 | 0 | } |
110 | 0 | static const ::google::protobuf::Descriptor* GetDescriptor() { |
111 | 0 | return default_instance().GetMetadata().descriptor; |
112 | 0 | } |
113 | 0 | static const ::google::protobuf::Reflection* GetReflection() { |
114 | 0 | return default_instance().GetMetadata().reflection; |
115 | 0 | } |
116 | 0 | static const Any& default_instance() { |
117 | 0 | return *internal_default_instance(); |
118 | 0 | } |
119 | 0 | static inline const Any* internal_default_instance() { |
120 | 0 | return reinterpret_cast<const Any*>( |
121 | 0 | &_Any_default_instance_); |
122 | 0 | } |
123 | | static constexpr int kIndexInFileMessages = 0; |
124 | | // implements Any |
125 | | // ----------------------------------------------- |
126 | | |
127 | 0 | bool PackFrom(const ::google::protobuf::Message& message) { |
128 | 0 | ABSL_DCHECK_NE(&message, this); |
129 | 0 | return _impl_._any_metadata_.PackFrom(GetArena(), message); |
130 | 0 | } |
131 | | bool PackFrom(const ::google::protobuf::Message& message, |
132 | 0 | ::absl::string_view type_url_prefix) { |
133 | 0 | ABSL_DCHECK_NE(&message, this); |
134 | 0 | return _impl_._any_metadata_.PackFrom(GetArena(), message, type_url_prefix); |
135 | 0 | } |
136 | 0 | bool UnpackTo(::google::protobuf::Message* message) const { |
137 | 0 | return _impl_._any_metadata_.UnpackTo(message); |
138 | 0 | } |
139 | | static bool GetAnyFieldDescriptors( |
140 | | const ::google::protobuf::Message& message, |
141 | | const ::google::protobuf::FieldDescriptor** type_url_field, |
142 | | const ::google::protobuf::FieldDescriptor** value_field); |
143 | | template < |
144 | | typename T, |
145 | | class = typename std::enable_if<!std::is_convertible< |
146 | | T, const ::google::protobuf::Message&>::value>::type> |
147 | | bool PackFrom(const T& message) { |
148 | | return _impl_._any_metadata_.PackFrom<T>(GetArena(), message); |
149 | | } |
150 | | template < |
151 | | typename T, |
152 | | class = typename std::enable_if<!std::is_convertible< |
153 | | T, const ::google::protobuf::Message&>::value>::type> |
154 | | bool PackFrom(const T& message, |
155 | | ::absl::string_view type_url_prefix) { |
156 | | return _impl_._any_metadata_.PackFrom<T>(GetArena(), message, type_url_prefix); |
157 | | } |
158 | | template < |
159 | | typename T, |
160 | | class = typename std::enable_if<!std::is_convertible< |
161 | | T, const ::google::protobuf::Message&>::value>::type> |
162 | | bool UnpackTo(T* message) const { |
163 | | return _impl_._any_metadata_.UnpackTo<T>(message); |
164 | | } |
165 | | |
166 | | template <typename T> |
167 | | bool Is() const { |
168 | | return _impl_._any_metadata_.Is<T>(); |
169 | | } |
170 | | static bool ParseAnyTypeUrl(::absl::string_view type_url, |
171 | | std::string* full_type_name); |
172 | 0 | friend void swap(Any& a, Any& b) { a.Swap(&b); } |
173 | 0 | inline void Swap(Any* other) { |
174 | 0 | if (other == this) return; |
175 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
176 | 0 | if (GetArena() != nullptr && GetArena() == other->GetArena()) { |
177 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
178 | 0 | if (GetArena() == other->GetArena()) { |
179 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
180 | 0 | InternalSwap(other); |
181 | 0 | } else { |
182 | 0 | ::google::protobuf::internal::GenericSwap(this, other); |
183 | 0 | } |
184 | 0 | } |
185 | 0 | void UnsafeArenaSwap(Any* other) { |
186 | 0 | if (other == this) return; |
187 | 0 | ABSL_DCHECK(GetArena() == other->GetArena()); |
188 | 0 | InternalSwap(other); |
189 | 0 | } |
190 | | |
191 | | // implements Message ---------------------------------------------- |
192 | | |
193 | 0 | Any* New(::google::protobuf::Arena* arena = nullptr) const final { |
194 | 0 | return ::google::protobuf::Message::DefaultConstruct<Any>(arena); |
195 | 0 | } |
196 | | using ::google::protobuf::Message::CopyFrom; |
197 | | void CopyFrom(const Any& from); |
198 | | using ::google::protobuf::Message::MergeFrom; |
199 | 0 | void MergeFrom(const Any& from) { Any::MergeImpl(*this, from); } |
200 | | |
201 | | private: |
202 | | static void MergeImpl( |
203 | | ::google::protobuf::MessageLite& to_msg, |
204 | | const ::google::protobuf::MessageLite& from_msg); |
205 | | |
206 | | public: |
207 | 0 | bool IsInitialized() const { |
208 | 0 | return true; |
209 | 0 | } |
210 | | ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; |
211 | | ::size_t ByteSizeLong() const final; |
212 | | ::uint8_t* _InternalSerialize( |
213 | | ::uint8_t* target, |
214 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const final; |
215 | 0 | int GetCachedSize() const { return _impl_._cached_size_.Get(); } |
216 | | |
217 | | private: |
218 | | void SharedCtor(::google::protobuf::Arena* arena); |
219 | | void SharedDtor(); |
220 | | void InternalSwap(Any* other); |
221 | | private: |
222 | | friend class ::google::protobuf::internal::AnyMetadata; |
223 | 0 | static ::absl::string_view FullMessageName() { return "google.protobuf.Any"; } |
224 | | |
225 | | protected: |
226 | | explicit Any(::google::protobuf::Arena* arena); |
227 | | Any(::google::protobuf::Arena* arena, const Any& from); |
228 | | Any(::google::protobuf::Arena* arena, Any&& from) noexcept |
229 | 0 | : Any(arena) { |
230 | 0 | *this = ::std::move(from); |
231 | 0 | } |
232 | | const ::google::protobuf::Message::ClassData* GetClassData() const final; |
233 | | |
234 | | public: |
235 | | ::google::protobuf::Metadata GetMetadata() const; |
236 | | // nested types ---------------------------------------------------- |
237 | | |
238 | | // accessors ------------------------------------------------------- |
239 | | enum : int { |
240 | | kTypeUrlFieldNumber = 1, |
241 | | kValueFieldNumber = 2, |
242 | | }; |
243 | | // string type_url = 1; |
244 | | void clear_type_url() ; |
245 | | const std::string& type_url() const; |
246 | | template <typename Arg_ = const std::string&, typename... Args_> |
247 | | void set_type_url(Arg_&& arg, Args_... args); |
248 | | std::string* mutable_type_url(); |
249 | | PROTOBUF_NODISCARD std::string* release_type_url(); |
250 | | void set_allocated_type_url(std::string* value); |
251 | | |
252 | | private: |
253 | | const std::string& _internal_type_url() const; |
254 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_type_url( |
255 | | const std::string& value); |
256 | | std::string* _internal_mutable_type_url(); |
257 | | |
258 | | public: |
259 | | // bytes value = 2; |
260 | | void clear_value() ; |
261 | | const std::string& value() const; |
262 | | template <typename Arg_ = const std::string&, typename... Args_> |
263 | | void set_value(Arg_&& arg, Args_... args); |
264 | | std::string* mutable_value(); |
265 | | PROTOBUF_NODISCARD std::string* release_value(); |
266 | | void set_allocated_value(std::string* value); |
267 | | |
268 | | private: |
269 | | const std::string& _internal_value() const; |
270 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_value( |
271 | | const std::string& value); |
272 | | std::string* _internal_mutable_value(); |
273 | | |
274 | | public: |
275 | | // @@protoc_insertion_point(class_scope:google.protobuf.Any) |
276 | | private: |
277 | | class _Internal; |
278 | | friend class ::google::protobuf::internal::TcParser; |
279 | | static const ::google::protobuf::internal::TcParseTable< |
280 | | 1, 2, 0, |
281 | | 36, 2> |
282 | | _table_; |
283 | | |
284 | | static constexpr const void* _raw_default_instance_ = |
285 | | &_Any_default_instance_; |
286 | | |
287 | | friend class ::google::protobuf::MessageLite; |
288 | | friend class ::google::protobuf::Arena; |
289 | | template <typename T> |
290 | | friend class ::google::protobuf::Arena::InternalHelper; |
291 | | using InternalArenaConstructable_ = void; |
292 | | using DestructorSkippable_ = void; |
293 | | struct Impl_ { |
294 | | inline explicit constexpr Impl_( |
295 | | ::google::protobuf::internal::ConstantInitialized) noexcept; |
296 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
297 | | ::google::protobuf::Arena* arena); |
298 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
299 | | ::google::protobuf::Arena* arena, const Impl_& from, |
300 | | const Any& from_msg); |
301 | | ::google::protobuf::internal::ArenaStringPtr type_url_; |
302 | | ::google::protobuf::internal::ArenaStringPtr value_; |
303 | | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
304 | | ::google::protobuf::internal::AnyMetadata _any_metadata_; |
305 | | PROTOBUF_TSAN_DECLARE_MEMBER |
306 | | }; |
307 | | union { Impl_ _impl_; }; |
308 | | friend struct ::TableStruct_google_2fprotobuf_2fany_2eproto; |
309 | | }; |
310 | | |
311 | | // =================================================================== |
312 | | |
313 | | |
314 | | |
315 | | |
316 | | // =================================================================== |
317 | | |
318 | | |
319 | | #ifdef __GNUC__ |
320 | | #pragma GCC diagnostic push |
321 | | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
322 | | #endif // __GNUC__ |
323 | | // ------------------------------------------------------------------- |
324 | | |
325 | | // Any |
326 | | |
327 | | // string type_url = 1; |
328 | 0 | inline void Any::clear_type_url() { |
329 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
330 | 0 | _impl_.type_url_.ClearToEmpty(); |
331 | 0 | } |
332 | | inline const std::string& Any::type_url() const |
333 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
334 | 0 | // @@protoc_insertion_point(field_get:google.protobuf.Any.type_url) |
335 | 0 | return _internal_type_url(); |
336 | 0 | } |
337 | | template <typename Arg_, typename... Args_> |
338 | | inline PROTOBUF_ALWAYS_INLINE void Any::set_type_url(Arg_&& arg, |
339 | | Args_... args) { |
340 | | ::google::protobuf::internal::TSanWrite(&_impl_); |
341 | | _impl_.type_url_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); |
342 | | // @@protoc_insertion_point(field_set:google.protobuf.Any.type_url) |
343 | | } |
344 | 0 | inline std::string* Any::mutable_type_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { |
345 | 0 | std::string* _s = _internal_mutable_type_url(); |
346 | 0 | // @@protoc_insertion_point(field_mutable:google.protobuf.Any.type_url) |
347 | 0 | return _s; |
348 | 0 | } |
349 | 0 | inline const std::string& Any::_internal_type_url() const { |
350 | 0 | ::google::protobuf::internal::TSanRead(&_impl_); |
351 | 0 | return _impl_.type_url_.Get(); |
352 | 0 | } |
353 | 0 | inline void Any::_internal_set_type_url(const std::string& value) { |
354 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
355 | 0 | _impl_.type_url_.Set(value, GetArena()); |
356 | 0 | } |
357 | 0 | inline std::string* Any::_internal_mutable_type_url() { |
358 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
359 | 0 | return _impl_.type_url_.Mutable( GetArena()); |
360 | 0 | } |
361 | 0 | inline std::string* Any::release_type_url() { |
362 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
363 | 0 | // @@protoc_insertion_point(field_release:google.protobuf.Any.type_url) |
364 | 0 | return _impl_.type_url_.Release(); |
365 | 0 | } |
366 | 0 | inline void Any::set_allocated_type_url(std::string* value) { |
367 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
368 | 0 | _impl_.type_url_.SetAllocated(value, GetArena()); |
369 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
370 | 0 | if (_impl_.type_url_.IsDefault()) { |
371 | 0 | _impl_.type_url_.Set("", GetArena()); |
372 | 0 | } |
373 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
374 | 0 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.Any.type_url) |
375 | 0 | } |
376 | | |
377 | | // bytes value = 2; |
378 | 0 | inline void Any::clear_value() { |
379 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
380 | 0 | _impl_.value_.ClearToEmpty(); |
381 | 0 | } |
382 | | inline const std::string& Any::value() const |
383 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
384 | 0 | // @@protoc_insertion_point(field_get:google.protobuf.Any.value) |
385 | 0 | return _internal_value(); |
386 | 0 | } |
387 | | template <typename Arg_, typename... Args_> |
388 | | inline PROTOBUF_ALWAYS_INLINE void Any::set_value(Arg_&& arg, |
389 | | Args_... args) { |
390 | | ::google::protobuf::internal::TSanWrite(&_impl_); |
391 | | _impl_.value_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena()); |
392 | | // @@protoc_insertion_point(field_set:google.protobuf.Any.value) |
393 | | } |
394 | 0 | inline std::string* Any::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { |
395 | 0 | std::string* _s = _internal_mutable_value(); |
396 | 0 | // @@protoc_insertion_point(field_mutable:google.protobuf.Any.value) |
397 | 0 | return _s; |
398 | 0 | } |
399 | 0 | inline const std::string& Any::_internal_value() const { |
400 | 0 | ::google::protobuf::internal::TSanRead(&_impl_); |
401 | 0 | return _impl_.value_.Get(); |
402 | 0 | } |
403 | 0 | inline void Any::_internal_set_value(const std::string& value) { |
404 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
405 | 0 | _impl_.value_.Set(value, GetArena()); |
406 | 0 | } |
407 | 0 | inline std::string* Any::_internal_mutable_value() { |
408 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
409 | 0 | return _impl_.value_.Mutable( GetArena()); |
410 | 0 | } |
411 | 0 | inline std::string* Any::release_value() { |
412 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
413 | 0 | // @@protoc_insertion_point(field_release:google.protobuf.Any.value) |
414 | 0 | return _impl_.value_.Release(); |
415 | 0 | } |
416 | 0 | inline void Any::set_allocated_value(std::string* value) { |
417 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
418 | 0 | _impl_.value_.SetAllocated(value, GetArena()); |
419 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
420 | 0 | if (_impl_.value_.IsDefault()) { |
421 | 0 | _impl_.value_.Set("", GetArena()); |
422 | 0 | } |
423 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
424 | 0 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.Any.value) |
425 | 0 | } |
426 | | |
427 | | #ifdef __GNUC__ |
428 | | #pragma GCC diagnostic pop |
429 | | #endif // __GNUC__ |
430 | | |
431 | | // @@protoc_insertion_point(namespace_scope) |
432 | | } // namespace protobuf |
433 | | } // namespace google |
434 | | |
435 | | |
436 | | // @@protoc_insertion_point(global_scope) |
437 | | |
438 | | #include "google/protobuf/port_undef.inc" |
439 | | |
440 | | #endif // GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fany_2eproto_2epb_2eh |