4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fatmosphere_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fatmosphere_2eproto
9 #include <google/protobuf/stubs/common.h>
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
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.
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>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
34 #include "gz/msgs/header.pb.h"
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fatmosphere_2eproto GZ_MSGS_VISIBLE
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[];
53 class AtmosphereDefaultTypeInternal;
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::Atmosphere* Arena::CreateMaybeMessage<::gz::msgs::Atmosphere>(Arena*);
77 return ::google::protobuf::internal::NameOfEnum(
82 return ::google::protobuf::internal::ParseNamedEnum<Atmosphere_Type>(
87 class GZ_MSGS_VISIBLE
Atmosphere :
public ::google::protobuf::Message {
101 *
this = ::std::move(from);
104 inline Atmosphere& operator=(Atmosphere&& from) noexcept {
105 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
106 if (
this != &from) InternalSwap(&from);
113 static const ::google::protobuf::Descriptor* descriptor();
114 static const Atmosphere& default_instance();
116 static void InitAsDefaultInstance();
121 static constexpr
int kIndexInFileMessages =
132 return CreateMaybeMessage<Atmosphere>(NULL);
136 return CreateMaybeMessage<Atmosphere>(arena);
138 void CopyFrom(const ::google::protobuf::Message& from)
final;
139 void MergeFrom(const ::google::protobuf::Message& from)
final;
143 bool IsInitialized() const final;
145 size_t ByteSizeLong() const final;
146 bool MergePartialFromCodedStream(
147 ::
google::protobuf::io::CodedInputStream* input) final;
148 void SerializeWithCachedSizes(
149 ::
google::protobuf::io::CodedOutputStream* output) const final;
150 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
151 bool deterministic, ::
google::protobuf::uint8* target) const final;
152 int GetCachedSize() const final {
return _cached_size_.Get(); }
157 void SetCachedSize(
int size)
const final;
160 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
163 inline void* MaybeArenaPtr()
const {
168 ::google::protobuf::Metadata GetMetadata() const final;
175 static inline
bool Type_IsValid(
int value) {
182 static const int Type_ARRAYSIZE =
184 static inline const ::google::protobuf::EnumDescriptor*
199 bool has_header()
const;
201 static const int kHeaderFieldNumber = 1;
203 const ::gz::msgs::Header& _internal_header()
const;
205 const ::gz::msgs::Header& header()
const;
211 void clear_temperature();
212 static const int kTemperatureFieldNumber = 3;
213 double temperature()
const;
214 void set_temperature(
double value);
217 void clear_pressure();
218 static const int kPressureFieldNumber = 4;
219 double pressure()
const;
220 void set_pressure(
double value);
224 static const int kTypeFieldNumber = 2;
229 void clear_enable_atmosphere();
230 static const int kEnableAtmosphereFieldNumber = 6;
231 bool enable_atmosphere()
const;
232 void set_enable_atmosphere(
bool value);
235 void clear_mass_density();
236 static const int kMassDensityFieldNumber = 5;
237 double mass_density()
const;
238 void set_mass_density(
double value);
243 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
248 bool enable_atmosphere_;
249 double mass_density_;
250 mutable ::google::protobuf::internal::CachedSize _cached_size_;
251 friend struct ::protobuf_gz_2fmsgs_2fatmosphere_2eproto::TableStruct;
259 #pragma GCC diagnostic push
260 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
268 inline const ::gz::msgs::Header& Atmosphere::_internal_header()
const {
272 const ::gz::msgs::Header* p = header_;
286 if (header_ == NULL) {
287 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
294 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
295 if (message_arena == NULL) {
296 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
299 ::google::protobuf::Arena* submessage_arena = NULL;
300 if (message_arena != submessage_arena) {
301 header = ::google::protobuf::internal::GetOwnedMessage(
302 message_arena,
header, submessage_arena);
336 temperature_ = value;
360 return mass_density_;
364 mass_density_ = value;
370 enable_atmosphere_ =
false;
374 return enable_atmosphere_;
378 enable_atmosphere_ = value;
383 #pragma GCC diagnostic pop
396 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::Atmosphere_Type>() {
405 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fatmosphere_2eproto