Goby3  3.1.5
2024.05.14
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 < 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
14 #error your headers.
15 #endif
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.
20 #endif
21 
22 #include <google/protobuf/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.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> // IWYU pragma: export
33 #include <google/protobuf/extension_set.h> // IWYU pragma: export
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>
41 // @@protoc_insertion_point(includes)
42 #include <google/protobuf/port_def.inc>
43 #define PROTOBUF_INTERNAL_EXPORT_goby_2fmiddleware_2fprotobuf_2flogger_2eproto
44 PROTOBUF_NAMESPACE_OPEN
45 namespace internal {
46 class AnyMetadata;
47 } // namespace internal
48 PROTOBUF_NAMESPACE_CLOSE
49 
50 // Internal implementation detail -- do not use these members.
52  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
53  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
54  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
55  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
56  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
57  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
58  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
59  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
61 };
62 extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fmiddleware_2fprotobuf_2flogger_2eproto;
63 namespace goby {
64 namespace middleware {
65 namespace protobuf {
66 class LoggerRequest;
67 class LoggerRequestDefaultTypeInternal;
68 extern LoggerRequestDefaultTypeInternal _LoggerRequest_default_instance_;
69 } // namespace protobuf
70 } // namespace middleware
71 } // namespace goby
72 PROTOBUF_NAMESPACE_OPEN
73 template<> ::goby::middleware::protobuf::LoggerRequest* Arena::CreateMaybeMessage<::goby::middleware::protobuf::LoggerRequest>(Arena*);
74 PROTOBUF_NAMESPACE_CLOSE
75 namespace goby {
76 namespace middleware {
77 namespace protobuf {
78 
79 enum LoggerRequest_State : int {
83 };
88 
89 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* LoggerRequest_State_descriptor();
90 template<typename T>
91 inline const std::string& LoggerRequest_State_Name(T enum_t_value) {
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(
96  LoggerRequest_State_descriptor(), enum_t_value);
97 }
99  const std::string& name, LoggerRequest_State* value) {
100  return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<LoggerRequest_State>(
101  LoggerRequest_State_descriptor(), name, value);
102 }
103 // ===================================================================
104 
105 class LoggerRequest PROTOBUF_FINAL :
106  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.middleware.protobuf.LoggerRequest) */ {
107  public:
108  inline LoggerRequest() : LoggerRequest(nullptr) {};
109  virtual ~LoggerRequest();
110 
111  LoggerRequest(const LoggerRequest& from);
112  LoggerRequest(LoggerRequest&& from) noexcept
113  : LoggerRequest() {
114  *this = ::std::move(from);
115  }
116 
117  inline LoggerRequest& operator=(const LoggerRequest& from) {
118  CopyFrom(from);
119  return *this;
120  }
121  inline LoggerRequest& operator=(LoggerRequest&& from) noexcept {
122  if (GetArena() == from.GetArena()) {
123  if (this != &from) InternalSwap(&from);
124  } else {
125  CopyFrom(from);
126  }
127  return *this;
128  }
129 
130  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
131  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
132  }
133  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
134  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
135  }
136 
137  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
138  return GetDescriptor();
139  }
140  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
141  return GetMetadataStatic().descriptor;
142  }
143  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
144  return GetMetadataStatic().reflection;
145  }
146  static const LoggerRequest& default_instance();
147 
148  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
149  static inline const LoggerRequest* internal_default_instance() {
150  return reinterpret_cast<const LoggerRequest*>(
152  }
153  static constexpr int kIndexInFileMessages =
154  0;
155 
156  friend void swap(LoggerRequest& a, LoggerRequest& b) {
157  a.Swap(&b);
158  }
159  inline void Swap(LoggerRequest* other) {
160  if (other == this) return;
161  if (GetArena() == other->GetArena()) {
162  InternalSwap(other);
163  } else {
164  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
165  }
166  }
167  void UnsafeArenaSwap(LoggerRequest* other) {
168  if (other == this) return;
169  GOOGLE_DCHECK(GetArena() == other->GetArena());
170  InternalSwap(other);
171  }
172 
173  // implements Message ----------------------------------------------
174 
175  inline LoggerRequest* New() const final {
176  return CreateMaybeMessage<LoggerRequest>(nullptr);
177  }
178 
179  LoggerRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
180  return CreateMaybeMessage<LoggerRequest>(arena);
181  }
182  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
183  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
184  void CopyFrom(const LoggerRequest& from);
185  void MergeFrom(const LoggerRequest& from);
186  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
187  bool IsInitialized() const final;
188 
189  size_t ByteSizeLong() 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(); }
194 
195  private:
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";
203  }
204  protected:
205  explicit LoggerRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena);
206  private:
207  static void ArenaDtor(void* object);
208  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
209  public:
210 
211  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
212  private:
213  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
214  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_goby_2fmiddleware_2fprotobuf_2flogger_2eproto);
215  return ::descriptor_table_goby_2fmiddleware_2fprotobuf_2flogger_2eproto.file_level_metadata[kIndexInFileMessages];
216  }
217 
218  public:
219 
220  // nested types ----------------------------------------------------
221 
223  static constexpr State START_LOGGING =
225  static constexpr State STOP_LOGGING =
227  static constexpr State ROTATE_LOG =
229  static inline bool State_IsValid(int value) {
230  return LoggerRequest_State_IsValid(value);
231  }
232  static constexpr State State_MIN =
234  static constexpr State State_MAX =
236  static constexpr int State_ARRAYSIZE =
238  static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
241  }
242  template<typename T>
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.");
247  return LoggerRequest_State_Name(enum_t_value);
248  }
249  static inline bool State_Parse(const std::string& name,
250  State* value) {
251  return LoggerRequest_State_Parse(name, value);
252  }
253 
254  // accessors -------------------------------------------------------
255 
256  enum : int {
257  kCloseLogFieldNumber = 2,
258  kRequestedStateFieldNumber = 1,
259  };
260  // optional bool close_log = 2 [default = false];
261  bool has_close_log() const;
262  private:
263  bool _internal_has_close_log() const;
264  public:
266  bool close_log() const;
267  void set_close_log(bool value);
268  private:
269  bool _internal_close_log() const;
270  void _internal_set_close_log(bool value);
271  public:
272 
273  // required .goby.middleware.protobuf.LoggerRequest.State requested_state = 1;
274  bool has_requested_state() const;
275  private:
276  bool _internal_has_requested_state() const;
277  public:
281  private:
282  ::goby::middleware::protobuf::LoggerRequest_State _internal_requested_state() const;
283  void _internal_set_requested_state(::goby::middleware::protobuf::LoggerRequest_State value);
284  public:
285 
286  // @@protoc_insertion_point(class_scope:goby.middleware.protobuf.LoggerRequest)
287  private:
288  class _Internal;
289 
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_;
295  bool close_log_;
296  int requested_state_;
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;
311 inline bool LoggerRequest::_internal_has_requested_state() const {
312  bool value = (_has_bits_[0] & 0x00000002u) != 0;
313  return value;
314 }
315 inline bool LoggerRequest::has_requested_state() const {
316  return _internal_has_requested_state();
317 }
318 inline void LoggerRequest::clear_requested_state() {
319  requested_state_ = 1;
320  _has_bits_[0] &= ~0x00000002u;
321 }
322 inline ::goby::middleware::protobuf::LoggerRequest_State LoggerRequest::_internal_requested_state() const {
323  return static_cast< ::goby::middleware::protobuf::LoggerRequest_State >(requested_state_);
324 }
325 inline ::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 }
329 inline void LoggerRequest::_internal_set_requested_state(::goby::middleware::protobuf::LoggerRequest_State value) {
331  _has_bits_[0] |= 0x00000002u;
332  requested_state_ = value;
333 }
334 inline void LoggerRequest::set_requested_state(::goby::middleware::protobuf::LoggerRequest_State value) {
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];
340 inline bool LoggerRequest::_internal_has_close_log() const {
341  bool value = (_has_bits_[0] & 0x00000001u) != 0;
342  return value;
343 }
344 inline bool LoggerRequest::has_close_log() const {
345  return _internal_has_close_log();
346 }
347 inline void LoggerRequest::clear_close_log() {
348  close_log_ = false;
349  _has_bits_[0] &= ~0x00000001u;
350 }
351 inline bool LoggerRequest::_internal_close_log() const {
352  return close_log_;
353 }
354 inline bool LoggerRequest::close_log() const {
355  // @@protoc_insertion_point(field_get:goby.middleware.protobuf.LoggerRequest.close_log)
356  return _internal_close_log();
357 }
358 inline void LoggerRequest::_internal_set_close_log(bool value) {
359  _has_bits_[0] |= 0x00000001u;
360  close_log_ = value;
361 }
362 inline 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 
377 PROTOBUF_NAMESPACE_OPEN
378 
379 template <> struct is_proto_enum< ::goby::middleware::protobuf::LoggerRequest_State> : ::std::true_type {};
380 template <>
381 inline const EnumDescriptor* GetEnumDescriptor< ::goby::middleware::protobuf::LoggerRequest_State>() {
383 }
384 
385 PROTOBUF_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
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()
Definition: logger.pb.h:239
static const LoggerRequest * internal_default_instance()
Definition: logger.pb.h:149
void UnsafeArenaSwap(LoggerRequest *other)
Definition: logger.pb.h:167
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: logger.pb.h:137
friend void swap(LoggerRequest &a, LoggerRequest &b)
Definition: logger.pb.h:156
LoggerRequest & operator=(LoggerRequest &&from) noexcept
Definition: logger.pb.h:121
LoggerRequest(LoggerRequest &&from) noexcept
Definition: logger.pb.h:112
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: logger.pb.h:140
static bool State_IsValid(int value)
Definition: logger.pb.h:229
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: logger.pb.h:143
LoggerRequest(::PROTOBUF_NAMESPACE_ID::Arena *arena)
static const std::string & State_Name(T enum_t_value)
Definition: logger.pb.h:243
::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)
Definition: logger.pb.h:249
static const LoggerRequest & default_instance()
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition: logger.pb.h:133
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition: logger.pb.h:130
LoggerRequest & operator=(const LoggerRequest &from)
Definition: logger.pb.h:117
LoggerRequest * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: logger.pb.h:179
void Swap(LoggerRequest *other)
Definition: logger.pb.h:159
LoggerRequest * New() const final
Definition: logger.pb.h:175
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_
constexpr int LoggerRequest_State_State_ARRAYSIZE
Definition: logger.pb.h:87
constexpr LoggerRequest_State LoggerRequest_State_State_MIN
Definition: logger.pb.h:85
bool LoggerRequest_State_IsValid(int value)
const std::string & LoggerRequest_State_Name(T enum_t_value)
Definition: logger.pb.h:91
constexpr LoggerRequest_State LoggerRequest_State_State_MAX
Definition: logger.pb.h:86
bool LoggerRequest_State_Parse(const std::string &name, LoggerRequest_State *value)
Definition: logger.pb.h:98
The global namespace for the Goby project.
std::uint32_t uint32
#define ByteSizeLong
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
Definition: logger.pb.h:60
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
Definition: logger.pb.h:58
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[]
Definition: logger.pb.h:59