4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2ftopic_5finfo_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2ftopic_5finfo_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < 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/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/unknown_field_set.h>
33 #include "gz/msgs/publish.pb.h"
34 #include "gz/msgs/subscribe.pb.h"
35 #include "gz/msgs/header.pb.h"
37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2ftopic_5finfo_2eproto GZ_MSGS_VISIBLE
42 static const ::google::protobuf::internal::ParseTableField entries[];
43 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
44 static const ::google::protobuf::internal::ParseTable schema[1];
45 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
46 static const ::google::protobuf::internal::SerializationTable serialization_table[];
47 static const ::google::protobuf::uint32 offsets[];
54 class TopicInfoDefaultTypeInternal;
60 template<> GZ_MSGS_VISIBLE ::gz::msgs::TopicInfo* Arena::CreateMaybeMessage<::gz::msgs::TopicInfo>(Arena*);
68 class GZ_MSGS_VISIBLE
TopicInfo :
public ::google::protobuf::Message {
82 *
this = ::std::move(from);
85 inline TopicInfo& operator=(TopicInfo&& from) noexcept {
86 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
87 if (
this != &from) InternalSwap(&from);
94 static const ::google::protobuf::Descriptor* descriptor();
95 static const TopicInfo& default_instance();
97 static void InitAsDefaultInstance();
99 return reinterpret_cast<const TopicInfo*
>(
102 static constexpr
int kIndexInFileMessages =
113 return CreateMaybeMessage<TopicInfo>(NULL);
117 return CreateMaybeMessage<TopicInfo>(arena);
119 void CopyFrom(const ::google::protobuf::Message& from)
final;
120 void MergeFrom(const ::google::protobuf::Message& from)
final;
124 bool IsInitialized() const final;
126 size_t ByteSizeLong() const final;
127 bool MergePartialFromCodedStream(
128 ::
google::protobuf::io::CodedInputStream* input) final;
129 void SerializeWithCachedSizes(
130 ::
google::protobuf::io::CodedOutputStream* output) const final;
131 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
132 bool deterministic, ::
google::protobuf::uint8* target) const final;
133 int GetCachedSize() const final {
return _cached_size_.Get(); }
138 void SetCachedSize(
int size)
const final;
141 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
144 inline void* MaybeArenaPtr()
const {
149 ::google::protobuf::Metadata GetMetadata() const final;
156 int publisher_size() const;
157 void clear_publisher();
158 static const
int kPublisherFieldNumber = 3;
159 ::
gz::msgs::
Publish* mutable_publisher(
int index);
162 const ::
gz::msgs::
Publish& publisher(
int index) const;
168 int subscriber_size() const;
169 void clear_subscriber();
170 static const
int kSubscriberFieldNumber = 4;
171 ::
gz::msgs::
Subscribe* mutable_subscriber(
int index);
173 mutable_subscriber();
174 const ::
gz::msgs::
Subscribe& subscriber(
int index) const;
180 void clear_msg_type();
181 static const
int kMsgTypeFieldNumber = 2;
182 const ::
std::
string& msg_type() const;
183 void set_msg_type(const ::
std::
string& value);
187 void set_msg_type(
const char* value);
188 void set_msg_type(
const char* value,
size_t size);
191 void set_allocated_msg_type(::
std::string* msg_type);
194 bool has_header()
const;
196 static const int kHeaderFieldNumber = 1;
198 const ::gz::msgs::Header& _internal_header()
const;
200 const ::gz::msgs::Header& header()
const;
208 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
209 ::google::protobuf::RepeatedPtrField< ::gz::msgs::Publish > publisher_;
210 ::google::protobuf::RepeatedPtrField< ::gz::msgs::Subscribe > subscriber_;
211 ::google::protobuf::internal::ArenaStringPtr msg_type_;
213 mutable ::google::protobuf::internal::CachedSize _cached_size_;
214 friend struct ::protobuf_gz_2fmsgs_2ftopic_5finfo_2eproto::TableStruct;
222 #pragma GCC diagnostic push
223 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
231 inline const ::gz::msgs::Header& TopicInfo::_internal_header()
const {
235 const ::gz::msgs::Header* p = header_;
249 if (header_ == NULL) {
250 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
257 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
258 if (message_arena == NULL) {
259 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
262 ::google::protobuf::Arena* submessage_arena = NULL;
263 if (message_arena != submessage_arena) {
264 header = ::google::protobuf::internal::GetOwnedMessage(
265 message_arena,
header, submessage_arena);
277 msg_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
281 return msg_type_.GetNoArena();
285 msg_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
291 msg_type_.SetNoArena(
292 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
297 GOOGLE_DCHECK(value != NULL);
299 msg_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
304 msg_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
305 ::
std::string(
reinterpret_cast<const char*
>(value), size));
311 return msg_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
316 return msg_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
324 msg_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
msg_type);
330 return publisher_.size();
334 return publisher_.Mutable(index);
336 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Publish >*
343 return publisher_.Get(index);
347 return publisher_.Add();
349 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Publish >&
357 return subscriber_.size();
361 return subscriber_.Mutable(index);
363 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Subscribe >*
370 return subscriber_.Get(index);
374 return subscriber_.Add();
376 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Subscribe >&
383 #pragma GCC diagnostic pop
393 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2ftopic_5finfo_2eproto