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 < 3019000
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 3019000 < 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 uint32_t offsets[];
73 struct TopicInfoDefaultTypeInternal;
77 PROTOBUF_NAMESPACE_OPEN
78 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::TopicInfo* Arena::CreateMaybeMessage<::ignition::msgs::TopicInfo>(Arena*);
79 PROTOBUF_NAMESPACE_CLOSE
86 public ::PROTOBUF_NAMESPACE_ID::Message {
90 explicit constexpr
TopicInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
95 *
this = ::std::move(from);
103 if (
this == &from)
return *
this;
104 if (GetOwningArena() == from.GetOwningArena()
105 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
106 && GetOwningArena() !=
nullptr
116 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
117 return GetDescriptor();
120 return default_instance().GetMetadata().descriptor;
123 return default_instance().GetMetadata().reflection;
126 return *internal_default_instance();
129 return reinterpret_cast<const TopicInfo*
>(
132 static constexpr
int kIndexInFileMessages =
139 if (other ==
this)
return;
140 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
141 if (GetOwningArena() !=
nullptr &&
142 GetOwningArena() == other->GetOwningArena()) {
144 if (GetOwningArena() == other->GetOwningArena()) {
148 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
152 if (other ==
this)
return;
153 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
159 TopicInfo*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
160 return CreateMaybeMessage<TopicInfo>(arena);
162 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
164 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
167 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
169 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
170 bool IsInitialized() const final;
172 size_t ByteSizeLong() const final;
173 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
174 uint8_t* _InternalSerialize(
175 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
176 int GetCachedSize() const final {
return _cached_size_.Get(); }
181 void SetCachedSize(
int size)
const final;
185 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
186 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
187 return "ignition.msgs.TopicInfo";
190 explicit TopicInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
191 bool is_message_owned =
false);
193 static void ArenaDtor(
void*
object);
194 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
198 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
200 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
207 kPublisherFieldNumber = 3,
208 kSubscriberFieldNumber = 4,
209 kMsgTypeFieldNumber = 2,
210 kHeaderFieldNumber = 1,
213 int publisher_size()
const;
215 int _internal_publisher_size()
const;
219 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Publish >*
222 const ::ignition::msgs::Publish& _internal_publisher(
int index)
const;
225 const ::ignition::msgs::Publish& publisher(
int index)
const;
227 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Publish >&
231 int subscriber_size()
const;
233 int _internal_subscriber_size()
const;
237 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Subscribe >*
238 mutable_subscriber();
240 const ::ignition::msgs::Subscribe& _internal_subscriber(
int index)
const;
243 const ::ignition::msgs::Subscribe& subscriber(
int index)
const;
245 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Subscribe >&
249 void clear_msg_type();
251 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
254 PROTOBUF_NODISCARD
std::string* release_msg_type();
255 void set_allocated_msg_type(
std::string* msg_type);
258 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_msg_type(
const std::string& value);
263 bool has_header()
const;
265 bool _internal_has_header()
const;
268 const ::ignition::msgs::Header& header()
const;
269 PROTOBUF_NODISCARD ::ignition::msgs::Header* release_header();
273 const ::ignition::msgs::Header& _internal_header()
const;
276 void unsafe_arena_set_allocated_header(
284 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
285 typedef void InternalArenaConstructable_;
286 typedef void DestructorSkippable_;
287 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Publish > publisher_;
288 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Subscribe > subscriber_;
289 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr msg_type_;
291 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
292 friend struct ::TableStruct_ignition_2fmsgs_2ftopic_5finfo_2eproto;
300 #pragma GCC diagnostic push
301 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
306 inline bool TopicInfo::_internal_has_header()
const {
307 return this != internal_default_instance() && header_ !=
nullptr;
310 return _internal_has_header();
312 inline const ::ignition::msgs::Header& TopicInfo::_internal_header()
const {
313 const ::ignition::msgs::Header* p = header_;
319 return _internal_header();
323 if (GetArenaForAllocation() ==
nullptr) {
324 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
338 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
339 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
340 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
341 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
343 if (GetArenaForAllocation() !=
nullptr) {
344 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
356 inline ::ignition::msgs::Header* TopicInfo::_internal_mutable_header() {
358 if (header_ ==
nullptr) {
359 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaForAllocation());
370 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
371 if (message_arena ==
nullptr) {
372 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
375 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
376 ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
377 ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
378 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header));
379 if (message_arena != submessage_arena) {
380 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
381 message_arena, header, submessage_arena);
393 msg_type_.ClearToEmpty();
397 return _internal_msg_type();
399 template <
typename ArgT0,
typename... ArgT>
400 inline PROTOBUF_ALWAYS_INLINE
403 msg_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
411 inline const std::string& TopicInfo::_internal_msg_type()
const {
412 return msg_type_.Get();
414 inline void TopicInfo::_internal_set_msg_type(
const std::string& value) {
416 msg_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
418 inline std::string* TopicInfo::_internal_mutable_msg_type() {
420 return msg_type_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
424 return msg_type_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
427 if (msg_type !=
nullptr) {
432 msg_type_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), msg_type,
433 GetArenaForAllocation());
434 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
435 if (msg_type_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
436 msg_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
"", GetArenaForAllocation());
443 inline int TopicInfo::_internal_publisher_size()
const {
444 return publisher_.size();
447 return _internal_publisher_size();
451 return publisher_.Mutable(index);
453 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Publish >*
458 inline const ::ignition::msgs::Publish& TopicInfo::_internal_publisher(
int index)
const {
459 return publisher_.Get(index);
463 return _internal_publisher(index);
465 inline ::ignition::msgs::Publish* TopicInfo::_internal_add_publisher() {
466 return publisher_.Add();
473 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Publish >&
480 inline int TopicInfo::_internal_subscriber_size()
const {
481 return subscriber_.size();
484 return _internal_subscriber_size();
488 return subscriber_.Mutable(index);
490 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Subscribe >*
495 inline const ::ignition::msgs::Subscribe& TopicInfo::_internal_subscriber(
int index)
const {
496 return subscriber_.Get(index);
500 return _internal_subscriber(index);
502 inline ::ignition::msgs::Subscribe* TopicInfo::_internal_add_subscriber() {
503 return subscriber_.Add();
510 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Subscribe >&
517 #pragma GCC diagnostic pop
534 #include <google/protobuf/port_undef.inc>
Definition: publish.pb.h:84
Definition: subscribe.pb.h:84
Definition: topic_info.pb.h:86
TopicInfo & operator=(const TopicInfo &from)
Definition: topic_info.pb.h:98
TopicInfo & operator=(TopicInfo &&from) noexcept
Definition: topic_info.pb.h:102
TopicInfo(const TopicInfo &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: topic_info.pb.h:122
bool has_header() const
Definition: topic_info.pb.h:309
::ignition::msgs::Header * mutable_header()
Definition: topic_info.pb.h:364
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
std::string * mutable_msg_type()
Definition: topic_info.pb.h:406
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: topic_info.pb.h:116
void set_allocated_msg_type(std::string *msg_type)
Definition: topic_info.pb.h:426
void CopyFrom(const TopicInfo &from)
constexpr TopicInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
void UnsafeArenaSwap(TopicInfo *other)
Definition: topic_info.pb.h:151
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Subscribe > & subscriber() const
Definition: topic_info.pb.h:511
TopicInfo()
Definition: topic_info.pb.h:88
::ignition::msgs::Subscribe * add_subscriber()
Definition: topic_info.pb.h:505
friend void swap(TopicInfo &a, TopicInfo &b)
Definition: topic_info.pb.h:135
const std::string & msg_type() const
Definition: topic_info.pb.h:395
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
Definition: topic_info.pb.h:321
TopicInfo(TopicInfo &&from) noexcept
Definition: topic_info.pb.h:93
void Swap(TopicInfo *other)
Definition: topic_info.pb.h:138
::ignition::msgs::Publish * add_publisher()
Definition: topic_info.pb.h:468
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Publish > * mutable_publisher()
Definition: topic_info.pb.h:454
PROTOBUF_NODISCARD std::string * release_msg_type()
Definition: topic_info.pb.h:422
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Publish > & publisher() const
Definition: topic_info.pb.h:474
void set_allocated_header(::ignition::msgs::Header *header)
Definition: topic_info.pb.h:369
void MergeFrom(const TopicInfo &from)
PROTOBUF_NODISCARD ::ignition::msgs::Header * release_header()
Definition: topic_info.pb.h:334
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: topic_info.pb.h:119
void clear_msg_type()
Definition: topic_info.pb.h:392
TopicInfo(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
const ::ignition::msgs::Header & header() const
Definition: topic_info.pb.h:317
static const ClassData _class_data_
Definition: topic_info.pb.h:197
static const TopicInfo & default_instance()
Definition: topic_info.pb.h:125
::ignition::msgs::Header * unsafe_arena_release_header()
Definition: topic_info.pb.h:349
int publisher_size() const
Definition: topic_info.pb.h:446
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Subscribe > * mutable_subscriber()
Definition: topic_info.pb.h:491
static const TopicInfo * internal_default_instance()
Definition: topic_info.pb.h:128
int subscriber_size() const
Definition: topic_info.pb.h:483
TopicInfo * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition: topic_info.pb.h:159
void set_msg_type(ArgT0 &&arg0, ArgT... args)
std::unique_ptr< TopicInfo > TopicInfoUniquePtr
Definition: topic_info.pb.h:520
std::shared_ptr< TopicInfo > TopicInfoSharedPtr
Definition: topic_info.pb.h:522
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::shared_ptr< const TopicInfo > ConstTopicInfoSharedPtr
Definition: topic_info.pb.h:523
IGNITION_MSGS_VISIBLE TopicInfoDefaultTypeInternal _TopicInfo_default_instance_
std::unique_ptr< const TopicInfo > ConstTopicInfoUniquePtr
Definition: topic_info.pb.h:521
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