4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fversion_2eproto
5 #define PROTOBUF_INCLUDED_gz_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 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fversion_2eproto GZ_MSGS_VISIBLE
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[];
51 class VersionDefaultTypeInternal;
57 template<> GZ_MSGS_VISIBLE ::gz::msgs::Version* Arena::CreateMaybeMessage<::gz::msgs::Version>(Arena*);
65 class GZ_MSGS_VISIBLE
Version :
public ::google::protobuf::Message {
79 *
this = ::std::move(from);
82 inline Version& operator=(Version&& from) noexcept {
83 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
84 if (
this != &from) InternalSwap(&from);
91 static const ::google::protobuf::Descriptor* descriptor();
92 static const Version& default_instance();
94 static void InitAsDefaultInstance();
96 return reinterpret_cast<const Version*
>(
99 static constexpr
int kIndexInFileMessages =
110 return CreateMaybeMessage<Version>(NULL);
114 return CreateMaybeMessage<Version>(arena);
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);
121 bool IsInitialized() const final;
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(); }
135 void SetCachedSize(
int size)
const final;
136 void InternalSwap(
Version* other);
138 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
141 inline void* MaybeArenaPtr()
const {
146 ::google::protobuf::Metadata GetMetadata() const final;
153 void clear_prerelease();
154 static const
int kPrereleaseFieldNumber = 4;
155 const ::
std::
string& prerelease() const;
156 void set_prerelease(const ::
std::
string& value);
160 void set_prerelease(
const char* value);
161 void set_prerelease(
const char* value,
size_t size);
164 void set_allocated_prerelease(::
std::string* prerelease);
168 static const int kBuildFieldNumber = 5;
169 const ::std::string& build()
const;
170 void set_build(const ::std::string& value);
174 void set_build(
const char* value);
175 void set_build(
const char* value,
size_t size);
182 static const int kMajorFieldNumber = 1;
183 ::google::protobuf::int32 major()
const;
184 void set_major(::google::protobuf::int32 value);
188 static const int kMinorFieldNumber = 2;
189 ::google::protobuf::int32 minor()
const;
190 void set_minor(::google::protobuf::int32 value);
194 static const int kPatchFieldNumber = 3;
195 ::google::protobuf::int32 patch()
const;
196 void set_patch(::google::protobuf::int32 value);
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;
216 #pragma GCC diagnostic push
217 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
265 prerelease_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
269 return prerelease_.GetNoArena();
273 prerelease_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
279 prerelease_.SetNoArena(
280 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
285 GOOGLE_DCHECK(value != NULL);
287 prerelease_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
292 prerelease_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
293 ::
std::string(
reinterpret_cast<const char*
>(value), size));
299 return prerelease_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
304 return prerelease_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
312 prerelease_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
prerelease);
318 build_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
322 return build_.GetNoArena();
326 build_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
333 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
338 GOOGLE_DCHECK(value != NULL);
340 build_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
345 build_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
346 ::
std::string(
reinterpret_cast<const char*
>(value), size));
352 return build_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
357 return build_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
365 build_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
build);
370 #pragma GCC diagnostic pop
380 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fversion_2eproto