4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fresponse_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fresponse_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/unknown_field_set.h>
33 #include "gz/msgs/header.pb.h"
35 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fresponse_2eproto GZ_MSGS_VISIBLE
40 static const ::google::protobuf::internal::ParseTableField entries[];
41 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
42 static const ::google::protobuf::internal::ParseTable schema[1];
43 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
44 static const ::google::protobuf::internal::SerializationTable serialization_table[];
45 static const ::google::protobuf::uint32 offsets[];
52 class ResponseDefaultTypeInternal;
58 template<> GZ_MSGS_VISIBLE ::gz::msgs::Response* Arena::CreateMaybeMessage<::gz::msgs::Response>(Arena*);
66 class GZ_MSGS_VISIBLE
Response :
public ::google::protobuf::Message {
80 *
this = ::std::move(from);
83 inline Response& operator=(Response&& from) noexcept {
84 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
85 if (
this != &from) InternalSwap(&from);
92 static const ::google::protobuf::Descriptor* descriptor();
93 static const Response& default_instance();
95 static void InitAsDefaultInstance();
97 return reinterpret_cast<const Response*
>(
100 static constexpr
int kIndexInFileMessages =
111 return CreateMaybeMessage<Response>(NULL);
115 return CreateMaybeMessage<Response>(arena);
117 void CopyFrom(const ::google::protobuf::Message& from)
final;
118 void MergeFrom(const ::google::protobuf::Message& from)
final;
119 void CopyFrom(
const Response& from);
120 void MergeFrom(
const Response& from);
122 bool IsInitialized() const final;
124 size_t ByteSizeLong() const final;
125 bool MergePartialFromCodedStream(
126 ::
google::protobuf::io::CodedInputStream* input) final;
127 void SerializeWithCachedSizes(
128 ::
google::protobuf::io::CodedOutputStream* output) const final;
129 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
130 bool deterministic, ::
google::protobuf::uint8* target) const final;
131 int GetCachedSize() const final {
return _cached_size_.Get(); }
136 void SetCachedSize(
int size)
const final;
139 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
142 inline void* MaybeArenaPtr()
const {
147 ::google::protobuf::Metadata GetMetadata() const final;
154 void clear_request();
155 static const
int kRequestFieldNumber = 3;
156 const ::
std::
string& request() const;
157 void set_request(const ::
std::
string& value);
161 void set_request(
const char* value);
162 void set_request(
const char* value,
size_t size);
165 void set_allocated_request(::
std::string* request);
168 void clear_response();
169 static const int kResponseFieldNumber = 4;
170 const ::std::string& response()
const;
171 void set_response(const ::std::string& value);
175 void set_response(
const char* value);
176 void set_response(
const char* value,
size_t size);
179 void set_allocated_response(::
std::string* response);
183 static const int kTypeFieldNumber = 5;
184 const ::std::string& type()
const;
185 void set_type(const ::std::string& value);
189 void set_type(
const char* value);
190 void set_type(
const char* value,
size_t size);
196 void clear_serialized_data();
197 static const int kSerializedDataFieldNumber = 6;
198 const ::std::string& serialized_data()
const;
199 void set_serialized_data(const ::std::string& value);
203 void set_serialized_data(
const char* value);
204 void set_serialized_data(
const void* value,
size_t size);
207 void set_allocated_serialized_data(::
std::string* serialized_data);
210 bool has_header()
const;
212 static const int kHeaderFieldNumber = 1;
214 const ::gz::msgs::Header& _internal_header()
const;
216 const ::gz::msgs::Header& header()
const;
223 static const int kIdFieldNumber = 2;
224 ::google::protobuf::int32 id()
const;
225 void set_id(::google::protobuf::int32 value);
230 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
231 ::google::protobuf::internal::ArenaStringPtr request_;
232 ::google::protobuf::internal::ArenaStringPtr response_;
233 ::google::protobuf::internal::ArenaStringPtr type_;
234 ::google::protobuf::internal::ArenaStringPtr serialized_data_;
236 ::google::protobuf::int32 id_;
237 mutable ::google::protobuf::internal::CachedSize _cached_size_;
238 friend struct ::protobuf_gz_2fmsgs_2fresponse_2eproto::TableStruct;
246 #pragma GCC diagnostic push
247 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
255 inline const ::gz::msgs::Header& Response::_internal_header()
const {
259 const ::gz::msgs::Header* p = header_;
273 if (header_ == NULL) {
274 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
281 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
282 if (message_arena == NULL) {
283 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
286 ::google::protobuf::Arena* submessage_arena = NULL;
287 if (message_arena != submessage_arena) {
288 header = ::google::protobuf::internal::GetOwnedMessage(
289 message_arena,
header, submessage_arena);
315 request_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
319 return request_.GetNoArena();
323 request_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
330 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
335 GOOGLE_DCHECK(value != NULL);
337 request_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
342 request_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
343 ::
std::string(
reinterpret_cast<const char*
>(value), size));
349 return request_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
354 return request_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
362 request_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
request);
368 response_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
372 return response_.GetNoArena();
376 response_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
382 response_.SetNoArena(
383 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
388 GOOGLE_DCHECK(value != NULL);
390 response_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
395 response_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
396 ::
std::string(
reinterpret_cast<const char*
>(value), size));
402 return response_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
407 return response_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
415 response_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
response);
421 type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
425 return type_.GetNoArena();
429 type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
436 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
441 GOOGLE_DCHECK(value != NULL);
443 type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
448 type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
449 ::
std::string(
reinterpret_cast<const char*
>(value), size));
455 return type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
460 return type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
468 type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
type);
474 serialized_data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
478 return serialized_data_.GetNoArena();
482 serialized_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
488 serialized_data_.SetNoArena(
489 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
494 GOOGLE_DCHECK(value != NULL);
496 serialized_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
501 serialized_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
502 ::
std::string(
reinterpret_cast<const char*
>(value), size));
508 return serialized_data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
513 return serialized_data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
521 serialized_data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
serialized_data);
526 #pragma GCC diagnostic pop
536 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fresponse_2eproto