4 #ifndef PROTOBUF_ignition_2fmsgs_2fcolor_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2fcolor_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> 32 #pragma GCC system_header 35 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 38 #include <sys/sysmacros.h> 56 class IGNITION_MSGS_VISIBLE
Color :
public ::google::protobuf::Message {
68 static const ::google::protobuf::Descriptor* descriptor();
69 static const Color& default_instance();
71 void Swap(
Color* other);
77 Color* 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 Color& from);
81 void MergeFrom(
const Color& from);
83 bool IsInitialized()
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;
93 return InternalSerializeWithCachedSizesToArray(
false, output);
99 void SetCachedSize(
int size)
const;
100 void InternalSwap(
Color* other);
102 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
103 return _internal_metadata_.arena();
105 inline void* MaybeArenaPtr()
const {
106 return _internal_metadata_.raw_arena_ptr();
110 ::google::protobuf::Metadata GetMetadata()
const;
117 bool has_header()
const;
119 static const int kHeaderFieldNumber = 1;
120 const ::ignition::msgs::Header& header()
const;
127 static const int kRFieldNumber = 2;
129 void set_r(
float value);
133 static const int kGFieldNumber = 3;
135 void set_g(
float value);
139 static const int kBFieldNumber = 4;
141 void set_b(
float value);
145 static const int kAFieldNumber = 5;
147 void set_a(
float value);
152 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
153 bool _is_default_instance_;
159 mutable int _cached_size_;
164 void InitAsDefaultInstance();
165 static Color* default_instance_;
172 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 177 return !_is_default_instance_ && header_ != NULL;
180 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
185 return header_ != NULL ? *header_ : *default_instance_->header_;
189 if (header_ == NULL) {
190 header_ = new ::ignition::msgs::Header;
269 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 285 #endif // PROTOBUF_ignition_2fmsgs_2fcolor_2eproto__INCLUDED int GetCachedSize() const
Definition: color.pb.h:95
void protobuf_AssignDesc_ignition_2fmsgs_2fcolor_2eproto()
std::unique_ptr< Color > ColorUniquePtr
Definition: color.pb.h:271
void set_g(float value)
Definition: color.pb.h:235
void set_r(float value)
Definition: color.pb.h:221
::ignition::msgs::Header * mutable_header()
Definition: color.pb.h:187
Color & operator=(const Color &from)
Definition: color.pb.h:63
void protobuf_ShutdownFile_ignition_2fmsgs_2fcolor_2eproto()
void clear_g()
Definition: color.pb.h:228
bool has_header() const
Definition: color.pb.h:176
float a() const
Definition: color.pb.h:259
float b() const
Definition: color.pb.h:245
std::shared_ptr< Color > ColorSharedPtr
Definition: color.pb.h:273
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: color.pb.h:92
std::shared_ptr< const Color > ConstColorSharedPtr
Definition: color.pb.h:274
const ::ignition::msgs::Header & header() const
Definition: color.pb.h:183
float r() const
Definition: color.pb.h:217
std::unique_ptr< const Color > ConstColorUniquePtr
Definition: color.pb.h:272
Definition: color.pb.h:56
void set_b(float value)
Definition: color.pb.h:249
void clear_r()
Definition: color.pb.h:214
void set_allocated_header(::ignition::msgs::Header *header)
Definition: color.pb.h:202
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fcolor_2eproto()
void clear_b()
Definition: color.pb.h:242
float g() const
Definition: color.pb.h:231
Color * New() const
Definition: color.pb.h:75
::ignition::msgs::Header * release_header()
Definition: color.pb.h:195
void set_a(float value)
Definition: color.pb.h:263
void clear_header()
Definition: color.pb.h:179
void clear_a()
Definition: color.pb.h:256