|
@@ -7,7 +7,6 @@
|
|
|
|
|
|
#include <google/protobuf/stubs/common.h>
|
|
|
#include <google/protobuf/stubs/port.h>
|
|
|
-#include <google/protobuf/stubs/once.h>
|
|
|
#include <google/protobuf/io/coded_stream.h>
|
|
|
#include <google/protobuf/wire_format_lite_inl.h>
|
|
|
#include <google/protobuf/descriptor.h>
|
|
@@ -19,6 +18,11 @@
|
|
|
#include "third_party/protobuf/version.h"
|
|
|
#endif
|
|
|
// @@protoc_insertion_point(includes)
|
|
|
+
|
|
|
+namespace protobuf_message_5fbase_2eproto {
|
|
|
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_message_5fbase_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Base_info;
|
|
|
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_message_5fbase_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Car_info;
|
|
|
+} // namespace protobuf_message_5fbase_2eproto
|
|
|
namespace message {
|
|
|
class Base_infoDefaultTypeInternal {
|
|
|
public:
|
|
@@ -57,14 +61,9 @@ class Id_structDefaultTypeInternal {
|
|
|
} _Id_struct_default_instance_;
|
|
|
} // namespace message
|
|
|
namespace protobuf_message_5fbase_2eproto {
|
|
|
-void InitDefaultsBase_infoImpl() {
|
|
|
+static void InitDefaultsBase_info() {
|
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
|
|
-#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
|
|
|
-#else
|
|
|
- ::google::protobuf::internal::InitProtobufDefaults();
|
|
|
-#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
{
|
|
|
void* ptr = &::message::_Base_info_default_instance_;
|
|
|
new (ptr) ::message::Base_info();
|
|
@@ -73,20 +72,12 @@ void InitDefaultsBase_infoImpl() {
|
|
|
::message::Base_info::InitAsDefaultInstance();
|
|
|
}
|
|
|
|
|
|
-void InitDefaultsBase_info() {
|
|
|
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBase_infoImpl);
|
|
|
-}
|
|
|
+::google::protobuf::internal::SCCInfo<0> scc_info_Base_info =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBase_info}, {}};
|
|
|
|
|
|
-void InitDefaultsBase_msgImpl() {
|
|
|
+static void InitDefaultsBase_msg() {
|
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
|
|
-#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
|
|
|
-#else
|
|
|
- ::google::protobuf::internal::InitProtobufDefaults();
|
|
|
-#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
- protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
|
|
|
{
|
|
|
void* ptr = &::message::_Base_msg_default_instance_;
|
|
|
new (ptr) ::message::Base_msg();
|
|
@@ -95,19 +86,13 @@ void InitDefaultsBase_msgImpl() {
|
|
|
::message::Base_msg::InitAsDefaultInstance();
|
|
|
}
|
|
|
|
|
|
-void InitDefaultsBase_msg() {
|
|
|
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBase_msgImpl);
|
|
|
-}
|
|
|
+::google::protobuf::internal::SCCInfo<1> scc_info_Base_msg =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsBase_msg}, {
|
|
|
+ &protobuf_message_5fbase_2eproto::scc_info_Base_info.base,}};
|
|
|
|
|
|
-void InitDefaultsError_managerImpl() {
|
|
|
+static void InitDefaultsError_manager() {
|
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
|
|
-#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
|
|
|
-#else
|
|
|
- ::google::protobuf::internal::InitProtobufDefaults();
|
|
|
-#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
{
|
|
|
void* ptr = &::message::_Error_manager_default_instance_;
|
|
|
new (ptr) ::message::Error_manager();
|
|
@@ -116,19 +101,12 @@ void InitDefaultsError_managerImpl() {
|
|
|
::message::Error_manager::InitAsDefaultInstance();
|
|
|
}
|
|
|
|
|
|
-void InitDefaultsError_manager() {
|
|
|
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsError_managerImpl);
|
|
|
-}
|
|
|
+::google::protobuf::internal::SCCInfo<0> scc_info_Error_manager =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsError_manager}, {}};
|
|
|
|
|
|
-void InitDefaultsLocate_informationImpl() {
|
|
|
+static void InitDefaultsLocate_information() {
|
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
|
|
-#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
|
|
|
-#else
|
|
|
- ::google::protobuf::internal::InitProtobufDefaults();
|
|
|
-#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
{
|
|
|
void* ptr = &::message::_Locate_information_default_instance_;
|
|
|
new (ptr) ::message::Locate_information();
|
|
@@ -137,19 +115,12 @@ void InitDefaultsLocate_informationImpl() {
|
|
|
::message::Locate_information::InitAsDefaultInstance();
|
|
|
}
|
|
|
|
|
|
-void InitDefaultsLocate_information() {
|
|
|
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLocate_informationImpl);
|
|
|
-}
|
|
|
+::google::protobuf::internal::SCCInfo<0> scc_info_Locate_information =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsLocate_information}, {}};
|
|
|
|
|
|
-void InitDefaultsCar_infoImpl() {
|
|
|
+static void InitDefaultsCar_info() {
|
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
|
|
-#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
|
|
|
-#else
|
|
|
- ::google::protobuf::internal::InitProtobufDefaults();
|
|
|
-#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
{
|
|
|
void* ptr = &::message::_Car_info_default_instance_;
|
|
|
new (ptr) ::message::Car_info();
|
|
@@ -158,20 +129,12 @@ void InitDefaultsCar_infoImpl() {
|
|
|
::message::Car_info::InitAsDefaultInstance();
|
|
|
}
|
|
|
|
|
|
-void InitDefaultsCar_info() {
|
|
|
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCar_infoImpl);
|
|
|
-}
|
|
|
+::google::protobuf::internal::SCCInfo<0> scc_info_Car_info =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCar_info}, {}};
|
|
|
|
|
|
-void InitDefaultsParkspace_infoImpl() {
|
|
|
+static void InitDefaultsParkspace_info() {
|
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
|
|
-#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
|
|
|
-#else
|
|
|
- ::google::protobuf::internal::InitProtobufDefaults();
|
|
|
-#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
- protobuf_message_5fbase_2eproto::InitDefaultsCar_info();
|
|
|
{
|
|
|
void* ptr = &::message::_Parkspace_info_default_instance_;
|
|
|
new (ptr) ::message::Parkspace_info();
|
|
@@ -180,19 +143,13 @@ void InitDefaultsParkspace_infoImpl() {
|
|
|
::message::Parkspace_info::InitAsDefaultInstance();
|
|
|
}
|
|
|
|
|
|
-void InitDefaultsParkspace_info() {
|
|
|
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParkspace_infoImpl);
|
|
|
-}
|
|
|
+::google::protobuf::internal::SCCInfo<1> scc_info_Parkspace_info =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsParkspace_info}, {
|
|
|
+ &protobuf_message_5fbase_2eproto::scc_info_Car_info.base,}};
|
|
|
|
|
|
-void InitDefaultsId_structImpl() {
|
|
|
+static void InitDefaultsId_struct() {
|
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
|
|
-#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
|
|
|
-#else
|
|
|
- ::google::protobuf::internal::InitProtobufDefaults();
|
|
|
-#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
{
|
|
|
void* ptr = &::message::_Id_struct_default_instance_;
|
|
|
new (ptr) ::message::Id_struct();
|
|
@@ -201,9 +158,17 @@ void InitDefaultsId_structImpl() {
|
|
|
::message::Id_struct::InitAsDefaultInstance();
|
|
|
}
|
|
|
|
|
|
-void InitDefaultsId_struct() {
|
|
|
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsId_structImpl);
|
|
|
+::google::protobuf::internal::SCCInfo<0> scc_info_Id_struct =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsId_struct}, {}};
|
|
|
+
|
|
|
+void InitDefaults() {
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_Base_info.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_Base_msg.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_Error_manager.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_Locate_information.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_Car_info.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_Parkspace_info.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_Id_struct.base);
|
|
|
}
|
|
|
|
|
|
::google::protobuf::Metadata file_level_metadata[7];
|
|
@@ -360,15 +325,14 @@ static ::google::protobuf::Message const * const file_default_instances[] = {
|
|
|
|
|
|
void protobuf_AssignDescriptors() {
|
|
|
AddDescriptors();
|
|
|
- ::google::protobuf::MessageFactory* factory = NULL;
|
|
|
AssignDescriptors(
|
|
|
- "message_base.proto", schemas, file_default_instances, TableStruct::offsets, factory,
|
|
|
+ "message_base.proto", schemas, file_default_instances, TableStruct::offsets,
|
|
|
file_level_metadata, file_level_enum_descriptors, NULL);
|
|
|
}
|
|
|
|
|
|
void protobuf_AssignDescriptorsOnce() {
|
|
|
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
- ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
|
|
|
+ static ::google::protobuf::internal::once_flag once;
|
|
|
+ ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
|
|
|
}
|
|
|
|
|
|
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
|
|
@@ -507,8 +471,8 @@ void AddDescriptorsImpl() {
|
|
|
}
|
|
|
|
|
|
void AddDescriptors() {
|
|
|
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
|
- ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
|
|
|
+ static ::google::protobuf::internal::once_flag once;
|
|
|
+ ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
|
|
|
}
|
|
|
// Force AddDescriptors() to be called at dynamic initialization time.
|
|
|
struct StaticDescriptorInitializer {
|
|
@@ -797,17 +761,15 @@ const int Base_info::kReceiverFieldNumber;
|
|
|
|
|
|
Base_info::Base_info()
|
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
|
- ::protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
|
|
|
- }
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_message_5fbase_2eproto::scc_info_Base_info.base);
|
|
|
SharedCtor();
|
|
|
// @@protoc_insertion_point(constructor:message.Base_info)
|
|
|
}
|
|
|
Base_info::Base_info(const Base_info& from)
|
|
|
: ::google::protobuf::Message(),
|
|
|
_internal_metadata_(NULL),
|
|
|
- _has_bits_(from._has_bits_),
|
|
|
- _cached_size_(0) {
|
|
|
+ _has_bits_(from._has_bits_) {
|
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
::memcpy(&msg_type_, &from.msg_type_,
|
|
|
static_cast<size_t>(reinterpret_cast<char*>(&receiver_) -
|
|
@@ -816,7 +778,6 @@ Base_info::Base_info(const Base_info& from)
|
|
|
}
|
|
|
|
|
|
void Base_info::SharedCtor() {
|
|
|
- _cached_size_ = 0;
|
|
|
::memset(&msg_type_, 0, static_cast<size_t>(
|
|
|
reinterpret_cast<char*>(&receiver_) -
|
|
|
reinterpret_cast<char*>(&msg_type_)) + sizeof(receiver_));
|
|
@@ -831,9 +792,7 @@ void Base_info::SharedDtor() {
|
|
|
}
|
|
|
|
|
|
void Base_info::SetCachedSize(int size) const {
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ _cached_size_.Set(size);
|
|
|
}
|
|
|
const ::google::protobuf::Descriptor* Base_info::descriptor() {
|
|
|
::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
|
|
@@ -841,17 +800,10 @@ const ::google::protobuf::Descriptor* Base_info::descriptor() {
|
|
|
}
|
|
|
|
|
|
const Base_info& Base_info::default_instance() {
|
|
|
- ::protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_message_5fbase_2eproto::scc_info_Base_info.base);
|
|
|
return *internal_default_instance();
|
|
|
}
|
|
|
|
|
|
-Base_info* Base_info::New(::google::protobuf::Arena* arena) const {
|
|
|
- Base_info* n = new Base_info;
|
|
|
- if (arena != NULL) {
|
|
|
- arena->Own(n);
|
|
|
- }
|
|
|
- return n;
|
|
|
-}
|
|
|
|
|
|
void Base_info::Clear() {
|
|
|
// @@protoc_insertion_point(message_clear_start:message.Base_info)
|
|
@@ -875,7 +827,7 @@ bool Base_info::MergePartialFromCodedStream(
|
|
|
::google::protobuf::uint32 tag;
|
|
|
// @@protoc_insertion_point(parse_start:message.Base_info)
|
|
|
for (;;) {
|
|
|
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
tag = p.first;
|
|
|
if (!p.second) goto handle_unusual;
|
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
@@ -1106,9 +1058,7 @@ size_t Base_info::ByteSizeLong() const {
|
|
|
}
|
|
|
|
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = cached_size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ SetCachedSize(cached_size);
|
|
|
return total_size;
|
|
|
}
|
|
|
|
|
@@ -1183,7 +1133,6 @@ void Base_info::InternalSwap(Base_info* other) {
|
|
|
swap(receiver_, other->receiver_);
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
- swap(_cached_size_, other->_cached_size_);
|
|
|
}
|
|
|
|
|
|
::google::protobuf::Metadata Base_info::GetMetadata() const {
|
|
@@ -1204,17 +1153,15 @@ const int Base_msg::kBaseInfoFieldNumber;
|
|
|
|
|
|
Base_msg::Base_msg()
|
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
|
- ::protobuf_message_5fbase_2eproto::InitDefaultsBase_msg();
|
|
|
- }
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_message_5fbase_2eproto::scc_info_Base_msg.base);
|
|
|
SharedCtor();
|
|
|
// @@protoc_insertion_point(constructor:message.Base_msg)
|
|
|
}
|
|
|
Base_msg::Base_msg(const Base_msg& from)
|
|
|
: ::google::protobuf::Message(),
|
|
|
_internal_metadata_(NULL),
|
|
|
- _has_bits_(from._has_bits_),
|
|
|
- _cached_size_(0) {
|
|
|
+ _has_bits_(from._has_bits_) {
|
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
if (from.has_base_info()) {
|
|
|
base_info_ = new ::message::Base_info(*from.base_info_);
|
|
@@ -1225,7 +1172,6 @@ Base_msg::Base_msg(const Base_msg& from)
|
|
|
}
|
|
|
|
|
|
void Base_msg::SharedCtor() {
|
|
|
- _cached_size_ = 0;
|
|
|
base_info_ = NULL;
|
|
|
}
|
|
|
|
|
@@ -1239,9 +1185,7 @@ void Base_msg::SharedDtor() {
|
|
|
}
|
|
|
|
|
|
void Base_msg::SetCachedSize(int size) const {
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ _cached_size_.Set(size);
|
|
|
}
|
|
|
const ::google::protobuf::Descriptor* Base_msg::descriptor() {
|
|
|
::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
|
|
@@ -1249,17 +1193,10 @@ const ::google::protobuf::Descriptor* Base_msg::descriptor() {
|
|
|
}
|
|
|
|
|
|
const Base_msg& Base_msg::default_instance() {
|
|
|
- ::protobuf_message_5fbase_2eproto::InitDefaultsBase_msg();
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_message_5fbase_2eproto::scc_info_Base_msg.base);
|
|
|
return *internal_default_instance();
|
|
|
}
|
|
|
|
|
|
-Base_msg* Base_msg::New(::google::protobuf::Arena* arena) const {
|
|
|
- Base_msg* n = new Base_msg;
|
|
|
- if (arena != NULL) {
|
|
|
- arena->Own(n);
|
|
|
- }
|
|
|
- return n;
|
|
|
-}
|
|
|
|
|
|
void Base_msg::Clear() {
|
|
|
// @@protoc_insertion_point(message_clear_start:message.Base_msg)
|
|
@@ -1282,7 +1219,7 @@ bool Base_msg::MergePartialFromCodedStream(
|
|
|
::google::protobuf::uint32 tag;
|
|
|
// @@protoc_insertion_point(parse_start:message.Base_msg)
|
|
|
for (;;) {
|
|
|
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
tag = p.first;
|
|
|
if (!p.second) goto handle_unusual;
|
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
@@ -1328,7 +1265,7 @@ void Base_msg::SerializeWithCachedSizes(
|
|
|
// required .message.Base_info base_info = 1;
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
- 1, *this->base_info_, output);
|
|
|
+ 1, this->_internal_base_info(), output);
|
|
|
}
|
|
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
@@ -1350,7 +1287,7 @@ void Base_msg::SerializeWithCachedSizes(
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
- 1, *this->base_info_, deterministic, target);
|
|
|
+ 1, this->_internal_base_info(), deterministic, target);
|
|
|
}
|
|
|
|
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
|
@@ -1374,12 +1311,10 @@ size_t Base_msg::ByteSizeLong() const {
|
|
|
if (has_base_info()) {
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->base_info_);
|
|
|
+ *base_info_);
|
|
|
}
|
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = cached_size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ SetCachedSize(cached_size);
|
|
|
return total_size;
|
|
|
}
|
|
|
|
|
@@ -1441,7 +1376,6 @@ void Base_msg::InternalSwap(Base_msg* other) {
|
|
|
swap(base_info_, other->base_info_);
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
- swap(_cached_size_, other->_cached_size_);
|
|
|
}
|
|
|
|
|
|
::google::protobuf::Metadata Base_msg::GetMetadata() const {
|
|
@@ -1462,17 +1396,15 @@ const int Error_manager::kErrorDescriptionFieldNumber;
|
|
|
|
|
|
Error_manager::Error_manager()
|
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
|
- ::protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
|
|
|
- }
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_message_5fbase_2eproto::scc_info_Error_manager.base);
|
|
|
SharedCtor();
|
|
|
// @@protoc_insertion_point(constructor:message.Error_manager)
|
|
|
}
|
|
|
Error_manager::Error_manager(const Error_manager& from)
|
|
|
: ::google::protobuf::Message(),
|
|
|
_internal_metadata_(NULL),
|
|
|
- _has_bits_(from._has_bits_),
|
|
|
- _cached_size_(0) {
|
|
|
+ _has_bits_(from._has_bits_) {
|
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
error_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
if (from.has_error_description()) {
|
|
@@ -1485,7 +1417,6 @@ Error_manager::Error_manager(const Error_manager& from)
|
|
|
}
|
|
|
|
|
|
void Error_manager::SharedCtor() {
|
|
|
- _cached_size_ = 0;
|
|
|
error_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
::memset(&error_code_, 0, static_cast<size_t>(
|
|
|
reinterpret_cast<char*>(&error_level_) -
|
|
@@ -1502,9 +1433,7 @@ void Error_manager::SharedDtor() {
|
|
|
}
|
|
|
|
|
|
void Error_manager::SetCachedSize(int size) const {
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ _cached_size_.Set(size);
|
|
|
}
|
|
|
const ::google::protobuf::Descriptor* Error_manager::descriptor() {
|
|
|
::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
|
|
@@ -1512,17 +1441,10 @@ const ::google::protobuf::Descriptor* Error_manager::descriptor() {
|
|
|
}
|
|
|
|
|
|
const Error_manager& Error_manager::default_instance() {
|
|
|
- ::protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_message_5fbase_2eproto::scc_info_Error_manager.base);
|
|
|
return *internal_default_instance();
|
|
|
}
|
|
|
|
|
|
-Error_manager* Error_manager::New(::google::protobuf::Arena* arena) const {
|
|
|
- Error_manager* n = new Error_manager;
|
|
|
- if (arena != NULL) {
|
|
|
- arena->Own(n);
|
|
|
- }
|
|
|
- return n;
|
|
|
-}
|
|
|
|
|
|
void Error_manager::Clear() {
|
|
|
// @@protoc_insertion_point(message_clear_start:message.Error_manager)
|
|
@@ -1532,8 +1454,7 @@ void Error_manager::Clear() {
|
|
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
- GOOGLE_DCHECK(!error_description_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
|
- (*error_description_.UnsafeRawStringPointer())->clear();
|
|
|
+ error_description_.ClearNonDefaultToEmptyNoArena();
|
|
|
}
|
|
|
if (cached_has_bits & 6u) {
|
|
|
::memset(&error_code_, 0, static_cast<size_t>(
|
|
@@ -1550,7 +1471,7 @@ bool Error_manager::MergePartialFromCodedStream(
|
|
|
::google::protobuf::uint32 tag;
|
|
|
// @@protoc_insertion_point(parse_start:message.Error_manager)
|
|
|
for (;;) {
|
|
|
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
tag = p.first;
|
|
|
if (!p.second) goto handle_unusual;
|
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
@@ -1726,9 +1647,7 @@ size_t Error_manager::ByteSizeLong() const {
|
|
|
}
|
|
|
|
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = cached_size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ SetCachedSize(cached_size);
|
|
|
return total_size;
|
|
|
}
|
|
|
|
|
@@ -1795,12 +1714,12 @@ void Error_manager::Swap(Error_manager* other) {
|
|
|
}
|
|
|
void Error_manager::InternalSwap(Error_manager* other) {
|
|
|
using std::swap;
|
|
|
- error_description_.Swap(&other->error_description_);
|
|
|
+ error_description_.Swap(&other->error_description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
|
+ GetArenaNoVirtual());
|
|
|
swap(error_code_, other->error_code_);
|
|
|
swap(error_level_, other->error_level_);
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
- swap(_cached_size_, other->_cached_size_);
|
|
|
}
|
|
|
|
|
|
::google::protobuf::Metadata Error_manager::GetMetadata() const {
|
|
@@ -1830,17 +1749,15 @@ const int Locate_information::kUniformedCarYFieldNumber;
|
|
|
|
|
|
Locate_information::Locate_information()
|
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
|
- ::protobuf_message_5fbase_2eproto::InitDefaultsLocate_information();
|
|
|
- }
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_message_5fbase_2eproto::scc_info_Locate_information.base);
|
|
|
SharedCtor();
|
|
|
// @@protoc_insertion_point(constructor:message.Locate_information)
|
|
|
}
|
|
|
Locate_information::Locate_information(const Locate_information& from)
|
|
|
: ::google::protobuf::Message(),
|
|
|
_internal_metadata_(NULL),
|
|
|
- _has_bits_(from._has_bits_),
|
|
|
- _cached_size_(0) {
|
|
|
+ _has_bits_(from._has_bits_) {
|
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
::memcpy(&locate_x_, &from.locate_x_,
|
|
|
static_cast<size_t>(reinterpret_cast<char*>(&uniformed_car_y_) -
|
|
@@ -1849,7 +1766,6 @@ Locate_information::Locate_information(const Locate_information& from)
|
|
|
}
|
|
|
|
|
|
void Locate_information::SharedCtor() {
|
|
|
- _cached_size_ = 0;
|
|
|
::memset(&locate_x_, 0, static_cast<size_t>(
|
|
|
reinterpret_cast<char*>(&uniformed_car_y_) -
|
|
|
reinterpret_cast<char*>(&locate_x_)) + sizeof(uniformed_car_y_));
|
|
@@ -1864,9 +1780,7 @@ void Locate_information::SharedDtor() {
|
|
|
}
|
|
|
|
|
|
void Locate_information::SetCachedSize(int size) const {
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ _cached_size_.Set(size);
|
|
|
}
|
|
|
const ::google::protobuf::Descriptor* Locate_information::descriptor() {
|
|
|
::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
|
|
@@ -1874,17 +1788,10 @@ const ::google::protobuf::Descriptor* Locate_information::descriptor() {
|
|
|
}
|
|
|
|
|
|
const Locate_information& Locate_information::default_instance() {
|
|
|
- ::protobuf_message_5fbase_2eproto::InitDefaultsLocate_information();
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_message_5fbase_2eproto::scc_info_Locate_information.base);
|
|
|
return *internal_default_instance();
|
|
|
}
|
|
|
|
|
|
-Locate_information* Locate_information::New(::google::protobuf::Arena* arena) const {
|
|
|
- Locate_information* n = new Locate_information;
|
|
|
- if (arena != NULL) {
|
|
|
- arena->Own(n);
|
|
|
- }
|
|
|
- return n;
|
|
|
-}
|
|
|
|
|
|
void Locate_information::Clear() {
|
|
|
// @@protoc_insertion_point(message_clear_start:message.Locate_information)
|
|
@@ -1913,7 +1820,7 @@ bool Locate_information::MergePartialFromCodedStream(
|
|
|
::google::protobuf::uint32 tag;
|
|
|
// @@protoc_insertion_point(parse_start:message.Locate_information)
|
|
|
for (;;) {
|
|
|
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
tag = p.first;
|
|
|
if (!p.second) goto handle_unusual;
|
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
@@ -2329,9 +2236,7 @@ size_t Locate_information::ByteSizeLong() const {
|
|
|
|
|
|
}
|
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = cached_size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ SetCachedSize(cached_size);
|
|
|
return total_size;
|
|
|
}
|
|
|
|
|
@@ -2440,7 +2345,6 @@ void Locate_information::InternalSwap(Locate_information* other) {
|
|
|
swap(uniformed_car_y_, other->uniformed_car_y_);
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
- swap(_cached_size_, other->_cached_size_);
|
|
|
}
|
|
|
|
|
|
::google::protobuf::Metadata Locate_information::GetMetadata() const {
|
|
@@ -2465,17 +2369,15 @@ const int Car_info::kCarWheelWidthFieldNumber;
|
|
|
|
|
|
Car_info::Car_info()
|
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
|
- ::protobuf_message_5fbase_2eproto::InitDefaultsCar_info();
|
|
|
- }
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_message_5fbase_2eproto::scc_info_Car_info.base);
|
|
|
SharedCtor();
|
|
|
// @@protoc_insertion_point(constructor:message.Car_info)
|
|
|
}
|
|
|
Car_info::Car_info(const Car_info& from)
|
|
|
: ::google::protobuf::Message(),
|
|
|
_internal_metadata_(NULL),
|
|
|
- _has_bits_(from._has_bits_),
|
|
|
- _cached_size_(0) {
|
|
|
+ _has_bits_(from._has_bits_) {
|
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
license_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
if (from.has_license()) {
|
|
@@ -2492,7 +2394,6 @@ Car_info::Car_info(const Car_info& from)
|
|
|
}
|
|
|
|
|
|
void Car_info::SharedCtor() {
|
|
|
- _cached_size_ = 0;
|
|
|
license_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
car_numberplate_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
::memset(&car_length_, 0, static_cast<size_t>(
|
|
@@ -2511,9 +2412,7 @@ void Car_info::SharedDtor() {
|
|
|
}
|
|
|
|
|
|
void Car_info::SetCachedSize(int size) const {
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ _cached_size_.Set(size);
|
|
|
}
|
|
|
const ::google::protobuf::Descriptor* Car_info::descriptor() {
|
|
|
::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
|
|
@@ -2521,17 +2420,10 @@ const ::google::protobuf::Descriptor* Car_info::descriptor() {
|
|
|
}
|
|
|
|
|
|
const Car_info& Car_info::default_instance() {
|
|
|
- ::protobuf_message_5fbase_2eproto::InitDefaultsCar_info();
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_message_5fbase_2eproto::scc_info_Car_info.base);
|
|
|
return *internal_default_instance();
|
|
|
}
|
|
|
|
|
|
-Car_info* Car_info::New(::google::protobuf::Arena* arena) const {
|
|
|
- Car_info* n = new Car_info;
|
|
|
- if (arena != NULL) {
|
|
|
- arena->Own(n);
|
|
|
- }
|
|
|
- return n;
|
|
|
-}
|
|
|
|
|
|
void Car_info::Clear() {
|
|
|
// @@protoc_insertion_point(message_clear_start:message.Car_info)
|
|
@@ -2542,12 +2434,10 @@ void Car_info::Clear() {
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
if (cached_has_bits & 3u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
- GOOGLE_DCHECK(!license_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
|
- (*license_.UnsafeRawStringPointer())->clear();
|
|
|
+ license_.ClearNonDefaultToEmptyNoArena();
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
- GOOGLE_DCHECK(!car_numberplate_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
|
- (*car_numberplate_.UnsafeRawStringPointer())->clear();
|
|
|
+ car_numberplate_.ClearNonDefaultToEmptyNoArena();
|
|
|
}
|
|
|
}
|
|
|
if (cached_has_bits & 124u) {
|
|
@@ -2565,7 +2455,7 @@ bool Car_info::MergePartialFromCodedStream(
|
|
|
::google::protobuf::uint32 tag;
|
|
|
// @@protoc_insertion_point(parse_start:message.Car_info)
|
|
|
for (;;) {
|
|
|
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
tag = p.first;
|
|
|
if (!p.second) goto handle_unusual;
|
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
@@ -2864,9 +2754,7 @@ size_t Car_info::ByteSizeLong() const {
|
|
|
|
|
|
}
|
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = cached_size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ SetCachedSize(cached_size);
|
|
|
return total_size;
|
|
|
}
|
|
|
|
|
@@ -2945,8 +2833,10 @@ void Car_info::Swap(Car_info* other) {
|
|
|
}
|
|
|
void Car_info::InternalSwap(Car_info* other) {
|
|
|
using std::swap;
|
|
|
- license_.Swap(&other->license_);
|
|
|
- car_numberplate_.Swap(&other->car_numberplate_);
|
|
|
+ license_.Swap(&other->license_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
|
+ GetArenaNoVirtual());
|
|
|
+ car_numberplate_.Swap(&other->car_numberplate_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
|
+ GetArenaNoVirtual());
|
|
|
swap(car_length_, other->car_length_);
|
|
|
swap(car_width_, other->car_width_);
|
|
|
swap(car_height_, other->car_height_);
|
|
@@ -2954,7 +2844,6 @@ void Car_info::InternalSwap(Car_info* other) {
|
|
|
swap(car_wheel_width_, other->car_wheel_width_);
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
- swap(_cached_size_, other->_cached_size_);
|
|
|
}
|
|
|
|
|
|
::google::protobuf::Metadata Car_info::GetMetadata() const {
|
|
@@ -2991,17 +2880,15 @@ const int Parkspace_info::kCarTypeFieldNumber;
|
|
|
|
|
|
Parkspace_info::Parkspace_info()
|
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
|
- ::protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info();
|
|
|
- }
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_message_5fbase_2eproto::scc_info_Parkspace_info.base);
|
|
|
SharedCtor();
|
|
|
// @@protoc_insertion_point(constructor:message.Parkspace_info)
|
|
|
}
|
|
|
Parkspace_info::Parkspace_info(const Parkspace_info& from)
|
|
|
: ::google::protobuf::Message(),
|
|
|
_internal_metadata_(NULL),
|
|
|
- _has_bits_(from._has_bits_),
|
|
|
- _cached_size_(0) {
|
|
|
+ _has_bits_(from._has_bits_) {
|
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
entry_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
if (from.has_entry_time()) {
|
|
@@ -3023,7 +2910,6 @@ Parkspace_info::Parkspace_info(const Parkspace_info& from)
|
|
|
}
|
|
|
|
|
|
void Parkspace_info::SharedCtor() {
|
|
|
- _cached_size_ = 0;
|
|
|
entry_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
leave_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
::memset(&car_info_, 0, static_cast<size_t>(
|
|
@@ -3043,9 +2929,7 @@ void Parkspace_info::SharedDtor() {
|
|
|
}
|
|
|
|
|
|
void Parkspace_info::SetCachedSize(int size) const {
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ _cached_size_.Set(size);
|
|
|
}
|
|
|
const ::google::protobuf::Descriptor* Parkspace_info::descriptor() {
|
|
|
::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
|
|
@@ -3053,17 +2937,10 @@ const ::google::protobuf::Descriptor* Parkspace_info::descriptor() {
|
|
|
}
|
|
|
|
|
|
const Parkspace_info& Parkspace_info::default_instance() {
|
|
|
- ::protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info();
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_message_5fbase_2eproto::scc_info_Parkspace_info.base);
|
|
|
return *internal_default_instance();
|
|
|
}
|
|
|
|
|
|
-Parkspace_info* Parkspace_info::New(::google::protobuf::Arena* arena) const {
|
|
|
- Parkspace_info* n = new Parkspace_info;
|
|
|
- if (arena != NULL) {
|
|
|
- arena->Own(n);
|
|
|
- }
|
|
|
- return n;
|
|
|
-}
|
|
|
|
|
|
void Parkspace_info::Clear() {
|
|
|
// @@protoc_insertion_point(message_clear_start:message.Parkspace_info)
|
|
@@ -3074,12 +2951,10 @@ void Parkspace_info::Clear() {
|
|
|
cached_has_bits = _has_bits_[0];
|
|
|
if (cached_has_bits & 7u) {
|
|
|
if (cached_has_bits & 0x00000001u) {
|
|
|
- GOOGLE_DCHECK(!entry_time_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
|
- (*entry_time_.UnsafeRawStringPointer())->clear();
|
|
|
+ entry_time_.ClearNonDefaultToEmptyNoArena();
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000002u) {
|
|
|
- GOOGLE_DCHECK(!leave_time_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
|
|
|
- (*leave_time_.UnsafeRawStringPointer())->clear();
|
|
|
+ leave_time_.ClearNonDefaultToEmptyNoArena();
|
|
|
}
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
GOOGLE_DCHECK(car_info_ != NULL);
|
|
@@ -3107,7 +2982,7 @@ bool Parkspace_info::MergePartialFromCodedStream(
|
|
|
::google::protobuf::uint32 tag;
|
|
|
// @@protoc_insertion_point(parse_start:message.Parkspace_info)
|
|
|
for (;;) {
|
|
|
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
|
|
|
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
|
|
|
tag = p.first;
|
|
|
if (!p.second) goto handle_unusual;
|
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
@@ -3470,7 +3345,7 @@ void Parkspace_info::SerializeWithCachedSizes(
|
|
|
// optional .message.Car_info car_info = 11;
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
- 11, *this->car_info_, output);
|
|
|
+ 11, this->_internal_car_info(), output);
|
|
|
}
|
|
|
|
|
|
// optional string entry_time = 12;
|
|
@@ -3588,7 +3463,7 @@ void Parkspace_info::SerializeWithCachedSizes(
|
|
|
if (cached_has_bits & 0x00000004u) {
|
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
|
InternalWriteMessageToArray(
|
|
|
- 11, *this->car_info_, deterministic, target);
|
|
|
+ 11, this->_internal_car_info(), deterministic, target);
|
|
|
}
|
|
|
|
|
|
// optional string entry_time = 12;
|
|
@@ -3672,7 +3547,7 @@ size_t Parkspace_info::ByteSizeLong() const {
|
|
|
if (has_car_info()) {
|
|
|
total_size += 1 +
|
|
|
::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
- *this->car_info_);
|
|
|
+ *car_info_);
|
|
|
}
|
|
|
|
|
|
// optional int32 parkingspace_index_id = 1;
|
|
@@ -3765,9 +3640,7 @@ size_t Parkspace_info::ByteSizeLong() const {
|
|
|
}
|
|
|
|
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = cached_size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ SetCachedSize(cached_size);
|
|
|
return total_size;
|
|
|
}
|
|
|
|
|
@@ -3879,8 +3752,10 @@ void Parkspace_info::Swap(Parkspace_info* other) {
|
|
|
}
|
|
|
void Parkspace_info::InternalSwap(Parkspace_info* other) {
|
|
|
using std::swap;
|
|
|
- entry_time_.Swap(&other->entry_time_);
|
|
|
- leave_time_.Swap(&other->leave_time_);
|
|
|
+ entry_time_.Swap(&other->entry_time_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
|
+ GetArenaNoVirtual());
|
|
|
+ leave_time_.Swap(&other->leave_time_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
|
+ GetArenaNoVirtual());
|
|
|
swap(car_info_, other->car_info_);
|
|
|
swap(parkingspace_index_id_, other->parkingspace_index_id_);
|
|
|
swap(parkingspace_type_, other->parkingspace_type_);
|
|
@@ -3898,7 +3773,6 @@ void Parkspace_info::InternalSwap(Parkspace_info* other) {
|
|
|
swap(car_type_, other->car_type_);
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
- swap(_cached_size_, other->_cached_size_);
|
|
|
}
|
|
|
|
|
|
::google::protobuf::Metadata Parkspace_info::GetMetadata() const {
|
|
@@ -3918,17 +3792,15 @@ const int Id_struct::kUnitIdFieldNumber;
|
|
|
|
|
|
Id_struct::Id_struct()
|
|
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
|
- ::protobuf_message_5fbase_2eproto::InitDefaultsId_struct();
|
|
|
- }
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_message_5fbase_2eproto::scc_info_Id_struct.base);
|
|
|
SharedCtor();
|
|
|
// @@protoc_insertion_point(constructor:message.Id_struct)
|
|
|
}
|
|
|
Id_struct::Id_struct(const Id_struct& from)
|
|
|
: ::google::protobuf::Message(),
|
|
|
_internal_metadata_(NULL),
|
|
|
- _has_bits_(from._has_bits_),
|
|
|
- _cached_size_(0) {
|
|
|
+ _has_bits_(from._has_bits_) {
|
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
::memcpy(&terminal_id_, &from.terminal_id_,
|
|
|
static_cast<size_t>(reinterpret_cast<char*>(&unit_id_) -
|
|
@@ -3937,7 +3809,6 @@ Id_struct::Id_struct(const Id_struct& from)
|
|
|
}
|
|
|
|
|
|
void Id_struct::SharedCtor() {
|
|
|
- _cached_size_ = 0;
|
|
|
::memset(&terminal_id_, 0, static_cast<size_t>(
|
|
|
reinterpret_cast<char*>(&unit_id_) -
|
|
|
reinterpret_cast<char*>(&terminal_id_)) + sizeof(unit_id_));
|
|
@@ -3952,9 +3823,7 @@ void Id_struct::SharedDtor() {
|
|
|
}
|
|
|
|
|
|
void Id_struct::SetCachedSize(int size) const {
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ _cached_size_.Set(size);
|
|
|
}
|
|
|
const ::google::protobuf::Descriptor* Id_struct::descriptor() {
|
|
|
::protobuf_message_5fbase_2eproto::protobuf_AssignDescriptorsOnce();
|
|
@@ -3962,17 +3831,10 @@ const ::google::protobuf::Descriptor* Id_struct::descriptor() {
|
|
|
}
|
|
|
|
|
|
const Id_struct& Id_struct::default_instance() {
|
|
|
- ::protobuf_message_5fbase_2eproto::InitDefaultsId_struct();
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_message_5fbase_2eproto::scc_info_Id_struct.base);
|
|
|
return *internal_default_instance();
|
|
|
}
|
|
|
|
|
|
-Id_struct* Id_struct::New(::google::protobuf::Arena* arena) const {
|
|
|
- Id_struct* n = new Id_struct;
|
|
|
- if (arena != NULL) {
|
|
|
- arena->Own(n);
|
|
|
- }
|
|
|
- return n;
|
|
|
-}
|
|
|
|
|
|
void Id_struct::Clear() {
|
|
|
// @@protoc_insertion_point(message_clear_start:message.Id_struct)
|
|
@@ -3996,7 +3858,7 @@ bool Id_struct::MergePartialFromCodedStream(
|
|
|
::google::protobuf::uint32 tag;
|
|
|
// @@protoc_insertion_point(parse_start:message.Id_struct)
|
|
|
for (;;) {
|
|
|
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
+ ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
|
|
|
tag = p.first;
|
|
|
if (!p.second) goto handle_unusual;
|
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
@@ -4124,9 +3986,7 @@ size_t Id_struct::ByteSizeLong() const {
|
|
|
|
|
|
}
|
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
- _cached_size_ = cached_size;
|
|
|
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ SetCachedSize(cached_size);
|
|
|
return total_size;
|
|
|
}
|
|
|
|
|
@@ -4192,7 +4052,6 @@ void Id_struct::InternalSwap(Id_struct* other) {
|
|
|
swap(unit_id_, other->unit_id_);
|
|
|
swap(_has_bits_[0], other->_has_bits_[0]);
|
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
- swap(_cached_size_, other->_cached_size_);
|
|
|
}
|
|
|
|
|
|
::google::protobuf::Metadata Id_struct::GetMetadata() const {
|
|
@@ -4203,5 +4062,30 @@ void Id_struct::InternalSwap(Id_struct* other) {
|
|
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
|
} // namespace message
|
|
|
+namespace google {
|
|
|
+namespace protobuf {
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Base_info* Arena::CreateMaybeMessage< ::message::Base_info >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::message::Base_info >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Base_msg* Arena::CreateMaybeMessage< ::message::Base_msg >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::message::Base_msg >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Error_manager* Arena::CreateMaybeMessage< ::message::Error_manager >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::message::Error_manager >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Locate_information* Arena::CreateMaybeMessage< ::message::Locate_information >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::message::Locate_information >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Car_info* Arena::CreateMaybeMessage< ::message::Car_info >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::message::Car_info >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Parkspace_info* Arena::CreateMaybeMessage< ::message::Parkspace_info >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::message::Parkspace_info >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Id_struct* Arena::CreateMaybeMessage< ::message::Id_struct >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::message::Id_struct >(arena);
|
|
|
+}
|
|
|
+} // namespace protobuf
|
|
|
+} // namespace google
|
|
|
|
|
|
// @@protoc_insertion_point(global_scope)
|