4 #ifndef PROTOBUF_INCLUDED_goby_2ftest_2fzeromq_2fmiddleware_5fspeed_2ftest_2eproto
5 #define PROTOBUF_INCLUDED_goby_2ftest_2fzeromq_2fmiddleware_5fspeed_2ftest_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>
33 #include <boost/units/quantity.hpp>
34 #include <boost/units/absolute.hpp>
35 #include <boost/units/dimensionless_type.hpp>
36 #include <boost/units/make_scaled_unit.hpp>
38 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2ftest_2fzeromq_2fmiddleware_5fspeed_2ftest_2eproto
43 static const ::google::protobuf::internal::ParseTableField
entries[];
44 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
45 static const ::google::protobuf::internal::ParseTable
schema[3];
57 class LargeDefaultTypeInternal;
60 class ReadyDefaultTypeInternal;
63 class SampleDefaultTypeInternal;
97 *
this = ::std::move(from);
101 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
102 if (
this != &from) InternalSwap(&from);
110 return _internal_metadata_.unknown_fields();
113 return _internal_metadata_.mutable_unknown_fields();
116 static const ::google::protobuf::Descriptor*
descriptor();
121 return reinterpret_cast<const Ready*
>(
135 return CreateMaybeMessage<Ready>(NULL);
139 return CreateMaybeMessage<Ready>(arena);
141 void CopyFrom(const ::google::protobuf::Message& from)
final;
142 void MergeFrom(const ::google::protobuf::Message& from)
final;
150 ::
google::protobuf::io::CodedInputStream* input) final;
152 ::
google::protobuf::io::CodedOutputStream* output) const final;
154 bool deterministic, ::
google::protobuf::uint8* target) const final;
160 void SetCachedSize(
int size)
const final;
161 void InternalSwap(
Ready* other);
163 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
166 inline void* MaybeArenaPtr()
const {
180 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
181 ::
google::protobuf::internal::HasBits<1> _has_bits_;
182 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
201 *
this = ::std::move(from);
204 inline Sample&
operator=(Sample&& from) noexcept {
205 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
206 if (
this != &from) InternalSwap(&from);
214 return _internal_metadata_.unknown_fields();
217 return _internal_metadata_.mutable_unknown_fields();
220 static const ::google::protobuf::Descriptor*
descriptor();
225 return reinterpret_cast<const Sample*
>(
239 return CreateMaybeMessage<Sample>(NULL);
243 return CreateMaybeMessage<Sample>(arena);
245 void CopyFrom(const ::google::protobuf::Message& from)
final;
246 void MergeFrom(const ::google::protobuf::Message& from)
final;
254 ::
google::protobuf::io::CodedInputStream* input) final;
256 ::
google::protobuf::io::CodedOutputStream* output) const final;
258 bool deterministic, ::
google::protobuf::uint8* target) const final;
264 void SetCachedSize(
int size)
const final;
265 void InternalSwap(
Sample* other);
267 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
270 inline void* MaybeArenaPtr()
const {
282 bool has_temperature() const;
283 void clear_temperature();
284 static const
int kTemperatureFieldNumber = 1;
285 double temperature() const;
286 void set_temperature(
double value);
289 bool has_salinity() const;
290 void clear_salinity();
291 static const
int kSalinityFieldNumber = 2;
293 void set_salinity(
double value);
296 bool has_depth() const;
298 static const
int kDepthFieldNumber = 3;
299 double depth() const;
300 void set_depth(
double value);
304 void set_has_temperature();
305 void clear_has_temperature();
306 void set_has_salinity();
307 void clear_has_salinity();
308 void set_has_depth();
309 void clear_has_depth();
312 size_t RequiredFieldsByteSizeFallback() const;
314 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
315 ::
google::protobuf::internal::HasBits<1> _has_bits_;
316 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
338 *
this = ::std::move(from);
341 inline Large&
operator=(Large&& from) noexcept {
342 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
343 if (
this != &from) InternalSwap(&from);
351 return _internal_metadata_.unknown_fields();
354 return _internal_metadata_.mutable_unknown_fields();
357 static const ::google::protobuf::Descriptor*
descriptor();
362 return reinterpret_cast<const Large*
>(
376 return CreateMaybeMessage<Large>(NULL);
380 return CreateMaybeMessage<Large>(arena);
382 void CopyFrom(const ::google::protobuf::Message& from)
final;
383 void MergeFrom(const ::google::protobuf::Message& from)
final;
391 ::
google::protobuf::io::CodedInputStream* input) final;
393 ::
google::protobuf::io::CodedOutputStream* output) const final;
395 bool deterministic, ::
google::protobuf::uint8* target) const final;
401 void SetCachedSize(
int size)
const final;
402 void InternalSwap(
Large* other);
404 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
407 inline void* MaybeArenaPtr()
const {
419 bool has_data() const;
421 static const
int kDataFieldNumber = 1;
422 const ::std::
string& data() const;
423 void set_data(const ::std::
string& value);
425 void set_data(::std::string&& value);
427 void set_data(
const char* value);
428 void set_data(
const void* value,
size_t size);
429 ::std::string* mutable_data();
430 ::std::string* release_data();
431 void set_allocated_data(::std::string* data);
436 void clear_has_data();
438 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
439 ::google::protobuf::internal::HasBits<1> _has_bits_;
440 mutable ::google::protobuf::internal::CachedSize _cached_size_;
441 ::google::protobuf::internal::ArenaStringPtr data_;
442 friend struct ::protobuf_goby_2ftest_2fzeromq_2fmiddleware_5fspeed_2ftest_2eproto::TableStruct;
450 #pragma GCC diagnostic push
451 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
461 return (_has_bits_[0] & 0x00000001u) != 0;
463 inline void Sample::set_has_temperature() {
464 _has_bits_[0] |= 0x00000001u;
466 inline void Sample::clear_has_temperature() {
467 _has_bits_[0] &= ~0x00000001u;
471 clear_has_temperature();
478 set_has_temperature();
479 temperature_ = value;
485 return (_has_bits_[0] & 0x00000002u) != 0;
487 inline void Sample::set_has_salinity() {
488 _has_bits_[0] |= 0x00000002u;
490 inline void Sample::clear_has_salinity() {
491 _has_bits_[0] &= ~0x00000002u;
495 clear_has_salinity();
509 return (_has_bits_[0] & 0x00000004u) != 0;
511 inline void Sample::set_has_depth() {
512 _has_bits_[0] |= 0x00000004u;
514 inline void Sample::clear_has_depth() {
515 _has_bits_[0] &= ~0x00000004u;
537 return (_has_bits_[0] & 0x00000001u) != 0;
539 inline void Large::set_has_data() {
540 _has_bits_[0] |= 0x00000001u;
542 inline void Large::clear_has_data() {
543 _has_bits_[0] &= ~0x00000001u;
551 return data_.GetNoArena();
567 GOOGLE_DCHECK(value != NULL);
575 ::std::string(
reinterpret_cast<const char*
>(value), size));
602 #pragma GCC diagnostic pop
618 #endif // PROTOBUF_INCLUDED_goby_2ftest_2fzeromq_2fmiddleware_5fspeed_2ftest_2eproto