4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2fcontact_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2fcontact_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>
38 #pragma GCC system_header
41 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
44 #include <sys/sysmacros.h>
49 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2fcontact_2eproto IGNITION_MSGS_VISIBLE
54 static const ::google::protobuf::internal::ParseTableField entries[];
55 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
56 static const ::google::protobuf::internal::ParseTable schema[1];
57 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
58 static const ::google::protobuf::internal::SerializationTable serialization_table[];
59 static const ::google::protobuf::uint32 offsets[];
66 class ContactDefaultTypeInternal;
72 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Contact* Arena::CreateMaybeMessage<::ignition::msgs::Contact>(Arena*);
80 class IGNITION_MSGS_VISIBLE
Contact :
public ::google::protobuf::Message {
94 *
this = ::std::move(from);
97 inline Contact& operator=(Contact&& from) noexcept {
98 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
99 if (
this != &from) InternalSwap(&from);
106 static const ::google::protobuf::Descriptor* descriptor();
107 static const Contact& default_instance();
109 static void InitAsDefaultInstance();
111 return reinterpret_cast<const Contact*
>(
114 static constexpr
int kIndexInFileMessages =
125 return CreateMaybeMessage<Contact>(NULL);
129 return CreateMaybeMessage<Contact>(arena);
131 void CopyFrom(const ::google::protobuf::Message& from)
final;
132 void MergeFrom(const ::google::protobuf::Message& from)
final;
133 void CopyFrom(
const Contact& from);
134 void MergeFrom(
const Contact& from);
136 bool IsInitialized() const final;
138 size_t ByteSizeLong() const final;
139 bool MergePartialFromCodedStream(
140 ::
google::protobuf::io::CodedInputStream* input) final;
141 void SerializeWithCachedSizes(
142 ::
google::protobuf::io::CodedOutputStream* output) const final;
143 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
144 bool deterministic, ::
google::protobuf::uint8* target) const final;
145 int GetCachedSize() const final {
return _cached_size_.Get(); }
150 void SetCachedSize(
int size)
const final;
151 void InternalSwap(
Contact* other);
153 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
156 inline void* MaybeArenaPtr()
const {
161 ::google::protobuf::Metadata GetMetadata() const final;
168 int position_size() const;
169 void clear_position();
170 static const
int kPositionFieldNumber = 4;
180 int normal_size() const;
182 static const
int kNormalFieldNumber = 5;
192 int depth_size() const;
194 static const
int kDepthFieldNumber = 6;
195 double depth(
int index) const;
196 void set_depth(
int index,
double value);
197 void add_depth(
double value);
198 const ::
google::protobuf::RepeatedField<
double >&
200 ::
google::protobuf::RepeatedField<
double >*
204 int wrench_size() const;
206 static const
int kWrenchFieldNumber = 7;
216 bool has_header() const;
218 static const
int kHeaderFieldNumber = 1;
228 bool has_collision1() const;
229 void clear_collision1();
230 static const
int kCollision1FieldNumber = 2;
237 void set_allocated_collision1(::
ignition::msgs::
Entity* collision1);
240 bool has_collision2() const;
241 void clear_collision2();
242 static const
int kCollision2FieldNumber = 3;
249 void set_allocated_collision2(::
ignition::msgs::
Entity* collision2);
252 bool has_world() const;
254 static const
int kWorldFieldNumber = 8;
266 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
269 ::
google::protobuf::RepeatedField<
double > depth_;
270 mutable
int _depth_cached_byte_size_;
276 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
285 #pragma GCC diagnostic push
286 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
292 return this != internal_default_instance() && header_ != NULL;
294 inline const ::ignition::msgs::Header& Contact::_internal_header()
const {
298 const ::ignition::msgs::Header* p = header_;
312 if (header_ == NULL) {
313 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
320 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
321 if (message_arena == NULL) {
322 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
325 ::google::protobuf::Arena* submessage_arena = NULL;
326 if (message_arena != submessage_arena) {
327 header = ::google::protobuf::internal::GetOwnedMessage(
328 message_arena, header, submessage_arena);
340 return this != internal_default_instance() && collision1_ != NULL;
342 inline const ::ignition::msgs::Entity& Contact::_internal_collision1()
const {
346 const ::ignition::msgs::Entity* p = collision1_;
360 if (collision1_ == NULL) {
361 auto* p = CreateMaybeMessage<::ignition::msgs::Entity>(GetArenaNoVirtual());
368 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
369 if (message_arena == NULL) {
370 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(collision1_);
373 ::google::protobuf::Arena* submessage_arena = NULL;
374 if (message_arena != submessage_arena) {
375 collision1 = ::google::protobuf::internal::GetOwnedMessage(
376 message_arena, collision1, submessage_arena);
382 collision1_ = collision1;
388 return this != internal_default_instance() && collision2_ != NULL;
390 inline const ::ignition::msgs::Entity& Contact::_internal_collision2()
const {
394 const ::ignition::msgs::Entity* p = collision2_;
408 if (collision2_ == NULL) {
409 auto* p = CreateMaybeMessage<::ignition::msgs::Entity>(GetArenaNoVirtual());
416 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
417 if (message_arena == NULL) {
418 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(collision2_);
421 ::google::protobuf::Arena* submessage_arena = NULL;
422 if (message_arena != submessage_arena) {
423 collision2 = ::google::protobuf::internal::GetOwnedMessage(
424 message_arena, collision2, submessage_arena);
430 collision2_ = collision2;
436 return position_.size();
440 return position_.Mutable(index);
442 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >*
449 return position_.Get(index);
453 return position_.Add();
455 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >&
463 return normal_.size();
467 return normal_.Mutable(index);
469 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >*
476 return normal_.Get(index);
480 return normal_.Add();
482 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >&
490 return depth_.size();
497 return depth_.Get(index);
500 depth_.Set(index, value);
507 inline const ::google::protobuf::RepeatedField< double >&
512 inline ::google::protobuf::RepeatedField< double >*
520 return wrench_.size();
524 return wrench_.Mutable(index);
526 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::JointWrench >*
533 return wrench_.Get(index);
537 return wrench_.Add();
539 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::JointWrench >&
547 return this != internal_default_instance() && world_ != NULL;
549 inline const ::ignition::msgs::Entity& Contact::_internal_world()
const {
553 const ::ignition::msgs::Entity* p = world_;
567 if (world_ == NULL) {
568 auto* p = CreateMaybeMessage<::ignition::msgs::Entity>(GetArenaNoVirtual());
575 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
576 if (message_arena == NULL) {
577 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(world_);
580 ::google::protobuf::Arena* submessage_arena = NULL;
581 if (message_arena != submessage_arena) {
582 world = ::google::protobuf::internal::GetOwnedMessage(
583 message_arena, world, submessage_arena);
594 #pragma GCC diagnostic pop
611 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2fcontact_2eproto