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 < 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>
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 ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
71 class 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
83 class IGNITION_MSGS_VISIBLE StringMsg_V PROTOBUF_FINAL :
84 public ::PROTOBUF_NAMESPACE_ID::Message {
92 *
this = ::std::move(from);
95 inline StringMsg_V&
operator=(
const StringMsg_V& from) {
99 inline StringMsg_V&
operator=(StringMsg_V&& from) noexcept {
100 if (GetArena() == from.GetArena()) {
101 if (
this != &from) InternalSwap(&from);
108 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
109 return GetDescriptor();
112 return GetMetadataStatic().descriptor;
115 return GetMetadataStatic().reflection;
120 return reinterpret_cast<const StringMsg_V*
>(
123 static constexpr
int kIndexInFileMessages =
126 friend void swap(StringMsg_V& a, StringMsg_V& b) {
129 inline void Swap(StringMsg_V* other) {
130 if (other ==
this)
return;
131 if (GetArena() == other->GetArena()) {
134 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
138 if (other ==
this)
return;
139 GOOGLE_DCHECK(GetArena() == other->GetArena());
145 inline StringMsg_V*
New() const final {
146 return CreateMaybeMessage<StringMsg_V>(
nullptr);
149 StringMsg_V*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
150 return CreateMaybeMessage<StringMsg_V>(arena);
152 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
153 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
156 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
157 bool IsInitialized() const final;
159 size_t ByteSizeLong() const final;
160 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
161 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
162 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
163 int GetCachedSize() const final {
return _cached_size_.Get(); }
166 inline void SharedCtor();
167 inline void SharedDtor();
168 void SetCachedSize(
int size)
const final;
169 void InternalSwap(StringMsg_V* other);
170 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
171 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
172 return "ignition.msgs.StringMsg_V";
177 static void ArenaDtor(
void*
object);
178 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
183 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
195 kDataFieldNumber = 2,
196 kHeaderFieldNumber = 1,
201 int _internal_data_size()
const;
209 void set_data(
int index,
const char* value,
size_t size);
215 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
data()
const;
216 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
mutable_data();
218 const std::string& _internal_data(
int index)
const;
225 bool _internal_has_header()
const;
228 const ::ignition::msgs::Header&
header()
const;
233 const ::ignition::msgs::Header& _internal_header()
const;
234 ::ignition::msgs::Header* _internal_mutable_header();
237 ::ignition::msgs::Header* header);
244 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
245 typedef void InternalArenaConstructable_;
246 typedef void DestructorSkippable_;
247 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> data_;
248 ::ignition::msgs::Header* header_;
249 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
250 friend struct ::TableStruct_ignition_2fmsgs_2fstringmsg_5fv_2eproto;
258 #pragma GCC diagnostic push
259 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
264 inline bool StringMsg_V::_internal_has_header()
const {
265 return this != internal_default_instance() && header_ !=
nullptr;
267 inline bool StringMsg_V::has_header()
const {
268 return _internal_has_header();
270 inline const ::ignition::msgs::Header& StringMsg_V::_internal_header()
const {
271 const ::ignition::msgs::Header* p = header_;
272 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Header&
>(
275 inline const ::ignition::msgs::Header& StringMsg_V::header()
const {
277 return _internal_header();
279 inline void StringMsg_V::unsafe_arena_set_allocated_header(
280 ::ignition::msgs::Header* header) {
281 if (GetArena() ==
nullptr) {
282 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
292 inline ::ignition::msgs::Header* StringMsg_V::release_header() {
294 ::ignition::msgs::Header* temp = header_;
296 if (GetArena() !=
nullptr) {
297 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
301 inline ::ignition::msgs::Header* StringMsg_V::unsafe_arena_release_header() {
304 ::ignition::msgs::Header* temp = header_;
308 inline ::ignition::msgs::Header* StringMsg_V::_internal_mutable_header() {
310 if (header_ ==
nullptr) {
311 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
316 inline ::ignition::msgs::Header* StringMsg_V::mutable_header() {
318 return _internal_mutable_header();
320 inline void StringMsg_V::set_allocated_header(::ignition::msgs::Header* header) {
321 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
322 if (message_arena ==
nullptr) {
323 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
326 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
327 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header)->GetArena();
328 if (message_arena != submessage_arena) {
329 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
330 message_arena, header, submessage_arena);
341 inline int StringMsg_V::_internal_data_size()
const {
344 inline int StringMsg_V::data_size()
const {
345 return _internal_data_size();
347 inline void StringMsg_V::clear_data() {
352 return _internal_add_data();
354 inline const std::string& StringMsg_V::_internal_data(
int index)
const {
355 return data_.Get(index);
357 inline const std::string& StringMsg_V::data(
int index)
const {
359 return _internal_data(index);
361 inline std::string* StringMsg_V::mutable_data(
int index) {
363 return data_.Mutable(index);
365 inline void StringMsg_V::set_data(
int index,
const std::string& value) {
367 data_.Mutable(index)->
assign(value);
369 inline void StringMsg_V::set_data(
int index,
std::string&& value) {
371 data_.Mutable(index)->assign(
std::move(value));
373 inline void StringMsg_V::set_data(
int index,
const char* value) {
374 GOOGLE_DCHECK(value !=
nullptr);
375 data_.Mutable(index)->assign(value);
378 inline void StringMsg_V::set_data(
int index,
const char* value,
size_t size) {
379 data_.Mutable(index)->assign(
380 reinterpret_cast<const char*
>(value), size);
383 inline std::string* StringMsg_V::_internal_add_data() {
386 inline void StringMsg_V::add_data(
const std::string& value) {
387 data_.Add()->
assign(value);
390 inline void StringMsg_V::add_data(
std::string&& value) {
394 inline void StringMsg_V::add_data(
const char* value) {
395 GOOGLE_DCHECK(value !=
nullptr);
396 data_.Add()->assign(value);
399 inline void StringMsg_V::add_data(
const char* value,
size_t size) {
400 data_.Add()->assign(
reinterpret_cast<const char*
>(value), size);
403 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
404 StringMsg_V::data()
const {
408 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
409 StringMsg_V::mutable_data() {
415 #pragma GCC diagnostic pop
432 #include <google/protobuf/port_undef.inc>
StringMsg_V * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: stringmsg_v.pb.h:149
StringMsg_V(const StringMsg_V &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: stringmsg_v.pb.h:114
friend void swap(StringMsg_V &a, StringMsg_V &b)
Definition: stringmsg_v.pb.h:126
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
StringMsg_V & operator=(StringMsg_V &&from) noexcept
Definition: stringmsg_v.pb.h:99
::ignition::msgs::Header * release_header()
::ignition::msgs::Header * mutable_header()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: stringmsg_v.pb.h:108
void set_data(int index, std::string &&value)
void add_data(const std::string &value)
static const StringMsg_V & default_instance()
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
StringMsg_V()
Definition: stringmsg_v.pb.h:86
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< std::string > * mutable_data()
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
const std::string & data(int index) const
static const StringMsg_V * internal_default_instance()
Definition: stringmsg_v.pb.h:119
void CopyFrom(const StringMsg_V &from)
void UnsafeArenaSwap(StringMsg_V *other)
Definition: stringmsg_v.pb.h:137
StringMsg_V & operator=(const StringMsg_V &from)
Definition: stringmsg_v.pb.h:95
std::string * mutable_data(int index)
::ignition::msgs::Header * unsafe_arena_release_header()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
StringMsg_V(StringMsg_V &&from) noexcept
Definition: stringmsg_v.pb.h:90
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< std::string > & data() const
void set_allocated_header(::ignition::msgs::Header *header)
void MergeFrom(const StringMsg_V &from)
void Swap(StringMsg_V *other)
Definition: stringmsg_v.pb.h:129
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void set_data(int index, const char *value)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: stringmsg_v.pb.h:111
StringMsg_V(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void set_data(int index, const char *value, size_t size)
void set_data(int index, const std::string &value)
void add_data(std::string &&value)
StringMsg_V * New() const final
Definition: stringmsg_v.pb.h:145
const ::ignition::msgs::Header & header() const
void add_data(const char *value, size_t size)
void add_data(const char *value)
std::shared_ptr< StringMsg_V > StringMsg_VSharedPtr
Definition: stringmsg_v.pb.h:420
std::unique_ptr< StringMsg_V > StringMsg_VUniquePtr
Definition: stringmsg_v.pb.h:418
std::shared_ptr< const StringMsg_V > ConstStringMsg_VSharedPtr
Definition: stringmsg_v.pb.h:421
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:419
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)