Goby3  3.1.5a
2024.05.23
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 PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2flogger_2eproto
5 #define PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2flogger_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < GOOGLE_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/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.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 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2fmiddleware_2fprotobuf_2flogger_2eproto
41 
43 // Internal implementation detail -- do not use these members.
44 struct TableStruct {
45  static const ::google::protobuf::internal::ParseTableField entries[];
46  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
47  static const ::google::protobuf::internal::ParseTable schema[1];
48  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
49  static const ::google::protobuf::internal::SerializationTable serialization_table[];
51 };
52 void AddDescriptors();
53 } // namespace protobuf_goby_2fmiddleware_2fprotobuf_2flogger_2eproto
54 namespace goby {
55 namespace middleware {
56 namespace protobuf {
57 class LoggerRequest;
58 class LoggerRequestDefaultTypeInternal;
59 extern LoggerRequestDefaultTypeInternal _LoggerRequest_default_instance_;
60 } // namespace protobuf
61 } // namespace middleware
62 } // namespace goby
63 namespace google {
64 namespace protobuf {
65 template<> ::goby::middleware::protobuf::LoggerRequest* Arena::CreateMaybeMessage<::goby::middleware::protobuf::LoggerRequest>(Arena*);
66 } // namespace protobuf
67 } // namespace google
68 namespace goby {
69 namespace middleware {
70 namespace protobuf {
71 
76 };
77 bool LoggerRequest_State_IsValid(int value);
81 
82 const ::google::protobuf::EnumDescriptor* LoggerRequest_State_descriptor();
83 inline const ::std::string& LoggerRequest_State_Name(LoggerRequest_State value) {
84  return ::google::protobuf::internal::NameOfEnum(
86 }
88  const ::std::string& name, LoggerRequest_State* value) {
89  return ::google::protobuf::internal::ParseNamedEnum<LoggerRequest_State>(
90  LoggerRequest_State_descriptor(), name, value);
91 }
92 // ===================================================================
93 
94 class LoggerRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:goby.middleware.protobuf.LoggerRequest) */ {
95  public:
96  LoggerRequest();
97  virtual ~LoggerRequest();
98 
99  LoggerRequest(const LoggerRequest& from);
100 
101  inline LoggerRequest& operator=(const LoggerRequest& from) {
102  CopyFrom(from);
103  return *this;
104  }
105  #if LANG_CXX11
106  LoggerRequest(LoggerRequest&& from) noexcept
107  : LoggerRequest() {
108  *this = ::std::move(from);
109  }
110 
111  inline LoggerRequest& operator=(LoggerRequest&& from) noexcept {
112  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
113  if (this != &from) InternalSwap(&from);
114  } else {
115  CopyFrom(from);
116  }
117  return *this;
118  }
119  #endif
120  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
121  return _internal_metadata_.unknown_fields();
122  }
123  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
124  return _internal_metadata_.mutable_unknown_fields();
125  }
126 
127  static const ::google::protobuf::Descriptor* descriptor();
128  static const LoggerRequest& default_instance();
129 
130  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
131  static inline const LoggerRequest* internal_default_instance() {
132  return reinterpret_cast<const LoggerRequest*>(
134  }
135  static constexpr int kIndexInFileMessages =
136  0;
137 
138  void Swap(LoggerRequest* other);
139  friend void swap(LoggerRequest& a, LoggerRequest& b) {
140  a.Swap(&b);
141  }
142 
143  // implements Message ----------------------------------------------
144 
145  inline LoggerRequest* New() const final {
146  return CreateMaybeMessage<LoggerRequest>(NULL);
147  }
148 
149  LoggerRequest* New(::google::protobuf::Arena* arena) const final {
150  return CreateMaybeMessage<LoggerRequest>(arena);
151  }
152  void CopyFrom(const ::google::protobuf::Message& from) final;
153  void MergeFrom(const ::google::protobuf::Message& from) final;
154  void CopyFrom(const LoggerRequest& from);
155  void MergeFrom(const LoggerRequest& from);
156  void Clear() final;
157  bool IsInitialized() const final;
158 
159  size_t ByteSizeLong() const final;
161  ::google::protobuf::io::CodedInputStream* input) final;
163  ::google::protobuf::io::CodedOutputStream* output) const final;
165  bool deterministic, ::google::protobuf::uint8* target) const final;
166  int GetCachedSize() const final { return _cached_size_.Get(); }
167 
168  private:
169  void SharedCtor();
170  void SharedDtor();
171  void SetCachedSize(int size) const final;
172  void InternalSwap(LoggerRequest* other);
173  private:
174  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
175  return NULL;
176  }
177  inline void* MaybeArenaPtr() const {
178  return NULL;
179  }
180  public:
181 
183 
184  // nested types ----------------------------------------------------
185 
187  static const State START_LOGGING =
189  static const State STOP_LOGGING =
191  static const State ROTATE_LOG =
193  static inline bool State_IsValid(int value) {
194  return LoggerRequest_State_IsValid(value);
195  }
196  static const State State_MIN =
198  static const State State_MAX =
200  static const int State_ARRAYSIZE =
202  static inline const ::google::protobuf::EnumDescriptor*
205  }
206  static inline const ::std::string& State_Name(State value) {
207  return LoggerRequest_State_Name(value);
208  }
209  static inline bool State_Parse(const ::std::string& name,
210  State* value) {
211  return LoggerRequest_State_Parse(name, value);
212  }
213 
214  // accessors -------------------------------------------------------
215 
216  // optional bool close_log = 2 [default = false];
217  bool has_close_log() const;
218  void clear_close_log();
219  static const int kCloseLogFieldNumber = 2;
220  bool close_log() const;
221  void set_close_log(bool value);
222 
223  // required .goby.middleware.protobuf.LoggerRequest.State requested_state = 1;
224  bool has_requested_state() const;
225  void clear_requested_state();
226  static const int kRequestedStateFieldNumber = 1;
229 
230  // @@protoc_insertion_point(class_scope:goby.middleware.protobuf.LoggerRequest)
231  private:
232  void set_has_requested_state();
233  void clear_has_requested_state();
234  void set_has_close_log();
235  void clear_has_close_log();
236 
237  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
238  ::google::protobuf::internal::HasBits<1> _has_bits_;
239  mutable ::google::protobuf::internal::CachedSize _cached_size_;
240  bool close_log_;
241  int requested_state_;
242  friend struct ::protobuf_goby_2fmiddleware_2fprotobuf_2flogger_2eproto::TableStruct;
243 };
244 // ===================================================================
245 
246 
247 // ===================================================================
248 
249 #ifdef __GNUC__
250  #pragma GCC diagnostic push
251  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
252 #endif // __GNUC__
253 // LoggerRequest
254 
255 // required .goby.middleware.protobuf.LoggerRequest.State requested_state = 1;
257  return (_has_bits_[0] & 0x00000002u) != 0;
258 }
259 inline void LoggerRequest::set_has_requested_state() {
260  _has_bits_[0] |= 0x00000002u;
261 }
262 inline void LoggerRequest::clear_has_requested_state() {
263  _has_bits_[0] &= ~0x00000002u;
264 }
266  requested_state_ = 1;
267  clear_has_requested_state();
268 }
270  // @@protoc_insertion_point(field_get:goby.middleware.protobuf.LoggerRequest.requested_state)
271  return static_cast< ::goby::middleware::protobuf::LoggerRequest_State >(requested_state_);
272 }
275  set_has_requested_state();
276  requested_state_ = value;
277  // @@protoc_insertion_point(field_set:goby.middleware.protobuf.LoggerRequest.requested_state)
278 }
279 
280 // optional bool close_log = 2 [default = false];
281 inline bool LoggerRequest::has_close_log() const {
282  return (_has_bits_[0] & 0x00000001u) != 0;
283 }
284 inline void LoggerRequest::set_has_close_log() {
285  _has_bits_[0] |= 0x00000001u;
286 }
287 inline void LoggerRequest::clear_has_close_log() {
288  _has_bits_[0] &= ~0x00000001u;
289 }
291  close_log_ = false;
292  clear_has_close_log();
293 }
294 inline bool LoggerRequest::close_log() const {
295  // @@protoc_insertion_point(field_get:goby.middleware.protobuf.LoggerRequest.close_log)
296  return close_log_;
297 }
298 inline void LoggerRequest::set_close_log(bool value) {
299  set_has_close_log();
300  close_log_ = value;
301  // @@protoc_insertion_point(field_set:goby.middleware.protobuf.LoggerRequest.close_log)
302 }
303 
304 #ifdef __GNUC__
305  #pragma GCC diagnostic pop
306 #endif // __GNUC__
307 
308 // @@protoc_insertion_point(namespace_scope)
309 
310 } // namespace protobuf
311 } // namespace middleware
312 } // namespace goby
313 
314 namespace google {
315 namespace protobuf {
316 
317 template <> struct is_proto_enum< ::goby::middleware::protobuf::LoggerRequest_State> : ::std::true_type {};
318 template <>
319 inline const EnumDescriptor* GetEnumDescriptor< ::goby::middleware::protobuf::LoggerRequest_State>() {
321 }
322 
323 } // namespace protobuf
324 } // namespace google
325 
326 // @@protoc_insertion_point(global_scope)
327 
328 #endif // PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2flogger_2eproto
goby::middleware::protobuf::LoggerRequest
Definition: logger.pb.h:94
goby::middleware::protobuf::LoggerRequest::State_Name
static const ::std::string & State_Name(State value)
Definition: logger.pb.h:206
goby::middleware::protobuf::LoggerRequest::State_MIN
static const State State_MIN
Definition: logger.pb.h:196
goby::middleware::protobuf::LoggerRequest::State_IsValid
static bool State_IsValid(int value)
Definition: logger.pb.h:193
goby::middleware::protobuf::LoggerRequest::ROTATE_LOG
static const State ROTATE_LOG
Definition: logger.pb.h:191
goby::middleware::protobuf::LoggerRequest::IsInitialized
bool IsInitialized() const final
goby::middleware::protobuf::LoggerRequest::Clear
void Clear() final
goby
The global namespace for the Goby project.
Definition: acomms_constants.h:33
protobuf_goby_2fmiddleware_2fprotobuf_2flogger_2eproto::TableStruct::entries
static const ::google::protobuf::internal::ParseTableField entries[]
Definition: logger.pb.h:45
goby::middleware::protobuf::LoggerRequest::has_requested_state
bool has_requested_state() const
Definition: logger.pb.h:256
protobuf_goby_2fmiddleware_2fprotobuf_2flogger_2eproto::TableStruct::aux
static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
Definition: logger.pb.h:46
protobuf_goby_2fmiddleware_2fprotobuf_2flogger_2eproto::TableStruct::offsets
static const ::google::protobuf::uint32 offsets[]
Definition: logger.pb.h:50
goby::middleware::protobuf::LoggerRequest::MergeFrom
void MergeFrom(const ::google::protobuf::Message &from) final
goby::middleware::protobuf::LoggerRequest::clear_close_log
void clear_close_log()
Definition: logger.pb.h:290
goby::middleware::protobuf::LoggerRequest::New
LoggerRequest * New(::google::protobuf::Arena *arena) const final
Definition: logger.pb.h:149
goby::middleware::protobuf::LoggerRequest_State_ROTATE_LOG
@ LoggerRequest_State_ROTATE_LOG
Definition: logger.pb.h:75
goby::middleware::protobuf::LoggerRequest::has_close_log
bool has_close_log() const
Definition: logger.pb.h:281
goby::middleware::protobuf::LoggerRequest_State_State_ARRAYSIZE
const int LoggerRequest_State_State_ARRAYSIZE
Definition: logger.pb.h:80
goby::middleware::protobuf::LoggerRequest::InitAsDefaultInstance
static void InitAsDefaultInstance()
goby::middleware::protobuf::LoggerRequest::State_ARRAYSIZE
static const int State_ARRAYSIZE
Definition: logger.pb.h:200
google::protobuf::Arena
Definition: arena.h:244
goby::middleware::protobuf::LoggerRequest_State_Name
const ::std::string & LoggerRequest_State_Name(LoggerRequest_State value)
Definition: logger.pb.h:83
goby::middleware::protobuf::LoggerRequest::LoggerRequest
LoggerRequest()
protobuf_goby_2fmiddleware_2fprotobuf_2flogger_2eproto::TableStruct::schema
static const ::google::protobuf::internal::ParseTable schema[1]
Definition: logger.pb.h:47
goby::middleware::protobuf::LoggerRequest::START_LOGGING
static const State START_LOGGING
Definition: logger.pb.h:187
goby::middleware::protobuf::LoggerRequest::GetMetadata
::google::protobuf::Metadata GetMetadata() const final
goby::middleware::protobuf::LoggerRequest::descriptor
static const ::google::protobuf::Descriptor * descriptor()
goby::middleware::protobuf::LoggerRequest::SerializeWithCachedSizes
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const final
message.h
goby::middleware::protobuf::LoggerRequest::New
LoggerRequest * New() const final
Definition: logger.pb.h:145
goby::middleware::protobuf::LoggerRequest::State_Parse
static bool State_Parse(const ::std::string &name, State *value)
Definition: logger.pb.h:209
goby::middleware::protobuf::LoggerRequest_State_descriptor
const ::google::protobuf::EnumDescriptor * LoggerRequest_State_descriptor()
goby::uint32
std::uint32_t uint32
Definition: primitive_types.h:32
goby::middleware::protobuf::LoggerRequest::mutable_unknown_fields
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: logger.pb.h:123
goby::middleware::protobuf::LoggerRequest_State_START_LOGGING
@ LoggerRequest_State_START_LOGGING
Definition: logger.pb.h:73
goby::middleware::protobuf::LoggerRequest::~LoggerRequest
virtual ~LoggerRequest()
goby::middleware::protobuf::LoggerRequest_State_Parse
bool LoggerRequest_State_Parse(const ::std::string &name, LoggerRequest_State *value)
Definition: logger.pb.h:87
protobuf_goby_2fmiddleware_2fprotobuf_2flogger_2eproto::TableStruct::field_metadata
static const ::google::protobuf::internal::FieldMetadata field_metadata[]
Definition: logger.pb.h:48
protobuf_goby_2fmiddleware_2fprotobuf_2flogger_2eproto
Definition: logger.pb.h:42
goby::middleware::protobuf::LoggerRequest::STOP_LOGGING
static const State STOP_LOGGING
Definition: logger.pb.h:189
goby::middleware::protobuf::LoggerRequest::InternalSerializeWithCachedSizesToArray
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic, ::google::protobuf::uint8 *target) const final
goby::middleware::protobuf::LoggerRequest::MergePartialFromCodedStream
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) final
goby::middleware::protobuf::LoggerRequest_State
LoggerRequest_State
Definition: logger.pb.h:72
protobuf_goby_2fmiddleware_2fprotobuf_2flogger_2eproto::TableStruct::serialization_table
static const ::google::protobuf::internal::SerializationTable serialization_table[]
Definition: logger.pb.h:49
goby::middleware::protobuf::LoggerRequest::State_descriptor
static const ::google::protobuf::EnumDescriptor * State_descriptor()
Definition: logger.pb.h:203
google::protobuf::Metadata
Definition: message.h:174
goby::middleware::protobuf::LoggerRequest_State_IsValid
bool LoggerRequest_State_IsValid(int value)
protobuf_goby_2fmiddleware_2fprotobuf_2flogger_2eproto::TableStruct
Definition: logger.pb.h:44
goby::middleware::protobuf::LoggerRequest::unknown_fields
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: logger.pb.h:120
google::protobuf::Message
Definition: message.h:189
goby::middleware::protobuf::LoggerRequest_State_State_MIN
const LoggerRequest_State LoggerRequest_State_State_MIN
Definition: logger.pb.h:78
goby::middleware::protobuf::LoggerRequest::CopyFrom
void CopyFrom(const ::google::protobuf::Message &from) final
goby::middleware::protobuf::LoggerRequest::default_instance
static const LoggerRequest & default_instance()
goby::middleware::protobuf::LoggerRequest::set_requested_state
void set_requested_state(::goby::middleware::protobuf::LoggerRequest_State value)
Definition: logger.pb.h:273
goby::middleware::protobuf::LoggerRequest::close_log
bool close_log() const
Definition: logger.pb.h:294
goby::middleware::protobuf::LoggerRequest::clear_requested_state
void clear_requested_state()
Definition: logger.pb.h:265
protobuf_goby_2fmiddleware_2fprotobuf_2flogger_2eproto::AddDescriptors
void AddDescriptors()
goby::middleware::protobuf::LoggerRequest::Swap
void Swap(LoggerRequest *other)
arena.h
goby::middleware::protobuf::_LoggerRequest_default_instance_
LoggerRequestDefaultTypeInternal _LoggerRequest_default_instance_
goby::middleware::protobuf::LoggerRequest::swap
friend void swap(LoggerRequest &a, LoggerRequest &b)
Definition: logger.pb.h:139
goby::middleware::protobuf::LoggerRequest_State_State_MAX
const LoggerRequest_State LoggerRequest_State_State_MAX
Definition: logger.pb.h:79
goby::middleware::protobuf::LoggerRequest::kIndexInFileMessages
static constexpr int kIndexInFileMessages
Definition: logger.pb.h:135
goby::middleware::protobuf::LoggerRequest::set_close_log
void set_close_log(bool value)
Definition: logger.pb.h:298
goby::middleware::protobuf::LoggerRequest::GetCachedSize
int GetCachedSize() const final
Definition: logger.pb.h:166
goby::middleware::protobuf::LoggerRequest::requested_state
::goby::middleware::protobuf::LoggerRequest_State requested_state() const
Definition: logger.pb.h:269
goby::middleware::protobuf::LoggerRequest_State_STOP_LOGGING
@ LoggerRequest_State_STOP_LOGGING
Definition: logger.pb.h:74
goby::middleware::protobuf::LoggerRequest::internal_default_instance
static const LoggerRequest * internal_default_instance()
Definition: logger.pb.h:131
goby::middleware::protobuf::LoggerRequest::kRequestedStateFieldNumber
static const int kRequestedStateFieldNumber
Definition: logger.pb.h:226
goby::middleware::protobuf::LoggerRequest::State_MAX
static const State State_MAX
Definition: logger.pb.h:198
google
Definition: dccl.h:57
goby::middleware::protobuf::LoggerRequest::kCloseLogFieldNumber
static const int kCloseLogFieldNumber
Definition: logger.pb.h:219
goby::middleware::protobuf::LoggerRequest::ByteSizeLong
size_t ByteSizeLong() const final
goby::middleware::protobuf::LoggerRequest::operator=
LoggerRequest & operator=(const LoggerRequest &from)
Definition: logger.pb.h:101