Gazebo Msgs

API Reference

8.7.0
build/ignition-msgs8/include/ignition/msgs/fluid.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/fluid.proto
3 
4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2ffluid_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2ffluid_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 #include <google/protobuf/unknown_field_set.h>
35 #ifndef _MSC_VER
36 #pragma GCC system_header
37 #else
38 #pragma warning(push)
39 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
40 #endif
41 #ifdef __linux__
42 #include <sys/sysmacros.h>
43 #endif
44 #include <memory>
45 #include <ignition/msgs/Export.hh>
46 // @@protoc_insertion_point(includes)
47 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2ffluid_2eproto IGNITION_MSGS_VISIBLE
48 
50 // Internal implementation detail -- do not use these members.
51 struct IGNITION_MSGS_VISIBLE TableStruct {
52  static const ::google::protobuf::internal::ParseTableField entries[];
53  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
54  static const ::google::protobuf::internal::ParseTable schema[1];
55  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
56  static const ::google::protobuf::internal::SerializationTable serialization_table[];
57  static const ::google::protobuf::uint32 offsets[];
58 };
59 void IGNITION_MSGS_VISIBLE AddDescriptors();
60 } // namespace protobuf_ignition_2fmsgs_2ffluid_2eproto
61 namespace ignition {
62 namespace msgs {
63 class Fluid;
64 class FluidDefaultTypeInternal;
65 IGNITION_MSGS_VISIBLE extern FluidDefaultTypeInternal _Fluid_default_instance_;
66 } // namespace msgs
67 } // namespace ignition
68 namespace google {
69 namespace protobuf {
70 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Fluid* Arena::CreateMaybeMessage<::ignition::msgs::Fluid>(Arena*);
71 } // namespace protobuf
72 } // namespace google
73 namespace ignition {
74 namespace msgs {
75 
76 // ===================================================================
77 
78 class IGNITION_MSGS_VISIBLE Fluid : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Fluid) */ {
79  public:
80  Fluid();
81  virtual ~Fluid();
82 
83  Fluid(const Fluid& from);
84 
85  inline Fluid& operator=(const Fluid& from) {
86  CopyFrom(from);
87  return *this;
88  }
89  #if LANG_CXX11
90  Fluid(Fluid&& from) noexcept
91  : Fluid() {
92  *this = ::std::move(from);
93  }
94 
95  inline Fluid& operator=(Fluid&& from) noexcept {
96  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
97  if (this != &from) InternalSwap(&from);
98  } else {
99  CopyFrom(from);
100  }
101  return *this;
102  }
103  #endif
104  static const ::google::protobuf::Descriptor* descriptor();
105  static const Fluid& default_instance();
106 
107  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
108  static inline const Fluid* internal_default_instance() {
109  return reinterpret_cast<const Fluid*>(
111  }
112  static constexpr int kIndexInFileMessages =
113  0;
114 
115  void Swap(Fluid* other);
116  friend void swap(Fluid& a, Fluid& b) {
117  a.Swap(&b);
118  }
119 
120  // implements Message ----------------------------------------------
121 
122  inline Fluid* New() const final {
123  return CreateMaybeMessage<Fluid>(NULL);
124  }
125 
126  Fluid* New(::google::protobuf::Arena* arena) const final {
127  return CreateMaybeMessage<Fluid>(arena);
128  }
129  void CopyFrom(const ::google::protobuf::Message& from) final;
130  void MergeFrom(const ::google::protobuf::Message& from) final;
131  void CopyFrom(const Fluid& from);
132  void MergeFrom(const Fluid& from);
133  void Clear() final;
134  bool IsInitialized() const final;
135 
136  size_t ByteSizeLong() const final;
137  bool MergePartialFromCodedStream(
138  ::google::protobuf::io::CodedInputStream* input) final;
139  void SerializeWithCachedSizes(
140  ::google::protobuf::io::CodedOutputStream* output) const final;
141  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
142  bool deterministic, ::google::protobuf::uint8* target) const final;
143  int GetCachedSize() const final { return _cached_size_.Get(); }
144 
145  private:
146  void SharedCtor();
147  void SharedDtor();
148  void SetCachedSize(int size) const final;
149  void InternalSwap(Fluid* other);
150  private:
151  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
152  return NULL;
153  }
154  inline void* MaybeArenaPtr() const {
155  return NULL;
156  }
157  public:
158 
159  ::google::protobuf::Metadata GetMetadata() const final;
160 
161  // nested types ----------------------------------------------------
162 
163  // accessors -------------------------------------------------------
164 
165  // repeated .ignition.msgs.Vector3d position = 3;
166  int position_size() const;
167  void clear_position();
168  static const int kPositionFieldNumber = 3;
169  ::ignition::msgs::Vector3d* mutable_position(int index);
170  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >*
171  mutable_position();
172  const ::ignition::msgs::Vector3d& position(int index) const;
173  ::ignition::msgs::Vector3d* add_position();
174  const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >&
175  position() const;
176 
177  // string name = 2;
178  void clear_name();
179  static const int kNameFieldNumber = 2;
180  const ::std::string& name() const;
181  void set_name(const ::std::string& value);
182  #if LANG_CXX11
183  void set_name(::std::string&& value);
184  #endif
185  void set_name(const char* value);
186  void set_name(const char* value, size_t size);
187  ::std::string* mutable_name();
188  ::std::string* release_name();
189  void set_allocated_name(::std::string* name);
190 
191  // .ignition.msgs.Header header = 1;
192  bool has_header() const;
193  void clear_header();
194  static const int kHeaderFieldNumber = 1;
195  private:
196  const ::ignition::msgs::Header& _internal_header() const;
197  public:
198  const ::ignition::msgs::Header& header() const;
199  ::ignition::msgs::Header* release_header();
200  ::ignition::msgs::Header* mutable_header();
201  void set_allocated_header(::ignition::msgs::Header* header);
202 
203  // @@protoc_insertion_point(class_scope:ignition.msgs.Fluid)
204  private:
205 
206  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
207  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d > position_;
208  ::google::protobuf::internal::ArenaStringPtr name_;
209  ::ignition::msgs::Header* header_;
210  mutable ::google::protobuf::internal::CachedSize _cached_size_;
211  friend struct ::protobuf_ignition_2fmsgs_2ffluid_2eproto::TableStruct;
212 };
213 // ===================================================================
214 
215 
216 // ===================================================================
217 
218 #ifdef __GNUC__
219  #pragma GCC diagnostic push
220  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
221 #endif // __GNUC__
222 // Fluid
223 
224 // .ignition.msgs.Header header = 1;
225 inline bool Fluid::has_header() const {
226  return this != internal_default_instance() && header_ != NULL;
227 }
228 inline const ::ignition::msgs::Header& Fluid::_internal_header() const {
229  return *header_;
230 }
231 inline const ::ignition::msgs::Header& Fluid::header() const {
232  const ::ignition::msgs::Header* p = header_;
233  // @@protoc_insertion_point(field_get:ignition.msgs.Fluid.header)
234  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::Header*>(
236 }
237 inline ::ignition::msgs::Header* Fluid::release_header() {
238  // @@protoc_insertion_point(field_release:ignition.msgs.Fluid.header)
239 
240  ::ignition::msgs::Header* temp = header_;
241  header_ = NULL;
242  return temp;
243 }
244 inline ::ignition::msgs::Header* Fluid::mutable_header() {
245 
246  if (header_ == NULL) {
247  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
248  header_ = p;
249  }
250  // @@protoc_insertion_point(field_mutable:ignition.msgs.Fluid.header)
251  return header_;
252 }
254  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
255  if (message_arena == NULL) {
256  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
257  }
258  if (header) {
259  ::google::protobuf::Arena* submessage_arena = NULL;
260  if (message_arena != submessage_arena) {
261  header = ::google::protobuf::internal::GetOwnedMessage(
262  message_arena, header, submessage_arena);
263  }
264 
265  } else {
266 
267  }
268  header_ = header;
269  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Fluid.header)
270 }
271 
272 // string name = 2;
273 inline void Fluid::clear_name() {
274  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
275 }
276 inline const ::std::string& Fluid::name() const {
277  // @@protoc_insertion_point(field_get:ignition.msgs.Fluid.name)
278  return name_.GetNoArena();
279 }
280 inline void Fluid::set_name(const ::std::string& value) {
281 
282  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
283  // @@protoc_insertion_point(field_set:ignition.msgs.Fluid.name)
284 }
285 #if LANG_CXX11
286 inline void Fluid::set_name(::std::string&& value) {
287 
288  name_.SetNoArena(
289  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
290  // @@protoc_insertion_point(field_set_rvalue:ignition.msgs.Fluid.name)
291 }
292 #endif
293 inline void Fluid::set_name(const char* value) {
294  GOOGLE_DCHECK(value != NULL);
295 
296  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
297  // @@protoc_insertion_point(field_set_char:ignition.msgs.Fluid.name)
298 }
299 inline void Fluid::set_name(const char* value, size_t size) {
300 
301  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
302  ::std::string(reinterpret_cast<const char*>(value), size));
303  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Fluid.name)
304 }
305 inline ::std::string* Fluid::mutable_name() {
306 
307  // @@protoc_insertion_point(field_mutable:ignition.msgs.Fluid.name)
308  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
309 }
310 inline ::std::string* Fluid::release_name() {
311  // @@protoc_insertion_point(field_release:ignition.msgs.Fluid.name)
312 
313  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
314 }
316  if (name != NULL) {
317 
318  } else {
319 
320  }
321  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
322  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Fluid.name)
323 }
324 
325 // repeated .ignition.msgs.Vector3d position = 3;
326 inline int Fluid::position_size() const {
327  return position_.size();
328 }
329 inline ::ignition::msgs::Vector3d* Fluid::mutable_position(int index) {
330  // @@protoc_insertion_point(field_mutable:ignition.msgs.Fluid.position)
331  return position_.Mutable(index);
332 }
333 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >*
335  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.Fluid.position)
336  return &position_;
337 }
338 inline const ::ignition::msgs::Vector3d& Fluid::position(int index) const {
339  // @@protoc_insertion_point(field_get:ignition.msgs.Fluid.position)
340  return position_.Get(index);
341 }
342 inline ::ignition::msgs::Vector3d* Fluid::add_position() {
343  // @@protoc_insertion_point(field_add:ignition.msgs.Fluid.position)
344  return position_.Add();
345 }
346 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >&
348  // @@protoc_insertion_point(field_list:ignition.msgs.Fluid.position)
349  return position_;
350 }
351 
352 #ifdef __GNUC__
353  #pragma GCC diagnostic pop
354 #endif // __GNUC__
355 
360 // @@protoc_insertion_point(namespace_scope)
361 
362 } // namespace msgs
363 } // namespace ignition
364 
365 #ifdef _MSC_VER
366 #pragma warning(pop)
367 #endif
368 // @@protoc_insertion_point(global_scope)
369 
370 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2ffluid_2eproto
STL class.
STL class.
Fluid & operator=(const Fluid &from)
Definition: build/ignition-msgs8/include/ignition/msgs/fluid.pb.h:85
::std::string * mutable_name()
Definition: build/ignition-msgs8/include/ignition/msgs/fluid.pb.h:305
T move(T... args)
Definition: build/ignition-msgs8/include/ignition/msgs/fluid.pb.h:51
Definition: build/ignition-msgs8/include/ignition/msgs/vector3d.pb.h:77
void set_allocated_name(::std::string *name)
Definition: build/ignition-msgs8/include/ignition/msgs/fluid.pb.h:315
int position_size() const
Definition: build/ignition-msgs8/include/ignition/msgs/fluid.pb.h:326
::ignition::msgs::Header * release_header()
Definition: build/ignition-msgs8/include/ignition/msgs/fluid.pb.h:237
const ::std::string & name() const
Definition: build/ignition-msgs8/include/ignition/msgs/fluid.pb.h:276
std::unique_ptr< const Fluid > ConstFluidUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/fluid.pb.h:357
Definition: build/ignition-msgs8/include/ignition/msgs/fluid.pb.h:49
void set_allocated_header(::ignition::msgs::Header *header)
Definition: build/ignition-msgs8/include/ignition/msgs/fluid.pb.h:253
IGNITION_MSGS_VISIBLE FluidDefaultTypeInternal _Fluid_default_instance_
Definition: build/ignition-msgs8/include/ignition/msgs/fluid.pb.h:78
Fluid * New(::google::protobuf::Arena *arena) const final
Definition: build/ignition-msgs8/include/ignition/msgs/fluid.pb.h:126
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d > & position() const
Definition: build/ignition-msgs8/include/ignition/msgs/fluid.pb.h:347
void Swap(Fluid *other)
friend void swap(Fluid &a, Fluid &b)
Definition: build/ignition-msgs8/include/ignition/msgs/fluid.pb.h:116
void set_name(const ::std::string &value)
Definition: build/ignition-msgs8/include/ignition/msgs/fluid.pb.h:280
std::unique_ptr< Fluid > FluidUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/fluid.pb.h:356
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d > * mutable_position()
Definition: build/ignition-msgs8/include/ignition/msgs/fluid.pb.h:334
Fluid * New() const final
Definition: build/ignition-msgs8/include/ignition/msgs/fluid.pb.h:122
bool has_header() const
Definition: build/ignition-msgs8/include/ignition/msgs/fluid.pb.h:225
std::shared_ptr< const Fluid > ConstFluidSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/fluid.pb.h:359
void IGNITION_MSGS_VISIBLE AddDescriptors()
::ignition::msgs::Vector3d * add_position()
Definition: build/ignition-msgs8/include/ignition/msgs/fluid.pb.h:342
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
STL namespace.
Definition: build/ignition-msgs8/include/ignition/msgs/header.pb.h:215
void clear_name()
Definition: build/ignition-msgs8/include/ignition/msgs/fluid.pb.h:273
static const Fluid * internal_default_instance()
Definition: build/ignition-msgs8/include/ignition/msgs/fluid.pb.h:108
const ::ignition::msgs::Header & header() const
Definition: build/ignition-msgs8/include/ignition/msgs/fluid.pb.h:231
STL class.
std::shared_ptr< Fluid > FluidSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/fluid.pb.h:358
::std::string * release_name()
Definition: build/ignition-msgs8/include/ignition/msgs/fluid.pb.h:310
Definition: build/ignition-msgs8/include/ignition/msgs/actor.pb.h:78
::ignition::msgs::Header * mutable_header()
Definition: build/ignition-msgs8/include/ignition/msgs/fluid.pb.h:244