Ignition Msgs

API Reference

8.2.0
cmd_vel2d.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/cmd_vel2d.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fcmd_5fvel2d_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fcmd_5fvel2d_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 CmdVel2D;
53 
54 // ===================================================================
55 
56 class IGNITION_MSGS_VISIBLE CmdVel2D : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.CmdVel2D) */ {
57  public:
58  CmdVel2D();
59  virtual ~CmdVel2D();
60 
61  CmdVel2D(const CmdVel2D& from);
62 
63  inline CmdVel2D& operator=(const CmdVel2D& from) {
64  CopyFrom(from);
65  return *this;
66  }
67 
68  static const ::google::protobuf::Descriptor* descriptor();
69  static const CmdVel2D& default_instance();
70 
71  void Swap(CmdVel2D* other);
72 
73  // implements Message ----------------------------------------------
74 
75  inline CmdVel2D* New() const { return New(NULL); }
76 
77  CmdVel2D* 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 CmdVel2D& from);
81  void MergeFrom(const CmdVel2D& 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(CmdVel2D* 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 double velocity = 2;
126  void clear_velocity();
127  static const int kVelocityFieldNumber = 2;
128  double velocity() const;
129  void set_velocity(double value);
130 
131  // optional double theta = 3;
132  void clear_theta();
133  static const int kThetaFieldNumber = 3;
134  double theta() const;
135  void set_theta(double value);
136 
137  // @@protoc_insertion_point(class_scope:ignition.msgs.CmdVel2D)
138  private:
139 
140  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
141  bool _is_default_instance_;
142  ::ignition::msgs::Header* header_;
143  double velocity_;
144  double theta_;
145  mutable int _cached_size_;
146  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fcmd_5fvel2d_2eproto();
149 
150  void InitAsDefaultInstance();
151  static CmdVel2D* default_instance_;
152 };
153 // ===================================================================
154 
155 
156 // ===================================================================
157 
158 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
159 // CmdVel2D
160 
161 // optional .ignition.msgs.Header header = 1;
162 inline bool CmdVel2D::has_header() const {
163  return !_is_default_instance_ && header_ != NULL;
164 }
165 inline void CmdVel2D::clear_header() {
166  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
167  header_ = NULL;
168 }
169 inline const ::ignition::msgs::Header& CmdVel2D::header() const {
170  // @@protoc_insertion_point(field_get:ignition.msgs.CmdVel2D.header)
171  return header_ != NULL ? *header_ : *default_instance_->header_;
172 }
173 inline ::ignition::msgs::Header* CmdVel2D::mutable_header() {
174 
175  if (header_ == NULL) {
176  header_ = new ::ignition::msgs::Header;
177  }
178  // @@protoc_insertion_point(field_mutable:ignition.msgs.CmdVel2D.header)
179  return header_;
180 }
181 inline ::ignition::msgs::Header* CmdVel2D::release_header() {
182  // @@protoc_insertion_point(field_release:ignition.msgs.CmdVel2D.header)
183 
184  ::ignition::msgs::Header* temp = header_;
185  header_ = NULL;
186  return temp;
187 }
189  delete header_;
190  header_ = header;
191  if (header) {
192 
193  } else {
194 
195  }
196  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.CmdVel2D.header)
197 }
198 
199 // optional double velocity = 2;
201  velocity_ = 0;
202 }
203 inline double CmdVel2D::velocity() const {
204  // @@protoc_insertion_point(field_get:ignition.msgs.CmdVel2D.velocity)
205  return velocity_;
206 }
207 inline void CmdVel2D::set_velocity(double value) {
208 
209  velocity_ = value;
210  // @@protoc_insertion_point(field_set:ignition.msgs.CmdVel2D.velocity)
211 }
212 
213 // optional double theta = 3;
214 inline void CmdVel2D::clear_theta() {
215  theta_ = 0;
216 }
217 inline double CmdVel2D::theta() const {
218  // @@protoc_insertion_point(field_get:ignition.msgs.CmdVel2D.theta)
219  return theta_;
220 }
221 inline void CmdVel2D::set_theta(double value) {
222 
223  theta_ = value;
224  // @@protoc_insertion_point(field_set:ignition.msgs.CmdVel2D.theta)
225 }
226 
227 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
228 
233 // @@protoc_insertion_point(namespace_scope)
234 
235 } // namespace msgs
236 } // namespace ignition
237 
238 #ifdef _MSC_VER
239 #pragma warning(pop)
240 #endif
241 // @@protoc_insertion_point(global_scope)
242 
243 #endif // PROTOBUF_ignition_2fmsgs_2fcmd_5fvel2d_2eproto__INCLUDED
int GetCachedSize() const
Definition: cmd_vel2d.pb.h:95
::ignition::msgs::Header * release_header()
Definition: cmd_vel2d.pb.h:181
::ignition::msgs::Header * mutable_header()
Definition: cmd_vel2d.pb.h:173
CmdVel2D * New() const
Definition: cmd_vel2d.pb.h:75
void set_allocated_header(::ignition::msgs::Header *header)
Definition: cmd_vel2d.pb.h:188
std::unique_ptr< CmdVel2D > CmdVel2DUniquePtr
Definition: cmd_vel2d.pb.h:229
void set_theta(double value)
Definition: cmd_vel2d.pb.h:221
double velocity() const
Definition: cmd_vel2d.pb.h:203
Definition: header.pb.h:161
void clear_header()
Definition: cmd_vel2d.pb.h:165
CmdVel2D & operator=(const CmdVel2D &from)
Definition: cmd_vel2d.pb.h:63
Definition: cmd_vel2d.pb.h:56
void clear_theta()
Definition: cmd_vel2d.pb.h:214
void protobuf_ShutdownFile_ignition_2fmsgs_2fcmd_5fvel2d_2eproto()
std::shared_ptr< const CmdVel2D > ConstCmdVel2DSharedPtr
Definition: cmd_vel2d.pb.h:232
std::unique_ptr< const CmdVel2D > ConstCmdVel2DUniquePtr
Definition: cmd_vel2d.pb.h:230
STL class.
const ::ignition::msgs::Header & header() const
Definition: cmd_vel2d.pb.h:169
void set_velocity(double value)
Definition: cmd_vel2d.pb.h:207
void clear_velocity()
Definition: cmd_vel2d.pb.h:200
std::shared_ptr< CmdVel2D > CmdVel2DSharedPtr
Definition: cmd_vel2d.pb.h:231
double theta() const
Definition: cmd_vel2d.pb.h:217
void protobuf_AssignDesc_ignition_2fmsgs_2fcmd_5fvel2d_2eproto()
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: cmd_vel2d.pb.h:92
bool has_header() const
Definition: cmd_vel2d.pb.h:162
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fcmd_5fvel2d_2eproto()