Gazebo Msgs

API Reference

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