Ignition Msgs

API Reference

8.0.0~pre1
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_ignition_2fmsgs_2ffluid_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2ffluid_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>
32 #ifndef _MSC_VER
33 #pragma GCC system_header
34 #else
35 #pragma warning(push)
36 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
37 #endif
38 #ifdef __linux__
39 #include <sys/sysmacros.h>
40 #endif
41 #include <memory>
42 #include <ignition/msgs/Export.hh>
43 // @@protoc_insertion_point(includes)
44 
45 namespace ignition {
46 namespace msgs {
47 
48 // Internal implementation detail -- do not call these.
49 void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2ffluid_2eproto();
52 
53 class Fluid;
54 
55 // ===================================================================
56 
57 class IGNITION_MSGS_VISIBLE Fluid : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Fluid) */ {
58  public:
59  Fluid();
60  virtual ~Fluid();
61 
62  Fluid(const Fluid& from);
63 
64  inline Fluid& operator=(const Fluid& from) {
65  CopyFrom(from);
66  return *this;
67  }
68 
69  static const ::google::protobuf::Descriptor* descriptor();
70  static const Fluid& default_instance();
71 
72  void Swap(Fluid* other);
73 
74  // implements Message ----------------------------------------------
75 
76  inline Fluid* New() const { return New(NULL); }
77 
78  Fluid* New(::google::protobuf::Arena* arena) const;
79  void CopyFrom(const ::google::protobuf::Message& from);
80  void MergeFrom(const ::google::protobuf::Message& from);
81  void CopyFrom(const Fluid& from);
82  void MergeFrom(const Fluid& from);
83  void Clear();
84  bool IsInitialized() const;
85 
86  int ByteSize() const;
87  bool MergePartialFromCodedStream(
88  ::google::protobuf::io::CodedInputStream* input);
89  void SerializeWithCachedSizes(
90  ::google::protobuf::io::CodedOutputStream* output) const;
91  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
92  bool deterministic, ::google::protobuf::uint8* output) const;
93  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
94  return InternalSerializeWithCachedSizesToArray(false, output);
95  }
96  int GetCachedSize() const { return _cached_size_; }
97  private:
98  void SharedCtor();
99  void SharedDtor();
100  void SetCachedSize(int size) const;
101  void InternalSwap(Fluid* other);
102  private:
103  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
104  return _internal_metadata_.arena();
105  }
106  inline void* MaybeArenaPtr() const {
107  return _internal_metadata_.raw_arena_ptr();
108  }
109  public:
110 
111  ::google::protobuf::Metadata GetMetadata() const;
112 
113  // nested types ----------------------------------------------------
114 
115  // accessors -------------------------------------------------------
116 
117  // optional .ignition.msgs.Header header = 1;
118  bool has_header() const;
119  void clear_header();
120  static const int kHeaderFieldNumber = 1;
121  const ::ignition::msgs::Header& header() const;
122  ::ignition::msgs::Header* mutable_header();
123  ::ignition::msgs::Header* release_header();
124  void set_allocated_header(::ignition::msgs::Header* header);
125 
126  // optional string name = 2;
127  void clear_name();
128  static const int kNameFieldNumber = 2;
129  const ::std::string& name() const;
130  void set_name(const ::std::string& value);
131  void set_name(const char* value);
132  void set_name(const char* value, size_t size);
133  ::std::string* mutable_name();
134  ::std::string* release_name();
135  void set_allocated_name(::std::string* name);
136 
137  // repeated .ignition.msgs.Vector3d position = 3;
138  int position_size() const;
139  void clear_position();
140  static const int kPositionFieldNumber = 3;
141  const ::ignition::msgs::Vector3d& position(int index) const;
142  ::ignition::msgs::Vector3d* mutable_position(int index);
143  ::ignition::msgs::Vector3d* add_position();
144  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >*
145  mutable_position();
146  const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >&
147  position() const;
148 
149  // @@protoc_insertion_point(class_scope:ignition.msgs.Fluid)
150  private:
151 
152  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
153  bool _is_default_instance_;
154  ::ignition::msgs::Header* header_;
155  ::google::protobuf::internal::ArenaStringPtr name_;
156  ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d > position_;
157  mutable int _cached_size_;
158  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2ffluid_2eproto();
161 
162  void InitAsDefaultInstance();
163  static Fluid* default_instance_;
164 };
165 // ===================================================================
166 
167 
168 // ===================================================================
169 
170 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
171 // Fluid
172 
173 // optional .ignition.msgs.Header header = 1;
174 inline bool Fluid::has_header() const {
175  return !_is_default_instance_ && header_ != NULL;
176 }
177 inline void Fluid::clear_header() {
178  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
179  header_ = NULL;
180 }
181 inline const ::ignition::msgs::Header& Fluid::header() const {
182  // @@protoc_insertion_point(field_get:ignition.msgs.Fluid.header)
183  return header_ != NULL ? *header_ : *default_instance_->header_;
184 }
185 inline ::ignition::msgs::Header* Fluid::mutable_header() {
186 
187  if (header_ == NULL) {
188  header_ = new ::ignition::msgs::Header;
189  }
190  // @@protoc_insertion_point(field_mutable:ignition.msgs.Fluid.header)
191  return header_;
192 }
193 inline ::ignition::msgs::Header* Fluid::release_header() {
194  // @@protoc_insertion_point(field_release:ignition.msgs.Fluid.header)
195 
196  ::ignition::msgs::Header* temp = header_;
197  header_ = NULL;
198  return temp;
199 }
201  delete header_;
202  header_ = header;
203  if (header) {
204 
205  } else {
206 
207  }
208  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Fluid.header)
209 }
210 
211 // optional string name = 2;
212 inline void Fluid::clear_name() {
213  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
214 }
215 inline const ::std::string& Fluid::name() const {
216  // @@protoc_insertion_point(field_get:ignition.msgs.Fluid.name)
217  return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
218 }
219 inline void Fluid::set_name(const ::std::string& value) {
220 
221  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
222  // @@protoc_insertion_point(field_set:ignition.msgs.Fluid.name)
223 }
224 inline void Fluid::set_name(const char* value) {
225 
226  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
227  // @@protoc_insertion_point(field_set_char:ignition.msgs.Fluid.name)
228 }
229 inline void Fluid::set_name(const char* value, size_t size) {
230 
231  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
232  ::std::string(reinterpret_cast<const char*>(value), size));
233  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Fluid.name)
234 }
235 inline ::std::string* Fluid::mutable_name() {
236 
237  // @@protoc_insertion_point(field_mutable:ignition.msgs.Fluid.name)
238  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
239 }
240 inline ::std::string* Fluid::release_name() {
241  // @@protoc_insertion_point(field_release:ignition.msgs.Fluid.name)
242 
243  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
244 }
246  if (name != NULL) {
247 
248  } else {
249 
250  }
251  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
252  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Fluid.name)
253 }
254 
255 // repeated .ignition.msgs.Vector3d position = 3;
256 inline int Fluid::position_size() const {
257  return position_.size();
258 }
259 inline void Fluid::clear_position() {
260  position_.Clear();
261 }
262 inline const ::ignition::msgs::Vector3d& Fluid::position(int index) const {
263  // @@protoc_insertion_point(field_get:ignition.msgs.Fluid.position)
264  return position_.Get(index);
265 }
266 inline ::ignition::msgs::Vector3d* Fluid::mutable_position(int index) {
267  // @@protoc_insertion_point(field_mutable:ignition.msgs.Fluid.position)
268  return position_.Mutable(index);
269 }
270 inline ::ignition::msgs::Vector3d* Fluid::add_position() {
271  // @@protoc_insertion_point(field_add:ignition.msgs.Fluid.position)
272  return position_.Add();
273 }
274 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >*
276  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.Fluid.position)
277  return &position_;
278 }
279 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >&
281  // @@protoc_insertion_point(field_list:ignition.msgs.Fluid.position)
282  return position_;
283 }
284 
285 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
286 
291 // @@protoc_insertion_point(namespace_scope)
292 
293 } // namespace msgs
294 } // namespace ignition
295 
296 #ifdef _MSC_VER
297 #pragma warning(pop)
298 #endif
299 // @@protoc_insertion_point(global_scope)
300 
301 #endif // PROTOBUF_ignition_2fmsgs_2ffluid_2eproto__INCLUDED
::ignition::msgs::Vector3d * add_position()
Definition: fluid.pb.h:270
Fluid & operator=(const Fluid &from)
Definition: fluid.pb.h:64
const ::ignition::msgs::Header & header() const
Definition: fluid.pb.h:181
std::shared_ptr< Fluid > FluidSharedPtr
Definition: fluid.pb.h:289
::std::string * release_name()
Definition: fluid.pb.h:240
int position_size() const
Definition: fluid.pb.h:256
void clear_header()
Definition: fluid.pb.h:177
::ignition::msgs::Header * mutable_header()
Definition: fluid.pb.h:185
::ignition::msgs::Header * release_header()
Definition: fluid.pb.h:193
void clear_position()
Definition: fluid.pb.h:259
void set_allocated_header(::ignition::msgs::Header *header)
Definition: fluid.pb.h:200
::std::string * mutable_name()
Definition: fluid.pb.h:235
void set_name(const ::std::string &value)
Definition: fluid.pb.h:219
int GetCachedSize() const
Definition: fluid.pb.h:96
void set_allocated_name(::std::string *name)
Definition: fluid.pb.h:245
std::unique_ptr< const Fluid > ConstFluidUniquePtr
Definition: fluid.pb.h:288
const ::std::string & name() const
Definition: fluid.pb.h:215
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d > & position() const
Definition: fluid.pb.h:280
Definition: header.pb.h:161
STL class.
std::shared_ptr< const Fluid > ConstFluidSharedPtr
Definition: fluid.pb.h:290
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d > * mutable_position()
Definition: fluid.pb.h:275
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2ffluid_2eproto()
std::unique_ptr< Fluid > FluidUniquePtr
Definition: fluid.pb.h:287
Definition: vector3d.pb.h:56
STL class.
bool has_header() const
Definition: fluid.pb.h:174
void protobuf_AssignDesc_ignition_2fmsgs_2ffluid_2eproto()
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: fluid.pb.h:93
Definition: fluid.pb.h:57
Fluid * New() const
Definition: fluid.pb.h:76
void clear_name()
Definition: fluid.pb.h:212
void protobuf_ShutdownFile_ignition_2fmsgs_2ffluid_2eproto()