4 #ifndef PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2frockblock_5fsimulator_5fconfig_2eproto
5 #define PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2frockblock_5fsimulator_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/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_2facomms_2fprotobuf_2frockblock_5fsimulator_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];
59 class RockBLOCKSimulatorConfigDefaultTypeInternal;
62 class RockBLOCKSimulatorConfig_IMEIToModemIDDefaultTypeInternal;
95 *
this = ::std::move(from);
99 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
100 if (
this != &from) InternalSwap(&from);
108 return _internal_metadata_.unknown_fields();
111 return _internal_metadata_.mutable_unknown_fields();
114 static const ::google::protobuf::Descriptor*
descriptor();
133 return CreateMaybeMessage<RockBLOCKSimulatorConfig_IMEIToModemID>(NULL);
137 return CreateMaybeMessage<RockBLOCKSimulatorConfig_IMEIToModemID>(arena);
139 void CopyFrom(const ::google::protobuf::Message& from)
final;
140 void MergeFrom(const ::google::protobuf::Message& from)
final;
148 ::
google::protobuf::io::CodedInputStream* input) final;
150 ::
google::protobuf::io::CodedOutputStream* output) const final;
152 bool deterministic, ::
google::protobuf::uint8* target) const final;
158 void SetCachedSize(
int size)
const final;
161 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
164 inline void* MaybeArenaPtr()
const {
179 const ::std::
string&
imei() const;
180 void set_imei(const ::std::
string& value);
182 void set_imei(::std::string&& value);
185 void set_imei(
const char* value,
size_t size);
195 const ::goby::middleware::protobuf::PTYConfig& _internal_pty()
const;
197 const ::goby::middleware::protobuf::PTYConfig&
pty()
const;
212 void clear_has_imei();
213 void set_has_modem_id();
214 void clear_has_modem_id();
216 void clear_has_pty();
219 size_t RequiredFieldsByteSizeFallback()
const;
221 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
222 ::google::protobuf::internal::HasBits<1> _has_bits_;
223 mutable ::google::protobuf::internal::CachedSize _cached_size_;
224 ::google::protobuf::internal::ArenaStringPtr imei_;
227 friend struct ::protobuf_goby_2facomms_2fprotobuf_2frockblock_5fsimulator_5fconfig_2eproto::TableStruct;
245 *
this = ::std::move(from);
249 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
250 if (
this != &from) InternalSwap(&from);
258 return _internal_metadata_.unknown_fields();
261 return _internal_metadata_.mutable_unknown_fields();
264 static const ::google::protobuf::Descriptor*
descriptor();
283 return CreateMaybeMessage<RockBLOCKSimulatorConfig>(NULL);
287 return CreateMaybeMessage<RockBLOCKSimulatorConfig>(arena);
289 void CopyFrom(const ::google::protobuf::Message& from)
final;
290 void MergeFrom(const ::google::protobuf::Message& from)
final;
298 ::
google::protobuf::io::CodedInputStream* input) final;
300 ::
google::protobuf::io::CodedOutputStream* output) const final;
302 bool deterministic, ::
google::protobuf::uint8* target) const final;
308 void SetCachedSize(
int size)
const final;
311 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
314 inline void* MaybeArenaPtr()
const {
374 const ::goby::middleware::protobuf::AppConfig& _internal_app()
const;
376 const ::goby::middleware::protobuf::AppConfig&
app()
const;
391 void clear_has_app();
392 void set_has_mo_http_server();
393 void clear_has_mo_http_server();
394 void set_has_mo_http_endpoint();
395 void clear_has_mo_http_endpoint();
396 void set_has_mt_http_server_port();
397 void clear_has_mt_http_server_port();
400 size_t RequiredFieldsByteSizeFallback()
const;
402 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
403 ::google::protobuf::internal::HasBits<1> _has_bits_;
404 mutable ::google::protobuf::internal::CachedSize _cached_size_;
406 ::google::protobuf::internal::ArenaStringPtr mo_http_server_;
410 ::google::protobuf::internal::ArenaStringPtr mo_http_endpoint_;
413 friend struct ::protobuf_goby_2facomms_2fprotobuf_2frockblock_5fsimulator_5fconfig_2eproto::TableStruct;
421 #pragma GCC diagnostic push
422 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
428 return (_has_bits_[0] & 0x00000001u) != 0;
430 inline void RockBLOCKSimulatorConfig_IMEIToModemID::set_has_imei() {
431 _has_bits_[0] |= 0x00000001u;
433 inline void RockBLOCKSimulatorConfig_IMEIToModemID::clear_has_imei() {
434 _has_bits_[0] &= ~0x00000001u;
442 return imei_.GetNoArena();
458 GOOGLE_DCHECK(value != NULL);
466 ::std::string(
reinterpret_cast<const char*
>(value), size));
494 return (_has_bits_[0] & 0x00000004u) != 0;
496 inline void RockBLOCKSimulatorConfig_IMEIToModemID::set_has_modem_id() {
497 _has_bits_[0] |= 0x00000004u;
499 inline void RockBLOCKSimulatorConfig_IMEIToModemID::clear_has_modem_id() {
500 _has_bits_[0] &= ~0x00000004u;
504 clear_has_modem_id();
518 return (_has_bits_[0] & 0x00000002u) != 0;
520 inline void RockBLOCKSimulatorConfig_IMEIToModemID::set_has_pty() {
521 _has_bits_[0] |= 0x00000002u;
523 inline void RockBLOCKSimulatorConfig_IMEIToModemID::clear_has_pty() {
524 _has_bits_[0] &= ~0x00000002u;
526 inline const ::goby::middleware::protobuf::PTYConfig& RockBLOCKSimulatorConfig_IMEIToModemID::_internal_pty()
const {
530 const ::goby::middleware::protobuf::PTYConfig* p = pty_;
545 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::PTYConfig>(GetArenaNoVirtual());
553 if (message_arena == NULL) {
558 if (message_arena != submessage_arena) {
559 pty = ::google::protobuf::internal::GetOwnedMessage(
560 message_arena,
pty, submessage_arena);
576 return (_has_bits_[0] & 0x00000004u) != 0;
578 inline void RockBLOCKSimulatorConfig::set_has_app() {
579 _has_bits_[0] |= 0x00000004u;
581 inline void RockBLOCKSimulatorConfig::clear_has_app() {
582 _has_bits_[0] &= ~0x00000004u;
584 inline const ::goby::middleware::protobuf::AppConfig& RockBLOCKSimulatorConfig::_internal_app()
const {
588 const ::goby::middleware::protobuf::AppConfig* p = app_;
603 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaNoVirtual());
611 if (message_arena == NULL) {
616 if (message_arena != submessage_arena) {
617 app = ::google::protobuf::internal::GetOwnedMessage(
618 message_arena,
app, submessage_arena);
630 return imei_to_id_.size();
637 return imei_to_id_.Mutable(index);
639 inline ::google::protobuf::RepeatedPtrField< ::goby::apps::acomms::protobuf::RockBLOCKSimulatorConfig_IMEIToModemID >*
646 return imei_to_id_.Get(index);
650 return imei_to_id_.Add();
652 inline const ::google::protobuf::RepeatedPtrField< ::goby::apps::acomms::protobuf::RockBLOCKSimulatorConfig_IMEIToModemID >&
660 return (_has_bits_[0] & 0x00000001u) != 0;
662 inline void RockBLOCKSimulatorConfig::set_has_mo_http_server() {
663 _has_bits_[0] |= 0x00000001u;
665 inline void RockBLOCKSimulatorConfig::clear_has_mo_http_server() {
666 _has_bits_[0] &= ~0x00000001u;
670 clear_has_mo_http_server();
674 return mo_http_server_.GetNoArena();
677 set_has_mo_http_server();
683 set_has_mo_http_server();
684 mo_http_server_.SetNoArena(
690 GOOGLE_DCHECK(value != NULL);
691 set_has_mo_http_server();
696 set_has_mo_http_server();
698 ::std::string(
reinterpret_cast<const char*
>(value), size));
702 set_has_mo_http_server();
711 clear_has_mo_http_server();
716 set_has_mo_http_server();
718 clear_has_mo_http_server();
726 return (_has_bits_[0] & 0x00000002u) != 0;
728 inline void RockBLOCKSimulatorConfig::set_has_mo_http_endpoint() {
729 _has_bits_[0] |= 0x00000002u;
731 inline void RockBLOCKSimulatorConfig::clear_has_mo_http_endpoint() {
732 _has_bits_[0] &= ~0x00000002u;
736 clear_has_mo_http_endpoint();
740 return mo_http_endpoint_.GetNoArena();
743 set_has_mo_http_endpoint();
749 set_has_mo_http_endpoint();
750 mo_http_endpoint_.SetNoArena(
756 GOOGLE_DCHECK(value != NULL);
757 set_has_mo_http_endpoint();
762 set_has_mo_http_endpoint();
764 ::std::string(
reinterpret_cast<const char*
>(value), size));
768 set_has_mo_http_endpoint();
777 clear_has_mo_http_endpoint();
782 set_has_mo_http_endpoint();
784 clear_has_mo_http_endpoint();
792 return (_has_bits_[0] & 0x00000008u) != 0;
794 inline void RockBLOCKSimulatorConfig::set_has_mt_http_server_port() {
795 _has_bits_[0] |= 0x00000008u;
797 inline void RockBLOCKSimulatorConfig::clear_has_mt_http_server_port() {
798 _has_bits_[0] &= ~0x00000008u;
801 mt_http_server_port_ = 8081u;
802 clear_has_mt_http_server_port();
806 return mt_http_server_port_;
809 set_has_mt_http_server_port();
810 mt_http_server_port_ = value;
815 #pragma GCC diagnostic pop
829 #endif // PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2frockblock_5fsimulator_5fconfig_2eproto