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 < 3012000
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 3012004 < 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_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/inlined_string_field.h>
29 #include <google/protobuf/metadata_lite.h>
30 #include <google/protobuf/generated_message_reflection.h>
31 #include <google/protobuf/message.h>
32 #include <google/protobuf/repeated_field.h>
33 #include <google/protobuf/extension_set.h>
34 #include <google/protobuf/unknown_field_set.h>
35 #include "goby/middleware/protobuf/app_config.pb.h"
36 #include "goby/zeromq/protobuf/interprocess_config.pb.h"
37 #include "goby/middleware/protobuf/serial_config.pb.h"
38 #include <boost/units/quantity.hpp>
39 #include <boost/units/absolute.hpp>
40 #include <boost/units/dimensionless_type.hpp>
41 #include <boost/units/make_scaled_unit.hpp>
43 #include <google/protobuf/port_def.inc>
44 #define PROTOBUF_INTERNAL_EXPORT_bin_2fdrivers_2fcamera_2fconfig_2eproto
45 PROTOBUF_NAMESPACE_OPEN
49 PROTOBUF_NAMESPACE_CLOSE
53 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
55 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
57 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
59 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata
field_metadata[];
61 static const ::PROTOBUF_NAMESPACE_ID::uint32
offsets[];
66 class CameraDriverConfig;
67 class CameraDriverConfigDefaultTypeInternal;
71 PROTOBUF_NAMESPACE_OPEN
72 template<> ::jaiabot::config::CameraDriverConfig* Arena::CreateMaybeMessage<::jaiabot::config::CameraDriverConfig>(Arena*);
73 PROTOBUF_NAMESPACE_CLOSE
80 public ::PROTOBUF_NAMESPACE_ID::Message {
87 : CameraDriverConfig() {
88 *
this = ::std::move(from);
91 inline CameraDriverConfig&
operator=(
const CameraDriverConfig& from) {
95 inline CameraDriverConfig&
operator=(CameraDriverConfig&& from) noexcept {
96 if (GetArena() == from.GetArena()) {
97 if (
this != &from) InternalSwap(&from);
105 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
108 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
111 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
112 return GetDescriptor();
115 return GetMetadataStatic().descriptor;
118 return GetMetadataStatic().reflection;
124 return reinterpret_cast<const CameraDriverConfig*
>(
127 static constexpr
int kIndexInFileMessages =
130 friend void swap(CameraDriverConfig& a, CameraDriverConfig& b) {
133 inline void Swap(CameraDriverConfig* other) {
134 if (other ==
this)
return;
135 if (GetArena() == other->GetArena()) {
138 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
142 if (other ==
this)
return;
143 GOOGLE_DCHECK(GetArena() == other->GetArena());
149 inline CameraDriverConfig*
New() const final {
150 return CreateMaybeMessage<CameraDriverConfig>(
nullptr);
153 CameraDriverConfig*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
154 return CreateMaybeMessage<CameraDriverConfig>(arena);
156 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
157 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
160 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
161 bool IsInitialized() const final;
163 size_t ByteSizeLong() const final;
164 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
165 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
166 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
167 int GetCachedSize() const final {
return _cached_size_.Get(); }
170 inline void SharedCtor();
171 inline void SharedDtor();
172 void SetCachedSize(
int size)
const final;
173 void InternalSwap(CameraDriverConfig* other);
174 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
175 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
176 return "jaiabot.config.CameraDriverConfig";
181 static void ArenaDtor(
void*
object);
182 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
187 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
200 kInterprocessFieldNumber = 2,
201 kSerialCameraFieldNumber = 11,
206 bool _internal_has_app()
const;
209 const ::goby::middleware::protobuf::AppConfig&
app()
const;
214 const ::goby::middleware::protobuf::AppConfig& _internal_app()
const;
215 ::goby::middleware::protobuf::AppConfig* _internal_mutable_app();
218 ::goby::middleware::protobuf::AppConfig* app);
224 bool _internal_has_interprocess()
const;
227 const ::goby::zeromq::protobuf::InterProcessPortalConfig&
interprocess()
const;
232 const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess()
const;
233 ::goby::zeromq::protobuf::InterProcessPortalConfig* _internal_mutable_interprocess();
236 ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess);
242 bool _internal_has_serial_camera()
const;
250 const ::goby::middleware::protobuf::SerialConfig& _internal_serial_camera()
const;
251 ::goby::middleware::protobuf::SerialConfig* _internal_mutable_serial_camera();
254 ::goby::middleware::protobuf::SerialConfig* serial_camera);
261 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
262 typedef void InternalArenaConstructable_;
263 typedef void DestructorSkippable_;
264 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
265 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
266 ::goby::middleware::protobuf::AppConfig* app_;
267 ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess_;
268 ::goby::middleware::protobuf::SerialConfig* serial_camera_;
269 friend struct ::TableStruct_bin_2fdrivers_2fcamera_2fconfig_2eproto;
277 #pragma GCC diagnostic push
278 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
283 inline bool CameraDriverConfig::_internal_has_app()
const {
284 bool value = (_has_bits_[0] & 0x00000001u) != 0;
285 PROTOBUF_ASSUME(!value || app_ !=
nullptr);
288 inline bool CameraDriverConfig::has_app()
const {
289 return _internal_has_app();
291 inline const ::goby::middleware::protobuf::AppConfig& CameraDriverConfig::_internal_app()
const {
292 const ::goby::middleware::protobuf::AppConfig* p = app_;
293 return p !=
nullptr ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::AppConfig*
>(
294 &::goby::middleware::protobuf::_AppConfig_default_instance_);
296 inline const ::goby::middleware::protobuf::AppConfig& CameraDriverConfig::app()
const {
298 return _internal_app();
300 inline void CameraDriverConfig::unsafe_arena_set_allocated_app(
301 ::goby::middleware::protobuf::AppConfig* app) {
302 if (GetArena() ==
nullptr) {
303 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(app_);
307 _has_bits_[0] |= 0x00000001u;
309 _has_bits_[0] &= ~0x00000001u;
313 inline ::goby::middleware::protobuf::AppConfig* CameraDriverConfig::release_app() {
314 auto temp = unsafe_arena_release_app();
315 if (GetArena() !=
nullptr) {
316 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
320 inline ::goby::middleware::protobuf::AppConfig* CameraDriverConfig::unsafe_arena_release_app() {
322 _has_bits_[0] &= ~0x00000001u;
323 ::goby::middleware::protobuf::AppConfig* temp = app_;
327 inline ::goby::middleware::protobuf::AppConfig* CameraDriverConfig::_internal_mutable_app() {
328 _has_bits_[0] |= 0x00000001u;
329 if (app_ ==
nullptr) {
330 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArena());
335 inline ::goby::middleware::protobuf::AppConfig* CameraDriverConfig::mutable_app() {
337 return _internal_mutable_app();
339 inline void CameraDriverConfig::set_allocated_app(::goby::middleware::protobuf::AppConfig* app) {
340 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
341 if (message_arena ==
nullptr) {
342 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(app_);
345 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
346 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(app)->GetArena();
347 if (message_arena != submessage_arena) {
348 app = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
349 message_arena, app, submessage_arena);
351 _has_bits_[0] |= 0x00000001u;
353 _has_bits_[0] &= ~0x00000001u;
360 inline bool CameraDriverConfig::_internal_has_interprocess()
const {
361 bool value = (_has_bits_[0] & 0x00000002u) != 0;
362 PROTOBUF_ASSUME(!value || interprocess_ !=
nullptr);
365 inline bool CameraDriverConfig::has_interprocess()
const {
366 return _internal_has_interprocess();
368 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& CameraDriverConfig::_internal_interprocess()
const {
369 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = interprocess_;
370 return p !=
nullptr ? *p : *
reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig*
>(
371 &::goby::zeromq::protobuf::_InterProcessPortalConfig_default_instance_);
373 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& CameraDriverConfig::interprocess()
const {
375 return _internal_interprocess();
377 inline void CameraDriverConfig::unsafe_arena_set_allocated_interprocess(
378 ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess) {
379 if (GetArena() ==
nullptr) {
380 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(interprocess_);
382 interprocess_ = interprocess;
384 _has_bits_[0] |= 0x00000002u;
386 _has_bits_[0] &= ~0x00000002u;
390 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* CameraDriverConfig::release_interprocess() {
391 auto temp = unsafe_arena_release_interprocess();
392 if (GetArena() !=
nullptr) {
393 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
397 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* CameraDriverConfig::unsafe_arena_release_interprocess() {
399 _has_bits_[0] &= ~0x00000002u;
400 ::goby::zeromq::protobuf::InterProcessPortalConfig* temp = interprocess_;
401 interprocess_ =
nullptr;
404 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* CameraDriverConfig::_internal_mutable_interprocess() {
405 _has_bits_[0] |= 0x00000002u;
406 if (interprocess_ ==
nullptr) {
407 auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArena());
410 return interprocess_;
412 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* CameraDriverConfig::mutable_interprocess() {
414 return _internal_mutable_interprocess();
416 inline void CameraDriverConfig::set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess) {
417 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
418 if (message_arena ==
nullptr) {
419 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(interprocess_);
422 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
423 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(interprocess)->GetArena();
424 if (message_arena != submessage_arena) {
425 interprocess = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
426 message_arena, interprocess, submessage_arena);
428 _has_bits_[0] |= 0x00000002u;
430 _has_bits_[0] &= ~0x00000002u;
432 interprocess_ = interprocess;
437 inline bool CameraDriverConfig::_internal_has_serial_camera()
const {
438 bool value = (_has_bits_[0] & 0x00000004u) != 0;
439 PROTOBUF_ASSUME(!value || serial_camera_ !=
nullptr);
442 inline bool CameraDriverConfig::has_serial_camera()
const {
443 return _internal_has_serial_camera();
445 inline const ::goby::middleware::protobuf::SerialConfig& CameraDriverConfig::_internal_serial_camera()
const {
446 const ::goby::middleware::protobuf::SerialConfig* p = serial_camera_;
447 return p !=
nullptr ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::SerialConfig*
>(
448 &::goby::middleware::protobuf::_SerialConfig_default_instance_);
450 inline const ::goby::middleware::protobuf::SerialConfig& CameraDriverConfig::serial_camera()
const {
452 return _internal_serial_camera();
454 inline void CameraDriverConfig::unsafe_arena_set_allocated_serial_camera(
455 ::goby::middleware::protobuf::SerialConfig* serial_camera) {
456 if (GetArena() ==
nullptr) {
457 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(serial_camera_);
459 serial_camera_ = serial_camera;
461 _has_bits_[0] |= 0x00000004u;
463 _has_bits_[0] &= ~0x00000004u;
467 inline ::goby::middleware::protobuf::SerialConfig* CameraDriverConfig::release_serial_camera() {
468 auto temp = unsafe_arena_release_serial_camera();
469 if (GetArena() !=
nullptr) {
470 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
474 inline ::goby::middleware::protobuf::SerialConfig* CameraDriverConfig::unsafe_arena_release_serial_camera() {
476 _has_bits_[0] &= ~0x00000004u;
477 ::goby::middleware::protobuf::SerialConfig* temp = serial_camera_;
478 serial_camera_ =
nullptr;
481 inline ::goby::middleware::protobuf::SerialConfig* CameraDriverConfig::_internal_mutable_serial_camera() {
482 _has_bits_[0] |= 0x00000004u;
483 if (serial_camera_ ==
nullptr) {
484 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::SerialConfig>(GetArena());
487 return serial_camera_;
489 inline ::goby::middleware::protobuf::SerialConfig* CameraDriverConfig::mutable_serial_camera() {
491 return _internal_mutable_serial_camera();
493 inline void CameraDriverConfig::set_allocated_serial_camera(::goby::middleware::protobuf::SerialConfig* serial_camera) {
494 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
495 if (message_arena ==
nullptr) {
496 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(serial_camera_);
499 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
500 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(serial_camera)->GetArena();
501 if (message_arena != submessage_arena) {
502 serial_camera = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
503 message_arena, serial_camera, submessage_arena);
505 _has_bits_[0] |= 0x00000004u;
507 _has_bits_[0] &= ~0x00000004u;
509 serial_camera_ = serial_camera;
514 #pragma GCC diagnostic pop
524 #include <google/protobuf/port_undef.inc>
void Swap(CameraDriverConfig *other)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
bool has_interprocess() const
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
const ::goby::middleware::protobuf::AppConfig & app() const
const ::goby::middleware::protobuf::SerialConfig & serial_camera() const
static void InitAsDefaultInstance()
::goby::middleware::protobuf::SerialConfig * unsafe_arena_release_serial_camera()
CameraDriverConfig(const CameraDriverConfig &from)
void unsafe_arena_set_allocated_serial_camera(::goby::middleware::protobuf::SerialConfig *serial_camera)
void clear_interprocess()
void clear_serial_camera()
::goby::middleware::protobuf::AppConfig * unsafe_arena_release_app()
friend void swap(CameraDriverConfig &a, CameraDriverConfig &b)
::goby::middleware::protobuf::AppConfig * release_app()
const ::goby::zeromq::protobuf::InterProcessPortalConfig & interprocess() const
CameraDriverConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
CameraDriverConfig * New() const final
void MergeFrom(const CameraDriverConfig &from)
void unsafe_arena_set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
::goby::zeromq::protobuf::InterProcessPortalConfig * release_interprocess()
static const CameraDriverConfig & default_instance()
::goby::zeromq::protobuf::InterProcessPortalConfig * mutable_interprocess()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void CopyFrom(const CameraDriverConfig &from)
void UnsafeArenaSwap(CameraDriverConfig *other)
CameraDriverConfig(CameraDriverConfig &&from) noexcept
void set_allocated_serial_camera(::goby::middleware::protobuf::SerialConfig *serial_camera)
::goby::middleware::protobuf::AppConfig * mutable_app()
::goby::middleware::protobuf::SerialConfig * mutable_serial_camera()
CameraDriverConfig & operator=(const CameraDriverConfig &from)
bool has_serial_camera() const
CameraDriverConfig & operator=(CameraDriverConfig &&from) noexcept
void set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
void unsafe_arena_set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
void set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
::goby::zeromq::protobuf::InterProcessPortalConfig * unsafe_arena_release_interprocess()
CameraDriverConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena)
virtual ~CameraDriverConfig()
::goby::middleware::protobuf::SerialConfig * release_serial_camera()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
static const CameraDriverConfig * internal_default_instance()
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_bin_2fdrivers_2fcamera_2fconfig_2eproto
CameraDriverConfigDefaultTypeInternal _CameraDriverConfig_default_instance_
extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig, ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::jaiabot::udp::protobuf::Config >, 11, false > config
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)