4 #ifndef PROTOBUF_ignition_2fmsgs_2fversioned_5fname_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2fversioned_5fname_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 11 #if GOOGLE_PROTOBUF_VERSION < 3000000 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 3000000 < 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/arena.h> 23 #include <google/protobuf/arenastring.h> 24 #include <google/protobuf/generated_message_util.h> 25 #include <google/protobuf/metadata.h> 26 #include <google/protobuf/message.h> 27 #include <google/protobuf/repeated_field.h> 28 #include <google/protobuf/extension_set.h> 29 #include <google/protobuf/unknown_field_set.h> 32 #pragma GCC system_header 35 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 38 #include <sys/sysmacros.h> 56 class IGNITION_MSGS_VISIBLE
VersionedName :
public ::google::protobuf::Message {
68 static const ::google::protobuf::Descriptor* descriptor();
78 void CopyFrom(const ::google::protobuf::Message& from);
79 void MergeFrom(const ::google::protobuf::Message& from);
83 bool IsInitialized()
const;
86 bool MergePartialFromCodedStream(
87 ::google::protobuf::io::CodedInputStream* input);
88 void SerializeWithCachedSizes(
89 ::google::protobuf::io::CodedOutputStream* output)
const;
90 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
91 bool deterministic, ::google::protobuf::uint8* output)
const;
93 return InternalSerializeWithCachedSizesToArray(
false, output);
99 void SetCachedSize(
int size)
const;
102 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
103 return _internal_metadata_.arena();
105 inline void* MaybeArenaPtr()
const {
106 return _internal_metadata_.raw_arena_ptr();
110 ::google::protobuf::Metadata GetMetadata()
const;
117 bool has_version()
const;
118 void clear_version();
119 static const int kVersionFieldNumber = 1;
120 const ::ignition::msgs::Version& version()
const;
127 static const int kNameFieldNumber = 2;
128 const ::std::string& name()
const;
129 void set_name(const ::std::string& value);
130 void set_name(
const char* value);
131 void set_name(
const char* value,
size_t size);
139 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
140 bool _is_default_instance_;
142 ::google::protobuf::internal::ArenaStringPtr name_;
143 mutable int _cached_size_;
148 void InitAsDefaultInstance();
156 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 161 return !_is_default_instance_ && version_ != NULL;
164 if (GetArenaNoVirtual() == NULL && version_ != NULL)
delete version_;
169 return version_ != NULL ? *version_ : *default_instance_->version_;
173 if (version_ == NULL) {
174 version_ = new ::ignition::msgs::Version;
199 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
203 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
207 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
212 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
217 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
218 ::
std::string(reinterpret_cast<const char*>(value), size));
224 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
229 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
237 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
241 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 257 #endif // PROTOBUF_ignition_2fmsgs_2fversioned_5fname_2eproto__INCLUDED
void protobuf_ShutdownFile_ignition_2fmsgs_2fversioned_5fname_2eproto()
Definition: version.pb.h:55
const ::std::string & name() const
Definition: versioned_name.pb.h:201
std::shared_ptr< VersionedName > VersionedNameSharedPtr
Definition: versioned_name.pb.h:245
void set_name(const ::std::string &value)
Definition: versioned_name.pb.h:205
::std::string * release_name()
Definition: versioned_name.pb.h:226
Definition: versioned_name.pb.h:56
VersionedName & operator=(const VersionedName &from)
Definition: versioned_name.pb.h:63
void clear_name()
Definition: versioned_name.pb.h:198
bool has_version() const
Definition: versioned_name.pb.h:160
::std::string * mutable_name()
Definition: versioned_name.pb.h:221
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: versioned_name.pb.h:92
void set_allocated_version(::ignition::msgs::Version *version)
Definition: versioned_name.pb.h:186
void clear_version()
Definition: versioned_name.pb.h:163
::ignition::msgs::Version * mutable_version()
Definition: versioned_name.pb.h:171
int GetCachedSize() const
Definition: versioned_name.pb.h:95
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fversioned_5fname_2eproto()
VersionedName * New() const
Definition: versioned_name.pb.h:75
const ::ignition::msgs::Version & version() const
Definition: versioned_name.pb.h:167
std::unique_ptr< VersionedName > VersionedNameUniquePtr
Definition: versioned_name.pb.h:243
std::unique_ptr< const VersionedName > ConstVersionedNameUniquePtr
Definition: versioned_name.pb.h:244
std::shared_ptr< const VersionedName > ConstVersionedNameSharedPtr
Definition: versioned_name.pb.h:246
void protobuf_AssignDesc_ignition_2fmsgs_2fversioned_5fname_2eproto()
void set_allocated_name(::std::string *name)
Definition: versioned_name.pb.h:231
::ignition::msgs::Version * release_version()
Definition: versioned_name.pb.h:179