4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fbuffer_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fbuffer_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"
34#include <boost/units/quantity.hpp>
35#include <boost/units/absolute.hpp>
36#include <boost/units/dimensionless_type.hpp>
37#include <boost/units/make_scaled_unit.hpp>
39#include <boost/units/systems/si.hpp>
41#include <google/protobuf/port_def.inc>
42#define PROTOBUF_INTERNAL_EXPORT_goby_2facomms_2fprotobuf_2fbuffer_2eproto
43PROTOBUF_NAMESPACE_OPEN
47PROTOBUF_NAMESPACE_CLOSE
57class DynamicBufferConfig;
58struct DynamicBufferConfigDefaultTypeInternal;
63PROTOBUF_NAMESPACE_OPEN
65PROTOBUF_NAMESPACE_CLOSE
73 public ::PROTOBUF_NAMESPACE_ID::Message {
77 explicit PROTOBUF_CONSTEXPR
DynamicBufferConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
82 *
this = ::std::move(from);
90 if (
this == &from)
return *
this;
91 if (GetOwningArena() == from.GetOwningArena()
92 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
93 && GetOwningArena() !=
nullptr
104 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
107 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
110 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
133 if (other ==
this)
return;
134 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
135 if (GetOwningArena() !=
nullptr &&
136 GetOwningArena() == other->GetOwningArena()) {
138 if (GetOwningArena() == other->GetOwningArena()) {
142 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
146 if (other ==
this)
return;
147 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
154 return CreateMaybeMessage<DynamicBufferConfig>(arena);
156 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
158 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
160 DynamicBufferConfig::MergeImpl(*
this, from);
163 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
165 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
171 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
175 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
177 void SetCachedSize(
int size)
const final;
181 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
182 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
183 return "goby.acomms.protobuf.DynamicBufferConfig";
187 bool is_message_owned =
false);
191 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
210 bool _internal_has_blackout_time()
const;
216 double _internal_blackout_time()
const;
217 void _internal_set_blackout_time(
double value);
223 bool _internal_has_ack_required()
const;
229 bool _internal_ack_required()
const;
230 void _internal_set_ack_required(
bool value);
236 bool _internal_has_max_queue()
const;
242 uint32_t _internal_max_queue()
const;
243 void _internal_set_max_queue(uint32_t value);
249 bool _internal_has_newest_first()
const;
255 bool _internal_newest_first()
const;
256 void _internal_set_newest_first(
bool value);
262 bool _internal_has_ttl()
const;
268 double _internal_ttl()
const;
269 void _internal_set_ttl(
double value);
275 bool _internal_has_value_base()
const;
281 double _internal_value_base()
const;
282 void _internal_set_value_base(
double value);
289 template<
typename Quantity >
291 {
set_blackout_time(boost::units::quantity<blackout_time_unit,double >(value_w_units).value() ); };
293 template<
typename Quantity >
298 {
return blackout_time_with_units<boost::units::quantity< blackout_time_unit,double > >(); };
300 typedef boost::units::derived_dimension< boost::units::time_base_dimension,1 >::type
ttl_dimension;
302 typedef boost::units::unit<ttl_dimension,boost::units::si::system>
ttl_unit;
304 template<
typename Quantity >
306 {
set_ttl(boost::units::quantity<ttl_unit,double >(value_w_units).value() ); };
308 template<
typename Quantity >
313 {
return ttl_with_units<boost::units::quantity< ttl_unit,double > >(); };
319 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
320 typedef void InternalArenaConstructable_;
321 typedef void DestructorSkippable_;
323 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
324 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
325 double blackout_time_;
333 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2fbuffer_2eproto;
341 #pragma GCC diagnostic push
342 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
347inline bool DynamicBufferConfig::_internal_has_ack_required()
const {
348 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
352 return _internal_has_ack_required();
355 _impl_.ack_required_ =
false;
356 _impl_._has_bits_[0] &= ~0x00000002u;
358inline bool DynamicBufferConfig::_internal_ack_required()
const {
359 return _impl_.ack_required_;
363 return _internal_ack_required();
365inline void DynamicBufferConfig::_internal_set_ack_required(
bool value) {
366 _impl_._has_bits_[0] |= 0x00000002u;
367 _impl_.ack_required_ = value;
370 _internal_set_ack_required(value);
375inline bool DynamicBufferConfig::_internal_has_blackout_time()
const {
376 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
380 return _internal_has_blackout_time();
383 _impl_.blackout_time_ = 0;
384 _impl_._has_bits_[0] &= ~0x00000001u;
386inline double DynamicBufferConfig::_internal_blackout_time()
const {
387 return _impl_.blackout_time_;
391 return _internal_blackout_time();
393inline void DynamicBufferConfig::_internal_set_blackout_time(
double value) {
394 _impl_._has_bits_[0] |= 0x00000001u;
395 _impl_.blackout_time_ = value;
398 _internal_set_blackout_time(value);
403inline bool DynamicBufferConfig::_internal_has_max_queue()
const {
404 bool value = (
_impl_._has_bits_[0] & 0x00000004u) != 0;
408 return _internal_has_max_queue();
411 _impl_.max_queue_ = 1000u;
412 _impl_._has_bits_[0] &= ~0x00000004u;
414inline uint32_t DynamicBufferConfig::_internal_max_queue()
const {
419 return _internal_max_queue();
421inline void DynamicBufferConfig::_internal_set_max_queue(uint32_t value) {
422 _impl_._has_bits_[0] |= 0x00000004u;
423 _impl_.max_queue_ = value;
426 _internal_set_max_queue(value);
431inline bool DynamicBufferConfig::_internal_has_newest_first()
const {
432 bool value = (
_impl_._has_bits_[0] & 0x00000008u) != 0;
436 return _internal_has_newest_first();
439 _impl_.newest_first_ =
true;
440 _impl_._has_bits_[0] &= ~0x00000008u;
442inline bool DynamicBufferConfig::_internal_newest_first()
const {
443 return _impl_.newest_first_;
447 return _internal_newest_first();
449inline void DynamicBufferConfig::_internal_set_newest_first(
bool value) {
450 _impl_._has_bits_[0] |= 0x00000008u;
451 _impl_.newest_first_ = value;
454 _internal_set_newest_first(value);
459inline bool DynamicBufferConfig::_internal_has_ttl()
const {
460 bool value = (
_impl_._has_bits_[0] & 0x00000010u) != 0;
464 return _internal_has_ttl();
468 _impl_._has_bits_[0] &= ~0x00000010u;
470inline double DynamicBufferConfig::_internal_ttl()
const {
475 return _internal_ttl();
477inline void DynamicBufferConfig::_internal_set_ttl(
double value) {
478 _impl_._has_bits_[0] |= 0x00000010u;
482 _internal_set_ttl(value);
487inline bool DynamicBufferConfig::_internal_has_value_base()
const {
488 bool value = (
_impl_._has_bits_[0] & 0x00000020u) != 0;
492 return _internal_has_value_base();
496 _impl_._has_bits_[0] &= ~0x00000020u;
498inline double DynamicBufferConfig::_internal_value_base()
const {
499 return _impl_.value_base_;
503 return _internal_value_base();
505inline void DynamicBufferConfig::_internal_set_value_base(
double value) {
506 _impl_._has_bits_[0] |= 0x00000020u;
507 _impl_.value_base_ = value;
510 _internal_set_value_base(value);
515 #pragma GCC diagnostic pop
526#include <google/protobuf/port_undef.inc>
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2facomms_2fprotobuf_2fbuffer_2eproto
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
bool has_value_base() const
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
friend void swap(DynamicBufferConfig &a, DynamicBufferConfig &b)
boost::units::derived_dimension< boost::units::time_base_dimension, 1 >::type ttl_dimension
void clear_newest_first()
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
DynamicBufferConfig(DynamicBufferConfig &&from) noexcept
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Quantity ttl_with_units() const
DynamicBufferConfig & operator=(DynamicBufferConfig &&from) noexcept
uint32_t max_queue() const
boost::units::quantity< blackout_time_unit, double > blackout_time_with_units() const
bool has_newest_first() const
void CopyFrom(const DynamicBufferConfig &from)
Quantity blackout_time_with_units() const
bool has_blackout_time() const
void MergeFrom(const DynamicBufferConfig &from)
boost::units::quantity< ttl_unit, double > ttl_with_units() const
bool has_ack_required() const
void set_value_base(double value)
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
int GetCachedSize() const final
void UnsafeArenaSwap(DynamicBufferConfig *other)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ClassData _class_data_
DynamicBufferConfig & operator=(const DynamicBufferConfig &from)
boost::units::unit< blackout_time_dimension, boost::units::si::system > blackout_time_unit
static const DynamicBufferConfig * internal_default_instance()
DynamicBufferConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
static constexpr int kIndexInFileMessages
void set_blackout_time_with_units(Quantity value_w_units)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
void set_blackout_time(double value)
void Swap(DynamicBufferConfig *other)
static const DynamicBufferConfig & default_instance()
boost::units::unit< ttl_dimension, boost::units::si::system > ttl_unit
bool has_max_queue() const
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
void set_max_queue(uint32_t value)
bool newest_first() const
DynamicBufferConfig(const DynamicBufferConfig &from)
void clear_ack_required()
void set_ack_required(bool value)
DynamicBufferConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
size_t ByteSizeLong() const final
PROTOBUF_CONSTEXPR DynamicBufferConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
boost::units::derived_dimension< boost::units::time_base_dimension, 1 >::type blackout_time_dimension
bool IsInitialized() const final
double value_base() const
void clear_blackout_time()
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
@ kBlackoutTimeFieldNumber
@ kNewestFirstFieldNumber
@ kAckRequiredFieldNumber
~DynamicBufferConfig() override
void set_newest_first(bool value)
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
void set_ttl_with_units(Quantity value_w_units)
bool ack_required() const
void set_ttl(double value)
double blackout_time() const
DynamicBufferConfigDefaultTypeInternal _DynamicBufferConfig_default_instance_
The global namespace for the Goby project.
static const uint32_t offsets[]