4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fstringmsg_5fv_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fstringmsg_5fv_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3019000
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 3019000 < 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>
36 #pragma GCC system_header
39 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
42 #include <sys/sysmacros.h>
47 #include <google/protobuf/port_def.inc>
48 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fstringmsg_5fv_2eproto IGNITION_MSGS_VISIBLE
49 PROTOBUF_NAMESPACE_OPEN
53 PROTOBUF_NAMESPACE_CLOSE
57 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
59 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
61 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
63 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
64 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
65 static const uint32_t offsets[];
71 struct StringMsg_VDefaultTypeInternal;
75 PROTOBUF_NAMESPACE_OPEN
76 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::StringMsg_V* Arena::CreateMaybeMessage<::ignition::msgs::StringMsg_V>(Arena*);
77 PROTOBUF_NAMESPACE_CLOSE
84 public ::PROTOBUF_NAMESPACE_ID::Message {
88 explicit constexpr
StringMsg_V(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
93 *
this = ::std::move(from);
101 if (
this == &from)
return *
this;
102 if (GetOwningArena() == from.GetOwningArena()
103 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
104 && GetOwningArena() !=
nullptr
114 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
115 return GetDescriptor();
118 return default_instance().GetMetadata().descriptor;
121 return default_instance().GetMetadata().reflection;
124 return *internal_default_instance();
130 static constexpr
int kIndexInFileMessages =
137 if (other ==
this)
return;
138 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
139 if (GetOwningArena() !=
nullptr &&
140 GetOwningArena() == other->GetOwningArena()) {
142 if (GetOwningArena() == other->GetOwningArena()) {
146 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
150 if (other ==
this)
return;
151 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
158 return CreateMaybeMessage<StringMsg_V>(arena);
160 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
162 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
165 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
167 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
168 bool IsInitialized() const final;
170 size_t ByteSizeLong() const final;
171 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
172 uint8_t* _InternalSerialize(
173 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
174 int GetCachedSize() const final {
return _cached_size_.Get(); }
179 void SetCachedSize(
int size)
const final;
183 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
184 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
185 return "ignition.msgs.StringMsg_V";
189 bool is_message_owned =
false);
191 static void ArenaDtor(
void*
object);
192 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
196 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
198 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
205 kDataFieldNumber = 2,
206 kHeaderFieldNumber = 1,
209 int data_size()
const;
211 int _internal_data_size()
const;
216 void set_data(
int index,
const std::string& value);
218 void set_data(
int index,
const char* value);
219 void set_data(
int index,
const char* value,
size_t size);
223 void add_data(
const char* value);
224 void add_data(
const char* value,
size_t size);
225 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& data()
const;
226 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_data();
228 const std::string& _internal_data(
int index)
const;
233 bool has_header()
const;
235 bool _internal_has_header()
const;
238 const ::ignition::msgs::Header& header()
const;
239 PROTOBUF_NODISCARD ::ignition::msgs::Header* release_header();
243 const ::ignition::msgs::Header& _internal_header()
const;
246 void unsafe_arena_set_allocated_header(
254 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
255 typedef void InternalArenaConstructable_;
256 typedef void DestructorSkippable_;
257 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> data_;
259 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
260 friend struct ::TableStruct_ignition_2fmsgs_2fstringmsg_5fv_2eproto;
268 #pragma GCC diagnostic push
269 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
274 inline bool StringMsg_V::_internal_has_header()
const {
275 return this != internal_default_instance() && header_ !=
nullptr;
278 return _internal_has_header();
280 inline const ::ignition::msgs::Header& StringMsg_V::_internal_header()
const {
281 const ::ignition::msgs::Header* p = header_;
287 return _internal_header();
291 if (GetArenaForAllocation() ==
nullptr) {
292 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
306 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
307 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
308 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
309 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
311 if (GetArenaForAllocation() !=
nullptr) {
312 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
324 inline ::ignition::msgs::Header* StringMsg_V::_internal_mutable_header() {
326 if (header_ ==
nullptr) {
327 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaForAllocation());
338 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
339 if (message_arena ==
nullptr) {
340 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
343 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
344 ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
345 ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
346 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header));
347 if (message_arena != submessage_arena) {
348 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
349 message_arena, header, submessage_arena);
360 inline int StringMsg_V::_internal_data_size()
const {
364 return _internal_data_size();
374 inline const std::string& StringMsg_V::_internal_data(
int index)
const {
375 return data_.Get(index);
379 return _internal_data(index);
383 return data_.Mutable(index);
386 data_.Mutable(index)->assign(value);
390 data_.Mutable(index)->assign(
std::move(value));
394 GOOGLE_DCHECK(value !=
nullptr);
395 data_.Mutable(index)->assign(value);
399 data_.Mutable(index)->assign(
400 reinterpret_cast<const char*
>(value), size);
403 inline std::string* StringMsg_V::_internal_add_data() {
407 data_.Add()->
assign(value);
415 GOOGLE_DCHECK(value !=
nullptr);
416 data_.Add()->assign(value);
420 data_.Add()->
assign(
reinterpret_cast<const char*
>(value), size);
423 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
428 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
435 #pragma GCC diagnostic pop
452 #include <google/protobuf/port_undef.inc>
Definition: stringmsg_v.pb.h:84
void clear_data()
Definition: stringmsg_v.pb.h:366
StringMsg_V(const StringMsg_V &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: stringmsg_v.pb.h:120
friend void swap(StringMsg_V &a, StringMsg_V &b)
Definition: stringmsg_v.pb.h:133
bool has_header() const
Definition: stringmsg_v.pb.h:277
::ignition::msgs::Header * mutable_header()
Definition: stringmsg_v.pb.h:332
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< std::string > & data() const
Definition: stringmsg_v.pb.h:424
StringMsg_V & operator=(StringMsg_V &&from) noexcept
Definition: stringmsg_v.pb.h:100
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: stringmsg_v.pb.h:114
StringMsg_V * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition: stringmsg_v.pb.h:157
static const StringMsg_V & default_instance()
Definition: stringmsg_v.pb.h:123
StringMsg_V()
Definition: stringmsg_v.pb.h:86
std::string * add_data()
Definition: stringmsg_v.pb.h:369
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
Definition: stringmsg_v.pb.h:289
static const StringMsg_V * internal_default_instance()
Definition: stringmsg_v.pb.h:126
StringMsg_V(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
void CopyFrom(const StringMsg_V &from)
void UnsafeArenaSwap(StringMsg_V *other)
Definition: stringmsg_v.pb.h:149
StringMsg_V & operator=(const StringMsg_V &from)
Definition: stringmsg_v.pb.h:96
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< std::string > * mutable_data()
Definition: stringmsg_v.pb.h:429
constexpr StringMsg_V(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
StringMsg_V(StringMsg_V &&from) noexcept
Definition: stringmsg_v.pb.h:91
void set_allocated_header(::ignition::msgs::Header *header)
Definition: stringmsg_v.pb.h:337
void MergeFrom(const StringMsg_V &from)
void Swap(StringMsg_V *other)
Definition: stringmsg_v.pb.h:136
PROTOBUF_NODISCARD ::ignition::msgs::Header * release_header()
Definition: stringmsg_v.pb.h:302
int data_size() const
Definition: stringmsg_v.pb.h:363
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: stringmsg_v.pb.h:117
const ::ignition::msgs::Header & header() const
Definition: stringmsg_v.pb.h:285
static const ClassData _class_data_
Definition: stringmsg_v.pb.h:195
void set_data(int index, const std::string &value)
Definition: stringmsg_v.pb.h:385
::ignition::msgs::Header * unsafe_arena_release_header()
Definition: stringmsg_v.pb.h:317
std::shared_ptr< StringMsg_V > StringMsg_VSharedPtr
Definition: stringmsg_v.pb.h:440
std::unique_ptr< StringMsg_V > StringMsg_VUniquePtr
Definition: stringmsg_v.pb.h:438
std::shared_ptr< const StringMsg_V > ConstStringMsg_VSharedPtr
Definition: stringmsg_v.pb.h:441
IGNITION_MSGS_VISIBLE StringMsg_VDefaultTypeInternal _StringMsg_V_default_instance_
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::unique_ptr< const StringMsg_V > ConstStringMsg_VUniquePtr
Definition: stringmsg_v.pb.h:439
Definition: actor.pb.h:52
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fstringmsg_5fv_2eproto
Definition: stringmsg_v.pb.h:56
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
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)