4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fpublish_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fpublish_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>
36 #pragma GCC system_header
39 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
42 #include <sys/sysmacros.h>
47 #include <google/protobuf/port_def.inc>
48 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fpublish_2eproto IGNITION_MSGS_VISIBLE
49 PROTOBUF_NAMESPACE_OPEN
53 PROTOBUF_NAMESPACE_CLOSE
57 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
59 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
61 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
63 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
64 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
65 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
71 class PublishDefaultTypeInternal;
75 PROTOBUF_NAMESPACE_OPEN
76 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Publish* Arena::CreateMaybeMessage<::ignition::msgs::Publish>(Arena*);
77 PROTOBUF_NAMESPACE_CLOSE
83 class IGNITION_MSGS_VISIBLE Publish PROTOBUF_FINAL :
84 public ::PROTOBUF_NAMESPACE_ID::Message {
92 *
this = ::std::move(from);
99 inline Publish&
operator=(Publish&& from) noexcept {
100 if (GetArena() == from.GetArena()) {
101 if (
this != &from) InternalSwap(&from);
108 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
109 return GetDescriptor();
112 return GetMetadataStatic().descriptor;
115 return GetMetadataStatic().reflection;
120 return reinterpret_cast<const Publish*
>(
123 static constexpr
int kIndexInFileMessages =
126 friend void swap(Publish& a, Publish& b) {
129 inline void Swap(Publish* other) {
130 if (other ==
this)
return;
131 if (GetArena() == other->GetArena()) {
134 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
138 if (other ==
this)
return;
139 GOOGLE_DCHECK(GetArena() == other->GetArena());
145 inline Publish*
New() const final {
146 return CreateMaybeMessage<Publish>(
nullptr);
149 Publish*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
150 return CreateMaybeMessage<Publish>(arena);
152 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
153 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
156 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
157 bool IsInitialized() const final;
159 size_t ByteSizeLong() const final;
160 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
161 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
162 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
163 int GetCachedSize() const final {
return _cached_size_.Get(); }
166 inline void SharedCtor();
167 inline void SharedDtor();
168 void SetCachedSize(
int size)
const final;
169 void InternalSwap(Publish* other);
170 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
171 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
172 return "ignition.msgs.Publish";
175 explicit Publish(::PROTOBUF_NAMESPACE_ID::Arena* arena);
177 static void ArenaDtor(
void*
object);
178 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
183 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
195 kTopicFieldNumber = 2,
196 kMsgTypeFieldNumber = 3,
197 kHostFieldNumber = 4,
198 kHeaderFieldNumber = 1,
199 kPortFieldNumber = 5,
213 void _internal_set_topic(
const std::string& value);
229 void _internal_set_msg_type(
const std::string& value);
252 bool _internal_has_header()
const;
255 const ::ignition::msgs::Header&
header()
const;
260 const ::ignition::msgs::Header& _internal_header()
const;
261 ::ignition::msgs::Header* _internal_mutable_header();
264 ::ignition::msgs::Header* header);
269 ::PROTOBUF_NAMESPACE_ID::uint32
port()
const;
270 void set_port(::PROTOBUF_NAMESPACE_ID::uint32 value);
272 ::PROTOBUF_NAMESPACE_ID::uint32 _internal_port()
const;
273 void _internal_set_port(::PROTOBUF_NAMESPACE_ID::uint32 value);
280 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
281 typedef void InternalArenaConstructable_;
282 typedef void DestructorSkippable_;
283 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr topic_;
284 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr msg_type_;
285 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr host_;
286 ::ignition::msgs::Header* header_;
287 ::PROTOBUF_NAMESPACE_ID::uint32 port_;
288 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
289 friend struct ::TableStruct_ignition_2fmsgs_2fpublish_2eproto;
297 #pragma GCC diagnostic push
298 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
303 inline bool Publish::_internal_has_header()
const {
304 return this != internal_default_instance() && header_ !=
nullptr;
306 inline bool Publish::has_header()
const {
307 return _internal_has_header();
309 inline const ::ignition::msgs::Header& Publish::_internal_header()
const {
310 const ::ignition::msgs::Header* p = header_;
311 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Header&
>(
314 inline const ::ignition::msgs::Header& Publish::header()
const {
316 return _internal_header();
318 inline void Publish::unsafe_arena_set_allocated_header(
319 ::ignition::msgs::Header* header) {
320 if (GetArena() ==
nullptr) {
321 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
331 inline ::ignition::msgs::Header* Publish::release_header() {
333 ::ignition::msgs::Header* temp = header_;
335 if (GetArena() !=
nullptr) {
336 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
340 inline ::ignition::msgs::Header* Publish::unsafe_arena_release_header() {
343 ::ignition::msgs::Header* temp = header_;
347 inline ::ignition::msgs::Header* Publish::_internal_mutable_header() {
349 if (header_ ==
nullptr) {
350 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
355 inline ::ignition::msgs::Header* Publish::mutable_header() {
357 return _internal_mutable_header();
359 inline void Publish::set_allocated_header(::ignition::msgs::Header* header) {
360 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
361 if (message_arena ==
nullptr) {
362 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
365 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
366 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header)->GetArena();
367 if (message_arena != submessage_arena) {
368 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
369 message_arena, header, submessage_arena);
380 inline void Publish::clear_topic() {
381 topic_.ClearToEmpty();
385 return _internal_topic();
387 inline void Publish::set_topic(
const std::string& value) {
388 _internal_set_topic(value);
393 return _internal_mutable_topic();
395 inline const std::string& Publish::_internal_topic()
const {
398 inline void Publish::_internal_set_topic(
const std::string& value) {
400 topic_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
402 inline void Publish::set_topic(
std::string&& value) {
405 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
408 inline void Publish::set_topic(
const char* value) {
409 GOOGLE_DCHECK(value !=
nullptr);
411 topic_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(value), GetArena());
414 inline void Publish::set_topic(
const char* value,
417 topic_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(
418 reinterpret_cast<const char*
>(value), size), GetArena());
421 inline std::string* Publish::_internal_mutable_topic() {
423 return topic_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
427 return topic_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
429 inline void Publish::set_allocated_topic(
std::string* topic) {
430 if (topic !=
nullptr) {
435 topic_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), topic,
441 inline void Publish::clear_msg_type() {
442 msg_type_.ClearToEmpty();
444 inline const std::string& Publish::msg_type()
const {
446 return _internal_msg_type();
448 inline void Publish::set_msg_type(
const std::string& value) {
449 _internal_set_msg_type(value);
454 return _internal_mutable_msg_type();
456 inline const std::string& Publish::_internal_msg_type()
const {
457 return msg_type_.Get();
459 inline void Publish::_internal_set_msg_type(
const std::string& value) {
461 msg_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
463 inline void Publish::set_msg_type(
std::string&& value) {
466 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
469 inline void Publish::set_msg_type(
const char* value) {
470 GOOGLE_DCHECK(value !=
nullptr);
472 msg_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(value), GetArena());
475 inline void Publish::set_msg_type(
const char* value,
478 msg_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(
479 reinterpret_cast<const char*
>(value), size), GetArena());
482 inline std::string* Publish::_internal_mutable_msg_type() {
484 return msg_type_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
488 return msg_type_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
490 inline void Publish::set_allocated_msg_type(
std::string* msg_type) {
491 if (msg_type !=
nullptr) {
496 msg_type_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), msg_type,
502 inline void Publish::clear_host() {
503 host_.ClearToEmpty();
507 return _internal_host();
509 inline void Publish::set_host(
const std::string& value) {
510 _internal_set_host(value);
515 return _internal_mutable_host();
517 inline const std::string& Publish::_internal_host()
const {
520 inline void Publish::_internal_set_host(
const std::string& value) {
522 host_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
524 inline void Publish::set_host(
std::string&& value) {
527 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
530 inline void Publish::set_host(
const char* value) {
531 GOOGLE_DCHECK(value !=
nullptr);
533 host_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(value), GetArena());
536 inline void Publish::set_host(
const char* value,
539 host_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(
540 reinterpret_cast<const char*
>(value), size), GetArena());
543 inline std::string* Publish::_internal_mutable_host() {
545 return host_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
549 return host_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
551 inline void Publish::set_allocated_host(
std::string* host) {
552 if (host !=
nullptr) {
557 host_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), host,
563 inline void Publish::clear_port() {
566 inline ::PROTOBUF_NAMESPACE_ID::uint32 Publish::_internal_port()
const {
569 inline ::PROTOBUF_NAMESPACE_ID::uint32 Publish::port()
const {
571 return _internal_port();
573 inline void Publish::_internal_set_port(::PROTOBUF_NAMESPACE_ID::uint32 value) {
577 inline void Publish::set_port(::PROTOBUF_NAMESPACE_ID::uint32 value) {
578 _internal_set_port(value);
583 #pragma GCC diagnostic pop
600 #include <google/protobuf/port_undef.inc>
void Swap(Publish *other)
Definition: publish.pb.h:129
friend void swap(Publish &a, Publish &b)
Definition: publish.pb.h:126
static const Publish & default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: publish.pb.h:114
void set_host(std::string &&value)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::ignition::msgs::Header * release_header()
std::string * release_host()
::ignition::msgs::Header * mutable_header()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: publish.pb.h:108
const std::string & topic() const
void UnsafeArenaSwap(Publish *other)
Definition: publish.pb.h:137
void set_allocated_msg_type(std::string *msg_type)
void set_topic(const std::string &value)
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void set_allocated_host(std::string *host)
void set_host(const std::string &value)
::PROTOBUF_NAMESPACE_ID::uint32 port() const
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
void set_msg_type(std::string &&value)
void set_host(const char *value)
void set_allocated_topic(std::string *topic)
::ignition::msgs::Header * unsafe_arena_release_header()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void set_topic(const char *value, size_t size)
void set_topic(std::string &&value)
std::string * release_msg_type()
std::string * mutable_host()
const std::string & msg_type() const
Publish * New() const final
Definition: publish.pb.h:145
Publish & operator=(const Publish &from)
Definition: publish.pb.h:95
void MergeFrom(const Publish &from)
Publish()
Definition: publish.pb.h:86
void set_msg_type(const char *value, size_t size)
void set_allocated_header(::ignition::msgs::Header *header)
Publish * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: publish.pb.h:149
std::string * mutable_msg_type()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
Publish(Publish &&from) noexcept
Definition: publish.pb.h:90
void set_host(const char *value, size_t size)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: publish.pb.h:111
void set_topic(const char *value)
Publish(const Publish &from)
const std::string & host() const
static const Publish * internal_default_instance()
Definition: publish.pb.h:119
Publish & operator=(Publish &&from) noexcept
Definition: publish.pb.h:99
std::string * release_topic()
Publish(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void set_port(::PROTOBUF_NAMESPACE_ID::uint32 value)
std::string * mutable_topic()
void set_msg_type(const char *value)
void set_msg_type(const std::string &value)
const ::ignition::msgs::Header & header() const
void CopyFrom(const Publish &from)
std::shared_ptr< const Publish > ConstPublishSharedPtr
Definition: publish.pb.h:589
std::unique_ptr< const Publish > ConstPublishUniquePtr
Definition: publish.pb.h:587
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
IGNITION_MSGS_VISIBLE PublishDefaultTypeInternal _Publish_default_instance_
std::unique_ptr< Publish > PublishUniquePtr
Definition: publish.pb.h:586
std::shared_ptr< Publish > PublishSharedPtr
Definition: publish.pb.h:588
Definition: actor.pb.h:52
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fpublish_2eproto
Definition: publish.pb.h:56
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)