4 #ifndef PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fbuffer_2eproto
5 #define PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fbuffer_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>
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>
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 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2facomms_2fprotobuf_2fbuffer_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];
58 class DynamicBufferConfig;
59 class DynamicBufferConfigDefaultTypeInternal;
89 *
this = ::std::move(from);
93 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
94 if (
this != &from) InternalSwap(&from);
102 return _internal_metadata_.unknown_fields();
105 return _internal_metadata_.mutable_unknown_fields();
108 static const ::google::protobuf::Descriptor*
descriptor();
127 return CreateMaybeMessage<DynamicBufferConfig>(NULL);
131 return CreateMaybeMessage<DynamicBufferConfig>(arena);
133 void CopyFrom(const ::google::protobuf::Message& from)
final;
134 void MergeFrom(const ::google::protobuf::Message& from)
final;
142 ::
google::protobuf::io::CodedInputStream* input) final;
144 ::
google::protobuf::io::CodedOutputStream* output) const final;
146 bool deterministic, ::
google::protobuf::uint8* target) const final;
152 void SetCachedSize(
int size)
const final;
155 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
158 inline void* MaybeArenaPtr()
const {
215 template<typename Quantity >
217 {
set_blackout_time(boost::units::quantity<blackout_time_unit,double >(value_w_units).value() ); };
219 template<
typename Quantity >
224 {
return blackout_time_with_units<boost::units::quantity< blackout_time_unit,double > >(); };
228 typedef boost::units::unit<ttl_dimension,boost::units::si::system>
ttl_unit;
230 template<
typename Quantity >
232 {
set_ttl(boost::units::quantity<ttl_unit,double >(value_w_units).value() ); };
234 template<
typename Quantity >
239 {
return ttl_with_units<boost::units::quantity< ttl_unit,double > >(); };
243 void set_has_ack_required();
244 void clear_has_ack_required();
245 void set_has_blackout_time();
246 void clear_has_blackout_time();
247 void set_has_max_queue();
248 void clear_has_max_queue();
249 void set_has_newest_first();
250 void clear_has_newest_first();
252 void clear_has_ttl();
253 void set_has_value_base();
254 void clear_has_value_base();
256 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
257 ::google::protobuf::internal::HasBits<1> _has_bits_;
258 mutable ::google::protobuf::internal::CachedSize _cached_size_;
259 double blackout_time_;
265 friend struct ::protobuf_goby_2facomms_2fprotobuf_2fbuffer_2eproto::TableStruct;
273 #pragma GCC diagnostic push
274 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
280 return (_has_bits_[0] & 0x00000002u) != 0;
282 inline void DynamicBufferConfig::set_has_ack_required() {
283 _has_bits_[0] |= 0x00000002u;
285 inline void DynamicBufferConfig::clear_has_ack_required() {
286 _has_bits_[0] &= ~0x00000002u;
289 ack_required_ =
false;
290 clear_has_ack_required();
294 return ack_required_;
297 set_has_ack_required();
298 ack_required_ = value;
304 return (_has_bits_[0] & 0x00000001u) != 0;
306 inline void DynamicBufferConfig::set_has_blackout_time() {
307 _has_bits_[0] |= 0x00000001u;
309 inline void DynamicBufferConfig::clear_has_blackout_time() {
310 _has_bits_[0] &= ~0x00000001u;
314 clear_has_blackout_time();
318 return blackout_time_;
321 set_has_blackout_time();
322 blackout_time_ = value;
328 return (_has_bits_[0] & 0x00000004u) != 0;
330 inline void DynamicBufferConfig::set_has_max_queue() {
331 _has_bits_[0] |= 0x00000004u;
333 inline void DynamicBufferConfig::clear_has_max_queue() {
334 _has_bits_[0] &= ~0x00000004u;
338 clear_has_max_queue();
352 return (_has_bits_[0] & 0x00000008u) != 0;
354 inline void DynamicBufferConfig::set_has_newest_first() {
355 _has_bits_[0] |= 0x00000008u;
357 inline void DynamicBufferConfig::clear_has_newest_first() {
358 _has_bits_[0] &= ~0x00000008u;
361 newest_first_ =
true;
362 clear_has_newest_first();
366 return newest_first_;
369 set_has_newest_first();
370 newest_first_ = value;
376 return (_has_bits_[0] & 0x00000010u) != 0;
378 inline void DynamicBufferConfig::set_has_ttl() {
379 _has_bits_[0] |= 0x00000010u;
381 inline void DynamicBufferConfig::clear_has_ttl() {
382 _has_bits_[0] &= ~0x00000010u;
400 return (_has_bits_[0] & 0x00000020u) != 0;
402 inline void DynamicBufferConfig::set_has_value_base() {
403 _has_bits_[0] |= 0x00000020u;
405 inline void DynamicBufferConfig::clear_has_value_base() {
406 _has_bits_[0] &= ~0x00000020u;
410 clear_has_value_base();
417 set_has_value_base();
423 #pragma GCC diagnostic pop
434 #endif // PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fbuffer_2eproto