509 lines
18 KiB
C++
509 lines
18 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: Control.proto
|
|
// Protobuf C++ Version: 4.26.0-dev
|
|
|
|
#ifndef GOOGLE_PROTOBUF_INCLUDED_Control_2eproto_2epb_2eh
|
|
#define GOOGLE_PROTOBUF_INCLUDED_Control_2eproto_2epb_2eh
|
|
|
|
#include <limits>
|
|
#include <string>
|
|
#include <type_traits>
|
|
#include <utility>
|
|
|
|
#include "google/protobuf/port_def.inc"
|
|
#if PROTOBUF_VERSION != 4026000
|
|
#error "Protobuf C++ gencode is built with an incompatible version of"
|
|
#error "Protobuf C++ headers/runtime. See"
|
|
#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
|
|
#endif
|
|
#include "google/protobuf/port_undef.inc"
|
|
#include "google/protobuf/io/coded_stream.h"
|
|
#include "google/protobuf/arena.h"
|
|
#include "google/protobuf/arenastring.h"
|
|
#include "google/protobuf/generated_message_tctable_decl.h"
|
|
#include "google/protobuf/generated_message_util.h"
|
|
#include "google/protobuf/metadata_lite.h"
|
|
#include "google/protobuf/generated_message_reflection.h"
|
|
#include "google/protobuf/message.h"
|
|
#include "google/protobuf/repeated_field.h" // IWYU pragma: export
|
|
#include "google/protobuf/extension_set.h" // IWYU pragma: export
|
|
#include "google/protobuf/unknown_field_set.h"
|
|
#include "Identifier.pb.h"
|
|
// @@protoc_insertion_point(includes)
|
|
|
|
// Must be included last.
|
|
#include "google/protobuf/port_def.inc"
|
|
|
|
#define PROTOBUF_INTERNAL_EXPORT_Control_2eproto
|
|
|
|
namespace google {
|
|
namespace protobuf {
|
|
namespace internal {
|
|
class AnyMetadata;
|
|
} // namespace internal
|
|
} // namespace protobuf
|
|
} // namespace google
|
|
|
|
// Internal implementation detail -- do not use these members.
|
|
struct TableStruct_Control_2eproto {
|
|
static const ::uint32_t offsets[];
|
|
};
|
|
extern const ::google::protobuf::internal::DescriptorTable
|
|
descriptor_table_Control_2eproto;
|
|
namespace messages {
|
|
namespace control {
|
|
class control;
|
|
struct controlDefaultTypeInternal;
|
|
extern controlDefaultTypeInternal _control_default_instance_;
|
|
} // namespace control
|
|
} // namespace messages
|
|
namespace google {
|
|
namespace protobuf {
|
|
} // namespace protobuf
|
|
} // namespace google
|
|
|
|
namespace messages {
|
|
namespace control {
|
|
|
|
// ===================================================================
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
class control final : public ::google::protobuf::Message
|
|
/* @@protoc_insertion_point(class_definition:messages.control.control) */ {
|
|
public:
|
|
inline control() : control(nullptr) {}
|
|
~control() override;
|
|
template <typename = void>
|
|
explicit PROTOBUF_CONSTEXPR control(
|
|
::google::protobuf::internal::ConstantInitialized);
|
|
|
|
inline control(const control& from) : control(nullptr, from) {}
|
|
inline control(control&& from) noexcept
|
|
: control(nullptr, std::move(from)) {}
|
|
inline control& operator=(const control& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline control& operator=(control&& from) noexcept {
|
|
if (this == &from) return *this;
|
|
if (GetArena() == from.GetArena()
|
|
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
|
|
&& GetArena() != nullptr
|
|
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
|
|
) {
|
|
InternalSwap(&from);
|
|
} else {
|
|
CopyFrom(from);
|
|
}
|
|
return *this;
|
|
}
|
|
|
|
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
|
|
ABSL_ATTRIBUTE_LIFETIME_BOUND {
|
|
return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
|
|
}
|
|
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
|
|
ABSL_ATTRIBUTE_LIFETIME_BOUND {
|
|
return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
|
|
}
|
|
|
|
static const ::google::protobuf::Descriptor* descriptor() {
|
|
return GetDescriptor();
|
|
}
|
|
static const ::google::protobuf::Descriptor* GetDescriptor() {
|
|
return default_instance().GetMetadata().descriptor;
|
|
}
|
|
static const ::google::protobuf::Reflection* GetReflection() {
|
|
return default_instance().GetMetadata().reflection;
|
|
}
|
|
static const control& default_instance() {
|
|
return *internal_default_instance();
|
|
}
|
|
static inline const control* internal_default_instance() {
|
|
return reinterpret_cast<const control*>(
|
|
&_control_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages = 0;
|
|
friend void swap(control& a, control& b) { a.Swap(&b); }
|
|
inline void Swap(control* other) {
|
|
if (other == this) return;
|
|
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
|
|
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
|
|
#else // PROTOBUF_FORCE_COPY_IN_SWAP
|
|
if (GetArena() == other->GetArena()) {
|
|
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
|
|
InternalSwap(other);
|
|
} else {
|
|
::google::protobuf::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(control* other) {
|
|
if (other == this) return;
|
|
ABSL_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
control* New(::google::protobuf::Arena* arena = nullptr) const final {
|
|
return ::google::protobuf::Message::DefaultConstruct<control>(arena);
|
|
}
|
|
using ::google::protobuf::Message::CopyFrom;
|
|
void CopyFrom(const control& from);
|
|
using ::google::protobuf::Message::MergeFrom;
|
|
void MergeFrom(const control& from) { control::MergeImpl(*this, from); }
|
|
|
|
private:
|
|
static void MergeImpl(
|
|
::google::protobuf::MessageLite& to_msg,
|
|
const ::google::protobuf::MessageLite& from_msg);
|
|
|
|
public:
|
|
ABSL_ATTRIBUTE_REINITIALIZES void Clear() final;
|
|
bool IsInitialized() const final;
|
|
|
|
::size_t ByteSizeLong() const final;
|
|
const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
|
|
::uint8_t* _InternalSerialize(
|
|
::uint8_t* target,
|
|
::google::protobuf::io::EpsCopyOutputStream* stream) const final;
|
|
int GetCachedSize() const { return _impl_._cached_size_.Get(); }
|
|
|
|
private:
|
|
void SharedCtor(::google::protobuf::Arena* arena);
|
|
void SharedDtor();
|
|
void InternalSwap(control* other);
|
|
private:
|
|
friend class ::google::protobuf::internal::AnyMetadata;
|
|
static ::absl::string_view FullMessageName() { return "messages.control.control"; }
|
|
|
|
protected:
|
|
explicit control(::google::protobuf::Arena* arena);
|
|
control(::google::protobuf::Arena* arena, const control& from);
|
|
control(::google::protobuf::Arena* arena, control&& from) noexcept
|
|
: control(arena) {
|
|
*this = ::std::move(from);
|
|
}
|
|
const ::google::protobuf::MessageLite::ClassData* GetClassData()
|
|
const final;
|
|
|
|
public:
|
|
::google::protobuf::Metadata GetMetadata() const final;
|
|
// nested types ----------------------------------------------------
|
|
|
|
// accessors -------------------------------------------------------
|
|
enum : int {
|
|
kDataFieldNumber = 3,
|
|
kIdentifierFieldNumber = 1,
|
|
kTimestampFieldNumber = 4,
|
|
kTypeFieldNumber = 2,
|
|
};
|
|
// string data = 3;
|
|
void clear_data() ;
|
|
const std::string& data() const;
|
|
template <typename Arg_ = const std::string&, typename... Args_>
|
|
void set_data(Arg_&& arg, Args_... args);
|
|
std::string* mutable_data();
|
|
PROTOBUF_NODISCARD std::string* release_data();
|
|
void set_allocated_data(std::string* value);
|
|
|
|
private:
|
|
const std::string& _internal_data() const;
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_data(
|
|
const std::string& value);
|
|
std::string* _internal_mutable_data();
|
|
|
|
public:
|
|
// .messages.track.Identifier Identifier = 1;
|
|
bool has_identifier() const;
|
|
void clear_identifier() ;
|
|
const ::messages::track::Identifier& identifier() const;
|
|
PROTOBUF_NODISCARD ::messages::track::Identifier* release_identifier();
|
|
::messages::track::Identifier* mutable_identifier();
|
|
void set_allocated_identifier(::messages::track::Identifier* value);
|
|
void unsafe_arena_set_allocated_identifier(::messages::track::Identifier* value);
|
|
::messages::track::Identifier* unsafe_arena_release_identifier();
|
|
|
|
private:
|
|
const ::messages::track::Identifier& _internal_identifier() const;
|
|
::messages::track::Identifier* _internal_mutable_identifier();
|
|
|
|
public:
|
|
// optional uint64 timestamp = 4;
|
|
bool has_timestamp() const;
|
|
void clear_timestamp() ;
|
|
::uint64_t timestamp() const;
|
|
void set_timestamp(::uint64_t value);
|
|
|
|
private:
|
|
::uint64_t _internal_timestamp() const;
|
|
void _internal_set_timestamp(::uint64_t value);
|
|
|
|
public:
|
|
// uint32 type = 2;
|
|
void clear_type() ;
|
|
::uint32_t type() const;
|
|
void set_type(::uint32_t value);
|
|
|
|
private:
|
|
::uint32_t _internal_type() const;
|
|
void _internal_set_type(::uint32_t value);
|
|
|
|
public:
|
|
// @@protoc_insertion_point(class_scope:messages.control.control)
|
|
private:
|
|
class _Internal;
|
|
friend class ::google::protobuf::internal::TcParser;
|
|
static const ::google::protobuf::internal::TcParseTable<
|
|
2, 4, 1,
|
|
37, 2>
|
|
_table_;
|
|
friend class ::google::protobuf::MessageLite;
|
|
friend class ::google::protobuf::Arena;
|
|
template <typename T>
|
|
friend class ::google::protobuf::Arena::InternalHelper;
|
|
using InternalArenaConstructable_ = void;
|
|
using DestructorSkippable_ = void;
|
|
struct Impl_ {
|
|
inline explicit constexpr Impl_(
|
|
::google::protobuf::internal::ConstantInitialized) noexcept;
|
|
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
|
|
::google::protobuf::Arena* arena);
|
|
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
|
|
::google::protobuf::Arena* arena, const Impl_& from);
|
|
::google::protobuf::internal::HasBits<1> _has_bits_;
|
|
mutable ::google::protobuf::internal::CachedSize _cached_size_;
|
|
::google::protobuf::internal::ArenaStringPtr data_;
|
|
::messages::track::Identifier* identifier_;
|
|
::uint64_t timestamp_;
|
|
::uint32_t type_;
|
|
PROTOBUF_TSAN_DECLARE_MEMBER
|
|
};
|
|
union { Impl_ _impl_; };
|
|
friend struct ::TableStruct_Control_2eproto;
|
|
};
|
|
|
|
// ===================================================================
|
|
|
|
|
|
|
|
|
|
// ===================================================================
|
|
|
|
|
|
#ifdef __GNUC__
|
|
#pragma GCC diagnostic push
|
|
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
|
#endif // __GNUC__
|
|
// -------------------------------------------------------------------
|
|
|
|
// control
|
|
|
|
// .messages.track.Identifier Identifier = 1;
|
|
inline bool control::has_identifier() const {
|
|
bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
|
|
PROTOBUF_ASSUME(!value || _impl_.identifier_ != nullptr);
|
|
return value;
|
|
}
|
|
inline const ::messages::track::Identifier& control::_internal_identifier() const {
|
|
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
|
|
const ::messages::track::Identifier* p = _impl_.identifier_;
|
|
return p != nullptr ? *p : reinterpret_cast<const ::messages::track::Identifier&>(::messages::track::_Identifier_default_instance_);
|
|
}
|
|
inline const ::messages::track::Identifier& control::identifier() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
|
|
// @@protoc_insertion_point(field_get:messages.control.control.Identifier)
|
|
return _internal_identifier();
|
|
}
|
|
inline void control::unsafe_arena_set_allocated_identifier(::messages::track::Identifier* value) {
|
|
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
|
|
if (GetArena() == nullptr) {
|
|
delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.identifier_);
|
|
}
|
|
_impl_.identifier_ = reinterpret_cast<::messages::track::Identifier*>(value);
|
|
if (value != nullptr) {
|
|
_impl_._has_bits_[0] |= 0x00000001u;
|
|
} else {
|
|
_impl_._has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.control.control.Identifier)
|
|
}
|
|
inline ::messages::track::Identifier* control::release_identifier() {
|
|
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
|
|
|
|
_impl_._has_bits_[0] &= ~0x00000001u;
|
|
::messages::track::Identifier* released = _impl_.identifier_;
|
|
_impl_.identifier_ = nullptr;
|
|
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
|
|
auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
|
|
released = ::google::protobuf::internal::DuplicateIfNonNull(released);
|
|
if (GetArena() == nullptr) {
|
|
delete old;
|
|
}
|
|
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
|
|
if (GetArena() != nullptr) {
|
|
released = ::google::protobuf::internal::DuplicateIfNonNull(released);
|
|
}
|
|
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
|
|
return released;
|
|
}
|
|
inline ::messages::track::Identifier* control::unsafe_arena_release_identifier() {
|
|
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
|
|
// @@protoc_insertion_point(field_release:messages.control.control.Identifier)
|
|
|
|
_impl_._has_bits_[0] &= ~0x00000001u;
|
|
::messages::track::Identifier* temp = _impl_.identifier_;
|
|
_impl_.identifier_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::messages::track::Identifier* control::_internal_mutable_identifier() {
|
|
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
|
|
if (_impl_.identifier_ == nullptr) {
|
|
auto* p = ::google::protobuf::Message::DefaultConstruct<::messages::track::Identifier>(GetArena());
|
|
_impl_.identifier_ = reinterpret_cast<::messages::track::Identifier*>(p);
|
|
}
|
|
return _impl_.identifier_;
|
|
}
|
|
inline ::messages::track::Identifier* control::mutable_identifier() ABSL_ATTRIBUTE_LIFETIME_BOUND {
|
|
_impl_._has_bits_[0] |= 0x00000001u;
|
|
::messages::track::Identifier* _msg = _internal_mutable_identifier();
|
|
// @@protoc_insertion_point(field_mutable:messages.control.control.Identifier)
|
|
return _msg;
|
|
}
|
|
inline void control::set_allocated_identifier(::messages::track::Identifier* value) {
|
|
::google::protobuf::Arena* message_arena = GetArena();
|
|
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
|
|
if (message_arena == nullptr) {
|
|
delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.identifier_);
|
|
}
|
|
|
|
if (value != nullptr) {
|
|
::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
|
|
if (message_arena != submessage_arena) {
|
|
value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
|
|
}
|
|
_impl_._has_bits_[0] |= 0x00000001u;
|
|
} else {
|
|
_impl_._has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
|
|
_impl_.identifier_ = reinterpret_cast<::messages::track::Identifier*>(value);
|
|
// @@protoc_insertion_point(field_set_allocated:messages.control.control.Identifier)
|
|
}
|
|
|
|
// uint32 type = 2;
|
|
inline void control::clear_type() {
|
|
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
|
|
_impl_.type_ = 0u;
|
|
}
|
|
inline ::uint32_t control::type() const {
|
|
// @@protoc_insertion_point(field_get:messages.control.control.type)
|
|
return _internal_type();
|
|
}
|
|
inline void control::set_type(::uint32_t value) {
|
|
_internal_set_type(value);
|
|
// @@protoc_insertion_point(field_set:messages.control.control.type)
|
|
}
|
|
inline ::uint32_t control::_internal_type() const {
|
|
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
|
|
return _impl_.type_;
|
|
}
|
|
inline void control::_internal_set_type(::uint32_t value) {
|
|
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
|
|
_impl_.type_ = value;
|
|
}
|
|
|
|
// string data = 3;
|
|
inline void control::clear_data() {
|
|
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
|
|
_impl_.data_.ClearToEmpty();
|
|
}
|
|
inline const std::string& control::data() const
|
|
ABSL_ATTRIBUTE_LIFETIME_BOUND {
|
|
// @@protoc_insertion_point(field_get:messages.control.control.data)
|
|
return _internal_data();
|
|
}
|
|
template <typename Arg_, typename... Args_>
|
|
inline PROTOBUF_ALWAYS_INLINE void control::set_data(Arg_&& arg,
|
|
Args_... args) {
|
|
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
|
|
_impl_.data_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
|
|
// @@protoc_insertion_point(field_set:messages.control.control.data)
|
|
}
|
|
inline std::string* control::mutable_data() ABSL_ATTRIBUTE_LIFETIME_BOUND {
|
|
std::string* _s = _internal_mutable_data();
|
|
// @@protoc_insertion_point(field_mutable:messages.control.control.data)
|
|
return _s;
|
|
}
|
|
inline const std::string& control::_internal_data() const {
|
|
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
|
|
return _impl_.data_.Get();
|
|
}
|
|
inline void control::_internal_set_data(const std::string& value) {
|
|
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
|
|
_impl_.data_.Set(value, GetArena());
|
|
}
|
|
inline std::string* control::_internal_mutable_data() {
|
|
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
|
|
return _impl_.data_.Mutable( GetArena());
|
|
}
|
|
inline std::string* control::release_data() {
|
|
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
|
|
// @@protoc_insertion_point(field_release:messages.control.control.data)
|
|
return _impl_.data_.Release();
|
|
}
|
|
inline void control::set_allocated_data(std::string* value) {
|
|
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
|
|
_impl_.data_.SetAllocated(value, GetArena());
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if (_impl_.data_.IsDefault()) {
|
|
_impl_.data_.Set("", GetArena());
|
|
}
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
// @@protoc_insertion_point(field_set_allocated:messages.control.control.data)
|
|
}
|
|
|
|
// optional uint64 timestamp = 4;
|
|
inline bool control::has_timestamp() const {
|
|
bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
|
|
return value;
|
|
}
|
|
inline void control::clear_timestamp() {
|
|
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
|
|
_impl_.timestamp_ = ::uint64_t{0u};
|
|
_impl_._has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
inline ::uint64_t control::timestamp() const {
|
|
// @@protoc_insertion_point(field_get:messages.control.control.timestamp)
|
|
return _internal_timestamp();
|
|
}
|
|
inline void control::set_timestamp(::uint64_t value) {
|
|
_internal_set_timestamp(value);
|
|
_impl_._has_bits_[0] |= 0x00000002u;
|
|
// @@protoc_insertion_point(field_set:messages.control.control.timestamp)
|
|
}
|
|
inline ::uint64_t control::_internal_timestamp() const {
|
|
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
|
|
return _impl_.timestamp_;
|
|
}
|
|
inline void control::_internal_set_timestamp(::uint64_t value) {
|
|
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
|
|
_impl_.timestamp_ = value;
|
|
}
|
|
|
|
#ifdef __GNUC__
|
|
#pragma GCC diagnostic pop
|
|
#endif // __GNUC__
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
} // namespace control
|
|
} // namespace messages
|
|
|
|
|
|
// @@protoc_insertion_point(global_scope)
|
|
|
|
#include "google/protobuf/port_undef.inc"
|
|
|
|
#endif // GOOGLE_PROTOBUF_INCLUDED_Control_2eproto_2epb_2eh
|