4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2flog_5fstatus_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2flog_5fstatus_2eproto
9 #include <google/protobuf/stubs/common.h>
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
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.
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>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
34 #include "gz/msgs/time.pb.h"
35 #include "gz/msgs/header.pb.h"
37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2flog_5fstatus_2eproto GZ_MSGS_VISIBLE
42 static const ::google::protobuf::internal::ParseTableField entries[];
43 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
44 static const ::google::protobuf::internal::ParseTable schema[2];
45 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
46 static const ::google::protobuf::internal::SerializationTable serialization_table[];
47 static const ::google::protobuf::uint32 offsets[];
54 class LogStatusDefaultTypeInternal;
56 class LogStatus_LogFile;
57 class LogStatus_LogFileDefaultTypeInternal;
63 template<> GZ_MSGS_VISIBLE ::gz::msgs::LogStatus* Arena::CreateMaybeMessage<::gz::msgs::LogStatus>(Arena*);
64 template<> GZ_MSGS_VISIBLE ::gz::msgs::LogStatus_LogFile* Arena::CreateMaybeMessage<::gz::msgs::LogStatus_LogFile>(Arena*);
85 return ::google::protobuf::internal::NameOfEnum(
90 return ::google::protobuf::internal::ParseNamedEnum<LogStatus_LogFile_Units>(
109 *
this = ::std::move(from);
112 inline LogStatus_LogFile& operator=(LogStatus_LogFile&& from) noexcept {
113 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
114 if (
this != &from) InternalSwap(&from);
121 static const ::google::protobuf::Descriptor* descriptor();
122 static const LogStatus_LogFile& default_instance();
124 static void InitAsDefaultInstance();
129 static constexpr
int kIndexInFileMessages =
140 return CreateMaybeMessage<LogStatus_LogFile>(NULL);
144 return CreateMaybeMessage<LogStatus_LogFile>(arena);
146 void CopyFrom(const ::google::protobuf::Message& from)
final;
147 void MergeFrom(const ::google::protobuf::Message& from)
final;
151 bool IsInitialized() const final;
153 size_t ByteSizeLong() const final;
154 bool MergePartialFromCodedStream(
155 ::
google::protobuf::io::CodedInputStream* input) final;
156 void SerializeWithCachedSizes(
157 ::
google::protobuf::io::CodedOutputStream* output) const final;
158 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
159 bool deterministic, ::
google::protobuf::uint8* target) const final;
160 int GetCachedSize() const final {
return _cached_size_.Get(); }
165 void SetCachedSize(
int size)
const final;
168 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
171 inline void* MaybeArenaPtr()
const {
176 ::google::protobuf::Metadata GetMetadata() const final;
189 static inline
bool Units_IsValid(
int value) {
196 static const int Units_ARRAYSIZE =
198 static inline const ::google::protobuf::EnumDescriptor*
214 static const int kUriFieldNumber = 1;
215 const ::std::string& uri()
const;
216 void set_uri(const ::std::string& value);
220 void set_uri(
const char* value);
221 void set_uri(
const char* value,
size_t size);
227 void clear_base_path();
228 static const int kBasePathFieldNumber = 2;
229 const ::std::string& base_path()
const;
230 void set_base_path(const ::std::string& value);
234 void set_base_path(
const char* value);
235 void set_base_path(
const char* value,
size_t size);
238 void set_allocated_base_path(::
std::string* base_path);
241 void clear_full_path();
242 static const int kFullPathFieldNumber = 3;
243 const ::std::string& full_path()
const;
244 void set_full_path(const ::std::string& value);
248 void set_full_path(
const char* value);
249 void set_full_path(
const char* value,
size_t size);
252 void set_allocated_full_path(::
std::string* full_path);
256 static const int kSizeFieldNumber = 4;
258 void set_size(
float value);
261 void clear_size_units();
262 static const int kSizeUnitsFieldNumber = 5;
267 void clear_record_resources();
268 static const int kRecordResourcesFieldNumber = 6;
269 bool record_resources()
const;
270 void set_record_resources(
bool value);
275 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
276 ::google::protobuf::internal::ArenaStringPtr uri_;
277 ::google::protobuf::internal::ArenaStringPtr base_path_;
278 ::google::protobuf::internal::ArenaStringPtr full_path_;
281 bool record_resources_;
282 mutable ::google::protobuf::internal::CachedSize _cached_size_;
283 friend struct ::protobuf_gz_2fmsgs_2flog_5fstatus_2eproto::TableStruct;
287 class GZ_MSGS_VISIBLE
LogStatus :
public ::google::protobuf::Message {
301 *
this = ::std::move(from);
304 inline LogStatus& operator=(LogStatus&& from) noexcept {
305 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
306 if (
this != &from) InternalSwap(&from);
313 static const ::google::protobuf::Descriptor* descriptor();
314 static const LogStatus& default_instance();
316 static void InitAsDefaultInstance();
318 return reinterpret_cast<const LogStatus*
>(
321 static constexpr
int kIndexInFileMessages =
332 return CreateMaybeMessage<LogStatus>(NULL);
336 return CreateMaybeMessage<LogStatus>(arena);
338 void CopyFrom(const ::google::protobuf::Message& from)
final;
339 void MergeFrom(const ::google::protobuf::Message& from)
final;
343 bool IsInitialized() const final;
345 size_t ByteSizeLong() const final;
346 bool MergePartialFromCodedStream(
347 ::
google::protobuf::io::CodedInputStream* input) final;
348 void SerializeWithCachedSizes(
349 ::
google::protobuf::io::CodedOutputStream* output) const final;
350 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
351 bool deterministic, ::
google::protobuf::uint8* target) const final;
352 int GetCachedSize() const final {
return _cached_size_.Get(); }
357 void SetCachedSize(
int size)
const final;
360 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
363 inline void* MaybeArenaPtr()
const {
368 ::google::protobuf::Metadata GetMetadata() const final;
377 bool has_header() const;
379 static const
int kHeaderFieldNumber = 1;
381 const ::
gz::msgs::
Header& _internal_header() const;
383 const ::
gz::msgs::
Header& header() const;
384 ::
gz::msgs::
Header* release_header();
385 ::
gz::msgs::
Header* mutable_header();
386 void set_allocated_header(::
gz::msgs::
Header* header);
389 bool has_sim_time() const;
390 void clear_sim_time();
391 static const
int kSimTimeFieldNumber = 2;
393 const ::
gz::msgs::
Time& _internal_sim_time() const;
395 const ::
gz::msgs::
Time& sim_time() const;
396 ::
gz::msgs::
Time* release_sim_time();
397 ::
gz::msgs::
Time* mutable_sim_time();
398 void set_allocated_sim_time(::
gz::msgs::
Time* sim_time);
401 bool has_log_file() const;
402 void clear_log_file();
403 static const
int kLogFileFieldNumber = 3;
415 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
417 ::
gz::msgs::
Time* sim_time_;
419 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
428 #pragma GCC diagnostic push
429 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
435 uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
439 return uri_.GetNoArena();
443 uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
450 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
455 GOOGLE_DCHECK(value != NULL);
457 uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
462 uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
463 ::
std::string(
reinterpret_cast<const char*
>(value), size));
469 return uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
474 return uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
482 uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), uri);
488 base_path_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
492 return base_path_.GetNoArena();
496 base_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
502 base_path_.SetNoArena(
503 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
508 GOOGLE_DCHECK(value != NULL);
510 base_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
515 base_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
516 ::
std::string(
reinterpret_cast<const char*
>(value), size));
522 return base_path_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
527 return base_path_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
530 if (base_path != NULL) {
535 base_path_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), base_path);
541 full_path_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
545 return full_path_.GetNoArena();
549 full_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
555 full_path_.SetNoArena(
556 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
561 GOOGLE_DCHECK(value != NULL);
563 full_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
568 full_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
569 ::
std::string(
reinterpret_cast<const char*
>(value), size));
575 return full_path_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
580 return full_path_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
583 if (full_path != NULL) {
588 full_path_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), full_path);
622 record_resources_ =
false;
626 return record_resources_;
630 record_resources_ = value;
640 return this != internal_default_instance() && header_ != NULL;
642 inline const ::gz::msgs::Header& LogStatus::_internal_header()
const {
646 const ::gz::msgs::Header* p = header_;
660 if (header_ == NULL) {
661 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
668 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
669 if (message_arena == NULL) {
670 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
673 ::google::protobuf::Arena* submessage_arena = NULL;
674 if (message_arena != submessage_arena) {
675 header = ::google::protobuf::internal::GetOwnedMessage(
676 message_arena, header, submessage_arena);
688 return this != internal_default_instance() && sim_time_ != NULL;
690 inline const ::gz::msgs::Time& LogStatus::_internal_sim_time()
const {
694 const ::gz::msgs::Time* p = sim_time_;
696 return p != NULL ? *p : *
reinterpret_cast<const ::
gz::msgs::Time*
>(
708 if (sim_time_ == NULL) {
709 auto* p = CreateMaybeMessage<::gz::msgs::Time>(GetArenaNoVirtual());
716 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
717 if (message_arena == NULL) {
718 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(sim_time_);
721 ::google::protobuf::Arena* submessage_arena = NULL;
722 if (message_arena != submessage_arena) {
723 sim_time = ::google::protobuf::internal::GetOwnedMessage(
724 message_arena, sim_time, submessage_arena);
730 sim_time_ = sim_time;
736 return this != internal_default_instance() && log_file_ != NULL;
739 if (GetArenaNoVirtual() == NULL && log_file_ != NULL) {
744 inline const ::gz::msgs::LogStatus_LogFile& LogStatus::_internal_log_file()
const {
748 const ::gz::msgs::LogStatus_LogFile* p = log_file_;
762 if (log_file_ == NULL) {
763 auto* p = CreateMaybeMessage<::gz::msgs::LogStatus_LogFile>(GetArenaNoVirtual());
770 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
771 if (message_arena == NULL) {
775 ::google::protobuf::Arena* submessage_arena = NULL;
776 if (message_arena != submessage_arena) {
777 log_file = ::google::protobuf::internal::GetOwnedMessage(
778 message_arena, log_file, submessage_arena);
784 log_file_ = log_file;
789 #pragma GCC diagnostic pop
804 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::LogStatus_LogFile_Units>() {
813 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2flog_5fstatus_2eproto