4 #ifndef PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fserializer_5ftransporter_2eproto
5 #define PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fserializer_5ftransporter_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
22 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/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>
42 #include <boost/units/systems/si.hpp>
44 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2fmiddleware_2fprotobuf_2fserializer_5ftransporter_2eproto
49 static const ::google::protobuf::internal::ParseTableField
entries[];
50 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
51 static const ::google::protobuf::internal::ParseTable
schema[4];
59 namespace middleware {
61 class SerializerMetadataRequest;
62 class SerializerMetadataRequestDefaultTypeInternal;
64 class SerializerProtobufMetadata;
65 class SerializerProtobufMetadataDefaultTypeInternal;
67 class SerializerTransporterKey;
68 class SerializerTransporterKeyDefaultTypeInternal;
70 class SerializerTransporterMessage;
71 class SerializerTransporterMessageDefaultTypeInternal;
85 namespace middleware {
99 return ::google::protobuf::internal::NameOfEnum(
104 return ::google::protobuf::internal::ParseNamedEnum<SerializerMetadataRequest_Request>(
123 *
this = ::std::move(from);
127 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
128 if (
this != &from) InternalSwap(&from);
136 return _internal_metadata_.unknown_fields();
139 return _internal_metadata_.mutable_unknown_fields();
142 static const ::google::protobuf::Descriptor*
descriptor();
161 return CreateMaybeMessage<SerializerProtobufMetadata>(NULL);
165 return CreateMaybeMessage<SerializerProtobufMetadata>(arena);
167 void CopyFrom(const ::google::protobuf::Message& from)
final;
168 void MergeFrom(const ::google::protobuf::Message& from)
final;
176 ::
google::protobuf::io::CodedInputStream* input) final;
178 ::
google::protobuf::io::CodedOutputStream* output) const final;
180 bool deterministic, ::
google::protobuf::uint8* target) const final;
186 void SetCachedSize(
int size)
const final;
189 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
192 inline void* MaybeArenaPtr()
const {
208 ::
google::protobuf::RepeatedPtrField< ::
google::protobuf::FileDescriptorProto >*
212 const ::
google::protobuf::RepeatedPtrField< ::
google::protobuf::FileDescriptorProto >&
232 void set_has_protobuf_name();
233 void clear_has_protobuf_name();
235 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
236 ::google::protobuf::internal::HasBits<1> _has_bits_;
237 mutable ::google::protobuf::internal::CachedSize _cached_size_;
239 ::google::protobuf::internal::ArenaStringPtr protobuf_name_;
240 friend struct ::protobuf_goby_2fmiddleware_2fprotobuf_2fserializer_5ftransporter_2eproto::TableStruct;
258 *
this = ::std::move(from);
262 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
263 if (
this != &from) InternalSwap(&from);
271 return _internal_metadata_.unknown_fields();
274 return _internal_metadata_.mutable_unknown_fields();
277 static const ::google::protobuf::Descriptor*
descriptor();
296 return CreateMaybeMessage<SerializerTransporterKey>(NULL);
300 return CreateMaybeMessage<SerializerTransporterKey>(arena);
302 void CopyFrom(const ::google::protobuf::Message& from)
final;
303 void MergeFrom(const ::google::protobuf::Message& from)
final;
311 ::
google::protobuf::io::CodedInputStream* input) final;
313 ::
google::protobuf::io::CodedOutputStream* output) const final;
315 bool deterministic, ::
google::protobuf::uint8* target) const final;
321 void SetCachedSize(
int size)
const final;
324 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
327 inline void* MaybeArenaPtr()
const {
342 const ::std::
string&
type() const;
343 void set_type(const ::std::
string& value);
345 void set_type(::std::string&& value);
348 void set_type(
const char* value,
size_t size);
357 const ::std::string&
group()
const;
358 void set_group(const ::std::string& value);
363 void set_group(
const char* value,
size_t size);
373 const ::goby::middleware::protobuf::TransporterConfig& _internal_cfg()
const;
375 const ::goby::middleware::protobuf::TransporterConfig&
cfg()
const;
385 const ::goby::middleware::protobuf::SerializerProtobufMetadata& _internal_metadata()
const;
387 const ::goby::middleware::protobuf::SerializerProtobufMetadata&
metadata()
const;
415 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;
417 template<
typename Quantity >
419 {
set_serialize_time(boost::units::quantity<serialize_time_unit,google::protobuf::uint64 >(value_w_units).value() ); };
421 template<
typename Quantity >
426 {
return serialize_time_with_units<boost::units::quantity< serialize_time_unit,google::protobuf::uint64 > >(); };
430 void set_has_marshalling_scheme();
431 void clear_has_marshalling_scheme();
433 void clear_has_type();
434 void set_has_group();
435 void clear_has_group();
436 void set_has_group_numeric();
437 void clear_has_group_numeric();
438 void set_has_serialize_time();
439 void clear_has_serialize_time();
441 void clear_has_cfg();
442 void set_has_metadata();
443 void clear_has_metadata();
446 size_t RequiredFieldsByteSizeFallback()
const;
448 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
449 ::google::protobuf::internal::HasBits<1> _has_bits_;
450 mutable ::google::protobuf::internal::CachedSize _cached_size_;
451 ::google::protobuf::internal::ArenaStringPtr type_;
452 ::google::protobuf::internal::ArenaStringPtr group_;
458 friend struct ::protobuf_goby_2fmiddleware_2fprotobuf_2fserializer_5ftransporter_2eproto::TableStruct;
476 *
this = ::std::move(from);
480 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
481 if (
this != &from) InternalSwap(&from);
489 return _internal_metadata_.unknown_fields();
492 return _internal_metadata_.mutable_unknown_fields();
495 static const ::google::protobuf::Descriptor*
descriptor();
514 return CreateMaybeMessage<SerializerTransporterMessage>(NULL);
518 return CreateMaybeMessage<SerializerTransporterMessage>(arena);
520 void CopyFrom(const ::google::protobuf::Message& from)
final;
521 void MergeFrom(const ::google::protobuf::Message& from)
final;
529 ::
google::protobuf::io::CodedInputStream* input) final;
531 ::
google::protobuf::io::CodedOutputStream* output) const final;
533 bool deterministic, ::
google::protobuf::uint8* target) const final;
539 void SetCachedSize(
int size)
const final;
542 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
545 inline void* MaybeArenaPtr()
const {
560 const ::std::
string&
data() const;
561 void set_data(const ::std::
string& value);
563 void set_data(::std::string&& value);
566 void set_data(
const void* value,
size_t size);
576 const ::goby::middleware::protobuf::SerializerTransporterKey& _internal_key()
const;
578 const ::goby::middleware::protobuf::SerializerTransporterKey&
key()
const;
586 void clear_has_key();
588 void clear_has_data();
590 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
591 ::google::protobuf::internal::HasBits<1> _has_bits_;
592 mutable ::google::protobuf::internal::CachedSize _cached_size_;
593 ::google::protobuf::internal::ArenaStringPtr data_;
595 friend struct ::protobuf_goby_2fmiddleware_2fprotobuf_2fserializer_5ftransporter_2eproto::TableStruct;
613 *
this = ::std::move(from);
617 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
618 if (
this != &from) InternalSwap(&from);
626 return _internal_metadata_.unknown_fields();
629 return _internal_metadata_.mutable_unknown_fields();
632 static const ::google::protobuf::Descriptor*
descriptor();
651 return CreateMaybeMessage<SerializerMetadataRequest>(NULL);
655 return CreateMaybeMessage<SerializerMetadataRequest>(arena);
657 void CopyFrom(const ::google::protobuf::Message& from)
final;
658 void MergeFrom(const ::google::protobuf::Message& from)
final;
666 ::
google::protobuf::io::CodedInputStream* input) final;
668 ::
google::protobuf::io::CodedOutputStream* output) const final;
670 bool deterministic, ::
google::protobuf::uint8* target) const final;
676 void SetCachedSize(
int size)
const final;
679 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
682 inline void* MaybeArenaPtr()
const {
705 static inline const ::google::protobuf::EnumDescriptor*
724 const ::goby::middleware::protobuf::SerializerTransporterKey& _internal_key()
const;
726 const ::goby::middleware::protobuf::SerializerTransporterKey&
key()
const;
741 void clear_has_key();
742 void set_has_request();
743 void clear_has_request();
746 size_t RequiredFieldsByteSizeFallback()
const;
748 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
749 ::google::protobuf::internal::HasBits<1> _has_bits_;
750 mutable ::google::protobuf::internal::CachedSize _cached_size_;
753 friend struct ::protobuf_goby_2fmiddleware_2fprotobuf_2fserializer_5ftransporter_2eproto::TableStruct;
761 #pragma GCC diagnostic push
762 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
768 return (_has_bits_[0] & 0x00000001u) != 0;
770 inline void SerializerProtobufMetadata::set_has_protobuf_name() {
771 _has_bits_[0] |= 0x00000001u;
773 inline void SerializerProtobufMetadata::clear_has_protobuf_name() {
774 _has_bits_[0] &= ~0x00000001u;
778 clear_has_protobuf_name();
782 return protobuf_name_.GetNoArena();
785 set_has_protobuf_name();
791 set_has_protobuf_name();
792 protobuf_name_.SetNoArena(
798 GOOGLE_DCHECK(value != NULL);
799 set_has_protobuf_name();
804 set_has_protobuf_name();
806 ::std::string(
reinterpret_cast<const char*
>(value), size));
810 set_has_protobuf_name();
819 clear_has_protobuf_name();
824 set_has_protobuf_name();
826 clear_has_protobuf_name();
834 return file_descriptor_.size();
838 return file_descriptor_.Mutable(index);
840 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
843 return &file_descriptor_;
847 return file_descriptor_.Get(index);
851 return file_descriptor_.Add();
853 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
856 return file_descriptor_;
865 return (_has_bits_[0] & 0x00000010u) != 0;
867 inline void SerializerTransporterKey::set_has_marshalling_scheme() {
868 _has_bits_[0] |= 0x00000010u;
870 inline void SerializerTransporterKey::clear_has_marshalling_scheme() {
871 _has_bits_[0] &= ~0x00000010u;
874 marshalling_scheme_ = 0;
875 clear_has_marshalling_scheme();
879 return marshalling_scheme_;
882 set_has_marshalling_scheme();
883 marshalling_scheme_ = value;
889 return (_has_bits_[0] & 0x00000001u) != 0;
891 inline void SerializerTransporterKey::set_has_type() {
892 _has_bits_[0] |= 0x00000001u;
894 inline void SerializerTransporterKey::clear_has_type() {
895 _has_bits_[0] &= ~0x00000001u;
903 return type_.GetNoArena();
919 GOOGLE_DCHECK(value != NULL);
927 ::std::string(
reinterpret_cast<const char*
>(value), size));
955 return (_has_bits_[0] & 0x00000002u) != 0;
957 inline void SerializerTransporterKey::set_has_group() {
958 _has_bits_[0] |= 0x00000002u;
960 inline void SerializerTransporterKey::clear_has_group() {
961 _has_bits_[0] &= ~0x00000002u;
969 return group_.GetNoArena();
985 GOOGLE_DCHECK(value != NULL);
993 ::std::string(
reinterpret_cast<const char*
>(value), size));
1010 if (
group != NULL) {
1021 return (_has_bits_[0] & 0x00000020u) != 0;
1023 inline void SerializerTransporterKey::set_has_group_numeric() {
1024 _has_bits_[0] |= 0x00000020u;
1026 inline void SerializerTransporterKey::clear_has_group_numeric() {
1027 _has_bits_[0] &= ~0x00000020u;
1030 group_numeric_ = 0u;
1031 clear_has_group_numeric();
1035 return group_numeric_;
1038 set_has_group_numeric();
1039 group_numeric_ = value;
1045 return (_has_bits_[0] & 0x00000040u) != 0;
1047 inline void SerializerTransporterKey::set_has_serialize_time() {
1048 _has_bits_[0] |= 0x00000040u;
1050 inline void SerializerTransporterKey::clear_has_serialize_time() {
1051 _has_bits_[0] &= ~0x00000040u;
1054 serialize_time_ = GOOGLE_ULONGLONG(0);
1055 clear_has_serialize_time();
1059 return serialize_time_;
1062 set_has_serialize_time();
1063 serialize_time_ = value;
1069 return (_has_bits_[0] & 0x00000004u) != 0;
1071 inline void SerializerTransporterKey::set_has_cfg() {
1072 _has_bits_[0] |= 0x00000004u;
1074 inline void SerializerTransporterKey::clear_has_cfg() {
1075 _has_bits_[0] &= ~0x00000004u;
1077 inline const ::goby::middleware::protobuf::TransporterConfig& SerializerTransporterKey::_internal_cfg()
const {
1081 const ::goby::middleware::protobuf::TransporterConfig* p = cfg_;
1096 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::TransporterConfig>(GetArenaNoVirtual());
1104 if (message_arena == NULL) {
1109 if (message_arena != submessage_arena) {
1110 cfg = ::google::protobuf::internal::GetOwnedMessage(
1111 message_arena,
cfg, submessage_arena);
1123 return (_has_bits_[0] & 0x00000008u) != 0;
1125 inline void SerializerTransporterKey::set_has_metadata() {
1126 _has_bits_[0] |= 0x00000008u;
1128 inline void SerializerTransporterKey::clear_has_metadata() {
1129 _has_bits_[0] &= ~0x00000008u;
1132 if (metadata_ != NULL) metadata_->
Clear();
1133 clear_has_metadata();
1135 inline const ::goby::middleware::protobuf::SerializerProtobufMetadata& SerializerTransporterKey::_internal_metadata()
const {
1139 const ::goby::middleware::protobuf::SerializerProtobufMetadata* p = metadata_;
1146 clear_has_metadata();
1153 if (metadata_ == NULL) {
1154 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::SerializerProtobufMetadata>(GetArenaNoVirtual());
1162 if (message_arena == NULL) {
1167 if (message_arena != submessage_arena) {
1168 metadata = ::google::protobuf::internal::GetOwnedMessage(
1169 message_arena,
metadata, submessage_arena);
1173 clear_has_metadata();
1185 return (_has_bits_[0] & 0x00000002u) != 0;
1187 inline void SerializerTransporterMessage::set_has_key() {
1188 _has_bits_[0] |= 0x00000002u;
1190 inline void SerializerTransporterMessage::clear_has_key() {
1191 _has_bits_[0] &= ~0x00000002u;
1194 if (key_ != NULL) key_->
Clear();
1197 inline const ::goby::middleware::protobuf::SerializerTransporterKey& SerializerTransporterMessage::_internal_key()
const {
1201 const ::goby::middleware::protobuf::SerializerTransporterKey* p = key_;
1216 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::SerializerTransporterKey>(GetArenaNoVirtual());
1224 if (message_arena == NULL) {
1229 if (message_arena != submessage_arena) {
1230 key = ::google::protobuf::internal::GetOwnedMessage(
1231 message_arena,
key, submessage_arena);
1243 return (_has_bits_[0] & 0x00000001u) != 0;
1245 inline void SerializerTransporterMessage::set_has_data() {
1246 _has_bits_[0] |= 0x00000001u;
1248 inline void SerializerTransporterMessage::clear_has_data() {
1249 _has_bits_[0] &= ~0x00000001u;
1257 return data_.GetNoArena();
1273 GOOGLE_DCHECK(value != NULL);
1281 ::std::string(
reinterpret_cast<const char*
>(value), size));
1313 return (_has_bits_[0] & 0x00000001u) != 0;
1315 inline void SerializerMetadataRequest::set_has_key() {
1316 _has_bits_[0] |= 0x00000001u;
1318 inline void SerializerMetadataRequest::clear_has_key() {
1319 _has_bits_[0] &= ~0x00000001u;
1322 if (key_ != NULL) key_->
Clear();
1325 inline const ::goby::middleware::protobuf::SerializerTransporterKey& SerializerMetadataRequest::_internal_key()
const {
1329 const ::goby::middleware::protobuf::SerializerTransporterKey* p = key_;
1344 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::SerializerTransporterKey>(GetArenaNoVirtual());
1352 if (message_arena == NULL) {
1357 if (message_arena != submessage_arena) {
1358 key = ::google::protobuf::internal::GetOwnedMessage(
1359 message_arena,
key, submessage_arena);
1371 return (_has_bits_[0] & 0x00000002u) != 0;
1373 inline void SerializerMetadataRequest::set_has_request() {
1374 _has_bits_[0] |= 0x00000002u;
1376 inline void SerializerMetadataRequest::clear_has_request() {
1377 _has_bits_[0] &= ~0x00000002u;
1381 clear_has_request();
1395 #pragma GCC diagnostic pop
1411 namespace protobuf {
1415 inline const EnumDescriptor* GetEnumDescriptor< ::goby::middleware::protobuf::SerializerMetadataRequest_Request>() {
1424 #endif // PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fserializer_5ftransporter_2eproto