4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2fmiddleware_2fmiddleware_5fintervehicle_5fmetadata_2ftest_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2fmiddleware_2fmiddleware_5fintervehicle_5fmetadata_2ftest_2eproto
10#include <google/protobuf/port_def.inc>
11#if PROTOBUF_VERSION < 3021000
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 3021012 < 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/port_undef.inc>
23#include <google/protobuf/io/coded_stream.h>
25#include <google/protobuf/arenastring.h>
26#include <google/protobuf/generated_message_util.h>
27#include <google/protobuf/metadata_lite.h>
28#include <google/protobuf/generated_message_reflection.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 "dccl/option_extensions.pb.h"
34#include <google/protobuf/descriptor.pb.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#include <google/protobuf/port_def.inc>
41#define PROTOBUF_INTERNAL_EXPORT_goby_2ftest_2fmiddleware_2fmiddleware_5fintervehicle_5fmetadata_2ftest_2eproto
42PROTOBUF_NAMESPACE_OPEN
46PROTOBUF_NAMESPACE_CLOSE
56namespace intervehicle_metadata {
59struct SampleDefaultTypeInternal;
66PROTOBUF_NAMESPACE_OPEN
68PROTOBUF_NAMESPACE_CLOSE
72namespace intervehicle_metadata {
78 public ::PROTOBUF_NAMESPACE_ID::Message {
82 explicit PROTOBUF_CONSTEXPR
Sample(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
87 *
this = ::std::move(from);
95 if (
this == &from)
return *
this;
96 if (GetOwningArena() == from.GetOwningArena()
97 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
98 && GetOwningArena() !=
nullptr
109 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
112 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
115 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
128 return reinterpret_cast<const Sample*
>(
138 if (other ==
this)
return;
139 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
140 if (GetOwningArena() !=
nullptr &&
141 GetOwningArena() == other->GetOwningArena()) {
143 if (GetOwningArena() == other->GetOwningArena()) {
147 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
151 if (other ==
this)
return;
152 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
158 Sample*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
159 return CreateMaybeMessage<Sample>(arena);
161 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
163 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
165 Sample::MergeImpl(*
this, from);
168 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
170 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
176 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
180 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
182 void SetCachedSize(
int size)
const final;
183 void InternalSwap(
Sample* other);
186 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
187 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
188 return "goby.test.middleware.intervehicle_metadata.protobuf.Sample";
191 explicit Sample(::PROTOBUF_NAMESPACE_ID::Arena* arena,
192 bool is_message_owned =
false);
196 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
211 bool _internal_has_unused()
const;
214 const ::PROTOBUF_NAMESPACE_ID::FileOptions&
unused()
const;
215 PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::FileOptions*
release_unused();
219 const ::PROTOBUF_NAMESPACE_ID::FileOptions& _internal_unused()
const;
220 ::PROTOBUF_NAMESPACE_ID::FileOptions* _internal_mutable_unused();
223 ::PROTOBUF_NAMESPACE_ID::FileOptions*
unused);
229 bool _internal_has_a()
const;
233 void set_a(int32_t value);
235 int32_t _internal_a()
const;
236 void _internal_set_a(int32_t value);
244 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
245 typedef void InternalArenaConstructable_;
246 typedef void DestructorSkippable_;
248 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
249 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
250 ::PROTOBUF_NAMESPACE_ID::FileOptions* unused_;
254 friend struct ::TableStruct_goby_2ftest_2fmiddleware_2fmiddleware_5fintervehicle_5fmetadata_2ftest_2eproto;
262 #pragma GCC diagnostic push
263 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
268inline bool Sample::_internal_has_a()
const {
269 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
273 return _internal_has_a();
277 _impl_._has_bits_[0] &= ~0x00000002u;
279inline int32_t Sample::_internal_a()
const {
284 return _internal_a();
286inline void Sample::_internal_set_a(int32_t value) {
287 _impl_._has_bits_[0] |= 0x00000002u;
291 _internal_set_a(value);
296inline bool Sample::_internal_has_unused()
const {
297 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
298 PROTOBUF_ASSUME(!value ||
_impl_.unused_ !=
nullptr);
302 return _internal_has_unused();
304inline const ::PROTOBUF_NAMESPACE_ID::FileOptions& Sample::_internal_unused()
const {
305 const ::PROTOBUF_NAMESPACE_ID::FileOptions* p =
_impl_.unused_;
306 return p !=
nullptr ? *p :
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::FileOptions&
>(
307 ::PROTOBUF_NAMESPACE_ID::_FileOptions_default_instance_);
311 return _internal_unused();
314 ::PROTOBUF_NAMESPACE_ID::FileOptions*
unused) {
315 if (GetArenaForAllocation() ==
nullptr) {
316 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.unused_);
320 _impl_._has_bits_[0] |= 0x00000001u;
322 _impl_._has_bits_[0] &= ~0x00000001u;
327 _impl_._has_bits_[0] &= ~0x00000001u;
328 ::PROTOBUF_NAMESPACE_ID::FileOptions* temp =
_impl_.unused_;
330#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
331 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
332 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
333 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
335 if (GetArenaForAllocation() !=
nullptr) {
336 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
343 _impl_._has_bits_[0] &= ~0x00000001u;
344 ::PROTOBUF_NAMESPACE_ID::FileOptions* temp =
_impl_.unused_;
348inline ::PROTOBUF_NAMESPACE_ID::FileOptions* Sample::_internal_mutable_unused() {
349 _impl_._has_bits_[0] |= 0x00000001u;
350 if (
_impl_.unused_ ==
nullptr) {
351 auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FileOptions>(GetArenaForAllocation());
357 ::PROTOBUF_NAMESPACE_ID::FileOptions* _msg = _internal_mutable_unused();
362 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
363 if (message_arena ==
nullptr) {
364 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.unused_);
367 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
368 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
369 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
unused));
370 if (message_arena != submessage_arena) {
371 unused = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
372 message_arena,
unused, submessage_arena);
374 _impl_._has_bits_[0] |= 0x00000001u;
376 _impl_._has_bits_[0] &= ~0x00000001u;
383 #pragma GCC diagnostic pop
396#include <google/protobuf/port_undef.inc>
The global namespace for the Goby project.