Goby3 3.2.3
2025.05.13
Loading...
Searching...
No Matches
serializer_transporter.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: goby/middleware/protobuf/serializer_transporter.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fserializer_5ftransporter_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fserializer_5ftransporter_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/generated_enum_reflection.h>
33#include <google/protobuf/unknown_field_set.h>
34#include "dccl/option_extensions.pb.h"
36#include <google/protobuf/descriptor.pb.h>
37#include <boost/units/quantity.hpp>
38#include <boost/units/absolute.hpp>
39#include <boost/units/dimensionless_type.hpp>
40#include <boost/units/make_scaled_unit.hpp>
41
42#include <boost/units/systems/si.hpp>
43// @@protoc_insertion_point(includes)
44#include <google/protobuf/port_def.inc>
45#define PROTOBUF_INTERNAL_EXPORT_goby_2fmiddleware_2fprotobuf_2fserializer_5ftransporter_2eproto
46PROTOBUF_NAMESPACE_OPEN
47namespace internal {
48class AnyMetadata;
49} // namespace internal
50PROTOBUF_NAMESPACE_CLOSE
51
52// Internal implementation detail -- do not use these members.
56extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fmiddleware_2fprotobuf_2fserializer_5ftransporter_2eproto;
57namespace goby {
58namespace middleware {
59namespace protobuf {
60class SerializerMetadataRequest;
61struct SerializerMetadataRequestDefaultTypeInternal;
62extern SerializerMetadataRequestDefaultTypeInternal _SerializerMetadataRequest_default_instance_;
63class SerializerProtobufMetadata;
64struct SerializerProtobufMetadataDefaultTypeInternal;
65extern SerializerProtobufMetadataDefaultTypeInternal _SerializerProtobufMetadata_default_instance_;
66class SerializerTransporterKey;
67struct SerializerTransporterKeyDefaultTypeInternal;
68extern SerializerTransporterKeyDefaultTypeInternal _SerializerTransporterKey_default_instance_;
69class SerializerTransporterMessage;
70struct SerializerTransporterMessageDefaultTypeInternal;
71extern SerializerTransporterMessageDefaultTypeInternal _SerializerTransporterMessage_default_instance_;
72} // namespace protobuf
73} // namespace middleware
74} // namespace goby
75PROTOBUF_NAMESPACE_OPEN
76template<> ::goby::middleware::protobuf::SerializerMetadataRequest* Arena::CreateMaybeMessage<::goby::middleware::protobuf::SerializerMetadataRequest>(Arena*);
77template<> ::goby::middleware::protobuf::SerializerProtobufMetadata* Arena::CreateMaybeMessage<::goby::middleware::protobuf::SerializerProtobufMetadata>(Arena*);
78template<> ::goby::middleware::protobuf::SerializerTransporterKey* Arena::CreateMaybeMessage<::goby::middleware::protobuf::SerializerTransporterKey>(Arena*);
79template<> ::goby::middleware::protobuf::SerializerTransporterMessage* Arena::CreateMaybeMessage<::goby::middleware::protobuf::SerializerTransporterMessage>(Arena*);
80PROTOBUF_NAMESPACE_CLOSE
81namespace goby {
82namespace middleware {
83namespace protobuf {
84
93
94const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SerializerMetadataRequest_Request_descriptor();
95template<typename T>
96inline const std::string& SerializerMetadataRequest_Request_Name(T enum_t_value) {
97 static_assert(::std::is_same<T, SerializerMetadataRequest_Request>::value ||
98 ::std::is_integral<T>::value,
99 "Incorrect type passed to function SerializerMetadataRequest_Request_Name.");
100 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
102}
104 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SerializerMetadataRequest_Request* value) {
105 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<SerializerMetadataRequest_Request>(
107}
108// ===================================================================
109
111 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.middleware.protobuf.SerializerProtobufMetadata) */ {
112 public:
115 explicit PROTOBUF_CONSTEXPR SerializerProtobufMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
116
120 *this = ::std::move(from);
121 }
122
124 CopyFrom(from);
125 return *this;
126 }
128 if (this == &from) return *this;
129 if (GetOwningArena() == from.GetOwningArena()
130 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
131 && GetOwningArena() != nullptr
132 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
133 ) {
134 InternalSwap(&from);
135 } else {
136 CopyFrom(from);
137 }
138 return *this;
139 }
140
141 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
142 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
143 }
144 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
145 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
146 }
147
148 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
149 return GetDescriptor();
150 }
151 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
152 return default_instance().GetMetadata().descriptor;
153 }
154 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
155 return default_instance().GetMetadata().reflection;
156 }
164 static constexpr int kIndexInFileMessages =
165 0;
166
168 a.Swap(&b);
169 }
170 inline void Swap(SerializerProtobufMetadata* other) {
171 if (other == this) return;
172 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
173 if (GetOwningArena() != nullptr &&
174 GetOwningArena() == other->GetOwningArena()) {
175 #else // PROTOBUF_FORCE_COPY_IN_SWAP
176 if (GetOwningArena() == other->GetOwningArena()) {
177 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
178 InternalSwap(other);
179 } else {
180 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
181 }
182 }
184 if (other == this) return;
185 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
186 InternalSwap(other);
187 }
188
189 // implements Message ----------------------------------------------
190
191 SerializerProtobufMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
192 return CreateMaybeMessage<SerializerProtobufMetadata>(arena);
193 }
194 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
196 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
198 SerializerProtobufMetadata::MergeImpl(*this, from);
199 }
200 private:
201 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
202 public:
203 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
204 bool IsInitialized() const final;
205
206 size_t ByteSizeLong() const final;
207 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
209 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
210 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
211
212 private:
213 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
214 void SharedDtor();
215 void SetCachedSize(int size) const final;
216 void InternalSwap(SerializerProtobufMetadata* other);
217
218 private:
219 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
220 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
221 return "goby.middleware.protobuf.SerializerProtobufMetadata";
222 }
223 protected:
224 explicit SerializerProtobufMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena,
225 bool is_message_owned = false);
226 public:
227
228 static const ClassData _class_data_;
229 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
230
231 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
232
233 // nested types ----------------------------------------------------
234
235 // accessors -------------------------------------------------------
236
237 enum : int {
240 };
241 // repeated .google.protobuf.FileDescriptorProto file_descriptor = 2 [(.dccl.field) = {
242 int file_descriptor_size() const;
243 private:
244 int _internal_file_descriptor_size() const;
245 public:
247 ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* mutable_file_descriptor(int index);
248 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto >*
250 private:
251 const ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto& _internal_file_descriptor(int index) const;
252 ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* _internal_add_file_descriptor();
253 public:
254 const ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto& file_descriptor(int index) const;
255 ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* add_file_descriptor();
256 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto >&
257 file_descriptor() const;
258
259 // optional string protobuf_name = 1 [(.dccl.field) = {
260 bool has_protobuf_name() const;
261 private:
262 bool _internal_has_protobuf_name() const;
263 public:
264 void clear_protobuf_name();
265 const std::string& protobuf_name() const;
266 template <typename ArgT0 = const std::string&, typename... ArgT>
267 void set_protobuf_name(ArgT0&& arg0, ArgT... args);
268 std::string* mutable_protobuf_name();
269 PROTOBUF_NODISCARD std::string* release_protobuf_name();
271 private:
272 const std::string& _internal_protobuf_name() const;
273 inline PROTOBUF_ALWAYS_INLINE void _internal_set_protobuf_name(const std::string& value);
274 std::string* _internal_mutable_protobuf_name();
275 public:
276
277 // @@protoc_insertion_point(class_scope:goby.middleware.protobuf.SerializerProtobufMetadata)
278 private:
279 class _Internal;
280
281 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
282 typedef void InternalArenaConstructable_;
283 typedef void DestructorSkippable_;
284 struct Impl_ {
285 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
286 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
287 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto > file_descriptor_;
288 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr protobuf_name_;
289 };
290 union { Impl_ _impl_; };
291 friend struct ::TableStruct_goby_2fmiddleware_2fprotobuf_2fserializer_5ftransporter_2eproto;
292};
293// -------------------------------------------------------------------
294
296 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.middleware.protobuf.SerializerTransporterKey) */ {
297 public:
300 explicit PROTOBUF_CONSTEXPR SerializerTransporterKey(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
301
305 *this = ::std::move(from);
306 }
307
309 CopyFrom(from);
310 return *this;
311 }
313 if (this == &from) return *this;
314 if (GetOwningArena() == from.GetOwningArena()
315 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
316 && GetOwningArena() != nullptr
317 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
318 ) {
319 InternalSwap(&from);
320 } else {
321 CopyFrom(from);
322 }
323 return *this;
324 }
325
326 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
327 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
328 }
329 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
330 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
331 }
332
333 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
334 return GetDescriptor();
335 }
336 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
337 return default_instance().GetMetadata().descriptor;
338 }
339 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
340 return default_instance().GetMetadata().reflection;
341 }
343 return *internal_default_instance();
344 }
346 return reinterpret_cast<const SerializerTransporterKey*>(
348 }
349 static constexpr int kIndexInFileMessages =
350 1;
351
353 a.Swap(&b);
354 }
355 inline void Swap(SerializerTransporterKey* other) {
356 if (other == this) return;
357 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
358 if (GetOwningArena() != nullptr &&
359 GetOwningArena() == other->GetOwningArena()) {
360 #else // PROTOBUF_FORCE_COPY_IN_SWAP
361 if (GetOwningArena() == other->GetOwningArena()) {
362 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
363 InternalSwap(other);
364 } else {
365 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
366 }
367 }
369 if (other == this) return;
370 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
371 InternalSwap(other);
372 }
373
374 // implements Message ----------------------------------------------
375
376 SerializerTransporterKey* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
377 return CreateMaybeMessage<SerializerTransporterKey>(arena);
378 }
379 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
381 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
383 SerializerTransporterKey::MergeImpl(*this, from);
384 }
385 private:
386 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
387 public:
388 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
389 bool IsInitialized() const final;
390
391 size_t ByteSizeLong() const final;
392 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
393 uint8_t* _InternalSerialize(
394 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
395 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
396
397 private:
398 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
399 void SharedDtor();
400 void SetCachedSize(int size) const final;
401 void InternalSwap(SerializerTransporterKey* other);
402
403 private:
404 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
405 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
406 return "goby.middleware.protobuf.SerializerTransporterKey";
407 }
408 protected:
409 explicit SerializerTransporterKey(::PROTOBUF_NAMESPACE_ID::Arena* arena,
410 bool is_message_owned = false);
411 public:
412
413 static const ClassData _class_data_;
414 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
415
416 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
417
418 // nested types ----------------------------------------------------
419
420 // accessors -------------------------------------------------------
421
422 enum : int {
423 kTypeFieldNumber = 2,
424 kGroupFieldNumber = 3,
425 kCfgFieldNumber = 10,
426 kMetadataFieldNumber = 20,
427 kMarshallingSchemeFieldNumber = 1,
428 kGroupNumericFieldNumber = 4,
429 kSerializeTimeFieldNumber = 5,
430 };
431 // required string type = 2;
432 bool has_type() const;
433 private:
434 bool _internal_has_type() const;
435 public:
436 void clear_type();
437 const std::string& type() const;
438 template <typename ArgT0 = const std::string&, typename... ArgT>
439 void set_type(ArgT0&& arg0, ArgT... args);
440 std::string* mutable_type();
441 PROTOBUF_NODISCARD std::string* release_type();
442 void set_allocated_type(std::string* type);
443 private:
444 const std::string& _internal_type() const;
445 inline PROTOBUF_ALWAYS_INLINE void _internal_set_type(const std::string& value);
446 std::string* _internal_mutable_type();
447 public:
448
449 // required string group = 3;
450 bool has_group() const;
451 private:
452 bool _internal_has_group() const;
453 public:
454 void clear_group();
455 const std::string& group() const;
456 template <typename ArgT0 = const std::string&, typename... ArgT>
457 void set_group(ArgT0&& arg0, ArgT... args);
458 std::string* mutable_group();
459 PROTOBUF_NODISCARD std::string* release_group();
460 void set_allocated_group(std::string* group);
461 private:
462 const std::string& _internal_group() const;
463 inline PROTOBUF_ALWAYS_INLINE void _internal_set_group(const std::string& value);
464 std::string* _internal_mutable_group();
465 public:
466
467 // optional .goby.middleware.protobuf.TransporterConfig cfg = 10;
468 bool has_cfg() const;
469 private:
470 bool _internal_has_cfg() const;
471 public:
472 void clear_cfg();
473 const ::goby::middleware::protobuf::TransporterConfig& cfg() const;
474 PROTOBUF_NODISCARD ::goby::middleware::protobuf::TransporterConfig* release_cfg();
476 void set_allocated_cfg(::goby::middleware::protobuf::TransporterConfig* cfg);
477 private:
478 const ::goby::middleware::protobuf::TransporterConfig& _internal_cfg() const;
480 public:
481 void unsafe_arena_set_allocated_cfg(
483 ::goby::middleware::protobuf::TransporterConfig* unsafe_arena_release_cfg();
484
485 // optional .goby.middleware.protobuf.SerializerProtobufMetadata metadata = 20;
486 bool has_metadata() const;
487 private:
488 bool _internal_has_metadata() const;
489 public:
490 void clear_metadata();
491 const ::goby::middleware::protobuf::SerializerProtobufMetadata& metadata() const;
492 PROTOBUF_NODISCARD ::goby::middleware::protobuf::SerializerProtobufMetadata* release_metadata();
494 void set_allocated_metadata(::goby::middleware::protobuf::SerializerProtobufMetadata* metadata);
495 private:
496 const ::goby::middleware::protobuf::SerializerProtobufMetadata& _internal_metadata() const;
498 public:
499 void unsafe_arena_set_allocated_metadata(
501 ::goby::middleware::protobuf::SerializerProtobufMetadata* unsafe_arena_release_metadata();
502
503 // required int32 marshalling_scheme = 1;
504 bool has_marshalling_scheme() const;
505 private:
506 bool _internal_has_marshalling_scheme() const;
507 public:
508 void clear_marshalling_scheme();
509 int32_t marshalling_scheme() const;
510 void set_marshalling_scheme(int32_t value);
511 private:
512 int32_t _internal_marshalling_scheme() const;
513 void _internal_set_marshalling_scheme(int32_t value);
514 public:
515
516 // optional uint32 group_numeric = 4;
517 bool has_group_numeric() const;
518 private:
519 bool _internal_has_group_numeric() const;
520 public:
521 void clear_group_numeric();
522 uint32_t group_numeric() const;
523 void set_group_numeric(uint32_t value);
524 private:
525 uint32_t _internal_group_numeric() const;
526 void _internal_set_group_numeric(uint32_t value);
527 public:
528
529 // optional uint64 serialize_time = 5 [(.dccl.field) = {
530 bool has_serialize_time() const;
531 private:
532 bool _internal_has_serialize_time() const;
533 public:
534 void clear_serialize_time();
535 uint64_t serialize_time() const;
536 void set_serialize_time(uint64_t value);
537 private:
538 uint64_t _internal_serialize_time() const;
539 void _internal_set_serialize_time(uint64_t value);
540 public:
541
542 typedef boost::units::derived_dimension< boost::units::time_base_dimension,1 >::type serialize_time_dimension;
543
544 typedef boost::units::make_scaled_unit<boost::units::unit<serialize_time_dimension,boost::units::si::system> , boost::units::scale<10, boost::units::static_rational<-6> > >::type serialize_time_unit;
545
546 template<typename Quantity >
547 void set_serialize_time_with_units(Quantity value_w_units)
548 { set_serialize_time(boost::units::quantity<serialize_time_unit,google::protobuf::uint64 >(value_w_units).value() ); };
549
550 template<typename Quantity >
552 { return Quantity(serialize_time() * serialize_time_unit()); };
553
554 boost::units::quantity< serialize_time_unit,google::protobuf::uint64 > serialize_time_with_units() const
555 { return serialize_time_with_units<boost::units::quantity< serialize_time_unit,google::protobuf::uint64 > >(); };
556
557 // @@protoc_insertion_point(class_scope:goby.middleware.protobuf.SerializerTransporterKey)
558 private:
559 class _Internal;
560
561 // helper for ByteSizeLong()
562 size_t RequiredFieldsByteSizeFallback() const;
563
564 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
565 typedef void InternalArenaConstructable_;
566 typedef void DestructorSkippable_;
567 struct Impl_ {
568 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
569 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
570 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_;
571 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr group_;
574 int32_t marshalling_scheme_;
575 uint32_t group_numeric_;
576 uint64_t serialize_time_;
577 };
578 union { Impl_ _impl_; };
579 friend struct ::TableStruct_goby_2fmiddleware_2fprotobuf_2fserializer_5ftransporter_2eproto;
580};
581// -------------------------------------------------------------------
582
584 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.middleware.protobuf.SerializerTransporterMessage) */ {
585 public:
588 explicit PROTOBUF_CONSTEXPR SerializerTransporterMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
589
593 *this = ::std::move(from);
594 }
595
597 CopyFrom(from);
598 return *this;
599 }
601 if (this == &from) return *this;
602 if (GetOwningArena() == from.GetOwningArena()
603 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
604 && GetOwningArena() != nullptr
605 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
606 ) {
607 InternalSwap(&from);
608 } else {
609 CopyFrom(from);
610 }
611 return *this;
612 }
613
614 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
615 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
616 }
617 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
618 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
619 }
620
621 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
622 return GetDescriptor();
623 }
624 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
625 return default_instance().GetMetadata().descriptor;
626 }
627 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
628 return default_instance().GetMetadata().reflection;
629 }
631 return *internal_default_instance();
632 }
637 static constexpr int kIndexInFileMessages =
638 2;
639
643 inline void Swap(SerializerTransporterMessage* other) {
644 if (other == this) return;
645 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
646 if (GetOwningArena() != nullptr &&
647 GetOwningArena() == other->GetOwningArena()) {
648 #else // PROTOBUF_FORCE_COPY_IN_SWAP
649 if (GetOwningArena() == other->GetOwningArena()) {
650 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
651 InternalSwap(other);
652 } else {
653 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
654 }
655 }
657 if (other == this) return;
658 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
659 InternalSwap(other);
660 }
661
662 // implements Message ----------------------------------------------
663
664 SerializerTransporterMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
665 return CreateMaybeMessage<SerializerTransporterMessage>(arena);
666 }
667 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
669 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
671 SerializerTransporterMessage::MergeImpl(*this, from);
672 }
673 private:
674 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
675 public:
676 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
677 bool IsInitialized() const final;
678
679 size_t ByteSizeLong() const final;
680 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
681 uint8_t* _InternalSerialize(
682 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
683 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
684
685 private:
686 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
687 void SharedDtor();
688 void SetCachedSize(int size) const final;
689 void InternalSwap(SerializerTransporterMessage* other);
690
691 private:
692 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
693 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
694 return "goby.middleware.protobuf.SerializerTransporterMessage";
695 }
696 protected:
697 explicit SerializerTransporterMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
698 bool is_message_owned = false);
699 public:
700
701 static const ClassData _class_data_;
702 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
703
704 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
705
706 // nested types ----------------------------------------------------
707
708 // accessors -------------------------------------------------------
709
710 enum : int {
711 kDataFieldNumber = 4,
712 kKeyFieldNumber = 1,
713 };
714 // optional bytes data = 4;
715 bool has_data() const;
716 private:
717 bool _internal_has_data() const;
718 public:
719 void clear_data();
720 const std::string& data() const;
721 template <typename ArgT0 = const std::string&, typename... ArgT>
722 void set_data(ArgT0&& arg0, ArgT... args);
723 std::string* mutable_data();
724 PROTOBUF_NODISCARD std::string* release_data();
725 void set_allocated_data(std::string* data);
726 private:
727 const std::string& _internal_data() const;
728 inline PROTOBUF_ALWAYS_INLINE void _internal_set_data(const std::string& value);
729 std::string* _internal_mutable_data();
730 public:
731
732 // required .goby.middleware.protobuf.SerializerTransporterKey key = 1;
733 bool has_key() const;
734 private:
735 bool _internal_has_key() const;
736 public:
737 void clear_key();
738 const ::goby::middleware::protobuf::SerializerTransporterKey& key() const;
739 PROTOBUF_NODISCARD ::goby::middleware::protobuf::SerializerTransporterKey* release_key();
742 private:
743 const ::goby::middleware::protobuf::SerializerTransporterKey& _internal_key() const;
745 public:
746 void unsafe_arena_set_allocated_key(
749
750 // @@protoc_insertion_point(class_scope:goby.middleware.protobuf.SerializerTransporterMessage)
751 private:
752 class _Internal;
753
754 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
755 typedef void InternalArenaConstructable_;
756 typedef void DestructorSkippable_;
757 struct Impl_ {
758 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
759 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
760 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_;
762 };
763 union { Impl_ _impl_; };
764 friend struct ::TableStruct_goby_2fmiddleware_2fprotobuf_2fserializer_5ftransporter_2eproto;
765};
766// -------------------------------------------------------------------
767
769 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.middleware.protobuf.SerializerMetadataRequest) */ {
770 public:
773 explicit PROTOBUF_CONSTEXPR SerializerMetadataRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
774
778 *this = ::std::move(from);
779 }
780
782 CopyFrom(from);
783 return *this;
784 }
786 if (this == &from) return *this;
787 if (GetOwningArena() == from.GetOwningArena()
788 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
789 && GetOwningArena() != nullptr
790 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
791 ) {
792 InternalSwap(&from);
793 } else {
794 CopyFrom(from);
795 }
796 return *this;
797 }
798
799 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
800 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
801 }
802 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
803 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
804 }
805
806 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
807 return GetDescriptor();
808 }
809 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
810 return default_instance().GetMetadata().descriptor;
811 }
812 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
813 return default_instance().GetMetadata().reflection;
814 }
816 return *internal_default_instance();
817 }
822 static constexpr int kIndexInFileMessages =
823 3;
824
826 a.Swap(&b);
827 }
828 inline void Swap(SerializerMetadataRequest* other) {
829 if (other == this) return;
830 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
831 if (GetOwningArena() != nullptr &&
832 GetOwningArena() == other->GetOwningArena()) {
833 #else // PROTOBUF_FORCE_COPY_IN_SWAP
834 if (GetOwningArena() == other->GetOwningArena()) {
835 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
836 InternalSwap(other);
837 } else {
838 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
839 }
840 }
842 if (other == this) return;
843 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
844 InternalSwap(other);
845 }
846
847 // implements Message ----------------------------------------------
848
849 SerializerMetadataRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
850 return CreateMaybeMessage<SerializerMetadataRequest>(arena);
851 }
852 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
854 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
856 SerializerMetadataRequest::MergeImpl(*this, from);
857 }
858 private:
859 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
860 public:
861 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
862 bool IsInitialized() const final;
863
864 size_t ByteSizeLong() const final;
865 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
866 uint8_t* _InternalSerialize(
867 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
868 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
869
870 private:
871 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
872 void SharedDtor();
873 void SetCachedSize(int size) const final;
874 void InternalSwap(SerializerMetadataRequest* other);
875
876 private:
877 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
878 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
879 return "goby.middleware.protobuf.SerializerMetadataRequest";
880 }
881 protected:
882 explicit SerializerMetadataRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
883 bool is_message_owned = false);
884 public:
885
886 static const ClassData _class_data_;
887 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
888
889 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
890
891 // nested types ----------------------------------------------------
892
894 static constexpr Request METADATA_INCLUDE =
895 SerializerMetadataRequest_Request_METADATA_INCLUDE;
896 static constexpr Request METADATA_EXCLUDE =
897 SerializerMetadataRequest_Request_METADATA_EXCLUDE;
898 static inline bool Request_IsValid(int value) {
900 }
901 static constexpr Request Request_MIN =
903 static constexpr Request Request_MAX =
905 static constexpr int Request_ARRAYSIZE =
907 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
911 template<typename T>
912 static inline const std::string& Request_Name(T enum_t_value) {
913 static_assert(::std::is_same<T, Request>::value ||
914 ::std::is_integral<T>::value,
915 "Incorrect type passed to function Request_Name.");
916 return SerializerMetadataRequest_Request_Name(enum_t_value);
917 }
918 static inline bool Request_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
919 Request* value) {
920 return SerializerMetadataRequest_Request_Parse(name, value);
921 }
922
923 // accessors -------------------------------------------------------
924
925 enum : int {
926 kKeyFieldNumber = 1,
927 kRequestFieldNumber = 2,
928 };
929 // required .goby.middleware.protobuf.SerializerTransporterKey key = 1;
930 bool has_key() const;
931 private:
932 bool _internal_has_key() const;
933 public:
934 void clear_key();
935 const ::goby::middleware::protobuf::SerializerTransporterKey& key() const;
936 PROTOBUF_NODISCARD ::goby::middleware::protobuf::SerializerTransporterKey* release_key();
939 private:
940 const ::goby::middleware::protobuf::SerializerTransporterKey& _internal_key() const;
942 public:
943 void unsafe_arena_set_allocated_key(
946
947 // required .goby.middleware.protobuf.SerializerMetadataRequest.Request request = 2;
948 bool has_request() const;
949 private:
950 bool _internal_has_request() const;
951 public:
952 void clear_request();
955 private:
958 public:
959
960 // @@protoc_insertion_point(class_scope:goby.middleware.protobuf.SerializerMetadataRequest)
961 private:
962 class _Internal;
963
964 // helper for ByteSizeLong()
965 size_t RequiredFieldsByteSizeFallback() const;
966
967 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
968 typedef void InternalArenaConstructable_;
969 typedef void DestructorSkippable_;
970 struct Impl_ {
971 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
972 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
974 int request_;
975 };
976 union { Impl_ _impl_; };
977 friend struct ::TableStruct_goby_2fmiddleware_2fprotobuf_2fserializer_5ftransporter_2eproto;
978};
979// ===================================================================
980
981
982// ===================================================================
983
984#ifdef __GNUC__
985 #pragma GCC diagnostic push
986 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
987#endif // __GNUC__
988// SerializerProtobufMetadata
989
990// optional string protobuf_name = 1 [(.dccl.field) = {
991inline bool SerializerProtobufMetadata::_internal_has_protobuf_name() const {
992 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
993 return value;
994}
995inline bool SerializerProtobufMetadata::has_protobuf_name() const {
996 return _internal_has_protobuf_name();
997}
998inline void SerializerProtobufMetadata::clear_protobuf_name() {
999 _impl_.protobuf_name_.ClearToEmpty();
1000 _impl_._has_bits_[0] &= ~0x00000001u;
1001}
1002inline const std::string& SerializerProtobufMetadata::protobuf_name() const {
1003 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.SerializerProtobufMetadata.protobuf_name)
1004 return _internal_protobuf_name();
1005}
1006template <typename ArgT0, typename... ArgT>
1007inline PROTOBUF_ALWAYS_INLINE
1008void SerializerProtobufMetadata::set_protobuf_name(ArgT0&& arg0, ArgT... args) {
1009 _impl_._has_bits_[0] |= 0x00000001u;
1010 _impl_.protobuf_name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
1011 // @@protoc_insertion_point(field_set:goby.middleware.protobuf.SerializerProtobufMetadata.protobuf_name)
1012}
1013inline std::string* SerializerProtobufMetadata::mutable_protobuf_name() {
1014 std::string* _s = _internal_mutable_protobuf_name();
1015 // @@protoc_insertion_point(field_mutable:goby.middleware.protobuf.SerializerProtobufMetadata.protobuf_name)
1016 return _s;
1017}
1018inline const std::string& SerializerProtobufMetadata::_internal_protobuf_name() const {
1019 return _impl_.protobuf_name_.Get();
1020}
1021inline void SerializerProtobufMetadata::_internal_set_protobuf_name(const std::string& value) {
1022 _impl_._has_bits_[0] |= 0x00000001u;
1023 _impl_.protobuf_name_.Set(value, GetArenaForAllocation());
1024}
1025inline std::string* SerializerProtobufMetadata::_internal_mutable_protobuf_name() {
1026 _impl_._has_bits_[0] |= 0x00000001u;
1027 return _impl_.protobuf_name_.Mutable(GetArenaForAllocation());
1028}
1029inline std::string* SerializerProtobufMetadata::release_protobuf_name() {
1030 // @@protoc_insertion_point(field_release:goby.middleware.protobuf.SerializerProtobufMetadata.protobuf_name)
1031 if (!_internal_has_protobuf_name()) {
1032 return nullptr;
1033 }
1034 _impl_._has_bits_[0] &= ~0x00000001u;
1035 auto* p = _impl_.protobuf_name_.Release();
1036#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1037 if (_impl_.protobuf_name_.IsDefault()) {
1038 _impl_.protobuf_name_.Set("", GetArenaForAllocation());
1039 }
1040#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1041 return p;
1042}
1043inline void SerializerProtobufMetadata::set_allocated_protobuf_name(std::string* protobuf_name) {
1044 if (protobuf_name != nullptr) {
1045 _impl_._has_bits_[0] |= 0x00000001u;
1046 } else {
1047 _impl_._has_bits_[0] &= ~0x00000001u;
1048 }
1049 _impl_.protobuf_name_.SetAllocated(protobuf_name, GetArenaForAllocation());
1050#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1051 if (_impl_.protobuf_name_.IsDefault()) {
1052 _impl_.protobuf_name_.Set("", GetArenaForAllocation());
1053 }
1054#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1055 // @@protoc_insertion_point(field_set_allocated:goby.middleware.protobuf.SerializerProtobufMetadata.protobuf_name)
1056}
1057
1058// repeated .google.protobuf.FileDescriptorProto file_descriptor = 2 [(.dccl.field) = {
1059inline int SerializerProtobufMetadata::_internal_file_descriptor_size() const {
1060 return _impl_.file_descriptor_.size();
1061}
1062inline int SerializerProtobufMetadata::file_descriptor_size() const {
1063 return _internal_file_descriptor_size();
1064}
1065inline ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* SerializerProtobufMetadata::mutable_file_descriptor(int index) {
1066 // @@protoc_insertion_point(field_mutable:goby.middleware.protobuf.SerializerProtobufMetadata.file_descriptor)
1067 return _impl_.file_descriptor_.Mutable(index);
1068}
1069inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto >*
1070SerializerProtobufMetadata::mutable_file_descriptor() {
1071 // @@protoc_insertion_point(field_mutable_list:goby.middleware.protobuf.SerializerProtobufMetadata.file_descriptor)
1072 return &_impl_.file_descriptor_;
1073}
1074inline const ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto& SerializerProtobufMetadata::_internal_file_descriptor(int index) const {
1075 return _impl_.file_descriptor_.Get(index);
1076}
1077inline const ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto& SerializerProtobufMetadata::file_descriptor(int index) const {
1078 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.SerializerProtobufMetadata.file_descriptor)
1079 return _internal_file_descriptor(index);
1080}
1081inline ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* SerializerProtobufMetadata::_internal_add_file_descriptor() {
1082 return _impl_.file_descriptor_.Add();
1083}
1084inline ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* SerializerProtobufMetadata::add_file_descriptor() {
1085 ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* _add = _internal_add_file_descriptor();
1086 // @@protoc_insertion_point(field_add:goby.middleware.protobuf.SerializerProtobufMetadata.file_descriptor)
1087 return _add;
1088}
1089inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto >&
1090SerializerProtobufMetadata::file_descriptor() const {
1091 // @@protoc_insertion_point(field_list:goby.middleware.protobuf.SerializerProtobufMetadata.file_descriptor)
1092 return _impl_.file_descriptor_;
1093}
1094
1095// -------------------------------------------------------------------
1096
1097// SerializerTransporterKey
1098
1099// required int32 marshalling_scheme = 1;
1100inline bool SerializerTransporterKey::_internal_has_marshalling_scheme() const {
1101 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
1102 return value;
1103}
1104inline bool SerializerTransporterKey::has_marshalling_scheme() const {
1105 return _internal_has_marshalling_scheme();
1106}
1107inline void SerializerTransporterKey::clear_marshalling_scheme() {
1108 _impl_.marshalling_scheme_ = 0;
1109 _impl_._has_bits_[0] &= ~0x00000010u;
1110}
1111inline int32_t SerializerTransporterKey::_internal_marshalling_scheme() const {
1112 return _impl_.marshalling_scheme_;
1113}
1114inline int32_t SerializerTransporterKey::marshalling_scheme() const {
1115 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.SerializerTransporterKey.marshalling_scheme)
1116 return _internal_marshalling_scheme();
1117}
1118inline void SerializerTransporterKey::_internal_set_marshalling_scheme(int32_t value) {
1119 _impl_._has_bits_[0] |= 0x00000010u;
1120 _impl_.marshalling_scheme_ = value;
1121}
1122inline void SerializerTransporterKey::set_marshalling_scheme(int32_t value) {
1123 _internal_set_marshalling_scheme(value);
1124 // @@protoc_insertion_point(field_set:goby.middleware.protobuf.SerializerTransporterKey.marshalling_scheme)
1125}
1126
1127// required string type = 2;
1128inline bool SerializerTransporterKey::_internal_has_type() const {
1129 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
1130 return value;
1131}
1132inline bool SerializerTransporterKey::has_type() const {
1133 return _internal_has_type();
1134}
1135inline void SerializerTransporterKey::clear_type() {
1136 _impl_.type_.ClearToEmpty();
1137 _impl_._has_bits_[0] &= ~0x00000001u;
1138}
1139inline const std::string& SerializerTransporterKey::type() const {
1140 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.SerializerTransporterKey.type)
1141 return _internal_type();
1142}
1143template <typename ArgT0, typename... ArgT>
1144inline PROTOBUF_ALWAYS_INLINE
1145void SerializerTransporterKey::set_type(ArgT0&& arg0, ArgT... args) {
1146 _impl_._has_bits_[0] |= 0x00000001u;
1147 _impl_.type_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
1148 // @@protoc_insertion_point(field_set:goby.middleware.protobuf.SerializerTransporterKey.type)
1149}
1150inline std::string* SerializerTransporterKey::mutable_type() {
1151 std::string* _s = _internal_mutable_type();
1152 // @@protoc_insertion_point(field_mutable:goby.middleware.protobuf.SerializerTransporterKey.type)
1153 return _s;
1154}
1155inline const std::string& SerializerTransporterKey::_internal_type() const {
1156 return _impl_.type_.Get();
1157}
1158inline void SerializerTransporterKey::_internal_set_type(const std::string& value) {
1159 _impl_._has_bits_[0] |= 0x00000001u;
1160 _impl_.type_.Set(value, GetArenaForAllocation());
1161}
1162inline std::string* SerializerTransporterKey::_internal_mutable_type() {
1163 _impl_._has_bits_[0] |= 0x00000001u;
1164 return _impl_.type_.Mutable(GetArenaForAllocation());
1165}
1166inline std::string* SerializerTransporterKey::release_type() {
1167 // @@protoc_insertion_point(field_release:goby.middleware.protobuf.SerializerTransporterKey.type)
1168 if (!_internal_has_type()) {
1169 return nullptr;
1170 }
1171 _impl_._has_bits_[0] &= ~0x00000001u;
1172 auto* p = _impl_.type_.Release();
1173#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1174 if (_impl_.type_.IsDefault()) {
1175 _impl_.type_.Set("", GetArenaForAllocation());
1176 }
1177#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1178 return p;
1179}
1180inline void SerializerTransporterKey::set_allocated_type(std::string* type) {
1181 if (type != nullptr) {
1182 _impl_._has_bits_[0] |= 0x00000001u;
1183 } else {
1184 _impl_._has_bits_[0] &= ~0x00000001u;
1185 }
1186 _impl_.type_.SetAllocated(type, GetArenaForAllocation());
1187#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1188 if (_impl_.type_.IsDefault()) {
1189 _impl_.type_.Set("", GetArenaForAllocation());
1190 }
1191#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1192 // @@protoc_insertion_point(field_set_allocated:goby.middleware.protobuf.SerializerTransporterKey.type)
1193}
1194
1195// required string group = 3;
1196inline bool SerializerTransporterKey::_internal_has_group() const {
1197 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
1198 return value;
1199}
1200inline bool SerializerTransporterKey::has_group() const {
1201 return _internal_has_group();
1202}
1203inline void SerializerTransporterKey::clear_group() {
1204 _impl_.group_.ClearToEmpty();
1205 _impl_._has_bits_[0] &= ~0x00000002u;
1206}
1207inline const std::string& SerializerTransporterKey::group() const {
1208 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.SerializerTransporterKey.group)
1209 return _internal_group();
1210}
1211template <typename ArgT0, typename... ArgT>
1212inline PROTOBUF_ALWAYS_INLINE
1213void SerializerTransporterKey::set_group(ArgT0&& arg0, ArgT... args) {
1214 _impl_._has_bits_[0] |= 0x00000002u;
1215 _impl_.group_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
1216 // @@protoc_insertion_point(field_set:goby.middleware.protobuf.SerializerTransporterKey.group)
1217}
1218inline std::string* SerializerTransporterKey::mutable_group() {
1219 std::string* _s = _internal_mutable_group();
1220 // @@protoc_insertion_point(field_mutable:goby.middleware.protobuf.SerializerTransporterKey.group)
1221 return _s;
1222}
1223inline const std::string& SerializerTransporterKey::_internal_group() const {
1224 return _impl_.group_.Get();
1225}
1226inline void SerializerTransporterKey::_internal_set_group(const std::string& value) {
1227 _impl_._has_bits_[0] |= 0x00000002u;
1228 _impl_.group_.Set(value, GetArenaForAllocation());
1229}
1230inline std::string* SerializerTransporterKey::_internal_mutable_group() {
1231 _impl_._has_bits_[0] |= 0x00000002u;
1232 return _impl_.group_.Mutable(GetArenaForAllocation());
1233}
1234inline std::string* SerializerTransporterKey::release_group() {
1235 // @@protoc_insertion_point(field_release:goby.middleware.protobuf.SerializerTransporterKey.group)
1236 if (!_internal_has_group()) {
1237 return nullptr;
1238 }
1239 _impl_._has_bits_[0] &= ~0x00000002u;
1240 auto* p = _impl_.group_.Release();
1241#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1242 if (_impl_.group_.IsDefault()) {
1243 _impl_.group_.Set("", GetArenaForAllocation());
1244 }
1245#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1246 return p;
1247}
1248inline void SerializerTransporterKey::set_allocated_group(std::string* group) {
1249 if (group != nullptr) {
1250 _impl_._has_bits_[0] |= 0x00000002u;
1251 } else {
1252 _impl_._has_bits_[0] &= ~0x00000002u;
1253 }
1254 _impl_.group_.SetAllocated(group, GetArenaForAllocation());
1255#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1256 if (_impl_.group_.IsDefault()) {
1257 _impl_.group_.Set("", GetArenaForAllocation());
1258 }
1259#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1260 // @@protoc_insertion_point(field_set_allocated:goby.middleware.protobuf.SerializerTransporterKey.group)
1261}
1262
1263// optional uint32 group_numeric = 4;
1264inline bool SerializerTransporterKey::_internal_has_group_numeric() const {
1265 bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
1266 return value;
1267}
1268inline bool SerializerTransporterKey::has_group_numeric() const {
1269 return _internal_has_group_numeric();
1270}
1271inline void SerializerTransporterKey::clear_group_numeric() {
1272 _impl_.group_numeric_ = 0u;
1273 _impl_._has_bits_[0] &= ~0x00000020u;
1274}
1275inline uint32_t SerializerTransporterKey::_internal_group_numeric() const {
1276 return _impl_.group_numeric_;
1277}
1278inline uint32_t SerializerTransporterKey::group_numeric() const {
1279 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.SerializerTransporterKey.group_numeric)
1280 return _internal_group_numeric();
1281}
1282inline void SerializerTransporterKey::_internal_set_group_numeric(uint32_t value) {
1283 _impl_._has_bits_[0] |= 0x00000020u;
1284 _impl_.group_numeric_ = value;
1285}
1286inline void SerializerTransporterKey::set_group_numeric(uint32_t value) {
1287 _internal_set_group_numeric(value);
1288 // @@protoc_insertion_point(field_set:goby.middleware.protobuf.SerializerTransporterKey.group_numeric)
1289}
1290
1291// optional uint64 serialize_time = 5 [(.dccl.field) = {
1292inline bool SerializerTransporterKey::_internal_has_serialize_time() const {
1293 bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0;
1294 return value;
1295}
1296inline bool SerializerTransporterKey::has_serialize_time() const {
1297 return _internal_has_serialize_time();
1298}
1299inline void SerializerTransporterKey::clear_serialize_time() {
1300 _impl_.serialize_time_ = uint64_t{0u};
1301 _impl_._has_bits_[0] &= ~0x00000040u;
1302}
1303inline uint64_t SerializerTransporterKey::_internal_serialize_time() const {
1304 return _impl_.serialize_time_;
1305}
1306inline uint64_t SerializerTransporterKey::serialize_time() const {
1307 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.SerializerTransporterKey.serialize_time)
1308 return _internal_serialize_time();
1309}
1310inline void SerializerTransporterKey::_internal_set_serialize_time(uint64_t value) {
1311 _impl_._has_bits_[0] |= 0x00000040u;
1312 _impl_.serialize_time_ = value;
1313}
1314inline void SerializerTransporterKey::set_serialize_time(uint64_t value) {
1315 _internal_set_serialize_time(value);
1316 // @@protoc_insertion_point(field_set:goby.middleware.protobuf.SerializerTransporterKey.serialize_time)
1317}
1318
1319// optional .goby.middleware.protobuf.TransporterConfig cfg = 10;
1320inline bool SerializerTransporterKey::_internal_has_cfg() const {
1321 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
1322 PROTOBUF_ASSUME(!value || _impl_.cfg_ != nullptr);
1323 return value;
1324}
1325inline bool SerializerTransporterKey::has_cfg() const {
1326 return _internal_has_cfg();
1327}
1328inline const ::goby::middleware::protobuf::TransporterConfig& SerializerTransporterKey::_internal_cfg() const {
1329 const ::goby::middleware::protobuf::TransporterConfig* p = _impl_.cfg_;
1330 return p != nullptr ? *p : reinterpret_cast<const ::goby::middleware::protobuf::TransporterConfig&>(
1332}
1333inline const ::goby::middleware::protobuf::TransporterConfig& SerializerTransporterKey::cfg() const {
1334 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.SerializerTransporterKey.cfg)
1335 return _internal_cfg();
1336}
1337inline void SerializerTransporterKey::unsafe_arena_set_allocated_cfg(
1339 if (GetArenaForAllocation() == nullptr) {
1340 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.cfg_);
1341 }
1342 _impl_.cfg_ = cfg;
1343 if (cfg) {
1344 _impl_._has_bits_[0] |= 0x00000004u;
1345 } else {
1346 _impl_._has_bits_[0] &= ~0x00000004u;
1347 }
1348 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.middleware.protobuf.SerializerTransporterKey.cfg)
1349}
1350inline ::goby::middleware::protobuf::TransporterConfig* SerializerTransporterKey::release_cfg() {
1351 _impl_._has_bits_[0] &= ~0x00000004u;
1353 _impl_.cfg_ = nullptr;
1354#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1355 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
1356 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1357 if (GetArenaForAllocation() == nullptr) { delete old; }
1358#else // PROTOBUF_FORCE_COPY_IN_RELEASE
1359 if (GetArenaForAllocation() != nullptr) {
1360 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1361 }
1362#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
1363 return temp;
1364}
1365inline ::goby::middleware::protobuf::TransporterConfig* SerializerTransporterKey::unsafe_arena_release_cfg() {
1366 // @@protoc_insertion_point(field_release:goby.middleware.protobuf.SerializerTransporterKey.cfg)
1367 _impl_._has_bits_[0] &= ~0x00000004u;
1369 _impl_.cfg_ = nullptr;
1370 return temp;
1371}
1372inline ::goby::middleware::protobuf::TransporterConfig* SerializerTransporterKey::_internal_mutable_cfg() {
1373 _impl_._has_bits_[0] |= 0x00000004u;
1374 if (_impl_.cfg_ == nullptr) {
1376 _impl_.cfg_ = p;
1377 }
1378 return _impl_.cfg_;
1379}
1380inline ::goby::middleware::protobuf::TransporterConfig* SerializerTransporterKey::mutable_cfg() {
1381 ::goby::middleware::protobuf::TransporterConfig* _msg = _internal_mutable_cfg();
1382 // @@protoc_insertion_point(field_mutable:goby.middleware.protobuf.SerializerTransporterKey.cfg)
1383 return _msg;
1384}
1385inline void SerializerTransporterKey::set_allocated_cfg(::goby::middleware::protobuf::TransporterConfig* cfg) {
1386 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1387 if (message_arena == nullptr) {
1388 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.cfg_);
1389 }
1390 if (cfg) {
1391 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1392 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
1393 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(cfg));
1394 if (message_arena != submessage_arena) {
1395 cfg = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1396 message_arena, cfg, submessage_arena);
1397 }
1398 _impl_._has_bits_[0] |= 0x00000004u;
1399 } else {
1400 _impl_._has_bits_[0] &= ~0x00000004u;
1401 }
1402 _impl_.cfg_ = cfg;
1403 // @@protoc_insertion_point(field_set_allocated:goby.middleware.protobuf.SerializerTransporterKey.cfg)
1404}
1405
1406// optional .goby.middleware.protobuf.SerializerProtobufMetadata metadata = 20;
1407inline bool SerializerTransporterKey::_internal_has_metadata() const {
1408 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
1409 PROTOBUF_ASSUME(!value || _impl_.metadata_ != nullptr);
1410 return value;
1411}
1412inline bool SerializerTransporterKey::has_metadata() const {
1413 return _internal_has_metadata();
1414}
1415inline void SerializerTransporterKey::clear_metadata() {
1416 if (_impl_.metadata_ != nullptr) _impl_.metadata_->Clear();
1417 _impl_._has_bits_[0] &= ~0x00000008u;
1418}
1419inline const ::goby::middleware::protobuf::SerializerProtobufMetadata& SerializerTransporterKey::_internal_metadata() const {
1420 const ::goby::middleware::protobuf::SerializerProtobufMetadata* p = _impl_.metadata_;
1421 return p != nullptr ? *p : reinterpret_cast<const ::goby::middleware::protobuf::SerializerProtobufMetadata&>(
1423}
1424inline const ::goby::middleware::protobuf::SerializerProtobufMetadata& SerializerTransporterKey::metadata() const {
1425 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.SerializerTransporterKey.metadata)
1426 return _internal_metadata();
1427}
1428inline void SerializerTransporterKey::unsafe_arena_set_allocated_metadata(
1430 if (GetArenaForAllocation() == nullptr) {
1431 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.metadata_);
1432 }
1433 _impl_.metadata_ = metadata;
1434 if (metadata) {
1435 _impl_._has_bits_[0] |= 0x00000008u;
1436 } else {
1437 _impl_._has_bits_[0] &= ~0x00000008u;
1438 }
1439 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.middleware.protobuf.SerializerTransporterKey.metadata)
1440}
1441inline ::goby::middleware::protobuf::SerializerProtobufMetadata* SerializerTransporterKey::release_metadata() {
1442 _impl_._has_bits_[0] &= ~0x00000008u;
1444 _impl_.metadata_ = nullptr;
1445#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1446 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
1447 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1448 if (GetArenaForAllocation() == nullptr) { delete old; }
1449#else // PROTOBUF_FORCE_COPY_IN_RELEASE
1450 if (GetArenaForAllocation() != nullptr) {
1451 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1452 }
1453#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
1454 return temp;
1455}
1456inline ::goby::middleware::protobuf::SerializerProtobufMetadata* SerializerTransporterKey::unsafe_arena_release_metadata() {
1457 // @@protoc_insertion_point(field_release:goby.middleware.protobuf.SerializerTransporterKey.metadata)
1458 _impl_._has_bits_[0] &= ~0x00000008u;
1460 _impl_.metadata_ = nullptr;
1461 return temp;
1462}
1463inline ::goby::middleware::protobuf::SerializerProtobufMetadata* SerializerTransporterKey::_internal_mutable_metadata() {
1464 _impl_._has_bits_[0] |= 0x00000008u;
1465 if (_impl_.metadata_ == nullptr) {
1467 _impl_.metadata_ = p;
1468 }
1469 return _impl_.metadata_;
1470}
1471inline ::goby::middleware::protobuf::SerializerProtobufMetadata* SerializerTransporterKey::mutable_metadata() {
1472 ::goby::middleware::protobuf::SerializerProtobufMetadata* _msg = _internal_mutable_metadata();
1473 // @@protoc_insertion_point(field_mutable:goby.middleware.protobuf.SerializerTransporterKey.metadata)
1474 return _msg;
1475}
1476inline void SerializerTransporterKey::set_allocated_metadata(::goby::middleware::protobuf::SerializerProtobufMetadata* metadata) {
1477 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1478 if (message_arena == nullptr) {
1479 delete _impl_.metadata_;
1480 }
1481 if (metadata) {
1482 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1483 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(metadata);
1484 if (message_arena != submessage_arena) {
1485 metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1486 message_arena, metadata, submessage_arena);
1487 }
1488 _impl_._has_bits_[0] |= 0x00000008u;
1489 } else {
1490 _impl_._has_bits_[0] &= ~0x00000008u;
1491 }
1492 _impl_.metadata_ = metadata;
1493 // @@protoc_insertion_point(field_set_allocated:goby.middleware.protobuf.SerializerTransporterKey.metadata)
1494}
1495
1496// -------------------------------------------------------------------
1497
1498// SerializerTransporterMessage
1499
1500// required .goby.middleware.protobuf.SerializerTransporterKey key = 1;
1501inline bool SerializerTransporterMessage::_internal_has_key() const {
1502 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
1503 PROTOBUF_ASSUME(!value || _impl_.key_ != nullptr);
1504 return value;
1505}
1506inline bool SerializerTransporterMessage::has_key() const {
1507 return _internal_has_key();
1508}
1509inline void SerializerTransporterMessage::clear_key() {
1510 if (_impl_.key_ != nullptr) _impl_.key_->Clear();
1511 _impl_._has_bits_[0] &= ~0x00000002u;
1512}
1513inline const ::goby::middleware::protobuf::SerializerTransporterKey& SerializerTransporterMessage::_internal_key() const {
1514 const ::goby::middleware::protobuf::SerializerTransporterKey* p = _impl_.key_;
1515 return p != nullptr ? *p : reinterpret_cast<const ::goby::middleware::protobuf::SerializerTransporterKey&>(
1517}
1518inline const ::goby::middleware::protobuf::SerializerTransporterKey& SerializerTransporterMessage::key() const {
1519 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.SerializerTransporterMessage.key)
1520 return _internal_key();
1521}
1522inline void SerializerTransporterMessage::unsafe_arena_set_allocated_key(
1524 if (GetArenaForAllocation() == nullptr) {
1525 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.key_);
1526 }
1527 _impl_.key_ = key;
1528 if (key) {
1529 _impl_._has_bits_[0] |= 0x00000002u;
1530 } else {
1531 _impl_._has_bits_[0] &= ~0x00000002u;
1532 }
1533 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.middleware.protobuf.SerializerTransporterMessage.key)
1534}
1535inline ::goby::middleware::protobuf::SerializerTransporterKey* SerializerTransporterMessage::release_key() {
1536 _impl_._has_bits_[0] &= ~0x00000002u;
1538 _impl_.key_ = nullptr;
1539#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1540 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
1541 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1542 if (GetArenaForAllocation() == nullptr) { delete old; }
1543#else // PROTOBUF_FORCE_COPY_IN_RELEASE
1544 if (GetArenaForAllocation() != nullptr) {
1545 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1546 }
1547#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
1548 return temp;
1549}
1550inline ::goby::middleware::protobuf::SerializerTransporterKey* SerializerTransporterMessage::unsafe_arena_release_key() {
1551 // @@protoc_insertion_point(field_release:goby.middleware.protobuf.SerializerTransporterMessage.key)
1552 _impl_._has_bits_[0] &= ~0x00000002u;
1554 _impl_.key_ = nullptr;
1555 return temp;
1556}
1557inline ::goby::middleware::protobuf::SerializerTransporterKey* SerializerTransporterMessage::_internal_mutable_key() {
1558 _impl_._has_bits_[0] |= 0x00000002u;
1559 if (_impl_.key_ == nullptr) {
1561 _impl_.key_ = p;
1562 }
1563 return _impl_.key_;
1564}
1565inline ::goby::middleware::protobuf::SerializerTransporterKey* SerializerTransporterMessage::mutable_key() {
1566 ::goby::middleware::protobuf::SerializerTransporterKey* _msg = _internal_mutable_key();
1567 // @@protoc_insertion_point(field_mutable:goby.middleware.protobuf.SerializerTransporterMessage.key)
1568 return _msg;
1569}
1570inline void SerializerTransporterMessage::set_allocated_key(::goby::middleware::protobuf::SerializerTransporterKey* key) {
1571 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1572 if (message_arena == nullptr) {
1573 delete _impl_.key_;
1574 }
1575 if (key) {
1576 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1577 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(key);
1578 if (message_arena != submessage_arena) {
1579 key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1580 message_arena, key, submessage_arena);
1581 }
1582 _impl_._has_bits_[0] |= 0x00000002u;
1583 } else {
1584 _impl_._has_bits_[0] &= ~0x00000002u;
1585 }
1586 _impl_.key_ = key;
1587 // @@protoc_insertion_point(field_set_allocated:goby.middleware.protobuf.SerializerTransporterMessage.key)
1588}
1589
1590// optional bytes data = 4;
1591inline bool SerializerTransporterMessage::_internal_has_data() const {
1592 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
1593 return value;
1594}
1595inline bool SerializerTransporterMessage::has_data() const {
1596 return _internal_has_data();
1597}
1598inline void SerializerTransporterMessage::clear_data() {
1599 _impl_.data_.ClearToEmpty();
1600 _impl_._has_bits_[0] &= ~0x00000001u;
1601}
1602inline const std::string& SerializerTransporterMessage::data() const {
1603 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.SerializerTransporterMessage.data)
1604 return _internal_data();
1605}
1606template <typename ArgT0, typename... ArgT>
1607inline PROTOBUF_ALWAYS_INLINE
1608void SerializerTransporterMessage::set_data(ArgT0&& arg0, ArgT... args) {
1609 _impl_._has_bits_[0] |= 0x00000001u;
1610 _impl_.data_.SetBytes(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
1611 // @@protoc_insertion_point(field_set:goby.middleware.protobuf.SerializerTransporterMessage.data)
1612}
1613inline std::string* SerializerTransporterMessage::mutable_data() {
1614 std::string* _s = _internal_mutable_data();
1615 // @@protoc_insertion_point(field_mutable:goby.middleware.protobuf.SerializerTransporterMessage.data)
1616 return _s;
1617}
1618inline const std::string& SerializerTransporterMessage::_internal_data() const {
1619 return _impl_.data_.Get();
1620}
1621inline void SerializerTransporterMessage::_internal_set_data(const std::string& value) {
1622 _impl_._has_bits_[0] |= 0x00000001u;
1623 _impl_.data_.Set(value, GetArenaForAllocation());
1624}
1625inline std::string* SerializerTransporterMessage::_internal_mutable_data() {
1626 _impl_._has_bits_[0] |= 0x00000001u;
1627 return _impl_.data_.Mutable(GetArenaForAllocation());
1628}
1629inline std::string* SerializerTransporterMessage::release_data() {
1630 // @@protoc_insertion_point(field_release:goby.middleware.protobuf.SerializerTransporterMessage.data)
1631 if (!_internal_has_data()) {
1632 return nullptr;
1633 }
1634 _impl_._has_bits_[0] &= ~0x00000001u;
1635 auto* p = _impl_.data_.Release();
1636#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1637 if (_impl_.data_.IsDefault()) {
1638 _impl_.data_.Set("", GetArenaForAllocation());
1639 }
1640#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1641 return p;
1642}
1643inline void SerializerTransporterMessage::set_allocated_data(std::string* data) {
1644 if (data != nullptr) {
1645 _impl_._has_bits_[0] |= 0x00000001u;
1646 } else {
1647 _impl_._has_bits_[0] &= ~0x00000001u;
1648 }
1649 _impl_.data_.SetAllocated(data, GetArenaForAllocation());
1650#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1651 if (_impl_.data_.IsDefault()) {
1652 _impl_.data_.Set("", GetArenaForAllocation());
1653 }
1654#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1655 // @@protoc_insertion_point(field_set_allocated:goby.middleware.protobuf.SerializerTransporterMessage.data)
1656}
1657
1658// -------------------------------------------------------------------
1659
1660// SerializerMetadataRequest
1661
1662// required .goby.middleware.protobuf.SerializerTransporterKey key = 1;
1663inline bool SerializerMetadataRequest::_internal_has_key() const {
1664 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
1665 PROTOBUF_ASSUME(!value || _impl_.key_ != nullptr);
1666 return value;
1667}
1668inline bool SerializerMetadataRequest::has_key() const {
1669 return _internal_has_key();
1670}
1671inline void SerializerMetadataRequest::clear_key() {
1672 if (_impl_.key_ != nullptr) _impl_.key_->Clear();
1673 _impl_._has_bits_[0] &= ~0x00000001u;
1674}
1675inline const ::goby::middleware::protobuf::SerializerTransporterKey& SerializerMetadataRequest::_internal_key() const {
1676 const ::goby::middleware::protobuf::SerializerTransporterKey* p = _impl_.key_;
1677 return p != nullptr ? *p : reinterpret_cast<const ::goby::middleware::protobuf::SerializerTransporterKey&>(
1679}
1680inline const ::goby::middleware::protobuf::SerializerTransporterKey& SerializerMetadataRequest::key() const {
1681 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.SerializerMetadataRequest.key)
1682 return _internal_key();
1683}
1684inline void SerializerMetadataRequest::unsafe_arena_set_allocated_key(
1686 if (GetArenaForAllocation() == nullptr) {
1687 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.key_);
1688 }
1689 _impl_.key_ = key;
1690 if (key) {
1691 _impl_._has_bits_[0] |= 0x00000001u;
1692 } else {
1693 _impl_._has_bits_[0] &= ~0x00000001u;
1694 }
1695 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.middleware.protobuf.SerializerMetadataRequest.key)
1696}
1697inline ::goby::middleware::protobuf::SerializerTransporterKey* SerializerMetadataRequest::release_key() {
1698 _impl_._has_bits_[0] &= ~0x00000001u;
1700 _impl_.key_ = nullptr;
1701#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1702 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
1703 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1704 if (GetArenaForAllocation() == nullptr) { delete old; }
1705#else // PROTOBUF_FORCE_COPY_IN_RELEASE
1706 if (GetArenaForAllocation() != nullptr) {
1707 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1708 }
1709#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
1710 return temp;
1711}
1712inline ::goby::middleware::protobuf::SerializerTransporterKey* SerializerMetadataRequest::unsafe_arena_release_key() {
1713 // @@protoc_insertion_point(field_release:goby.middleware.protobuf.SerializerMetadataRequest.key)
1714 _impl_._has_bits_[0] &= ~0x00000001u;
1716 _impl_.key_ = nullptr;
1717 return temp;
1718}
1719inline ::goby::middleware::protobuf::SerializerTransporterKey* SerializerMetadataRequest::_internal_mutable_key() {
1720 _impl_._has_bits_[0] |= 0x00000001u;
1721 if (_impl_.key_ == nullptr) {
1723 _impl_.key_ = p;
1724 }
1725 return _impl_.key_;
1726}
1727inline ::goby::middleware::protobuf::SerializerTransporterKey* SerializerMetadataRequest::mutable_key() {
1728 ::goby::middleware::protobuf::SerializerTransporterKey* _msg = _internal_mutable_key();
1729 // @@protoc_insertion_point(field_mutable:goby.middleware.protobuf.SerializerMetadataRequest.key)
1730 return _msg;
1731}
1732inline void SerializerMetadataRequest::set_allocated_key(::goby::middleware::protobuf::SerializerTransporterKey* key) {
1733 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1734 if (message_arena == nullptr) {
1735 delete _impl_.key_;
1736 }
1737 if (key) {
1738 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1739 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(key);
1740 if (message_arena != submessage_arena) {
1741 key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1742 message_arena, key, submessage_arena);
1743 }
1744 _impl_._has_bits_[0] |= 0x00000001u;
1745 } else {
1746 _impl_._has_bits_[0] &= ~0x00000001u;
1747 }
1748 _impl_.key_ = key;
1749 // @@protoc_insertion_point(field_set_allocated:goby.middleware.protobuf.SerializerMetadataRequest.key)
1750}
1751
1752// required .goby.middleware.protobuf.SerializerMetadataRequest.Request request = 2;
1753inline bool SerializerMetadataRequest::_internal_has_request() const {
1754 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
1755 return value;
1756}
1757inline bool SerializerMetadataRequest::has_request() const {
1758 return _internal_has_request();
1759}
1760inline void SerializerMetadataRequest::clear_request() {
1761 _impl_.request_ = 1;
1762 _impl_._has_bits_[0] &= ~0x00000002u;
1763}
1764inline ::goby::middleware::protobuf::SerializerMetadataRequest_Request SerializerMetadataRequest::_internal_request() const {
1765 return static_cast< ::goby::middleware::protobuf::SerializerMetadataRequest_Request >(_impl_.request_);
1766}
1767inline ::goby::middleware::protobuf::SerializerMetadataRequest_Request SerializerMetadataRequest::request() const {
1768 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.SerializerMetadataRequest.request)
1769 return _internal_request();
1770}
1771inline void SerializerMetadataRequest::_internal_set_request(::goby::middleware::protobuf::SerializerMetadataRequest_Request value) {
1773 _impl_._has_bits_[0] |= 0x00000002u;
1774 _impl_.request_ = value;
1775}
1776inline void SerializerMetadataRequest::set_request(::goby::middleware::protobuf::SerializerMetadataRequest_Request value) {
1777 _internal_set_request(value);
1778 // @@protoc_insertion_point(field_set:goby.middleware.protobuf.SerializerMetadataRequest.request)
1779}
1780
1781#ifdef __GNUC__
1782 #pragma GCC diagnostic pop
1783#endif // __GNUC__
1784// -------------------------------------------------------------------
1785
1786// -------------------------------------------------------------------
1787
1788// -------------------------------------------------------------------
1789
1790
1791// @@protoc_insertion_point(namespace_scope)
1792
1793} // namespace protobuf
1794} // namespace middleware
1795} // namespace goby
1796
1797PROTOBUF_NAMESPACE_OPEN
1798
1799template <> struct is_proto_enum< ::goby::middleware::protobuf::SerializerMetadataRequest_Request> : ::std::true_type {};
1800template <>
1802 return ::goby::middleware::protobuf::SerializerMetadataRequest_Request_descriptor();
1803}
1804
1805PROTOBUF_NAMESPACE_CLOSE
1806
1807// @@protoc_insertion_point(global_scope)
1808
1809#include <google/protobuf/port_undef.inc>
1810#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fserializer_5ftransporter_2eproto
void CopyFrom(const SerializerMetadataRequest &from)
static bool Request_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Request *value)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
PROTOBUF_CONSTEXPR SerializerMetadataRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void MergeFrom(const SerializerMetadataRequest &from)
SerializerMetadataRequest(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
friend void swap(SerializerMetadataRequest &a, SerializerMetadataRequest &b)
static const SerializerMetadataRequest * internal_default_instance()
SerializerMetadataRequest & operator=(SerializerMetadataRequest &&from) noexcept
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
SerializerMetadataRequest & operator=(const SerializerMetadataRequest &from)
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Request_descriptor()
static const SerializerMetadataRequest & default_instance()
SerializerMetadataRequest(const SerializerMetadataRequest &from)
SerializerMetadataRequest(SerializerMetadataRequest &&from) noexcept
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
SerializerMetadataRequest * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
static const std::string & Request_Name(T enum_t_value)
friend void swap(SerializerProtobufMetadata &a, SerializerProtobufMetadata &b)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
SerializerProtobufMetadata(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
::PROTOBUF_NAMESPACE_ID::FileDescriptorProto * add_file_descriptor()
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
SerializerProtobufMetadata(const SerializerProtobufMetadata &from)
SerializerProtobufMetadata * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
SerializerProtobufMetadata & operator=(const SerializerProtobufMetadata &from)
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
static const SerializerProtobufMetadata & default_instance()
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto > * mutable_file_descriptor()
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
void MergeFrom(const SerializerProtobufMetadata &from)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto > & file_descriptor() const
SerializerProtobufMetadata & operator=(SerializerProtobufMetadata &&from) noexcept
void set_protobuf_name(ArgT0 &&arg0, ArgT... args)
SerializerProtobufMetadata(SerializerProtobufMetadata &&from) noexcept
void CopyFrom(const SerializerProtobufMetadata &from)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
PROTOBUF_CONSTEXPR SerializerProtobufMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
static const SerializerProtobufMetadata * internal_default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
SerializerTransporterKey * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
void set_group(ArgT0 &&arg0, ArgT... args)
friend void swap(SerializerTransporterKey &a, SerializerTransporterKey &b)
SerializerTransporterKey & operator=(SerializerTransporterKey &&from) noexcept
void MergeFrom(const SerializerTransporterKey &from)
void CopyFrom(const SerializerTransporterKey &from)
SerializerTransporterKey(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
boost::units::make_scaled_unit< boost::units::unit< serialize_time_dimension, boost::units::si::system >, boost::units::scale< 10, boost::units::static_rational<-6 > > >::type serialize_time_unit
SerializerTransporterKey(const SerializerTransporterKey &from)
PROTOBUF_CONSTEXPR SerializerTransporterKey(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
boost::units::derived_dimension< boost::units::time_base_dimension, 1 >::type serialize_time_dimension
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
SerializerTransporterKey & operator=(const SerializerTransporterKey &from)
SerializerTransporterKey(SerializerTransporterKey &&from) noexcept
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static const SerializerTransporterKey * internal_default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
boost::units::quantity< serialize_time_unit, google::protobuf::uint64 > serialize_time_with_units() const
static const SerializerTransporterKey & default_instance()
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
static const SerializerTransporterMessage * internal_default_instance()
PROTOBUF_CONSTEXPR SerializerTransporterMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
SerializerTransporterMessage(SerializerTransporterMessage &&from) noexcept
SerializerTransporterMessage * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
SerializerTransporterMessage & operator=(const SerializerTransporterMessage &from)
SerializerTransporterMessage & operator=(SerializerTransporterMessage &&from) noexcept
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
void CopyFrom(const SerializerTransporterMessage &from)
SerializerTransporterMessage(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
void MergeFrom(const SerializerTransporterMessage &from)
static const SerializerTransporterMessage & default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
friend void swap(SerializerTransporterMessage &a, SerializerTransporterMessage &b)
SerializerTransporterMessage(const SerializerTransporterMessage &from)
goby::util::logger::GroupSetter group(std::string n)
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * SerializerMetadataRequest_Request_descriptor()
SerializerMetadataRequestDefaultTypeInternal _SerializerMetadataRequest_default_instance_
TransporterConfigDefaultTypeInternal _TransporterConfig_default_instance_
SerializerProtobufMetadataDefaultTypeInternal _SerializerProtobufMetadata_default_instance_
const std::string & SerializerMetadataRequest_Request_Name(T enum_t_value)
SerializerTransporterMessageDefaultTypeInternal _SerializerTransporterMessage_default_instance_
bool SerializerMetadataRequest_Request_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SerializerMetadataRequest_Request *value)
SerializerTransporterKeyDefaultTypeInternal _SerializerTransporterKey_default_instance_
bool SerializerMetadataRequest_Request_IsValid(int value)
constexpr int SerializerMetadataRequest_Request_Request_ARRAYSIZE
constexpr SerializerMetadataRequest_Request SerializerMetadataRequest_Request_Request_MIN
constexpr SerializerMetadataRequest_Request SerializerMetadataRequest_Request_Request_MAX
The global namespace for the Goby project.
#define ByteSizeLong
::goby::middleware::protobuf::SerializerProtobufMetadata * Arena::CreateMaybeMessage<::goby::middleware::protobuf::SerializerProtobufMetadata >(Arena *)
::goby::middleware::protobuf::SerializerTransporterKey * Arena::CreateMaybeMessage<::goby::middleware::protobuf::SerializerTransporterKey >(Arena *)
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fmiddleware_2fprotobuf_2fserializer_5ftransporter_2eproto
const EnumDescriptor * GetEnumDescriptor< ::goby::middleware::protobuf::SerializerMetadataRequest_Request >()
PROTOBUF_NAMESPACE_OPEN ::goby::middleware::protobuf::TransporterConfig * Arena::CreateMaybeMessage<::goby::middleware::protobuf::TransporterConfig >(Arena *)