4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2ffog_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2ffog_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/color.pb.h"
35 #include "gz/msgs/header.pb.h"
37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2ffog_2eproto GZ_MSGS_VISIBLE
42 static const ::google::protobuf::internal::ParseTableField entries[];
43 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
44 static const ::google::protobuf::internal::ParseTable schema[1];
45 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
46 static const ::google::protobuf::internal::SerializationTable serialization_table[];
47 static const ::google::protobuf::uint32 offsets[];
54 class FogDefaultTypeInternal;
60 template<> GZ_MSGS_VISIBLE ::gz::msgs::Fog* Arena::CreateMaybeMessage<::gz::msgs::Fog>(Arena*);
81 return ::google::protobuf::internal::NameOfEnum(
86 return ::google::protobuf::internal::ParseNamedEnum<Fog_FogType>(
91 class GZ_MSGS_VISIBLE
Fog :
public ::google::protobuf::Message {
105 *
this = ::std::move(from);
108 inline Fog& operator=(Fog&& from) noexcept {
109 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
110 if (
this != &from) InternalSwap(&from);
117 static const ::google::protobuf::Descriptor* descriptor();
118 static const Fog& default_instance();
120 static void InitAsDefaultInstance();
122 return reinterpret_cast<const Fog*
>(
125 static constexpr
int kIndexInFileMessages =
128 void Swap(
Fog* other);
136 return CreateMaybeMessage<Fog>(NULL);
139 Fog*
New(::google::protobuf::Arena* arena)
const final {
140 return CreateMaybeMessage<Fog>(arena);
142 void CopyFrom(const ::google::protobuf::Message& from)
final;
143 void MergeFrom(const ::google::protobuf::Message& from)
final;
144 void CopyFrom(
const Fog& from);
145 void MergeFrom(
const Fog& from);
147 bool IsInitialized() const final;
149 size_t ByteSizeLong() const final;
150 bool MergePartialFromCodedStream(
151 ::
google::protobuf::io::CodedInputStream* input) final;
152 void SerializeWithCachedSizes(
153 ::
google::protobuf::io::CodedOutputStream* output) const final;
154 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
155 bool deterministic, ::
google::protobuf::uint8* target) const final;
156 int GetCachedSize() const final {
return _cached_size_.Get(); }
161 void SetCachedSize(
int size)
const final;
162 void InternalSwap(
Fog* other);
164 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
167 inline void* MaybeArenaPtr()
const {
172 ::google::protobuf::Metadata GetMetadata() const final;
185 static inline
bool FogType_IsValid(
int value) {
192 static const int FogType_ARRAYSIZE =
194 static inline const ::google::protobuf::EnumDescriptor*
209 bool has_header()
const;
211 static const int kHeaderFieldNumber = 1;
213 const ::gz::msgs::Header& _internal_header()
const;
215 const ::gz::msgs::Header& header()
const;
221 bool has_color()
const;
223 static const int kColorFieldNumber = 3;
225 const ::gz::msgs::Color& _internal_color()
const;
227 const ::gz::msgs::Color& color()
const;
234 static const int kTypeFieldNumber = 2;
239 void clear_density();
240 static const int kDensityFieldNumber = 4;
241 float density()
const;
242 void set_density(
float value);
246 static const int kStartFieldNumber = 5;
248 void set_start(
float value);
252 static const int kEndFieldNumber = 6;
254 void set_end(
float value);
259 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
266 mutable ::google::protobuf::internal::CachedSize _cached_size_;
267 friend struct ::protobuf_gz_2fmsgs_2ffog_2eproto::TableStruct;
275 #pragma GCC diagnostic push
276 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
284 inline const ::gz::msgs::Header& Fog::_internal_header()
const {
288 const ::gz::msgs::Header* p = header_;
302 if (header_ == NULL) {
303 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
310 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
311 if (message_arena == NULL) {
312 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
315 ::google::protobuf::Arena* submessage_arena = NULL;
316 if (message_arena != submessage_arena) {
317 header = ::google::protobuf::internal::GetOwnedMessage(
318 message_arena,
header, submessage_arena);
346 inline const ::gz::msgs::Color& Fog::_internal_color()
const {
350 const ::gz::msgs::Color* p = color_;
364 if (color_ == NULL) {
365 auto* p = CreateMaybeMessage<::gz::msgs::Color>(GetArenaNoVirtual());
372 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
373 if (message_arena == NULL) {
374 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(color_);
377 ::google::protobuf::Arena* submessage_arena = NULL;
378 if (message_arena != submessage_arena) {
379 color = ::google::protobuf::internal::GetOwnedMessage(
380 message_arena,
color, submessage_arena);
433 #pragma GCC diagnostic pop
446 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::Fog_FogType>() {
455 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2ffog_2eproto