4 #ifndef PROTOBUF_ignition_2fmsgs_2fwind_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2fwind_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 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 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. 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> 33 #pragma GCC system_header 36 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 39 #include <sys/sysmacros.h> 57 class IGNITION_MSGS_VISIBLE
Wind :
public ::google::protobuf::Message {
69 static const ::google::protobuf::Descriptor* descriptor();
70 static const Wind& default_instance();
72 void Swap(
Wind* other);
78 Wind* 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 Wind& from);
82 void MergeFrom(
const Wind& from);
84 bool IsInitialized()
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;
94 return InternalSerializeWithCachedSizesToArray(
false, output);
100 void SetCachedSize(
int size)
const;
101 void InternalSwap(
Wind* other);
103 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
104 return _internal_metadata_.arena();
106 inline void* MaybeArenaPtr()
const {
107 return _internal_metadata_.raw_arena_ptr();
111 ::google::protobuf::Metadata GetMetadata()
const;
118 bool has_header()
const;
120 static const int kHeaderFieldNumber = 1;
121 const ::ignition::msgs::Header& header()
const;
127 bool has_linear_velocity()
const;
128 void clear_linear_velocity();
129 static const int kLinearVelocityFieldNumber = 2;
130 const ::ignition::msgs::Vector3d& linear_velocity()
const;
136 void clear_enable_wind();
137 static const int kEnableWindFieldNumber = 3;
138 bool enable_wind()
const;
139 void set_enable_wind(
bool value);
144 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
145 bool _is_default_instance_;
149 mutable int _cached_size_;
154 void InitAsDefaultInstance();
155 static Wind* default_instance_;
162 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 167 return !_is_default_instance_ && header_ != NULL;
170 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
175 return header_ != NULL ? *header_ : *default_instance_->header_;
179 if (header_ == NULL) {
180 header_ = new ::ignition::msgs::Header;
205 return !_is_default_instance_ && linear_velocity_ != NULL;
208 if (GetArenaNoVirtual() == NULL && linear_velocity_ != NULL)
delete linear_velocity_;
209 linear_velocity_ = NULL;
213 return linear_velocity_ != NULL ? *linear_velocity_ : *default_instance_->linear_velocity_;
217 if (linear_velocity_ == NULL) {
218 linear_velocity_ = new ::ignition::msgs::Vector3d;
221 return linear_velocity_;
227 linear_velocity_ = NULL;
231 delete linear_velocity_;
232 linear_velocity_ = linear_velocity;
233 if (linear_velocity) {
243 enable_wind_ =
false;
251 enable_wind_ = value;
255 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 271 #endif // PROTOBUF_ignition_2fmsgs_2fwind_2eproto__INCLUDED std::shared_ptr< Wind > WindSharedPtr
Definition: wind.pb.h:259
int GetCachedSize() const
Definition: wind.pb.h:96
Wind * New() const
Definition: wind.pb.h:76
void clear_enable_wind()
Definition: wind.pb.h:242
std::unique_ptr< Wind > WindUniquePtr
Definition: wind.pb.h:257
bool enable_wind() const
Definition: wind.pb.h:245
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fwind_2eproto()
void set_allocated_linear_velocity(::ignition::msgs::Vector3d *linear_velocity)
Definition: wind.pb.h:230
bool has_linear_velocity() const
Definition: wind.pb.h:204
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: wind.pb.h:93
void protobuf_AssignDesc_ignition_2fmsgs_2fwind_2eproto()
void protobuf_ShutdownFile_ignition_2fmsgs_2fwind_2eproto()
void clear_header()
Definition: wind.pb.h:169
void set_allocated_header(::ignition::msgs::Header *header)
Definition: wind.pb.h:192
::ignition::msgs::Vector3d * release_linear_velocity()
Definition: wind.pb.h:223
std::shared_ptr< const Wind > ConstWindSharedPtr
Definition: wind.pb.h:260
void set_enable_wind(bool value)
Definition: wind.pb.h:249
::ignition::msgs::Header * mutable_header()
Definition: wind.pb.h:177
Definition: vector3d.pb.h:56
Wind & operator=(const Wind &from)
Definition: wind.pb.h:64
::ignition::msgs::Vector3d * mutable_linear_velocity()
Definition: wind.pb.h:215
::ignition::msgs::Header * release_header()
Definition: wind.pb.h:185
bool has_header() const
Definition: wind.pb.h:166
std::unique_ptr< const Wind > ConstWindUniquePtr
Definition: wind.pb.h:258
const ::ignition::msgs::Header & header() const
Definition: wind.pb.h:173
const ::ignition::msgs::Vector3d & linear_velocity() const
Definition: wind.pb.h:211
void clear_linear_velocity()
Definition: wind.pb.h:207