4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2froad_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2froad_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/vector3d.pb.h"
34 #include "gz/msgs/material.pb.h"
35 #include "gz/msgs/header.pb.h"
37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2froad_2eproto GZ_MSGS_VISIBLE
42 static const ::google::protobuf::internal::ParseTableField entries[];
43 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
44 static const ::google::protobuf::internal::ParseTable schema[1];
45 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
46 static const ::google::protobuf::internal::SerializationTable serialization_table[];
47 static const ::google::protobuf::uint32 offsets[];
54 class RoadDefaultTypeInternal;
60 template<> GZ_MSGS_VISIBLE ::gz::msgs::Road* Arena::CreateMaybeMessage<::gz::msgs::Road>(Arena*);
68 class GZ_MSGS_VISIBLE
Road :
public ::google::protobuf::Message {
82 *
this = ::std::move(from);
85 inline Road& operator=(Road&& from) noexcept {
86 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
87 if (
this != &from) InternalSwap(&from);
94 static const ::google::protobuf::Descriptor* descriptor();
95 static const Road& default_instance();
97 static void InitAsDefaultInstance();
99 return reinterpret_cast<const Road*
>(
102 static constexpr
int kIndexInFileMessages =
105 void Swap(
Road* other);
113 return CreateMaybeMessage<Road>(NULL);
116 Road*
New(::google::protobuf::Arena* arena)
const final {
117 return CreateMaybeMessage<Road>(arena);
119 void CopyFrom(const ::google::protobuf::Message& from)
final;
120 void MergeFrom(const ::google::protobuf::Message& from)
final;
121 void CopyFrom(
const Road& from);
122 void MergeFrom(
const Road& from);
124 bool IsInitialized() const final;
126 size_t ByteSizeLong() const final;
127 bool MergePartialFromCodedStream(
128 ::
google::protobuf::io::CodedInputStream* input) final;
129 void SerializeWithCachedSizes(
130 ::
google::protobuf::io::CodedOutputStream* output) const final;
131 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
132 bool deterministic, ::
google::protobuf::uint8* target) const final;
133 int GetCachedSize() const final {
return _cached_size_.Get(); }
138 void SetCachedSize(
int size)
const final;
139 void InternalSwap(
Road* other);
141 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
144 inline void* MaybeArenaPtr()
const {
149 ::google::protobuf::Metadata GetMetadata() const final;
156 int point_size() const;
158 static const
int kPointFieldNumber = 4;
159 ::
gz::msgs::
Vector3d* mutable_point(
int index);
162 const ::
gz::msgs::
Vector3d& point(
int index) const;
169 static const
int kNameFieldNumber = 2;
170 const ::
std::
string& name() const;
171 void set_name(const ::
std::
string& value);
175 void set_name(
const char* value);
176 void set_name(
const char* value,
size_t size);
182 bool has_header()
const;
184 static const int kHeaderFieldNumber = 1;
186 const ::gz::msgs::Header& _internal_header()
const;
188 const ::gz::msgs::Header& header()
const;
194 bool has_material()
const;
195 void clear_material();
196 static const int kMaterialFieldNumber = 5;
198 const ::gz::msgs::Material& _internal_material()
const;
200 const ::gz::msgs::Material& material()
const;
207 static const int kWidthFieldNumber = 3;
208 double width()
const;
209 void set_width(
double value);
214 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
215 ::google::protobuf::RepeatedPtrField< ::gz::msgs::Vector3d > point_;
216 ::google::protobuf::internal::ArenaStringPtr name_;
220 mutable ::google::protobuf::internal::CachedSize _cached_size_;
221 friend struct ::protobuf_gz_2fmsgs_2froad_2eproto::TableStruct;
229 #pragma GCC diagnostic push
230 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
238 inline const ::gz::msgs::Header& Road::_internal_header()
const {
242 const ::gz::msgs::Header* p = header_;
256 if (header_ == NULL) {
257 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
264 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
265 if (message_arena == NULL) {
266 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
269 ::google::protobuf::Arena* submessage_arena = NULL;
270 if (message_arena != submessage_arena) {
271 header = ::google::protobuf::internal::GetOwnedMessage(
272 message_arena,
header, submessage_arena);
284 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
288 return name_.GetNoArena();
292 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
299 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
304 GOOGLE_DCHECK(value != NULL);
306 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
311 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
312 ::
std::string(
reinterpret_cast<const char*
>(value), size));
318 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
323 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
331 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name);
351 return point_.size();
355 return point_.Mutable(index);
357 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Vector3d >*
364 return point_.Get(index);
370 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Vector3d >&
380 inline const ::gz::msgs::Material& Road::_internal_material()
const {
384 const ::gz::msgs::Material* p = material_;
398 if (material_ == NULL) {
399 auto* p = CreateMaybeMessage<::gz::msgs::Material>(GetArenaNoVirtual());
406 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
407 if (message_arena == NULL) {
408 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(material_);
411 ::google::protobuf::Arena* submessage_arena = NULL;
412 if (message_arena != submessage_arena) {
413 material = ::google::protobuf::internal::GetOwnedMessage(
414 message_arena,
material, submessage_arena);
425 #pragma GCC diagnostic pop
435 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2froad_2eproto