Go to the documentation of this file.
4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2fversioned_5fname_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2fversioned_5fname_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>
35 #pragma GCC system_header
38 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
41 #include <sys/sysmacros.h>
46 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2fversioned_5fname_2eproto IGNITION_MSGS_VISIBLE
51 static const ::google::protobuf::internal::ParseTableField entries[];
52 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
53 static const ::google::protobuf::internal::ParseTable schema[1];
54 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
55 static const ::google::protobuf::internal::SerializationTable serialization_table[];
56 static const ::google::protobuf::uint32 offsets[];
63 class VersionedNameDefaultTypeInternal;
69 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::VersionedName* Arena::CreateMaybeMessage<::ignition::msgs::VersionedName>(Arena*);
77 class IGNITION_MSGS_VISIBLE
VersionedName :
public ::google::protobuf::Message {
91 *
this = ::std::move(from);
94 inline VersionedName& operator=(VersionedName&& from) noexcept {
95 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
96 if (
this != &from) InternalSwap(&from);
103 static const ::google::protobuf::Descriptor* descriptor();
104 static const VersionedName& default_instance();
106 static void InitAsDefaultInstance();
111 static constexpr
int kIndexInFileMessages =
122 return CreateMaybeMessage<VersionedName>(NULL);
126 return CreateMaybeMessage<VersionedName>(arena);
128 void CopyFrom(const ::google::protobuf::Message& from)
final;
129 void MergeFrom(const ::google::protobuf::Message& from)
final;
133 bool IsInitialized() const final;
135 size_t ByteSizeLong() const final;
136 bool MergePartialFromCodedStream(
137 ::
google::protobuf::io::CodedInputStream* input) final;
138 void SerializeWithCachedSizes(
139 ::
google::protobuf::io::CodedOutputStream* output) const final;
140 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
141 bool deterministic, ::
google::protobuf::uint8* target) const final;
142 int GetCachedSize() const final {
return _cached_size_.Get(); }
147 void SetCachedSize(
int size)
const final;
150 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
153 inline void* MaybeArenaPtr()
const {
158 ::google::protobuf::Metadata GetMetadata() const final;
166 static const
int kNameFieldNumber = 2;
167 const ::
std::
string& name() const;
168 void set_name(const ::
std::
string& value);
172 void set_name(
const char* value);
173 void set_name(
const char* value,
size_t size);
179 bool has_version()
const;
180 void clear_version();
181 static const int kVersionFieldNumber = 1;
183 const ::ignition::msgs::Version& _internal_version()
const;
185 const ::ignition::msgs::Version& version()
const;
193 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
194 ::google::protobuf::internal::ArenaStringPtr name_;
196 mutable ::google::protobuf::internal::CachedSize _cached_size_;
197 friend struct ::protobuf_ignition_2fmsgs_2fversioned_5fname_2eproto::TableStruct;
205 #pragma GCC diagnostic push
206 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
214 inline const ::ignition::msgs::Version& VersionedName::_internal_version()
const {
218 const ::ignition::msgs::Version* p = version_;
232 if (version_ == NULL) {
233 auto* p = CreateMaybeMessage<::ignition::msgs::Version>(GetArenaNoVirtual());
240 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
241 if (message_arena == NULL) {
242 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(version_);
245 ::google::protobuf::Arena* submessage_arena = NULL;
246 if (message_arena != submessage_arena) {
247 version = ::google::protobuf::internal::GetOwnedMessage(
248 message_arena,
version, submessage_arena);
260 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
264 return name_.GetNoArena();
268 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
275 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
280 GOOGLE_DCHECK(value != NULL);
282 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
287 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
288 ::
std::string(
reinterpret_cast<const char*
>(value), size));
294 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
299 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
307 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name);
312 #pragma GCC diagnostic pop
329 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2fversioned_5fname_2eproto
::std::string * release_name()
Definition: build/ignition-msgs5/include/ignition/msgs/versioned_name.pb.h:296
void set_name(const ::std::string &value)
Definition: build/ignition-msgs5/include/ignition/msgs/versioned_name.pb.h:266
VersionedName * New(::google::protobuf::Arena *arena) const final
Definition: build/ignition-msgs5/include/ignition/msgs/versioned_name.pb.h:125
const ::ignition::msgs::Version & version() const
Definition: build/ignition-msgs5/include/ignition/msgs/versioned_name.pb.h:217
::ignition::msgs::Version * mutable_version()
Definition: build/ignition-msgs5/include/ignition/msgs/versioned_name.pb.h:230
::ignition::msgs::Version * release_version()
Definition: build/ignition-msgs5/include/ignition/msgs/versioned_name.pb.h:223
void set_allocated_version(::ignition::msgs::Version *version)
Definition: build/ignition-msgs5/include/ignition/msgs/versioned_name.pb.h:239
std::unique_ptr< const VersionedName > ConstVersionedNameUniquePtr
Definition: build/ignition-msgs5/include/ignition/msgs/versioned_name.pb.h:316
friend void swap(VersionedName &a, VersionedName &b)
Definition: build/ignition-msgs5/include/ignition/msgs/versioned_name.pb.h:115
Definition: build/ignition-msgs5/include/ignition/msgs/versioned_name.pb.h:48
std::shared_ptr< VersionedName > VersionedNameSharedPtr
Definition: build/ignition-msgs5/include/ignition/msgs/versioned_name.pb.h:317
VersionedName * New() const final
Definition: build/ignition-msgs5/include/ignition/msgs/versioned_name.pb.h:121
std::unique_ptr< VersionedName > VersionedNameUniquePtr
Definition: build/ignition-msgs5/include/ignition/msgs/versioned_name.pb.h:315
Definition: build/ignition-msgs5/include/ignition/msgs/versioned_name.pb.h:50
IGNITION_MSGS_VISIBLE VersionedNameDefaultTypeInternal _VersionedName_default_instance_
const ::std::string & name() const
Definition: build/ignition-msgs5/include/ignition/msgs/versioned_name.pb.h:262
void set_allocated_name(::std::string *name)
Definition: build/ignition-msgs5/include/ignition/msgs/versioned_name.pb.h:301
Definition: build/ignition-msgs5/include/ignition/msgs/versioned_name.pb.h:77
static const VersionedName * internal_default_instance()
Definition: build/ignition-msgs5/include/ignition/msgs/versioned_name.pb.h:107
std::shared_ptr< const VersionedName > ConstVersionedNameSharedPtr
Definition: build/ignition-msgs5/include/ignition/msgs/versioned_name.pb.h:318
void clear_name()
Definition: build/ignition-msgs5/include/ignition/msgs/versioned_name.pb.h:259
Definition: build/ignition-msgs5/include/ignition/msgs/version.pb.h:76
::std::string * mutable_name()
Definition: build/ignition-msgs5/include/ignition/msgs/versioned_name.pb.h:291
IGNITION_MSGS_VISIBLE VersionDefaultTypeInternal _Version_default_instance_
void Swap(VersionedName *other)
void IGNITION_MSGS_VISIBLE AddDescriptors()
Definition: build/ignition-msgs5/include/ignition/msgs/actor.pb.h:78
bool has_version() const
Definition: build/ignition-msgs5/include/ignition/msgs/versioned_name.pb.h:211
VersionedName & operator=(const VersionedName &from)
Definition: build/ignition-msgs5/include/ignition/msgs/versioned_name.pb.h:84