4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fentity_5fwrench_5fmap_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fentity_5fwrench_5fmap_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/map.h>
33 #include <google/protobuf/map_entry.h>
34 #include <google/protobuf/map_field_inl.h>
35 #include <google/protobuf/unknown_field_set.h>
36 #include "gz/msgs/entity_wrench.pb.h"
37 #include "gz/msgs/header.pb.h"
39 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fentity_5fwrench_5fmap_2eproto GZ_MSGS_VISIBLE
44 static const ::google::protobuf::internal::ParseTableField entries[];
45 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
46 static const ::google::protobuf::internal::ParseTable schema[2];
47 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
48 static const ::google::protobuf::internal::SerializationTable serialization_table[];
49 static const ::google::protobuf::uint32 offsets[];
55 class EntityWrenchMap;
56 class EntityWrenchMapDefaultTypeInternal;
58 class EntityWrenchMap_WrenchesEntry_DoNotUse;
59 class EntityWrenchMap_WrenchesEntry_DoNotUseDefaultTypeInternal;
65 template<> GZ_MSGS_VISIBLE ::gz::msgs::EntityWrenchMap* Arena::CreateMaybeMessage<::gz::msgs::EntityWrenchMap>(Arena*);
66 template<> GZ_MSGS_VISIBLE ::gz::msgs::EntityWrenchMap_WrenchesEntry_DoNotUse* Arena::CreateMaybeMessage<::gz::msgs::EntityWrenchMap_WrenchesEntry_DoNotUse>(Arena*);
75 ::std::string, ::gz::msgs::EntityWrench,
76 ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
77 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
82 ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
83 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
89 void MergeFrom(const ::google::protobuf::Message& other)
final;
109 *
this = ::std::move(from);
112 inline EntityWrenchMap& operator=(EntityWrenchMap&& from) noexcept {
113 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
114 if (
this != &from) InternalSwap(&from);
121 static const ::google::protobuf::Descriptor* descriptor();
122 static const EntityWrenchMap& default_instance();
124 static void InitAsDefaultInstance();
129 static constexpr
int kIndexInFileMessages =
140 return CreateMaybeMessage<EntityWrenchMap>(NULL);
144 return CreateMaybeMessage<EntityWrenchMap>(arena);
146 void CopyFrom(const ::google::protobuf::Message& from)
final;
147 void MergeFrom(const ::google::protobuf::Message& from)
final;
151 bool IsInitialized() const final;
153 size_t ByteSizeLong() const final;
154 bool MergePartialFromCodedStream(
155 ::
google::protobuf::io::CodedInputStream* input) final;
156 void SerializeWithCachedSizes(
157 ::
google::protobuf::io::CodedOutputStream* output) const final;
158 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
159 bool deterministic, ::
google::protobuf::uint8* target) const final;
160 int GetCachedSize() const final {
return _cached_size_.Get(); }
165 void SetCachedSize(
int size)
const final;
168 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
171 inline void* MaybeArenaPtr()
const {
176 ::google::protobuf::Metadata GetMetadata() const final;
184 int wrenches_size() const;
185 void clear_wrenches();
186 static const
int kWrenchesFieldNumber = 2;
193 bool has_header() const;
195 static const
int kHeaderFieldNumber = 1;
197 const ::
gz::msgs::
Header& _internal_header() const;
199 const ::
gz::msgs::
Header& header() const;
200 ::
gz::msgs::
Header* release_header();
201 ::
gz::msgs::
Header* mutable_header();
202 void set_allocated_header(::
gz::msgs::
Header* header);
207 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
208 ::
google::protobuf::internal::MapField<
211 ::
google::protobuf::internal::WireFormatLite::TYPE_STRING,
212 ::
google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
215 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
224 #pragma GCC diagnostic push
225 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
233 return this != internal_default_instance() && header_ != NULL;
235 inline const ::gz::msgs::Header& EntityWrenchMap::_internal_header()
const {
239 const ::gz::msgs::Header* p = header_;
253 if (header_ == NULL) {
254 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
261 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
262 if (message_arena == NULL) {
263 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
266 ::google::protobuf::Arena* submessage_arena = NULL;
267 if (message_arena != submessage_arena) {
268 header = ::google::protobuf::internal::GetOwnedMessage(
269 message_arena, header, submessage_arena);
281 return wrenches_.size();
283 inline const ::google::protobuf::Map< ::std::string, ::gz::msgs::EntityWrench >&
286 return wrenches_.GetMap();
288 inline ::google::protobuf::Map< ::std::string, ::gz::msgs::EntityWrench >*
291 return wrenches_.MutableMap();
295 #pragma GCC diagnostic pop
307 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fentity_5fwrench_5fmap_2eproto