4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fcontacts_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fcontacts_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3014000
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 3014000 < 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/metadata_lite.h>
29 #include <google/protobuf/generated_message_reflection.h>
30 #include <google/protobuf/message.h>
31 #include <google/protobuf/repeated_field.h>
32 #include <google/protobuf/extension_set.h>
33 #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_2fcontacts_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::AuxiliaryParseTableField 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 ContactsDefaultTypeInternal;
76 PROTOBUF_NAMESPACE_OPEN
77 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Contacts* Arena::CreateMaybeMessage<::ignition::msgs::Contacts>(Arena*);
78 PROTOBUF_NAMESPACE_CLOSE
84 class IGNITION_MSGS_VISIBLE Contacts PROTOBUF_FINAL :
85 public ::PROTOBUF_NAMESPACE_ID::Message {
93 *
this = ::std::move(from);
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;
121 return reinterpret_cast<const Contacts*
>(
124 static constexpr
int kIndexInFileMessages =
127 friend void swap(Contacts& a, Contacts& b) {
130 inline void Swap(Contacts* other) {
131 if (other ==
this)
return;
132 if (GetArena() == other->GetArena()) {
135 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
139 if (other ==
this)
return;
140 GOOGLE_DCHECK(GetArena() == other->GetArena());
146 inline Contacts*
New() const final {
147 return CreateMaybeMessage<Contacts>(
nullptr);
150 Contacts*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
151 return CreateMaybeMessage<Contacts>(arena);
153 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
154 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
157 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
158 bool IsInitialized() const final;
160 size_t ByteSizeLong() const final;
161 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
162 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
163 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
164 int GetCachedSize() const final {
return _cached_size_.Get(); }
167 inline void SharedCtor();
168 inline void SharedDtor();
169 void SetCachedSize(
int size)
const final;
170 void InternalSwap(Contacts* other);
171 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
172 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
173 return "ignition.msgs.Contacts";
176 explicit Contacts(::PROTOBUF_NAMESPACE_ID::Arena* arena);
178 static void ArenaDtor(
void*
object);
179 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
184 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
196 kContactFieldNumber = 2,
197 kHeaderFieldNumber = 1,
202 int _internal_contact_size()
const;
206 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Contact >*
209 const ::ignition::msgs::Contact& _internal_contact(
int index)
const;
210 ::ignition::msgs::Contact* _internal_add_contact();
212 const ::ignition::msgs::Contact&
contact(
int index)
const;
214 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Contact >&
220 bool _internal_has_header()
const;
223 const ::ignition::msgs::Header&
header()
const;
228 const ::ignition::msgs::Header& _internal_header()
const;
229 ::ignition::msgs::Header* _internal_mutable_header();
232 ::ignition::msgs::Header* header);
239 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
240 typedef void InternalArenaConstructable_;
241 typedef void DestructorSkippable_;
242 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Contact > contact_;
243 ::ignition::msgs::Header* header_;
244 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
245 friend struct ::TableStruct_ignition_2fmsgs_2fcontacts_2eproto;
253 #pragma GCC diagnostic push
254 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
259 inline bool Contacts::_internal_has_header()
const {
260 return this != internal_default_instance() && header_ !=
nullptr;
262 inline bool Contacts::has_header()
const {
263 return _internal_has_header();
265 inline const ::ignition::msgs::Header& Contacts::_internal_header()
const {
266 const ::ignition::msgs::Header* p = header_;
267 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Header&
>(
270 inline const ::ignition::msgs::Header& Contacts::header()
const {
272 return _internal_header();
274 inline void Contacts::unsafe_arena_set_allocated_header(
275 ::ignition::msgs::Header* header) {
276 if (GetArena() ==
nullptr) {
277 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
287 inline ::ignition::msgs::Header* Contacts::release_header() {
289 ::ignition::msgs::Header* temp = header_;
291 if (GetArena() !=
nullptr) {
292 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
296 inline ::ignition::msgs::Header* Contacts::unsafe_arena_release_header() {
299 ::ignition::msgs::Header* temp = header_;
303 inline ::ignition::msgs::Header* Contacts::_internal_mutable_header() {
305 if (header_ ==
nullptr) {
306 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
311 inline ::ignition::msgs::Header* Contacts::mutable_header() {
313 return _internal_mutable_header();
315 inline void Contacts::set_allocated_header(::ignition::msgs::Header* header) {
316 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
317 if (message_arena ==
nullptr) {
318 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
321 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
322 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header)->GetArena();
323 if (message_arena != submessage_arena) {
324 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
325 message_arena, header, submessage_arena);
336 inline int Contacts::_internal_contact_size()
const {
337 return contact_.size();
339 inline int Contacts::contact_size()
const {
340 return _internal_contact_size();
342 inline ::ignition::msgs::Contact* Contacts::mutable_contact(
int index) {
344 return contact_.Mutable(index);
346 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Contact >*
347 Contacts::mutable_contact() {
351 inline const ::ignition::msgs::Contact& Contacts::_internal_contact(
int index)
const {
352 return contact_.Get(index);
354 inline const ::ignition::msgs::Contact& Contacts::contact(
int index)
const {
356 return _internal_contact(index);
358 inline ::ignition::msgs::Contact* Contacts::_internal_add_contact() {
359 return contact_.Add();
361 inline ::ignition::msgs::Contact* Contacts::add_contact() {
363 return _internal_add_contact();
365 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Contact >&
366 Contacts::contact()
const {
372 #pragma GCC diagnostic pop
389 #include <google/protobuf/port_undef.inc>
void MergeFrom(const Contacts &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: contacts.pb.h:115
Contacts(Contacts &&from) noexcept
Definition: contacts.pb.h:91
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::ignition::msgs::Header * release_header()
void CopyFrom(const Contacts &from)
::ignition::msgs::Header * mutable_header()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: contacts.pb.h:109
::ignition::msgs::Contact * mutable_contact(int index)
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void Swap(Contacts *other)
Definition: contacts.pb.h:130
Contacts()
Definition: contacts.pb.h:87
Contacts * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: contacts.pb.h:150
Contacts * New() const final
Definition: contacts.pb.h:146
const ::ignition::msgs::Contact & contact(int index) const
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
Contacts(const Contacts &from)
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Contact > & contact() const
::ignition::msgs::Header * unsafe_arena_release_header()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Contact > * mutable_contact()
void set_allocated_header(::ignition::msgs::Header *header)
static const Contacts & default_instance()
Contacts(::PROTOBUF_NAMESPACE_ID::Arena *arena)
Contacts & operator=(Contacts &&from) noexcept
Definition: contacts.pb.h:100
::ignition::msgs::Contact * add_contact()
void UnsafeArenaSwap(Contacts *other)
Definition: contacts.pb.h:138
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: contacts.pb.h:112
static const Contacts * internal_default_instance()
Definition: contacts.pb.h:120
friend void swap(Contacts &a, Contacts &b)
Definition: contacts.pb.h:127
const ::ignition::msgs::Header & header() const
Contacts & operator=(const Contacts &from)
Definition: contacts.pb.h:96
IGNITION_MSGS_VISIBLE ContactsDefaultTypeInternal _Contacts_default_instance_
std::shared_ptr< Contacts > ContactsSharedPtr
Definition: contacts.pb.h:377
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::unique_ptr< const Contacts > ConstContactsUniquePtr
Definition: contacts.pb.h:376
std::shared_ptr< const Contacts > ConstContactsSharedPtr
Definition: contacts.pb.h:378
std::unique_ptr< Contacts > ContactsUniquePtr
Definition: contacts.pb.h:375
Definition: actor.pb.h:52