4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fcontact_2eproto
5 #define PROTOBUF_INCLUDED_gz_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>
33 #include "gz/msgs/entity.pb.h"
34 #include "gz/msgs/vector3d.pb.h"
35 #include "gz/msgs/joint_wrench.pb.h"
36 #include "gz/msgs/header.pb.h"
38 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fcontact_2eproto GZ_MSGS_VISIBLE
43 static const ::google::protobuf::internal::ParseTableField entries[];
44 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
45 static const ::google::protobuf::internal::ParseTable schema[1];
46 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
47 static const ::google::protobuf::internal::SerializationTable serialization_table[];
48 static const ::google::protobuf::uint32 offsets[];
55 class ContactDefaultTypeInternal;
61 template<> GZ_MSGS_VISIBLE ::gz::msgs::Contact* Arena::CreateMaybeMessage<::gz::msgs::Contact>(Arena*);
69 class GZ_MSGS_VISIBLE
Contact :
public ::google::protobuf::Message {
83 *
this = ::std::move(from);
86 inline Contact& operator=(Contact&& from) noexcept {
87 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
88 if (
this != &from) InternalSwap(&from);
95 static const ::google::protobuf::Descriptor* descriptor();
96 static const Contact& default_instance();
98 static void InitAsDefaultInstance();
100 return reinterpret_cast<const Contact*
>(
103 static constexpr
int kIndexInFileMessages =
114 return CreateMaybeMessage<Contact>(NULL);
118 return CreateMaybeMessage<Contact>(arena);
120 void CopyFrom(const ::google::protobuf::Message& from)
final;
121 void MergeFrom(const ::google::protobuf::Message& from)
final;
122 void CopyFrom(
const Contact& from);
123 void MergeFrom(
const Contact& from);
125 bool IsInitialized() const final;
127 size_t ByteSizeLong() const final;
128 bool MergePartialFromCodedStream(
129 ::
google::protobuf::io::CodedInputStream* input) final;
130 void SerializeWithCachedSizes(
131 ::
google::protobuf::io::CodedOutputStream* output) const final;
132 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
133 bool deterministic, ::
google::protobuf::uint8* target) const final;
134 int GetCachedSize() const final {
return _cached_size_.Get(); }
139 void SetCachedSize(
int size)
const final;
140 void InternalSwap(
Contact* other);
142 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
145 inline void* MaybeArenaPtr()
const {
150 ::google::protobuf::Metadata GetMetadata() const final;
157 int position_size() const;
158 void clear_position();
159 static const
int kPositionFieldNumber = 4;
160 ::
gz::msgs::
Vector3d* mutable_position(
int index);
163 const ::
gz::msgs::
Vector3d& position(
int index) const;
169 int normal_size() const;
171 static const
int kNormalFieldNumber = 5;
172 ::
gz::msgs::
Vector3d* mutable_normal(
int index);
175 const ::
gz::msgs::
Vector3d& normal(
int index) const;
181 int depth_size() const;
183 static const
int kDepthFieldNumber = 6;
184 double depth(
int index) const;
185 void set_depth(
int index,
double value);
186 void add_depth(
double value);
187 const ::
google::protobuf::RepeatedField<
double >&
189 ::
google::protobuf::RepeatedField<
double >*
193 int wrench_size() const;
195 static const
int kWrenchFieldNumber = 7;
205 bool has_header() const;
207 static const
int kHeaderFieldNumber = 1;
209 const ::
gz::msgs::
Header& _internal_header() const;
211 const ::
gz::msgs::
Header& header() const;
212 ::
gz::msgs::
Header* release_header();
213 ::
gz::msgs::
Header* mutable_header();
214 void set_allocated_header(::
gz::msgs::
Header* header);
217 bool has_collision1() const;
218 void clear_collision1();
219 static const
int kCollision1FieldNumber = 2;
221 const ::
gz::msgs::
Entity& _internal_collision1() const;
223 const ::
gz::msgs::
Entity& collision1() const;
224 ::
gz::msgs::
Entity* release_collision1();
225 ::
gz::msgs::
Entity* mutable_collision1();
226 void set_allocated_collision1(::
gz::msgs::
Entity* collision1);
229 bool has_collision2() const;
230 void clear_collision2();
231 static const
int kCollision2FieldNumber = 3;
233 const ::
gz::msgs::
Entity& _internal_collision2() const;
235 const ::
gz::msgs::
Entity& collision2() const;
236 ::
gz::msgs::
Entity* release_collision2();
237 ::
gz::msgs::
Entity* mutable_collision2();
238 void set_allocated_collision2(::
gz::msgs::
Entity* collision2);
241 bool has_world() const;
243 static const
int kWorldFieldNumber = 8;
245 const ::
gz::msgs::
Entity& _internal_world() const;
247 const ::
gz::msgs::
Entity& world() const;
248 ::
gz::msgs::
Entity* release_world();
249 ::
gz::msgs::
Entity* mutable_world();
250 void set_allocated_world(::
gz::msgs::
Entity* world);
255 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
258 ::
google::protobuf::RepeatedField<
double > depth_;
259 mutable
int _depth_cached_byte_size_;
265 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
274 #pragma GCC diagnostic push
275 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
281 return this != internal_default_instance() && header_ != NULL;
283 inline const ::gz::msgs::Header& Contact::_internal_header()
const {
287 const ::gz::msgs::Header* p = header_;
301 if (header_ == NULL) {
302 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
309 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
310 if (message_arena == NULL) {
311 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
314 ::google::protobuf::Arena* submessage_arena = NULL;
315 if (message_arena != submessage_arena) {
316 header = ::google::protobuf::internal::GetOwnedMessage(
317 message_arena, header, submessage_arena);
329 return this != internal_default_instance() && collision1_ != NULL;
331 inline const ::gz::msgs::Entity& Contact::_internal_collision1()
const {
335 const ::gz::msgs::Entity* p = collision1_;
349 if (collision1_ == NULL) {
350 auto* p = CreateMaybeMessage<::gz::msgs::Entity>(GetArenaNoVirtual());
357 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
358 if (message_arena == NULL) {
359 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(collision1_);
362 ::google::protobuf::Arena* submessage_arena = NULL;
363 if (message_arena != submessage_arena) {
364 collision1 = ::google::protobuf::internal::GetOwnedMessage(
365 message_arena, collision1, submessage_arena);
371 collision1_ = collision1;
377 return this != internal_default_instance() && collision2_ != NULL;
379 inline const ::gz::msgs::Entity& Contact::_internal_collision2()
const {
383 const ::gz::msgs::Entity* p = collision2_;
397 if (collision2_ == NULL) {
398 auto* p = CreateMaybeMessage<::gz::msgs::Entity>(GetArenaNoVirtual());
405 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
406 if (message_arena == NULL) {
407 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(collision2_);
410 ::google::protobuf::Arena* submessage_arena = NULL;
411 if (message_arena != submessage_arena) {
412 collision2 = ::google::protobuf::internal::GetOwnedMessage(
413 message_arena, collision2, submessage_arena);
419 collision2_ = collision2;
425 return position_.size();
429 return position_.Mutable(index);
431 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Vector3d >*
438 return position_.Get(index);
442 return position_.Add();
444 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Vector3d >&
452 return normal_.size();
456 return normal_.Mutable(index);
458 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Vector3d >*
465 return normal_.Get(index);
469 return normal_.Add();
471 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Vector3d >&
479 return depth_.size();
486 return depth_.Get(index);
489 depth_.Set(index, value);
496 inline const ::google::protobuf::RepeatedField< double >&
501 inline ::google::protobuf::RepeatedField< double >*
509 return wrench_.size();
513 return wrench_.Mutable(index);
515 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::JointWrench >*
522 return wrench_.Get(index);
526 return wrench_.Add();
528 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::JointWrench >&
536 return this != internal_default_instance() && world_ != NULL;
538 inline const ::gz::msgs::Entity& Contact::_internal_world()
const {
542 const ::gz::msgs::Entity* p = world_;
556 if (world_ == NULL) {
557 auto* p = CreateMaybeMessage<::gz::msgs::Entity>(GetArenaNoVirtual());
564 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
565 if (message_arena == NULL) {
566 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(world_);
569 ::google::protobuf::Arena* submessage_arena = NULL;
570 if (message_arena != submessage_arena) {
571 world = ::google::protobuf::internal::GetOwnedMessage(
572 message_arena, world, submessage_arena);
583 #pragma GCC diagnostic pop
593 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fcontact_2eproto