4 #ifndef PROTOBUF_INCLUDED_bin_2fdrivers_2ftsys01_5ftemperature_5fsensor_2fconfig_2eproto
5 #define PROTOBUF_INCLUDED_bin_2fdrivers_2ftsys01_5ftemperature_5fsensor_2fconfig_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 "goby/middleware/protobuf/app_config.pb.h"
34 #include "goby/zeromq/protobuf/interprocess_config.pb.h"
35 #include "goby/middleware/protobuf/udp_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 #define PROTOBUF_INTERNAL_EXPORT_protobuf_bin_2fdrivers_2ftsys01_5ftemperature_5fsensor_2fconfig_2eproto
46 static const ::google::protobuf::internal::ParseTableField
entries[];
47 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
48 static const ::google::protobuf::internal::ParseTable
schema[1];
51 static const ::google::protobuf::uint32
offsets[];
57 class TSYS01TemperatureSensorDriver;
58 class TSYS01TemperatureSensorDriverDefaultTypeInternal;
86 *
this = ::std::move(from);
90 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
91 if (
this != &from) InternalSwap(&from);
99 return _internal_metadata_.unknown_fields();
102 return _internal_metadata_.mutable_unknown_fields();
105 static const ::google::protobuf::Descriptor*
descriptor();
124 return CreateMaybeMessage<TSYS01TemperatureSensorDriver>(NULL);
128 return CreateMaybeMessage<TSYS01TemperatureSensorDriver>(arena);
130 void CopyFrom(const ::google::protobuf::Message& from)
final;
131 void MergeFrom(const ::google::protobuf::Message& from)
final;
139 ::
google::protobuf::io::CodedInputStream* input) final;
141 ::
google::protobuf::io::CodedOutputStream* output) const final;
143 bool deterministic, ::
google::protobuf::uint8* target) const final;
149 void SetCachedSize(
int size)
const final;
152 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
155 inline void* MaybeArenaPtr()
const {
160 ::google::protobuf::Metadata
GetMetadata() const final;
171 const ::
goby::middleware::protobuf::AppConfig& _internal_app() const;
173 const ::
goby::middleware::protobuf::AppConfig&
app() const;
183 const ::
goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess() const;
185 const ::
goby::zeromq::protobuf::InterProcessPortalConfig&
interprocess() const;
195 const ::
goby::middleware::protobuf::UDPPointToPointConfig& _internal_udp_config() const;
197 const ::
goby::middleware::protobuf::UDPPointToPointConfig&
udp_config() const;
212 void clear_has_app();
213 void set_has_interprocess();
214 void clear_has_interprocess();
215 void set_has_udp_config();
216 void clear_has_udp_config();
217 void set_has_tsys01_temperature_report_timeout_seconds();
218 void clear_has_tsys01_temperature_report_timeout_seconds();
220 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
221 ::
google::protobuf::internal::HasBits<1> _has_bits_;
222 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
223 ::
goby::middleware::protobuf::AppConfig* app_;
224 ::
goby::zeromq::protobuf::InterProcessPortalConfig* interprocess_;
225 ::
goby::middleware::protobuf::UDPPointToPointConfig* udp_config_;
226 ::
google::protobuf::int32 tsys01_temperature_report_timeout_seconds_;
235 #pragma GCC diagnostic push
236 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
242 return (_has_bits_[0] & 0x00000001u) != 0;
244 inline void TSYS01TemperatureSensorDriver::set_has_app() {
245 _has_bits_[0] |= 0x00000001u;
247 inline void TSYS01TemperatureSensorDriver::clear_has_app() {
248 _has_bits_[0] &= ~0x00000001u;
250 inline const ::goby::middleware::protobuf::AppConfig& TSYS01TemperatureSensorDriver::_internal_app()
const {
254 const ::goby::middleware::protobuf::AppConfig* p = app_;
256 return p != NULL ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::AppConfig*
>(
257 &::goby::middleware::protobuf::_AppConfig_default_instance_);
262 ::goby::middleware::protobuf::AppConfig* temp = app_;
269 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaNoVirtual());
276 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
277 if (message_arena == NULL) {
278 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(app_);
281 ::google::protobuf::Arena* submessage_arena = NULL;
282 if (message_arena != submessage_arena) {
283 app = ::google::protobuf::internal::GetOwnedMessage(
284 message_arena,
app, submessage_arena);
296 return (_has_bits_[0] & 0x00000002u) != 0;
298 inline void TSYS01TemperatureSensorDriver::set_has_interprocess() {
299 _has_bits_[0] |= 0x00000002u;
301 inline void TSYS01TemperatureSensorDriver::clear_has_interprocess() {
302 _has_bits_[0] &= ~0x00000002u;
304 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& TSYS01TemperatureSensorDriver::_internal_interprocess()
const {
305 return *interprocess_;
308 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = interprocess_;
310 return p != NULL ? *p : *
reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig*
>(
311 &::goby::zeromq::protobuf::_InterProcessPortalConfig_default_instance_);
315 clear_has_interprocess();
316 ::goby::zeromq::protobuf::InterProcessPortalConfig* temp = interprocess_;
317 interprocess_ = NULL;
321 set_has_interprocess();
322 if (interprocess_ == NULL) {
323 auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArenaNoVirtual());
327 return interprocess_;
330 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
331 if (message_arena == NULL) {
332 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(interprocess_);
335 ::google::protobuf::Arena* submessage_arena = NULL;
336 if (message_arena != submessage_arena) {
337 interprocess = ::google::protobuf::internal::GetOwnedMessage(
340 set_has_interprocess();
342 clear_has_interprocess();
350 return (_has_bits_[0] & 0x00000004u) != 0;
352 inline void TSYS01TemperatureSensorDriver::set_has_udp_config() {
353 _has_bits_[0] |= 0x00000004u;
355 inline void TSYS01TemperatureSensorDriver::clear_has_udp_config() {
356 _has_bits_[0] &= ~0x00000004u;
358 inline const ::goby::middleware::protobuf::UDPPointToPointConfig& TSYS01TemperatureSensorDriver::_internal_udp_config()
const {
362 const ::goby::middleware::protobuf::UDPPointToPointConfig* p = udp_config_;
364 return p != NULL ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::UDPPointToPointConfig*
>(
365 &::goby::middleware::protobuf::_UDPPointToPointConfig_default_instance_);
369 clear_has_udp_config();
370 ::goby::middleware::protobuf::UDPPointToPointConfig* temp = udp_config_;
375 set_has_udp_config();
376 if (udp_config_ == NULL) {
377 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::UDPPointToPointConfig>(GetArenaNoVirtual());
384 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
385 if (message_arena == NULL) {
386 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(udp_config_);
389 ::google::protobuf::Arena* submessage_arena = NULL;
390 if (message_arena != submessage_arena) {
391 udp_config = ::google::protobuf::internal::GetOwnedMessage(
394 set_has_udp_config();
396 clear_has_udp_config();
404 return (_has_bits_[0] & 0x00000008u) != 0;
406 inline void TSYS01TemperatureSensorDriver::set_has_tsys01_temperature_report_timeout_seconds() {
407 _has_bits_[0] |= 0x00000008u;
409 inline void TSYS01TemperatureSensorDriver::clear_has_tsys01_temperature_report_timeout_seconds() {
410 _has_bits_[0] &= ~0x00000008u;
413 tsys01_temperature_report_timeout_seconds_ = 40;
414 clear_has_tsys01_temperature_report_timeout_seconds();
418 return tsys01_temperature_report_timeout_seconds_;
421 set_has_tsys01_temperature_report_timeout_seconds();
422 tsys01_temperature_report_timeout_seconds_ = value;
427 #pragma GCC diagnostic pop
437 #endif // PROTOBUF_INCLUDED_bin_2fdrivers_2ftsys01_5ftemperature_5fsensor_2fconfig_2eproto