Ignition Msgs

API Reference

5.8.1
version_range.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/version_range.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fversion_5frange_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fversion_5frange_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_2fversion_5frange_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_2fversion_5frange_2eproto;
68 namespace ignition {
69 namespace msgs {
70 class VersionRange;
71 class VersionRangeDefaultTypeInternal;
72 IGNITION_MSGS_VISIBLE extern VersionRangeDefaultTypeInternal _VersionRange_default_instance_;
73 } // namespace msgs
74 } // namespace ignition
75 PROTOBUF_NAMESPACE_OPEN
76 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::VersionRange* Arena::CreateMaybeMessage<::ignition::msgs::VersionRange>(Arena*);
77 PROTOBUF_NAMESPACE_CLOSE
78 namespace ignition {
79 namespace msgs {
80 
81 // ===================================================================
82 
83 class IGNITION_MSGS_VISIBLE VersionRange PROTOBUF_FINAL :
84  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.VersionRange) */ {
85  public:
86  inline VersionRange() : VersionRange(nullptr) {}
87  virtual ~VersionRange();
88 
89  VersionRange(const VersionRange& from);
90  VersionRange(VersionRange&& from) noexcept
91  : VersionRange() {
92  *this = ::std::move(from);
93  }
94 
95  inline VersionRange& operator=(const VersionRange& from) {
96  CopyFrom(from);
97  return *this;
98  }
99  inline VersionRange& operator=(VersionRange&& 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 VersionRange& default_instance();
118 
119  static inline const VersionRange* internal_default_instance() {
120  return reinterpret_cast<const VersionRange*>(
122  }
123  static constexpr int kIndexInFileMessages =
124  0;
125 
126  friend void swap(VersionRange& a, VersionRange& b) {
127  a.Swap(&b);
128  }
129  inline void Swap(VersionRange* 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(VersionRange* other) {
138  if (other == this) return;
139  GOOGLE_DCHECK(GetArena() == other->GetArena());
140  InternalSwap(other);
141  }
142 
143  // implements Message ----------------------------------------------
144 
145  inline VersionRange* New() const final {
146  return CreateMaybeMessage<VersionRange>(nullptr);
147  }
148 
149  VersionRange* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
150  return CreateMaybeMessage<VersionRange>(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 VersionRange& from);
155  void MergeFrom(const VersionRange& 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(VersionRange* other);
170  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
171  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
172  return "ignition.msgs.VersionRange";
173  }
174  protected:
175  explicit VersionRange(::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_2fversion_5frange_2eproto);
185  return ::descriptor_table_ignition_2fmsgs_2fversion_5frange_2eproto.file_level_metadata[kIndexInFileMessages];
186  }
187 
188  public:
189 
190  // nested types ----------------------------------------------------
191 
192  // accessors -------------------------------------------------------
193 
194  enum : int {
195  kMinFieldNumber = 1,
196  kMaxFieldNumber = 2,
197  };
198  // .ignition.msgs.Version min = 1;
199  bool has_min() const;
200  private:
201  bool _internal_has_min() const;
202  public:
203  void clear_min();
204  const ::ignition::msgs::Version& min() const;
205  ::ignition::msgs::Version* release_min();
206  ::ignition::msgs::Version* mutable_min();
207  void set_allocated_min(::ignition::msgs::Version* min);
208  private:
209  const ::ignition::msgs::Version& _internal_min() const;
210  ::ignition::msgs::Version* _internal_mutable_min();
211  public:
213  ::ignition::msgs::Version* min);
214  ::ignition::msgs::Version* unsafe_arena_release_min();
215 
216  // .ignition.msgs.Version max = 2;
217  bool has_max() const;
218  private:
219  bool _internal_has_max() const;
220  public:
221  void clear_max();
222  const ::ignition::msgs::Version& max() const;
223  ::ignition::msgs::Version* release_max();
224  ::ignition::msgs::Version* mutable_max();
225  void set_allocated_max(::ignition::msgs::Version* max);
226  private:
227  const ::ignition::msgs::Version& _internal_max() const;
228  ::ignition::msgs::Version* _internal_mutable_max();
229  public:
231  ::ignition::msgs::Version* max);
232  ::ignition::msgs::Version* unsafe_arena_release_max();
233 
234  // @@protoc_insertion_point(class_scope:ignition.msgs.VersionRange)
235  private:
236  class _Internal;
237 
238  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
239  typedef void InternalArenaConstructable_;
240  typedef void DestructorSkippable_;
241  ::ignition::msgs::Version* min_;
242  ::ignition::msgs::Version* max_;
243  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
244  friend struct ::TableStruct_ignition_2fmsgs_2fversion_5frange_2eproto;
245 };
246 // ===================================================================
247 
248 
249 // ===================================================================
250 
251 #ifdef __GNUC__
252  #pragma GCC diagnostic push
253  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
254 #endif // __GNUC__
255 // VersionRange
256 
257 // .ignition.msgs.Version min = 1;
258 inline bool VersionRange::_internal_has_min() const {
259  return this != internal_default_instance() && min_ != nullptr;
260 }
261 inline bool VersionRange::has_min() const {
262  return _internal_has_min();
263 }
264 inline const ::ignition::msgs::Version& VersionRange::_internal_min() const {
265  const ::ignition::msgs::Version* p = min_;
266  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Version&>(
268 }
269 inline const ::ignition::msgs::Version& VersionRange::min() const {
270  // @@protoc_insertion_point(field_get:ignition.msgs.VersionRange.min)
271  return _internal_min();
272 }
273 inline void VersionRange::unsafe_arena_set_allocated_min(
274  ::ignition::msgs::Version* min) {
275  if (GetArena() == nullptr) {
276  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(min_);
277  }
278  min_ = min;
279  if (min) {
280 
281  } else {
282 
283  }
284  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.VersionRange.min)
285 }
286 inline ::ignition::msgs::Version* VersionRange::release_min() {
287 
288  ::ignition::msgs::Version* temp = min_;
289  min_ = nullptr;
290  if (GetArena() != nullptr) {
291  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
292  }
293  return temp;
294 }
295 inline ::ignition::msgs::Version* VersionRange::unsafe_arena_release_min() {
296  // @@protoc_insertion_point(field_release:ignition.msgs.VersionRange.min)
297 
298  ::ignition::msgs::Version* temp = min_;
299  min_ = nullptr;
300  return temp;
301 }
302 inline ::ignition::msgs::Version* VersionRange::_internal_mutable_min() {
303 
304  if (min_ == nullptr) {
305  auto* p = CreateMaybeMessage<::ignition::msgs::Version>(GetArena());
306  min_ = p;
307  }
308  return min_;
309 }
310 inline ::ignition::msgs::Version* VersionRange::mutable_min() {
311  // @@protoc_insertion_point(field_mutable:ignition.msgs.VersionRange.min)
312  return _internal_mutable_min();
313 }
314 inline void VersionRange::set_allocated_min(::ignition::msgs::Version* min) {
315  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
316  if (message_arena == nullptr) {
317  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(min_);
318  }
319  if (min) {
320  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
321  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(min)->GetArena();
322  if (message_arena != submessage_arena) {
323  min = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
324  message_arena, min, submessage_arena);
325  }
326 
327  } else {
328 
329  }
330  min_ = min;
331  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.VersionRange.min)
332 }
333 
334 // .ignition.msgs.Version max = 2;
335 inline bool VersionRange::_internal_has_max() const {
336  return this != internal_default_instance() && max_ != nullptr;
337 }
338 inline bool VersionRange::has_max() const {
339  return _internal_has_max();
340 }
341 inline const ::ignition::msgs::Version& VersionRange::_internal_max() const {
342  const ::ignition::msgs::Version* p = max_;
343  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Version&>(
345 }
346 inline const ::ignition::msgs::Version& VersionRange::max() const {
347  // @@protoc_insertion_point(field_get:ignition.msgs.VersionRange.max)
348  return _internal_max();
349 }
350 inline void VersionRange::unsafe_arena_set_allocated_max(
351  ::ignition::msgs::Version* max) {
352  if (GetArena() == nullptr) {
353  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(max_);
354  }
355  max_ = max;
356  if (max) {
357 
358  } else {
359 
360  }
361  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.VersionRange.max)
362 }
363 inline ::ignition::msgs::Version* VersionRange::release_max() {
364 
365  ::ignition::msgs::Version* temp = max_;
366  max_ = nullptr;
367  if (GetArena() != nullptr) {
368  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
369  }
370  return temp;
371 }
372 inline ::ignition::msgs::Version* VersionRange::unsafe_arena_release_max() {
373  // @@protoc_insertion_point(field_release:ignition.msgs.VersionRange.max)
374 
375  ::ignition::msgs::Version* temp = max_;
376  max_ = nullptr;
377  return temp;
378 }
379 inline ::ignition::msgs::Version* VersionRange::_internal_mutable_max() {
380 
381  if (max_ == nullptr) {
382  auto* p = CreateMaybeMessage<::ignition::msgs::Version>(GetArena());
383  max_ = p;
384  }
385  return max_;
386 }
387 inline ::ignition::msgs::Version* VersionRange::mutable_max() {
388  // @@protoc_insertion_point(field_mutable:ignition.msgs.VersionRange.max)
389  return _internal_mutable_max();
390 }
391 inline void VersionRange::set_allocated_max(::ignition::msgs::Version* max) {
392  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
393  if (message_arena == nullptr) {
394  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(max_);
395  }
396  if (max) {
397  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
398  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(max)->GetArena();
399  if (message_arena != submessage_arena) {
400  max = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
401  message_arena, max, submessage_arena);
402  }
403 
404  } else {
405 
406  }
407  max_ = max;
408  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.VersionRange.max)
409 }
410 
411 #ifdef __GNUC__
412  #pragma GCC diagnostic pop
413 #endif // __GNUC__
414 
419 // @@protoc_insertion_point(namespace_scope)
420 
421 } // namespace msgs
422 } // namespace ignition
423 
424 #ifdef _MSC_VER
425 #pragma warning(pop)
426 #endif
427 // @@protoc_insertion_point(global_scope)
428 
429 #include <google/protobuf/port_undef.inc>
430 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fversion_5frange_2eproto
void set_allocated_min(::ignition::msgs::Version *min)
VersionRange(::PROTOBUF_NAMESPACE_ID::Arena *arena)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: version_range.pb.h:114
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void Swap(VersionRange *other)
Definition: version_range.pb.h:129
VersionRange(VersionRange &&from) noexcept
Definition: version_range.pb.h:90
VersionRange * New() const final
Definition: version_range.pb.h:145
::ignition::msgs::Version * unsafe_arena_release_max()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: version_range.pb.h:108
::ignition::msgs::Version * mutable_max()
::ignition::msgs::Version * release_min()
static const VersionRange * internal_default_instance()
Definition: version_range.pb.h:119
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void CopyFrom(const VersionRange &from)
const ::ignition::msgs::Version & max() const
void unsafe_arena_set_allocated_min(::ignition::msgs::Version *min)
friend void swap(VersionRange &a, VersionRange &b)
Definition: version_range.pb.h:126
void unsafe_arena_set_allocated_max(::ignition::msgs::Version *max)
void MergeFrom(const VersionRange &from)
VersionRange * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: version_range.pb.h:149
::ignition::msgs::Version * release_max()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
static const VersionRange & default_instance()
::ignition::msgs::Version * mutable_min()
VersionRange()
Definition: version_range.pb.h:86
VersionRange & operator=(const VersionRange &from)
Definition: version_range.pb.h:95
VersionRange(const VersionRange &from)
const ::ignition::msgs::Version & min() const
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: version_range.pb.h:111
void set_allocated_max(::ignition::msgs::Version *max)
::ignition::msgs::Version * unsafe_arena_release_min()
VersionRange & operator=(VersionRange &&from) noexcept
Definition: version_range.pb.h:99
void UnsafeArenaSwap(VersionRange *other)
Definition: version_range.pb.h:137
T max(T... args)
T min(T... args)
std::shared_ptr< VersionRange > VersionRangeSharedPtr
Definition: version_range.pb.h:417
IGNITION_MSGS_VISIBLE VersionDefaultTypeInternal _Version_default_instance_
std::unique_ptr< const VersionRange > ConstVersionRangeUniquePtr
Definition: version_range.pb.h:416
std::unique_ptr< VersionRange > VersionRangeUniquePtr
Definition: version_range.pb.h:415
std::shared_ptr< const VersionRange > ConstVersionRangeSharedPtr
Definition: version_range.pb.h:418
IGNITION_MSGS_VISIBLE VersionRangeDefaultTypeInternal _VersionRange_default_instance_
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_2fversion_5frange_2eproto