4 #ifndef PROTOBUF_ignition_2fmsgs_2fsubscribe_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2fsubscribe_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
Subscribe :
public ::google::protobuf::Message {
68 static const ::google::protobuf::Descriptor* descriptor();
69 static const Subscribe& default_instance();
77 Subscribe* New(::google::protobuf::Arena* arena)
const;
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_header()
const;
119 static const int kHeaderFieldNumber = 1;
120 const ::ignition::msgs::Header& header()
const;
127 static const int kTopicFieldNumber = 2;
128 const ::std::string& topic()
const;
129 void set_topic(const ::std::string& value);
130 void set_topic(
const char* value);
131 void set_topic(
const char* value,
size_t size);
138 static const int kHostFieldNumber = 3;
139 const ::std::string& host()
const;
140 void set_host(const ::std::string& value);
141 void set_host(
const char* value);
142 void set_host(
const char* value,
size_t size);
149 static const int kPortFieldNumber = 4;
150 ::google::protobuf::uint32 port()
const;
151 void set_port(::google::protobuf::uint32 value);
154 void clear_msg_type();
155 static const int kMsgTypeFieldNumber = 5;
156 const ::std::string& msg_type()
const;
157 void set_msg_type(const ::std::string& value);
158 void set_msg_type(
const char* value);
159 void set_msg_type(
const char* value,
size_t size);
162 void set_allocated_msg_type(::
std::string* msg_type);
165 void clear_latching();
166 static const int kLatchingFieldNumber = 6;
167 bool latching()
const;
168 void set_latching(
bool value);
173 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
174 bool _is_default_instance_;
176 ::google::protobuf::internal::ArenaStringPtr topic_;
177 ::google::protobuf::internal::ArenaStringPtr host_;
178 ::google::protobuf::internal::ArenaStringPtr msg_type_;
179 ::google::protobuf::uint32 port_;
181 mutable int _cached_size_;
186 void InitAsDefaultInstance();
194 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 199 return !_is_default_instance_ && header_ != NULL;
202 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
207 return header_ != NULL ? *header_ : *default_instance_->header_;
211 if (header_ == NULL) {
212 header_ = new ::ignition::msgs::Header;
237 topic_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
241 return topic_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
245 topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
250 topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
255 topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
256 ::
std::string(reinterpret_cast<const char*>(value), size));
262 return topic_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
267 return topic_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
275 topic_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), topic);
281 host_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
285 return host_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
289 host_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
294 host_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
299 host_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
300 ::
std::string(reinterpret_cast<const char*>(value), size));
306 return host_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
311 return host_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
319 host_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), host);
339 msg_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
343 return msg_type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
347 msg_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
352 msg_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
357 msg_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
358 ::
std::string(reinterpret_cast<const char*>(value), size));
364 return msg_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
369 return msg_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
372 if (msg_type != NULL) {
377 msg_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), msg_type);
395 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 411 #endif // PROTOBUF_ignition_2fmsgs_2fsubscribe_2eproto__INCLUDED void set_allocated_msg_type(::std::string *msg_type)
Definition: subscribe.pb.h:371
void clear_topic()
Definition: subscribe.pb.h:236
::std::string * mutable_topic()
Definition: subscribe.pb.h:259
std::unique_ptr< Subscribe > SubscribeUniquePtr
Definition: subscribe.pb.h:397
Definition: subscribe.pb.h:56
std::unique_ptr< const Subscribe > ConstSubscribeUniquePtr
Definition: subscribe.pb.h:398
void set_port(::google::protobuf::uint32 value)
Definition: subscribe.pb.h:331
::std::string * release_msg_type()
Definition: subscribe.pb.h:366
::std::string * release_topic()
Definition: subscribe.pb.h:264
void set_allocated_host(::std::string *host)
Definition: subscribe.pb.h:313
::std::string * mutable_msg_type()
Definition: subscribe.pb.h:361
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fsubscribe_2eproto()
void set_allocated_header(::ignition::msgs::Header *header)
Definition: subscribe.pb.h:224
std::shared_ptr< const Subscribe > ConstSubscribeSharedPtr
Definition: subscribe.pb.h:400
void protobuf_ShutdownFile_ignition_2fmsgs_2fsubscribe_2eproto()
void clear_host()
Definition: subscribe.pb.h:280
::ignition::msgs::Header * mutable_header()
Definition: subscribe.pb.h:209
void set_latching(bool value)
Definition: subscribe.pb.h:389
void protobuf_AssignDesc_ignition_2fmsgs_2fsubscribe_2eproto()
bool has_header() const
Definition: subscribe.pb.h:198
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: subscribe.pb.h:92
void set_msg_type(const ::std::string &value)
Definition: subscribe.pb.h:345
void set_allocated_topic(::std::string *topic)
Definition: subscribe.pb.h:269
Subscribe * New() const
Definition: subscribe.pb.h:75
const ::std::string & host() const
Definition: subscribe.pb.h:283
const ::std::string & msg_type() const
Definition: subscribe.pb.h:341
void clear_port()
Definition: subscribe.pb.h:324
Subscribe & operator=(const Subscribe &from)
Definition: subscribe.pb.h:63
const ::std::string & topic() const
Definition: subscribe.pb.h:239
void clear_latching()
Definition: subscribe.pb.h:382
void clear_msg_type()
Definition: subscribe.pb.h:338
::ignition::msgs::Header * release_header()
Definition: subscribe.pb.h:217
std::shared_ptr< Subscribe > SubscribeSharedPtr
Definition: subscribe.pb.h:399
bool latching() const
Definition: subscribe.pb.h:385
void set_host(const ::std::string &value)
Definition: subscribe.pb.h:287
::google::protobuf::uint32 port() const
Definition: subscribe.pb.h:327
::std::string * release_host()
Definition: subscribe.pb.h:308
void clear_header()
Definition: subscribe.pb.h:201
int GetCachedSize() const
Definition: subscribe.pb.h:95
void set_topic(const ::std::string &value)
Definition: subscribe.pb.h:243
::std::string * mutable_host()
Definition: subscribe.pb.h:303
const ::ignition::msgs::Header & header() const
Definition: subscribe.pb.h:205