4 #ifndef PROTOBUF_ignition_2fmsgs_2fheader_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2fheader_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> 57 class IGNITION_MSGS_VISIBLE
Header_Map :
public ::google::protobuf::Message {
69 static const ::google::protobuf::Descriptor* descriptor();
78 Header_Map* New(::google::protobuf::Arena* arena)
const;
79 void CopyFrom(const ::google::protobuf::Message& from);
80 void MergeFrom(const ::google::protobuf::Message& from);
84 bool IsInitialized()
const;
87 bool MergePartialFromCodedStream(
88 ::google::protobuf::io::CodedInputStream* input);
89 void SerializeWithCachedSizes(
90 ::google::protobuf::io::CodedOutputStream* output)
const;
91 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
92 bool deterministic, ::google::protobuf::uint8* output)
const;
94 return InternalSerializeWithCachedSizesToArray(
false, output);
100 void SetCachedSize(
int size)
const;
103 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
104 return _internal_metadata_.arena();
106 inline void* MaybeArenaPtr()
const {
107 return _internal_metadata_.raw_arena_ptr();
111 ::google::protobuf::Metadata GetMetadata()
const;
119 static const int kKeyFieldNumber = 1;
120 const ::std::string& key()
const;
121 void set_key(const ::std::string& value);
122 void set_key(
const char* value);
123 void set_key(
const char* value,
size_t size);
129 int value_size()
const;
131 static const int kValueFieldNumber = 2;
132 const ::std::string& value(
int index)
const;
134 void set_value(
int index, const ::std::string& value);
135 void set_value(
int index,
const char* value);
136 void set_value(
int index,
const char* value,
size_t size);
138 void add_value(const ::std::string& value);
139 void add_value(
const char* value);
140 void add_value(
const char* value,
size_t size);
141 const ::google::protobuf::RepeatedPtrField< ::std::string>& value()
const;
142 ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_value();
147 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
148 bool _is_default_instance_;
149 ::google::protobuf::internal::ArenaStringPtr key_;
150 ::google::protobuf::RepeatedPtrField< ::std::string> value_;
151 mutable int _cached_size_;
156 void InitAsDefaultInstance();
161 class IGNITION_MSGS_VISIBLE
Header :
public ::google::protobuf::Message {
173 static const ::google::protobuf::Descriptor* descriptor();
174 static const Header& default_instance();
182 Header* New(::google::protobuf::Arena* arena)
const;
183 void CopyFrom(const ::google::protobuf::Message& from);
184 void MergeFrom(const ::google::protobuf::Message& from);
185 void CopyFrom(
const Header& from);
186 void MergeFrom(
const Header& from);
188 bool IsInitialized()
const;
190 int ByteSize()
const;
191 bool MergePartialFromCodedStream(
192 ::google::protobuf::io::CodedInputStream* input);
193 void SerializeWithCachedSizes(
194 ::google::protobuf::io::CodedOutputStream* output)
const;
195 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
196 bool deterministic, ::google::protobuf::uint8* output)
const;
198 return InternalSerializeWithCachedSizesToArray(
false, output);
204 void SetCachedSize(
int size)
const;
205 void InternalSwap(
Header* other);
207 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
208 return _internal_metadata_.arena();
210 inline void* MaybeArenaPtr()
const {
211 return _internal_metadata_.raw_arena_ptr();
215 ::google::protobuf::Metadata GetMetadata()
const;
224 bool has_stamp()
const;
226 static const int kStampFieldNumber = 1;
227 const ::ignition::msgs::Time& stamp()
const;
233 int data_size()
const;
235 static const int kDataFieldNumber = 2;
236 const ::ignition::msgs::Header_Map& data(
int index)
const;
239 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Header_Map >*
241 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Header_Map >&
247 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
248 bool _is_default_instance_;
250 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Header_Map > data_;
251 mutable int _cached_size_;
256 void InitAsDefaultInstance();
257 static Header* default_instance_;
264 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 269 key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
273 return key_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
277 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
282 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
287 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
288 ::
std::string(reinterpret_cast<const char*>(value), size));
294 return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
299 return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
307 key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key);
313 return value_.size();
320 return value_.Get(index);
324 return value_.Mutable(index);
328 value_.Mutable(index)->assign(value);
331 value_.Mutable(index)->assign(value);
335 value_.Mutable(index)->assign(
336 reinterpret_cast<const char*>(value), size);
344 value_.Add()->
assign(value);
348 value_.Add()->
assign(value);
352 value_.Add()->
assign(reinterpret_cast<const char*>(value), size);
355 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
360 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
372 return !_is_default_instance_ && stamp_ != NULL;
375 if (GetArenaNoVirtual() == NULL && stamp_ != NULL)
delete stamp_;
380 return stamp_ != NULL ? *stamp_ : *default_instance_->stamp_;
384 if (stamp_ == NULL) {
385 stamp_ = new ::ignition::msgs::Time;
415 inline const ::ignition::msgs::Header_Map&
Header::data(
int index)
const {
417 return data_.Get(index);
421 return data_.Mutable(index);
427 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Header_Map >*
432 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Header_Map >&
438 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 456 #endif // PROTOBUF_ignition_2fmsgs_2fheader_2eproto__INCLUDED void protobuf_AssignDesc_ignition_2fmsgs_2fheader_2eproto()
std::unique_ptr< const Header > ConstHeaderUniquePtr
Definition: header.pb.h:443
std::unique_ptr< Header > HeaderUniquePtr
Definition: header.pb.h:442
std::shared_ptr< const Header > ConstHeaderSharedPtr
Definition: header.pb.h:445
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fheader_2eproto()
void protobuf_ShutdownFile_ignition_2fmsgs_2fheader_2eproto()
std::shared_ptr< Header > HeaderSharedPtr
Definition: header.pb.h:444