4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2frest_5fpost_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2frest_5fpost_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_2frest_5fpost_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 RestPostDefaultTypeInternal;
75 PROTOBUF_NAMESPACE_OPEN
76 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::RestPost* Arena::CreateMaybeMessage<::ignition::msgs::RestPost>(Arena*);
77 PROTOBUF_NAMESPACE_CLOSE
83 class IGNITION_MSGS_VISIBLE RestPost PROTOBUF_FINAL :
84 public ::PROTOBUF_NAMESPACE_ID::Message {
92 *
this = ::std::move(from);
99 inline RestPost&
operator=(RestPost&& 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 RestPost*
>(
123 static constexpr
int kIndexInFileMessages =
126 friend void swap(RestPost& a, RestPost& b) {
129 inline void Swap(RestPost* 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 RestPost*
New() const final {
146 return CreateMaybeMessage<RestPost>(
nullptr);
149 RestPost*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
150 return CreateMaybeMessage<RestPost>(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(RestPost* other);
170 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
171 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
172 return "ignition.msgs.RestPost";
175 explicit RestPost(::PROTOBUF_NAMESPACE_ID::Arena* arena);
177 static void ArenaDtor(
void*
object);
178 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
183 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
195 kRouteFieldNumber = 3,
196 kJsonFieldNumber = 4,
197 kHeaderFieldNumber = 1,
212 void _internal_set_route(
const std::string& value);
235 bool _internal_has_header()
const;
238 const ::ignition::msgs::Header&
header()
const;
243 const ::ignition::msgs::Header& _internal_header()
const;
244 ::ignition::msgs::Header* _internal_mutable_header();
247 ::ignition::msgs::Header* header);
252 ::PROTOBUF_NAMESPACE_ID::uint32
id()
const;
253 void set_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
255 ::PROTOBUF_NAMESPACE_ID::uint32 _internal_id()
const;
256 void _internal_set_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
263 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
264 typedef void InternalArenaConstructable_;
265 typedef void DestructorSkippable_;
266 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr route_;
267 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr json_;
268 ::ignition::msgs::Header* header_;
269 ::PROTOBUF_NAMESPACE_ID::uint32 id_;
270 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
271 friend struct ::TableStruct_ignition_2fmsgs_2frest_5fpost_2eproto;
279 #pragma GCC diagnostic push
280 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
285 inline bool RestPost::_internal_has_header()
const {
286 return this != internal_default_instance() && header_ !=
nullptr;
288 inline bool RestPost::has_header()
const {
289 return _internal_has_header();
291 inline const ::ignition::msgs::Header& RestPost::_internal_header()
const {
292 const ::ignition::msgs::Header* p = header_;
293 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Header&
>(
296 inline const ::ignition::msgs::Header& RestPost::header()
const {
298 return _internal_header();
300 inline void RestPost::unsafe_arena_set_allocated_header(
301 ::ignition::msgs::Header* header) {
302 if (GetArena() ==
nullptr) {
303 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
313 inline ::ignition::msgs::Header* RestPost::release_header() {
315 ::ignition::msgs::Header* temp = header_;
317 if (GetArena() !=
nullptr) {
318 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
322 inline ::ignition::msgs::Header* RestPost::unsafe_arena_release_header() {
325 ::ignition::msgs::Header* temp = header_;
329 inline ::ignition::msgs::Header* RestPost::_internal_mutable_header() {
331 if (header_ ==
nullptr) {
332 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
337 inline ::ignition::msgs::Header* RestPost::mutable_header() {
339 return _internal_mutable_header();
341 inline void RestPost::set_allocated_header(::ignition::msgs::Header* header) {
342 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
343 if (message_arena ==
nullptr) {
344 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
347 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
348 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header)->GetArena();
349 if (message_arena != submessage_arena) {
350 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
351 message_arena, header, submessage_arena);
362 inline void RestPost::clear_id() {
365 inline ::PROTOBUF_NAMESPACE_ID::uint32 RestPost::_internal_id()
const {
368 inline ::PROTOBUF_NAMESPACE_ID::uint32 RestPost::id()
const {
370 return _internal_id();
372 inline void RestPost::_internal_set_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
376 inline void RestPost::set_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
377 _internal_set_id(value);
382 inline void RestPost::clear_route() {
383 route_.ClearToEmpty();
385 inline const std::string& RestPost::route()
const {
387 return _internal_route();
389 inline void RestPost::set_route(
const std::string& value) {
390 _internal_set_route(value);
395 return _internal_mutable_route();
397 inline const std::string& RestPost::_internal_route()
const {
400 inline void RestPost::_internal_set_route(
const std::string& value) {
402 route_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
404 inline void RestPost::set_route(
std::string&& value) {
407 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
410 inline void RestPost::set_route(
const char* value) {
411 GOOGLE_DCHECK(value !=
nullptr);
413 route_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(value), GetArena());
416 inline void RestPost::set_route(
const char* value,
419 route_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(
420 reinterpret_cast<const char*
>(value), size), GetArena());
423 inline std::string* RestPost::_internal_mutable_route() {
425 return route_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
429 return route_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
431 inline void RestPost::set_allocated_route(
std::string* route) {
432 if (route !=
nullptr) {
437 route_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), route,
443 inline void RestPost::clear_json() {
444 json_.ClearToEmpty();
448 return _internal_json();
450 inline void RestPost::set_json(
const std::string& value) {
451 _internal_set_json(value);
456 return _internal_mutable_json();
458 inline const std::string& RestPost::_internal_json()
const {
461 inline void RestPost::_internal_set_json(
const std::string& value) {
463 json_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
465 inline void RestPost::set_json(
std::string&& value) {
468 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
471 inline void RestPost::set_json(
const char* value) {
472 GOOGLE_DCHECK(value !=
nullptr);
474 json_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(value), GetArena());
477 inline void RestPost::set_json(
const char* value,
480 json_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(
481 reinterpret_cast<const char*
>(value), size), GetArena());
484 inline std::string* RestPost::_internal_mutable_json() {
486 return json_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
490 return json_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
492 inline void RestPost::set_allocated_json(
std::string* json) {
493 if (json !=
nullptr) {
498 json_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), json,
504 #pragma GCC diagnostic pop
521 #include <google/protobuf/port_undef.inc>
static const RestPost * internal_default_instance()
Definition: rest_post.pb.h:119
RestPost()
Definition: rest_post.pb.h:86
void set_json(const char *value)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: rest_post.pb.h:114
RestPost & operator=(const RestPost &from)
Definition: rest_post.pb.h:95
void CopyFrom(const RestPost &from)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void UnsafeArenaSwap(RestPost *other)
Definition: rest_post.pb.h:137
::ignition::msgs::Header * release_header()
RestPost(::PROTOBUF_NAMESPACE_ID::Arena *arena)
const std::string & route() const
void set_allocated_route(std::string *route)
::ignition::msgs::Header * mutable_header()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: rest_post.pb.h:108
RestPost * New() const final
Definition: rest_post.pb.h:145
void set_id(::PROTOBUF_NAMESPACE_ID::uint32 value)
void set_json(std::string &&value)
void set_allocated_json(std::string *json)
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void set_route(const char *value)
void set_json(const char *value, size_t size)
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
std::string * release_route()
void set_route(const char *value, size_t size)
static const RestPost & default_instance()
::ignition::msgs::Header * unsafe_arena_release_header()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
std::string * mutable_route()
RestPost & operator=(RestPost &&from) noexcept
Definition: rest_post.pb.h:99
void set_allocated_header(::ignition::msgs::Header *header)
std::string * mutable_json()
void set_route(std::string &&value)
void MergeFrom(const RestPost &from)
friend void swap(RestPost &a, RestPost &b)
Definition: rest_post.pb.h:126
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
::PROTOBUF_NAMESPACE_ID::uint32 id() const
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: rest_post.pb.h:111
std::string * release_json()
RestPost * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: rest_post.pb.h:149
RestPost(const RestPost &from)
void set_route(const std::string &value)
const std::string & json() const
const ::ignition::msgs::Header & header() const
void set_json(const std::string &value)
void Swap(RestPost *other)
Definition: rest_post.pb.h:129
RestPost(RestPost &&from) noexcept
Definition: rest_post.pb.h:90
std::shared_ptr< RestPost > RestPostSharedPtr
Definition: rest_post.pb.h:509
std::unique_ptr< RestPost > RestPostUniquePtr
Definition: rest_post.pb.h:507
std::unique_ptr< const RestPost > ConstRestPostUniquePtr
Definition: rest_post.pb.h:508
IGNITION_MSGS_VISIBLE RestPostDefaultTypeInternal _RestPost_default_instance_
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::shared_ptr< const RestPost > ConstRestPostSharedPtr
Definition: rest_post.pb.h:510
Definition: actor.pb.h:52
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2frest_5fpost_2eproto
Definition: rest_post.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)