Coverage Report

Created: 2025-04-27 06:20

/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.29.3
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 != 5029003
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:
73
0
  inline Any() : Any(nullptr) {}
74
  ~Any() PROTOBUF_FINAL;
75
76
#if defined(PROTOBUF_CUSTOM_VTABLE)
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
87
0
  inline Any(const Any& from) : Any(nullptr, from) {}
88
  inline Any(Any&& from) noexcept
89
0
      : Any(nullptr, std::move(from)) {}
90
0
  inline Any& operator=(const Any& from) {
91
0
    CopyFrom(from);
92
0
    return *this;
93
0
  }
94
0
  inline Any& operator=(Any&& from) noexcept {
95
0
    if (this == &from) return *this;
96
0
    if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
97
0
      InternalSwap(&from);
98
0
    } else {
99
0
      CopyFrom(from);
100
0
    }
101
0
    return *this;
102
0
  }
103
104
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
105
0
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
106
0
    return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
107
0
  }
108
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
109
0
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
110
0
    return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
111
0
  }
112
113
0
  static const ::google::protobuf::Descriptor* descriptor() {
114
0
    return GetDescriptor();
115
0
  }
116
0
  static const ::google::protobuf::Descriptor* GetDescriptor() {
117
0
    return default_instance().GetMetadata().descriptor;
118
0
  }
119
0
  static const ::google::protobuf::Reflection* GetReflection() {
120
0
    return default_instance().GetMetadata().reflection;
121
0
  }
122
0
  static const Any& default_instance() {
123
0
    return *internal_default_instance();
124
0
  }
125
0
  static inline const Any* internal_default_instance() {
126
0
    return reinterpret_cast<const Any*>(
127
0
        &_Any_default_instance_);
128
0
  }
129
  static constexpr int kIndexInFileMessages = 0;
130
  // implements Any
131
  // -----------------------------------------------
132
133
0
  bool PackFrom(const ::google::protobuf::Message& message) {
134
0
    ABSL_DCHECK_NE(&message, this);
135
0
    return ::google::protobuf::internal::InternalPackFrom(
136
0
        message, mutable_type_url(), _internal_mutable_value());
137
0
  }
138
  bool PackFrom(const ::google::protobuf::Message& message,
139
0
                ::absl::string_view type_url_prefix) {
140
0
    ABSL_DCHECK_NE(&message, this);
141
0
    return ::google::protobuf::internal::InternalPackFrom(
142
0
        message, type_url_prefix, mutable_type_url(),
143
0
        _internal_mutable_value());
144
0
  }
145
0
  bool UnpackTo(::google::protobuf::Message* message) const {
146
0
    return ::google::protobuf::internal::InternalUnpackTo(
147
0
        _internal_type_url(), _internal_value(), message);
148
0
  }
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>
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>
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>
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>
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);
186
0
  friend void swap(Any& a, Any& b) { a.Swap(&b); }
187
0
  inline void Swap(Any* other) {
188
0
    if (other == this) return;
189
0
    if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
190
0
      InternalSwap(other);
191
0
    } else {
192
0
      ::google::protobuf::internal::GenericSwap(this, other);
193
0
    }
194
0
  }
195
0
  void UnsafeArenaSwap(Any* other) {
196
0
    if (other == this) return;
197
0
    ABSL_DCHECK(GetArena() == other->GetArena());
198
0
    InternalSwap(other);
199
0
  }
200
201
  // implements Message ----------------------------------------------
202
203
0
  Any* New(::google::protobuf::Arena* arena = nullptr) const {
204
0
    return ::google::protobuf::Message::DefaultConstruct<Any>(arena);
205
0
  }
206
  using ::google::protobuf::Message::CopyFrom;
207
  void CopyFrom(const Any& from);
208
  using ::google::protobuf::Message::MergeFrom;
209
0
  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:
217
0
  bool IsInitialized() const {
218
0
    return true;
219
0
  }
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:
229
  ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
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
241
0
  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)();
251
0
  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);
256
  Any(::google::protobuf::Arena* arena, Any&& from) noexcept
