Ignition Msgs

API Reference

7.1.0
contactsensor.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/contactsensor.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fcontactsensor_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fcontactsensor_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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>
31 #ifndef _MSC_VER
32 #pragma GCC system_header
33 #else
34 #pragma warning(push)
35 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
36 #endif
37 #ifdef __linux__
38 #include <sys/sysmacros.h>
39 #endif
40 #include <memory>
41 #include <ignition/msgs/Export.hh>
42 // @@protoc_insertion_point(includes)
43 
44 namespace ignition {
45 namespace msgs {
46 
47 // Internal implementation detail -- do not call these.
51 
52 class ContactSensor;
53 
54 // ===================================================================
55 
56 class IGNITION_MSGS_VISIBLE ContactSensor : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.ContactSensor) */ {
57  public:
58  ContactSensor();
59  virtual ~ContactSensor();
60 
61  ContactSensor(const ContactSensor& from);
62 
63  inline ContactSensor& operator=(const ContactSensor& from) {
64  CopyFrom(from);
65  return *this;
66  }
67 
68  static const ::google::protobuf::Descriptor* descriptor();
69  static const ContactSensor& default_instance();
70 
71  void Swap(ContactSensor* other);
72 
73  // implements Message ----------------------------------------------
74 
75  inline ContactSensor* New() const { return New(NULL); }
76 
77  ContactSensor* New(::google::protobuf::Arena* arena) const;
78  void CopyFrom(const ::google::protobuf::Message& from);
79  void MergeFrom(const ::google::protobuf::Message& from);
80  void CopyFrom(const ContactSensor& from);
81  void MergeFrom(const ContactSensor& from);
82  void Clear();
83  bool IsInitialized() const;
84 
85  int ByteSize() const;
86  bool MergePartialFromCodedStream(
87  ::google::protobuf::io::CodedInputStream* input);
88  void SerializeWithCachedSizes(
89  ::google::protobuf::io::CodedOutputStream* output) const;
90  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
91  bool deterministic, ::google::protobuf::uint8* output) const;
92  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
93  return InternalSerializeWithCachedSizesToArray(false, output);
94  }
95  int GetCachedSize() const { return _cached_size_; }
96  private:
97  void SharedCtor();
98  void SharedDtor();
99  void SetCachedSize(int size) const;
100  void InternalSwap(ContactSensor* other);
101  private:
102  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
103  return _internal_metadata_.arena();
104  }
105  inline void* MaybeArenaPtr() const {
106  return _internal_metadata_.raw_arena_ptr();
107  }
108  public:
109 
110  ::google::protobuf::Metadata GetMetadata() const;
111 
112  // nested types ----------------------------------------------------
113 
114  // accessors -------------------------------------------------------
115 
116  // optional .ignition.msgs.Header header = 1;
117  bool has_header() const;
118  void clear_header();
119  static const int kHeaderFieldNumber = 1;
120  const ::ignition::msgs::Header& header() const;
121  ::ignition::msgs::Header* mutable_header();
122  ::ignition::msgs::Header* release_header();
123  void set_allocated_header(::ignition::msgs::Header* header);
124 
125  // optional string collision_name = 2;
126  void clear_collision_name();
127  static const int kCollisionNameFieldNumber = 2;
128  const ::std::string& collision_name() const;
129  void set_collision_name(const ::std::string& value);
130  void set_collision_name(const char* value);
131  void set_collision_name(const char* value, size_t size);
132  ::std::string* mutable_collision_name();
133  ::std::string* release_collision_name();
134  void set_allocated_collision_name(::std::string* collision_name);
135 
136  // @@protoc_insertion_point(class_scope:ignition.msgs.ContactSensor)
137  private:
138 
139  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
140  bool _is_default_instance_;
141  ::ignition::msgs::Header* header_;
142  ::google::protobuf::internal::ArenaStringPtr collision_name_;
143  mutable int _cached_size_;
144  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fcontactsensor_2eproto();
147 
148  void InitAsDefaultInstance();
149  static ContactSensor* default_instance_;
150 };
151 // ===================================================================
152 
153 
154 // ===================================================================
155 
156 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
157 // ContactSensor
158 
159 // optional .ignition.msgs.Header header = 1;
160 inline bool ContactSensor::has_header() const {
161  return !_is_default_instance_ && header_ != NULL;
162 }
164  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
165  header_ = NULL;
166 }
167 inline const ::ignition::msgs::Header& ContactSensor::header() const {
168  // @@protoc_insertion_point(field_get:ignition.msgs.ContactSensor.header)
169  return header_ != NULL ? *header_ : *default_instance_->header_;
170 }
171 inline ::ignition::msgs::Header* ContactSensor::mutable_header() {
172 
173  if (header_ == NULL) {
174  header_ = new ::ignition::msgs::Header;
175  }
176  // @@protoc_insertion_point(field_mutable:ignition.msgs.ContactSensor.header)
177  return header_;
178 }
179 inline ::ignition::msgs::Header* ContactSensor::release_header() {
180  // @@protoc_insertion_point(field_release:ignition.msgs.ContactSensor.header)
181 
182  ::ignition::msgs::Header* temp = header_;
183  header_ = NULL;
184  return temp;
185 }
187  delete header_;
188  header_ = header;
189  if (header) {
190 
191  } else {
192 
193  }
194  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.ContactSensor.header)
195 }
196 
197 // optional string collision_name = 2;
199  collision_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
200 }
201 inline const ::std::string& ContactSensor::collision_name() const {
202  // @@protoc_insertion_point(field_get:ignition.msgs.ContactSensor.collision_name)
203  return collision_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
204 }
205 inline void ContactSensor::set_collision_name(const ::std::string& value) {
206 
207  collision_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
208  // @@protoc_insertion_point(field_set:ignition.msgs.ContactSensor.collision_name)
209 }
210 inline void ContactSensor::set_collision_name(const char* value) {
211 
212  collision_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
213  // @@protoc_insertion_point(field_set_char:ignition.msgs.ContactSensor.collision_name)
214 }
215 inline void ContactSensor::set_collision_name(const char* value, size_t size) {
216 
217  collision_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
218  ::std::string(reinterpret_cast<const char*>(value), size));
219  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.ContactSensor.collision_name)
220 }
221 inline ::std::string* ContactSensor::mutable_collision_name() {
222 
223  // @@protoc_insertion_point(field_mutable:ignition.msgs.ContactSensor.collision_name)
224  return collision_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
225 }
226 inline ::std::string* ContactSensor::release_collision_name() {
227  // @@protoc_insertion_point(field_release:ignition.msgs.ContactSensor.collision_name)
228 
229  return collision_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
230 }
232  if (collision_name != NULL) {
233 
234  } else {
235 
236  }
237  collision_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), collision_name);
238  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.ContactSensor.collision_name)
239 }
240 
241 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
242 
247 // @@protoc_insertion_point(namespace_scope)
248 
249 } // namespace msgs
250 } // namespace ignition
251 
252 #ifdef _MSC_VER
253 #pragma warning(pop)
254 #endif
255 // @@protoc_insertion_point(global_scope)
256 
257 #endif // PROTOBUF_ignition_2fmsgs_2fcontactsensor_2eproto__INCLUDED
Definition: contactsensor.pb.h:56
std::shared_ptr< ContactSensor > ContactSensorSharedPtr
Definition: contactsensor.pb.h:245
::std::string * release_collision_name()
Definition: contactsensor.pb.h:226
bool has_header() const
Definition: contactsensor.pb.h:160
void set_collision_name(const ::std::string &value)
Definition: contactsensor.pb.h:205
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fcontactsensor_2eproto()
std::unique_ptr< ContactSensor > ContactSensorUniquePtr
Definition: contactsensor.pb.h:243
::ignition::msgs::Header * mutable_header()
Definition: contactsensor.pb.h:171
void protobuf_ShutdownFile_ignition_2fmsgs_2fcontactsensor_2eproto()
void protobuf_AssignDesc_ignition_2fmsgs_2fcontactsensor_2eproto()
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: contactsensor.pb.h:92
Definition: header.pb.h:161
STL class.
const ::ignition::msgs::Header & header() const
Definition: contactsensor.pb.h:167
void clear_header()
Definition: contactsensor.pb.h:163
const ::std::string & collision_name() const
Definition: contactsensor.pb.h:201
ContactSensor * New() const
Definition: contactsensor.pb.h:75
::ignition::msgs::Header * release_header()
Definition: contactsensor.pb.h:179
void set_allocated_collision_name(::std::string *collision_name)
Definition: contactsensor.pb.h:231
ContactSensor & operator=(const ContactSensor &from)
Definition: contactsensor.pb.h:63
void clear_collision_name()
Definition: contactsensor.pb.h:198
STL class.
void set_allocated_header(::ignition::msgs::Header *header)
Definition: contactsensor.pb.h:186
::std::string * mutable_collision_name()
Definition: contactsensor.pb.h:221
std::unique_ptr< const ContactSensor > ConstContactSensorUniquePtr
Definition: contactsensor.pb.h:244
std::shared_ptr< const ContactSensor > ConstContactSensorSharedPtr
Definition: contactsensor.pb.h:246
int GetCachedSize() const
Definition: contactsensor.pb.h:95