Ignition Msgs

API Reference

5.6.0
version.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/version.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fversion_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fversion_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>
30 #ifndef _MSC_VER
31 #pragma GCC system_header
32 #else
33 #pragma warning(push)
34 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
35 #endif
36 #ifdef __linux__
37 #include <sys/sysmacros.h>
38 #endif
39 #include <memory>
40 #include <ignition/msgs/Export.hh>
41 // @@protoc_insertion_point(includes)
42 
43 namespace ignition {
44 namespace msgs {
45 
46 // Internal implementation detail -- do not call these.
47 void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fversion_2eproto();
50 
51 class Version;
52 
53 // ===================================================================
54 
55 class IGNITION_MSGS_VISIBLE Version : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Version) */ {
56  public:
57  Version();
58  virtual ~Version();
59 
60  Version(const Version& from);
61 
62  inline Version& operator=(const Version& from) {
63  CopyFrom(from);
64  return *this;
65  }
66 
67  static const ::google::protobuf::Descriptor* descriptor();
68  static const Version& default_instance();
69 
70  void Swap(Version* other);
71 
72  // implements Message ----------------------------------------------
73 
74  inline Version* New() const { return New(NULL); }
75 
76  Version* New(::google::protobuf::Arena* arena) const;
77  void CopyFrom(const ::google::protobuf::Message& from);
78  void MergeFrom(const ::google::protobuf::Message& from);
79  void CopyFrom(const Version& from);
80  void MergeFrom(const Version& from);
81  void Clear();
82  bool IsInitialized() const;
83 
84  int ByteSize() const;
85  bool MergePartialFromCodedStream(
86  ::google::protobuf::io::CodedInputStream* input);
87  void SerializeWithCachedSizes(
88  ::google::protobuf::io::CodedOutputStream* output) const;
89  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
90  bool deterministic, ::google::protobuf::uint8* output) const;
91  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
92  return InternalSerializeWithCachedSizesToArray(false, output);
93  }
94  int GetCachedSize() const { return _cached_size_; }
95  private:
96  void SharedCtor();
97  void SharedDtor();
98  void SetCachedSize(int size) const;
99  void InternalSwap(Version* other);
100  private:
101  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
102  return _internal_metadata_.arena();
103  }
104  inline void* MaybeArenaPtr() const {
105  return _internal_metadata_.raw_arena_ptr();
106  }
107  public:
108 
109  ::google::protobuf::Metadata GetMetadata() const;
110 
111  // nested types ----------------------------------------------------
112 
113  // accessors -------------------------------------------------------
114 
115  // optional int32 major = 1;
116  void clear_major();
117  static const int kMajorFieldNumber = 1;
118  ::google::protobuf::int32 major() const;
119  void set_major(::google::protobuf::int32 value);
120 
121  // optional int32 minor = 2;
122  void clear_minor();
123  static const int kMinorFieldNumber = 2;
124  ::google::protobuf::int32 minor() const;
125  void set_minor(::google::protobuf::int32 value);
126 
127  // optional int32 patch = 3;
128  void clear_patch();
129  static const int kPatchFieldNumber = 3;
130  ::google::protobuf::int32 patch() const;
131  void set_patch(::google::protobuf::int32 value);
132 
133  // optional string prerelease = 4;
134  void clear_prerelease();
135  static const int kPrereleaseFieldNumber = 4;
136  const ::std::string& prerelease() const;
137  void set_prerelease(const ::std::string& value);
138  void set_prerelease(const char* value);
139  void set_prerelease(const char* value, size_t size);
140  ::std::string* mutable_prerelease();
141  ::std::string* release_prerelease();
142  void set_allocated_prerelease(::std::string* prerelease);
143 
144  // optional string build = 5;
145  void clear_build();
146  static const int kBuildFieldNumber = 5;
147  const ::std::string& build() const;
148  void set_build(const ::std::string& value);
149  void set_build(const char* value);
150  void set_build(const char* value, size_t size);
151  ::std::string* mutable_build();
152  ::std::string* release_build();
153  void set_allocated_build(::std::string* build);
154 
155  // @@protoc_insertion_point(class_scope:ignition.msgs.Version)
156  private:
157 
158  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
159  bool _is_default_instance_;
160  ::google::protobuf::int32 major_;
161  ::google::protobuf::int32 minor_;
162  ::google::protobuf::internal::ArenaStringPtr prerelease_;
163  ::google::protobuf::internal::ArenaStringPtr build_;
164  ::google::protobuf::int32 patch_;
165  mutable int _cached_size_;
166  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fversion_2eproto();
169 
170  void InitAsDefaultInstance();
171  static Version* default_instance_;
172 };
173 // ===================================================================
174 
175 
176 // ===================================================================
177 
178 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
179 // Version
180 
181 // optional int32 major = 1;
182 inline void Version::clear_major() {
183  major_ = 0;
184 }
185 inline ::google::protobuf::int32 Version::major() const {
186  // @@protoc_insertion_point(field_get:ignition.msgs.Version.major)
187  return major_;
188 }
189 inline void Version::set_major(::google::protobuf::int32 value) {
190 
191  major_ = value;
192  // @@protoc_insertion_point(field_set:ignition.msgs.Version.major)
193 }
194 
195 // optional int32 minor = 2;
196 inline void Version::clear_minor() {
197  minor_ = 0;
198 }
199 inline ::google::protobuf::int32 Version::minor() const {
200  // @@protoc_insertion_point(field_get:ignition.msgs.Version.minor)
201  return minor_;
202 }
203 inline void Version::set_minor(::google::protobuf::int32 value) {
204 
205  minor_ = value;
206  // @@protoc_insertion_point(field_set:ignition.msgs.Version.minor)
207 }
208 
209 // optional int32 patch = 3;
210 inline void Version::clear_patch() {
211  patch_ = 0;
212 }
213 inline ::google::protobuf::int32 Version::patch() const {
214  // @@protoc_insertion_point(field_get:ignition.msgs.Version.patch)
215  return patch_;
216 }
217 inline void Version::set_patch(::google::protobuf::int32 value) {
218 
219  patch_ = value;
220  // @@protoc_insertion_point(field_set:ignition.msgs.Version.patch)
221 }
222 
223 // optional string prerelease = 4;
225  prerelease_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
226 }
227 inline const ::std::string& Version::prerelease() const {
228  // @@protoc_insertion_point(field_get:ignition.msgs.Version.prerelease)
229  return prerelease_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
230 }
231 inline void Version::set_prerelease(const ::std::string& value) {
232 
233  prerelease_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
234  // @@protoc_insertion_point(field_set:ignition.msgs.Version.prerelease)
235 }
236 inline void Version::set_prerelease(const char* value) {
237 
238  prerelease_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
239  // @@protoc_insertion_point(field_set_char:ignition.msgs.Version.prerelease)
240 }
241 inline void Version::set_prerelease(const char* value, size_t size) {
242 
243  prerelease_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
244  ::std::string(reinterpret_cast<const char*>(value), size));
245  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Version.prerelease)
246 }
247 inline ::std::string* Version::mutable_prerelease() {
248 
249  // @@protoc_insertion_point(field_mutable:ignition.msgs.Version.prerelease)
250  return prerelease_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
251 }
252 inline ::std::string* Version::release_prerelease() {
253  // @@protoc_insertion_point(field_release:ignition.msgs.Version.prerelease)
254 
255  return prerelease_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
256 }
257 inline void Version::set_allocated_prerelease(::std::string* prerelease) {
258  if (prerelease != NULL) {
259 
260  } else {
261 
262  }
263  prerelease_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), prerelease);
264  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Version.prerelease)
265 }
266 
267 // optional string build = 5;
268 inline void Version::clear_build() {
269  build_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
270 }
271 inline const ::std::string& Version::build() const {
272  // @@protoc_insertion_point(field_get:ignition.msgs.Version.build)
273  return build_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
274 }
275 inline void Version::set_build(const ::std::string& value) {
276 
277  build_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
278  // @@protoc_insertion_point(field_set:ignition.msgs.Version.build)
279 }
280 inline void Version::set_build(const char* value) {
281 
282  build_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
283  // @@protoc_insertion_point(field_set_char:ignition.msgs.Version.build)
284 }
285 inline void Version::set_build(const char* value, size_t size) {
286 
287  build_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
288  ::std::string(reinterpret_cast<const char*>(value), size));
289  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Version.build)
290 }
291 inline ::std::string* Version::mutable_build() {
292 
293  // @@protoc_insertion_point(field_mutable:ignition.msgs.Version.build)
294  return build_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
295 }
296 inline ::std::string* Version::release_build() {
297  // @@protoc_insertion_point(field_release:ignition.msgs.Version.build)
298 
299  return build_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
300 }
302  if (build != NULL) {
303 
304  } else {
305 
306  }
307  build_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), build);
308  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Version.build)
309 }
310 
311 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
312 
317 // @@protoc_insertion_point(namespace_scope)
318 
319 } // namespace msgs
320 } // namespace ignition
321 
322 #ifdef _MSC_VER
323 #pragma warning(pop)
324 #endif
325 // @@protoc_insertion_point(global_scope)
326 
327 #endif // PROTOBUF_ignition_2fmsgs_2fversion_2eproto__INCLUDED
const ::std::string & build() const
Definition: version.pb.h:271
::std::string * release_prerelease()
Definition: version.pb.h:252
::google::protobuf::int32 major() const
Definition: version.pb.h:185
std::shared_ptr< Version > VersionSharedPtr
Definition: version.pb.h:315
Definition: version.pb.h:55
void clear_minor()
Definition: version.pb.h:196
void clear_prerelease()
Definition: version.pb.h:224
std::unique_ptr< Version > VersionUniquePtr
Definition: version.pb.h:313
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fversion_2eproto()
void set_prerelease(const ::std::string &value)
Definition: version.pb.h:231
STL class.
::std::string * release_build()
Definition: version.pb.h:296
Version & operator=(const Version &from)
Definition: version.pb.h:62
void clear_build()
Definition: version.pb.h:268
::google::protobuf::int32 patch() const
Definition: version.pb.h:213
const ::std::string & prerelease() const
Definition: version.pb.h:227
std::shared_ptr< const Version > ConstVersionSharedPtr
Definition: version.pb.h:316
void clear_major()
Definition: version.pb.h:182
void set_minor(::google::protobuf::int32 value)
Definition: version.pb.h:203
::std::string * mutable_build()
Definition: version.pb.h:291
Version * New() const
Definition: version.pb.h:74
void set_build(const ::std::string &value)
Definition: version.pb.h:275
void set_patch(::google::protobuf::int32 value)
Definition: version.pb.h:217
STL class.
::std::string * mutable_prerelease()
Definition: version.pb.h:247
void set_allocated_prerelease(::std::string *prerelease)
Definition: version.pb.h:257
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: version.pb.h:91
void set_major(::google::protobuf::int32 value)
Definition: version.pb.h:189
void protobuf_ShutdownFile_ignition_2fmsgs_2fversion_2eproto()
void clear_patch()
Definition: version.pb.h:210
void protobuf_AssignDesc_ignition_2fmsgs_2fversion_2eproto()
std::unique_ptr< const Version > ConstVersionUniquePtr
Definition: version.pb.h:314
::google::protobuf::int32 minor() const
Definition: version.pb.h:199
int GetCachedSize() const
Definition: version.pb.h:94
void set_allocated_build(::std::string *build)
Definition: version.pb.h:301