4#ifndef GOOGLE_PROTOBUF_INCLUDED_bin_2fdrivers_2fcamera_2fconfig_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_bin_2fdrivers_2fcamera_2fconfig_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>
24#include <google/protobuf/arena.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>
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 "goby/middleware/protobuf/app_config.pb.h"
34#include "goby/zeromq/protobuf/interprocess_config.pb.h"
35#include "goby/middleware/protobuf/serial_config.pb.h"
36#include <boost/units/quantity.hpp>
37#include <boost/units/absolute.hpp>
38#include <boost/units/dimensionless_type.hpp>
39#include <boost/units/make_scaled_unit.hpp>
41#include <google/protobuf/port_def.inc>
42#define PROTOBUF_INTERNAL_EXPORT_bin_2fdrivers_2fcamera_2fconfig_2eproto
43PROTOBUF_NAMESPACE_OPEN
47PROTOBUF_NAMESPACE_CLOSE
56class CameraDriverConfig;
57struct CameraDriverConfigDefaultTypeInternal;
61PROTOBUF_NAMESPACE_OPEN
63PROTOBUF_NAMESPACE_CLOSE
70 public ::PROTOBUF_NAMESPACE_ID::Message {
74 explicit PROTOBUF_CONSTEXPR
CameraDriverConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
79 *
this = ::std::move(from);
87 if (
this == &from)
return *
this;
88 if (GetOwningArena() == from.GetOwningArena()
89 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
90 && GetOwningArena() !=
nullptr
101 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
104 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
107 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
130 if (other ==
this)
return;
131 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
132 if (GetOwningArena() !=
nullptr &&
133 GetOwningArena() == other->GetOwningArena()) {
135 if (GetOwningArena() == other->GetOwningArena()) {
139 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
143 if (other ==
this)
return;
144 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
151 return CreateMaybeMessage<CameraDriverConfig>(arena);
153 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
155 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
157 CameraDriverConfig::MergeImpl(*
this, from);
160 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
162 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
168 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
172 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
174 void SetCachedSize(
int size)
const final;
178 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
179 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
180 return "jaiabot.config.CameraDriverConfig";
184 bool is_message_owned =
false);
188 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
204 bool _internal_has_app()
const;
207 const ::goby::middleware::protobuf::AppConfig&
app()
const;
208 PROTOBUF_NODISCARD ::goby::middleware::protobuf::AppConfig*
release_app();
209 ::goby::middleware::protobuf::AppConfig*
mutable_app();
212 const ::goby::middleware::protobuf::AppConfig& _internal_app()
const;
213 ::goby::middleware::protobuf::AppConfig* _internal_mutable_app();
216 ::goby::middleware::protobuf::AppConfig*
app);
222 bool _internal_has_interprocess()
const;
225 const ::goby::zeromq::protobuf::InterProcessPortalConfig&
interprocess()
const;
230 const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess()
const;
231 ::goby::zeromq::protobuf::InterProcessPortalConfig* _internal_mutable_interprocess();
234 ::goby::zeromq::protobuf::InterProcessPortalConfig*
interprocess);
240 bool _internal_has_serial_camera()
const;
243 const ::goby::middleware::protobuf::SerialConfig&
serial_camera()
const;
248 const ::goby::middleware::protobuf::SerialConfig& _internal_serial_camera()
const;
249 ::goby::middleware::protobuf::SerialConfig* _internal_mutable_serial_camera();
259 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
260 typedef void InternalArenaConstructable_;
261 typedef void DestructorSkippable_;
263 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
264 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
265 ::goby::middleware::protobuf::AppConfig* app_;
266 ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess_;
267 ::goby::middleware::protobuf::SerialConfig* serial_camera_;
270 friend struct ::TableStruct_bin_2fdrivers_2fcamera_2fconfig_2eproto;
278 #pragma GCC diagnostic push
279 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
284inline bool CameraDriverConfig::_internal_has_app()
const {
285 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
286 PROTOBUF_ASSUME(!value ||
_impl_.app_ !=
nullptr);
290 return _internal_has_app();
292inline const ::goby::middleware::protobuf::AppConfig& CameraDriverConfig::_internal_app()
const {
293 const ::goby::middleware::protobuf::AppConfig* p =
_impl_.app_;
294 return p !=
nullptr ? *p :
reinterpret_cast<const ::goby::middleware::protobuf::AppConfig&
>(
295 ::goby::middleware::protobuf::_AppConfig_default_instance_);
299 return _internal_app();
302 ::goby::middleware::protobuf::AppConfig*
app) {
303 if (GetArenaForAllocation() ==
nullptr) {
304 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.app_);
308 _impl_._has_bits_[0] |= 0x00000001u;
310 _impl_._has_bits_[0] &= ~0x00000001u;
315 _impl_._has_bits_[0] &= ~0x00000001u;
316 ::goby::middleware::protobuf::AppConfig* temp =
_impl_.app_;
318#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
319 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
320 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
321 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
323 if (GetArenaForAllocation() !=
nullptr) {
324 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
331 _impl_._has_bits_[0] &= ~0x00000001u;
332 ::goby::middleware::protobuf::AppConfig* temp =
_impl_.app_;
336inline ::goby::middleware::protobuf::AppConfig* CameraDriverConfig::_internal_mutable_app() {
337 _impl_._has_bits_[0] |= 0x00000001u;
338 if (
_impl_.app_ ==
nullptr) {
339 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaForAllocation());
345 ::goby::middleware::protobuf::AppConfig* _msg = _internal_mutable_app();
350 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
351 if (message_arena ==
nullptr) {
352 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.app_);
355 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
356 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
357 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
app));
358 if (message_arena != submessage_arena) {
359 app = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
360 message_arena,
app, submessage_arena);
362 _impl_._has_bits_[0] |= 0x00000001u;
364 _impl_._has_bits_[0] &= ~0x00000001u;
371inline bool CameraDriverConfig::_internal_has_interprocess()
const {
372 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
373 PROTOBUF_ASSUME(!value ||
_impl_.interprocess_ !=
nullptr);
377 return _internal_has_interprocess();
379inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& CameraDriverConfig::_internal_interprocess()
const {
380 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p =
_impl_.interprocess_;
381 return p !=
nullptr ? *p :
reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig&
>(
382 ::goby::zeromq::protobuf::_InterProcessPortalConfig_default_instance_);
386 return _internal_interprocess();
389 ::goby::zeromq::protobuf::InterProcessPortalConfig*
interprocess) {
390 if (GetArenaForAllocation() ==
nullptr) {
391 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.interprocess_);
395 _impl_._has_bits_[0] |= 0x00000002u;
397 _impl_._has_bits_[0] &= ~0x00000002u;
402 _impl_._has_bits_[0] &= ~0x00000002u;
403 ::goby::zeromq::protobuf::InterProcessPortalConfig* temp =
_impl_.interprocess_;
404 _impl_.interprocess_ =
nullptr;
405#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
406 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
407 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
408 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
410 if (GetArenaForAllocation() !=
nullptr) {
411 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
418 _impl_._has_bits_[0] &= ~0x00000002u;
419 ::goby::zeromq::protobuf::InterProcessPortalConfig* temp =
_impl_.interprocess_;
420 _impl_.interprocess_ =
nullptr;
423inline ::goby::zeromq::protobuf::InterProcessPortalConfig* CameraDriverConfig::_internal_mutable_interprocess() {
424 _impl_._has_bits_[0] |= 0x00000002u;
425 if (
_impl_.interprocess_ ==
nullptr) {
426 auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArenaForAllocation());
429 return _impl_.interprocess_;
432 ::goby::zeromq::protobuf::InterProcessPortalConfig* _msg = _internal_mutable_interprocess();
437 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
438 if (message_arena ==
nullptr) {
439 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.interprocess_);
442 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
443 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
444 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
interprocess));
445 if (message_arena != submessage_arena) {
446 interprocess = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
449 _impl_._has_bits_[0] |= 0x00000002u;
451 _impl_._has_bits_[0] &= ~0x00000002u;
458inline bool CameraDriverConfig::_internal_has_serial_camera()
const {
459 bool value = (
_impl_._has_bits_[0] & 0x00000004u) != 0;
460 PROTOBUF_ASSUME(!value ||
_impl_.serial_camera_ !=
nullptr);
464 return _internal_has_serial_camera();
466inline const ::goby::middleware::protobuf::SerialConfig& CameraDriverConfig::_internal_serial_camera()
const {
467 const ::goby::middleware::protobuf::SerialConfig* p =
_impl_.serial_camera_;
468 return p !=
nullptr ? *p :
reinterpret_cast<const ::goby::middleware::protobuf::SerialConfig&
>(
469 ::goby::middleware::protobuf::_SerialConfig_default_instance_);
473 return _internal_serial_camera();
477 if (GetArenaForAllocation() ==
nullptr) {
478 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.serial_camera_);
482 _impl_._has_bits_[0] |= 0x00000004u;
484 _impl_._has_bits_[0] &= ~0x00000004u;
489 _impl_._has_bits_[0] &= ~0x00000004u;
490 ::goby::middleware::protobuf::SerialConfig* temp =
_impl_.serial_camera_;
491 _impl_.serial_camera_ =
nullptr;
492#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
493 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
494 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
495 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
497 if (GetArenaForAllocation() !=
nullptr) {
498 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
505 _impl_._has_bits_[0] &= ~0x00000004u;
506 ::goby::middleware::protobuf::SerialConfig* temp =
_impl_.serial_camera_;
507 _impl_.serial_camera_ =
nullptr;
510inline ::goby::middleware::protobuf::SerialConfig* CameraDriverConfig::_internal_mutable_serial_camera() {
511 _impl_._has_bits_[0] |= 0x00000004u;
512 if (
_impl_.serial_camera_ ==
nullptr) {
513 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::SerialConfig>(GetArenaForAllocation());
514 _impl_.serial_camera_ = p;
516 return _impl_.serial_camera_;
519 ::goby::middleware::protobuf::SerialConfig* _msg = _internal_mutable_serial_camera();
524 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
525 if (message_arena ==
nullptr) {
526 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.serial_camera_);
529 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
530 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
531 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
serial_camera));
532 if (message_arena != submessage_arena) {
533 serial_camera = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
536 _impl_._has_bits_[0] |= 0x00000004u;
538 _impl_._has_bits_[0] &= ~0x00000004u;
545 #pragma GCC diagnostic pop
555#include <google/protobuf/port_undef.inc>
void unsafe_arena_set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
::goby::middleware::protobuf::SerialConfig * unsafe_arena_release_serial_camera()
::goby::middleware::protobuf::AppConfig * unsafe_arena_release_app()
static const CameraDriverConfig & default_instance()
PROTOBUF_CONSTEXPR CameraDriverConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
void clear_serial_camera()
@ kSerialCameraFieldNumber
@ kInterprocessFieldNumber
CameraDriverConfig(CameraDriverConfig &&from) noexcept
bool IsInitialized() const final
::goby::middleware::protobuf::SerialConfig * mutable_serial_camera()
::goby::zeromq::protobuf::InterProcessPortalConfig * unsafe_arena_release_interprocess()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
friend void swap(CameraDriverConfig &a, CameraDriverConfig &b)
const ::goby::zeromq::protobuf::InterProcessPortalConfig & interprocess() const
void set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
static const ClassData _class_data_
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
void unsafe_arena_set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
int GetCachedSize() const final
void MergeFrom(const CameraDriverConfig &from)
PROTOBUF_NODISCARD::goby::middleware::protobuf::AppConfig * release_app()
void set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
static const CameraDriverConfig * internal_default_instance()
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
CameraDriverConfig(const CameraDriverConfig &from)
CameraDriverConfig & operator=(CameraDriverConfig &&from) noexcept
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
size_t ByteSizeLong() const final
void CopyFrom(const CameraDriverConfig &from)
void set_allocated_serial_camera(::goby::middleware::protobuf::SerialConfig *serial_camera)
CameraDriverConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
static constexpr int kIndexInFileMessages
bool has_serial_camera() const
bool has_interprocess() const
const ::goby::middleware::protobuf::AppConfig & app() const
void unsafe_arena_set_allocated_serial_camera(::goby::middleware::protobuf::SerialConfig *serial_camera)
void clear_interprocess()
void Swap(CameraDriverConfig *other)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
::goby::middleware::protobuf::AppConfig * mutable_app()
::goby::zeromq::protobuf::InterProcessPortalConfig * mutable_interprocess()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
CameraDriverConfig & operator=(const CameraDriverConfig &from)
PROTOBUF_NODISCARD::goby::zeromq::protobuf::InterProcessPortalConfig * release_interprocess()
void UnsafeArenaSwap(CameraDriverConfig *other)
const ::goby::middleware::protobuf::SerialConfig & serial_camera() const
PROTOBUF_NODISCARD::goby::middleware::protobuf::SerialConfig * release_serial_camera()
CameraDriverConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
~CameraDriverConfig() override
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_bin_2fdrivers_2fcamera_2fconfig_2eproto
CameraDriverConfigDefaultTypeInternal _CameraDriverConfig_default_instance_
static const uint32_t offsets[]