4 #ifndef PROTOBUF_goby_2fmoos_2fprotobuf_2fmodem_5fid_5flookup_2eproto__INCLUDED 5 #define PROTOBUF_goby_2fmoos_2fprotobuf_2fmodem_5fid_5flookup_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 11 #if GOOGLE_PROTOBUF_VERSION < 2006000 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 2006001 < 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/generated_message_util.h> 23 #include <google/protobuf/message.h> 24 #include <google/protobuf/repeated_field.h> 25 #include <google/protobuf/extension_set.h> 26 #include <google/protobuf/generated_enum_reflection.h> 27 #include <google/protobuf/unknown_field_set.h> 28 #include <boost/units/quantity.hpp> 29 #include <boost/units/absolute.hpp> 30 #include <boost/units/dimensionless_type.hpp> 31 #include <boost/units/make_scaled_unit.hpp> 39 void protobuf_AddDesc_goby_2fmoos_2fprotobuf_2fmodem_5fid_5flookup_2eproto();
40 void protobuf_AssignDesc_goby_2fmoos_2fprotobuf_2fmodem_5fid_5flookup_2eproto();
41 void protobuf_ShutdownFile_goby_2fmoos_2fprotobuf_2fmodem_5fid_5flookup_2eproto();
45 enum ModemIdEntry_VehicleType {
46 ModemIdEntry_VehicleType_UNKNOWN = 0,
47 ModemIdEntry_VehicleType_AUV = 1,
48 ModemIdEntry_VehicleType_BUOY = 2,
49 ModemIdEntry_VehicleType_SHIP = 3,
50 ModemIdEntry_VehicleType_GLIDER = 4,
51 ModemIdEntry_VehicleType_ASC = 5
53 bool ModemIdEntry_VehicleType_IsValid(
int value);
54 const ModemIdEntry_VehicleType ModemIdEntry_VehicleType_VehicleType_MIN = ModemIdEntry_VehicleType_UNKNOWN;
55 const ModemIdEntry_VehicleType ModemIdEntry_VehicleType_VehicleType_MAX = ModemIdEntry_VehicleType_ASC;
56 const int ModemIdEntry_VehicleType_VehicleType_ARRAYSIZE = ModemIdEntry_VehicleType_VehicleType_MAX + 1;
58 const ::google::protobuf::EnumDescriptor* ModemIdEntry_VehicleType_descriptor();
59 inline const ::std::string& ModemIdEntry_VehicleType_Name(ModemIdEntry_VehicleType value) {
60 return ::google::protobuf::internal::NameOfEnum(
61 ModemIdEntry_VehicleType_descriptor(), value);
63 inline bool ModemIdEntry_VehicleType_Parse(
64 const ::std::string& name, ModemIdEntry_VehicleType* value) {
65 return ::google::protobuf::internal::ParseNamedEnum<ModemIdEntry_VehicleType>(
66 ModemIdEntry_VehicleType_descriptor(), name, value);
82 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
83 return _unknown_fields_;
86 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
87 return &_unknown_fields_;
90 static const ::google::protobuf::Descriptor* descriptor();
98 void CopyFrom(const ::google::protobuf::Message& from);
99 void MergeFrom(const ::google::protobuf::Message& from);
103 bool IsInitialized()
const;
105 int ByteSize()
const;
106 bool MergePartialFromCodedStream(
107 ::google::protobuf::io::CodedInputStream* input);
108 void SerializeWithCachedSizes(
109 ::google::protobuf::io::CodedOutputStream* output)
const;
110 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
111 int GetCachedSize()
const {
return _cached_size_; }
115 void SetCachedSize(
int size)
const;
117 ::google::protobuf::Metadata GetMetadata()
const;
121 typedef ModemIdEntry_VehicleType VehicleType;
122 static const VehicleType UNKNOWN = ModemIdEntry_VehicleType_UNKNOWN;
123 static const VehicleType AUV = ModemIdEntry_VehicleType_AUV;
124 static const VehicleType BUOY = ModemIdEntry_VehicleType_BUOY;
125 static const VehicleType SHIP = ModemIdEntry_VehicleType_SHIP;
126 static const VehicleType GLIDER = ModemIdEntry_VehicleType_GLIDER;
127 static const VehicleType ASC = ModemIdEntry_VehicleType_ASC;
128 static inline bool VehicleType_IsValid(
int value) {
129 return ModemIdEntry_VehicleType_IsValid(value);
131 static const VehicleType VehicleType_MIN =
132 ModemIdEntry_VehicleType_VehicleType_MIN;
133 static const VehicleType VehicleType_MAX =
134 ModemIdEntry_VehicleType_VehicleType_MAX;
135 static const int VehicleType_ARRAYSIZE =
136 ModemIdEntry_VehicleType_VehicleType_ARRAYSIZE;
137 static inline const ::google::protobuf::EnumDescriptor*
138 VehicleType_descriptor() {
139 return ModemIdEntry_VehicleType_descriptor();
141 static inline const ::std::string& VehicleType_Name(VehicleType value) {
142 return ModemIdEntry_VehicleType_Name(value);
144 static inline bool VehicleType_Parse(const ::std::string& name,
145 VehicleType* value) {
146 return ModemIdEntry_VehicleType_Parse(name, value);
152 inline bool has_modem_id()
const;
153 inline void clear_modem_id();
154 static const int kModemIdFieldNumber = 1;
155 inline ::google::protobuf::uint32 modem_id()
const;
156 inline void set_modem_id(::google::protobuf::uint32 value);
159 inline bool has_name()
const;
160 inline void clear_name();
161 static const int kNameFieldNumber = 2;
162 inline const ::std::string& name()
const;
163 inline void set_name(const ::std::string& value);
164 inline void set_name(
const char* value);
165 inline void set_name(
const char* value,
size_t size);
166 inline ::std::string* mutable_name();
167 inline ::std::string* release_name();
168 inline void set_allocated_name(::std::string* name);
171 inline bool has_type()
const;
172 inline void clear_type();
173 static const int kTypeFieldNumber = 3;
174 inline ::goby::moos::protobuf::ModemIdEntry_VehicleType type()
const;
175 inline void set_type(::goby::moos::protobuf::ModemIdEntry_VehicleType value);
179 inline void set_has_modem_id();
180 inline void clear_has_modem_id();
181 inline void set_has_name();
182 inline void clear_has_name();
183 inline void set_has_type();
184 inline void clear_has_type();
186 ::google::protobuf::UnknownFieldSet _unknown_fields_;
188 ::google::protobuf::uint32 _has_bits_[1];
189 mutable int _cached_size_;
190 ::std::string* name_;
191 ::google::protobuf::uint32 modem_id_;
193 friend void protobuf_AddDesc_goby_2fmoos_2fprotobuf_2fmodem_5fid_5flookup_2eproto();
194 friend void protobuf_AssignDesc_goby_2fmoos_2fprotobuf_2fmodem_5fid_5flookup_2eproto();
195 friend void protobuf_ShutdownFile_goby_2fmoos_2fprotobuf_2fmodem_5fid_5flookup_2eproto();
197 void InitAsDefaultInstance();
208 inline bool ModemIdEntry::has_modem_id()
const {
209 return (_has_bits_[0] & 0x00000001u) != 0;
211 inline void ModemIdEntry::set_has_modem_id() {
212 _has_bits_[0] |= 0x00000001u;
214 inline void ModemIdEntry::clear_has_modem_id() {
215 _has_bits_[0] &= ~0x00000001u;
217 inline void ModemIdEntry::clear_modem_id() {
219 clear_has_modem_id();
221 inline ::google::protobuf::uint32 ModemIdEntry::modem_id()
const {
225 inline void ModemIdEntry::set_modem_id(::google::protobuf::uint32 value) {
232 inline bool ModemIdEntry::has_name()
const {
233 return (_has_bits_[0] & 0x00000002u) != 0;
235 inline void ModemIdEntry::set_has_name() {
236 _has_bits_[0] |= 0x00000002u;
238 inline void ModemIdEntry::clear_has_name() {
239 _has_bits_[0] &= ~0x00000002u;
241 inline void ModemIdEntry::clear_name() {
242 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
247 inline const ::std::string& ModemIdEntry::name()
const {
251 inline void ModemIdEntry::set_name(const ::std::string& value) {
253 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
254 name_ = new ::std::string;
256 name_->assign(value);
259 inline void ModemIdEntry::set_name(
const char* value) {
261 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
262 name_ = new ::std::string;
264 name_->assign(value);
267 inline void ModemIdEntry::set_name(
const char* value,
size_t size) {
269 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
270 name_ = new ::std::string;
272 name_->assign(reinterpret_cast<const char*>(value), size);
275 inline ::std::string* ModemIdEntry::mutable_name() {
277 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
278 name_ = new ::std::string;
283 inline ::std::string* ModemIdEntry::release_name() {
285 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
288 ::std::string* temp = name_;
289 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
293 inline void ModemIdEntry::set_allocated_name(::std::string* name) {
294 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
302 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
308 inline bool ModemIdEntry::has_type()
const {
309 return (_has_bits_[0] & 0x00000004u) != 0;
311 inline void ModemIdEntry::set_has_type() {
312 _has_bits_[0] |= 0x00000004u;
314 inline void ModemIdEntry::clear_has_type() {
315 _has_bits_[0] &= ~0x00000004u;
317 inline void ModemIdEntry::clear_type() {
321 inline ::goby::moos::protobuf::ModemIdEntry_VehicleType ModemIdEntry::type()
const {
323 return static_cast< ::goby::moos::protobuf::ModemIdEntry_VehicleType
>(type_);
325 inline void ModemIdEntry::set_type(::goby::moos::protobuf::ModemIdEntry_VehicleType value) {
326 assert(::goby::moos::protobuf::ModemIdEntry_VehicleType_IsValid(value));
343 template <>
struct is_proto_enum< ::goby::moos::protobuf::ModemIdEntry_VehicleType> : ::google::protobuf::internal::true_type {};
345 inline const EnumDescriptor* GetEnumDescriptor< ::goby::moos::protobuf::ModemIdEntry_VehicleType>() {
346 return ::goby::moos::protobuf::ModemIdEntry_VehicleType_descriptor();
355 #endif // PROTOBUF_goby_2fmoos_2fprotobuf_2fmodem_5fid_5flookup_2eproto__INCLUDED
The global namespace for the Goby project.