Ignition Msgs

API Reference

5.8.1
selection.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/selection.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fselection_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fselection_2eproto
6 
7 #include <limits>
8 #include <string>
9 
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3014000
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 3014000 < 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_2fselection_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 ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
66 };
67 extern IGNITION_MSGS_VISIBLE const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fselection_2eproto;
68 namespace ignition {
69 namespace msgs {
70 class Selection;
71 class SelectionDefaultTypeInternal;
72 IGNITION_MSGS_VISIBLE extern SelectionDefaultTypeInternal _Selection_default_instance_;
73 } // namespace msgs
74 } // namespace ignition
75 PROTOBUF_NAMESPACE_OPEN
76 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Selection* Arena::CreateMaybeMessage<::ignition::msgs::Selection>(Arena*);
77 PROTOBUF_NAMESPACE_CLOSE
78 namespace ignition {
79 namespace msgs {
80 
81 // ===================================================================
82 
83 class IGNITION_MSGS_VISIBLE Selection PROTOBUF_FINAL :
84  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Selection) */ {
85  public:
86  inline Selection() : Selection(nullptr) {}
87  virtual ~Selection();
88 
89  Selection(const Selection& from);
90  Selection(Selection&& from) noexcept
91  : Selection() {
92  *this = ::std::move(from);
93  }
94 
95  inline Selection& operator=(const Selection& from) {
96  CopyFrom(from);
97  return *this;
98  }
99  inline Selection& operator=(Selection&& from) noexcept {
100  if (GetArena() == from.GetArena()) {
101  if (this != &from) InternalSwap(&from);
102  } else {
103  CopyFrom(from);
104  }
105  return *this;
106  }
107 
108  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
109  return GetDescriptor();
110  }
111  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
112  return GetMetadataStatic().descriptor;
113  }
114  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
115  return GetMetadataStatic().reflection;
116  }
117  static const Selection& default_instance();
118 
119  static inline const Selection* internal_default_instance() {
120  return reinterpret_cast<const Selection*>(
122  }
123  static constexpr int kIndexInFileMessages =
124  0;
125 
126  friend void swap(Selection& a, Selection& b) {
127  a.Swap(&b);
128  }
129  inline void Swap(Selection* other) {
130  if (other == this) return;
131  if (GetArena() == other->GetArena()) {
132  InternalSwap(other);
133  } else {
134  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
135  }
136  }
137  void UnsafeArenaSwap(Selection* other) {
138  if (other == this) return;
139  GOOGLE_DCHECK(GetArena() == other->GetArena());
140  InternalSwap(other);
141  }
142 
143  // implements Message ----------------------------------------------
144 
145  inline Selection* New() const final {
146  return CreateMaybeMessage<Selection>(nullptr);
147  }
148 
149  Selection* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
150  return CreateMaybeMessage<Selection>(arena);
151  }
152  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
153  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
154  void CopyFrom(const Selection& from);
155  void MergeFrom(const Selection& from);
156  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
157  bool IsInitialized() const final;
158 
159  size_t ByteSizeLong() const final;
160  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
161  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
162  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
163  int GetCachedSize() const final { return _cached_size_.Get(); }
164 
165  private:
166  inline void SharedCtor();
167  inline void SharedDtor();
168  void SetCachedSize(int size) const final;
169  void InternalSwap(Selection* other);
170  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
171  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
172  return "ignition.msgs.Selection";
173  }
174  protected:
175  explicit Selection(::PROTOBUF_NAMESPACE_ID::Arena* arena);
176  private:
177  static void ArenaDtor(void* object);
178  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
179  public:
180 
181  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
182  private:
183  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
184  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_ignition_2fmsgs_2fselection_2eproto);
185  return ::descriptor_table_ignition_2fmsgs_2fselection_2eproto.file_level_metadata[kIndexInFileMessages];
186  }
187 
188  public:
189 
190  // nested types ----------------------------------------------------
191 
192  // accessors -------------------------------------------------------
193 
194  enum : int {
195  kNameFieldNumber = 3,
196  kHeaderFieldNumber = 1,
197  kIdFieldNumber = 2,
198  kSelectedFieldNumber = 4,
199  };
200  // string name = 3;
201  void clear_name();
202  const std::string& name() const;
203  void set_name(const std::string& value);
204  void set_name(std::string&& value);
205  void set_name(const char* value);
206  void set_name(const char* value, size_t size);
210  private:
211  const std::string& _internal_name() const;
212  void _internal_set_name(const std::string& value);
213  std::string* _internal_mutable_name();
214  public:
215 
216  // .ignition.msgs.Header header = 1;
217  bool has_header() const;
218  private:
219  bool _internal_has_header() const;
220  public:
221  void clear_header();
222  const ::ignition::msgs::Header& header() const;
223  ::ignition::msgs::Header* release_header();
224  ::ignition::msgs::Header* mutable_header();
225  void set_allocated_header(::ignition::msgs::Header* header);
226  private:
227  const ::ignition::msgs::Header& _internal_header() const;
228  ::ignition::msgs::Header* _internal_mutable_header();
229  public:
231  ::ignition::msgs::Header* header);
232  ::ignition::msgs::Header* unsafe_arena_release_header();
233 
234  // uint32 id = 2;
235  void clear_id();
236  ::PROTOBUF_NAMESPACE_ID::uint32 id() const;
237  void set_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
238  private:
239  ::PROTOBUF_NAMESPACE_ID::uint32 _internal_id() const;
240  void _internal_set_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
241  public:
242 
243  // bool selected = 4;
245  bool selected() const;
246  void set_selected(bool value);
247  private:
248  bool _internal_selected() const;
249  void _internal_set_selected(bool value);
250  public:
251 
252  // @@protoc_insertion_point(class_scope:ignition.msgs.Selection)
253  private:
254  class _Internal;
255 
256  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
257  typedef void InternalArenaConstructable_;
258  typedef void DestructorSkippable_;
259  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
260  ::ignition::msgs::Header* header_;
261  ::PROTOBUF_NAMESPACE_ID::uint32 id_;
262  bool selected_;
263  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
264  friend struct ::TableStruct_ignition_2fmsgs_2fselection_2eproto;
265 };
266 // ===================================================================
267 
268 
269 // ===================================================================
270 
271 #ifdef __GNUC__
272  #pragma GCC diagnostic push
273  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
274 #endif // __GNUC__
275 // Selection
276 
277 // .ignition.msgs.Header header = 1;
278 inline bool Selection::_internal_has_header() const {
279  return this != internal_default_instance() && header_ != nullptr;
280 }
281 inline bool Selection::has_header() const {
282  return _internal_has_header();
283 }
284 inline const ::ignition::msgs::Header& Selection::_internal_header() const {
285  const ::ignition::msgs::Header* p = header_;
286  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Header&>(
288 }
289 inline const ::ignition::msgs::Header& Selection::header() const {
290  // @@protoc_insertion_point(field_get:ignition.msgs.Selection.header)
291  return _internal_header();
292 }
293 inline void Selection::unsafe_arena_set_allocated_header(
294  ::ignition::msgs::Header* header) {
295  if (GetArena() == nullptr) {
296  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
297  }
298  header_ = header;
299  if (header) {
300 
301  } else {
302 
303  }
304  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Selection.header)
305 }
306 inline ::ignition::msgs::Header* Selection::release_header() {
307 
308  ::ignition::msgs::Header* temp = header_;
309  header_ = nullptr;
310  if (GetArena() != nullptr) {
311  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
312  }
313  return temp;
314 }
315 inline ::ignition::msgs::Header* Selection::unsafe_arena_release_header() {
316  // @@protoc_insertion_point(field_release:ignition.msgs.Selection.header)
317 
318  ::ignition::msgs::Header* temp = header_;
319  header_ = nullptr;
320  return temp;
321 }
322 inline ::ignition::msgs::Header* Selection::_internal_mutable_header() {
323 
324  if (header_ == nullptr) {
325  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
326  header_ = p;
327  }
328  return header_;
329 }
330 inline ::ignition::msgs::Header* Selection::mutable_header() {
331  // @@protoc_insertion_point(field_mutable:ignition.msgs.Selection.header)
332  return _internal_mutable_header();
333 }
334 inline void Selection::set_allocated_header(::ignition::msgs::Header* header) {
335  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
336  if (message_arena == nullptr) {
337  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
338  }
339  if (header) {
340  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
341  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header)->GetArena();
342  if (message_arena != submessage_arena) {
343  header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
344  message_arena, header, submessage_arena);
345  }
346 
347  } else {
348 
349  }
350  header_ = header;
351  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Selection.header)
352 }
353 
354 // uint32 id = 2;
355 inline void Selection::clear_id() {
356  id_ = 0u;
357 }
358 inline ::PROTOBUF_NAMESPACE_ID::uint32 Selection::_internal_id() const {
359  return id_;
360 }
361 inline ::PROTOBUF_NAMESPACE_ID::uint32 Selection::id() const {
362  // @@protoc_insertion_point(field_get:ignition.msgs.Selection.id)
363  return _internal_id();
364 }
365 inline void Selection::_internal_set_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
366 
367  id_ = value;
368 }
369 inline void Selection::set_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
370  _internal_set_id(value);
371  // @@protoc_insertion_point(field_set:ignition.msgs.Selection.id)
372 }
373 
374 // string name = 3;
375 inline void Selection::clear_name() {
376  name_.ClearToEmpty();
377 }
378 inline const std::string& Selection::name() const {
379  // @@protoc_insertion_point(field_get:ignition.msgs.Selection.name)
380  return _internal_name();
381 }
382 inline void Selection::set_name(const std::string& value) {
383  _internal_set_name(value);
384  // @@protoc_insertion_point(field_set:ignition.msgs.Selection.name)
385 }
386 inline std::string* Selection::mutable_name() {
387  // @@protoc_insertion_point(field_mutable:ignition.msgs.Selection.name)
388  return _internal_mutable_name();
389 }
390 inline const std::string& Selection::_internal_name() const {
391  return name_.Get();
392 }
393 inline void Selection::_internal_set_name(const std::string& value) {
394 
395  name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
396 }
397 inline void Selection::set_name(std::string&& value) {
398 
399  name_.Set(
400  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
401  // @@protoc_insertion_point(field_set_rvalue:ignition.msgs.Selection.name)
402 }
403 inline void Selection::set_name(const char* value) {
404  GOOGLE_DCHECK(value != nullptr);
405 
406  name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
407  // @@protoc_insertion_point(field_set_char:ignition.msgs.Selection.name)
408 }
409 inline void Selection::set_name(const char* value,
410  size_t size) {
411 
412  name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
413  reinterpret_cast<const char*>(value), size), GetArena());
414  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Selection.name)
415 }
416 inline std::string* Selection::_internal_mutable_name() {
417 
418  return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
419 }
420 inline std::string* Selection::release_name() {
421  // @@protoc_insertion_point(field_release:ignition.msgs.Selection.name)
422  return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
423 }
424 inline void Selection::set_allocated_name(std::string* name) {
425  if (name != nullptr) {
426 
427  } else {
428 
429  }
430  name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
431  GetArena());
432  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Selection.name)
433 }
434 
435 // bool selected = 4;
436 inline void Selection::clear_selected() {
437  selected_ = false;
438 }
439 inline bool Selection::_internal_selected() const {
440  return selected_;
441 }
442 inline bool Selection::selected() const {
443  // @@protoc_insertion_point(field_get:ignition.msgs.Selection.selected)
444  return _internal_selected();
445 }
446 inline void Selection::_internal_set_selected(bool value) {
447 
448  selected_ = value;
449 }
450 inline void Selection::set_selected(bool value) {
451  _internal_set_selected(value);
452  // @@protoc_insertion_point(field_set:ignition.msgs.Selection.selected)
453 }
454 
455 #ifdef __GNUC__
456  #pragma GCC diagnostic pop
457 #endif // __GNUC__
458 
463 // @@protoc_insertion_point(namespace_scope)
464 
465 } // namespace msgs
466 } // namespace ignition
467 
468 #ifdef _MSC_VER
469 #pragma warning(pop)
470 #endif
471 // @@protoc_insertion_point(global_scope)
472 
473 #include <google/protobuf/port_undef.inc>
474 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fselection_2eproto
void MergeFrom(const Selection &from)
Selection * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: selection.pb.h:149
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: selection.pb.h:114
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::ignition::msgs::Header * release_header()
void set_name(const char *value, size_t size)
::ignition::msgs::Header * mutable_header()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: selection.pb.h:108
void set_name(const std::string &value)
void set_id(::PROTOBUF_NAMESPACE_ID::uint32 value)
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void CopyFrom(const Selection &from)
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
void UnsafeArenaSwap(Selection *other)
Definition: selection.pb.h:137
friend void swap(Selection &a, Selection &b)
Definition: selection.pb.h:126
::ignition::msgs::Header * unsafe_arena_release_header()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
Selection & operator=(Selection &&from) noexcept
Definition: selection.pb.h:99
Selection(::PROTOBUF_NAMESPACE_ID::Arena *arena)
Selection(const Selection &from)
void set_allocated_header(::ignition::msgs::Header *header)
static const Selection * internal_default_instance()
Definition: selection.pb.h:119
Selection * New() const final
Definition: selection.pb.h:145
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
::PROTOBUF_NAMESPACE_ID::uint32 id() const
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: selection.pb.h:111
static const Selection & default_instance()
Selection(Selection &&from) noexcept
Definition: selection.pb.h:90
const std::string & name() const
Selection & operator=(const Selection &from)
Definition: selection.pb.h:95
void set_name(const char *value)
void set_name(std::string &&value)
Selection()
Definition: selection.pb.h:86
void set_allocated_name(std::string *name)
const ::ignition::msgs::Header & header() const
void Swap(Selection *other)
Definition: selection.pb.h:129
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::unique_ptr< const Selection > ConstSelectionUniquePtr
Definition: selection.pb.h:460
std::unique_ptr< Selection > SelectionUniquePtr
Definition: selection.pb.h:459
IGNITION_MSGS_VISIBLE SelectionDefaultTypeInternal _Selection_default_instance_
std::shared_ptr< Selection > SelectionSharedPtr
Definition: selection.pb.h:461
std::shared_ptr< const Selection > ConstSelectionSharedPtr
Definition: selection.pb.h:462
Definition: actor.pb.h:52
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fselection_2eproto
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)