Ignition Msgs

API Reference

6.4.0
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 PROTOBUF_ignition_2fmsgs_2fversion_5frange_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fversion_5frange_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3000000
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 3000000 < GOOGLE_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/arena.h>
23 #include <google/protobuf/arenastring.h>
24 #include <google/protobuf/generated_message_util.h>
25 #include <google/protobuf/metadata.h>
26 #include <google/protobuf/message.h>
27 #include <google/protobuf/repeated_field.h>
28 #include <google/protobuf/extension_set.h>
29 #include <google/protobuf/unknown_field_set.h>
31 #ifndef _MSC_VER
32 #pragma GCC system_header
33 #else
34 #pragma warning(push)
35 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
36 #endif
37 #ifdef __linux__
38 #include <sys/sysmacros.h>
39 #endif
40 #include <memory>
41 #include <ignition/msgs/Export.hh>
42 // @@protoc_insertion_point(includes)
43 
44 namespace ignition {
45 namespace msgs {
46 
47 // Internal implementation detail -- do not call these.
51 
52 class VersionRange;
53 
54 // ===================================================================
55 
56 class IGNITION_MSGS_VISIBLE VersionRange : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.VersionRange) */ {
57  public:
58  VersionRange();
59  virtual ~VersionRange();
60 
61  VersionRange(const VersionRange& from);
62 
63  inline VersionRange& operator=(const VersionRange& from) {
64  CopyFrom(from);
65  return *this;
66  }
67 
68  static const ::google::protobuf::Descriptor* descriptor();
69  static const VersionRange& default_instance();
70 
71  void Swap(VersionRange* other);
72 
73  // implements Message ----------------------------------------------
74 
75  inline VersionRange* New() const { return New(NULL); }
76 
77  VersionRange* New(::google::protobuf::Arena* arena) const;
78  void CopyFrom(const ::google::protobuf::Message& from);
79  void MergeFrom(const ::google::protobuf::Message& from);
80  void CopyFrom(const VersionRange& from);
81  void MergeFrom(const VersionRange& from);
82  void Clear();
83  bool IsInitialized() const;
84 
85  int ByteSize() const;
86  bool MergePartialFromCodedStream(
87  ::google::protobuf::io::CodedInputStream* input);
88  void SerializeWithCachedSizes(
89  ::google::protobuf::io::CodedOutputStream* output) const;
90  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
91  bool deterministic, ::google::protobuf::uint8* output) const;
92  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
93  return InternalSerializeWithCachedSizesToArray(false, output);
94  }
95  int GetCachedSize() const { return _cached_size_; }
96  private:
97  void SharedCtor();
98  void SharedDtor();
99  void SetCachedSize(int size) const;
100  void InternalSwap(VersionRange* other);
101  private:
102  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
103  return _internal_metadata_.arena();
104  }
105  inline void* MaybeArenaPtr() const {
106  return _internal_metadata_.raw_arena_ptr();
107  }
108  public:
109 
110  ::google::protobuf::Metadata GetMetadata() const;
111 
112  // nested types ----------------------------------------------------
113 
114  // accessors -------------------------------------------------------
115 
116  // optional .ignition.msgs.Version min = 1;
117  bool has_min() const;
118  void clear_min();
119  static const int kMinFieldNumber = 1;
120  const ::ignition::msgs::Version& min() const;
121  ::ignition::msgs::Version* mutable_min();
122  ::ignition::msgs::Version* release_min();
123  void set_allocated_min(::ignition::msgs::Version* min);
124 
125  // optional .ignition.msgs.Version max = 2;
126  bool has_max() const;
127  void clear_max();
128  static const int kMaxFieldNumber = 2;
129  const ::ignition::msgs::Version& max() const;
130  ::ignition::msgs::Version* mutable_max();
131  ::ignition::msgs::Version* release_max();
132  void set_allocated_max(::ignition::msgs::Version* max);
133 
134  // @@protoc_insertion_point(class_scope:ignition.msgs.VersionRange)
135  private:
136 
137  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
138  bool _is_default_instance_;
141  mutable int _cached_size_;
142  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fversion_5frange_2eproto();
145 
146  void InitAsDefaultInstance();
147  static VersionRange* default_instance_;
148 };
149 // ===================================================================
150 
151 
152 // ===================================================================
153 
154 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
155 // VersionRange
156 
157 // optional .ignition.msgs.Version min = 1;
158 inline bool VersionRange::has_min() const {
159  return !_is_default_instance_ && min_ != NULL;
160 }
161 inline void VersionRange::clear_min() {
162  if (GetArenaNoVirtual() == NULL && min_ != NULL) delete min_;
163  min_ = NULL;
164 }
165 inline const ::ignition::msgs::Version& VersionRange::min() const {
166  // @@protoc_insertion_point(field_get:ignition.msgs.VersionRange.min)
167  return min_ != NULL ? *min_ : *default_instance_->min_;
168 }
169 inline ::ignition::msgs::Version* VersionRange::mutable_min() {
170 
171  if (min_ == NULL) {
172  min_ = new ::ignition::msgs::Version;
173  }
174  // @@protoc_insertion_point(field_mutable:ignition.msgs.VersionRange.min)
175  return min_;
176 }
177 inline ::ignition::msgs::Version* VersionRange::release_min() {
178  // @@protoc_insertion_point(field_release:ignition.msgs.VersionRange.min)
179 
180  ::ignition::msgs::Version* temp = min_;
181  min_ = NULL;
182  return temp;
183 }
185  delete min_;
186  min_ = min;
187  if (min) {
188 
189  } else {
190 
191  }
192  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.VersionRange.min)
193 }
194 
195 // optional .ignition.msgs.Version max = 2;
196 inline bool VersionRange::has_max() const {
197  return !_is_default_instance_ && max_ != NULL;
198 }
199 inline void VersionRange::clear_max() {
200  if (GetArenaNoVirtual() == NULL && max_ != NULL) delete max_;
201  max_ = NULL;
202 }
203 inline const ::ignition::msgs::Version& VersionRange::max() const {
204  // @@protoc_insertion_point(field_get:ignition.msgs.VersionRange.max)
205  return max_ != NULL ? *max_ : *default_instance_->max_;
206 }
207 inline ::ignition::msgs::Version* VersionRange::mutable_max() {
208 
209  if (max_ == NULL) {
210  max_ = new ::ignition::msgs::Version;
211  }
212  // @@protoc_insertion_point(field_mutable:ignition.msgs.VersionRange.max)
213  return max_;
214 }
215 inline ::ignition::msgs::Version* VersionRange::release_max() {
216  // @@protoc_insertion_point(field_release:ignition.msgs.VersionRange.max)
217 
218  ::ignition::msgs::Version* temp = max_;
219  max_ = NULL;
220  return temp;
221 }
223  delete max_;
224  max_ = max;
225  if (max) {
226 
227  } else {
228 
229  }
230  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.VersionRange.max)
231 }
232 
233 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
234 
239 // @@protoc_insertion_point(namespace_scope)
240 
241 } // namespace msgs
242 } // namespace ignition
243 
244 #ifdef _MSC_VER
245 #pragma warning(pop)
246 #endif
247 // @@protoc_insertion_point(global_scope)
248 
249 #endif // PROTOBUF_ignition_2fmsgs_2fversion_5frange_2eproto__INCLUDED
void protobuf_AssignDesc_ignition_2fmsgs_2fversion_5frange_2eproto()
Definition: version.pb.h:55
void clear_min()
Definition: version_range.pb.h:161
VersionRange * New() const
Definition: version_range.pb.h:75
void set_allocated_min(::ignition::msgs::Version *min)
Definition: version_range.pb.h:184
const ::ignition::msgs::Version & max() const
Definition: version_range.pb.h:203
bool has_min() const
Definition: version_range.pb.h:158
std::unique_ptr< VersionRange > VersionRangeUniquePtr
Definition: version_range.pb.h:235
std::unique_ptr< const VersionRange > ConstVersionRangeUniquePtr
Definition: version_range.pb.h:236
VersionRange & operator=(const VersionRange &from)
Definition: version_range.pb.h:63
void set_allocated_max(::ignition::msgs::Version *max)
Definition: version_range.pb.h:222
Definition: version_range.pb.h:56
::ignition::msgs::Version * release_max()
Definition: version_range.pb.h:215
std::shared_ptr< VersionRange > VersionRangeSharedPtr
Definition: version_range.pb.h:237
int GetCachedSize() const
Definition: version_range.pb.h:95
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: version_range.pb.h:92
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fversion_5frange_2eproto()
std::shared_ptr< const VersionRange > ConstVersionRangeSharedPtr
Definition: version_range.pb.h:238
::ignition::msgs::Version * mutable_max()
Definition: version_range.pb.h:207
::ignition::msgs::Version * release_min()
Definition: version_range.pb.h:177
STL class.
void protobuf_ShutdownFile_ignition_2fmsgs_2fversion_5frange_2eproto()
void clear_max()
Definition: version_range.pb.h:199
const ::ignition::msgs::Version & min() const
Definition: version_range.pb.h:165
bool has_max() const
Definition: version_range.pb.h:196
::ignition::msgs::Version * mutable_min()
Definition: version_range.pb.h:169