4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2fheader_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2fheader_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>
35 #pragma GCC system_header
38 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
41 #include <sys/sysmacros.h>
46 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2fheader_2eproto IGNITION_MSGS_VISIBLE
51 static const ::google::protobuf::internal::ParseTableField entries[];
52 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
53 static const ::google::protobuf::internal::ParseTable schema[2];
54 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
55 static const ::google::protobuf::internal::SerializationTable serialization_table[];
56 static const ::google::protobuf::uint32 offsets[];
63 class HeaderDefaultTypeInternal;
66 class Header_MapDefaultTypeInternal;
72 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Header* Arena::CreateMaybeMessage<::ignition::msgs::Header>(Arena*);
73 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Header_Map* Arena::CreateMaybeMessage<::ignition::msgs::Header_Map>(Arena*);
81 class IGNITION_MSGS_VISIBLE
Header_Map :
public ::google::protobuf::Message {
95 *
this = ::std::move(from);
98 inline Header_Map& operator=(Header_Map&& from) noexcept {
99 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
100 if (
this != &from) InternalSwap(&from);
107 static const ::google::protobuf::Descriptor* descriptor();
108 static const Header_Map& default_instance();
110 static void InitAsDefaultInstance();
115 static constexpr
int kIndexInFileMessages =
126 return CreateMaybeMessage<Header_Map>(NULL);
130 return CreateMaybeMessage<Header_Map>(arena);
132 void CopyFrom(const ::google::protobuf::Message& from)
final;
133 void MergeFrom(const ::google::protobuf::Message& from)
final;
137 bool IsInitialized() const final;
139 size_t ByteSizeLong() const final;
140 bool MergePartialFromCodedStream(
141 ::
google::protobuf::io::CodedInputStream* input) final;
142 void SerializeWithCachedSizes(
143 ::
google::protobuf::io::CodedOutputStream* output) const final;
144 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
145 bool deterministic, ::
google::protobuf::uint8* target) const final;
146 int GetCachedSize() const final {
return _cached_size_.Get(); }
151 void SetCachedSize(
int size)
const final;
154 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
157 inline void* MaybeArenaPtr()
const {
162 ::google::protobuf::Metadata GetMetadata() const final;
169 int value_size() const;
171 static const
int kValueFieldNumber = 2;
172 const ::
std::
string& value(
int index) const;
173 ::
std::
string* mutable_value(
int index);
174 void set_value(
int index, const ::
std::
string& value);
178 void set_value(
int index,
const char* value);
179 void set_value(
int index,
const char* value,
size_t size);
181 void add_value(const ::std::string& value);
185 void add_value(
const char* value);
186 void add_value(
const char* value,
size_t size);
187 const ::google::protobuf::RepeatedPtrField< ::std::string>& value()
const;
188 ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_value();
192 static const int kKeyFieldNumber = 1;
193 const ::std::string& key()
const;
194 void set_key(const ::std::string& value);
198 void set_key(
const char* value);
199 void set_key(
const char* value,
size_t size);
207 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
208 ::google::protobuf::RepeatedPtrField< ::std::string> value_;
209 ::google::protobuf::internal::ArenaStringPtr key_;
210 mutable ::google::protobuf::internal::CachedSize _cached_size_;
211 friend struct ::protobuf_ignition_2fmsgs_2fheader_2eproto::TableStruct;
215 class IGNITION_MSGS_VISIBLE
Header :
public ::google::protobuf::Message {
229 *
this = ::std::move(from);
232 inline Header& operator=(Header&& from) noexcept {
233 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
234 if (
this != &from) InternalSwap(&from);
241 static const ::google::protobuf::Descriptor* descriptor();
242 static const Header& default_instance();
244 static void InitAsDefaultInstance();
246 return reinterpret_cast<const Header*
>(
249 static constexpr
int kIndexInFileMessages =
260 return CreateMaybeMessage<Header>(NULL);
263 Header*
New(::google::protobuf::Arena* arena)
const final {
264 return CreateMaybeMessage<Header>(arena);
266 void CopyFrom(const ::google::protobuf::Message& from)
final;
267 void MergeFrom(const ::google::protobuf::Message& from)
final;
268 void CopyFrom(
const Header& from);
269 void MergeFrom(
const Header& from);
271 bool IsInitialized() const final;
273 size_t ByteSizeLong() const final;
274 bool MergePartialFromCodedStream(
275 ::
google::protobuf::io::CodedInputStream* input) final;
276 void SerializeWithCachedSizes(
277 ::
google::protobuf::io::CodedOutputStream* output) const final;
278 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
279 bool deterministic, ::
google::protobuf::uint8* target) const final;
280 int GetCachedSize() const final {
return _cached_size_.Get(); }
285 void SetCachedSize(
int size)
const final;
286 void InternalSwap(
Header* other);
288 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
291 inline void* MaybeArenaPtr()
const {
296 ::google::protobuf::Metadata GetMetadata() const final;
305 int data_size() const;
307 static const
int kDataFieldNumber = 2;
317 bool has_stamp() const;
319 static const
int kStampFieldNumber = 1;
326 void set_allocated_stamp(::
ignition::msgs::
Time* stamp);
331 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
334 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
343 #pragma GCC diagnostic push
344 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
350 key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
354 return key_.GetNoArena();
358 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
365 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
370 GOOGLE_DCHECK(value != NULL);
372 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
377 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
378 ::
std::string(
reinterpret_cast<const char*
>(value), size));
384 return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
389 return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
397 key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key);
403 return value_.size();
410 return value_.Get(index);
414 return value_.Mutable(index);
418 value_.Mutable(index)->assign(value);
423 value_.Mutable(index)->assign(
std::move(value));
427 GOOGLE_DCHECK(value != NULL);
428 value_.Mutable(index)->assign(value);
432 value_.Mutable(index)->assign(
433 reinterpret_cast<const char*
>(value), size);
441 value_.Add()->
assign(value);
451 GOOGLE_DCHECK(value != NULL);
452 value_.Add()->assign(value);
456 value_.Add()->
assign(
reinterpret_cast<const char*
>(value), size);
459 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
464 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
476 return this != internal_default_instance() && stamp_ != NULL;
478 inline const ::ignition::msgs::Time& Header::_internal_stamp()
const {
482 const ::ignition::msgs::Time* p = stamp_;
496 if (stamp_ == NULL) {
497 auto* p = CreateMaybeMessage<::ignition::msgs::Time>(GetArenaNoVirtual());
504 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
505 if (message_arena == NULL) {
506 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(stamp_);
509 ::google::protobuf::Arena* submessage_arena = NULL;
510 if (message_arena != submessage_arena) {
511 stamp = ::google::protobuf::internal::GetOwnedMessage(
512 message_arena, stamp, submessage_arena);
531 return data_.Mutable(index);
533 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Header_Map >*
538 inline const ::ignition::msgs::Header_Map&
Header::data(
int index)
const {
540 return data_.Get(index);
546 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Header_Map >&
553 #pragma GCC diagnostic pop
572 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2fheader_2eproto