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