257
0
      : Any(arena) {
258
0
    *this = ::std::move(from);
259
0
  }
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;
356
0
inline void Any::clear_type_url() {
357
0
  ::google::protobuf::internal::TSanWrite(&_impl_);
358
0
  _impl_.type_url_.ClearToEmpty();
359
0
}
360
inline const std::string& Any::type_url() const
361
0
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
362
0
  // @@protoc_insertion_point(field_get:google.protobuf.Any.type_url)
363
0
  return _internal_type_url();
364
0
}
365
template <typename Arg_, typename... 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
}
372
0
inline std::string* Any::mutable_type_url() ABSL_ATTRIBUTE_LIFETIME_BOUND {
373
0
  std::string* _s = _internal_mutable_type_url();
374
0
  // @@protoc_insertion_point(field_mutable:google.protobuf.Any.type_url)
375
0
  return _s;
376
0
}
377
0
inline const std::string& Any::_internal_type_url() const {
378
0
  ::google::protobuf::internal::TSanRead(&_impl_);
379
0
  return _impl_.type_url_.Get();
380
0
}
381
0
inline void Any::_internal_set_type_url(const std::string& value) {
382
0
  ::google::protobuf::internal::TSanWrite(&_impl_);
383
0
  _impl_.type_url_.Set(value, GetArena());
384
0
}
385
0
inline std::string* Any::_internal_mutable_type_url() {
386
0
  ::google::protobuf::internal::TSanWrite(&_impl_);
387
0
  return _impl_.type_url_.Mutable( GetArena());
388
0
}
389
0
inline std::string* Any::release_type_url() {
390
0
  ::google::protobuf::internal::TSanWrite(&_impl_);
391
0
  // @@protoc_insertion_point(field_release:google.protobuf.Any.type_url)
392
0
  return _impl_.type_url_.Release();
393
0
}
394
0
inline void Any::set_allocated_type_url(std::string* value) {
395
0
  ::google::protobuf::internal::TSanWrite(&_impl_);
396
0
  _impl_.type_url_.SetAllocated(value, GetArena());
397
0
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.type_url_.IsDefault()) {
398
0
    _impl_.type_url_.Set("", GetArena());
399
0
  }
400
0
  // @@protoc_insertion_point(field_set_allocated:google.protobuf.Any.type_url)
401
0
}
402
403
// bytes value = 2;
404
0
inline void Any::clear_value() {
405
0
  ::google::protobuf::internal::TSanWrite(&_impl_);
406
0
  _impl_.value_.ClearToEmpty();
407
0
}
408
inline const std::string& Any::value() const
409
0
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
410
0
  // @@protoc_insertion_point(field_get:google.protobuf.Any.value)
411
0
  return _internal_value();
412
0
}
413
template <typename Arg_, typename... 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
}
420
0
inline std::string* Any::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND {
421
0
  std::string* _s = _internal_mutable_value();
422
0
  // @@protoc_insertion_point(field_mutable:google.protobuf.Any.value)
423
0
  return _s;
424
0
}
425
0
inline const std::string& Any::_internal_value() const {
426
0
  ::google::protobuf::internal::TSanRead(&_impl_);
427
0
  return _impl_.value_.Get();
428
0
}
429
0
inline void Any::_internal_set_value(const std::string& value) {
430
0
  ::google::protobuf::internal::TSanWrite(&_impl_);
431
0
  _impl_.value_.Set(value, GetArena());
432
0
}
433
0
inline std::string* Any::_internal_mutable_value() {
434
0
  ::google::protobuf::internal::TSanWrite(&_impl_);
435
0
  return _impl_.value_.Mutable( GetArena());
436
0
}
437
0
inline std::string* Any::release_value() {
438
0
  ::google::protobuf::internal::TSanWrite(&_impl_);
439
0
  // @@protoc_insertion_point(field_release:google.protobuf.Any.value)
440
0
  return _impl_.value_.Release();
441
0
}
442
0
inline void Any::set_allocated_value(std::string* value) {
443
0
  ::google::protobuf::internal::TSanWrite(&_impl_);
444
0
  _impl_.value_.SetAllocated(value, GetArena());
445
0
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.value_.IsDefault()) {
446
0
    _impl_.value_.Set("", GetArena());
447
0
  }
448
0
  // @@protoc_insertion_point(field_set_allocated:google.protobuf.Any.value)
449
0
}
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