4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2ftopic_5finfo_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2ftopic_5finfo_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3014000
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 3014000 < 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/metadata_lite.h>
29 #include <google/protobuf/generated_message_reflection.h>
30 #include <google/protobuf/message.h>
31 #include <google/protobuf/repeated_field.h>
32 #include <google/protobuf/extension_set.h>
33 #include <google/protobuf/unknown_field_set.h>
38 #pragma GCC system_header
41 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
44 #include <sys/sysmacros.h>
49 #include <google/protobuf/port_def.inc>
50 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2ftopic_5finfo_2eproto IGNITION_MSGS_VISIBLE
51 PROTOBUF_NAMESPACE_OPEN
55 PROTOBUF_NAMESPACE_CLOSE
59 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
61 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
63 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
65 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
66 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
67 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
73 class TopicInfoDefaultTypeInternal;
77 PROTOBUF_NAMESPACE_OPEN
78 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::TopicInfo* Arena::CreateMaybeMessage<::ignition::msgs::TopicInfo>(Arena*);
79 PROTOBUF_NAMESPACE_CLOSE
85 class IGNITION_MSGS_VISIBLE TopicInfo PROTOBUF_FINAL :
86 public ::PROTOBUF_NAMESPACE_ID::Message {
94 *
this = ::std::move(from);
97 inline TopicInfo&
operator=(
const TopicInfo& from) {
101 inline TopicInfo&
operator=(TopicInfo&& from) noexcept {
102 if (GetArena() == from.GetArena()) {
103 if (
this != &from) InternalSwap(&from);
110 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
111 return GetDescriptor();
114 return GetMetadataStatic().descriptor;
117 return GetMetadataStatic().reflection;
122 return reinterpret_cast<const TopicInfo*
>(
125 static constexpr
int kIndexInFileMessages =
128 friend void swap(TopicInfo& a, TopicInfo& b) {
131 inline void Swap(TopicInfo* 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 TopicInfo*
New() const final {
148 return CreateMaybeMessage<TopicInfo>(
nullptr);
151 TopicInfo*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
152 return CreateMaybeMessage<TopicInfo>(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(TopicInfo* other);
172 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
173 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
174 return "ignition.msgs.TopicInfo";
177 explicit TopicInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena);
179 static void ArenaDtor(
void*
object);
180 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
185 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
197 kPublisherFieldNumber = 3,
198 kSubscriberFieldNumber = 4,
199 kMsgTypeFieldNumber = 2,
200 kHeaderFieldNumber = 1,
205 int _internal_publisher_size()
const;
209 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Publish >*
212 const ::ignition::msgs::Publish& _internal_publisher(
int index)
const;
213 ::ignition::msgs::Publish* _internal_add_publisher();
215 const ::ignition::msgs::Publish&
publisher(
int index)
const;
217 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Publish >&
223 int _internal_subscriber_size()
const;
227 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Subscribe >*
230 const ::ignition::msgs::Subscribe& _internal_subscriber(
int index)
const;
231 ::ignition::msgs::Subscribe* _internal_add_subscriber();
233 const ::ignition::msgs::Subscribe&
subscriber(
int index)
const;
235 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Subscribe >&
250 void _internal_set_msg_type(
const std::string& value);
257 bool _internal_has_header()
const;
260 const ::ignition::msgs::Header&
header()
const;
265 const ::ignition::msgs::Header& _internal_header()
const;
266 ::ignition::msgs::Header* _internal_mutable_header();
269 ::ignition::msgs::Header* header);
276 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
277 typedef void InternalArenaConstructable_;
278 typedef void DestructorSkippable_;
279 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Publish > publisher_;
280 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Subscribe > subscriber_;
281 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr msg_type_;
282 ::ignition::msgs::Header* header_;
283 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
284 friend struct ::TableStruct_ignition_2fmsgs_2ftopic_5finfo_2eproto;
292 #pragma GCC diagnostic push
293 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
298 inline bool TopicInfo::_internal_has_header()
const {
299 return this != internal_default_instance() && header_ !=
nullptr;
301 inline bool TopicInfo::has_header()
const {
302 return _internal_has_header();
304 inline const ::ignition::msgs::Header& TopicInfo::_internal_header()
const {
305 const ::ignition::msgs::Header* p = header_;
306 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Header&
>(
309 inline const ::ignition::msgs::Header& TopicInfo::header()
const {
311 return _internal_header();
313 inline void TopicInfo::unsafe_arena_set_allocated_header(
314 ::ignition::msgs::Header* header) {
315 if (GetArena() ==
nullptr) {
316 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
326 inline ::ignition::msgs::Header* TopicInfo::release_header() {
328 ::ignition::msgs::Header* temp = header_;
330 if (GetArena() !=
nullptr) {
331 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
335 inline ::ignition::msgs::Header* TopicInfo::unsafe_arena_release_header() {
338 ::ignition::msgs::Header* temp = header_;
342 inline ::ignition::msgs::Header* TopicInfo::_internal_mutable_header() {
344 if (header_ ==
nullptr) {
345 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
350 inline ::ignition::msgs::Header* TopicInfo::mutable_header() {
352 return _internal_mutable_header();
354 inline void TopicInfo::set_allocated_header(::ignition::msgs::Header* header) {
355 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
356 if (message_arena ==
nullptr) {
357 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
360 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
361 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header)->GetArena();
362 if (message_arena != submessage_arena) {
363 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
364 message_arena, header, submessage_arena);
375 inline void TopicInfo::clear_msg_type() {
376 msg_type_.ClearToEmpty();
378 inline const std::string& TopicInfo::msg_type()
const {
380 return _internal_msg_type();
382 inline void TopicInfo::set_msg_type(
const std::string& value) {
383 _internal_set_msg_type(value);
386 inline std::string* TopicInfo::mutable_msg_type() {
388 return _internal_mutable_msg_type();
390 inline const std::string& TopicInfo::_internal_msg_type()
const {
391 return msg_type_.Get();
393 inline void TopicInfo::_internal_set_msg_type(
const std::string& value) {
395 msg_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
397 inline void TopicInfo::set_msg_type(
std::string&& value) {
400 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
403 inline void TopicInfo::set_msg_type(
const char* value) {
404 GOOGLE_DCHECK(value !=
nullptr);
406 msg_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(value), GetArena());
409 inline void TopicInfo::set_msg_type(
const char* value,
412 msg_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(
413 reinterpret_cast<const char*
>(value), size), GetArena());
416 inline std::string* TopicInfo::_internal_mutable_msg_type() {
418 return msg_type_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
420 inline std::string* TopicInfo::release_msg_type() {
422 return msg_type_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
424 inline void TopicInfo::set_allocated_msg_type(
std::string* msg_type) {
425 if (msg_type !=
nullptr) {
430 msg_type_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), msg_type,
436 inline int TopicInfo::_internal_publisher_size()
const {
437 return publisher_.
size();
439 inline int TopicInfo::publisher_size()
const {
440 return _internal_publisher_size();
442 inline ::ignition::msgs::Publish* TopicInfo::mutable_publisher(
int index) {
444 return publisher_.Mutable(index);
446 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Publish >*
447 TopicInfo::mutable_publisher() {
451 inline const ::ignition::msgs::Publish& TopicInfo::_internal_publisher(
int index)
const {
452 return publisher_.Get(index);
454 inline const ::ignition::msgs::Publish& TopicInfo::publisher(
int index)
const {
456 return _internal_publisher(index);
458 inline ::ignition::msgs::Publish* TopicInfo::_internal_add_publisher() {
459 return publisher_.Add();
461 inline ::ignition::msgs::Publish* TopicInfo::add_publisher() {
463 return _internal_add_publisher();
465 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Publish >&
466 TopicInfo::publisher()
const {
472 inline int TopicInfo::_internal_subscriber_size()
const {
473 return subscriber_.size();
475 inline int TopicInfo::subscriber_size()
const {
476 return _internal_subscriber_size();
478 inline ::ignition::msgs::Subscribe* TopicInfo::mutable_subscriber(
int index) {
480 return subscriber_.Mutable(index);
482 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Subscribe >*
483 TopicInfo::mutable_subscriber() {
487 inline const ::ignition::msgs::Subscribe& TopicInfo::_internal_subscriber(
int index)
const {
488 return subscriber_.Get(index);
490 inline const ::ignition::msgs::Subscribe& TopicInfo::subscriber(
int index)
const {
492 return _internal_subscriber(index);
494 inline ::ignition::msgs::Subscribe* TopicInfo::_internal_add_subscriber() {
495 return subscriber_.Add();
497 inline ::ignition::msgs::Subscribe* TopicInfo::add_subscriber() {
499 return _internal_add_subscriber();
501 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Subscribe >&
502 TopicInfo::subscriber()
const {
508 #pragma GCC diagnostic pop
525 #include <google/protobuf/port_undef.inc>
TopicInfo & operator=(const TopicInfo &from)
Definition: topic_info.pb.h:97
TopicInfo & operator=(TopicInfo &&from) noexcept
Definition: topic_info.pb.h:101
TopicInfo(const TopicInfo &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: topic_info.pb.h:116
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Publish > * mutable_publisher()
::ignition::msgs::Header * release_header()
TopicInfo * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: topic_info.pb.h:151
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Subscribe > & subscriber() const
::ignition::msgs::Header * mutable_header()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: topic_info.pb.h:110
const ::ignition::msgs::Subscribe & subscriber(int index) const
void set_allocated_msg_type(std::string *msg_type)
void CopyFrom(const TopicInfo &from)
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void UnsafeArenaSwap(TopicInfo *other)
Definition: topic_info.pb.h:139
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Publish > & publisher() const
::ignition::msgs::Publish * add_publisher()
TopicInfo()
Definition: topic_info.pb.h:88
friend void swap(TopicInfo &a, TopicInfo &b)
Definition: topic_info.pb.h:128
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
TopicInfo * New() const final
Definition: topic_info.pb.h:147
void set_msg_type(std::string &&value)
TopicInfo(TopicInfo &&from) noexcept
Definition: topic_info.pb.h:92
::ignition::msgs::Subscribe * mutable_subscriber(int index)
void Swap(TopicInfo *other)
Definition: topic_info.pb.h:131
::ignition::msgs::Header * unsafe_arena_release_header()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
std::string * release_msg_type()
const std::string & msg_type() const
::ignition::msgs::Subscribe * add_subscriber()
void set_msg_type(const char *value, size_t size)
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Subscribe > * mutable_subscriber()
void set_allocated_header(::ignition::msgs::Header *header)
void MergeFrom(const TopicInfo &from)
std::string * mutable_msg_type()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: topic_info.pb.h:113
::ignition::msgs::Publish * mutable_publisher(int index)
TopicInfo(::PROTOBUF_NAMESPACE_ID::Arena *arena)
const ::ignition::msgs::Publish & publisher(int index) const
static const TopicInfo & default_instance()
int publisher_size() const
static const TopicInfo * internal_default_instance()
Definition: topic_info.pb.h:121
int subscriber_size() const
void set_msg_type(const char *value)
void set_msg_type(const std::string &value)
const ::ignition::msgs::Header & header() const
std::unique_ptr< TopicInfo > TopicInfoUniquePtr
Definition: topic_info.pb.h:511
std::shared_ptr< TopicInfo > TopicInfoSharedPtr
Definition: topic_info.pb.h:513
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::shared_ptr< const TopicInfo > ConstTopicInfoSharedPtr
Definition: topic_info.pb.h:514
IGNITION_MSGS_VISIBLE TopicInfoDefaultTypeInternal _TopicInfo_default_instance_
std::unique_ptr< const TopicInfo > ConstTopicInfoUniquePtr
Definition: topic_info.pb.h:512
Definition: actor.pb.h:52
Definition: topic_info.pb.h:58
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
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)
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2ftopic_5finfo_2eproto