Goby3  3.1.5a
2024.05.23
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/dccl3/test.proto
3 
4 #ifndef PROTOBUF_INCLUDED_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto
5 #define PROTOBUF_INCLUDED_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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>
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>
34 #include "dccl/option_extensions.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>
40 // @@protoc_insertion_point(includes)
41 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto
42 
44 // Internal implementation detail -- do not use these members.
45 struct TableStruct {
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];
49  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
50  static const ::google::protobuf::internal::SerializationTable serialization_table[];
52 };
53 void AddDescriptors();
54 } // namespace protobuf_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto
55 namespace goby {
56 namespace test {
57 namespace acomms {
58 namespace protobuf {
59 class GobyMessage;
60 class GobyMessageDefaultTypeInternal;
61 extern GobyMessageDefaultTypeInternal _GobyMessage_default_instance_;
62 } // namespace protobuf
63 } // namespace acomms
64 } // namespace test
65 } // namespace goby
66 namespace google {
67 namespace protobuf {
68 template<> ::goby::test::acomms::protobuf::GobyMessage* Arena::CreateMaybeMessage<::goby::test::acomms::protobuf::GobyMessage>(Arena*);
69 } // namespace protobuf
70 } // namespace google
71 namespace goby {
72 namespace test {
73 namespace acomms {
74 namespace protobuf {
75 
76 // ===================================================================
77 
78 class GobyMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:goby.test.acomms.protobuf.GobyMessage) */ {
79  public:
80  GobyMessage();
81  virtual ~GobyMessage();
82 
83  GobyMessage(const GobyMessage& from);
84 
85  inline GobyMessage& operator=(const GobyMessage& from) {
86  CopyFrom(from);
87  return *this;
88  }
89  #if LANG_CXX11
90  GobyMessage(GobyMessage&& from) noexcept
91  : GobyMessage() {
92  *this = ::std::move(from);
93  }
94 
95  inline GobyMessage& operator=(GobyMessage&& from) noexcept {
96  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
97  if (this != &from) InternalSwap(&from);
98  } else {
99  CopyFrom(from);
100  }
101  return *this;
102  }
103  #endif
104  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
105  return _internal_metadata_.unknown_fields();
106  }
107  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
108  return _internal_metadata_.mutable_unknown_fields();
109  }
110 
111  static const ::google::protobuf::Descriptor* descriptor();
112  static const GobyMessage& default_instance();
113 
114  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
115  static inline const GobyMessage* internal_default_instance() {
116  return reinterpret_cast<const GobyMessage*>(
118  }
119  static constexpr int kIndexInFileMessages =
120  0;
121 
122  void Swap(GobyMessage* other);
123  friend void swap(GobyMessage& a, GobyMessage& b) {
124  a.Swap(&b);
125  }
126 
127  // implements Message ----------------------------------------------
128 
129  inline GobyMessage* New() const final {
130  return CreateMaybeMessage<GobyMessage>(NULL);
131  }
132 
133  GobyMessage* New(::google::protobuf::Arena* arena) const final {
134  return CreateMaybeMessage<GobyMessage>(arena);
135  }
136  void CopyFrom(const ::google::protobuf::Message& from) final;
137  void MergeFrom(const ::google::protobuf::Message& from) final;
138  void CopyFrom(const GobyMessage& from);
139  void MergeFrom(const GobyMessage& from);
140  void Clear() final;
141  bool IsInitialized() const final;
142 
143  size_t ByteSizeLong() const final;
145  ::google::protobuf::io::CodedInputStream* input) final;
147  ::google::protobuf::io::CodedOutputStream* output) const final;
149  bool deterministic, ::google::protobuf::uint8* target) const final;
150  int GetCachedSize() const final { return _cached_size_.Get(); }
151 
152  private:
153  void SharedCtor();
154  void SharedDtor();
155  void SetCachedSize(int size) const final;
156  void InternalSwap(GobyMessage* other);
157  private:
158  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
159  return NULL;
160  }
161  inline void* MaybeArenaPtr() const {
162  return NULL;
163  }
164  public:
165 
167 
168  // nested types ----------------------------------------------------
169 
170  // accessors -------------------------------------------------------
171 
172  // required string telegram = 1 [(.dccl.field) = {
173  bool has_telegram() const;
174  void clear_telegram();
175  static const int kTelegramFieldNumber = 1;
176  const ::std::string& telegram() const;
177  void set_telegram(const ::std::string& value);
178  #if LANG_CXX11
179  void set_telegram(::std::string&& value);
180  #endif
181  void set_telegram(const char* value);
182  void set_telegram(const char* value, size_t size);
183  ::std::string* mutable_telegram();
184  ::std::string* release_telegram();
185  void set_allocated_telegram(::std::string* telegram);
186 
187  // required .goby.test.acomms.protobuf.Header header = 2 [(.dccl.field) = {
188  bool has_header() const;
189  void clear_header();
190  static const int kHeaderFieldNumber = 2;
191  private:
192  const ::goby::test::acomms::protobuf::Header& _internal_header() const;
193  public:
194  const ::goby::test::acomms::protobuf::Header& header() const;
198 
200  // @@protoc_insertion_point(class_scope:goby.test.acomms.protobuf.GobyMessage)
201  private:
202  void set_has_telegram();
203  void clear_has_telegram();
204  void set_has_header();
205  void clear_has_header();
206 
207  // helper for ByteSizeLong()
208  size_t RequiredFieldsByteSizeFallback() const;
209 
210  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
211  ::google::protobuf::internal::HasBits<1> _has_bits_;
212  mutable ::google::protobuf::internal::CachedSize _cached_size_;
213  ::google::protobuf::internal::ArenaStringPtr telegram_;
215  friend struct ::protobuf_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto::TableStruct;
216 };
217 // ===================================================================
218 
219 
220 // ===================================================================
221 
222 #ifdef __GNUC__
223  #pragma GCC diagnostic push
224  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
225 #endif // __GNUC__
226 // GobyMessage
227 
228 // required string telegram = 1 [(.dccl.field) = {
229 inline bool GobyMessage::has_telegram() const {
230  return (_has_bits_[0] & 0x00000001u) != 0;
231 }
232 inline void GobyMessage::set_has_telegram() {
233  _has_bits_[0] |= 0x00000001u;
234 }
235 inline void GobyMessage::clear_has_telegram() {
236  _has_bits_[0] &= ~0x00000001u;
237 }
239  telegram_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
240  clear_has_telegram();
241 }
242 inline const ::std::string& GobyMessage::telegram() const {
243  // @@protoc_insertion_point(field_get:goby.test.acomms.protobuf.GobyMessage.telegram)
244  return telegram_.GetNoArena();
245 }
246 inline void GobyMessage::set_telegram(const ::std::string& value) {
247  set_has_telegram();
248  telegram_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
249  // @@protoc_insertion_point(field_set:goby.test.acomms.protobuf.GobyMessage.telegram)
250 }
251 #if LANG_CXX11
252 inline void GobyMessage::set_telegram(::std::string&& value) {
253  set_has_telegram();
254  telegram_.SetNoArena(
256  // @@protoc_insertion_point(field_set_rvalue:goby.test.acomms.protobuf.GobyMessage.telegram)
257 }
258 #endif
259 inline void GobyMessage::set_telegram(const char* value) {
260  GOOGLE_DCHECK(value != NULL);
261  set_has_telegram();
262  telegram_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
263  // @@protoc_insertion_point(field_set_char:goby.test.acomms.protobuf.GobyMessage.telegram)
264 }
265 inline void GobyMessage::set_telegram(const char* value, size_t size) {
266  set_has_telegram();
268  ::std::string(reinterpret_cast<const char*>(value), size));
269  // @@protoc_insertion_point(field_set_pointer:goby.test.acomms.protobuf.GobyMessage.telegram)
270 }
271 inline ::std::string* GobyMessage::mutable_telegram() {
272  set_has_telegram();
273  // @@protoc_insertion_point(field_mutable:goby.test.acomms.protobuf.GobyMessage.telegram)
274  return telegram_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
275 }
276 inline ::std::string* GobyMessage::release_telegram() {
277  // @@protoc_insertion_point(field_release:goby.test.acomms.protobuf.GobyMessage.telegram)
278  if (!has_telegram()) {
279  return NULL;
280  }
281  clear_has_telegram();
282  return telegram_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
283 }
284 inline void GobyMessage::set_allocated_telegram(::std::string* telegram) {
285  if (telegram != NULL) {
286  set_has_telegram();
287  } else {
288  clear_has_telegram();
289  }
290  telegram_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), telegram);
291  // @@protoc_insertion_point(field_set_allocated:goby.test.acomms.protobuf.GobyMessage.telegram)
292 }
293 
294 // required .goby.test.acomms.protobuf.Header header = 2 [(.dccl.field) = {
295 inline bool GobyMessage::has_header() const {
296  return (_has_bits_[0] & 0x00000002u) != 0;
297 }
298 inline void GobyMessage::set_has_header() {
299  _has_bits_[0] |= 0x00000002u;
300 }
301 inline void GobyMessage::clear_has_header() {
302  _has_bits_[0] &= ~0x00000002u;
303 }
304 inline const ::goby::test::acomms::protobuf::Header& GobyMessage::_internal_header() const {
305  return *header_;
306 }
307 inline const ::goby::test::acomms::protobuf::Header& GobyMessage::header() const {
308  const ::goby::test::acomms::protobuf::Header* p = header_;
309  // @@protoc_insertion_point(field_get:goby.test.acomms.protobuf.GobyMessage.header)
310  return p != NULL ? *p : *reinterpret_cast<const ::goby::test::acomms::protobuf::Header*>(
312 }
313 inline ::goby::test::acomms::protobuf::Header* GobyMessage::release_header() {
314  // @@protoc_insertion_point(field_release:goby.test.acomms.protobuf.GobyMessage.header)
315  clear_has_header();
317  header_ = NULL;
318  return temp;
319 }
320 inline ::goby::test::acomms::protobuf::Header* GobyMessage::mutable_header() {
321  set_has_header();
322  if (header_ == NULL) {
323  auto* p = CreateMaybeMessage<::goby::test::acomms::protobuf::Header>(GetArenaNoVirtual());
324  header_ = p;
325  }
326  // @@protoc_insertion_point(field_mutable:goby.test.acomms.protobuf.GobyMessage.header)
327  return header_;
328 }
330  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
331  if (message_arena == NULL) {
332  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
333  }
334  if (header) {
335  ::google::protobuf::Arena* submessage_arena = NULL;
336  if (message_arena != submessage_arena) {
337  header = ::google::protobuf::internal::GetOwnedMessage(
338  message_arena, header, submessage_arena);
339  }
340  set_has_header();
341  } else {
342  clear_has_header();
343  }
344  header_ = header;
345  // @@protoc_insertion_point(field_set_allocated:goby.test.acomms.protobuf.GobyMessage.header)
346 }
347 
348 #ifdef __GNUC__
349  #pragma GCC diagnostic pop
350 #endif // __GNUC__
351 
352 // @@protoc_insertion_point(namespace_scope)
353 
354 } // namespace protobuf
355 } // namespace acomms
356 } // namespace test
357 } // namespace goby
358 
359 // @@protoc_insertion_point(global_scope)
360 
361 #endif // PROTOBUF_INCLUDED_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto
protobuf_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto::AddDescriptors
void AddDescriptors()
goby::test::acomms::protobuf::GobyMessage::mutable_unknown_fields
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: test.pb.h:107
protobuf_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto
Definition: test.pb.h:43
goby::test::acomms::protobuf::GobyMessage::DCCL_ID
@ DCCL_ID
Definition: test.pb.h:199
google::protobuf::internal::GetEmptyStringAlreadyInited
LIBPROTOBUF_EXPORTconst ::std::string & GetEmptyStringAlreadyInited()
Definition: message_lite.h:133
goby::test::acomms::protobuf::GobyMessage::InternalSerializeWithCachedSizesToArray
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic, ::google::protobuf::uint8 *target) const final
goby::test::acomms::protobuf::Header
Definition: header.pb.h:100
goby::test::acomms::protobuf::GobyMessage::kTelegramFieldNumber
static const int kTelegramFieldNumber
Definition: test.pb.h:175
goby::test::acomms::protobuf::GobyMessage::kIndexInFileMessages
static constexpr int kIndexInFileMessages
Definition: test.pb.h:119
goby::test::acomms::protobuf::_GobyMessage_default_instance_
GobyMessageDefaultTypeInternal _GobyMessage_default_instance_
Definition: test.pb.h:58
protobuf_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto::TableStruct::entries
static const ::google::protobuf::internal::ParseTableField entries[]
Definition: test.pb.h:46
goby
The global namespace for the Goby project.
Definition: acomms_constants.h:33
goby::test::acomms::protobuf::GobyMessage::New
GobyMessage * New(::google::protobuf::Arena *arena) const final
Definition: test.pb.h:133
header.pb.h
goby::test::acomms::protobuf::GobyMessage::set_allocated_telegram
void set_allocated_telegram(::std::string *telegram)
Definition: test.pb.h:284
goby::test::acomms::protobuf::GobyMessage::IsInitialized
bool IsInitialized() const final
google::protobuf::MessageLite
Definition: message_lite.h:164
goby::test::acomms::protobuf::GobyMessage::GetMetadata
::google::protobuf::Metadata GetMetadata() const final
goby::test::acomms::protobuf::GobyMessage::telegram
const ::std::string & telegram() const
Definition: test.pb.h:242
goby::test::acomms::protobuf::GobyMessage::release_header
::goby::test::acomms::protobuf::Header * release_header()
Definition: test.pb.h:313
google::protobuf::Arena
Definition: arena.h:244
goby::test::acomms::protobuf::GobyMessage
Definition: test.pb.h:78
protobuf_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto::TableStruct::aux
static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
Definition: test.pb.h:47
protobuf_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto::TableStruct::offsets
static const ::google::protobuf::uint32 offsets[]
Definition: test.pb.h:51
protobuf_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto::TableStruct
Definition: test.pb.h:45
goby::test::acomms::protobuf::GobyMessage::GobyMessage
GobyMessage()
goby::test::acomms::protobuf::GobyMessage::has_header
bool has_header() const
Definition: test.pb.h:295
goby::middleware::intervehicle::protobuf::_Header_default_instance_
HeaderDefaultTypeInternal _Header_default_instance_
goby::test::acomms::protobuf::GobyMessage::InitAsDefaultInstance
static void InitAsDefaultInstance()
goby::test::acomms::protobuf::GobyMessage::MergeFrom
void MergeFrom(const ::google::protobuf::Message &from) final
message.h
goby::test::acomms::protobuf::GobyMessage::descriptor
static const ::google::protobuf::Descriptor * descriptor()
goby::test::acomms::protobuf::GobyMessage::internal_default_instance
static const GobyMessage * internal_default_instance()
Definition: test.pb.h:115
protobuf_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto::TableStruct::schema
static const ::google::protobuf::internal::ParseTable schema[1]
Definition: test.pb.h:48
goby::test::acomms::protobuf::GobyMessage::~GobyMessage
virtual ~GobyMessage()
goby::test::acomms::protobuf::GobyMessage::Clear
void Clear() final
goby::uint32
std::uint32_t uint32
Definition: primitive_types.h:32
protobuf_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto::TableStruct::field_metadata
static const ::google::protobuf::internal::FieldMetadata field_metadata[]
Definition: test.pb.h:49
protobuf_goby_2ftest_2facomms_2fdccl3_2ftest_2eproto::TableStruct::serialization_table
static const ::google::protobuf::internal::SerializationTable serialization_table[]
Definition: test.pb.h:50
goby::test::acomms::protobuf::GobyMessage::mutable_header
::goby::test::acomms::protobuf::Header * mutable_header()
Definition: test.pb.h:320
goby::test::acomms::protobuf::GobyMessage::set_telegram
void set_telegram(const ::std::string &value)
Definition: test.pb.h:246
goby::test::acomms::protobuf::GobyMessage::mutable_telegram
::std::string * mutable_telegram()
Definition: test.pb.h:271
goby::test::acomms::protobuf::GobyMessage::SerializeWithCachedSizes
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const final
goby::test::acomms::protobuf::GobyMessage::operator=
GobyMessage & operator=(const GobyMessage &from)
Definition: test.pb.h:85
goby::test::acomms::protobuf::GobyMessage::kHeaderFieldNumber
static const int kHeaderFieldNumber
Definition: test.pb.h:190
goby::test::acomms::protobuf::GobyMessage::CopyFrom
void CopyFrom(const ::google::protobuf::Message &from) final
google::protobuf::Metadata
Definition: message.h:174
goby::test::acomms::protobuf::GobyMessage::has_telegram
bool has_telegram() const
Definition: test.pb.h:229
google::protobuf::Message
Definition: message.h:189
goby::test::acomms::protobuf::GobyMessage::unknown_fields
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: test.pb.h:104
goby::test::acomms::protobuf::GobyMessage::MergePartialFromCodedStream
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) final
goby::test::acomms::protobuf::GobyMessage::ByteSizeLong
size_t ByteSizeLong() const final
goby::test::acomms::protobuf::GobyMessage::clear_telegram
void clear_telegram()
Definition: test.pb.h:238
goby::test::acomms::protobuf::GobyMessage::New
GobyMessage * New() const final
Definition: test.pb.h:129
goby::test::acomms::protobuf::GobyMessage::GetCachedSize
int GetCachedSize() const final
Definition: test.pb.h:150
arena.h
goby::test::acomms::protobuf::GobyMessage::DCCL_MAX_BYTES
@ DCCL_MAX_BYTES
Definition: test.pb.h:199
goby::test::acomms::protobuf::GobyMessage::clear_header
void clear_header()
goby::test::acomms::protobuf::GobyMessage::Swap
void Swap(GobyMessage *other)
goby::test::acomms::protobuf::GobyMessage::default_instance
static const GobyMessage & default_instance()
goby::test::acomms::protobuf::GobyMessage::set_allocated_header
void set_allocated_header(::goby::test::acomms::protobuf::Header *header)
Definition: test.pb.h:329
goby::test::acomms::protobuf::GobyMessage::header
const ::goby::test::acomms::protobuf::Header & header() const
Definition: test.pb.h:307
option_extensions.pb.h
goby::test::acomms::protobuf::GobyMessage::swap
friend void swap(GobyMessage &a, GobyMessage &b)
Definition: test.pb.h:123
goby::test::acomms::protobuf::GobyMessage::DCCLParameters
DCCLParameters
Definition: test.pb.h:199
goby::test::acomms::protobuf::GobyMessage::release_telegram
::std::string * release_telegram()
Definition: test.pb.h:276
google
Definition: dccl.h:57