794 lines
23 KiB
C++
Executable File
794 lines
23 KiB
C++
Executable File
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: math.proto
|
|
|
|
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
|
|
#include "math.pb.h"
|
|
|
|
#include <algorithm>
|
|
|
|
#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/io/zero_copy_stream_impl_lite.h>
|
|
// @@protoc_insertion_point(includes)
|
|
|
|
namespace userfeedback {
|
|
class DimensionsDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<Dimensions> {
|
|
} _Dimensions_default_instance_;
|
|
class RectangleDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<Rectangle> {
|
|
} _Rectangle_default_instance_;
|
|
|
|
namespace protobuf_math_2eproto {
|
|
|
|
PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTableField
|
|
const TableStruct::entries[] = {
|
|
{0, 0, 0, ::google::protobuf::internal::kInvalidMask, 0, 0},
|
|
};
|
|
|
|
PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::AuxillaryParseTableField
|
|
const TableStruct::aux[] = {
|
|
::google::protobuf::internal::AuxillaryParseTableField(),
|
|
};
|
|
PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTable const
|
|
TableStruct::schema[] = {
|
|
{ NULL, NULL, 0, -1, -1, false },
|
|
{ NULL, NULL, 0, -1, -1, false },
|
|
};
|
|
|
|
|
|
void TableStruct::Shutdown() {
|
|
_Dimensions_default_instance_.Shutdown();
|
|
_Rectangle_default_instance_.Shutdown();
|
|
}
|
|
|
|
void TableStruct::InitDefaultsImpl() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
::google::protobuf::internal::InitProtobufDefaults();
|
|
_Dimensions_default_instance_.DefaultConstruct();
|
|
_Rectangle_default_instance_.DefaultConstruct();
|
|
}
|
|
|
|
void InitDefaults() {
|
|
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl);
|
|
}
|
|
void AddDescriptorsImpl() {
|
|
InitDefaults();
|
|
::google::protobuf::internal::OnShutdown(&TableStruct::Shutdown);
|
|
}
|
|
|
|
void AddDescriptors() {
|
|
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
|
::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
|
|
}
|
|
|
|
} // namespace protobuf_math_2eproto
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
const int Dimensions::kWidthFieldNumber;
|
|
const int Dimensions::kHeightFieldNumber;
|
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
|
Dimensions::Dimensions()
|
|
: ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
|
|
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
protobuf_math_2eproto::InitDefaults();
|
|
}
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:userfeedback.Dimensions)
|
|
}
|
|
Dimensions::Dimensions(const Dimensions& from)
|
|
: ::google::protobuf::MessageLite(),
|
|
_internal_metadata_(NULL),
|
|
_has_bits_(from._has_bits_),
|
|
_cached_size_(0) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::memcpy(&width_, &from.width_,
|
|
static_cast<size_t>(reinterpret_cast<char*>(&height_) -
|
|
reinterpret_cast<char*>(&width_)) + sizeof(height_));
|
|
// @@protoc_insertion_point(copy_constructor:userfeedback.Dimensions)
|
|
}
|
|
|
|
void Dimensions::SharedCtor() {
|
|
_cached_size_ = 0;
|
|
::memset(&width_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&height_) -
|
|
reinterpret_cast<char*>(&width_)) + sizeof(height_));
|
|
}
|
|
|
|
Dimensions::~Dimensions() {
|
|
// @@protoc_insertion_point(destructor:userfeedback.Dimensions)
|
|
SharedDtor();
|
|
}
|
|
|
|
void Dimensions::SharedDtor() {
|
|
}
|
|
|
|
void Dimensions::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const Dimensions& Dimensions::default_instance() {
|
|
protobuf_math_2eproto::InitDefaults();
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
Dimensions* Dimensions::New(::google::protobuf::Arena* arena) const {
|
|
Dimensions* n = new Dimensions;
|
|
if (arena != NULL) {
|
|
arena->Own(n);
|
|
}
|
|
return n;
|
|
}
|
|
|
|
void Dimensions::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:userfeedback.Dimensions)
|
|
if (_has_bits_[0 / 32] & 3u) {
|
|
::memset(&width_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&height_) -
|
|
reinterpret_cast<char*>(&width_)) + sizeof(height_));
|
|
}
|
|
_has_bits_.Clear();
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
bool Dimensions::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
|
|
::google::protobuf::NewPermanentCallback(&_internal_metadata_,
|
|
&::google::protobuf::internal::InternalMetadataWithArenaLite::
|
|
mutable_unknown_fields));
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string, false);
|
|
// @@protoc_insertion_point(parse_start:userfeedback.Dimensions)
|
|
for (;;) {
|
|
::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)) {
|
|
// required float width = 1;
|
|
case 1: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(13u)) {
|
|
set_has_width();
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &width_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// required float height = 2;
|
|
case 2: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(21u)) {
|
|
set_has_height();
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &height_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0 ||
|
|
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
|
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
|
|
goto success;
|
|
}
|
|
DO_(::google::protobuf::internal::WireFormatLite::SkipField(
|
|
input, tag, &unknown_fields_stream));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:userfeedback.Dimensions)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:userfeedback.Dimensions)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void Dimensions::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:userfeedback.Dimensions)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
// required float width = 1;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->width(), output);
|
|
}
|
|
|
|
// required float height = 2;
|
|
if (cached_has_bits & 0x00000002u) {
|
|
::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->height(), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
static_cast<int>(unknown_fields().size()));
|
|
// @@protoc_insertion_point(serialize_end:userfeedback.Dimensions)
|
|
}
|
|
|
|
size_t Dimensions::RequiredFieldsByteSizeFallback() const {
|
|
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:userfeedback.Dimensions)
|
|
size_t total_size = 0;
|
|
|
|
if (has_width()) {
|
|
// required float width = 1;
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
if (has_height()) {
|
|
// required float height = 2;
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
return total_size;
|
|
}
|
|
size_t Dimensions::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:userfeedback.Dimensions)
|
|
size_t total_size = 0;
|
|
|
|
total_size += unknown_fields().size();
|
|
|
|
if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present.
|
|
// required float width = 1;
|
|
total_size += 1 + 4;
|
|
|
|
// required float height = 2;
|
|
total_size += 1 + 4;
|
|
|
|
} else {
|
|
total_size += RequiredFieldsByteSizeFallback();
|
|
}
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = cached_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void Dimensions::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const Dimensions*>(&from));
|
|
}
|
|
|
|
void Dimensions::MergeFrom(const Dimensions& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:userfeedback.Dimensions)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = from._has_bits_[0];
|
|
if (cached_has_bits & 3u) {
|
|
if (cached_has_bits & 0x00000001u) {
|
|
width_ = from.width_;
|
|
}
|
|
if (cached_has_bits & 0x00000002u) {
|
|
height_ = from.height_;
|
|
}
|
|
_has_bits_[0] |= cached_has_bits;
|
|
}
|
|
}
|
|
|
|
void Dimensions::CopyFrom(const Dimensions& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:userfeedback.Dimensions)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool Dimensions::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
|
|
return true;
|
|
}
|
|
|
|
void Dimensions::Swap(Dimensions* other) {
|
|
if (other == this) return;
|
|
InternalSwap(other);
|
|
}
|
|
void Dimensions::InternalSwap(Dimensions* other) {
|
|
std::swap(width_, other->width_);
|
|
std::swap(height_, other->height_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
|
|
::std::string Dimensions::GetTypeName() const {
|
|
return "userfeedback.Dimensions";
|
|
}
|
|
|
|
#if PROTOBUF_INLINE_NOT_IN_HEADERS
|
|
// Dimensions
|
|
|
|
// required float width = 1;
|
|
bool Dimensions::has_width() const {
|
|
return (_has_bits_[0] & 0x00000001u) != 0;
|
|
}
|
|
void Dimensions::set_has_width() {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
}
|
|
void Dimensions::clear_has_width() {
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
void Dimensions::clear_width() {
|
|
width_ = 0;
|
|
clear_has_width();
|
|
}
|
|
float Dimensions::width() const {
|
|
// @@protoc_insertion_point(field_get:userfeedback.Dimensions.width)
|
|
return width_;
|
|
}
|
|
void Dimensions::set_width(float value) {
|
|
set_has_width();
|
|
width_ = value;
|
|
// @@protoc_insertion_point(field_set:userfeedback.Dimensions.width)
|
|
}
|
|
|
|
// required float height = 2;
|
|
bool Dimensions::has_height() const {
|
|
return (_has_bits_[0] & 0x00000002u) != 0;
|
|
}
|
|
void Dimensions::set_has_height() {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
}
|
|
void Dimensions::clear_has_height() {
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
void Dimensions::clear_height() {
|
|
height_ = 0;
|
|
clear_has_height();
|
|
}
|
|
float Dimensions::height() const {
|
|
// @@protoc_insertion_point(field_get:userfeedback.Dimensions.height)
|
|
return height_;
|
|
}
|
|
void Dimensions::set_height(float value) {
|
|
set_has_height();
|
|
height_ = value;
|
|
// @@protoc_insertion_point(field_set:userfeedback.Dimensions.height)
|
|
}
|
|
|
|
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
|
|
|
|
// ===================================================================
|
|
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
const int Rectangle::kLeftFieldNumber;
|
|
const int Rectangle::kTopFieldNumber;
|
|
const int Rectangle::kWidthFieldNumber;
|
|
const int Rectangle::kHeightFieldNumber;
|
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
|
Rectangle::Rectangle()
|
|
: ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
|
|
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
|
protobuf_math_2eproto::InitDefaults();
|
|
}
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:userfeedback.Rectangle)
|
|
}
|
|
Rectangle::Rectangle(const Rectangle& from)
|
|
: ::google::protobuf::MessageLite(),
|
|
_internal_metadata_(NULL),
|
|
_has_bits_(from._has_bits_),
|
|
_cached_size_(0) {
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::memcpy(&left_, &from.left_,
|
|
static_cast<size_t>(reinterpret_cast<char*>(&height_) -
|
|
reinterpret_cast<char*>(&left_)) + sizeof(height_));
|
|
// @@protoc_insertion_point(copy_constructor:userfeedback.Rectangle)
|
|
}
|
|
|
|
void Rectangle::SharedCtor() {
|
|
_cached_size_ = 0;
|
|
::memset(&left_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&height_) -
|
|
reinterpret_cast<char*>(&left_)) + sizeof(height_));
|
|
}
|
|
|
|
Rectangle::~Rectangle() {
|
|
// @@protoc_insertion_point(destructor:userfeedback.Rectangle)
|
|
SharedDtor();
|
|
}
|
|
|
|
void Rectangle::SharedDtor() {
|
|
}
|
|
|
|
void Rectangle::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const Rectangle& Rectangle::default_instance() {
|
|
protobuf_math_2eproto::InitDefaults();
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
Rectangle* Rectangle::New(::google::protobuf::Arena* arena) const {
|
|
Rectangle* n = new Rectangle;
|
|
if (arena != NULL) {
|
|
arena->Own(n);
|
|
}
|
|
return n;
|
|
}
|
|
|
|
void Rectangle::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:userfeedback.Rectangle)
|
|
if (_has_bits_[0 / 32] & 15u) {
|
|
::memset(&left_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&height_) -
|
|
reinterpret_cast<char*>(&left_)) + sizeof(height_));
|
|
}
|
|
_has_bits_.Clear();
|
|
_internal_metadata_.Clear();
|
|
}
|
|
|
|
bool Rectangle::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
|
|
::google::protobuf::NewPermanentCallback(&_internal_metadata_,
|
|
&::google::protobuf::internal::InternalMetadataWithArenaLite::
|
|
mutable_unknown_fields));
|
|
::google::protobuf::io::CodedOutputStream unknown_fields_stream(
|
|
&unknown_fields_string, false);
|
|
// @@protoc_insertion_point(parse_start:userfeedback.Rectangle)
|
|
for (;;) {
|
|
::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)) {
|
|
// required float left = 1;
|
|
case 1: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(13u)) {
|
|
set_has_left();
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &left_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// required float top = 2;
|
|
case 2: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(21u)) {
|
|
set_has_top();
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &top_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// required float width = 3;
|
|
case 3: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(29u)) {
|
|
set_has_width();
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &width_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
// required float height = 4;
|
|
case 4: {
|
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
static_cast< ::google::protobuf::uint8>(37u)) {
|
|
set_has_height();
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
|
|
input, &height_)));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0 ||
|
|
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
|
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
|
|
goto success;
|
|
}
|
|
DO_(::google::protobuf::internal::WireFormatLite::SkipField(
|
|
input, tag, &unknown_fields_stream));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:userfeedback.Rectangle)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:userfeedback.Rectangle)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void Rectangle::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:userfeedback.Rectangle)
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _has_bits_[0];
|
|
// required float left = 1;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->left(), output);
|
|
}
|
|
|
|
// required float top = 2;
|
|
if (cached_has_bits & 0x00000002u) {
|
|
::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->top(), output);
|
|
}
|
|
|
|
// required float width = 3;
|
|
if (cached_has_bits & 0x00000004u) {
|
|
::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->width(), output);
|
|
}
|
|
|
|
// required float height = 4;
|
|
if (cached_has_bits & 0x00000008u) {
|
|
::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->height(), output);
|
|
}
|
|
|
|
output->WriteRaw(unknown_fields().data(),
|
|
static_cast<int>(unknown_fields().size()));
|
|
// @@protoc_insertion_point(serialize_end:userfeedback.Rectangle)
|
|
}
|
|
|
|
size_t Rectangle::RequiredFieldsByteSizeFallback() const {
|
|
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:userfeedback.Rectangle)
|
|
size_t total_size = 0;
|
|
|
|
if (has_left()) {
|
|
// required float left = 1;
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
if (has_top()) {
|
|
// required float top = 2;
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
if (has_width()) {
|
|
// required float width = 3;
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
if (has_height()) {
|
|
// required float height = 4;
|
|
total_size += 1 + 4;
|
|
}
|
|
|
|
return total_size;
|
|
}
|
|
size_t Rectangle::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:userfeedback.Rectangle)
|
|
size_t total_size = 0;
|
|
|
|
total_size += unknown_fields().size();
|
|
|
|
if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present.
|
|
// required float left = 1;
|
|
total_size += 1 + 4;
|
|
|
|
// required float top = 2;
|
|
total_size += 1 + 4;
|
|
|
|
// required float width = 3;
|
|
total_size += 1 + 4;
|
|
|
|
// required float height = 4;
|
|
total_size += 1 + 4;
|
|
|
|
} else {
|
|
total_size += RequiredFieldsByteSizeFallback();
|
|
}
|
|
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = cached_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void Rectangle::CheckTypeAndMergeFrom(
|
|
const ::google::protobuf::MessageLite& from) {
|
|
MergeFrom(*::google::protobuf::down_cast<const Rectangle*>(&from));
|
|
}
|
|
|
|
void Rectangle::MergeFrom(const Rectangle& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:userfeedback.Rectangle)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
::google::protobuf::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = from._has_bits_[0];
|
|
if (cached_has_bits & 15u) {
|
|
if (cached_has_bits & 0x00000001u) {
|
|
left_ = from.left_;
|
|
}
|
|
if (cached_has_bits & 0x00000002u) {
|
|
top_ = from.top_;
|
|
}
|
|
if (cached_has_bits & 0x00000004u) {
|
|
width_ = from.width_;
|
|
}
|
|
if (cached_has_bits & 0x00000008u) {
|
|
height_ = from.height_;
|
|
}
|
|
_has_bits_[0] |= cached_has_bits;
|
|
}
|
|
}
|
|
|
|
void Rectangle::CopyFrom(const Rectangle& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:userfeedback.Rectangle)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool Rectangle::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
|
|
return true;
|
|
}
|
|
|
|
void Rectangle::Swap(Rectangle* other) {
|
|
if (other == this) return;
|
|
InternalSwap(other);
|
|
}
|
|
void Rectangle::InternalSwap(Rectangle* other) {
|
|
std::swap(left_, other->left_);
|
|
std::swap(top_, other->top_);
|
|
std::swap(width_, other->width_);
|
|
std::swap(height_, other->height_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
|
|
::std::string Rectangle::GetTypeName() const {
|
|
return "userfeedback.Rectangle";
|
|
}
|
|
|
|
#if PROTOBUF_INLINE_NOT_IN_HEADERS
|
|
// Rectangle
|
|
|
|
// required float left = 1;
|
|
bool Rectangle::has_left() const {
|
|
return (_has_bits_[0] & 0x00000001u) != 0;
|
|
}
|
|
void Rectangle::set_has_left() {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
}
|
|
void Rectangle::clear_has_left() {
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
void Rectangle::clear_left() {
|
|
left_ = 0;
|
|
clear_has_left();
|
|
}
|
|
float Rectangle::left() const {
|
|
// @@protoc_insertion_point(field_get:userfeedback.Rectangle.left)
|
|
return left_;
|
|
}
|
|
void Rectangle::set_left(float value) {
|
|
set_has_left();
|
|
left_ = value;
|
|
// @@protoc_insertion_point(field_set:userfeedback.Rectangle.left)
|
|
}
|
|
|
|
// required float top = 2;
|
|
bool Rectangle::has_top() const {
|
|
return (_has_bits_[0] & 0x00000002u) != 0;
|
|
}
|
|
void Rectangle::set_has_top() {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
}
|
|
void Rectangle::clear_has_top() {
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
void Rectangle::clear_top() {
|
|
top_ = 0;
|
|
clear_has_top();
|
|
}
|
|
float Rectangle::top() const {
|
|
// @@protoc_insertion_point(field_get:userfeedback.Rectangle.top)
|
|
return top_;
|
|
}
|
|
void Rectangle::set_top(float value) {
|
|
set_has_top();
|
|
top_ = value;
|
|
// @@protoc_insertion_point(field_set:userfeedback.Rectangle.top)
|
|
}
|
|
|
|
// required float width = 3;
|
|
bool Rectangle::has_width() const {
|
|
return (_has_bits_[0] & 0x00000004u) != 0;
|
|
}
|
|
void Rectangle::set_has_width() {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
}
|
|
void Rectangle::clear_has_width() {
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
void Rectangle::clear_width() {
|
|
width_ = 0;
|
|
clear_has_width();
|
|
}
|
|
float Rectangle::width() const {
|
|
// @@protoc_insertion_point(field_get:userfeedback.Rectangle.width)
|
|
return width_;
|
|
}
|
|
void Rectangle::set_width(float value) {
|
|
set_has_width();
|
|
width_ = value;
|
|
// @@protoc_insertion_point(field_set:userfeedback.Rectangle.width)
|
|
}
|
|
|
|
// required float height = 4;
|
|
bool Rectangle::has_height() const {
|
|
return (_has_bits_[0] & 0x00000008u) != 0;
|
|
}
|
|
void Rectangle::set_has_height() {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
}
|
|
void Rectangle::clear_has_height() {
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
}
|
|
void Rectangle::clear_height() {
|
|
height_ = 0;
|
|
clear_has_height();
|
|
}
|
|
float Rectangle::height() const {
|
|
// @@protoc_insertion_point(field_get:userfeedback.Rectangle.height)
|
|
return height_;
|
|
}
|
|
void Rectangle::set_height(float value) {
|
|
set_has_height();
|
|
height_ = value;
|
|
// @@protoc_insertion_point(field_set:userfeedback.Rectangle.height)
|
|
}
|
|
|
|
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
|
|
} // namespace userfeedback
|
|
|
|
// @@protoc_insertion_point(global_scope)
|