4 #ifndef PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2finterprocess_5fconfig_2eproto
5 #define PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2finterprocess_5fconfig_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>
35 #include <boost/units/quantity.hpp>
36 #include <boost/units/absolute.hpp>
37 #include <boost/units/dimensionless_type.hpp>
38 #include <boost/units/make_scaled_unit.hpp>
40 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2fzeromq_2fprotobuf_2finterprocess_5fconfig_2eproto
45 static const ::google::protobuf::internal::ParseTableField
entries[];
46 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
47 static const ::google::protobuf::internal::ParseTable
schema[2];
58 class InterProcessManagerHoldDefaultTypeInternal;
61 class InterProcessPortalConfigDefaultTypeInternal;
87 return ::google::protobuf::internal::NameOfEnum(
92 return ::google::protobuf::internal::ParseNamedEnum<InterProcessPortalConfig_Transport>(
111 *
this = ::std::move(from);
115 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
116 if (
this != &from) InternalSwap(&from);
124 return _internal_metadata_.unknown_fields();
127 return _internal_metadata_.mutable_unknown_fields();
130 static const ::google::protobuf::Descriptor*
descriptor();
155 return CreateMaybeMessage<InterProcessPortalConfig>(NULL);
159 return CreateMaybeMessage<InterProcessPortalConfig>(arena);
161 void CopyFrom(const ::google::protobuf::Message& from)
final;
162 void MergeFrom(const ::google::protobuf::Message& from)
final;
170 ::
google::protobuf::io::CodedInputStream* input) final;
172 ::
google::protobuf::io::CodedOutputStream* output) const final;
174 bool deterministic, ::
google::protobuf::uint8* target) const final;
180 void SetCachedSize(
int size)
const final;
183 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
186 inline void* MaybeArenaPtr()
const {
209 static inline const ::google::protobuf::EnumDescriptor*
227 const ::std::string&
platform()
const;
344 void set_has_platform();
345 void clear_has_platform();
346 void set_has_transport();
347 void clear_has_transport();
348 void set_has_socket_name();
349 void clear_has_socket_name();
350 void set_has_ipv4_address();
351 void set_has_ip_address();
352 void set_has_tcp_port();
353 void clear_has_tcp_port();
354 void set_has_send_queue_size();
355 void clear_has_send_queue_size();
356 void set_has_receive_queue_size();
357 void clear_has_receive_queue_size();
358 void set_has_zeromq_number_io_threads();
359 void clear_has_zeromq_number_io_threads();
360 void set_has_manager_timeout_seconds();
361 void clear_has_manager_timeout_seconds();
362 void set_has_client_name();
363 void clear_has_client_name();
365 inline bool has_ip()
const;
366 inline void clear_has_ip();
368 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
369 ::google::protobuf::internal::HasBits<1> _has_bits_;
370 mutable ::google::protobuf::internal::CachedSize _cached_size_;
374 ::google::protobuf::internal::ArenaStringPtr platform_;
375 ::google::protobuf::internal::ArenaStringPtr socket_name_;
376 ::google::protobuf::internal::ArenaStringPtr client_name_;
385 ::google::protobuf::internal::ArenaStringPtr ipv4_address_;
386 ::google::protobuf::internal::ArenaStringPtr ip_address_;
393 friend struct ::protobuf_goby_2fzeromq_2fprotobuf_2finterprocess_5fconfig_2eproto::TableStruct;
411 *
this = ::std::move(from);
415 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
416 if (
this != &from) InternalSwap(&from);
424 return _internal_metadata_.unknown_fields();
427 return _internal_metadata_.mutable_unknown_fields();
430 static const ::google::protobuf::Descriptor*
descriptor();
449 return CreateMaybeMessage<InterProcessManagerHold>(NULL);
453 return CreateMaybeMessage<InterProcessManagerHold>(arena);
455 void CopyFrom(const ::google::protobuf::Message& from)
final;
456 void MergeFrom(const ::google::protobuf::Message& from)
final;
464 ::
google::protobuf::io::CodedInputStream* input) final;
466 ::
google::protobuf::io::CodedOutputStream* output) const final;
468 bool deterministic, ::
google::protobuf::uint8* target) const final;
474 void SetCachedSize(
int size)
const final;
477 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
480 inline void* MaybeArenaPtr()
const {
510 const ::google::protobuf::RepeatedPtrField< ::std::string>&
required_client()
const;
516 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
517 ::google::protobuf::internal::HasBits<1> _has_bits_;
518 mutable ::google::protobuf::internal::CachedSize _cached_size_;
520 friend struct ::protobuf_goby_2fzeromq_2fprotobuf_2finterprocess_5fconfig_2eproto::TableStruct;
528 #pragma GCC diagnostic push
529 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
535 return (_has_bits_[0] & 0x00000001u) != 0;
537 inline void InterProcessPortalConfig::set_has_platform() {
538 _has_bits_[0] |= 0x00000001u;
540 inline void InterProcessPortalConfig::clear_has_platform() {
541 _has_bits_[0] &= ~0x00000001u;
545 clear_has_platform();
549 return platform_.GetNoArena();
559 platform_.SetNoArena(
565 GOOGLE_DCHECK(value != NULL);
573 ::std::string(
reinterpret_cast<const char*
>(value), size));
586 clear_has_platform();
593 clear_has_platform();
601 return (_has_bits_[0] & 0x00000008u) != 0;
603 inline void InterProcessPortalConfig::set_has_transport() {
604 _has_bits_[0] |= 0x00000008u;
606 inline void InterProcessPortalConfig::clear_has_transport() {
607 _has_bits_[0] &= ~0x00000008u;
611 clear_has_transport();
626 return (_has_bits_[0] & 0x00000002u) != 0;
628 inline void InterProcessPortalConfig::set_has_socket_name() {
629 _has_bits_[0] |= 0x00000002u;
631 inline void InterProcessPortalConfig::clear_has_socket_name() {
632 _has_bits_[0] &= ~0x00000002u;
636 clear_has_socket_name();
640 return socket_name_.GetNoArena();
643 set_has_socket_name();
649 set_has_socket_name();
650 socket_name_.SetNoArena(
656 GOOGLE_DCHECK(value != NULL);
657 set_has_socket_name();
662 set_has_socket_name();
664 ::std::string(
reinterpret_cast<const char*
>(value), size));
668 set_has_socket_name();
677 clear_has_socket_name();
682 set_has_socket_name();
684 clear_has_socket_name();
694 inline void InterProcessPortalConfig::set_has_ipv4_address() {
706 return ip_.ipv4_address_.GetNoArena();
714 set_has_ipv4_address();
725 set_has_ipv4_address();
733 GOOGLE_DCHECK(value != NULL);
736 set_has_ipv4_address();
740 ::std::string(value));
746 set_has_ipv4_address();
750 reinterpret_cast<const char*
>(value), size));
756 set_has_ipv4_address();
777 set_has_ipv4_address();
787 inline void InterProcessPortalConfig::set_has_ip_address() {
799 return ip_.ip_address_.GetNoArena();
807 set_has_ip_address();
818 set_has_ip_address();
826 GOOGLE_DCHECK(value != NULL);
829 set_has_ip_address();
833 ::std::string(value));
839 set_has_ip_address();
843 reinterpret_cast<const char*
>(value), size));
849 set_has_ip_address();
870 set_has_ip_address();
878 return (_has_bits_[0] & 0x00000010u) != 0;
880 inline void InterProcessPortalConfig::set_has_tcp_port() {
881 _has_bits_[0] |= 0x00000010u;
883 inline void InterProcessPortalConfig::clear_has_tcp_port() {
884 _has_bits_[0] &= ~0x00000010u;
888 clear_has_tcp_port();
902 return (_has_bits_[0] & 0x00000020u) != 0;
904 inline void InterProcessPortalConfig::set_has_send_queue_size() {
905 _has_bits_[0] |= 0x00000020u;
907 inline void InterProcessPortalConfig::clear_has_send_queue_size() {
908 _has_bits_[0] &= ~0x00000020u;
911 send_queue_size_ = 1000u;
912 clear_has_send_queue_size();
916 return send_queue_size_;
919 set_has_send_queue_size();
920 send_queue_size_ = value;
926 return (_has_bits_[0] & 0x00000040u) != 0;
928 inline void InterProcessPortalConfig::set_has_receive_queue_size() {
929 _has_bits_[0] |= 0x00000040u;
931 inline void InterProcessPortalConfig::clear_has_receive_queue_size() {
932 _has_bits_[0] &= ~0x00000040u;
935 receive_queue_size_ = 1000u;
936 clear_has_receive_queue_size();
940 return receive_queue_size_;
943 set_has_receive_queue_size();
944 receive_queue_size_ = value;
950 return (_has_bits_[0] & 0x00000080u) != 0;
952 inline void InterProcessPortalConfig::set_has_zeromq_number_io_threads() {
953 _has_bits_[0] |= 0x00000080u;
955 inline void InterProcessPortalConfig::clear_has_zeromq_number_io_threads() {
956 _has_bits_[0] &= ~0x00000080u;
959 zeromq_number_io_threads_ = 4u;
960 clear_has_zeromq_number_io_threads();
964 return zeromq_number_io_threads_;
967 set_has_zeromq_number_io_threads();
968 zeromq_number_io_threads_ = value;
974 return (_has_bits_[0] & 0x00000100u) != 0;
976 inline void InterProcessPortalConfig::set_has_manager_timeout_seconds() {
977 _has_bits_[0] |= 0x00000100u;
979 inline void InterProcessPortalConfig::clear_has_manager_timeout_seconds() {
980 _has_bits_[0] &= ~0x00000100u;
983 manager_timeout_seconds_ = 5u;
984 clear_has_manager_timeout_seconds();
988 return manager_timeout_seconds_;
991 set_has_manager_timeout_seconds();
992 manager_timeout_seconds_ = value;
998 return (_has_bits_[0] & 0x00000004u) != 0;
1000 inline void InterProcessPortalConfig::set_has_client_name() {
1001 _has_bits_[0] |= 0x00000004u;
1003 inline void InterProcessPortalConfig::clear_has_client_name() {
1004 _has_bits_[0] &= ~0x00000004u;
1008 clear_has_client_name();
1012 return client_name_.GetNoArena();
1015 set_has_client_name();
1021 set_has_client_name();
1022 client_name_.SetNoArena(
1028 GOOGLE_DCHECK(value != NULL);
1029 set_has_client_name();
1034 set_has_client_name();
1036 ::std::string(
reinterpret_cast<const char*
>(value), size));
1040 set_has_client_name();
1049 clear_has_client_name();
1054 set_has_client_name();
1056 clear_has_client_name();
1062 inline bool InterProcessPortalConfig::has_ip()
const {
1065 inline void InterProcessPortalConfig::clear_has_ip() {
1077 return required_client_.size();
1080 required_client_.Clear();
1084 return required_client_.Get(index);
1088 return required_client_.Mutable(index);
1092 required_client_.Mutable(index)->assign(value);
1097 required_client_.Mutable(index)->assign(std::move(value));
1101 GOOGLE_DCHECK(value != NULL);
1102 required_client_.Mutable(index)->assign(value);
1106 required_client_.Mutable(index)->assign(
1107 reinterpret_cast<const char*
>(value), size);
1112 return required_client_.Add();
1115 required_client_.Add()->assign(value);
1120 required_client_.Add(std::move(value));
1125 GOOGLE_DCHECK(value != NULL);
1126 required_client_.Add()->assign(value);
1130 required_client_.Add()->assign(
reinterpret_cast<const char*
>(value), size);
1133 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
1136 return required_client_;
1138 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
1141 return &required_client_;
1145 #pragma GCC diagnostic pop
1157 namespace protobuf {
1161 inline const EnumDescriptor* GetEnumDescriptor< ::goby::zeromq::protobuf::InterProcessPortalConfig_Transport>() {
1170 #endif // PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2finterprocess_5fconfig_2eproto