4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fselection_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fselection_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3012000
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 3012004 < 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/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/inlined_string_field.h>
29 #include <google/protobuf/metadata_lite.h>
30 #include <google/protobuf/generated_message_reflection.h>
31 #include <google/protobuf/message.h>
32 #include <google/protobuf/repeated_field.h>
33 #include <google/protobuf/extension_set.h>
34 #include <google/protobuf/unknown_field_set.h>
37 #pragma GCC system_header
40 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
43 #include <sys/sysmacros.h>
48 #include <google/protobuf/port_def.inc>
49 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fselection_2eproto IGNITION_MSGS_VISIBLE
50 PROTOBUF_NAMESPACE_OPEN
54 PROTOBUF_NAMESPACE_CLOSE
58 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
60 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
62 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
64 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
65 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
66 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
72 class SelectionDefaultTypeInternal;
76 PROTOBUF_NAMESPACE_OPEN
77 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Selection* Arena::CreateMaybeMessage<::ignition::msgs::Selection>(Arena*);
78 PROTOBUF_NAMESPACE_CLOSE
84 class IGNITION_MSGS_VISIBLE Selection PROTOBUF_FINAL :
85 public ::PROTOBUF_NAMESPACE_ID::Message {
93 *
this = ::std::move(from);
96 inline Selection&
operator=(
const Selection& from) {
100 inline Selection&
operator=(Selection&& from) noexcept {
101 if (GetArena() == from.GetArena()) {
102 if (
this != &from) InternalSwap(&from);
109 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
110 return GetDescriptor();
113 return GetMetadataStatic().descriptor;
116 return GetMetadataStatic().reflection;
122 return reinterpret_cast<const Selection*
>(
125 static constexpr
int kIndexInFileMessages =
128 friend void swap(Selection& a, Selection& b) {
131 inline void Swap(Selection* other) {
132 if (other ==
this)
return;
133 if (GetArena() == other->GetArena()) {
136 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
140 if (other ==
this)
return;
141 GOOGLE_DCHECK(GetArena() == other->GetArena());
147 inline Selection*
New() const final {
148 return CreateMaybeMessage<Selection>(
nullptr);
151 Selection*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
152 return CreateMaybeMessage<Selection>(arena);
154 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
155 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
158 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
159 bool IsInitialized() const final;
161 size_t ByteSizeLong() const final;
162 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
163 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
164 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
165 int GetCachedSize() const final {
return _cached_size_.Get(); }
168 inline void SharedCtor();
169 inline void SharedDtor();
170 void SetCachedSize(
int size)
const final;
171 void InternalSwap(Selection* other);
172 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
173 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
174 return "ignition.msgs.Selection";
177 explicit Selection(::PROTOBUF_NAMESPACE_ID::Arena* arena);
179 static void ArenaDtor(
void*
object);
180 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
185 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
197 kNameFieldNumber = 3,
198 kHeaderFieldNumber = 1,
200 kSelectedFieldNumber = 4,
212 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(
"The unsafe_arena_ accessors for"
213 " string fields are deprecated and will be removed in a"
215 std::
string* unsafe_arena_release_name();
216 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
217 "
string fields are deprecated and will be removed in a"
219 void unsafe_arena_set_allocated_name(
222 const
std::
string& _internal_name() const;
223 void _internal_set_name(const
std::
string& value);
224 std::
string* _internal_mutable_name();
228 bool has_header() const;
230 bool _internal_has_header() const;
236 void set_allocated_header(::
ignition::msgs::Header* header);
238 const ::
ignition::msgs::Header& _internal_header() const;
239 ::
ignition::msgs::Header* _internal_mutable_header();
241 void unsafe_arena_set_allocated_header(
243 ::
ignition::msgs::Header* unsafe_arena_release_header();
247 ::PROTOBUF_NAMESPACE_ID::uint32
id() const;
248 void set_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
250 ::PROTOBUF_NAMESPACE_ID::uint32 _internal_id() const;
251 void _internal_set_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
255 void clear_selected();
256 bool selected() const;
257 void set_selected(
bool value);
259 bool _internal_selected() const;
260 void _internal_set_selected(
bool value);
267 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
268 typedef
void InternalArenaConstructable_;
269 typedef
void DestructorSkippable_;
270 ::PROTOBUF_NAMESPACE_ID::
internal::ArenaStringPtr name_;
272 ::PROTOBUF_NAMESPACE_ID::uint32 id_;
274 mutable ::PROTOBUF_NAMESPACE_ID::
internal::CachedSize _cached_size_;
283 #pragma GCC diagnostic push
284 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
289 inline bool Selection::_internal_has_header()
const {
290 return this != internal_default_instance() && header_ !=
nullptr;
292 inline bool Selection::has_header()
const {
293 return _internal_has_header();
295 inline const ::ignition::msgs::Header& Selection::_internal_header()
const {
296 const ::ignition::msgs::Header* p = header_;
297 return p !=
nullptr ? *p : *
reinterpret_cast<const ::ignition::msgs::Header*
>(
300 inline const ::ignition::msgs::Header& Selection::header()
const {
302 return _internal_header();
304 inline void Selection::unsafe_arena_set_allocated_header(
305 ::ignition::msgs::Header* header) {
306 if (GetArena() ==
nullptr) {
307 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
317 inline ::ignition::msgs::Header* Selection::release_header() {
318 auto temp = unsafe_arena_release_header();
319 if (GetArena() !=
nullptr) {
320 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
324 inline ::ignition::msgs::Header* Selection::unsafe_arena_release_header() {
327 ::ignition::msgs::Header* temp = header_;
331 inline ::ignition::msgs::Header* Selection::_internal_mutable_header() {
333 if (header_ ==
nullptr) {
334 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
339 inline ::ignition::msgs::Header* Selection::mutable_header() {
341 return _internal_mutable_header();
343 inline void Selection::set_allocated_header(::ignition::msgs::Header* header) {
344 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
345 if (message_arena ==
nullptr) {
346 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
349 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
350 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header)->GetArena();
351 if (message_arena != submessage_arena) {
352 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
353 message_arena, header, submessage_arena);
364 inline void Selection::clear_id() {
367 inline ::PROTOBUF_NAMESPACE_ID::uint32 Selection::_internal_id()
const {
370 inline ::PROTOBUF_NAMESPACE_ID::uint32 Selection::id()
const {
372 return _internal_id();
374 inline void Selection::_internal_set_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
378 inline void Selection::set_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
379 _internal_set_id(value);
384 inline void Selection::clear_name() {
385 name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
387 inline const std::string& Selection::name()
const {
389 return _internal_name();
391 inline void Selection::set_name(
const std::string& value) {
392 _internal_set_name(value);
397 return _internal_mutable_name();
399 inline const std::string& Selection::_internal_name()
const {
402 inline void Selection::_internal_set_name(
const std::string& value) {
404 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
406 inline void Selection::set_name(
std::string&& value) {
409 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::move(value), GetArena());
412 inline void Selection::set_name(
const char* value) {
413 GOOGLE_DCHECK(value !=
nullptr);
415 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::string(value),
419 inline void Selection::set_name(
const char* value,
422 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::string(
423 reinterpret_cast<const char*
>(value), size), GetArena());
426 inline std::string* Selection::_internal_mutable_name() {
428 return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
432 return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
434 inline void Selection::set_allocated_name(
std::string* name) {
435 if (name !=
nullptr) {
440 name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
444 inline std::string* Selection::unsafe_arena_release_name() {
446 GOOGLE_DCHECK(GetArena() !=
nullptr);
448 return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
451 inline void Selection::unsafe_arena_set_allocated_name(
453 GOOGLE_DCHECK(GetArena() !=
nullptr);
454 if (name !=
nullptr) {
459 name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
465 inline void Selection::clear_selected() {
468 inline bool Selection::_internal_selected()
const {
471 inline bool Selection::selected()
const {
473 return _internal_selected();
475 inline void Selection::_internal_set_selected(
bool value) {
479 inline void Selection::set_selected(
bool value) {
480 _internal_set_selected(value);
485 #pragma GCC diagnostic pop
502 #include <google/protobuf/port_undef.inc>
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fselection_2eproto
static void InitAsDefaultInstance()
void MergeFrom(const Selection &from)
Selection * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: build/ignition-msgs8/include/ignition/msgs/selection.pb.h:151
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: build/ignition-msgs8/include/ignition/msgs/selection.pb.h:115
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void set_name(const char *value, size_t size)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/selection.pb.h:109
void set_name(const std::string &value)
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
std::string * mutable_name()
void CopyFrom(const Selection &from)
std::string * release_name()
void UnsafeArenaSwap(Selection *other)
Definition: build/ignition-msgs8/include/ignition/msgs/selection.pb.h:139
friend void swap(Selection &a, Selection &b)
Definition: build/ignition-msgs8/include/ignition/msgs/selection.pb.h:128
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
Selection & operator=(Selection &&from) noexcept
Definition: build/ignition-msgs8/include/ignition/msgs/selection.pb.h:100
Selection(::PROTOBUF_NAMESPACE_ID::Arena *arena)
Selection(const Selection &from)
static const Selection * internal_default_instance()
Definition: build/ignition-msgs8/include/ignition/msgs/selection.pb.h:121
Selection * New() const final
Definition: build/ignition-msgs8/include/ignition/msgs/selection.pb.h:147
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/selection.pb.h:112
static const Selection & default_instance()
Selection(Selection &&from) noexcept
Definition: build/ignition-msgs8/include/ignition/msgs/selection.pb.h:91
const std::string & name() const
Selection & operator=(const Selection &from)
Definition: build/ignition-msgs8/include/ignition/msgs/selection.pb.h:96
void set_name(const char *value)
void set_name(std::string &&value)
Selection()
Definition: build/ignition-msgs8/include/ignition/msgs/selection.pb.h:87
void set_allocated_name(std::string *name)
void Swap(Selection *other)
Definition: build/ignition-msgs8/include/ignition/msgs/selection.pb.h:131
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::unique_ptr< const Selection > ConstSelectionUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/selection.pb.h:489
std::unique_ptr< Selection > SelectionUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/selection.pb.h:488
IGNITION_MSGS_VISIBLE SelectionDefaultTypeInternal _Selection_default_instance_
std::shared_ptr< Selection > SelectionSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/selection.pb.h:490
std::shared_ptr< const Selection > ConstSelectionSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/selection.pb.h:491
Definition: build/ignition-msgs8/include/ignition/msgs/actor.pb.h:53
Definition: build/ignition-msgs8/include/ignition/msgs/selection.pb.h:57
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)