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