Goby3 3.2.3
2025.05.13
Loading...
Searching...
No Matches
buffer.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: goby/acomms/protobuf/buffer.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fbuffer_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fbuffer_2eproto
6
7#include <limits>
8#include <string>
9
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
14#error your headers.
15#endif
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.
20#endif
21
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> // IWYU pragma: export
31#include <google/protobuf/extension_set.h> // IWYU pragma: export
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>
38
39#include <boost/units/systems/si.hpp>
40// @@protoc_insertion_point(includes)
41#include <google/protobuf/port_def.inc>
42#define PROTOBUF_INTERNAL_EXPORT_goby_2facomms_2fprotobuf_2fbuffer_2eproto
43PROTOBUF_NAMESPACE_OPEN
44namespace internal {
45class AnyMetadata;
46} // namespace internal
47PROTOBUF_NAMESPACE_CLOSE
48
49// Internal implementation detail -- do not use these members.
53extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2facomms_2fprotobuf_2fbuffer_2eproto;
54namespace goby {
55namespace acomms {
56namespace protobuf {
57class DynamicBufferConfig;
58struct DynamicBufferConfigDefaultTypeInternal;
59extern DynamicBufferConfigDefaultTypeInternal _DynamicBufferConfig_default_instance_;
60} // namespace protobuf
61} // namespace acomms
62} // namespace goby
63PROTOBUF_NAMESPACE_OPEN
64template<> ::goby::acomms::protobuf::DynamicBufferConfig* Arena::CreateMaybeMessage<::goby::acomms::protobuf::DynamicBufferConfig>(Arena*);
65PROTOBUF_NAMESPACE_CLOSE
66namespace goby {
67namespace acomms {
68namespace protobuf {
69
70// ===================================================================
71
73 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.acomms.protobuf.DynamicBufferConfig) */ {
74 public:
77 explicit PROTOBUF_CONSTEXPR DynamicBufferConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
78
82 *this = ::std::move(from);
83 }
84
86 CopyFrom(from);
87 return *this;
88 }
90 if (this == &from) return *this;
91 if (GetOwningArena() == from.GetOwningArena()
92 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
93 && GetOwningArena() != nullptr
94 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
95 ) {
96 InternalSwap(&from);
97 } else {
98 CopyFrom(from);
99 }
100 return *this;
101 }
102
103 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
104 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
105 }
106 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
107 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
108 }
109
110 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
111 return GetDescriptor();
112 }
113 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
114 return default_instance().GetMetadata().descriptor;
115 }
116 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
117 return default_instance().GetMetadata().reflection;
118 }
121 }
123 return reinterpret_cast<const DynamicBufferConfig*>(
125 }
126 static constexpr int kIndexInFileMessages =
127 0;
128
130 a.Swap(&b);
131 }
132 inline void Swap(DynamicBufferConfig* other) {
133 if (other == this) return;
134 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
135 if (GetOwningArena() != nullptr &&
136 GetOwningArena() == other->GetOwningArena()) {
137 #else // PROTOBUF_FORCE_COPY_IN_SWAP
138 if (GetOwningArena() == other->GetOwningArena()) {
139 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
140 InternalSwap(other);
141 } else {
142 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
143 }
144 }
146 if (other == this) return;
147 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
148 InternalSwap(other);
149 }
150
151 // implements Message ----------------------------------------------
152
153 DynamicBufferConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
154 return CreateMaybeMessage<DynamicBufferConfig>(arena);
155 }
156 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
157 void CopyFrom(const DynamicBufferConfig& from);
158 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
159 void MergeFrom( const DynamicBufferConfig& from) {
160 DynamicBufferConfig::MergeImpl(*this, from);
161 }
162 private:
163 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
164 public:
165 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
166 bool IsInitialized() const final;
167
168 size_t ByteSizeLong() const final;
169 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
171 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
172 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
173
174 private:
175 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
176 void SharedDtor();
177 void SetCachedSize(int size) const final;
178 void InternalSwap(DynamicBufferConfig* other);
179
180 private:
181 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
182 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
183 return "goby.acomms.protobuf.DynamicBufferConfig";
184 }
185 protected:
186 explicit DynamicBufferConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena,
187 bool is_message_owned = false);
188 public:
189
190 static const ClassData _class_data_;
191 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
192
193 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
194
195 // nested types ----------------------------------------------------
196
197 // accessors -------------------------------------------------------
198
199 enum : int {
206 };
207 // optional double blackout_time = 3 [default = 0, (.dccl.field) = {
208 bool has_blackout_time() const;
209 private:
210 bool _internal_has_blackout_time() const;
211 public:
212 void clear_blackout_time();
213 double blackout_time() const;
214 void set_blackout_time(double value);
215 private:
216 double _internal_blackout_time() const;
217 void _internal_set_blackout_time(double value);
218 public:
219
220 // optional bool ack_required = 2 [default = false];
221 bool has_ack_required() const;
222 private:
223 bool _internal_has_ack_required() const;
224 public:
225 void clear_ack_required();
226 bool ack_required() const;
227 void set_ack_required(bool value);
228 private:
229 bool _internal_ack_required() const;
230 void _internal_set_ack_required(bool value);
231 public:
232
233 // optional uint32 max_queue = 4 [default = 1000, (.dccl.field) = {
234 bool has_max_queue() const;
235 private:
236 bool _internal_has_max_queue() const;
237 public:
238 void clear_max_queue();
239 uint32_t max_queue() const;
240 void set_max_queue(uint32_t value);
241 private:
242 uint32_t _internal_max_queue() const;
243 void _internal_set_max_queue(uint32_t value);
244 public:
245
246 // optional bool newest_first = 5 [default = true];
247 bool has_newest_first() const;
248 private:
249 bool _internal_has_newest_first() const;
250 public:
251 void clear_newest_first();
252 bool newest_first() const;
253 void set_newest_first(bool value);
254 private:
255 bool _internal_newest_first() const;
256 void _internal_set_newest_first(bool value);
257 public:
258
259 // optional double ttl = 6 [default = 1800, (.dccl.field) = {
260 bool has_ttl() const;
261 private:
262 bool _internal_has_ttl() const;
263 public:
264 void clear_ttl();
265 double ttl() const;
266 void set_ttl(double value);
267 private:
268 double _internal_ttl() const;
269 void _internal_set_ttl(double value);
270 public:
271
272 // optional double value_base = 7 [default = 100, (.dccl.field) = {
273 bool has_value_base() const;
274 private:
275 bool _internal_has_value_base() const;
276 public:
277 void clear_value_base();
278 double value_base() const;
279 void set_value_base(double value);
280 private:
281 double _internal_value_base() const;
282 void _internal_set_value_base(double value);
283 public:
284
285 typedef boost::units::derived_dimension< boost::units::time_base_dimension,1 >::type blackout_time_dimension;
286
287 typedef boost::units::unit<blackout_time_dimension,boost::units::si::system> blackout_time_unit;
288
289 template<typename Quantity >
290 void set_blackout_time_with_units(Quantity value_w_units)
291 { set_blackout_time(boost::units::quantity<blackout_time_unit,double >(value_w_units).value() ); };
292
293 template<typename Quantity >
295 { return Quantity(blackout_time() * blackout_time_unit()); };
296
297 boost::units::quantity< blackout_time_unit,double > blackout_time_with_units() const
298 { return blackout_time_with_units<boost::units::quantity< blackout_time_unit,double > >(); };
299
300 typedef boost::units::derived_dimension< boost::units::time_base_dimension,1 >::type ttl_dimension;
301
302 typedef boost::units::unit<ttl_dimension,boost::units::si::system> ttl_unit;
303
304 template<typename Quantity >
305 void set_ttl_with_units(Quantity value_w_units)
306 { set_ttl(boost::units::quantity<ttl_unit,double >(value_w_units).value() ); };
307
308 template<typename Quantity >
309 Quantity ttl_with_units() const
310 { return Quantity(ttl() * ttl_unit()); };
311
312 boost::units::quantity< ttl_unit,double > ttl_with_units() const
313 { return ttl_with_units<boost::units::quantity< ttl_unit,double > >(); };
314
315 // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.DynamicBufferConfig)
316 private:
317 class _Internal;
318
319 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
320 typedef void InternalArenaConstructable_;
321 typedef void DestructorSkippable_;
322 struct Impl_ {
323 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
324 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
325 double blackout_time_;
326 bool ack_required_;
327 uint32_t max_queue_;
328 bool newest_first_;
329 double ttl_;
330 double value_base_;
331 };
332 union { Impl_ _impl_; };
333 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2fbuffer_2eproto;
334};
335// ===================================================================
336
337
338// ===================================================================
339
340#ifdef __GNUC__
341 #pragma GCC diagnostic push
342 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
343#endif // __GNUC__
344// DynamicBufferConfig
345
346// optional bool ack_required = 2 [default = false];
347inline bool DynamicBufferConfig::_internal_has_ack_required() const {
348 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
349 return value;
350}
352 return _internal_has_ack_required();
353}
355 _impl_.ack_required_ = false;
356 _impl_._has_bits_[0] &= ~0x00000002u;
357}
358inline bool DynamicBufferConfig::_internal_ack_required() const {
359 return _impl_.ack_required_;
360}
362 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DynamicBufferConfig.ack_required)
363 return _internal_ack_required();
364}
365inline void DynamicBufferConfig::_internal_set_ack_required(bool value) {
366 _impl_._has_bits_[0] |= 0x00000002u;
367 _impl_.ack_required_ = value;
368}
370 _internal_set_ack_required(value);
371 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DynamicBufferConfig.ack_required)
372}
373
374// optional double blackout_time = 3 [default = 0, (.dccl.field) = {
375inline bool DynamicBufferConfig::_internal_has_blackout_time() const {
376 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
377 return value;
378}
380 return _internal_has_blackout_time();
381}
383 _impl_.blackout_time_ = 0;
384 _impl_._has_bits_[0] &= ~0x00000001u;
385}
386inline double DynamicBufferConfig::_internal_blackout_time() const {
387 return _impl_.blackout_time_;
388}
390 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DynamicBufferConfig.blackout_time)
391 return _internal_blackout_time();
392}
393inline void DynamicBufferConfig::_internal_set_blackout_time(double value) {
394 _impl_._has_bits_[0] |= 0x00000001u;
395 _impl_.blackout_time_ = value;
396}
397inline void DynamicBufferConfig::set_blackout_time(double value) {
398 _internal_set_blackout_time(value);
399 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DynamicBufferConfig.blackout_time)
400}
401
402// optional uint32 max_queue = 4 [default = 1000, (.dccl.field) = {
403inline bool DynamicBufferConfig::_internal_has_max_queue() const {
404 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
405 return value;
406}
408 return _internal_has_max_queue();
409}
411 _impl_.max_queue_ = 1000u;
412 _impl_._has_bits_[0] &= ~0x00000004u;
413}
414inline uint32_t DynamicBufferConfig::_internal_max_queue() const {
415 return _impl_.max_queue_;
416}
417inline uint32_t DynamicBufferConfig::max_queue() const {
418 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DynamicBufferConfig.max_queue)
419 return _internal_max_queue();
420}
421inline void DynamicBufferConfig::_internal_set_max_queue(uint32_t value) {
422 _impl_._has_bits_[0] |= 0x00000004u;
423 _impl_.max_queue_ = value;
424}
425inline void DynamicBufferConfig::set_max_queue(uint32_t value) {
426 _internal_set_max_queue(value);
427 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DynamicBufferConfig.max_queue)
428}
429
430// optional bool newest_first = 5 [default = true];
431inline bool DynamicBufferConfig::_internal_has_newest_first() const {
432 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
433 return value;
434}
436 return _internal_has_newest_first();
437}
439 _impl_.newest_first_ = true;
440 _impl_._has_bits_[0] &= ~0x00000008u;
441}
442inline bool DynamicBufferConfig::_internal_newest_first() const {
443 return _impl_.newest_first_;
444}
446 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DynamicBufferConfig.newest_first)
447 return _internal_newest_first();
448}
449inline void DynamicBufferConfig::_internal_set_newest_first(bool value) {
450 _impl_._has_bits_[0] |= 0x00000008u;
451 _impl_.newest_first_ = value;
452}
454 _internal_set_newest_first(value);
455 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DynamicBufferConfig.newest_first)
456}
457
458// optional double ttl = 6 [default = 1800, (.dccl.field) = {
459inline bool DynamicBufferConfig::_internal_has_ttl() const {
460 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
461 return value;
462}
463inline bool DynamicBufferConfig::has_ttl() const {
464 return _internal_has_ttl();
465}
467 _impl_.ttl_ = 1800;
468 _impl_._has_bits_[0] &= ~0x00000010u;
469}
470inline double DynamicBufferConfig::_internal_ttl() const {
471 return _impl_.ttl_;
472}
473inline double DynamicBufferConfig::ttl() const {
474 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DynamicBufferConfig.ttl)
475 return _internal_ttl();
476}
477inline void DynamicBufferConfig::_internal_set_ttl(double value) {
478 _impl_._has_bits_[0] |= 0x00000010u;
479 _impl_.ttl_ = value;
480}
481inline void DynamicBufferConfig::set_ttl(double value) {
482 _internal_set_ttl(value);
483 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DynamicBufferConfig.ttl)
484}
485
486// optional double value_base = 7 [default = 100, (.dccl.field) = {
487inline bool DynamicBufferConfig::_internal_has_value_base() const {
488 bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
489 return value;
490}
492 return _internal_has_value_base();
493}
495 _impl_.value_base_ = 100;
496 _impl_._has_bits_[0] &= ~0x00000020u;
497}
498inline double DynamicBufferConfig::_internal_value_base() const {
499 return _impl_.value_base_;
500}
501inline double DynamicBufferConfig::value_base() const {
502 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DynamicBufferConfig.value_base)
503 return _internal_value_base();
504}
505inline void DynamicBufferConfig::_internal_set_value_base(double value) {
506 _impl_._has_bits_[0] |= 0x00000020u;
507 _impl_.value_base_ = value;
508}
509inline void DynamicBufferConfig::set_value_base(double value) {
510 _internal_set_value_base(value);
511 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DynamicBufferConfig.value_base)
512}
513
514#ifdef __GNUC__
515 #pragma GCC diagnostic pop
516#endif // __GNUC__
517
518// @@protoc_insertion_point(namespace_scope)
519
520} // namespace protobuf
521} // namespace acomms
522} // namespace goby
523
524// @@protoc_insertion_point(global_scope)
525
526#include <google/protobuf/port_undef.inc>
527#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fbuffer_2eproto
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2facomms_2fprotobuf_2fbuffer_2eproto
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition buffer.pb.h:110
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
friend void swap(DynamicBufferConfig &a, DynamicBufferConfig &b)
Definition buffer.pb.h:129
boost::units::derived_dimension< boost::units::time_base_dimension, 1 >::type ttl_dimension
Definition buffer.pb.h:300
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
DynamicBufferConfig(DynamicBufferConfig &&from) noexcept
Definition buffer.pb.h:80
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition buffer.pb.h:106
DynamicBufferConfig & operator=(DynamicBufferConfig &&from) noexcept
Definition buffer.pb.h:89
boost::units::quantity< blackout_time_unit, double > blackout_time_with_units() const
Definition buffer.pb.h:297
void CopyFrom(const DynamicBufferConfig &from)
void MergeFrom(const DynamicBufferConfig &from)
Definition buffer.pb.h:159
boost::units::quantity< ttl_unit, double > ttl_with_units() const
Definition buffer.pb.h:312
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
void UnsafeArenaSwap(DynamicBufferConfig *other)
Definition buffer.pb.h:145
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
DynamicBufferConfig & operator=(const DynamicBufferConfig &from)
Definition buffer.pb.h:85
boost::units::unit< blackout_time_dimension, boost::units::si::system > blackout_time_unit
Definition buffer.pb.h:287
static const DynamicBufferConfig * internal_default_instance()
Definition buffer.pb.h:122
DynamicBufferConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
void set_blackout_time_with_units(Quantity value_w_units)
Definition buffer.pb.h:290
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition buffer.pb.h:116
void Swap(DynamicBufferConfig *other)
Definition buffer.pb.h:132
static const DynamicBufferConfig & default_instance()
Definition buffer.pb.h:119
boost::units::unit< ttl_dimension, boost::units::si::system > ttl_unit
Definition buffer.pb.h:302
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition buffer.pb.h:113
DynamicBufferConfig(const DynamicBufferConfig &from)
DynamicBufferConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition buffer.pb.h:153
PROTOBUF_CONSTEXPR DynamicBufferConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
boost::units::derived_dimension< boost::units::time_base_dimension, 1 >::type blackout_time_dimension
Definition buffer.pb.h:285
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition buffer.pb.h:103
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
void set_ttl_with_units(Quantity value_w_units)
Definition buffer.pb.h:305
DynamicBufferConfigDefaultTypeInternal _DynamicBufferConfig_default_instance_
The global namespace for the Goby project.