4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fintervehicle_5ftransporter_5fconfig_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fintervehicle_5ftransporter_5fconfig_2eproto
10#include <google/protobuf/port_def.inc>
11#if PROTOBUF_VERSION < 3021000
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 3021012 < 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/port_undef.inc>
23#include <google/protobuf/io/coded_stream.h>
25#include <google/protobuf/arenastring.h>
26#include <google/protobuf/generated_message_util.h>
27#include <google/protobuf/metadata_lite.h>
28#include <google/protobuf/generated_message_reflection.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 "dccl/option_extensions.pb.h"
35#include <boost/units/quantity.hpp>
36#include <boost/units/absolute.hpp>
37#include <boost/units/dimensionless_type.hpp>
38#include <boost/units/make_scaled_unit.hpp>
40#include <google/protobuf/port_def.inc>
41#define PROTOBUF_INTERNAL_EXPORT_goby_2fmiddleware_2fprotobuf_2fintervehicle_5ftransporter_5fconfig_2eproto
42PROTOBUF_NAMESPACE_OPEN
46PROTOBUF_NAMESPACE_CLOSE
55namespace intervehicle {
57class TransporterConfig;
58struct TransporterConfigDefaultTypeInternal;
64PROTOBUF_NAMESPACE_OPEN
66PROTOBUF_NAMESPACE_CLOSE
69namespace intervehicle {
75 public ::PROTOBUF_NAMESPACE_ID::Message {
79 explicit PROTOBUF_CONSTEXPR
TransporterConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
84 *
this = ::std::move(from);
92 if (
this == &from)
return *
this;
93 if (GetOwningArena() == from.GetOwningArena()
94 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
95 && GetOwningArena() !=
nullptr
106 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
109 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
112 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
135 if (other ==
this)
return;
136 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
137 if (GetOwningArena() !=
nullptr &&
138 GetOwningArena() == other->GetOwningArena()) {
140 if (GetOwningArena() == other->GetOwningArena()) {
144 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
148 if (other ==
this)
return;
149 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
156 return CreateMaybeMessage<TransporterConfig>(arena);
158 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
160 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
162 TransporterConfig::MergeImpl(*
this, from);
165 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
167 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
173 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
177 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
179 void SetCachedSize(
int size)
const final;
183 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
184 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
185 return "goby.middleware.intervehicle.protobuf.TransporterConfig";
189 bool is_message_owned =
false);
193 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
210 int _internal_publisher_id_size()
const;
214 int32_t _internal_publisher_id(
int index)
const;
215 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
216 _internal_publisher_id()
const;
217 void _internal_add_publisher_id(int32_t value);
218 ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
219 _internal_mutable_publisher_id();
224 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
226 ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
232 bool _internal_has_buffer()
const;
235 const ::goby::acomms::protobuf::DynamicBufferConfig&
buffer()
const;
236 PROTOBUF_NODISCARD ::goby::acomms::protobuf::DynamicBufferConfig*
release_buffer();
240 const ::goby::acomms::protobuf::DynamicBufferConfig& _internal_buffer()
const;
250 bool _internal_has_subscriber_uuid()
const;
256 int32_t _internal_subscriber_uuid()
const;
257 void _internal_set_subscriber_uuid(int32_t value);
263 bool _internal_has_broadcast()
const;
269 bool _internal_broadcast()
const;
270 void _internal_set_broadcast(
bool value);
277 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
278 typedef void InternalArenaConstructable_;
279 typedef void DestructorSkippable_;
281 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
282 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
283 ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > publisher_id_;
285 int32_t subscriber_uuid_;
289 friend struct ::TableStruct_goby_2fmiddleware_2fprotobuf_2fintervehicle_5ftransporter_5fconfig_2eproto;
297 #pragma GCC diagnostic push
298 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
303inline int TransporterConfig::_internal_publisher_id_size()
const {
304 return _impl_.publisher_id_.size();
307 return _internal_publisher_id_size();
310 _impl_.publisher_id_.Clear();
312inline int32_t TransporterConfig::_internal_publisher_id(
int index)
const {
313 return _impl_.publisher_id_.Get(index);
317 return _internal_publisher_id(index);
320 _impl_.publisher_id_.Set(index, value);
323inline void TransporterConfig::_internal_add_publisher_id(int32_t value) {
324 _impl_.publisher_id_.Add(value);
327 _internal_add_publisher_id(value);
330inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
331TransporterConfig::_internal_publisher_id()
const {
332 return _impl_.publisher_id_;
334inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
337 return _internal_publisher_id();
339inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
340TransporterConfig::_internal_mutable_publisher_id() {
341 return &
_impl_.publisher_id_;
343inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
346 return _internal_mutable_publisher_id();
350inline bool TransporterConfig::_internal_has_subscriber_uuid()
const {
351 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
355 return _internal_has_subscriber_uuid();
358 _impl_.subscriber_uuid_ = 0;
359 _impl_._has_bits_[0] &= ~0x00000002u;
361inline int32_t TransporterConfig::_internal_subscriber_uuid()
const {
362 return _impl_.subscriber_uuid_;
366 return _internal_subscriber_uuid();
368inline void TransporterConfig::_internal_set_subscriber_uuid(int32_t value) {
369 _impl_._has_bits_[0] |= 0x00000002u;
370 _impl_.subscriber_uuid_ = value;
373 _internal_set_subscriber_uuid(value);
378inline bool TransporterConfig::_internal_has_buffer()
const {
379 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
380 PROTOBUF_ASSUME(!value ||
_impl_.buffer_ !=
nullptr);
384 return _internal_has_buffer();
386inline const ::goby::acomms::protobuf::DynamicBufferConfig& TransporterConfig::_internal_buffer()
const {
387 const ::goby::acomms::protobuf::DynamicBufferConfig* p =
_impl_.buffer_;
393 return _internal_buffer();
397 if (GetArenaForAllocation() ==
nullptr) {
398 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.buffer_);
402 _impl_._has_bits_[0] |= 0x00000001u;
404 _impl_._has_bits_[0] &= ~0x00000001u;
409 _impl_._has_bits_[0] &= ~0x00000001u;
412#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
413 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
414 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
415 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
417 if (GetArenaForAllocation() !=
nullptr) {
418 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
425 _impl_._has_bits_[0] &= ~0x00000001u;
430inline ::goby::acomms::protobuf::DynamicBufferConfig* TransporterConfig::_internal_mutable_buffer() {
431 _impl_._has_bits_[0] |= 0x00000001u;
432 if (
_impl_.buffer_ ==
nullptr) {
444 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
445 if (message_arena ==
nullptr) {
446 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.buffer_);
449 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
450 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
451 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
buffer));
452 if (message_arena != submessage_arena) {
453 buffer = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
454 message_arena,
buffer, submessage_arena);
456 _impl_._has_bits_[0] |= 0x00000001u;
458 _impl_._has_bits_[0] &= ~0x00000001u;
465inline bool TransporterConfig::_internal_has_broadcast()
const {
466 bool value = (
_impl_._has_bits_[0] & 0x00000004u) != 0;
470 return _internal_has_broadcast();
473 _impl_.broadcast_ =
false;
474 _impl_._has_bits_[0] &= ~0x00000004u;
476inline bool TransporterConfig::_internal_broadcast()
const {
481 return _internal_broadcast();
483inline void TransporterConfig::_internal_set_broadcast(
bool value) {
484 _impl_._has_bits_[0] |= 0x00000004u;
485 _impl_.broadcast_ = value;
488 _internal_set_broadcast(value);
493 #pragma GCC diagnostic pop
505#include <google/protobuf/port_undef.inc>
PROTOBUF_NAMESPACE_OPEN ::goby::acomms::protobuf::DynamicBufferConfig * Arena::CreateMaybeMessage<::goby::acomms::protobuf::DynamicBufferConfig >(Arena *)
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > & publisher_id() const
void Swap(TransporterConfig *other)
~TransporterConfig() override
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
void set_allocated_buffer(::goby::acomms::protobuf::DynamicBufferConfig *buffer)
::goby::acomms::protobuf::DynamicBufferConfig * mutable_buffer()
void UnsafeArenaSwap(TransporterConfig *other)
::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > * mutable_publisher_id()
void set_subscriber_uuid(int32_t value)
friend void swap(TransporterConfig &a, TransporterConfig &b)
int GetCachedSize() const final
void clear_subscriber_uuid()
TransporterConfig(const TransporterConfig &from)
void clear_publisher_id()
TransporterConfig & operator=(TransporterConfig &&from) noexcept
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
void add_publisher_id(int32_t value)
PROTOBUF_NODISCARD::goby::acomms::protobuf::DynamicBufferConfig * release_buffer()
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
static constexpr int kIndexInFileMessages
int publisher_id_size() const
int32_t subscriber_uuid() const
void set_publisher_id(int index, int32_t value)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void unsafe_arena_set_allocated_buffer(::goby::acomms::protobuf::DynamicBufferConfig *buffer)
bool has_broadcast() const
static const TransporterConfig & default_instance()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ClassData _class_data_
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
void set_broadcast(bool value)
@ kSubscriberUuidFieldNumber
@ kPublisherIdFieldNumber
TransporterConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
void CopyFrom(const TransporterConfig &from)
size_t ByteSizeLong() const final
void MergeFrom(const TransporterConfig &from)
TransporterConfig(TransporterConfig &&from) noexcept
PROTOBUF_CONSTEXPR TransporterConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
bool has_subscriber_uuid() const
TransporterConfig & operator=(const TransporterConfig &from)
::goby::acomms::protobuf::DynamicBufferConfig * unsafe_arena_release_buffer()
TransporterConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
static const TransporterConfig * internal_default_instance()
bool IsInitialized() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
const ::goby::acomms::protobuf::DynamicBufferConfig & buffer() const
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fmiddleware_2fprotobuf_2fintervehicle_5ftransporter_5fconfig_2eproto
DynamicBufferConfigDefaultTypeInternal _DynamicBufferConfig_default_instance_
TransporterConfigDefaultTypeInternal _TransporterConfig_default_instance_
The global namespace for the Goby project.
static const uint32_t offsets[]