4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fversion_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fversion_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3019000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3019000 < 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.
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>
32 #include <google/protobuf/extension_set.h>
33 #include <google/protobuf/unknown_field_set.h>
35 #pragma GCC system_header
38 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
41 #include <sys/sysmacros.h>
46 #include <google/protobuf/port_def.inc>
47 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fversion_2eproto IGNITION_MSGS_VISIBLE
48 PROTOBUF_NAMESPACE_OPEN
52 PROTOBUF_NAMESPACE_CLOSE
56 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
58 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
60 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
62 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
63 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
64 static const uint32_t offsets[];
70 struct VersionDefaultTypeInternal;
74 PROTOBUF_NAMESPACE_OPEN
75 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Version* Arena::CreateMaybeMessage<::ignition::msgs::Version>(Arena*);
76 PROTOBUF_NAMESPACE_CLOSE
82 class IGNITION_MSGS_VISIBLE
Version final :
83 public ::PROTOBUF_NAMESPACE_ID::Message {
87 explicit constexpr
Version(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
92 *
this = ::std::move(from);
100 if (
this == &from)
return *
this;
101 if (GetOwningArena() == from.GetOwningArena()
102 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
103 && GetOwningArena() !=
nullptr
113 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
114 return GetDescriptor();
117 return default_instance().GetMetadata().descriptor;
120 return default_instance().GetMetadata().reflection;
123 return *internal_default_instance();
126 return reinterpret_cast<const Version*
>(
129 static constexpr
int kIndexInFileMessages =
136 if (other ==
this)
return;
137 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
138 if (GetOwningArena() !=
nullptr &&
139 GetOwningArena() == other->GetOwningArena()) {
141 if (GetOwningArena() == other->GetOwningArena()) {
145 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
149 if (other ==
this)
return;
150 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
156 Version*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
157 return CreateMaybeMessage<Version>(arena);
159 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
161 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
164 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
166 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
167 bool IsInitialized() const final;
169 size_t ByteSizeLong() const final;
170 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
171 uint8_t* _InternalSerialize(
172 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
173 int GetCachedSize() const final {
return _cached_size_.Get(); }
178 void SetCachedSize(
int size)
const final;
179 void InternalSwap(
Version* other);
182 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
183 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
184 return "ignition.msgs.Version";
187 explicit Version(::PROTOBUF_NAMESPACE_ID::Arena* arena,
188 bool is_message_owned =
false);
190 static void ArenaDtor(
void*
object);
191 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
195 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
197 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
204 kPrereleaseFieldNumber = 4,
205 kBuildFieldNumber = 5,
206 kMajorFieldNumber = 1,
207 kMinorFieldNumber = 2,
208 kPatchFieldNumber = 3,
211 void clear_prerelease();
213 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
216 PROTOBUF_NODISCARD
std::string* release_prerelease();
217 void set_allocated_prerelease(
std::string* prerelease);
220 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_prerelease(
const std::string& value);
227 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
234 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_build(
const std::string& value);
240 int32_t major()
const;
241 void set_major(int32_t value);
243 int32_t _internal_major()
const;
244 void _internal_set_major(int32_t value);
249 int32_t minor()
const;
250 void set_minor(int32_t value);
252 int32_t _internal_minor()
const;
253 void _internal_set_minor(int32_t value);
258 int32_t patch()
const;
259 void set_patch(int32_t value);
261 int32_t _internal_patch()
const;
262 void _internal_set_patch(int32_t value);
269 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
270 typedef void InternalArenaConstructable_;
271 typedef void DestructorSkippable_;
272 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr prerelease_;
273 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr build_;
277 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
278 friend struct ::TableStruct_ignition_2fmsgs_2fversion_2eproto;
286 #pragma GCC diagnostic push
287 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
295 inline int32_t Version::_internal_major()
const {
300 return _internal_major();
302 inline void Version::_internal_set_major(int32_t value) {
307 _internal_set_major(value);
315 inline int32_t Version::_internal_minor()
const {
320 return _internal_minor();
322 inline void Version::_internal_set_minor(int32_t value) {
327 _internal_set_minor(value);
335 inline int32_t Version::_internal_patch()
const {
340 return _internal_patch();
342 inline void Version::_internal_set_patch(int32_t value) {
347 _internal_set_patch(value);
353 prerelease_.ClearToEmpty();
357 return _internal_prerelease();
359 template <
typename ArgT0,
typename... ArgT>
360 inline PROTOBUF_ALWAYS_INLINE
363 prerelease_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
371 inline const std::string& Version::_internal_prerelease()
const {
372 return prerelease_.Get();
374 inline void Version::_internal_set_prerelease(
const std::string& value) {
376 prerelease_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
378 inline std::string* Version::_internal_mutable_prerelease() {
380 return prerelease_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
384 return prerelease_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
387 if (prerelease !=
nullptr) {
392 prerelease_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), prerelease,
393 GetArenaForAllocation());
394 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
395 if (prerelease_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
396 prerelease_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
"", GetArenaForAllocation());
404 build_.ClearToEmpty();
408 return _internal_build();
410 template <
typename ArgT0,
typename... ArgT>
411 inline PROTOBUF_ALWAYS_INLINE
414 build_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
422 inline const std::string& Version::_internal_build()
const {
425 inline void Version::_internal_set_build(
const std::string& value) {
427 build_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
429 inline std::string* Version::_internal_mutable_build() {
431 return build_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
435 return build_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
438 if (build !=
nullptr) {
443 build_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), build,
444 GetArenaForAllocation());
445 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
446 if (build_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
447 build_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
"", GetArenaForAllocation());
454 #pragma GCC diagnostic pop
471 #include <google/protobuf/port_undef.inc>
Definition: version.pb.h:83
int32_t major() const
Definition: version.pb.h:298
void MergeFrom(const Version &from)
const std::string & build() const
Definition: version.pb.h:406
void UnsafeArenaSwap(Version *other)
Definition: version.pb.h:148
Version * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition: version.pb.h:156
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: version.pb.h:119
std::string * mutable_prerelease()
Definition: version.pb.h:366
Version & operator=(Version &&from) noexcept
Definition: version.pb.h:99
void CopyFrom(const Version &from)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void set_minor(int32_t value)
Definition: version.pb.h:326
void set_allocated_build(std::string *build)
Definition: version.pb.h:437
Version(Version &&from) noexcept
Definition: version.pb.h:90
Version(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: version.pb.h:113
void clear_minor()
Definition: version.pb.h:312
static const Version & default_instance()
Definition: version.pb.h:122
int32_t patch() const
Definition: version.pb.h:338
const std::string & prerelease() const
Definition: version.pb.h:355
Version(const Version &from)
constexpr Version(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
Version()
Definition: version.pb.h:85
void clear_prerelease()
Definition: version.pb.h:352
PROTOBUF_NODISCARD std::string * release_prerelease()
Definition: version.pb.h:382
void Swap(Version *other)
Definition: version.pb.h:135
int32_t minor() const
Definition: version.pb.h:318
void set_prerelease(ArgT0 &&arg0, ArgT... args)
void clear_major()
Definition: version.pb.h:292
void set_allocated_prerelease(std::string *prerelease)
Definition: version.pb.h:386
static const Version * internal_default_instance()
Definition: version.pb.h:125
Version & operator=(const Version &from)
Definition: version.pb.h:95
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
void set_major(int32_t value)
Definition: version.pb.h:306
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: version.pb.h:116
void set_patch(int32_t value)
Definition: version.pb.h:346
friend void swap(Version &a, Version &b)
Definition: version.pb.h:132
static const ClassData _class_data_
Definition: version.pb.h:194
void clear_build()
Definition: version.pb.h:403
void clear_patch()
Definition: version.pb.h:332
void set_build(ArgT0 &&arg0, ArgT... args)
PROTOBUF_NODISCARD std::string * release_build()
Definition: version.pb.h:433
std::string * mutable_build()
Definition: version.pb.h:417
std::unique_ptr< const Version > ConstVersionUniquePtr
Definition: version.pb.h:458
IGNITION_MSGS_VISIBLE VersionDefaultTypeInternal _Version_default_instance_
std::shared_ptr< const Version > ConstVersionSharedPtr
Definition: version.pb.h:460
std::shared_ptr< Version > VersionSharedPtr
Definition: version.pb.h:459
std::unique_ptr< Version > VersionUniquePtr
Definition: version.pb.h:457
Definition: actor.pb.h:52
Definition: version.pb.h:55
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_2eproto