4 #ifndef PROTOBUF_ignition_2fmsgs_2ftopic_5finfo_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2ftopic_5finfo_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> 34 #pragma GCC system_header 37 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 40 #include <sys/sysmacros.h> 58 class IGNITION_MSGS_VISIBLE
TopicInfo :
public ::google::protobuf::Message {
70 static const ::google::protobuf::Descriptor* descriptor();
71 static const TopicInfo& default_instance();
79 TopicInfo* New(::google::protobuf::Arena* arena)
const;
80 void CopyFrom(const ::google::protobuf::Message& from);
81 void MergeFrom(const ::google::protobuf::Message& from);
85 bool IsInitialized()
const;
88 bool MergePartialFromCodedStream(
89 ::google::protobuf::io::CodedInputStream* input);
90 void SerializeWithCachedSizes(
91 ::google::protobuf::io::CodedOutputStream* output)
const;
92 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
93 bool deterministic, ::google::protobuf::uint8* output)
const;
95 return InternalSerializeWithCachedSizesToArray(
false, output);
101 void SetCachedSize(
int size)
const;
104 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
105 return _internal_metadata_.arena();
107 inline void* MaybeArenaPtr()
const {
108 return _internal_metadata_.raw_arena_ptr();
112 ::google::protobuf::Metadata GetMetadata()
const;
119 bool has_header()
const;
121 static const int kHeaderFieldNumber = 1;
122 const ::ignition::msgs::Header& header()
const;
128 void clear_msg_type();
129 static const int kMsgTypeFieldNumber = 2;
130 const ::std::string& msg_type()
const;
131 void set_msg_type(const ::std::string& value);
132 void set_msg_type(
const char* value);
133 void set_msg_type(
const char* value,
size_t size);
136 void set_allocated_msg_type(::
std::string* msg_type);
139 int publisher_size()
const;
140 void clear_publisher();
141 static const int kPublisherFieldNumber = 3;
142 const ::ignition::msgs::Publish& publisher(
int index)
const;
145 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Publish >*
147 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Publish >&
151 int subscriber_size()
const;
152 void clear_subscriber();
153 static const int kSubscriberFieldNumber = 4;
154 const ::ignition::msgs::Subscribe& subscriber(
int index)
const;
157 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Subscribe >*
158 mutable_subscriber();
159 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Subscribe >&
165 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
166 bool _is_default_instance_;
168 ::google::protobuf::internal::ArenaStringPtr msg_type_;
169 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Publish > publisher_;
170 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Subscribe > subscriber_;
171 mutable int _cached_size_;
176 void InitAsDefaultInstance();
184 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 189 return !_is_default_instance_ && header_ != NULL;
192 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
197 return header_ != NULL ? *header_ : *default_instance_->header_;
201 if (header_ == NULL) {
202 header_ = new ::ignition::msgs::Header;
227 msg_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
231 return msg_type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
235 msg_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
240 msg_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
245 msg_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
246 ::
std::string(reinterpret_cast<const char*>(value), size));
252 return msg_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
257 return msg_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
260 if (msg_type != NULL) {
265 msg_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), msg_type);
271 return publisher_.size();
278 return publisher_.Get(index);
282 return publisher_.Mutable(index);
286 return publisher_.Add();
288 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Publish >*
293 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Publish >&
301 return subscriber_.size();
308 return subscriber_.Get(index);
312 return subscriber_.Mutable(index);
316 return subscriber_.Add();
318 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Subscribe >*
323 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Subscribe >&
329 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 345 #endif // PROTOBUF_ignition_2fmsgs_2ftopic_5finfo_2eproto__INCLUDED void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2ftopic_5finfo_2eproto()
const ::std::string & msg_type() const
Definition: topic_info.pb.h:229
int GetCachedSize() const
Definition: topic_info.pb.h:97
TopicInfo & operator=(const TopicInfo &from)
Definition: topic_info.pb.h:65
const ::ignition::msgs::Header & header() const
Definition: topic_info.pb.h:195
Definition: subscribe.pb.h:56
::ignition::msgs::Publish * add_publisher()
Definition: topic_info.pb.h:284
void clear_publisher()
Definition: topic_info.pb.h:273
void set_allocated_header(::ignition::msgs::Header *header)
Definition: topic_info.pb.h:214
std::shared_ptr< TopicInfo > TopicInfoSharedPtr
Definition: topic_info.pb.h:333
::std::string * release_msg_type()
Definition: topic_info.pb.h:254
std::shared_ptr< const TopicInfo > ConstTopicInfoSharedPtr
Definition: topic_info.pb.h:334
int publisher_size() const
Definition: topic_info.pb.h:270
TopicInfo * New() const
Definition: topic_info.pb.h:77
void clear_subscriber()
Definition: topic_info.pb.h:303
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Publish > & publisher() const
Definition: topic_info.pb.h:294
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: topic_info.pb.h:94
void set_msg_type(const ::std::string &value)
Definition: topic_info.pb.h:233
void protobuf_AssignDesc_ignition_2fmsgs_2ftopic_5finfo_2eproto()
std::unique_ptr< TopicInfo > TopicInfoUniquePtr
Definition: topic_info.pb.h:331
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Subscribe > * mutable_subscriber()
Definition: topic_info.pb.h:319
Definition: topic_info.pb.h:58
::ignition::msgs::Header * mutable_header()
Definition: topic_info.pb.h:199
::std::string * mutable_msg_type()
Definition: topic_info.pb.h:249
void set_allocated_msg_type(::std::string *msg_type)
Definition: topic_info.pb.h:259
void protobuf_ShutdownFile_ignition_2fmsgs_2ftopic_5finfo_2eproto()
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Subscribe > & subscriber() const
Definition: topic_info.pb.h:324
bool has_header() const
Definition: topic_info.pb.h:188
std::unique_ptr< const TopicInfo > ConstTopicInfoUniquePtr
Definition: topic_info.pb.h:332
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Publish > * mutable_publisher()
Definition: topic_info.pb.h:289
void clear_msg_type()
Definition: topic_info.pb.h:226
int subscriber_size() const
Definition: topic_info.pb.h:300
Definition: publish.pb.h:56
::ignition::msgs::Header * release_header()
Definition: topic_info.pb.h:207
void clear_header()
Definition: topic_info.pb.h:191
::ignition::msgs::Subscribe * add_subscriber()
Definition: topic_info.pb.h:314