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 < 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>
37 #pragma GCC system_header
40 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
43 #include <sys/sysmacros.h>
48 #include <google/protobuf/port_def.inc>
49 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fpublish_2eproto IGNITION_MSGS_VISIBLE
50 PROTOBUF_NAMESPACE_OPEN
54 PROTOBUF_NAMESPACE_CLOSE
58 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
60 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
62 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
64 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
65 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
66 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
72 class PublishDefaultTypeInternal;
76 PROTOBUF_NAMESPACE_OPEN
77 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Publish* Arena::CreateMaybeMessage<::ignition::msgs::Publish>(Arena*);
78 PROTOBUF_NAMESPACE_CLOSE
84 class IGNITION_MSGS_VISIBLE Publish PROTOBUF_FINAL :
85 public ::PROTOBUF_NAMESPACE_ID::Message {
93 *
this = ::std::move(from);
101 if (GetArena() == from.GetArena()) {
102 if (
this != &from) InternalSwap(&from);
109 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
110 return GetDescriptor();
113 return GetMetadataStatic().descriptor;
116 return GetMetadataStatic().reflection;
122 return reinterpret_cast<const Publish*
>(
125 static constexpr
int kIndexInFileMessages =
128 friend void swap(Publish& a, Publish& b) {
131 inline void Swap(Publish* other) {
132 if (other ==
this)
return;
133 if (GetArena() == other->GetArena()) {
136 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
140 if (other ==
this)
return;
141 GOOGLE_DCHECK(GetArena() == other->GetArena());
147 inline Publish*
New() const final {
148 return CreateMaybeMessage<Publish>(
nullptr);
151 Publish*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
152 return CreateMaybeMessage<Publish>(arena);
154 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
155 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
158 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
159 bool IsInitialized() const final;
161 size_t ByteSizeLong() const final;
162 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
163 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
164 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
165 int GetCachedSize() const final {
return _cached_size_.Get(); }
168 inline void SharedCtor();
169 inline void SharedDtor();
170 void SetCachedSize(
int size)
const final;
171 void InternalSwap(Publish* other);
172 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
173 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
174 return "ignition.msgs.Publish";
177 explicit Publish(::PROTOBUF_NAMESPACE_ID::Arena* arena);
179 static void ArenaDtor(
void*
object);
180 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
185 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
197 kTopicFieldNumber = 2,
198 kMsgTypeFieldNumber = 3,
199 kHostFieldNumber = 4,
200 kHeaderFieldNumber = 1,
201 kPortFieldNumber = 5,
213 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(
"The unsafe_arena_ accessors for"
214 " string fields are deprecated and will be removed in a"
216 std::
string* unsafe_arena_release_topic();
217 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
218 "
string fields are deprecated and will be removed in a"
220 void unsafe_arena_set_allocated_topic(
223 const
std::
string& _internal_topic() const;
224 void _internal_set_topic(const
std::
string& value);
225 std::
string* _internal_mutable_topic();
229 void clear_msg_type();
230 const
std::
string& msg_type() const;
231 void set_msg_type(const
std::
string& value);
232 void set_msg_type(
std::
string&& value);
233 void set_msg_type(const
char* value);
234 void set_msg_type(const
char* value,
size_t size);
235 std::
string* mutable_msg_type();
236 std::
string* release_msg_type();
237 void set_allocated_msg_type(
std::
string* msg_type);
238 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
239 "
string fields are deprecated and will be removed in a"
241 std::
string* unsafe_arena_release_msg_type();
242 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
243 "
string fields are deprecated and will be removed in a"
245 void unsafe_arena_set_allocated_msg_type(
246 std::
string* msg_type);
248 const
std::
string& _internal_msg_type() const;
249 void _internal_set_msg_type(const
std::
string& value);
250 std::
string* _internal_mutable_msg_type();
255 const
std::
string& host() const;
256 void set_host(const
std::
string& value);
257 void set_host(
std::
string&& value);
258 void set_host(const
char* value);
259 void set_host(const
char* value,
size_t size);
260 std::
string* mutable_host();
261 std::
string* release_host();
262 void set_allocated_host(
std::
string* host);
263 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
264 "
string fields are deprecated and will be removed in a"
266 std::
string* unsafe_arena_release_host();
267 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
268 "
string fields are deprecated and will be removed in a"
270 void unsafe_arena_set_allocated_host(
273 const
std::
string& _internal_host() const;
274 void _internal_set_host(const
std::
string& value);
275 std::
string* _internal_mutable_host();
279 bool has_header() const;
281 bool _internal_has_header() const;
287 void set_allocated_header(::
ignition::msgs::Header* header);
289 const ::
ignition::msgs::Header& _internal_header() const;
290 ::
ignition::msgs::Header* _internal_mutable_header();
292 void unsafe_arena_set_allocated_header(
294 ::
ignition::msgs::Header* unsafe_arena_release_header();
298 ::PROTOBUF_NAMESPACE_ID::uint32 port() const;
299 void set_port(::PROTOBUF_NAMESPACE_ID::uint32 value);
301 ::PROTOBUF_NAMESPACE_ID::uint32 _internal_port() const;
302 void _internal_set_port(::PROTOBUF_NAMESPACE_ID::uint32 value);
309 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
310 typedef
void InternalArenaConstructable_;
311 typedef
void DestructorSkippable_;
312 ::PROTOBUF_NAMESPACE_ID::
internal::ArenaStringPtr topic_;
313 ::PROTOBUF_NAMESPACE_ID::
internal::ArenaStringPtr msg_type_;
314 ::PROTOBUF_NAMESPACE_ID::
internal::ArenaStringPtr host_;
316 ::PROTOBUF_NAMESPACE_ID::uint32 port_;
317 mutable ::PROTOBUF_NAMESPACE_ID::
internal::CachedSize _cached_size_;
326 #pragma GCC diagnostic push
327 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
332 inline bool Publish::_internal_has_header()
const {
333 return this != internal_default_instance() && header_ !=
nullptr;
335 inline bool Publish::has_header()
const {
336 return _internal_has_header();
338 inline const ::ignition::msgs::Header& Publish::_internal_header()
const {
339 const ::ignition::msgs::Header* p = header_;
340 return p !=
nullptr ? *p : *
reinterpret_cast<const ::ignition::msgs::Header*
>(
343 inline const ::ignition::msgs::Header& Publish::header()
const {
345 return _internal_header();
347 inline void Publish::unsafe_arena_set_allocated_header(
348 ::ignition::msgs::Header* header) {
349 if (GetArena() ==
nullptr) {
350 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
360 inline ::ignition::msgs::Header* Publish::release_header() {
361 auto temp = unsafe_arena_release_header();
362 if (GetArena() !=
nullptr) {
363 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
367 inline ::ignition::msgs::Header* Publish::unsafe_arena_release_header() {
370 ::ignition::msgs::Header* temp = header_;
374 inline ::ignition::msgs::Header* Publish::_internal_mutable_header() {
376 if (header_ ==
nullptr) {
377 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
382 inline ::ignition::msgs::Header* Publish::mutable_header() {
384 return _internal_mutable_header();
386 inline void Publish::set_allocated_header(::ignition::msgs::Header* header) {
387 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
388 if (message_arena ==
nullptr) {
389 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
392 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
393 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header)->GetArena();
394 if (message_arena != submessage_arena) {
395 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
396 message_arena, header, submessage_arena);
407 inline void Publish::clear_topic() {
408 topic_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
412 return _internal_topic();
414 inline void Publish::set_topic(
const std::string& value) {
415 _internal_set_topic(value);
420 return _internal_mutable_topic();
422 inline const std::string& Publish::_internal_topic()
const {
425 inline void Publish::_internal_set_topic(
const std::string& value) {
427 topic_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
429 inline void Publish::set_topic(
std::string&& value) {
432 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::move(value), GetArena());
435 inline void Publish::set_topic(
const char* value) {
436 GOOGLE_DCHECK(value !=
nullptr);
438 topic_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::string(value),
442 inline void Publish::set_topic(
const char* value,
445 topic_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::string(
446 reinterpret_cast<const char*
>(value), size), GetArena());
449 inline std::string* Publish::_internal_mutable_topic() {
451 return topic_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
455 return topic_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
457 inline void Publish::set_allocated_topic(
std::string* topic) {
458 if (topic !=
nullptr) {
463 topic_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), topic,
467 inline std::string* Publish::unsafe_arena_release_topic() {
469 GOOGLE_DCHECK(GetArena() !=
nullptr);
471 return topic_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
474 inline void Publish::unsafe_arena_set_allocated_topic(
476 GOOGLE_DCHECK(GetArena() !=
nullptr);
477 if (topic !=
nullptr) {
482 topic_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
488 inline void Publish::clear_msg_type() {
489 msg_type_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
491 inline const std::string& Publish::msg_type()
const {
493 return _internal_msg_type();
495 inline void Publish::set_msg_type(
const std::string& value) {
496 _internal_set_msg_type(value);
501 return _internal_mutable_msg_type();
503 inline const std::string& Publish::_internal_msg_type()
const {
504 return msg_type_.Get();
506 inline void Publish::_internal_set_msg_type(
const std::string& value) {
508 msg_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
510 inline void Publish::set_msg_type(
std::string&& value) {
513 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::move(value), GetArena());
516 inline void Publish::set_msg_type(
const char* value) {
517 GOOGLE_DCHECK(value !=
nullptr);
519 msg_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::string(value),
523 inline void Publish::set_msg_type(
const char* value,
526 msg_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::string(
527 reinterpret_cast<const char*
>(value), size), GetArena());
530 inline std::string* Publish::_internal_mutable_msg_type() {
532 return msg_type_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
536 return msg_type_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
538 inline void Publish::set_allocated_msg_type(
std::string* msg_type) {
539 if (msg_type !=
nullptr) {
544 msg_type_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), msg_type,
548 inline std::string* Publish::unsafe_arena_release_msg_type() {
550 GOOGLE_DCHECK(GetArena() !=
nullptr);
552 return msg_type_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
555 inline void Publish::unsafe_arena_set_allocated_msg_type(
557 GOOGLE_DCHECK(GetArena() !=
nullptr);
558 if (msg_type !=
nullptr) {
563 msg_type_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
564 msg_type, GetArena());
569 inline void Publish::clear_host() {
570 host_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
574 return _internal_host();
576 inline void Publish::set_host(
const std::string& value) {
577 _internal_set_host(value);
582 return _internal_mutable_host();
584 inline const std::string& Publish::_internal_host()
const {
587 inline void Publish::_internal_set_host(
const std::string& value) {
589 host_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
591 inline void Publish::set_host(
std::string&& value) {
594 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::move(value), GetArena());
597 inline void Publish::set_host(
const char* value) {
598 GOOGLE_DCHECK(value !=
nullptr);
600 host_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::string(value),
604 inline void Publish::set_host(
const char* value,
607 host_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::string(
608 reinterpret_cast<const char*
>(value), size), GetArena());
611 inline std::string* Publish::_internal_mutable_host() {
613 return host_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
617 return host_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
619 inline void Publish::set_allocated_host(
std::string* host) {
620 if (host !=
nullptr) {
625 host_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), host,
629 inline std::string* Publish::unsafe_arena_release_host() {
631 GOOGLE_DCHECK(GetArena() !=
nullptr);
633 return host_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
636 inline void Publish::unsafe_arena_set_allocated_host(
638 GOOGLE_DCHECK(GetArena() !=
nullptr);
639 if (host !=
nullptr) {
644 host_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
650 inline void Publish::clear_port() {
653 inline ::PROTOBUF_NAMESPACE_ID::uint32 Publish::_internal_port()
const {
656 inline ::PROTOBUF_NAMESPACE_ID::uint32 Publish::port()
const {
658 return _internal_port();
660 inline void Publish::_internal_set_port(::PROTOBUF_NAMESPACE_ID::uint32 value) {
664 inline void Publish::set_port(::PROTOBUF_NAMESPACE_ID::uint32 value) {
665 _internal_set_port(value);
670 #pragma GCC diagnostic pop
687 #include <google/protobuf/port_undef.inc>
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fpublish_2eproto
static void InitAsDefaultInstance()
void Swap(Publish *other)
Definition: build/ignition-msgs8/include/ignition/msgs/publish.pb.h:131
friend void swap(Publish &a, Publish &b)
Definition: build/ignition-msgs8/include/ignition/msgs/publish.pb.h:128
static const Publish & default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: build/ignition-msgs8/include/ignition/msgs/publish.pb.h:115
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/publish.pb.h:109
const std::string & topic() const
void UnsafeArenaSwap(Publish *other)
Definition: build/ignition-msgs8/include/ignition/msgs/publish.pb.h:139
void set_topic(const std::string &value)
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void set_allocated_topic(std::string *topic)
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void set_topic(const char *value, size_t size)
void set_topic(std::string &&value)
Publish * New() const final
Definition: build/ignition-msgs8/include/ignition/msgs/publish.pb.h:147
Publish & operator=(const Publish &from)
Definition: build/ignition-msgs8/include/ignition/msgs/publish.pb.h:96
void MergeFrom(const Publish &from)
Publish()
Definition: build/ignition-msgs8/include/ignition/msgs/publish.pb.h:87
Publish * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: build/ignition-msgs8/include/ignition/msgs/publish.pb.h:151
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
Publish(Publish &&from) noexcept
Definition: build/ignition-msgs8/include/ignition/msgs/publish.pb.h:91
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/publish.pb.h:112
void set_topic(const char *value)
Publish(const Publish &from)
static const Publish * internal_default_instance()
Definition: build/ignition-msgs8/include/ignition/msgs/publish.pb.h:121
Publish & operator=(Publish &&from) noexcept
Definition: build/ignition-msgs8/include/ignition/msgs/publish.pb.h:100
std::string * release_topic()
Publish(::PROTOBUF_NAMESPACE_ID::Arena *arena)
std::string * mutable_topic()
void CopyFrom(const Publish &from)
std::shared_ptr< const Publish > ConstPublishSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/publish.pb.h:676
std::unique_ptr< const Publish > ConstPublishUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/publish.pb.h:674
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
IGNITION_MSGS_VISIBLE PublishDefaultTypeInternal _Publish_default_instance_
std::unique_ptr< Publish > PublishUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/publish.pb.h:673
std::shared_ptr< Publish > PublishSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/publish.pb.h:675
Definition: build/ignition-msgs8/include/ignition/msgs/actor.pb.h:53
Definition: build/ignition-msgs8/include/ignition/msgs/publish.pb.h:57
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)