Goby3 3.2.3
2025.05.13
Loading...
Searching...
No Matches
test.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: goby/test/acomms/queue1/test.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2facomms_2fqueue1_2ftest_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2facomms_2fqueue1_2ftest_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// @@protoc_insertion_point(includes)
39#include <google/protobuf/port_def.inc>
40#define PROTOBUF_INTERNAL_EXPORT_goby_2ftest_2facomms_2fqueue1_2ftest_2eproto
41PROTOBUF_NAMESPACE_OPEN
42namespace internal {
43class AnyMetadata;
44} // namespace internal
45PROTOBUF_NAMESPACE_CLOSE
46
47// Internal implementation detail -- do not use these members.
51extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2ftest_2facomms_2fqueue1_2ftest_2eproto;
52namespace goby {
53namespace test {
54namespace acomms {
55namespace protobuf {
56class TestMsg;
57struct TestMsgDefaultTypeInternal;
58extern TestMsgDefaultTypeInternal _TestMsg_default_instance_;
59} // namespace protobuf
60} // namespace acomms
61} // namespace test
62} // namespace goby
63PROTOBUF_NAMESPACE_OPEN
64template<> ::goby::test::acomms::protobuf::TestMsg* Arena::CreateMaybeMessage<::goby::test::acomms::protobuf::TestMsg>(Arena*);
65PROTOBUF_NAMESPACE_CLOSE
66namespace goby {
67namespace test {
68namespace acomms {
69namespace protobuf {
70
71// ===================================================================
72
73class TestMsg final :
74 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.test.acomms.protobuf.TestMsg) */ {
75 public:
76 inline TestMsg() : TestMsg(nullptr) {}
77 ~TestMsg() override;
78 explicit PROTOBUF_CONSTEXPR TestMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
79
80 TestMsg(const TestMsg& from);
81 TestMsg(TestMsg&& from) noexcept
82 : TestMsg() {
83 *this = ::std::move(from);
84 }
85
86 inline TestMsg& operator=(const TestMsg& from) {
87 CopyFrom(from);
88 return *this;
89 }
90 inline TestMsg& operator=(TestMsg&& from) noexcept {
91 if (this == &from) return *this;
92 if (GetOwningArena() == from.GetOwningArena()
93 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
94 && GetOwningArena() != nullptr
95 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
96 ) {
97 InternalSwap(&from);
98 } else {
99 CopyFrom(from);
100 }
101 return *this;
102 }
103
104 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
105 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
106 }
107 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
108 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
109 }
110
111 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
112 return GetDescriptor();
113 }
114 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
115 return default_instance().GetMetadata().descriptor;
116 }
117 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
118 return default_instance().GetMetadata().reflection;
119 }
120 static const TestMsg& default_instance() {
122 }
123 static inline const TestMsg* internal_default_instance() {
124 return reinterpret_cast<const TestMsg*>(
126 }
127 static constexpr int kIndexInFileMessages =
128 0;
129
130 friend void swap(TestMsg& a, TestMsg& b) {
131 a.Swap(&b);
132 }
133 inline void Swap(TestMsg* other) {
134 if (other == this) return;
135 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
136 if (GetOwningArena() != nullptr &&
137 GetOwningArena() == other->GetOwningArena()) {
138 #else // PROTOBUF_FORCE_COPY_IN_SWAP
139 if (GetOwningArena() == other->GetOwningArena()) {
140 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
141 InternalSwap(other);
142 } else {
143 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
144 }
145 }
147 if (other == this) return;
148 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
149 InternalSwap(other);
150 }
151
152 // implements Message ----------------------------------------------
153
154 TestMsg* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
155 return CreateMaybeMessage<TestMsg>(arena);
156 }
157 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
158 void CopyFrom(const TestMsg& from);
159 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
160 void MergeFrom( const TestMsg& from) {
161 TestMsg::MergeImpl(*this, from);
162 }
163 private:
164 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
165 public:
166 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
167 bool IsInitialized() const final;
168
169 size_t ByteSizeLong() const final;
170 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
172 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
173 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
174
175 private:
176 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
177 void SharedDtor();
178 void SetCachedSize(int size) const final;
179 void InternalSwap(TestMsg* other);
180
181 private:
182 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
183 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
184 return "goby.test.acomms.protobuf.TestMsg";
185 }
186 protected:
187 explicit TestMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena,
188 bool is_message_owned = false);
189 public:
190
191 static const ClassData _class_data_;
192 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
193
194 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
195
196 // nested types ----------------------------------------------------
197
198 // accessors -------------------------------------------------------
199
200 enum : int {
203 };
204 // optional double double_default_optional = 1 [(.dccl.field) = {
206 private:
207 bool _internal_has_double_default_optional() const;
208 public:
211 void set_double_default_optional(double value);
212 private:
213 double _internal_double_default_optional() const;
214 void _internal_set_double_default_optional(double value);
215 public:
216
217 // optional float float_default_optional = 2 [(.dccl.field) = {
219 private:
220 bool _internal_has_float_default_optional() const;
221 public:
224 void set_float_default_optional(float value);
225 private:
226 float _internal_float_default_optional() const;
227 void _internal_set_float_default_optional(float value);
228 public:
229
231 // @@protoc_insertion_point(class_scope:goby.test.acomms.protobuf.TestMsg)
232 private:
233 class _Internal;
234
235 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
236 typedef void InternalArenaConstructable_;
237 typedef void DestructorSkippable_;
238 struct Impl_ {
239 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
240 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
241 double double_default_optional_;
242 float float_default_optional_;
243 };
244 union { Impl_ _impl_; };
245 friend struct ::TableStruct_goby_2ftest_2facomms_2fqueue1_2ftest_2eproto;
246};
247// ===================================================================
248
249
250// ===================================================================
251
252#ifdef __GNUC__
253 #pragma GCC diagnostic push
254 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
255#endif // __GNUC__
256// TestMsg
257
258// optional double double_default_optional = 1 [(.dccl.field) = {
259inline bool TestMsg::_internal_has_double_default_optional() const {
260 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
261 return value;
262}
263inline bool TestMsg::has_double_default_optional() const {
264 return _internal_has_double_default_optional();
265}
267 _impl_.double_default_optional_ = 0;
268 _impl_._has_bits_[0] &= ~0x00000001u;
269}
270inline double TestMsg::_internal_double_default_optional() const {
271 return _impl_.double_default_optional_;
272}
273inline double TestMsg::double_default_optional() const {
274 // @@protoc_insertion_point(field_get:goby.test.acomms.protobuf.TestMsg.double_default_optional)
275 return _internal_double_default_optional();
276}
277inline void TestMsg::_internal_set_double_default_optional(double value) {
278 _impl_._has_bits_[0] |= 0x00000001u;
279 _impl_.double_default_optional_ = value;
280}
281inline void TestMsg::set_double_default_optional(double value) {
282 _internal_set_double_default_optional(value);
283 // @@protoc_insertion_point(field_set:goby.test.acomms.protobuf.TestMsg.double_default_optional)
284}
285
286// optional float float_default_optional = 2 [(.dccl.field) = {
287inline bool TestMsg::_internal_has_float_default_optional() const {
288 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
289 return value;
290}
291inline bool TestMsg::has_float_default_optional() const {
292 return _internal_has_float_default_optional();
293}
295 _impl_.float_default_optional_ = 0;
296 _impl_._has_bits_[0] &= ~0x00000002u;
297}
298inline float TestMsg::_internal_float_default_optional() const {
299 return _impl_.float_default_optional_;
300}
301inline float TestMsg::float_default_optional() const {
302 // @@protoc_insertion_point(field_get:goby.test.acomms.protobuf.TestMsg.float_default_optional)
303 return _internal_float_default_optional();
304}
305inline void TestMsg::_internal_set_float_default_optional(float value) {
306 _impl_._has_bits_[0] |= 0x00000002u;
307 _impl_.float_default_optional_ = value;
308}
309inline void TestMsg::set_float_default_optional(float value) {
310 _internal_set_float_default_optional(value);
311 // @@protoc_insertion_point(field_set:goby.test.acomms.protobuf.TestMsg.float_default_optional)
312}
313
314#ifdef __GNUC__
315 #pragma GCC diagnostic pop
316#endif // __GNUC__
317
318// @@protoc_insertion_point(namespace_scope)
319
320} // namespace protobuf
321} // namespace acomms
322} // namespace test
323} // namespace goby
324
325// @@protoc_insertion_point(global_scope)
326
327#include <google/protobuf/port_undef.inc>
328#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2facomms_2fqueue1_2ftest_2eproto
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2ftest_2facomms_2fqueue1_2ftest_2eproto
static const TestMsg * internal_default_instance()
Definition test.pb.h:531
TestMsg * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition test.pb.h:154
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition test.pb.h:104
TestMsg(TestMsg &&from) noexcept
Definition test.pb.h:81
static constexpr int kIndexInFileMessages
Definition test.pb.h:535
void UnsafeArenaSwap(TestMsg *other)
Definition test.pb.h:146
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
TestMsg(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
void CopyFrom(const TestMsg &from)
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
PROTOBUF_CONSTEXPR TestMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition test.pb.h:111
void set_double_default_optional(double value)
TestMsg & operator=(TestMsg &&from) noexcept
Definition test.pb.h:90
void MergeFrom(const TestMsg &from)
Definition test.pb.h:160
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
static const ClassData _class_data_
Definition test.pb.h:599
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition test.pb.h:522
TestMsg & operator=(const TestMsg &from)
Definition test.pb.h:86
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition test.pb.h:107
void set_float_default_optional(float value)
static const TestMsg & default_instance()
Definition test.pb.h:528
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
friend void swap(TestMsg &a, TestMsg &b)
Definition test.pb.h:130
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition test.pb.h:117
TestMsgDefaultTypeInternal _TestMsg_default_instance_
Definition test.pb.h:58
The global namespace for the Goby project.