Coverage Report

Created: 2023-06-07 07:13

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