Go to the documentation of this file.
4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2froad_2eproto
5 #define PROTOBUF_INCLUDED_ignition_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>
37 #pragma GCC system_header
40 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
43 #include <sys/sysmacros.h>
48 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2froad_2eproto IGNITION_MSGS_VISIBLE
53 static const ::google::protobuf::internal::ParseTableField entries[];
54 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
55 static const ::google::protobuf::internal::ParseTable schema[1];
56 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
57 static const ::google::protobuf::internal::SerializationTable serialization_table[];
58 static const ::google::protobuf::uint32 offsets[];
65 class RoadDefaultTypeInternal;
71 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Road* Arena::CreateMaybeMessage<::ignition::msgs::Road>(Arena*);
79 class IGNITION_MSGS_VISIBLE
Road :
public ::google::protobuf::Message {
93 *
this = ::std::move(from);
96 inline Road& operator=(Road&& from) noexcept {
97 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
98 if (
this != &from) InternalSwap(&from);
105 static const ::google::protobuf::Descriptor* descriptor();
106 static const Road& default_instance();
108 static void InitAsDefaultInstance();
110 return reinterpret_cast<const Road*
>(
113 static constexpr
int kIndexInFileMessages =
116 void Swap(
Road* other);
124 return CreateMaybeMessage<Road>(NULL);
127 Road*
New(::google::protobuf::Arena* arena)
const final {
128 return CreateMaybeMessage<Road>(arena);
130 void CopyFrom(const ::google::protobuf::Message& from)
final;
131 void MergeFrom(const ::google::protobuf::Message& from)
final;
132 void CopyFrom(
const Road& from);
133 void MergeFrom(
const Road& from);
135 bool IsInitialized() const final;
137 size_t ByteSizeLong() const final;
138 bool MergePartialFromCodedStream(
139 ::
google::protobuf::io::CodedInputStream* input) final;
140 void SerializeWithCachedSizes(
141 ::
google::protobuf::io::CodedOutputStream* output) const final;
142 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
143 bool deterministic, ::
google::protobuf::uint8* target) const final;
144 int GetCachedSize() const final {
return _cached_size_.Get(); }
149 void SetCachedSize(
int size)
const final;
150 void InternalSwap(
Road* other);
152 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
155 inline void* MaybeArenaPtr()
const {
160 ::google::protobuf::Metadata GetMetadata() const final;
167 int point_size() const;
169 static const
int kPointFieldNumber = 4;
180 static const
int kNameFieldNumber = 2;
181 const ::
std::
string& name() const;
182 void set_name(const ::
std::
string& value);
186 void set_name(
const char* value);
187 void set_name(
const char* value,
size_t size);
193 bool has_header()
const;
195 static const int kHeaderFieldNumber = 1;
197 const ::ignition::msgs::Header& _internal_header()
const;
199 const ::ignition::msgs::Header& header()
const;
205 bool has_material()
const;
206 void clear_material();
207 static const int kMaterialFieldNumber = 5;
209 const ::ignition::msgs::Material& _internal_material()
const;
211 const ::ignition::msgs::Material& material()
const;
218 static const int kWidthFieldNumber = 3;
219 double width()
const;
220 void set_width(
double value);
225 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
226 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d > point_;
227 ::google::protobuf::internal::ArenaStringPtr name_;
231 mutable ::google::protobuf::internal::CachedSize _cached_size_;
232 friend struct ::protobuf_ignition_2fmsgs_2froad_2eproto::TableStruct;
240 #pragma GCC diagnostic push
241 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
249 inline const ::ignition::msgs::Header& Road::_internal_header()
const {
253 const ::ignition::msgs::Header* p = header_;
267 if (header_ == NULL) {
268 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
275 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
276 if (message_arena == NULL) {
277 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
280 ::google::protobuf::Arena* submessage_arena = NULL;
281 if (message_arena != submessage_arena) {
282 header = ::google::protobuf::internal::GetOwnedMessage(
283 message_arena,
header, submessage_arena);
295 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
299 return name_.GetNoArena();
303 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
310 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
315 GOOGLE_DCHECK(value != NULL);
317 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
322 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
323 ::
std::string(
reinterpret_cast<const char*
>(value), size));
329 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
334 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
342 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name);
362 return point_.size();
366 return point_.Mutable(index);
368 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >*
373 inline const ::ignition::msgs::Vector3d&
Road::point(
int index)
const {
375 return point_.Get(index);
381 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d >&
391 inline const ::ignition::msgs::Material& Road::_internal_material()
const {
395 const ::ignition::msgs::Material* p = material_;
409 if (material_ == NULL) {
410 auto* p = CreateMaybeMessage<::ignition::msgs::Material>(GetArenaNoVirtual());
417 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
418 if (message_arena == NULL) {
419 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(material_);
422 ::google::protobuf::Arena* submessage_arena = NULL;
423 if (message_arena != submessage_arena) {
424 material = ::google::protobuf::internal::GetOwnedMessage(
425 message_arena,
material, submessage_arena);
436 #pragma GCC diagnostic pop
453 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2froad_2eproto
bool has_material() const
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:388
bool has_header() const
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:246
IGNITION_MSGS_VISIBLE RoadDefaultTypeInternal _Road_default_instance_
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:52
friend void swap(Road &a, Road &b)
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:117
::std::string * release_name()
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:331
Definition: build/ignition-msgs5/include/ignition/msgs/vector3d.pb.h:77
Road * New(::google::protobuf::Arena *arena) const final
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:127
std::unique_ptr< const Road > ConstRoadUniquePtr
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:440
void set_name(const ::std::string &value)
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:301
double width() const
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:350
void clear_name()
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:294
Road * New() const final
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:123
::ignition::msgs::Header * mutable_header()
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:265
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d > * mutable_point()
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:369
void set_allocated_header(::ignition::msgs::Header *header)
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:274
std::shared_ptr< Road > RoadSharedPtr
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:441
void IGNITION_MSGS_VISIBLE AddDescriptors()
const ::std::string & name() const
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:297
Definition: build/ignition-msgs5/include/ignition/msgs/material.pb.h:553
void set_allocated_name(::std::string *name)
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:336
std::unique_ptr< Road > RoadUniquePtr
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:439
std::shared_ptr< const Road > ConstRoadSharedPtr
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:442
void set_allocated_material(::ignition::msgs::Material *material)
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:416
::std::string * mutable_name()
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:326
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:79
Road & operator=(const Road &from)
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:86
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
void set_width(double value)
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:354
::ignition::msgs::Header * release_header()
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:258
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Vector3d > & point() const
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:382
::ignition::msgs::Material * release_material()
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:400
const ::ignition::msgs::Header & header() const
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:252
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:50
int point_size() const
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:361
::ignition::msgs::Vector3d * add_point()
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:377
IGNITION_MSGS_VISIBLE MaterialDefaultTypeInternal _Material_default_instance_
static const Road * internal_default_instance()
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:109
void clear_width()
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:347
Definition: build/ignition-msgs5/include/ignition/msgs/actor.pb.h:78
::ignition::msgs::Material * mutable_material()
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:407
const ::ignition::msgs::Material & material() const
Definition: build/ignition-msgs5/include/ignition/msgs/road.pb.h:394