4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fshadows_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fshadows_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_2fshadows_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 ShadowsDefaultTypeInternal;
60 template<> GZ_MSGS_VISIBLE ::gz::msgs::Shadows* Arena::CreateMaybeMessage<::gz::msgs::Shadows>(Arena*);
81 return ::google::protobuf::internal::NameOfEnum(
86 return ::google::protobuf::internal::ParseNamedEnum<Shadows_ShadowType>(
91 class GZ_MSGS_VISIBLE
Shadows :
public ::google::protobuf::Message {
105 *
this = ::std::move(from);
108 inline Shadows& operator=(Shadows&& from) noexcept {
109 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
110 if (
this != &from) InternalSwap(&from);
117 static const ::google::protobuf::Descriptor* descriptor();
118 static const Shadows& default_instance();
120 static void InitAsDefaultInstance();
122 return reinterpret_cast<const Shadows*
>(
125 static constexpr
int kIndexInFileMessages =
136 return CreateMaybeMessage<Shadows>(NULL);
140 return CreateMaybeMessage<Shadows>(arena);
142 void CopyFrom(const ::google::protobuf::Message& from)
final;
143 void MergeFrom(const ::google::protobuf::Message& from)
final;
144 void CopyFrom(
const Shadows& from);
145 void MergeFrom(
const Shadows& 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(
Shadows* other);
164 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
167 inline void* MaybeArenaPtr()
const {
172 ::google::protobuf::Metadata GetMetadata() const final;
185 static inline
bool ShadowType_IsValid(
int value) {
192 static const int ShadowType_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;
241 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
245 mutable ::google::protobuf::internal::CachedSize _cached_size_;
246 friend struct ::protobuf_gz_2fmsgs_2fshadows_2eproto::TableStruct;
254 #pragma GCC diagnostic push
255 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
263 inline const ::gz::msgs::Header& Shadows::_internal_header()
const {
267 const ::gz::msgs::Header* p = header_;
281 if (header_ == NULL) {
282 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
289 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
290 if (message_arena == NULL) {
291 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
294 ::google::protobuf::Arena* submessage_arena = NULL;
295 if (message_arena != submessage_arena) {
296 header = ::google::protobuf::internal::GetOwnedMessage(
297 message_arena,
header, submessage_arena);
325 inline const ::gz::msgs::Color& Shadows::_internal_color()
const {
329 const ::gz::msgs::Color* p = color_;
343 if (color_ == NULL) {
344 auto* p = CreateMaybeMessage<::gz::msgs::Color>(GetArenaNoVirtual());
351 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
352 if (message_arena == NULL) {
353 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(color_);
356 ::google::protobuf::Arena* submessage_arena = NULL;
357 if (message_arena != submessage_arena) {
358 color = ::google::protobuf::internal::GetOwnedMessage(
359 message_arena,
color, submessage_arena);
370 #pragma GCC diagnostic pop
383 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::Shadows_ShadowType>() {
392 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fshadows_2eproto