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 < 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>
39 #pragma GCC system_header
42 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
45 #include <sys/sysmacros.h>
50 #include <google/protobuf/port_def.inc>
51 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2ftopic_5finfo_2eproto IGNITION_MSGS_VISIBLE
52 PROTOBUF_NAMESPACE_OPEN
56 PROTOBUF_NAMESPACE_CLOSE
60 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
62 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
64 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
66 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
67 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
68 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
74 class TopicInfoDefaultTypeInternal;
78 PROTOBUF_NAMESPACE_OPEN
79 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::TopicInfo* Arena::CreateMaybeMessage<::ignition::msgs::TopicInfo>(Arena*);
80 PROTOBUF_NAMESPACE_CLOSE
86 class IGNITION_MSGS_VISIBLE TopicInfo PROTOBUF_FINAL :
87 public ::PROTOBUF_NAMESPACE_ID::Message {
95 *
this = ::std::move(from);
98 inline TopicInfo&
operator=(
const TopicInfo& from) {
102 inline TopicInfo&
operator=(TopicInfo&& from) noexcept {
103 if (GetArena() == from.GetArena()) {
104 if (
this != &from) InternalSwap(&from);
111 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
112 return GetDescriptor();
115 return GetMetadataStatic().descriptor;
118 return GetMetadataStatic().reflection;
124 return reinterpret_cast<const TopicInfo*
>(
127 static constexpr
int kIndexInFileMessages =
130 friend void swap(TopicInfo& a, TopicInfo& b) {
133 inline void Swap(TopicInfo* other) {
134 if (other ==
this)
return;
135 if (GetArena() == other->GetArena()) {
138 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
142 if (other ==
this)
return;
143 GOOGLE_DCHECK(GetArena() == other->GetArena());
149 inline TopicInfo*
New() const final {
150 return CreateMaybeMessage<TopicInfo>(
nullptr);
153 TopicInfo*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
154 return CreateMaybeMessage<TopicInfo>(arena);
156 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
157 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
160 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
161 bool IsInitialized() const final;
163 size_t ByteSizeLong() const final;
164 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
165 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
166 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
167 int GetCachedSize() const final {
return _cached_size_.Get(); }
170 inline void SharedCtor();
171 inline void SharedDtor();
172 void SetCachedSize(
int size)
const final;
173 void InternalSwap(TopicInfo* other);
174 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
175 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
176 return "ignition.msgs.TopicInfo";
179 explicit TopicInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena);
181 static void ArenaDtor(
void*
object);
182 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
187 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
199 kPublisherFieldNumber = 3,
200 kSubscriberFieldNumber = 4,
201 kMsgTypeFieldNumber = 2,
202 kHeaderFieldNumber = 1,
207 int _internal_publisher_size()
const;
211 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Publish >*
214 const ::ignition::msgs::Publish& _internal_publisher(
int index)
const;
215 ::ignition::msgs::Publish* _internal_add_publisher();
217 const ::ignition::msgs::Publish&
publisher(
int index)
const;
219 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Publish >&
225 int _internal_subscriber_size()
const;
229 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Subscribe >*
232 const ::ignition::msgs::Subscribe& _internal_subscriber(
int index)
const;
233 ::ignition::msgs::Subscribe* _internal_add_subscriber();
235 const ::ignition::msgs::Subscribe&
subscriber(
int index)
const;
237 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Subscribe >&
250 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(
"The unsafe_arena_ accessors for"
251 " string fields are deprecated and will be removed in a"
253 std::
string* unsafe_arena_release_msg_type();
254 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
255 "
string fields are deprecated and will be removed in a"
257 void unsafe_arena_set_allocated_msg_type(
258 std::
string* msg_type);
260 const
std::
string& _internal_msg_type() const;
261 void _internal_set_msg_type(const
std::
string& value);
262 std::
string* _internal_mutable_msg_type();
266 bool has_header() const;
268 bool _internal_has_header() const;
274 void set_allocated_header(::
ignition::msgs::Header* header);
276 const ::
ignition::msgs::Header& _internal_header() const;
277 ::
ignition::msgs::Header* _internal_mutable_header();
279 void unsafe_arena_set_allocated_header(
281 ::
ignition::msgs::Header* unsafe_arena_release_header();
287 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
288 typedef
void InternalArenaConstructable_;
289 typedef
void DestructorSkippable_;
290 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::
ignition::msgs::Publish > publisher_;
291 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::
ignition::msgs::Subscribe > subscriber_;
292 ::PROTOBUF_NAMESPACE_ID::
internal::ArenaStringPtr msg_type_;
294 mutable ::PROTOBUF_NAMESPACE_ID::
internal::CachedSize _cached_size_;
303 #pragma GCC diagnostic push
304 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
309 inline bool TopicInfo::_internal_has_header()
const {
310 return this != internal_default_instance() && header_ !=
nullptr;
312 inline bool TopicInfo::has_header()
const {
313 return _internal_has_header();
315 inline const ::ignition::msgs::Header& TopicInfo::_internal_header()
const {
316 const ::ignition::msgs::Header* p = header_;
317 return p !=
nullptr ? *p : *
reinterpret_cast<const ::ignition::msgs::Header*
>(
320 inline const ::ignition::msgs::Header& TopicInfo::header()
const {
322 return _internal_header();
324 inline void TopicInfo::unsafe_arena_set_allocated_header(
325 ::ignition::msgs::Header* header) {
326 if (GetArena() ==
nullptr) {
327 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
337 inline ::ignition::msgs::Header* TopicInfo::release_header() {
338 auto temp = unsafe_arena_release_header();
339 if (GetArena() !=
nullptr) {
340 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
344 inline ::ignition::msgs::Header* TopicInfo::unsafe_arena_release_header() {
347 ::ignition::msgs::Header* temp = header_;
351 inline ::ignition::msgs::Header* TopicInfo::_internal_mutable_header() {
353 if (header_ ==
nullptr) {
354 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
359 inline ::ignition::msgs::Header* TopicInfo::mutable_header() {
361 return _internal_mutable_header();
363 inline void TopicInfo::set_allocated_header(::ignition::msgs::Header* header) {
364 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
365 if (message_arena ==
nullptr) {
366 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
369 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
370 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header)->GetArena();
371 if (message_arena != submessage_arena) {
372 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
373 message_arena, header, submessage_arena);
384 inline void TopicInfo::clear_msg_type() {
385 msg_type_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
387 inline const std::string& TopicInfo::msg_type()
const {
389 return _internal_msg_type();
391 inline void TopicInfo::set_msg_type(
const std::string& value) {
392 _internal_set_msg_type(value);
395 inline std::string* TopicInfo::mutable_msg_type() {
397 return _internal_mutable_msg_type();
399 inline const std::string& TopicInfo::_internal_msg_type()
const {
400 return msg_type_.Get();
402 inline void TopicInfo::_internal_set_msg_type(
const std::string& value) {
404 msg_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
406 inline void TopicInfo::set_msg_type(
std::string&& value) {
409 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::move(value), GetArena());
412 inline void TopicInfo::set_msg_type(
const char* value) {
413 GOOGLE_DCHECK(value !=
nullptr);
415 msg_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::string(value),
419 inline void TopicInfo::set_msg_type(
const char* value,
422 msg_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::string(
423 reinterpret_cast<const char*
>(value), size), GetArena());
426 inline std::string* TopicInfo::_internal_mutable_msg_type() {
428 return msg_type_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
430 inline std::string* TopicInfo::release_msg_type() {
432 return msg_type_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
434 inline void TopicInfo::set_allocated_msg_type(
std::string* msg_type) {
435 if (msg_type !=
nullptr) {
440 msg_type_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), msg_type,
444 inline std::string* TopicInfo::unsafe_arena_release_msg_type() {
446 GOOGLE_DCHECK(GetArena() !=
nullptr);
448 return msg_type_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
451 inline void TopicInfo::unsafe_arena_set_allocated_msg_type(
453 GOOGLE_DCHECK(GetArena() !=
nullptr);
454 if (msg_type !=
nullptr) {
459 msg_type_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
460 msg_type, GetArena());
465 inline int TopicInfo::_internal_publisher_size()
const {
466 return publisher_.size();
468 inline int TopicInfo::publisher_size()
const {
469 return _internal_publisher_size();
471 inline ::ignition::msgs::Publish* TopicInfo::mutable_publisher(
int index) {
473 return publisher_.Mutable(index);
475 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Publish >*
476 TopicInfo::mutable_publisher() {
480 inline const ::ignition::msgs::Publish& TopicInfo::_internal_publisher(
int index)
const {
481 return publisher_.Get(index);
483 inline const ::ignition::msgs::Publish& TopicInfo::publisher(
int index)
const {
485 return _internal_publisher(index);
487 inline ::ignition::msgs::Publish* TopicInfo::_internal_add_publisher() {
488 return publisher_.Add();
490 inline ::ignition::msgs::Publish* TopicInfo::add_publisher() {
492 return _internal_add_publisher();
494 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Publish >&
495 TopicInfo::publisher()
const {
501 inline int TopicInfo::_internal_subscriber_size()
const {
502 return subscriber_.size();
504 inline int TopicInfo::subscriber_size()
const {
505 return _internal_subscriber_size();
507 inline ::ignition::msgs::Subscribe* TopicInfo::mutable_subscriber(
int index) {
509 return subscriber_.Mutable(index);
511 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Subscribe >*
512 TopicInfo::mutable_subscriber() {
516 inline const ::ignition::msgs::Subscribe& TopicInfo::_internal_subscriber(
int index)
const {
517 return subscriber_.Get(index);
519 inline const ::ignition::msgs::Subscribe& TopicInfo::subscriber(
int index)
const {
521 return _internal_subscriber(index);
523 inline ::ignition::msgs::Subscribe* TopicInfo::_internal_add_subscriber() {
524 return subscriber_.Add();
526 inline ::ignition::msgs::Subscribe* TopicInfo::add_subscriber() {
528 return _internal_add_subscriber();
530 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Subscribe >&
531 TopicInfo::subscriber()
const {
537 #pragma GCC diagnostic pop
554 #include <google/protobuf/port_undef.inc>
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2ftopic_5finfo_2eproto
TopicInfo & operator=(const TopicInfo &from)
Definition: build/ignition-msgs8/include/ignition/msgs/topic_info.pb.h:98
static void InitAsDefaultInstance()
TopicInfo & operator=(TopicInfo &&from) noexcept
Definition: build/ignition-msgs8/include/ignition/msgs/topic_info.pb.h:102
TopicInfo(const TopicInfo &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: build/ignition-msgs8/include/ignition/msgs/topic_info.pb.h:117
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Publish > * mutable_publisher()
TopicInfo * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: build/ignition-msgs8/include/ignition/msgs/topic_info.pb.h:153
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Subscribe > & subscriber() const
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/topic_info.pb.h:111
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: build/ignition-msgs8/include/ignition/msgs/topic_info.pb.h:141
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Publish > & publisher() const
::ignition::msgs::Publish * add_publisher()
TopicInfo()
Definition: build/ignition-msgs8/include/ignition/msgs/topic_info.pb.h:89
friend void swap(TopicInfo &a, TopicInfo &b)
Definition: build/ignition-msgs8/include/ignition/msgs/topic_info.pb.h:130
TopicInfo * New() const final
Definition: build/ignition-msgs8/include/ignition/msgs/topic_info.pb.h:149
void set_msg_type(std::string &&value)
TopicInfo(TopicInfo &&from) noexcept
Definition: build/ignition-msgs8/include/ignition/msgs/topic_info.pb.h:93
::ignition::msgs::Subscribe * mutable_subscriber(int index)
void Swap(TopicInfo *other)
Definition: build/ignition-msgs8/include/ignition/msgs/topic_info.pb.h:133
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 MergeFrom(const TopicInfo &from)
std::string * mutable_msg_type()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/topic_info.pb.h:114
::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: build/ignition-msgs8/include/ignition/msgs/topic_info.pb.h:123
int subscriber_size() const
void set_msg_type(const char *value)
void set_msg_type(const std::string &value)
std::unique_ptr< TopicInfo > TopicInfoUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/topic_info.pb.h:540
std::shared_ptr< TopicInfo > TopicInfoSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/topic_info.pb.h:542
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::shared_ptr< const TopicInfo > ConstTopicInfoSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/topic_info.pb.h:543
IGNITION_MSGS_VISIBLE TopicInfoDefaultTypeInternal _TopicInfo_default_instance_
std::unique_ptr< const TopicInfo > ConstTopicInfoUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/topic_info.pb.h:541
Definition: build/ignition-msgs8/include/ignition/msgs/actor.pb.h:53
Definition: build/ignition-msgs8/include/ignition/msgs/topic_info.pb.h:59
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)