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 < 3012000
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 3012004 < 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_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/inlined_string_field.h>
29 #include <google/protobuf/metadata_lite.h>
30 #include <google/protobuf/generated_message_reflection.h>
32 #include <google/protobuf/repeated_field.h>
33 #include <google/protobuf/extension_set.h>
34 #include <google/protobuf/generated_enum_reflection.h>
35 #include <google/protobuf/unknown_field_set.h>
36 #include "dccl/option_extensions.pb.h"
37 #include <boost/units/quantity.hpp>
38 #include <boost/units/absolute.hpp>
39 #include <boost/units/dimensionless_type.hpp>
40 #include <boost/units/make_scaled_unit.hpp>
42 #include <google/protobuf/port_def.inc>
43 #define PROTOBUF_INTERNAL_EXPORT_goby_2fmiddleware_2fprotobuf_2flogger_2eproto
44 PROTOBUF_NAMESPACE_OPEN
48 PROTOBUF_NAMESPACE_CLOSE
52 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
54 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
56 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
58 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata
field_metadata[];
64 namespace middleware {
67 class LoggerRequestDefaultTypeInternal;
72 PROTOBUF_NAMESPACE_OPEN
73 template<> ::goby::middleware::protobuf::LoggerRequest* Arena::CreateMaybeMessage<::goby::middleware::protobuf::LoggerRequest>(Arena*);
74 PROTOBUF_NAMESPACE_CLOSE
76 namespace middleware {
92 static_assert(::std::is_same<T, LoggerRequest_State>::value ||
93 ::std::is_integral<T>::value,
94 "Incorrect type passed to function LoggerRequest_State_Name.");
95 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
100 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<LoggerRequest_State>(
106 public ::PROTOBUF_NAMESPACE_ID::Message {
114 *
this = ::std::move(from);
117 inline LoggerRequest&
operator=(
const LoggerRequest& from) {
121 inline LoggerRequest&
operator=(LoggerRequest&& from) noexcept {
122 if (GetArena() == from.GetArena()) {
123 if (
this != &from) InternalSwap(&from);
131 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
134 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
137 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
138 return GetDescriptor();
141 return GetMetadataStatic().descriptor;
144 return GetMetadataStatic().reflection;
150 return reinterpret_cast<const LoggerRequest*
>(
153 static constexpr
int kIndexInFileMessages =
156 friend void swap(LoggerRequest& a, LoggerRequest& b) {
159 inline void Swap(LoggerRequest* other) {
160 if (other ==
this)
return;
161 if (GetArena() == other->GetArena()) {
164 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
168 if (other ==
this)
return;
169 GOOGLE_DCHECK(GetArena() == other->GetArena());
175 inline LoggerRequest*
New() const final {
176 return CreateMaybeMessage<LoggerRequest>(
nullptr);
179 LoggerRequest*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
180 return CreateMaybeMessage<LoggerRequest>(arena);
182 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
183 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
186 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
187 bool IsInitialized() const final;
190 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
191 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
192 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
193 int GetCachedSize() const final {
return _cached_size_.Get(); }
196 inline void SharedCtor();
197 inline void SharedDtor();
198 void SetCachedSize(
int size)
const final;
199 void InternalSwap(LoggerRequest* other);
200 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
201 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
202 return "goby.middleware.protobuf.LoggerRequest";
207 static void ArenaDtor(
void*
object);
208 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
213 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
223 static constexpr
State START_LOGGING =
225 static constexpr
State STOP_LOGGING =
236 static constexpr
int State_ARRAYSIZE =
238 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
243 static inline const std::string&
State_Name(T enum_t_value) {
244 static_assert(::std::is_same<T, State>::value ||
245 ::std::is_integral<T>::value,
246 "Incorrect type passed to function State_Name.");
257 kCloseLogFieldNumber = 2,
258 kRequestedStateFieldNumber = 1,
263 bool _internal_has_close_log()
const;
269 bool _internal_close_log()
const;
270 void _internal_set_close_log(
bool value);
276 bool _internal_has_requested_state()
const;
290 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
291 typedef void InternalArenaConstructable_;
292 typedef void DestructorSkippable_;
293 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
294 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
296 int requested_state_;
297 friend struct ::TableStruct_goby_2fmiddleware_2fprotobuf_2flogger_2eproto;
305 #pragma GCC diagnostic push
306 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
311 inline bool LoggerRequest::_internal_has_requested_state()
const {
312 bool value = (_has_bits_[0] & 0x00000002u) != 0;
315 inline bool LoggerRequest::has_requested_state()
const {
316 return _internal_has_requested_state();
318 inline void LoggerRequest::clear_requested_state() {
319 requested_state_ = 1;
320 _has_bits_[0] &= ~0x00000002u;
327 return _internal_requested_state();
331 _has_bits_[0] |= 0x00000002u;
332 requested_state_ =
value;
335 _internal_set_requested_state(value);
340 inline bool LoggerRequest::_internal_has_close_log()
const {
341 bool value = (_has_bits_[0] & 0x00000001u) != 0;
344 inline bool LoggerRequest::has_close_log()
const {
345 return _internal_has_close_log();
347 inline void LoggerRequest::clear_close_log() {
349 _has_bits_[0] &= ~0x00000001u;
351 inline bool LoggerRequest::_internal_close_log()
const {
354 inline bool LoggerRequest::close_log()
const {
356 return _internal_close_log();
358 inline void LoggerRequest::_internal_set_close_log(
bool value) {
359 _has_bits_[0] |= 0x00000001u;
362 inline void LoggerRequest::set_close_log(
bool value) {
363 _internal_set_close_log(value);
368 #pragma GCC diagnostic pop
377 PROTOBUF_NAMESPACE_OPEN
381 inline const EnumDescriptor* GetEnumDescriptor< ::goby::middleware::protobuf::LoggerRequest_State>() {
385 PROTOBUF_NAMESPACE_CLOSE
389 #include <google/protobuf/port_undef.inc>
static void InitAsDefaultInstance()
void set_requested_state(::goby::middleware::protobuf::LoggerRequest_State value)
void MergeFrom(const LoggerRequest &from)
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * State_descriptor()
static const LoggerRequest * internal_default_instance()
bool has_close_log() const
void UnsafeArenaSwap(LoggerRequest *other)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
friend void swap(LoggerRequest &a, LoggerRequest &b)
void clear_requested_state()
void set_close_log(bool value)
bool has_requested_state() const
LoggerRequest & operator=(LoggerRequest &&from) noexcept
LoggerRequest(LoggerRequest &&from) noexcept
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
static bool State_IsValid(int value)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
LoggerRequest(::PROTOBUF_NAMESPACE_ID::Arena *arena)
static const std::string & State_Name(T enum_t_value)
::goby::middleware::protobuf::LoggerRequest_State requested_state() const
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void CopyFrom(const LoggerRequest &from)
static bool State_Parse(const std::string &name, State *value)
static const LoggerRequest & default_instance()
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
LoggerRequest_State State
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
LoggerRequest & operator=(const LoggerRequest &from)
LoggerRequest * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
void Swap(LoggerRequest *other)
LoggerRequest * New() const final
LoggerRequest(const LoggerRequest &from)
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fmiddleware_2fprotobuf_2flogger_2eproto
@ value
the parser finished reading a JSON value
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(const std::string &name, LoggerRequest_State *value)
The global namespace for the Goby project.
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]