// Generated by the protocol buffer compiler. DO NOT EDIT!
|
// source: base.proto
|
|
#include "base.pb.h"
|
|
#include <algorithm>
|
|
#include <google/protobuf/io/coded_stream.h>
|
#include <google/protobuf/extension_set.h>
|
#include <google/protobuf/wire_format_lite.h>
|
#include <google/protobuf/descriptor.h>
|
#include <google/protobuf/generated_message_reflection.h>
|
#include <google/protobuf/reflection_ops.h>
|
#include <google/protobuf/wire_format.h>
|
// @@protoc_insertion_point(includes)
|
#include <google/protobuf/port_def.inc>
|
|
PROTOBUF_PRAGMA_INIT_SEG
|
namespace protomsg {
|
constexpr Point::Point(
|
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
|
: x_(0)
|
, y_(0){}
|
struct PointDefaultTypeInternal {
|
constexpr PointDefaultTypeInternal()
|
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
|
~PointDefaultTypeInternal() {}
|
union {
|
Point _instance;
|
};
|
};
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PointDefaultTypeInternal _Point_default_instance_;
|
constexpr Rect::Rect(
|
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
|
: left_(0)
|
, top_(0)
|
, right_(0)
|
, bottom_(0){}
|
struct RectDefaultTypeInternal {
|
constexpr RectDefaultTypeInternal()
|
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
|
~RectDefaultTypeInternal() {}
|
union {
|
Rect _instance;
|
};
|
};
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT RectDefaultTypeInternal _Rect_default_instance_;
|
} // namespace protomsg
|
static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_base_2eproto[2];
|
static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_base_2eproto = nullptr;
|
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_base_2eproto = nullptr;
|
|
const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_base_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
~0u, // no _has_bits_
|
PROTOBUF_FIELD_OFFSET(::protomsg::Point, _internal_metadata_),
|
~0u, // no _extensions_
|
~0u, // no _oneof_case_
|
~0u, // no _weak_field_map_
|
PROTOBUF_FIELD_OFFSET(::protomsg::Point, x_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::Point, y_),
|
~0u, // no _has_bits_
|
PROTOBUF_FIELD_OFFSET(::protomsg::Rect, _internal_metadata_),
|
~0u, // no _extensions_
|
~0u, // no _oneof_case_
|
~0u, // no _weak_field_map_
|
PROTOBUF_FIELD_OFFSET(::protomsg::Rect, left_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::Rect, top_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::Rect, right_),
|
PROTOBUF_FIELD_OFFSET(::protomsg::Rect, bottom_),
|
};
|
static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
{ 0, -1, sizeof(::protomsg::Point)},
|
{ 7, -1, sizeof(::protomsg::Rect)},
|
};
|
|
static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::protomsg::_Point_default_instance_),
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::protomsg::_Rect_default_instance_),
|
};
|
|
const char descriptor_table_protodef_base_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
"\n\nbase.proto\022\010protomsg\"\035\n\005Point\022\t\n\001x\030\001 \001"
|
"(\005\022\t\n\001y\030\002 \001(\005\"@\n\004Rect\022\014\n\004left\030\001 \001(\005\022\013\n\003t"
|
"op\030\002 \001(\005\022\r\n\005right\030\003 \001(\005\022\016\n\006bottom\030\004 \001(\005b"
|
"\006proto3"
|
;
|
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_base_2eproto_once;
|
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_base_2eproto = {
|
false, false, 127, descriptor_table_protodef_base_2eproto, "base.proto",
|
&descriptor_table_base_2eproto_once, nullptr, 0, 2,
|
schemas, file_default_instances, TableStruct_base_2eproto::offsets,
|
file_level_metadata_base_2eproto, file_level_enum_descriptors_base_2eproto, file_level_service_descriptors_base_2eproto,
|
};
|
PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_base_2eproto_getter() {
|
return &descriptor_table_base_2eproto;
|
}
|
|
// Force running AddDescriptors() at dynamic initialization time.
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_base_2eproto(&descriptor_table_base_2eproto);
|
namespace protomsg {
|
|
// ===================================================================
|
|
class Point::_Internal {
|
public:
|
};
|
|
Point::Point(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
bool is_message_owned)
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
SharedCtor();
|
if (!is_message_owned) {
|
RegisterArenaDtor(arena);
|
}
|
// @@protoc_insertion_point(arena_constructor:protomsg.Point)
|
}
|
Point::Point(const Point& from)
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
::memcpy(&x_, &from.x_,
|
static_cast<size_t>(reinterpret_cast<char*>(&y_) -
|
reinterpret_cast<char*>(&x_)) + sizeof(y_));
|
// @@protoc_insertion_point(copy_constructor:protomsg.Point)
|
}
|
|
inline void Point::SharedCtor() {
|
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
|
reinterpret_cast<char*>(&x_) - reinterpret_cast<char*>(this)),
|
0, static_cast<size_t>(reinterpret_cast<char*>(&y_) -
|
reinterpret_cast<char*>(&x_)) + sizeof(y_));
|
}
|
|
Point::~Point() {
|
// @@protoc_insertion_point(destructor:protomsg.Point)
|
if (GetArenaForAllocation() != nullptr) return;
|
SharedDtor();
|
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
}
|
|
inline void Point::SharedDtor() {
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
}
|
|
void Point::ArenaDtor(void* object) {
|
Point* _this = reinterpret_cast< Point* >(object);
|
(void)_this;
|
}
|
void Point::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
}
|
void Point::SetCachedSize(int size) const {
|
_cached_size_.Set(size);
|
}
|
|
void Point::Clear() {
|
// @@protoc_insertion_point(message_clear_start:protomsg.Point)
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
// Prevent compiler warnings about cached_has_bits being unused
|
(void) cached_has_bits;
|
|
::memset(&x_, 0, static_cast<size_t>(
|
reinterpret_cast<char*>(&y_) -
|
reinterpret_cast<char*>(&x_)) + sizeof(y_));
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
}
|
|
const char* Point::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
while (!ctx->Done(&ptr)) {
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
switch (tag >> 3) {
|
// int32 x = 1;
|
case 1:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
|
x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// int32 y = 2;
|
case 2:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
|
y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
default: {
|
handle_unusual:
|
if ((tag == 0) || ((tag & 7) == 4)) {
|
CHK_(ptr);
|
ctx->SetLastTag(tag);
|
goto success;
|
}
|
ptr = UnknownFieldParse(tag,
|
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
ptr, ctx);
|
CHK_(ptr != nullptr);
|
continue;
|
}
|
} // switch
|
} // while
|
success:
|
return ptr;
|
failure:
|
ptr = nullptr;
|
goto success;
|
#undef CHK_
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint8* Point::_InternalSerialize(
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
// @@protoc_insertion_point(serialize_to_array_start:protomsg.Point)
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
(void) cached_has_bits;
|
|
// int32 x = 1;
|
if (this->_internal_x() != 0) {
|
target = stream->EnsureSpace(target);
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target);
|
}
|
|
// int32 y = 2;
|
if (this->_internal_y() != 0) {
|
target = stream->EnsureSpace(target);
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target);
|
}
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
}
|
// @@protoc_insertion_point(serialize_to_array_end:protomsg.Point)
|
return target;
|
}
|
|
size_t Point::ByteSizeLong() const {
|
// @@protoc_insertion_point(message_byte_size_start:protomsg.Point)
|
size_t total_size = 0;
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
// Prevent compiler warnings about cached_has_bits being unused
|
(void) cached_has_bits;
|
|
// int32 x = 1;
|
if (this->_internal_x() != 0) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
this->_internal_x());
|
}
|
|
// int32 y = 2;
|
if (this->_internal_y() != 0) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
this->_internal_y());
|
}
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
|
_internal_metadata_, total_size, &_cached_size_);
|
}
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
SetCachedSize(cached_size);
|
return total_size;
|
}
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Point::_class_data_ = {
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
|
Point::MergeImpl
|
};
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Point::GetClassData() const { return &_class_data_; }
|
|
void Point::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message*to,
|
const ::PROTOBUF_NAMESPACE_ID::Message&from) {
|
static_cast<Point *>(to)->MergeFrom(
|
static_cast<const Point &>(from));
|
}
|
|
|
void Point::MergeFrom(const Point& from) {
|
// @@protoc_insertion_point(class_specific_merge_from_start:protomsg.Point)
|
GOOGLE_DCHECK_NE(&from, this);
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
(void) cached_has_bits;
|
|
if (from._internal_x() != 0) {
|
_internal_set_x(from._internal_x());
|
}
|
if (from._internal_y() != 0) {
|
_internal_set_y(from._internal_y());
|
}
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
}
|
|
void Point::CopyFrom(const Point& from) {
|
// @@protoc_insertion_point(class_specific_copy_from_start:protomsg.Point)
|
if (&from == this) return;
|
Clear();
|
MergeFrom(from);
|
}
|
|
bool Point::IsInitialized() const {
|
return true;
|
}
|
|
void Point::InternalSwap(Point* other) {
|
using std::swap;
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
PROTOBUF_FIELD_OFFSET(Point, y_)
|
+ sizeof(Point::y_)
|
- PROTOBUF_FIELD_OFFSET(Point, x_)>(
|
reinterpret_cast<char*>(&x_),
|
reinterpret_cast<char*>(&other->x_));
|
}
|
|
::PROTOBUF_NAMESPACE_ID::Metadata Point::GetMetadata() const {
|
return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
|
&descriptor_table_base_2eproto_getter, &descriptor_table_base_2eproto_once,
|
file_level_metadata_base_2eproto[0]);
|
}
|
|
// ===================================================================
|
|
class Rect::_Internal {
|
public:
|
};
|
|
Rect::Rect(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
bool is_message_owned)
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
SharedCtor();
|
if (!is_message_owned) {
|
RegisterArenaDtor(arena);
|
}
|
// @@protoc_insertion_point(arena_constructor:protomsg.Rect)
|
}
|
Rect::Rect(const Rect& from)
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
::memcpy(&left_, &from.left_,
|
static_cast<size_t>(reinterpret_cast<char*>(&bottom_) -
|
reinterpret_cast<char*>(&left_)) + sizeof(bottom_));
|
// @@protoc_insertion_point(copy_constructor:protomsg.Rect)
|
}
|
|
inline void Rect::SharedCtor() {
|
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
|
reinterpret_cast<char*>(&left_) - reinterpret_cast<char*>(this)),
|
0, static_cast<size_t>(reinterpret_cast<char*>(&bottom_) -
|
reinterpret_cast<char*>(&left_)) + sizeof(bottom_));
|
}
|
|
Rect::~Rect() {
|
// @@protoc_insertion_point(destructor:protomsg.Rect)
|
if (GetArenaForAllocation() != nullptr) return;
|
SharedDtor();
|
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
}
|
|
inline void Rect::SharedDtor() {
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
}
|
|
void Rect::ArenaDtor(void* object) {
|
Rect* _this = reinterpret_cast< Rect* >(object);
|
(void)_this;
|
}
|
void Rect::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
}
|
void Rect::SetCachedSize(int size) const {
|
_cached_size_.Set(size);
|
}
|
|
void Rect::Clear() {
|
// @@protoc_insertion_point(message_clear_start:protomsg.Rect)
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
// Prevent compiler warnings about cached_has_bits being unused
|
(void) cached_has_bits;
|
|
::memset(&left_, 0, static_cast<size_t>(
|
reinterpret_cast<char*>(&bottom_) -
|
reinterpret_cast<char*>(&left_)) + sizeof(bottom_));
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
}
|
|
const char* Rect::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
while (!ctx->Done(&ptr)) {
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
switch (tag >> 3) {
|
// int32 left = 1;
|
case 1:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
|
left_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// int32 top = 2;
|
case 2:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
|
top_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// int32 right = 3;
|
case 3:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
|
right_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
// int32 bottom = 4;
|
case 4:
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
|
bottom_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
CHK_(ptr);
|
} else goto handle_unusual;
|
continue;
|
default: {
|
handle_unusual:
|
if ((tag == 0) || ((tag & 7) == 4)) {
|
CHK_(ptr);
|
ctx->SetLastTag(tag);
|
goto success;
|
}
|
ptr = UnknownFieldParse(tag,
|
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
ptr, ctx);
|
CHK_(ptr != nullptr);
|
continue;
|
}
|
} // switch
|
} // while
|
success:
|
return ptr;
|
failure:
|
ptr = nullptr;
|
goto success;
|
#undef CHK_
|
}
|
|
::PROTOBUF_NAMESPACE_ID::uint8* Rect::_InternalSerialize(
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
// @@protoc_insertion_point(serialize_to_array_start:protomsg.Rect)
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
(void) cached_has_bits;
|
|
// int32 left = 1;
|
if (this->_internal_left() != 0) {
|
target = stream->EnsureSpace(target);
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_left(), target);
|
}
|
|
// int32 top = 2;
|
if (this->_internal_top() != 0) {
|
target = stream->EnsureSpace(target);
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_top(), target);
|
}
|
|
// int32 right = 3;
|
if (this->_internal_right() != 0) {
|
target = stream->EnsureSpace(target);
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_right(), target);
|
}
|
|
// int32 bottom = 4;
|
if (this->_internal_bottom() != 0) {
|
target = stream->EnsureSpace(target);
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_bottom(), target);
|
}
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
}
|
// @@protoc_insertion_point(serialize_to_array_end:protomsg.Rect)
|
return target;
|
}
|
|
size_t Rect::ByteSizeLong() const {
|
// @@protoc_insertion_point(message_byte_size_start:protomsg.Rect)
|
size_t total_size = 0;
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
// Prevent compiler warnings about cached_has_bits being unused
|
(void) cached_has_bits;
|
|
// int32 left = 1;
|
if (this->_internal_left() != 0) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
this->_internal_left());
|
}
|
|
// int32 top = 2;
|
if (this->_internal_top() != 0) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
this->_internal_top());
|
}
|
|
// int32 right = 3;
|
if (this->_internal_right() != 0) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
this->_internal_right());
|
}
|
|
// int32 bottom = 4;
|
if (this->_internal_bottom() != 0) {
|
total_size += 1 +
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
|
this->_internal_bottom());
|
}
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
|
_internal_metadata_, total_size, &_cached_size_);
|
}
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
SetCachedSize(cached_size);
|
return total_size;
|
}
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Rect::_class_data_ = {
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
|
Rect::MergeImpl
|
};
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Rect::GetClassData() const { return &_class_data_; }
|
|
void Rect::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message*to,
|
const ::PROTOBUF_NAMESPACE_ID::Message&from) {
|
static_cast<Rect *>(to)->MergeFrom(
|
static_cast<const Rect &>(from));
|
}
|
|
|
void Rect::MergeFrom(const Rect& from) {
|
// @@protoc_insertion_point(class_specific_merge_from_start:protomsg.Rect)
|
GOOGLE_DCHECK_NE(&from, this);
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
(void) cached_has_bits;
|
|
if (from._internal_left() != 0) {
|
_internal_set_left(from._internal_left());
|
}
|
if (from._internal_top() != 0) {
|
_internal_set_top(from._internal_top());
|
}
|
if (from._internal_right() != 0) {
|
_internal_set_right(from._internal_right());
|
}
|
if (from._internal_bottom() != 0) {
|
_internal_set_bottom(from._internal_bottom());
|
}
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
}
|
|
void Rect::CopyFrom(const Rect& from) {
|
// @@protoc_insertion_point(class_specific_copy_from_start:protomsg.Rect)
|
if (&from == this) return;
|
Clear();
|
MergeFrom(from);
|
}
|
|
bool Rect::IsInitialized() const {
|
return true;
|
}
|
|
void Rect::InternalSwap(Rect* other) {
|
using std::swap;
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
PROTOBUF_FIELD_OFFSET(Rect, bottom_)
|
+ sizeof(Rect::bottom_)
|
- PROTOBUF_FIELD_OFFSET(Rect, left_)>(
|
reinterpret_cast<char*>(&left_),
|
reinterpret_cast<char*>(&other->left_));
|
}
|
|
::PROTOBUF_NAMESPACE_ID::Metadata Rect::GetMetadata() const {
|
return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
|
&descriptor_table_base_2eproto_getter, &descriptor_table_base_2eproto_once,
|
file_level_metadata_base_2eproto[1]);
|
}
|
|
// @@protoc_insertion_point(namespace_scope)
|
} // namespace protomsg
|
PROTOBUF_NAMESPACE_OPEN
|
template<> PROTOBUF_NOINLINE ::protomsg::Point* Arena::CreateMaybeMessage< ::protomsg::Point >(Arena* arena) {
|
return Arena::CreateMessageInternal< ::protomsg::Point >(arena);
|
}
|
template<> PROTOBUF_NOINLINE ::protomsg::Rect* Arena::CreateMaybeMessage< ::protomsg::Rect >(Arena* arena) {
|
return Arena::CreateMessageInternal< ::protomsg::Rect >(arena);
|
}
|
PROTOBUF_NAMESPACE_CLOSE
|
|
// @@protoc_insertion_point(global_scope)
|
#include <google/protobuf/port_undef.inc>
|