4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2frest_5fresponse_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2frest_5fresponse_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < GOOGLE_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/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
34 #include "gz/msgs/header.pb.h"
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2frest_5fresponse_2eproto GZ_MSGS_VISIBLE
41 static const ::google::protobuf::internal::ParseTableField entries[];
42 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
43 static const ::google::protobuf::internal::ParseTable schema[1];
44 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
45 static const ::google::protobuf::internal::SerializationTable serialization_table[];
46 static const ::google::protobuf::uint32 offsets[];
53 class RestResponseDefaultTypeInternal;
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::RestResponse* Arena::CreateMaybeMessage<::gz::msgs::RestResponse>(Arena*);
80 return ::google::protobuf::internal::NameOfEnum(
85 return ::google::protobuf::internal::ParseNamedEnum<RestResponse_Type>(
90 class GZ_MSGS_VISIBLE
RestResponse :
public ::google::protobuf::Message {
104 *
this = ::std::move(from);
107 inline RestResponse& operator=(RestResponse&& from) noexcept {
108 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
109 if (
this != &from) InternalSwap(&from);
116 static const ::google::protobuf::Descriptor* descriptor();
117 static const RestResponse& default_instance();
119 static void InitAsDefaultInstance();
124 static constexpr
int kIndexInFileMessages =
135 return CreateMaybeMessage<RestResponse>(NULL);
139 return CreateMaybeMessage<RestResponse>(arena);
141 void CopyFrom(const ::google::protobuf::Message& from)
final;
142 void MergeFrom(const ::google::protobuf::Message& from)
final;
146 bool IsInitialized() const final;
148 size_t ByteSizeLong() const final;
149 bool MergePartialFromCodedStream(
150 ::
google::protobuf::io::CodedInputStream* input) final;
151 void SerializeWithCachedSizes(
152 ::
google::protobuf::io::CodedOutputStream* output) const final;
153 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
154 bool deterministic, ::
google::protobuf::uint8* target) const final;
155 int GetCachedSize() const final {
return _cached_size_.Get(); }
160 void SetCachedSize(
int size)
const final;
163 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
166 inline void* MaybeArenaPtr()
const {
171 ::google::protobuf::Metadata GetMetadata() const final;
184 static inline
bool Type_IsValid(
int value) {
191 static const int Type_ARRAYSIZE =
193 static inline const ::google::protobuf::EnumDescriptor*
209 static const int kMsgFieldNumber = 4;
210 const ::std::string& msg()
const;
211 void set_msg(const ::std::string& value);
215 void set_msg(
const char* value);
216 void set_msg(
const char* value,
size_t size);
222 bool has_header()
const;
224 static const int kHeaderFieldNumber = 1;
226 const ::gz::msgs::Header& _internal_header()
const;
228 const ::gz::msgs::Header& header()
const;
235 static const int kIdFieldNumber = 2;
236 ::google::protobuf::uint32 id()
const;
237 void set_id(::google::protobuf::uint32 value);
241 static const int kTypeFieldNumber = 3;
248 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
249 ::google::protobuf::internal::ArenaStringPtr msg_;
251 ::google::protobuf::uint32 id_;
253 mutable ::google::protobuf::internal::CachedSize _cached_size_;
254 friend struct ::protobuf_gz_2fmsgs_2frest_5fresponse_2eproto::TableStruct;
262 #pragma GCC diagnostic push
263 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
271 inline const ::gz::msgs::Header& RestResponse::_internal_header()
const {
275 const ::gz::msgs::Header* p = header_;
289 if (header_ == NULL) {
290 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
297 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
298 if (message_arena == NULL) {
299 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
302 ::google::protobuf::Arena* submessage_arena = NULL;
303 if (message_arena != submessage_arena) {
304 header = ::google::protobuf::internal::GetOwnedMessage(
305 message_arena,
header, submessage_arena);
345 msg_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
349 return msg_.GetNoArena();
353 msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
360 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
365 GOOGLE_DCHECK(value != NULL);
367 msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
372 msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
373 ::
std::string(
reinterpret_cast<const char*
>(value), size));
379 return msg_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
384 return msg_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
392 msg_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
msg);
397 #pragma GCC diagnostic pop
410 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::RestResponse_Type>() {
419 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2frest_5fresponse_2eproto