4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fparameter_5fdeclaration_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fparameter_5fdeclaration_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>
34 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fparameter_5fdeclaration_2eproto GZ_MSGS_VISIBLE
39 static const ::google::protobuf::internal::ParseTableField entries[];
40 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
41 static const ::google::protobuf::internal::ParseTable schema[1];
42 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
43 static const ::google::protobuf::internal::SerializationTable serialization_table[];
44 static const ::google::protobuf::uint32 offsets[];
50 class ParameterDeclaration;
51 class ParameterDeclarationDefaultTypeInternal;
57 template<> GZ_MSGS_VISIBLE ::gz::msgs::ParameterDeclaration* Arena::CreateMaybeMessage<::gz::msgs::ParameterDeclaration>(Arena*);
79 *
this = ::std::move(from);
82 inline ParameterDeclaration& operator=(ParameterDeclaration&& from) noexcept {
83 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
84 if (
this != &from) InternalSwap(&from);
91 static const ::google::protobuf::Descriptor* descriptor();
92 static const ParameterDeclaration& default_instance();
94 static void InitAsDefaultInstance();
99 static constexpr
int kIndexInFileMessages =
110 return CreateMaybeMessage<ParameterDeclaration>(NULL);
114 return CreateMaybeMessage<ParameterDeclaration>(arena);
116 void CopyFrom(const ::google::protobuf::Message& from)
final;
117 void MergeFrom(const ::google::protobuf::Message& from)
final;
121 bool IsInitialized() const final;
123 size_t ByteSizeLong() const final;
124 bool MergePartialFromCodedStream(
125 ::
google::protobuf::io::CodedInputStream* input) final;
126 void SerializeWithCachedSizes(
127 ::
google::protobuf::io::CodedOutputStream* output) const final;
128 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
129 bool deterministic, ::
google::protobuf::uint8* target) const final;
130 int GetCachedSize() const final {
return _cached_size_.Get(); }
135 void SetCachedSize(
int size)
const final;
138 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
141 inline void* MaybeArenaPtr()
const {
146 ::google::protobuf::Metadata GetMetadata() const final;
154 static const
int kNameFieldNumber = 1;
155 const ::
std::
string& name() const;
156 void set_name(const ::
std::
string& value);
160 void set_name(
const char* value);
161 void set_name(
const char* value,
size_t size);
168 static const int kTypeFieldNumber = 2;
169 const ::std::string& type()
const;
170 void set_type(const ::std::string& value);
174 void set_type(
const char* value);
175 void set_type(
const char* value,
size_t size);
183 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
184 ::google::protobuf::internal::ArenaStringPtr name_;
185 ::google::protobuf::internal::ArenaStringPtr type_;
186 mutable ::google::protobuf::internal::CachedSize _cached_size_;
187 friend struct ::protobuf_gz_2fmsgs_2fparameter_5fdeclaration_2eproto::TableStruct;
195 #pragma GCC diagnostic push
196 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
202 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
206 return name_.GetNoArena();
210 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
217 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
222 GOOGLE_DCHECK(value != NULL);
224 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
229 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
230 ::
std::string(
reinterpret_cast<const char*
>(value), size));
236 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
241 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
249 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name);
255 type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
259 return type_.GetNoArena();
263 type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
270 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
275 GOOGLE_DCHECK(value != NULL);
277 type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
282 type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
283 ::
std::string(
reinterpret_cast<const char*
>(value), size));
289 return type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
294 return type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
302 type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
type);
307 #pragma GCC diagnostic pop
317 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fparameter_5fdeclaration_2eproto