Ignition Msgs

API Reference

5.8.1
stringmsg.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/stringmsg.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fstringmsg_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fstringmsg_2eproto
6 
7 #include <limits>
8 #include <string>
9 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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> // IWYU pragma: export
32 #include <google/protobuf/extension_set.h> // IWYU pragma: export
33 #include <google/protobuf/unknown_field_set.h>
35 #ifndef _MSC_VER
36 #pragma GCC system_header
37 #else
38 #pragma warning(push)
39 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
40 #endif
41 #ifdef __linux__
42 #include <sys/sysmacros.h>
43 #endif
44 #include <memory>
45 #include <ignition/msgs/Export.hh>
46 // @@protoc_insertion_point(includes)
47 #include <google/protobuf/port_def.inc>
48 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fstringmsg_2eproto IGNITION_MSGS_VISIBLE
49 PROTOBUF_NAMESPACE_OPEN
50 namespace internal {
51 class AnyMetadata;
52 } // namespace internal
53 PROTOBUF_NAMESPACE_CLOSE
54 
55 // Internal implementation detail -- do not use these members.
57  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
58  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
59  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
60  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
61  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
62  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
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[];
66 };
67 extern IGNITION_MSGS_VISIBLE const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fstringmsg_2eproto;
68 namespace ignition {
69 namespace msgs {
70 class StringMsg;
71 class StringMsgDefaultTypeInternal;
72 IGNITION_MSGS_VISIBLE extern StringMsgDefaultTypeInternal _StringMsg_default_instance_;
73 } // namespace msgs
74 } // namespace ignition
75 PROTOBUF_NAMESPACE_OPEN
76 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::StringMsg* Arena::CreateMaybeMessage<::ignition::msgs::StringMsg>(Arena*);
77 PROTOBUF_NAMESPACE_CLOSE
78 namespace ignition {
79 namespace msgs {
80 
81 // ===================================================================
82 
83 class IGNITION_MSGS_VISIBLE StringMsg PROTOBUF_FINAL :
84  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.StringMsg) */ {
85  public:
86  inline StringMsg() : StringMsg(nullptr) {}
87  virtual ~StringMsg();
88 
89  StringMsg(const StringMsg& from);
90  StringMsg(StringMsg&& from) noexcept
91  : StringMsg() {
92  *this = ::std::move(from);
93  }
94 
95  inline StringMsg& operator=(const StringMsg& from) {
96  CopyFrom(from);
97  return *this;
98  }
99  inline StringMsg& operator=(StringMsg&& from) noexcept {
100  if (GetArena() == from.GetArena()) {
101  if (this != &from) InternalSwap(&from);
102  } else {
103  CopyFrom(from);
104  }
105  return *this;
106  }
107 
108  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
109  return GetDescriptor();
110  }
111  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
112  return GetMetadataStatic().descriptor;
113  }
114  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
115  return GetMetadataStatic().reflection;
116  }
117  static const StringMsg& default_instance();
118 
119  static inline const StringMsg* internal_default_instance() {
120  return reinterpret_cast<const StringMsg*>(
122  }
123  static constexpr int kIndexInFileMessages =
124  0;
125 
126  friend void swap(StringMsg& a, StringMsg& b) {
127  a.Swap(&b);
128  }
129  inline void Swap(StringMsg* other) {
130  if (other == this) return;
131  if (GetArena() == other->GetArena()) {
132  InternalSwap(other);
133  } else {
134  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
135  }
136  }
137  void UnsafeArenaSwap(StringMsg* other) {
138  if (other == this) return;
139  GOOGLE_DCHECK(GetArena() == other->GetArena());
140  InternalSwap(other);
141  }
142 
143  // implements Message ----------------------------------------------
144 
145  inline StringMsg* New() const final {
146  return CreateMaybeMessage<StringMsg>(nullptr);
147  }
148 
149  StringMsg* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
150  return CreateMaybeMessage<StringMsg>(arena);
151  }
152  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
153  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
154  void CopyFrom(const StringMsg& from);
155  void MergeFrom(const StringMsg& from);
156  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
157  bool IsInitialized() const final;
158 
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(); }
164 
165  private:
166  inline void SharedCtor();
167  inline void SharedDtor();
168  void SetCachedSize(int size) const final;
169  void InternalSwap(StringMsg* other);
170  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
171  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
172  return "ignition.msgs.StringMsg";
173  }
174  protected:
175  explicit StringMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena);
176  private:
177  static void ArenaDtor(void* object);
178  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
179  public:
180 
181  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
182  private:
183  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
184  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_ignition_2fmsgs_2fstringmsg_2eproto);
185  return ::descriptor_table_ignition_2fmsgs_2fstringmsg_2eproto.file_level_metadata[kIndexInFileMessages];
186  }
187 
188  public:
189 
190  // nested types ----------------------------------------------------
191 
192  // accessors -------------------------------------------------------
193 
194  enum : int {
195  kDataFieldNumber = 2,
196  kHeaderFieldNumber = 1,
197  };
198  // string data = 2;
199  void clear_data();
200  const std::string& data() const;
201  void set_data(const std::string& value);
202  void set_data(std::string&& value);
203  void set_data(const char* value);
204  void set_data(const char* value, size_t size);
208  private:
209  const std::string& _internal_data() const;
210  void _internal_set_data(const std::string& value);
211  std::string* _internal_mutable_data();
212  public:
213 
214  // .ignition.msgs.Header header = 1;
215  bool has_header() const;
216  private:
217  bool _internal_has_header() const;
218  public:
219  void clear_header();
220  const ::ignition::msgs::Header& header() const;
221  ::ignition::msgs::Header* release_header();
222  ::ignition::msgs::Header* mutable_header();
223  void set_allocated_header(::ignition::msgs::Header* header);
224  private:
225  const ::ignition::msgs::Header& _internal_header() const;
226  ::ignition::msgs::Header* _internal_mutable_header();
227  public:
229  ::ignition::msgs::Header* header);
230  ::ignition::msgs::Header* unsafe_arena_release_header();
231 
232  // @@protoc_insertion_point(class_scope:ignition.msgs.StringMsg)
233  private:
234  class _Internal;
235 
236  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
237  typedef void InternalArenaConstructable_;
238  typedef void DestructorSkippable_;
239  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_;
240  ::ignition::msgs::Header* header_;
241  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
242  friend struct ::TableStruct_ignition_2fmsgs_2fstringmsg_2eproto;
243 };
244 // ===================================================================
245 
246 
247 // ===================================================================
248 
249 #ifdef __GNUC__
250  #pragma GCC diagnostic push
251  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
252 #endif // __GNUC__
253 // StringMsg
254 
255 // .ignition.msgs.Header header = 1;
256 inline bool StringMsg::_internal_has_header() const {
257  return this != internal_default_instance() && header_ != nullptr;
258 }
259 inline bool StringMsg::has_header() const {
260  return _internal_has_header();
261 }
262 inline const ::ignition::msgs::Header& StringMsg::_internal_header() const {
263  const ::ignition::msgs::Header* p = header_;
264  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Header&>(
266 }
267 inline const ::ignition::msgs::Header& StringMsg::header() const {
268  // @@protoc_insertion_point(field_get:ignition.msgs.StringMsg.header)
269  return _internal_header();
270 }
271 inline void StringMsg::unsafe_arena_set_allocated_header(
272  ::ignition::msgs::Header* header) {
273  if (GetArena() == nullptr) {
274  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
275  }
276  header_ = header;
277  if (header) {
278 
279  } else {
280 
281  }
282  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.StringMsg.header)
283 }
284 inline ::ignition::msgs::Header* StringMsg::release_header() {
285 
286  ::ignition::msgs::Header* temp = header_;
287  header_ = nullptr;
288  if (GetArena() != nullptr) {
289  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
290  }
291  return temp;
292 }
293 inline ::ignition::msgs::Header* StringMsg::unsafe_arena_release_header() {
294  // @@protoc_insertion_point(field_release:ignition.msgs.StringMsg.header)
295 
296  ::ignition::msgs::Header* temp = header_;
297  header_ = nullptr;
298  return temp;
299 }
300 inline ::ignition::msgs::Header* StringMsg::_internal_mutable_header() {
301 
302  if (header_ == nullptr) {
303  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
304  header_ = p;
305  }
306  return header_;
307 }
308 inline ::ignition::msgs::Header* StringMsg::mutable_header() {
309  // @@protoc_insertion_point(field_mutable:ignition.msgs.StringMsg.header)
310  return _internal_mutable_header();
311 }
312 inline void StringMsg::set_allocated_header(::ignition::msgs::Header* header) {
313  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
314  if (message_arena == nullptr) {
315  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
316  }
317  if (header) {
318  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
319  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header)->GetArena();
320  if (message_arena != submessage_arena) {
321  header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
322  message_arena, header, submessage_arena);
323  }
324 
325  } else {
326 
327  }
328  header_ = header;
329  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.StringMsg.header)
330 }
331 
332 // string data = 2;
333 inline void StringMsg::clear_data() {
334  data_.ClearToEmpty();
335 }
336 inline const std::string& StringMsg::data() const {
337  // @@protoc_insertion_point(field_get:ignition.msgs.StringMsg.data)
338  return _internal_data();
339 }
340 inline void StringMsg::set_data(const std::string& value) {
341  _internal_set_data(value);
342  // @@protoc_insertion_point(field_set:ignition.msgs.StringMsg.data)
343 }
344 inline std::string* StringMsg::mutable_data() {
345  // @@protoc_insertion_point(field_mutable:ignition.msgs.StringMsg.data)
346  return _internal_mutable_data();
347 }
348 inline const std::string& StringMsg::_internal_data() const {
349  return data_.Get();
350 }
351 inline void StringMsg::_internal_set_data(const std::string& value) {
352 
353  data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
354 }
355 inline void StringMsg::set_data(std::string&& value) {
356 
357  data_.Set(
358  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
359  // @@protoc_insertion_point(field_set_rvalue:ignition.msgs.StringMsg.data)
360 }
361 inline void StringMsg::set_data(const char* value) {
362  GOOGLE_DCHECK(value != nullptr);
363 
364  data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
365  // @@protoc_insertion_point(field_set_char:ignition.msgs.StringMsg.data)
366 }
367 inline void StringMsg::set_data(const char* value,
368  size_t size) {
369 
370  data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
371  reinterpret_cast<const char*>(value), size), GetArena());
372  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.StringMsg.data)
373 }
374 inline std::string* StringMsg::_internal_mutable_data() {
375 
376  return data_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
377 }
378 inline std::string* StringMsg::release_data() {
379  // @@protoc_insertion_point(field_release:ignition.msgs.StringMsg.data)
380  return data_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
381 }
382 inline void StringMsg::set_allocated_data(std::string* data) {
383  if (data != nullptr) {
384 
385  } else {
386 
387  }
388  data_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), data,
389  GetArena());
390  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.StringMsg.data)
391 }
392 
393 #ifdef __GNUC__
394  #pragma GCC diagnostic pop
395 #endif // __GNUC__
396 
401 // @@protoc_insertion_point(namespace_scope)
402 
403 } // namespace msgs
404 } // namespace ignition
405 
406 #ifdef _MSC_VER
407 #pragma warning(pop)
408 #endif
409 // @@protoc_insertion_point(global_scope)
410 
411 #include <google/protobuf/port_undef.inc>
412 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fstringmsg_2eproto
void set_allocated_data(std::string *data)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: stringmsg.pb.h:114
static const StringMsg * internal_default_instance()
Definition: stringmsg.pb.h:119
StringMsg(const StringMsg &from)
void MergeFrom(const StringMsg &from)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::ignition::msgs::Header * release_header()
StringMsg & operator=(const StringMsg &from)
Definition: stringmsg.pb.h:95
void set_data(const std::string &value)
::ignition::msgs::Header * mutable_header()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: stringmsg.pb.h:108
friend void swap(StringMsg &a, StringMsg &b)
Definition: stringmsg.pb.h:126
StringMsg(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void set_data(std::string &&value)
void Swap(StringMsg *other)
Definition: stringmsg.pb.h:129
const std::string & data() const
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
StringMsg & operator=(StringMsg &&from) noexcept
Definition: stringmsg.pb.h:99
::ignition::msgs::Header * unsafe_arena_release_header()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void set_data(const char *value, size_t size)
void set_allocated_header(::ignition::msgs::Header *header)
void set_data(const char *value)
StringMsg * New() const final
Definition: stringmsg.pb.h:145
static const StringMsg & default_instance()
StringMsg()
Definition: stringmsg.pb.h:86
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: stringmsg.pb.h:111
StringMsg(StringMsg &&from) noexcept
Definition: stringmsg.pb.h:90
void UnsafeArenaSwap(StringMsg *other)
Definition: stringmsg.pb.h:137
StringMsg * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: stringmsg.pb.h:149
const ::ignition::msgs::Header & header() const
void CopyFrom(const StringMsg &from)
std::unique_ptr< StringMsg > StringMsgUniquePtr
Definition: stringmsg.pb.h:397
std::shared_ptr< StringMsg > StringMsgSharedPtr
Definition: stringmsg.pb.h:399
std::shared_ptr< const StringMsg > ConstStringMsgSharedPtr
Definition: stringmsg.pb.h:400
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::unique_ptr< const StringMsg > ConstStringMsgUniquePtr
Definition: stringmsg.pb.h:398
IGNITION_MSGS_VISIBLE StringMsgDefaultTypeInternal _StringMsg_default_instance_
Definition: actor.pb.h:52
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fstringmsg_2eproto
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)