4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2flogger_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2flogger_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/generated_enum_reflection.h>
33#include <google/protobuf/unknown_field_set.h>
34#include <boost/units/quantity.hpp>
35#include <boost/units/absolute.hpp>
36#include <boost/units/dimensionless_type.hpp>
37#include <boost/units/make_scaled_unit.hpp>
39#include <google/protobuf/port_def.inc>
40#define PROTOBUF_INTERNAL_EXPORT_goby_2fmiddleware_2fprotobuf_2flogger_2eproto
41PROTOBUF_NAMESPACE_OPEN
45PROTOBUF_NAMESPACE_CLOSE
56struct LoggerRequestDefaultTypeInternal;
61PROTOBUF_NAMESPACE_OPEN
63PROTOBUF_NAMESPACE_CLOSE
81 static_assert(::std::is_same<T, LoggerRequest_State>::value ||
82 ::std::is_integral<T>::value,
83 "Incorrect type passed to function LoggerRequest_State_Name.");
84 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
89 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<LoggerRequest_State>(
95 public ::PROTOBUF_NAMESPACE_ID::Message {
99 explicit PROTOBUF_CONSTEXPR
LoggerRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
104 *
this = ::std::move(from);
112 if (
this == &from)
return *
this;
113 if (GetOwningArena() == from.GetOwningArena()
114 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
115 && GetOwningArena() !=
nullptr
126 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
129 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
132 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
155 if (other ==
this)
return;
156 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
157 if (GetOwningArena() !=
nullptr &&
158 GetOwningArena() == other->GetOwningArena()) {
160 if (GetOwningArena() == other->GetOwningArena()) {
164 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
168 if (other ==
this)
return;
169 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
176 return CreateMaybeMessage<LoggerRequest>(arena);
178 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
180 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
182 LoggerRequest::MergeImpl(*
this, from);
185 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
187 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
193 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
197 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
199 void SetCachedSize(
int size)
const final;
203 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
204 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
205 return "goby.middleware.protobuf.LoggerRequest";
209 bool is_message_owned =
false);
213 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
235 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
240 static inline const std::string&
State_Name(T enum_t_value) {
241 static_assert(::std::is_same<T, State>::value ||
242 ::std::is_integral<T>::value,
243 "Incorrect type passed to function State_Name.");
246 static inline bool State_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
260 bool _internal_has_close_log()
const;
266 bool _internal_close_log()
const;
267 void _internal_set_close_log(
bool value);
273 bool _internal_has_requested_state()
const;
287 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
288 typedef void InternalArenaConstructable_;
289 typedef void DestructorSkippable_;
291 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
292 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
294 int requested_state_;
297 friend struct ::TableStruct_goby_2fmiddleware_2fprotobuf_2flogger_2eproto;
305 #pragma GCC diagnostic push
306 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
311inline bool LoggerRequest::_internal_has_requested_state()
const {
312 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
316 return _internal_has_requested_state();
319 _impl_.requested_state_ = 1;
320 _impl_._has_bits_[0] &= ~0x00000002u;
322inline ::goby::middleware::protobuf::LoggerRequest_State LoggerRequest::_internal_requested_state()
const {
327 return _internal_requested_state();
331 _impl_._has_bits_[0] |= 0x00000002u;
332 _impl_.requested_state_ = value;
335 _internal_set_requested_state(value);
340inline bool LoggerRequest::_internal_has_close_log()
const {
341 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
345 return _internal_has_close_log();
348 _impl_.close_log_ =
false;
349 _impl_._has_bits_[0] &= ~0x00000001u;
351inline bool LoggerRequest::_internal_close_log()
const {
356 return _internal_close_log();
358inline void LoggerRequest::_internal_set_close_log(
bool value) {
359 _impl_._has_bits_[0] |= 0x00000001u;
360 _impl_.close_log_ = value;
363 _internal_set_close_log(value);
368 #pragma GCC diagnostic pop
377PROTOBUF_NAMESPACE_OPEN
382 return ::goby::middleware::protobuf::LoggerRequest_State_descriptor();
385PROTOBUF_NAMESPACE_CLOSE
389#include <google/protobuf/port_undef.inc>
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * State_descriptor()
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
void MergeFrom(const LoggerRequest &from)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void set_close_log(bool value)
void clear_requested_state()
size_t ByteSizeLong() const final
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
LoggerRequest(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
~LoggerRequest() override
static constexpr int kIndexInFileMessages
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
static constexpr State ROTATE_LOG
static bool State_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, State *value)
static const std::string & State_Name(T enum_t_value)
LoggerRequest & operator=(LoggerRequest &&from) noexcept
friend void swap(LoggerRequest &a, LoggerRequest &b)
bool has_requested_state() const
bool has_close_log() const
int GetCachedSize() const final
void CopyFrom(const LoggerRequest &from)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
static constexpr State START_LOGGING
static constexpr State State_MAX
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
void UnsafeArenaSwap(LoggerRequest *other)
void Swap(LoggerRequest *other)
PROTOBUF_CONSTEXPR LoggerRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
static bool State_IsValid(int value)
LoggerRequest(LoggerRequest &&from) noexcept
void set_requested_state(::goby::middleware::protobuf::LoggerRequest_State value)
::goby::middleware::protobuf::LoggerRequest_State requested_state() const
static const LoggerRequest & default_instance()
LoggerRequest(const LoggerRequest &from)
LoggerRequest * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
static const LoggerRequest * internal_default_instance()
bool IsInitialized() const final
static const ClassData _class_data_
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
LoggerRequest & operator=(const LoggerRequest &from)
@ kRequestedStateFieldNumber
static constexpr State STOP_LOGGING
static constexpr int State_ARRAYSIZE
static constexpr State State_MIN
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fmiddleware_2fprotobuf_2flogger_2eproto
const EnumDescriptor * GetEnumDescriptor< ::goby::middleware::protobuf::LoggerRequest_State >()
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * LoggerRequest_State_descriptor()
LoggerRequestDefaultTypeInternal _LoggerRequest_default_instance_
@ LoggerRequest_State_STOP_LOGGING
@ LoggerRequest_State_START_LOGGING
@ LoggerRequest_State_ROTATE_LOG
constexpr int LoggerRequest_State_State_ARRAYSIZE
constexpr LoggerRequest_State LoggerRequest_State_State_MIN
bool LoggerRequest_State_IsValid(int value)
const std::string & LoggerRequest_State_Name(T enum_t_value)
constexpr LoggerRequest_State LoggerRequest_State_State_MAX
bool LoggerRequest_State_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, LoggerRequest_State *value)
The global namespace for the Goby project.
static const uint32_t offsets[]