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 < 3012000
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 3012004 < 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/inlined_string_field.h>
29 #include <google/protobuf/metadata_lite.h>
30 #include <google/protobuf/generated_message_reflection.h>
31 #include <google/protobuf/message.h>
32 #include <google/protobuf/repeated_field.h>
33 #include <google/protobuf/extension_set.h>
34 #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_2frest_5fpost_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::AuxillaryParseTableField 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 RestPostDefaultTypeInternal;
76 PROTOBUF_NAMESPACE_OPEN
77 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::RestPost* Arena::CreateMaybeMessage<::ignition::msgs::RestPost>(Arena*);
78 PROTOBUF_NAMESPACE_CLOSE
84 class IGNITION_MSGS_VISIBLE RestPost 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;
122 return reinterpret_cast<const RestPost*
>(
125 static constexpr
int kIndexInFileMessages =
128 friend void swap(RestPost& a, RestPost& b) {
131 inline void Swap(RestPost* other) {
132 if (other ==
this)
return;
133 if (GetArena() == other->GetArena()) {
136 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
140 if (other ==
this)
return;
141 GOOGLE_DCHECK(GetArena() == other->GetArena());
147 inline RestPost*
New() const final {
148 return CreateMaybeMessage<RestPost>(
nullptr);
151 RestPost*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
152 return CreateMaybeMessage<RestPost>(arena);
154 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
155 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
158 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
159 bool IsInitialized() const final;
161 size_t ByteSizeLong() const final;
162 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
163 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
164 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
165 int GetCachedSize() const final {
return _cached_size_.Get(); }
168 inline void SharedCtor();
169 inline void SharedDtor();
170 void SetCachedSize(
int size)
const final;
171 void InternalSwap(RestPost* other);
172 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
173 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
174 return "ignition.msgs.RestPost";
177 explicit RestPost(::PROTOBUF_NAMESPACE_ID::Arena* arena);
179 static void ArenaDtor(
void*
object);
180 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
185 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
197 kRouteFieldNumber = 3,
198 kJsonFieldNumber = 4,
199 kHeaderFieldNumber = 1,
212 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(
"The unsafe_arena_ accessors for"
213 " string fields are deprecated and will be removed in a"
215 std::
string* unsafe_arena_release_route();
216 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
217 "
string fields are deprecated and will be removed in a"
219 void unsafe_arena_set_allocated_route(
222 const
std::
string& _internal_route() const;
223 void _internal_set_route(const
std::
string& value);
224 std::
string* _internal_mutable_route();
229 const
std::
string& json() const;
230 void set_json(const
std::
string& value);
231 void set_json(
std::
string&& value);
232 void set_json(const
char* value);
233 void set_json(const
char* value,
size_t size);
234 std::
string* mutable_json();
235 std::
string* release_json();
236 void set_allocated_json(
std::
string* json);
237 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
238 "
string fields are deprecated and will be removed in a"
240 std::
string* unsafe_arena_release_json();
241 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
242 "
string fields are deprecated and will be removed in a"
244 void unsafe_arena_set_allocated_json(
247 const
std::
string& _internal_json() const;
248 void _internal_set_json(const
std::
string& value);
249 std::
string* _internal_mutable_json();
253 bool has_header() const;
255 bool _internal_has_header() const;
261 void set_allocated_header(::
ignition::msgs::Header* header);
263 const ::
ignition::msgs::Header& _internal_header() const;
264 ::
ignition::msgs::Header* _internal_mutable_header();
266 void unsafe_arena_set_allocated_header(
268 ::
ignition::msgs::Header* unsafe_arena_release_header();
272 ::PROTOBUF_NAMESPACE_ID::uint32
id() const;
273 void set_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
275 ::PROTOBUF_NAMESPACE_ID::uint32 _internal_id() const;
276 void _internal_set_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
283 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
284 typedef
void InternalArenaConstructable_;
285 typedef
void DestructorSkippable_;
286 ::PROTOBUF_NAMESPACE_ID::
internal::ArenaStringPtr route_;
287 ::PROTOBUF_NAMESPACE_ID::
internal::ArenaStringPtr json_;
289 ::PROTOBUF_NAMESPACE_ID::uint32 id_;
290 mutable ::PROTOBUF_NAMESPACE_ID::
internal::CachedSize _cached_size_;
299 #pragma GCC diagnostic push
300 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
305 inline bool RestPost::_internal_has_header()
const {
306 return this != internal_default_instance() && header_ !=
nullptr;
308 inline bool RestPost::has_header()
const {
309 return _internal_has_header();
311 inline const ::ignition::msgs::Header& RestPost::_internal_header()
const {
312 const ::ignition::msgs::Header* p = header_;
313 return p !=
nullptr ? *p : *
reinterpret_cast<const ::ignition::msgs::Header*
>(
316 inline const ::ignition::msgs::Header& RestPost::header()
const {
318 return _internal_header();
320 inline void RestPost::unsafe_arena_set_allocated_header(
321 ::ignition::msgs::Header* header) {
322 if (GetArena() ==
nullptr) {
323 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
333 inline ::ignition::msgs::Header* RestPost::release_header() {
334 auto temp = unsafe_arena_release_header();
335 if (GetArena() !=
nullptr) {
336 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
340 inline ::ignition::msgs::Header* RestPost::unsafe_arena_release_header() {
343 ::ignition::msgs::Header* temp = header_;
347 inline ::ignition::msgs::Header* RestPost::_internal_mutable_header() {
349 if (header_ ==
nullptr) {
350 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
355 inline ::ignition::msgs::Header* RestPost::mutable_header() {
357 return _internal_mutable_header();
359 inline void RestPost::set_allocated_header(::ignition::msgs::Header* header) {
360 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
361 if (message_arena ==
nullptr) {
362 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
365 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
366 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header)->GetArena();
367 if (message_arena != submessage_arena) {
368 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
369 message_arena, header, submessage_arena);
380 inline void RestPost::clear_id() {
383 inline ::PROTOBUF_NAMESPACE_ID::uint32 RestPost::_internal_id()
const {
386 inline ::PROTOBUF_NAMESPACE_ID::uint32 RestPost::id()
const {
388 return _internal_id();
390 inline void RestPost::_internal_set_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
394 inline void RestPost::set_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
395 _internal_set_id(value);
400 inline void RestPost::clear_route() {
401 route_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
403 inline const std::string& RestPost::route()
const {
405 return _internal_route();
407 inline void RestPost::set_route(
const std::string& value) {
408 _internal_set_route(value);
413 return _internal_mutable_route();
415 inline const std::string& RestPost::_internal_route()
const {
418 inline void RestPost::_internal_set_route(
const std::string& value) {
420 route_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
422 inline void RestPost::set_route(
std::string&& value) {
425 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::move(value), GetArena());
428 inline void RestPost::set_route(
const char* value) {
429 GOOGLE_DCHECK(value !=
nullptr);
431 route_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::string(value),
435 inline void RestPost::set_route(
const char* value,
438 route_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::string(
439 reinterpret_cast<const char*
>(value), size), GetArena());
442 inline std::string* RestPost::_internal_mutable_route() {
444 return route_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
448 return route_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
450 inline void RestPost::set_allocated_route(
std::string* route) {
451 if (route !=
nullptr) {
456 route_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), route,
460 inline std::string* RestPost::unsafe_arena_release_route() {
462 GOOGLE_DCHECK(GetArena() !=
nullptr);
464 return route_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
467 inline void RestPost::unsafe_arena_set_allocated_route(
469 GOOGLE_DCHECK(GetArena() !=
nullptr);
470 if (route !=
nullptr) {
475 route_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
481 inline void RestPost::clear_json() {
482 json_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
486 return _internal_json();
488 inline void RestPost::set_json(
const std::string& value) {
489 _internal_set_json(value);
494 return _internal_mutable_json();
496 inline const std::string& RestPost::_internal_json()
const {
499 inline void RestPost::_internal_set_json(
const std::string& value) {
501 json_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
503 inline void RestPost::set_json(
std::string&& value) {
506 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::move(value), GetArena());
509 inline void RestPost::set_json(
const char* value) {
510 GOOGLE_DCHECK(value !=
nullptr);
512 json_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::string(value),
516 inline void RestPost::set_json(
const char* value,
519 json_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::string(
520 reinterpret_cast<const char*
>(value), size), GetArena());
523 inline std::string* RestPost::_internal_mutable_json() {
525 return json_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
529 return json_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
531 inline void RestPost::set_allocated_json(
std::string* json) {
532 if (json !=
nullptr) {
537 json_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), json,
541 inline std::string* RestPost::unsafe_arena_release_json() {
543 GOOGLE_DCHECK(GetArena() !=
nullptr);
545 return json_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
548 inline void RestPost::unsafe_arena_set_allocated_json(
550 GOOGLE_DCHECK(GetArena() !=
nullptr);
551 if (json !=
nullptr) {
556 json_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
562 #pragma GCC diagnostic pop
579 #include <google/protobuf/port_undef.inc>
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2frest_5fpost_2eproto
static void InitAsDefaultInstance()
static const RestPost * internal_default_instance()
Definition: build/ignition-msgs8/include/ignition/msgs/rest_post.pb.h:121
RestPost()
Definition: build/ignition-msgs8/include/ignition/msgs/rest_post.pb.h:87
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: build/ignition-msgs8/include/ignition/msgs/rest_post.pb.h:115
RestPost & operator=(const RestPost &from)
Definition: build/ignition-msgs8/include/ignition/msgs/rest_post.pb.h:96
void CopyFrom(const RestPost &from)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void UnsafeArenaSwap(RestPost *other)
Definition: build/ignition-msgs8/include/ignition/msgs/rest_post.pb.h:139
RestPost(::PROTOBUF_NAMESPACE_ID::Arena *arena)
const std::string & route() const
void set_allocated_route(std::string *route)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/rest_post.pb.h:109
RestPost * New() const final
Definition: build/ignition-msgs8/include/ignition/msgs/rest_post.pb.h:147
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void set_route(const char *value)
std::string * release_route()
void set_route(const char *value, size_t size)
static const RestPost & default_instance()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
std::string * mutable_route()
RestPost & operator=(RestPost &&from) noexcept
Definition: build/ignition-msgs8/include/ignition/msgs/rest_post.pb.h:100
void set_route(std::string &&value)
void MergeFrom(const RestPost &from)
friend void swap(RestPost &a, RestPost &b)
Definition: build/ignition-msgs8/include/ignition/msgs/rest_post.pb.h:128
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/rest_post.pb.h:112
RestPost * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: build/ignition-msgs8/include/ignition/msgs/rest_post.pb.h:151
RestPost(const RestPost &from)
void set_route(const std::string &value)
void Swap(RestPost *other)
Definition: build/ignition-msgs8/include/ignition/msgs/rest_post.pb.h:131
RestPost(RestPost &&from) noexcept
Definition: build/ignition-msgs8/include/ignition/msgs/rest_post.pb.h:91
std::shared_ptr< RestPost > RestPostSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/rest_post.pb.h:567
std::unique_ptr< RestPost > RestPostUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/rest_post.pb.h:565
std::unique_ptr< const RestPost > ConstRestPostUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/rest_post.pb.h:566
IGNITION_MSGS_VISIBLE RestPostDefaultTypeInternal _RestPost_default_instance_
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::shared_ptr< const RestPost > ConstRestPostSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/rest_post.pb.h:568
Definition: build/ignition-msgs8/include/ignition/msgs/actor.pb.h:53
Definition: build/ignition-msgs8/include/ignition/msgs/rest_post.pb.h:57
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)
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)