4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fversioned_5fname_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fversioned_5fname_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3012000
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 3012004 < 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/inlined_string_field.h>
29 #include <google/protobuf/metadata_lite.h>
30 #include <google/protobuf/generated_message_reflection.h>
31 #include <google/protobuf/message.h>
32 #include <google/protobuf/repeated_field.h>
33 #include <google/protobuf/extension_set.h>
34 #include <google/protobuf/unknown_field_set.h>
37 #pragma GCC system_header
40 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
43 #include <sys/sysmacros.h>
48 #include <google/protobuf/port_def.inc>
49 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fversioned_5fname_2eproto IGNITION_MSGS_VISIBLE
50 PROTOBUF_NAMESPACE_OPEN
54 PROTOBUF_NAMESPACE_CLOSE
58 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
60 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
62 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
64 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
65 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
66 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
72 class VersionedNameDefaultTypeInternal;
76 PROTOBUF_NAMESPACE_OPEN
77 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::VersionedName* Arena::CreateMaybeMessage<::ignition::msgs::VersionedName>(Arena*);
78 PROTOBUF_NAMESPACE_CLOSE
84 class IGNITION_MSGS_VISIBLE VersionedName PROTOBUF_FINAL :
85 public ::PROTOBUF_NAMESPACE_ID::Message {
93 *
this = ::std::move(from);
96 inline VersionedName&
operator=(
const VersionedName& from) {
100 inline VersionedName&
operator=(VersionedName&& from) noexcept {
101 if (GetArena() == from.GetArena()) {
102 if (
this != &from) InternalSwap(&from);
109 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
110 return GetDescriptor();
113 return GetMetadataStatic().descriptor;
116 return GetMetadataStatic().reflection;
122 return reinterpret_cast<const VersionedName*
>(
125 static constexpr
int kIndexInFileMessages =
128 friend void swap(VersionedName& a, VersionedName& b) {
131 inline void Swap(VersionedName* other) {
132 if (other ==
this)
return;
133 if (GetArena() == other->GetArena()) {
136 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
140 if (other ==
this)
return;
141 GOOGLE_DCHECK(GetArena() == other->GetArena());
147 inline VersionedName*
New() const final {
148 return CreateMaybeMessage<VersionedName>(
nullptr);
151 VersionedName*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
152 return CreateMaybeMessage<VersionedName>(arena);
154 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
155 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
158 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
159 bool IsInitialized() const final;
161 size_t ByteSizeLong() const final;
162 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
163 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
164 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
165 int GetCachedSize() const final {
return _cached_size_.Get(); }
168 inline void SharedCtor();
169 inline void SharedDtor();
170 void SetCachedSize(
int size)
const final;
171 void InternalSwap(VersionedName* other);
172 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
173 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
174 return "ignition.msgs.VersionedName";
179 static void ArenaDtor(
void*
object);
180 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
185 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
197 kNameFieldNumber = 2,
198 kVersionFieldNumber = 1,
210 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(
"The unsafe_arena_ accessors for"
211 " string fields are deprecated and will be removed in a"
213 std::
string* unsafe_arena_release_name();
214 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
215 "
string fields are deprecated and will be removed in a"
217 void unsafe_arena_set_allocated_name(
220 const
std::
string& _internal_name() const;
221 void _internal_set_name(const
std::
string& value);
222 std::
string* _internal_mutable_name();
226 bool has_version() const;
228 bool _internal_has_version() const;
230 void clear_version();
234 void set_allocated_version(::
ignition::msgs::Version* version);
236 const ::
ignition::msgs::Version& _internal_version() const;
237 ::
ignition::msgs::Version* _internal_mutable_version();
239 void unsafe_arena_set_allocated_version(
240 ::
ignition::msgs::Version* version);
241 ::
ignition::msgs::Version* unsafe_arena_release_version();
247 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
248 typedef
void InternalArenaConstructable_;
249 typedef
void DestructorSkippable_;
250 ::PROTOBUF_NAMESPACE_ID::
internal::ArenaStringPtr name_;
251 ::
ignition::msgs::Version* version_;
252 mutable ::PROTOBUF_NAMESPACE_ID::
internal::CachedSize _cached_size_;
261 #pragma GCC diagnostic push
262 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
267 inline bool VersionedName::_internal_has_version()
const {
268 return this != internal_default_instance() && version_ !=
nullptr;
270 inline bool VersionedName::has_version()
const {
271 return _internal_has_version();
273 inline const ::ignition::msgs::Version& VersionedName::_internal_version()
const {
274 const ::ignition::msgs::Version* p = version_;
275 return p !=
nullptr ? *p : *
reinterpret_cast<const ::ignition::msgs::Version*
>(
278 inline const ::ignition::msgs::Version& VersionedName::version()
const {
280 return _internal_version();
282 inline void VersionedName::unsafe_arena_set_allocated_version(
283 ::ignition::msgs::Version* version) {
284 if (GetArena() ==
nullptr) {
285 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(version_);
295 inline ::ignition::msgs::Version* VersionedName::release_version() {
296 auto temp = unsafe_arena_release_version();
297 if (GetArena() !=
nullptr) {
298 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
302 inline ::ignition::msgs::Version* VersionedName::unsafe_arena_release_version() {
305 ::ignition::msgs::Version* temp = version_;
309 inline ::ignition::msgs::Version* VersionedName::_internal_mutable_version() {
311 if (version_ ==
nullptr) {
312 auto* p = CreateMaybeMessage<::ignition::msgs::Version>(GetArena());
317 inline ::ignition::msgs::Version* VersionedName::mutable_version() {
319 return _internal_mutable_version();
321 inline void VersionedName::set_allocated_version(::ignition::msgs::Version* version) {
322 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
323 if (message_arena ==
nullptr) {
324 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(version_);
327 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
328 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(version)->GetArena();
329 if (message_arena != submessage_arena) {
330 version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
331 message_arena, version, submessage_arena);
342 inline void VersionedName::clear_name() {
343 name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
345 inline const std::string& VersionedName::name()
const {
347 return _internal_name();
349 inline void VersionedName::set_name(
const std::string& value) {
350 _internal_set_name(value);
353 inline std::string* VersionedName::mutable_name() {
355 return _internal_mutable_name();
357 inline const std::string& VersionedName::_internal_name()
const {
360 inline void VersionedName::_internal_set_name(
const std::string& value) {
362 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
364 inline void VersionedName::set_name(
std::string&& value) {
367 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::move(value), GetArena());
370 inline void VersionedName::set_name(
const char* value) {
371 GOOGLE_DCHECK(value !=
nullptr);
373 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::string(value),
377 inline void VersionedName::set_name(
const char* value,
380 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::string(
381 reinterpret_cast<const char*
>(value), size), GetArena());
384 inline std::string* VersionedName::_internal_mutable_name() {
386 return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
388 inline std::string* VersionedName::release_name() {
390 return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
392 inline void VersionedName::set_allocated_name(
std::string* name) {
393 if (name !=
nullptr) {
398 name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
402 inline std::string* VersionedName::unsafe_arena_release_name() {
404 GOOGLE_DCHECK(GetArena() !=
nullptr);
406 return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
409 inline void VersionedName::unsafe_arena_set_allocated_name(
411 GOOGLE_DCHECK(GetArena() !=
nullptr);
412 if (name !=
nullptr) {
417 name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
423 #pragma GCC diagnostic pop
440 #include <google/protobuf/port_undef.inc>
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fversioned_5fname_2eproto
static const VersionedName & default_instance()
static void InitAsDefaultInstance()
VersionedName & operator=(VersionedName &&from) noexcept
Definition: build/ignition-msgs8/include/ignition/msgs/versioned_name.pb.h:100
VersionedName(::PROTOBUF_NAMESPACE_ID::Arena *arena)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: build/ignition-msgs8/include/ignition/msgs/versioned_name.pb.h:115
VersionedName(VersionedName &&from) noexcept
Definition: build/ignition-msgs8/include/ignition/msgs/versioned_name.pb.h:91
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
VersionedName * New() const final
Definition: build/ignition-msgs8/include/ignition/msgs/versioned_name.pb.h:147
void set_name(const char *value, size_t size)
void UnsafeArenaSwap(VersionedName *other)
Definition: build/ignition-msgs8/include/ignition/msgs/versioned_name.pb.h:139
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/versioned_name.pb.h:109
void set_name(const std::string &value)
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
VersionedName * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: build/ignition-msgs8/include/ignition/msgs/versioned_name.pb.h:151
std::string * mutable_name()
std::string * release_name()
static const VersionedName * internal_default_instance()
Definition: build/ignition-msgs8/include/ignition/msgs/versioned_name.pb.h:121
void CopyFrom(const VersionedName &from)
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
friend void swap(VersionedName &a, VersionedName &b)
Definition: build/ignition-msgs8/include/ignition/msgs/versioned_name.pb.h:128
void MergeFrom(const VersionedName &from)
void Swap(VersionedName *other)
Definition: build/ignition-msgs8/include/ignition/msgs/versioned_name.pb.h:131
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/versioned_name.pb.h:112
VersionedName & operator=(const VersionedName &from)
Definition: build/ignition-msgs8/include/ignition/msgs/versioned_name.pb.h:96
VersionedName()
Definition: build/ignition-msgs8/include/ignition/msgs/versioned_name.pb.h:87
const std::string & name() const
void set_name(const char *value)
void set_name(std::string &&value)
void set_allocated_name(std::string *name)
VersionedName(const VersionedName &from)
std::unique_ptr< VersionedName > VersionedNameUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/versioned_name.pb.h:426
std::unique_ptr< const VersionedName > ConstVersionedNameUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/versioned_name.pb.h:427
IGNITION_MSGS_VISIBLE VersionDefaultTypeInternal _Version_default_instance_
std::shared_ptr< VersionedName > VersionedNameSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/versioned_name.pb.h:428
IGNITION_MSGS_VISIBLE VersionedNameDefaultTypeInternal _VersionedName_default_instance_
std::shared_ptr< const VersionedName > ConstVersionedNameSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/versioned_name.pb.h:429
Definition: build/ignition-msgs8/include/ignition/msgs/actor.pb.h:53
Definition: build/ignition-msgs8/include/ignition/msgs/versioned_name.pb.h:57
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)
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)