4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2fversion_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2fversion_2eproto
9 #include <google/protobuf/stubs/common.h>
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
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.
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>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/unknown_field_set.h>
34 #pragma GCC system_header
37 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
40 #include <sys/sysmacros.h>
45 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2fversion_2eproto IGNITION_MSGS_VISIBLE
50 static const ::google::protobuf::internal::ParseTableField entries[];
51 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
52 static const ::google::protobuf::internal::ParseTable schema[1];
53 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
54 static const ::google::protobuf::internal::SerializationTable serialization_table[];
55 static const ::google::protobuf::uint32 offsets[];
62 class VersionDefaultTypeInternal;
68 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Version* Arena::CreateMaybeMessage<::ignition::msgs::Version>(Arena*);
76 class IGNITION_MSGS_VISIBLE
Version :
public ::google::protobuf::Message {
90 *
this = ::std::move(from);
93 inline Version& operator=(Version&& from) noexcept {
94 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
95 if (
this != &from) InternalSwap(&from);
102 static const ::google::protobuf::Descriptor* descriptor();
103 static const Version& default_instance();
105 static void InitAsDefaultInstance();
107 return reinterpret_cast<const Version*
>(
110 static constexpr
int kIndexInFileMessages =
121 return CreateMaybeMessage<Version>(NULL);
125 return CreateMaybeMessage<Version>(arena);
127 void CopyFrom(const ::google::protobuf::Message& from)
final;
128 void MergeFrom(const ::google::protobuf::Message& from)
final;
129 void CopyFrom(
const Version& from);
130 void MergeFrom(
const Version& from);
132 bool IsInitialized() const final;
134 size_t ByteSizeLong() const final;
135 bool MergePartialFromCodedStream(
136 ::
google::protobuf::io::CodedInputStream* input) final;
137 void SerializeWithCachedSizes(
138 ::
google::protobuf::io::CodedOutputStream* output) const final;
139 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
140 bool deterministic, ::
google::protobuf::uint8* target) const final;
141 int GetCachedSize() const final {
return _cached_size_.Get(); }
146 void SetCachedSize(
int size)
const final;
147 void InternalSwap(
Version* other);
149 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
152 inline void* MaybeArenaPtr()
const {
157 ::google::protobuf::Metadata GetMetadata() const final;
164 void clear_prerelease();
165 static const
int kPrereleaseFieldNumber = 4;
166 const ::
std::
string& prerelease() const;
167 void set_prerelease(const ::
std::
string& value);
171 void set_prerelease(
const char* value);
172 void set_prerelease(
const char* value,
size_t size);
175 void set_allocated_prerelease(::
std::string* prerelease);
179 static const int kBuildFieldNumber = 5;
180 const ::std::string& build()
const;
181 void set_build(const ::std::string& value);
185 void set_build(
const char* value);
186 void set_build(
const char* value,
size_t size);
193 static const int kMajorFieldNumber = 1;
194 ::google::protobuf::int32 major()
const;
195 void set_major(::google::protobuf::int32 value);
199 static const int kMinorFieldNumber = 2;
200 ::google::protobuf::int32 minor()
const;
201 void set_minor(::google::protobuf::int32 value);
205 static const int kPatchFieldNumber = 3;
206 ::google::protobuf::int32 patch()
const;
207 void set_patch(::google::protobuf::int32 value);
212 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
213 ::google::protobuf::internal::ArenaStringPtr prerelease_;
214 ::google::protobuf::internal::ArenaStringPtr build_;
215 ::google::protobuf::int32 major_;
216 ::google::protobuf::int32 minor_;
217 ::google::protobuf::int32 patch_;
218 mutable ::google::protobuf::internal::CachedSize _cached_size_;
219 friend struct ::protobuf_ignition_2fmsgs_2fversion_2eproto::TableStruct;
227 #pragma GCC diagnostic push
228 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
276 prerelease_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
280 return prerelease_.GetNoArena();
284 prerelease_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
290 prerelease_.SetNoArena(
291 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
296 GOOGLE_DCHECK(value != NULL);
298 prerelease_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
303 prerelease_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
304 ::
std::string(
reinterpret_cast<const char*
>(value), size));
310 return prerelease_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
315 return prerelease_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
323 prerelease_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
prerelease);
329 build_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
333 return build_.GetNoArena();
337 build_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
344 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
349 GOOGLE_DCHECK(value != NULL);
351 build_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
356 build_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
357 ::
std::string(
reinterpret_cast<const char*
>(value), size));
363 return build_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
368 return build_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
376 build_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
build);
381 #pragma GCC diagnostic pop
398 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2fversion_2eproto