Ignition Msgs

API Reference

5.8.1
versioned_name.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/versioned_name.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fversioned_5fname_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fversioned_5fname_2eproto
6 
7 #include <limits>
8 #include <string>
9 
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3019000
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 3019000 < 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>
35 #ifndef _MSC_VER
36 #pragma GCC system_header
37 #else
38 #pragma warning(push)
39 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
40 #endif
41 #ifdef __linux__
42 #include <sys/sysmacros.h>
43 #endif
44 #include <memory>
45 #include <ignition/msgs/Export.hh>
46 // @@protoc_insertion_point(includes)
47 #include <google/protobuf/port_def.inc>
48 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fversioned_5fname_2eproto IGNITION_MSGS_VISIBLE
49 PROTOBUF_NAMESPACE_OPEN
50 namespace internal {
51 class AnyMetadata;
52 } // namespace internal
53 PROTOBUF_NAMESPACE_CLOSE
54 
55 // Internal implementation detail -- do not use these members.
57  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
58  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
59  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
60  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
61  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
62  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
63  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
64  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
65  static const uint32_t offsets[];
66 };
67 IGNITION_MSGS_VISIBLE extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fversioned_5fname_2eproto;
68 namespace ignition {
69 namespace msgs {
70 class VersionedName;
71 struct VersionedNameDefaultTypeInternal;
72 IGNITION_MSGS_VISIBLE extern VersionedNameDefaultTypeInternal _VersionedName_default_instance_;
73 } // namespace msgs
74 } // namespace ignition
75 PROTOBUF_NAMESPACE_OPEN
76 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::VersionedName* Arena::CreateMaybeMessage<::ignition::msgs::VersionedName>(Arena*);
77 PROTOBUF_NAMESPACE_CLOSE
78 namespace ignition {
79 namespace msgs {
80 
81 // ===================================================================
82 
83 class IGNITION_MSGS_VISIBLE VersionedName final :
84  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.VersionedName) */ {
85  public:
86  inline VersionedName() : VersionedName(nullptr) {}
87  ~VersionedName() override;
88  explicit constexpr VersionedName(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
89 
91  VersionedName(VersionedName&& from) noexcept
92  : VersionedName() {
93  *this = ::std::move(from);
94  }
95 
96  inline VersionedName& operator=(const VersionedName& from) {
97  CopyFrom(from);
98  return *this;
99  }
100  inline VersionedName& operator=(VersionedName&& from) noexcept {
101  if (this == &from) return *this;
102  if (GetOwningArena() == from.GetOwningArena()
103  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
104  && GetOwningArena() != nullptr
105  #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
106  ) {
107  InternalSwap(&from);
108  } else {
109  CopyFrom(from);
110  }
111  return *this;
112  }
113 
114  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
115  return GetDescriptor();
116  }
117  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
118  return default_instance().GetMetadata().descriptor;
119  }
120  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
121  return default_instance().GetMetadata().reflection;
122  }
123  static const VersionedName& default_instance() {
124  return *internal_default_instance();
125  }
126  static inline const VersionedName* internal_default_instance() {
127  return reinterpret_cast<const VersionedName*>(
129  }
130  static constexpr int kIndexInFileMessages =
131  0;
132 
133  friend void swap(VersionedName& a, VersionedName& b) {
134  a.Swap(&b);
135  }
136  inline void Swap(VersionedName* other) {
137  if (other == this) return;
138  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
139  if (GetOwningArena() != nullptr &&
140  GetOwningArena() == other->GetOwningArena()) {
141  #else // PROTOBUF_FORCE_COPY_IN_SWAP
142  if (GetOwningArena() == other->GetOwningArena()) {
143  #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
144  InternalSwap(other);
145  } else {
146  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
147  }
148  }
150  if (other == this) return;
151  GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
152  InternalSwap(other);
153  }
154 
155  // implements Message ----------------------------------------------
156 
157  VersionedName* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
158  return CreateMaybeMessage<VersionedName>(arena);
159  }
160  using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
161  void CopyFrom(const VersionedName& from);
162  using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
163  void MergeFrom(const VersionedName& from);
164  private:
165  static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
166  public:
167  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
168  bool IsInitialized() const final;
169 
170  size_t ByteSizeLong() const final;
171  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
172  uint8_t* _InternalSerialize(
173  uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
174  int GetCachedSize() const final { return _cached_size_.Get(); }
175 
176  private:
177  void SharedCtor();
178  void SharedDtor();
179  void SetCachedSize(int size) const final;
180  void InternalSwap(VersionedName* other);
181 
182  private:
183  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
184  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
185  return "ignition.msgs.VersionedName";
186  }
187  protected:
188  explicit VersionedName(::PROTOBUF_NAMESPACE_ID::Arena* arena,
189  bool is_message_owned = false);
190  private:
191  static void ArenaDtor(void* object);
192  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
193  public:
194 
195  static const ClassData _class_data_;
196  const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
197 
198  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
199 
200  // nested types ----------------------------------------------------
201 
202  // accessors -------------------------------------------------------
203 
204  enum : int {
205  kNameFieldNumber = 2,
206  kVersionFieldNumber = 1,
207  };
208  // string name = 2;
209  void clear_name();
210  const std::string& name() const;
211  template <typename ArgT0 = const std::string&, typename... ArgT>
212  void set_name(ArgT0&& arg0, ArgT... args);
213  std::string* mutable_name();
214  PROTOBUF_NODISCARD std::string* release_name();
215  void set_allocated_name(std::string* name);
216  private:
217  const std::string& _internal_name() const;
218  inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
219  std::string* _internal_mutable_name();
220  public:
221 
222  // .ignition.msgs.Version version = 1;
223  bool has_version() const;
224  private:
225  bool _internal_has_version() const;
226  public:
228  const ::ignition::msgs::Version& version() const;
229  PROTOBUF_NODISCARD ::ignition::msgs::Version* release_version();
230  ::ignition::msgs::Version* mutable_version();
231  void set_allocated_version(::ignition::msgs::Version* version);
232  private:
233  const ::ignition::msgs::Version& _internal_version() const;
234  ::ignition::msgs::Version* _internal_mutable_version();
235  public:
236  void unsafe_arena_set_allocated_version(
237  ::ignition::msgs::Version* version);
238  ::ignition::msgs::Version* unsafe_arena_release_version();
239 
240  // @@protoc_insertion_point(class_scope:ignition.msgs.VersionedName)
241  private:
242  class _Internal;
243 
244  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
245  typedef void InternalArenaConstructable_;
246  typedef void DestructorSkippable_;
247  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
248  ::ignition::msgs::Version* version_;
249  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
250  friend struct ::TableStruct_ignition_2fmsgs_2fversioned_5fname_2eproto;
251 };
252 // ===================================================================
253 
254 
255 // ===================================================================
256 
257 #ifdef __GNUC__
258  #pragma GCC diagnostic push
259  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
260 #endif // __GNUC__
261 // VersionedName
262 
263 // .ignition.msgs.Version version = 1;
264 inline bool VersionedName::_internal_has_version() const {
265  return this != internal_default_instance() && version_ != nullptr;
266 }
267 inline bool VersionedName::has_version() const {
268  return _internal_has_version();
269 }
270 inline const ::ignition::msgs::Version& VersionedName::_internal_version() const {
271  const ::ignition::msgs::Version* p = version_;
272  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Version&>(
274 }
275 inline const ::ignition::msgs::Version& VersionedName::version() const {
276  // @@protoc_insertion_point(field_get:ignition.msgs.VersionedName.version)
277  return _internal_version();
278 }
280  ::ignition::msgs::Version* version) {
281  if (GetArenaForAllocation() == nullptr) {
282  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(version_);
283  }
284  version_ = version;
285  if (version) {
286 
287  } else {
288 
289  }
290  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.VersionedName.version)
291 }
292 inline ::ignition::msgs::Version* VersionedName::release_version() {
293 
294  ::ignition::msgs::Version* temp = version_;
295  version_ = nullptr;
296 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
297  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
298  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
299  if (GetArenaForAllocation() == nullptr) { delete old; }
300 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
301  if (GetArenaForAllocation() != nullptr) {
302  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
303  }
304 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
305  return temp;
306 }
307 inline ::ignition::msgs::Version* VersionedName::unsafe_arena_release_version() {
308  // @@protoc_insertion_point(field_release:ignition.msgs.VersionedName.version)
309 
310  ::ignition::msgs::Version* temp = version_;
311  version_ = nullptr;
312  return temp;
313 }
314 inline ::ignition::msgs::Version* VersionedName::_internal_mutable_version() {
315 
316  if (version_ == nullptr) {
317  auto* p = CreateMaybeMessage<::ignition::msgs::Version>(GetArenaForAllocation());
318  version_ = p;
319  }
320  return version_;
321 }
322 inline ::ignition::msgs::Version* VersionedName::mutable_version() {
323  ::ignition::msgs::Version* _msg = _internal_mutable_version();
324  // @@protoc_insertion_point(field_mutable:ignition.msgs.VersionedName.version)
325  return _msg;
326 }
328  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
329  if (message_arena == nullptr) {
330  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(version_);
331  }
332  if (version) {
333  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
334  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
335  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
336  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(version));
337  if (message_arena != submessage_arena) {
338  version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
339  message_arena, version, submessage_arena);
340  }
341 
342  } else {
343 
344  }
345  version_ = version;
346  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.VersionedName.version)
347 }
348 
349 // string name = 2;
351  name_.ClearToEmpty();
352 }
353 inline const std::string& VersionedName::name() const {
354  // @@protoc_insertion_point(field_get:ignition.msgs.VersionedName.name)
355  return _internal_name();
356 }
357 template <typename ArgT0, typename... ArgT>
358 inline PROTOBUF_ALWAYS_INLINE
359 void VersionedName::set_name(ArgT0&& arg0, ArgT... args) {
360 
361  name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
362  // @@protoc_insertion_point(field_set:ignition.msgs.VersionedName.name)
363 }
365  std::string* _s = _internal_mutable_name();
366  // @@protoc_insertion_point(field_mutable:ignition.msgs.VersionedName.name)
367  return _s;
368 }
369 inline const std::string& VersionedName::_internal_name() const {
370  return name_.Get();
371 }
372 inline void VersionedName::_internal_set_name(const std::string& value) {
373 
374  name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
375 }
376 inline std::string* VersionedName::_internal_mutable_name() {
377 
378  return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
379 }
381  // @@protoc_insertion_point(field_release:ignition.msgs.VersionedName.name)
382  return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
383 }
385  if (name != nullptr) {
386 
387  } else {
388 
389  }
390  name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
391  GetArenaForAllocation());
392 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
393  if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
394  name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
395  }
396 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
397  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.VersionedName.name)
398 }
399 
400 #ifdef __GNUC__
401  #pragma GCC diagnostic pop
402 #endif // __GNUC__
403 
408 // @@protoc_insertion_point(namespace_scope)
409 
410 } // namespace msgs
411 } // namespace ignition
412 
413 #ifdef _MSC_VER
414 #pragma warning(pop)
415 #endif
416 // @@protoc_insertion_point(global_scope)
417 
418 #include <google/protobuf/port_undef.inc>
419 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fversioned_5fname_2eproto
Definition: version.pb.h:83
Definition: versioned_name.pb.h:84
static const VersionedName & default_instance()
Definition: versioned_name.pb.h:123
VersionedName & operator=(VersionedName &&from) noexcept
Definition: versioned_name.pb.h:100
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: versioned_name.pb.h:120
VersionedName(VersionedName &&from) noexcept
Definition: versioned_name.pb.h:91
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
PROTOBUF_NODISCARD std::string * release_name()
Definition: versioned_name.pb.h:380
const std::string & name() const
Definition: versioned_name.pb.h:353
void UnsafeArenaSwap(VersionedName *other)
Definition: versioned_name.pb.h:149
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: versioned_name.pb.h:114
void clear_name()
Definition: versioned_name.pb.h:350
static const VersionedName * internal_default_instance()
Definition: versioned_name.pb.h:126
VersionedName(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
void CopyFrom(const VersionedName &from)
void set_name(ArgT0 &&arg0, ArgT... args)
bool has_version() const
Definition: versioned_name.pb.h:267
void set_allocated_version(::ignition::msgs::Version *version)
Definition: versioned_name.pb.h:327
friend void swap(VersionedName &a, VersionedName &b)
Definition: versioned_name.pb.h:133
::ignition::msgs::Version * unsafe_arena_release_version()
Definition: versioned_name.pb.h:307
void MergeFrom(const VersionedName &from)
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
::ignition::msgs::Version * mutable_version()
Definition: versioned_name.pb.h:322
void Swap(VersionedName *other)
Definition: versioned_name.pb.h:136
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: versioned_name.pb.h:117
VersionedName & operator=(const VersionedName &from)
Definition: versioned_name.pb.h:96
std::string * mutable_name()
Definition: versioned_name.pb.h:364
const ::ignition::msgs::Version & version() const
Definition: versioned_name.pb.h:275
VersionedName()
Definition: versioned_name.pb.h:86
void unsafe_arena_set_allocated_version(::ignition::msgs::Version *version)
Definition: versioned_name.pb.h:279
static const ClassData _class_data_
Definition: versioned_name.pb.h:195
PROTOBUF_NODISCARD ::ignition::msgs::Version * release_version()
Definition: versioned_name.pb.h:292
void set_allocated_name(std::string *name)
Definition: versioned_name.pb.h:384
constexpr VersionedName(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
VersionedName * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition: versioned_name.pb.h:157
VersionedName(const VersionedName &from)
std::unique_ptr< VersionedName > VersionedNameUniquePtr
Definition: versioned_name.pb.h:404
std::unique_ptr< const VersionedName > ConstVersionedNameUniquePtr
Definition: versioned_name.pb.h:405
IGNITION_MSGS_VISIBLE VersionDefaultTypeInternal _Version_default_instance_
std::shared_ptr< VersionedName > VersionedNameSharedPtr
Definition: versioned_name.pb.h:406
IGNITION_MSGS_VISIBLE VersionedNameDefaultTypeInternal _VersionedName_default_instance_
std::shared_ptr< const VersionedName > ConstVersionedNameSharedPtr
Definition: versioned_name.pb.h:407
Definition: actor.pb.h:52
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fversioned_5fname_2eproto