Gazebo Msgs

API Reference

9.5.1
version.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/version.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fversion_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fversion_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < 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/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 #include <google/protobuf/unknown_field_set.h>
33 // @@protoc_insertion_point(includes)
34 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fversion_2eproto GZ_MSGS_VISIBLE
35 
37 // Internal implementation detail -- do not use these members.
38 struct GZ_MSGS_VISIBLE TableStruct {
39  static const ::google::protobuf::internal::ParseTableField entries[];
40  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
41  static const ::google::protobuf::internal::ParseTable schema[1];
42  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
43  static const ::google::protobuf::internal::SerializationTable serialization_table[];
44  static const ::google::protobuf::uint32 offsets[];
45 };
46 void GZ_MSGS_VISIBLE AddDescriptors();
47 } // namespace protobuf_gz_2fmsgs_2fversion_2eproto
48 namespace gz {
49 namespace msgs {
50 class Version;
51 class VersionDefaultTypeInternal;
52 GZ_MSGS_VISIBLE extern VersionDefaultTypeInternal _Version_default_instance_;
53 } // namespace msgs
54 } // namespace gz
55 namespace google {
56 namespace protobuf {
57 template<> GZ_MSGS_VISIBLE ::gz::msgs::Version* Arena::CreateMaybeMessage<::gz::msgs::Version>(Arena*);
58 } // namespace protobuf
59 } // namespace google
60 namespace gz {
61 namespace msgs {
62 
63 // ===================================================================
64 
65 class GZ_MSGS_VISIBLE Version : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Version) */ {
66  public:
67  Version();
68  virtual ~Version();
69 
70  Version(const Version& from);
71 
72  inline Version& operator=(const Version& from) {
73  CopyFrom(from);
74  return *this;
75  }
76  #if LANG_CXX11
77  Version(Version&& from) noexcept
78  : Version() {
79  *this = ::std::move(from);
80  }
81 
82  inline Version& operator=(Version&& from) noexcept {
83  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
84  if (this != &from) InternalSwap(&from);
85  } else {
86  CopyFrom(from);
87  }
88  return *this;
89  }
90  #endif
91  static const ::google::protobuf::Descriptor* descriptor();
92  static const Version& default_instance();
93 
94  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
95  static inline const Version* internal_default_instance() {
96  return reinterpret_cast<const Version*>(
98  }
99  static constexpr int kIndexInFileMessages =
100  0;
101 
102  void Swap(Version* other);
103  friend void swap(Version& a, Version& b) {
104  a.Swap(&b);
105  }
106 
107  // implements Message ----------------------------------------------
108 
109  inline Version* New() const final {
110  return CreateMaybeMessage<Version>(NULL);
111  }
112 
113  Version* New(::google::protobuf::Arena* arena) const final {
114  return CreateMaybeMessage<Version>(arena);
115  }
116  void CopyFrom(const ::google::protobuf::Message& from) final;
117  void MergeFrom(const ::google::protobuf::Message& from) final;
118  void CopyFrom(const Version& from);
119  void MergeFrom(const Version& from);
120  void Clear() final;
121  bool IsInitialized() const final;
122 
123  size_t ByteSizeLong() const final;
124  bool MergePartialFromCodedStream(
125  ::google::protobuf::io::CodedInputStream* input) final;
126  void SerializeWithCachedSizes(
127  ::google::protobuf::io::CodedOutputStream* output) const final;
128  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
129  bool deterministic, ::google::protobuf::uint8* target) const final;
130  int GetCachedSize() const final { return _cached_size_.Get(); }
131 
132  private:
133  void SharedCtor();
134  void SharedDtor();
135  void SetCachedSize(int size) const final;
136  void InternalSwap(Version* other);
137  private:
138  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
139  return NULL;
140  }
141  inline void* MaybeArenaPtr() const {
142  return NULL;
143  }
144  public:
145 
146  ::google::protobuf::Metadata GetMetadata() const final;
147 
148  // nested types ----------------------------------------------------
149 
150  // accessors -------------------------------------------------------
151 
152  // string prerelease = 4;
153  void clear_prerelease();
154  static const int kPrereleaseFieldNumber = 4;
155  const ::std::string& prerelease() const;
156  void set_prerelease(const ::std::string& value);
157  #if LANG_CXX11
158  void set_prerelease(::std::string&& value);
159  #endif
160  void set_prerelease(const char* value);
161  void set_prerelease(const char* value, size_t size);
162  ::std::string* mutable_prerelease();
163  ::std::string* release_prerelease();
164  void set_allocated_prerelease(::std::string* prerelease);
165 
166  // string build = 5;
167  void clear_build();
168  static const int kBuildFieldNumber = 5;
169  const ::std::string& build() const;
170  void set_build(const ::std::string& value);
171  #if LANG_CXX11
172  void set_build(::std::string&& value);
173  #endif
174  void set_build(const char* value);
175  void set_build(const char* value, size_t size);
176  ::std::string* mutable_build();
177  ::std::string* release_build();
178  void set_allocated_build(::std::string* build);
179 
180  // int32 major = 1;
181  void clear_major();
182  static const int kMajorFieldNumber = 1;
183  ::google::protobuf::int32 major() const;
184  void set_major(::google::protobuf::int32 value);
185 
186  // int32 minor = 2;
187  void clear_minor();
188  static const int kMinorFieldNumber = 2;
189  ::google::protobuf::int32 minor() const;
190  void set_minor(::google::protobuf::int32 value);
191 
192  // int32 patch = 3;
193  void clear_patch();
194  static const int kPatchFieldNumber = 3;
195  ::google::protobuf::int32 patch() const;
196  void set_patch(::google::protobuf::int32 value);
197 
198  // @@protoc_insertion_point(class_scope:gz.msgs.Version)
199  private:
200 
201  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
202  ::google::protobuf::internal::ArenaStringPtr prerelease_;
203  ::google::protobuf::internal::ArenaStringPtr build_;
204  ::google::protobuf::int32 major_;
205  ::google::protobuf::int32 minor_;
206  ::google::protobuf::int32 patch_;
207  mutable ::google::protobuf::internal::CachedSize _cached_size_;
208  friend struct ::protobuf_gz_2fmsgs_2fversion_2eproto::TableStruct;
209 };
210 // ===================================================================
211 
212 
213 // ===================================================================
214 
215 #ifdef __GNUC__
216  #pragma GCC diagnostic push
217  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
218 #endif // __GNUC__
219 // Version
220 
221 // int32 major = 1;
222 inline void Version::clear_major() {
223  major_ = 0;
224 }
225 inline ::google::protobuf::int32 Version::major() const {
226  // @@protoc_insertion_point(field_get:gz.msgs.Version.major)
227  return major_;
228 }
229 inline void Version::set_major(::google::protobuf::int32 value) {
230 
231  major_ = value;
232  // @@protoc_insertion_point(field_set:gz.msgs.Version.major)
233 }
234 
235 // int32 minor = 2;
236 inline void Version::clear_minor() {
237  minor_ = 0;
238 }
239 inline ::google::protobuf::int32 Version::minor() const {
240  // @@protoc_insertion_point(field_get:gz.msgs.Version.minor)
241  return minor_;
242 }
243 inline void Version::set_minor(::google::protobuf::int32 value) {
244 
245  minor_ = value;
246  // @@protoc_insertion_point(field_set:gz.msgs.Version.minor)
247 }
248 
249 // int32 patch = 3;
250 inline void Version::clear_patch() {
251  patch_ = 0;
252 }
253 inline ::google::protobuf::int32 Version::patch() const {
254  // @@protoc_insertion_point(field_get:gz.msgs.Version.patch)
255  return patch_;
256 }
257 inline void Version::set_patch(::google::protobuf::int32 value) {
258 
259  patch_ = value;
260  // @@protoc_insertion_point(field_set:gz.msgs.Version.patch)
261 }
262 
263 // string prerelease = 4;
265  prerelease_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
266 }
267 inline const ::std::string& Version::prerelease() const {
268  // @@protoc_insertion_point(field_get:gz.msgs.Version.prerelease)
269  return prerelease_.GetNoArena();
270 }
271 inline void Version::set_prerelease(const ::std::string& value) {
272 
273  prerelease_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
274  // @@protoc_insertion_point(field_set:gz.msgs.Version.prerelease)
275 }
276 #if LANG_CXX11
277 inline void Version::set_prerelease(::std::string&& value) {
278 
279  prerelease_.SetNoArena(
280  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
281  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Version.prerelease)
282 }
283 #endif
284 inline void Version::set_prerelease(const char* value) {
285  GOOGLE_DCHECK(value != NULL);
286 
287  prerelease_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
288  // @@protoc_insertion_point(field_set_char:gz.msgs.Version.prerelease)
289 }
290 inline void Version::set_prerelease(const char* value, size_t size) {
291 
292  prerelease_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
293  ::std::string(reinterpret_cast<const char*>(value), size));
294  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Version.prerelease)
295 }
296 inline ::std::string* Version::mutable_prerelease() {
297 
298  // @@protoc_insertion_point(field_mutable:gz.msgs.Version.prerelease)
299  return prerelease_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
300 }
301 inline ::std::string* Version::release_prerelease() {
302  // @@protoc_insertion_point(field_release:gz.msgs.Version.prerelease)
303 
304  return prerelease_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
305 }
306 inline void Version::set_allocated_prerelease(::std::string* prerelease) {
307  if (prerelease != NULL) {
308 
309  } else {
310 
311  }
312  prerelease_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), prerelease);
313  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Version.prerelease)
314 }
315 
316 // string build = 5;
317 inline void Version::clear_build() {
318  build_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
319 }
320 inline const ::std::string& Version::build() const {
321  // @@protoc_insertion_point(field_get:gz.msgs.Version.build)
322  return build_.GetNoArena();
323 }
324 inline void Version::set_build(const ::std::string& value) {
325 
326  build_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
327  // @@protoc_insertion_point(field_set:gz.msgs.Version.build)
328 }
329 #if LANG_CXX11
330 inline void Version::set_build(::std::string&& value) {
331 
332  build_.SetNoArena(
333  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
334  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Version.build)
335 }
336 #endif
337 inline void Version::set_build(const char* value) {
338  GOOGLE_DCHECK(value != NULL);
339 
340  build_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
341  // @@protoc_insertion_point(field_set_char:gz.msgs.Version.build)
342 }
343 inline void Version::set_build(const char* value, size_t size) {
344 
345  build_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
346  ::std::string(reinterpret_cast<const char*>(value), size));
347  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Version.build)
348 }
349 inline ::std::string* Version::mutable_build() {
350 
351  // @@protoc_insertion_point(field_mutable:gz.msgs.Version.build)
352  return build_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
353 }
354 inline ::std::string* Version::release_build() {
355  // @@protoc_insertion_point(field_release:gz.msgs.Version.build)
356 
357  return build_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
358 }
360  if (build != NULL) {
361 
362  } else {
363 
364  }
365  build_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), build);
366  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Version.build)
367 }
368 
369 #ifdef __GNUC__
370  #pragma GCC diagnostic pop
371 #endif // __GNUC__
372 
373 // @@protoc_insertion_point(namespace_scope)
374 
375 } // namespace msgs
376 } // namespace gz
377 
378 // @@protoc_insertion_point(global_scope)
379 
380 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fversion_2eproto