Goby3 3.2.3
2025.05.13
Loading...
Searching...
No Matches
logger.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: goby/middleware/protobuf/logger.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2flogger_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2flogger_2eproto
6
7#include <limits>
8#include <string>
9
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
14#error your headers.
15#endif
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.
20#endif
21
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> // IWYU pragma: export
31#include <google/protobuf/extension_set.h> // IWYU pragma: export
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>
38// @@protoc_insertion_point(includes)
39#include <google/protobuf/port_def.inc>
40#define PROTOBUF_INTERNAL_EXPORT_goby_2fmiddleware_2fprotobuf_2flogger_2eproto
41PROTOBUF_NAMESPACE_OPEN
42namespace internal {
43class AnyMetadata;
44} // namespace internal
45PROTOBUF_NAMESPACE_CLOSE
46
47// Internal implementation detail -- do not use these members.
51extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fmiddleware_2fprotobuf_2flogger_2eproto;
52namespace goby {
53namespace middleware {
54namespace protobuf {
55class LoggerRequest;
56struct LoggerRequestDefaultTypeInternal;
57extern LoggerRequestDefaultTypeInternal _LoggerRequest_default_instance_;
58} // namespace protobuf
59} // namespace middleware
60} // namespace goby
61PROTOBUF_NAMESPACE_OPEN
62template<> ::goby::middleware::protobuf::LoggerRequest* Arena::CreateMaybeMessage<::goby::middleware::protobuf::LoggerRequest>(Arena*);
63PROTOBUF_NAMESPACE_CLOSE
64namespace goby {
65namespace middleware {
66namespace protobuf {
67
77
78const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* LoggerRequest_State_descriptor();
79template<typename T>
80inline const std::string& LoggerRequest_State_Name(T enum_t_value) {
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(
85 LoggerRequest_State_descriptor(), enum_t_value);
86}
88 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, LoggerRequest_State* value) {
89 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<LoggerRequest_State>(
90 LoggerRequest_State_descriptor(), name, value);
91}
92// ===================================================================
93
94class LoggerRequest final :
95 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.middleware.protobuf.LoggerRequest) */ {
96 public:
97 inline LoggerRequest() : LoggerRequest(nullptr) {}
98 ~LoggerRequest() override;
99 explicit PROTOBUF_CONSTEXPR LoggerRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
100
103 : LoggerRequest() {
104 *this = ::std::move(from);
105 }
106
107 inline LoggerRequest& operator=(const LoggerRequest& from) {
108 CopyFrom(from);
109 return *this;
110 }
111 inline LoggerRequest& operator=(LoggerRequest&& from) noexcept {
112 if (this == &from) return *this;
113 if (GetOwningArena() == from.GetOwningArena()
114 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
115 && GetOwningArena() != nullptr
116 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
117 ) {
118 InternalSwap(&from);
119 } else {
120 CopyFrom(from);
121 }
122 return *this;
123 }
124
125 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
126 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
127 }
128 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
129 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
130 }
131
132 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
133 return GetDescriptor();
134 }
135 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
136 return default_instance().GetMetadata().descriptor;
137 }
138 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
139 return default_instance().GetMetadata().reflection;
140 }
143 }
145 return reinterpret_cast<const LoggerRequest*>(
147 }
148 static constexpr int kIndexInFileMessages =
149 0;
150
151 friend void swap(LoggerRequest& a, LoggerRequest& b) {
152 a.Swap(&b);
153 }
154 inline void Swap(LoggerRequest* other) {
155 if (other == this) return;
156 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
157 if (GetOwningArena() != nullptr &&
158 GetOwningArena() == other->GetOwningArena()) {
159 #else // PROTOBUF_FORCE_COPY_IN_SWAP
160 if (GetOwningArena() == other->GetOwningArena()) {
161 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
162 InternalSwap(other);
163 } else {
164 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
165 }
166 }
168 if (other == this) return;
169 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
170 InternalSwap(other);
171 }
172
173 // implements Message ----------------------------------------------
174
175 LoggerRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
176 return CreateMaybeMessage<LoggerRequest>(arena);
177 }
178 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
179 void CopyFrom(const LoggerRequest& from);
180 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
181 void MergeFrom( const LoggerRequest& from) {
182 LoggerRequest::MergeImpl(*this, from);
183 }
184 private:
185 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
186 public:
187 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
188 bool IsInitialized() const final;
189
190 size_t ByteSizeLong() const final;
191 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
193 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
194 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
195
196 private:
197 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
198 void SharedDtor();
199 void SetCachedSize(int size) const final;
200 void InternalSwap(LoggerRequest* other);
201
202 private:
203 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
204 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
205 return "goby.middleware.protobuf.LoggerRequest";
206 }
207 protected:
208 explicit LoggerRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
209 bool is_message_owned = false);
210 public:
211
212 static const ClassData _class_data_;
213 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
214
215 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
216
217 // nested types ----------------------------------------------------
218
220 static constexpr State START_LOGGING =
222 static constexpr State STOP_LOGGING =
224 static constexpr State ROTATE_LOG =
226 static inline bool State_IsValid(int value) {
227 return LoggerRequest_State_IsValid(value);
228 }
229 static constexpr State State_MIN =
231 static constexpr State State_MAX =
233 static constexpr int State_ARRAYSIZE =
235 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
239 template<typename T>
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.");
244 return LoggerRequest_State_Name(enum_t_value);
245 }
246 static inline bool State_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
247 State* value) {
248 return LoggerRequest_State_Parse(name, value);
249 }
250
251 // accessors -------------------------------------------------------
252
253 enum : int {
256 };
257 // optional bool close_log = 2 [default = false];
258 bool has_close_log() const;
259 private:
260 bool _internal_has_close_log() const;
261 public:
262 void clear_close_log();
263 bool close_log() const;
264 void set_close_log(bool value);
265 private:
266 bool _internal_close_log() const;
267 void _internal_set_close_log(bool value);
268 public:
269
270 // required .goby.middleware.protobuf.LoggerRequest.State requested_state = 1;
271 bool has_requested_state() const;
272 private:
273 bool _internal_has_requested_state() const;
274 public:
278 private:
279 ::goby::middleware::protobuf::LoggerRequest_State _internal_requested_state() const;
280 void _internal_set_requested_state(::goby::middleware::protobuf::LoggerRequest_State value);
281 public:
282
283 // @@protoc_insertion_point(class_scope:goby.middleware.protobuf.LoggerRequest)
284 private:
285 class _Internal;
286
287 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
288 typedef void InternalArenaConstructable_;
289 typedef void DestructorSkippable_;
290 struct Impl_ {
291 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
292 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
293 bool close_log_;
294 int requested_state_;
295 };
296 union { Impl_ _impl_; };
297 friend struct ::TableStruct_goby_2fmiddleware_2fprotobuf_2flogger_2eproto;
298};
299// ===================================================================
300
301
302// ===================================================================
303
304#ifdef __GNUC__
305 #pragma GCC diagnostic push
306 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
307#endif // __GNUC__
308// LoggerRequest
309
310// required .goby.middleware.protobuf.LoggerRequest.State requested_state = 1;
311inline bool LoggerRequest::_internal_has_requested_state() const {
312 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
313 return value;
314}
316 return _internal_has_requested_state();
317}
319 _impl_.requested_state_ = 1;
320 _impl_._has_bits_[0] &= ~0x00000002u;
321}
322inline ::goby::middleware::protobuf::LoggerRequest_State LoggerRequest::_internal_requested_state() const {
323 return static_cast< ::goby::middleware::protobuf::LoggerRequest_State >(_impl_.requested_state_);
324}
325inline ::goby::middleware::protobuf::LoggerRequest_State LoggerRequest::requested_state() const {
326 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.LoggerRequest.requested_state)
327 return _internal_requested_state();
328}
329inline void LoggerRequest::_internal_set_requested_state(::goby::middleware::protobuf::LoggerRequest_State value) {
331 _impl_._has_bits_[0] |= 0x00000002u;
332 _impl_.requested_state_ = value;
333}
335 _internal_set_requested_state(value);
336 // @@protoc_insertion_point(field_set:goby.middleware.protobuf.LoggerRequest.requested_state)
337}
338
339// optional bool close_log = 2 [default = false];
340inline bool LoggerRequest::_internal_has_close_log() const {
341 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
342 return value;
343}
344inline bool LoggerRequest::has_close_log() const {
345 return _internal_has_close_log();
346}
348 _impl_.close_log_ = false;
349 _impl_._has_bits_[0] &= ~0x00000001u;
350}
351inline bool LoggerRequest::_internal_close_log() const {
352 return _impl_.close_log_;
353}
354inline bool LoggerRequest::close_log() const {
355 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.LoggerRequest.close_log)
356 return _internal_close_log();
357}
358inline void LoggerRequest::_internal_set_close_log(bool value) {
359 _impl_._has_bits_[0] |= 0x00000001u;
360 _impl_.close_log_ = value;
361}
362inline void LoggerRequest::set_close_log(bool value) {
363 _internal_set_close_log(value);
364 // @@protoc_insertion_point(field_set:goby.middleware.protobuf.LoggerRequest.close_log)
365}
366
367#ifdef __GNUC__
368 #pragma GCC diagnostic pop
369#endif // __GNUC__
370
371// @@protoc_insertion_point(namespace_scope)
372
373} // namespace protobuf
374} // namespace middleware
375} // namespace goby
376
377PROTOBUF_NAMESPACE_OPEN
378
379template <> struct is_proto_enum< ::goby::middleware::protobuf::LoggerRequest_State> : ::std::true_type {};
380template <>
382 return ::goby::middleware::protobuf::LoggerRequest_State_descriptor();
383}
384
385PROTOBUF_NAMESPACE_CLOSE
386
387// @@protoc_insertion_point(global_scope)
388
389#include <google/protobuf/port_undef.inc>
390#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2flogger_2eproto
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * State_descriptor()
Definition logger.pb.h:236
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition logger.pb.h:128
void MergeFrom(const LoggerRequest &from)
Definition logger.pb.h:181
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition logger.pb.h:135
LoggerRequest(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
static constexpr int kIndexInFileMessages
Definition logger.pb.h:148
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
static bool State_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, State *value)
Definition logger.pb.h:246
static const std::string & State_Name(T enum_t_value)
Definition logger.pb.h:240
LoggerRequest & operator=(LoggerRequest &&from) noexcept
Definition logger.pb.h:111
friend void swap(LoggerRequest &a, LoggerRequest &b)
Definition logger.pb.h:151
void CopyFrom(const LoggerRequest &from)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition logger.pb.h:132
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
void UnsafeArenaSwap(LoggerRequest *other)
Definition logger.pb.h:167
void Swap(LoggerRequest *other)
Definition logger.pb.h:154
PROTOBUF_CONSTEXPR LoggerRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition logger.pb.h:138
LoggerRequest(LoggerRequest &&from) noexcept
Definition logger.pb.h:102
void set_requested_state(::goby::middleware::protobuf::LoggerRequest_State value)
Definition logger.pb.h:334
::goby::middleware::protobuf::LoggerRequest_State requested_state() const
Definition logger.pb.h:325
static const LoggerRequest & default_instance()
Definition logger.pb.h:141
LoggerRequest(const LoggerRequest &from)
LoggerRequest * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition logger.pb.h:175
static const LoggerRequest * internal_default_instance()
Definition logger.pb.h:144
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition logger.pb.h:125
LoggerRequest & operator=(const LoggerRequest &from)
Definition logger.pb.h:107
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 >()
Definition logger.pb.h:381
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * LoggerRequest_State_descriptor()
LoggerRequestDefaultTypeInternal _LoggerRequest_default_instance_
constexpr int LoggerRequest_State_State_ARRAYSIZE
Definition logger.pb.h:76
constexpr LoggerRequest_State LoggerRequest_State_State_MIN
Definition logger.pb.h:74
bool LoggerRequest_State_IsValid(int value)
const std::string & LoggerRequest_State_Name(T enum_t_value)
Definition logger.pb.h:80
constexpr LoggerRequest_State LoggerRequest_State_State_MAX
Definition logger.pb.h:75
bool LoggerRequest_State_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, LoggerRequest_State *value)
Definition logger.pb.h:87
The global namespace for the Goby project.