4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fheader_2eproto
5 #define PROTOBUF_INCLUDED_gz_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>
33 #include "gz/msgs/time.pb.h"
35 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fheader_2eproto GZ_MSGS_VISIBLE
40 static const ::google::protobuf::internal::ParseTableField entries[];
41 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
42 static const ::google::protobuf::internal::ParseTable schema[2];
43 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
44 static const ::google::protobuf::internal::SerializationTable serialization_table[];
45 static const ::google::protobuf::uint32 offsets[];
52 class HeaderDefaultTypeInternal;
55 class Header_MapDefaultTypeInternal;
61 template<> GZ_MSGS_VISIBLE ::gz::msgs::Header* Arena::CreateMaybeMessage<::gz::msgs::Header>(Arena*);
62 template<> GZ_MSGS_VISIBLE ::gz::msgs::Header_Map* Arena::CreateMaybeMessage<::gz::msgs::Header_Map>(Arena*);
70 class GZ_MSGS_VISIBLE
Header_Map :
public ::google::protobuf::Message {
84 *
this = ::std::move(from);
87 inline Header_Map& operator=(Header_Map&& from) noexcept {
88 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
89 if (
this != &from) InternalSwap(&from);
96 static const ::google::protobuf::Descriptor* descriptor();
97 static const Header_Map& default_instance();
99 static void InitAsDefaultInstance();
104 static constexpr
int kIndexInFileMessages =
115 return CreateMaybeMessage<Header_Map>(NULL);
119 return CreateMaybeMessage<Header_Map>(arena);
121 void CopyFrom(const ::google::protobuf::Message& from)
final;
122 void MergeFrom(const ::google::protobuf::Message& from)
final;
126 bool IsInitialized() const final;
128 size_t ByteSizeLong() const final;
129 bool MergePartialFromCodedStream(
130 ::
google::protobuf::io::CodedInputStream* input) final;
131 void SerializeWithCachedSizes(
132 ::
google::protobuf::io::CodedOutputStream* output) const final;
133 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
134 bool deterministic, ::
google::protobuf::uint8* target) const final;
135 int GetCachedSize() const final {
return _cached_size_.Get(); }
140 void SetCachedSize(
int size)
const final;
143 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
146 inline void* MaybeArenaPtr()
const {
151 ::google::protobuf::Metadata GetMetadata() const final;
158 int value_size() const;
160 static const
int kValueFieldNumber = 2;
161 const ::
std::
string& value(
int index) const;
162 ::
std::
string* mutable_value(
int index);
163 void set_value(
int index, const ::
std::
string& value);
167 void set_value(
int index,
const char* value);
168 void set_value(
int index,
const char* value,
size_t size);
170 void add_value(const ::std::string& value);
174 void add_value(
const char* value);
175 void add_value(
const char* value,
size_t size);
176 const ::google::protobuf::RepeatedPtrField< ::std::string>& value()
const;
177 ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_value();
181 static const int kKeyFieldNumber = 1;
182 const ::std::string& key()
const;
183 void set_key(const ::std::string& value);
187 void set_key(
const char* value);
188 void set_key(
const char* value,
size_t size);
196 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
197 ::google::protobuf::RepeatedPtrField< ::std::string> value_;
198 ::google::protobuf::internal::ArenaStringPtr key_;
199 mutable ::google::protobuf::internal::CachedSize _cached_size_;
200 friend struct ::protobuf_gz_2fmsgs_2fheader_2eproto::TableStruct;
204 class GZ_MSGS_VISIBLE
Header :
public ::google::protobuf::Message {
218 *
this = ::std::move(from);
221 inline Header& operator=(Header&& from) noexcept {
222 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
223 if (
this != &from) InternalSwap(&from);
230 static const ::google::protobuf::Descriptor* descriptor();
231 static const Header& default_instance();
233 static void InitAsDefaultInstance();
235 return reinterpret_cast<const Header*
>(
238 static constexpr
int kIndexInFileMessages =
249 return CreateMaybeMessage<Header>(NULL);
252 Header*
New(::google::protobuf::Arena* arena)
const final {
253 return CreateMaybeMessage<Header>(arena);
255 void CopyFrom(const ::google::protobuf::Message& from)
final;
256 void MergeFrom(const ::google::protobuf::Message& from)
final;
257 void CopyFrom(
const Header& from);
258 void MergeFrom(
const Header& from);
260 bool IsInitialized() const final;
262 size_t ByteSizeLong() const final;
263 bool MergePartialFromCodedStream(
264 ::
google::protobuf::io::CodedInputStream* input) final;
265 void SerializeWithCachedSizes(
266 ::
google::protobuf::io::CodedOutputStream* output) const final;
267 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
268 bool deterministic, ::
google::protobuf::uint8* target) const final;
269 int GetCachedSize() const final {
return _cached_size_.Get(); }
274 void SetCachedSize(
int size)
const final;
275 void InternalSwap(
Header* other);
277 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
280 inline void* MaybeArenaPtr()
const {
285 ::google::protobuf::Metadata GetMetadata() const final;
294 int data_size() const;
296 static const
int kDataFieldNumber = 2;
306 bool has_stamp() const;
308 static const
int kStampFieldNumber = 1;
310 const ::
gz::msgs::
Time& _internal_stamp() const;
312 const ::
gz::msgs::
Time& stamp() const;
313 ::
gz::msgs::
Time* release_stamp();
314 ::
gz::msgs::
Time* mutable_stamp();
315 void set_allocated_stamp(::
gz::msgs::
Time* stamp);
320 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
323 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
332 #pragma GCC diagnostic push
333 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
339 key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
343 return key_.GetNoArena();
347 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
354 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
359 GOOGLE_DCHECK(value != NULL);
361 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
366 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
367 ::
std::string(
reinterpret_cast<const char*
>(value), size));
373 return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
378 return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
386 key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key);
392 return value_.size();
399 return value_.Get(index);
403 return value_.Mutable(index);
407 value_.Mutable(index)->assign(value);
412 value_.Mutable(index)->assign(
std::move(value));
416 GOOGLE_DCHECK(value != NULL);
417 value_.Mutable(index)->assign(value);
421 value_.Mutable(index)->assign(
422 reinterpret_cast<const char*
>(value), size);
430 value_.Add()->
assign(value);
440 GOOGLE_DCHECK(value != NULL);
441 value_.Add()->assign(value);
445 value_.Add()->
assign(
reinterpret_cast<const char*
>(value), size);
448 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
453 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
465 return this != internal_default_instance() && stamp_ != NULL;
467 inline const ::gz::msgs::Time& Header::_internal_stamp()
const {
471 const ::gz::msgs::Time* p = stamp_;
473 return p != NULL ? *p : *
reinterpret_cast<const ::
gz::msgs::Time*
>(
485 if (stamp_ == NULL) {
486 auto* p = CreateMaybeMessage<::gz::msgs::Time>(GetArenaNoVirtual());
493 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
494 if (message_arena == NULL) {
495 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(stamp_);
498 ::google::protobuf::Arena* submessage_arena = NULL;
499 if (message_arena != submessage_arena) {
500 stamp = ::google::protobuf::internal::GetOwnedMessage(
501 message_arena, stamp, submessage_arena);
520 return data_.Mutable(index);
522 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Header_Map >*
529 return data_.Get(index);
535 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Header_Map >&
542 #pragma GCC diagnostic pop
554 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fheader_2eproto