// Generated by the protocol buffer compiler. DO NOT EDIT!
|
// source: PbFaceList
|
|
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
|
#include "PbFaceList.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/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)
|
class PbFaceList_FaceListImageDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<PbFaceList_FaceListImage> {
|
} _PbFaceList_FaceListImage_default_instance_;
|
class PbFaceListDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<PbFaceList> {
|
} _PbFaceList_default_instance_;
|
|
namespace protobuf_PbFaceList {
|
|
|
namespace {
|
|
::google::protobuf::Metadata file_level_metadata[2];
|
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
|
|
} // namespace
|
|
const ::google::protobuf::uint32 TableStruct::offsets[] = {
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PbFaceList_FaceListImage, _has_bits_),
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PbFaceList_FaceListImage, _internal_metadata_),
|
~0u, // no _extensions_
|
~0u, // no _oneof_case_
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PbFaceList_FaceListImage, idx_),
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PbFaceList_FaceListImage, st_track_id_),
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PbFaceList_FaceListImage, size_),
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PbFaceList_FaceListImage, type_),
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PbFaceList_FaceListImage, width_),
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PbFaceList_FaceListImage, height_),
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PbFaceList_FaceListImage, top_left_x_),
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PbFaceList_FaceListImage, top_left_y_),
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PbFaceList_FaceListImage, img_),
|
0,
|
1,
|
2,
|
7,
|
3,
|
4,
|
5,
|
6,
|
~0u,
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PbFaceList, _has_bits_),
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PbFaceList, _internal_metadata_),
|
~0u, // no _extensions_
|
~0u, // no _oneof_case_
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PbFaceList, magic_),
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PbFaceList, image_count_),
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PbFaceList, src_width_),
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PbFaceList, src_height_),
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PbFaceList, images_),
|
3,
|
0,
|
1,
|
2,
|
~0u,
|
};
|
|
static const ::google::protobuf::internal::MigrationSchema schemas[] = {
|
{ 0, 13, sizeof(PbFaceList_FaceListImage)},
|
{ 22, 31, sizeof(PbFaceList)},
|
};
|
|
static ::google::protobuf::Message const * const file_default_instances[] = {
|
reinterpret_cast<const ::google::protobuf::Message*>(&_PbFaceList_FaceListImage_default_instance_),
|
reinterpret_cast<const ::google::protobuf::Message*>(&_PbFaceList_default_instance_),
|
};
|
|
namespace {
|
|
void protobuf_AssignDescriptors() {
|
AddDescriptors();
|
::google::protobuf::MessageFactory* factory = NULL;
|
AssignDescriptors(
|
"PbFaceList", schemas, file_default_instances, TableStruct::offsets, factory,
|
file_level_metadata, file_level_enum_descriptors, NULL);
|
}
|
|
void protobuf_AssignDescriptorsOnce() {
|
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
|
}
|
|
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD;
|
void protobuf_RegisterTypes(const ::std::string&) {
|
protobuf_AssignDescriptorsOnce();
|
::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2);
|
}
|
|
} // namespace
|
|
void TableStruct::Shutdown() {
|
_PbFaceList_FaceListImage_default_instance_.Shutdown();
|
delete file_level_metadata[0].reflection;
|
_PbFaceList_default_instance_.Shutdown();
|
delete file_level_metadata[1].reflection;
|
}
|
|
void TableStruct::InitDefaultsImpl() {
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
::google::protobuf::internal::InitProtobufDefaults();
|
_PbFaceList_FaceListImage_default_instance_.DefaultConstruct();
|
_PbFaceList_default_instance_.DefaultConstruct();
|
}
|
|
void InitDefaults() {
|
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl);
|
}
|
void AddDescriptorsImpl() {
|
InitDefaults();
|
static const char descriptor[] = {
|
"\n\nPbFaceList\"\254\005\n\nPbFaceList\022\027\n\005magic\030\001 \002"
|
"(\r:\01011706629\022\023\n\013image_count\030\002 \002(\r\022\021\n\tsrc"
|
"_width\030\003 \001(\r\022\022\n\nsrc_height\030\004 \001(\r\022)\n\006imag"
|
"es\030\005 \003(\0132\031.PbFaceList.FaceListImage\032\235\004\n\r"
|
"FaceListImage\022\013\n\003idx\030\001 \002(\r\022\023\n\013st_track_i"
|
"d\030\002 \002(\r\022\014\n\004size\030\003 \002(\r\022:\n\004type\030\004 \002(\0162#.Pb"
|
"FaceList.FaceListImage.ImageType:\007MBFT_Y"
|
"8\022\r\n\005width\030\005 \002(\r\022\016\n\006height\030\006 \002(\r\022\022\n\ntop_"
|
"left_x\030\007 \001(\r\022\022\n\ntop_left_y\030\010 \001(\r\022\013\n\003img\030"
|
"\t \003(\014\"\313\002\n\tImageType\022\014\n\010MBFT_SDP\020\001\022\r\n\tMBF"
|
"T_FMTP\020\002\022\016\n\nMBFT_INDEX\020\003\022\024\n\020MBFT_PTR_AVF"
|
"RAME\020\004\022\022\n\016MBFT_H264_NALU\020\005\022\026\n\022MBFT_H264_"
|
"NALU_AUX\020\006\022\r\n\tMBFT_JPEG\020\007\022\014\n\010MBFT_YUV\020\010\022"
|
"\013\n\007MBFT_Y8\020\t\022\017\n\013MBFT_YUV420\020\n\022\r\n\tMBFT_NV"
|
"12\020\013\022\014\n\010MBFT_RGB\020\014\022\017\n\013MBFT_RGB888\020\r\022\017\n\013M"
|
"BFT_RGB565\020\016\022\r\n\tMBFT_RGBA\020\017\022\r\n\tMBFT_BGRA"
|
"\020\020\022\021\n\rMBFT_BGRA8888\020\021\022\021\n\rMBFT_ABGR8888\020\022"
|
"\022\021\n\rMBFT_ARGB8888\020\023"
|
};
|
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
descriptor, 699);
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
"PbFaceList", &protobuf_RegisterTypes);
|
::google::protobuf::internal::OnShutdown(&TableStruct::Shutdown);
|
}
|
|
void AddDescriptors() {
|
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
|
::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
|
}
|
// Force AddDescriptors() to be called at static initialization time.
|
struct StaticDescriptorInitializer {
|
StaticDescriptorInitializer() {
|
AddDescriptors();
|
}
|
} static_descriptor_initializer;
|
|
} // namespace protobuf_PbFaceList
|
|
const ::google::protobuf::EnumDescriptor* PbFaceList_FaceListImage_ImageType_descriptor() {
|
protobuf_PbFaceList::protobuf_AssignDescriptorsOnce();
|
return protobuf_PbFaceList::file_level_enum_descriptors[0];
|
}
|
bool PbFaceList_FaceListImage_ImageType_IsValid(int value) {
|
switch (value) {
|
case 1:
|
case 2:
|
case 3:
|
case 4:
|
case 5:
|
case 6:
|
case 7:
|
case 8:
|
case 9:
|
case 10:
|
case 11:
|
case 12:
|
case 13:
|
case 14:
|
case 15:
|
case 16:
|
case 17:
|
case 18:
|
case 19:
|
return true;
|
default:
|
return false;
|
}
|
}
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
const PbFaceList_FaceListImage_ImageType PbFaceList_FaceListImage::MBFT_SDP;
|
const PbFaceList_FaceListImage_ImageType PbFaceList_FaceListImage::MBFT_FMTP;
|
const PbFaceList_FaceListImage_ImageType PbFaceList_FaceListImage::MBFT_INDEX;
|
const PbFaceList_FaceListImage_ImageType PbFaceList_FaceListImage::MBFT_PTR_AVFRAME;
|
const PbFaceList_FaceListImage_ImageType PbFaceList_FaceListImage::MBFT_H264_NALU;
|
const PbFaceList_FaceListImage_ImageType PbFaceList_FaceListImage::MBFT_H264_NALU_AUX;
|
const PbFaceList_FaceListImage_ImageType PbFaceList_FaceListImage::MBFT_JPEG;
|
const PbFaceList_FaceListImage_ImageType PbFaceList_FaceListImage::MBFT_YUV;
|
const PbFaceList_FaceListImage_ImageType PbFaceList_FaceListImage::MBFT_Y8;
|
const PbFaceList_FaceListImage_ImageType PbFaceList_FaceListImage::MBFT_YUV420;
|
const PbFaceList_FaceListImage_ImageType PbFaceList_FaceListImage::MBFT_NV12;
|
const PbFaceList_FaceListImage_ImageType PbFaceList_FaceListImage::MBFT_RGB;
|
const PbFaceList_FaceListImage_ImageType PbFaceList_FaceListImage::MBFT_RGB888;
|
const PbFaceList_FaceListImage_ImageType PbFaceList_FaceListImage::MBFT_RGB565;
|
const PbFaceList_FaceListImage_ImageType PbFaceList_FaceListImage::MBFT_RGBA;
|
const PbFaceList_FaceListImage_ImageType PbFaceList_FaceListImage::MBFT_BGRA;
|
const PbFaceList_FaceListImage_ImageType PbFaceList_FaceListImage::MBFT_BGRA8888;
|
const PbFaceList_FaceListImage_ImageType PbFaceList_FaceListImage::MBFT_ABGR8888;
|
const PbFaceList_FaceListImage_ImageType PbFaceList_FaceListImage::MBFT_ARGB8888;
|
const PbFaceList_FaceListImage_ImageType PbFaceList_FaceListImage::ImageType_MIN;
|
const PbFaceList_FaceListImage_ImageType PbFaceList_FaceListImage::ImageType_MAX;
|
const int PbFaceList_FaceListImage::ImageType_ARRAYSIZE;
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
// ===================================================================
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
const int PbFaceList_FaceListImage::kIdxFieldNumber;
|
const int PbFaceList_FaceListImage::kStTrackIdFieldNumber;
|
const int PbFaceList_FaceListImage::kSizeFieldNumber;
|
const int PbFaceList_FaceListImage::kTypeFieldNumber;
|
const int PbFaceList_FaceListImage::kWidthFieldNumber;
|
const int PbFaceList_FaceListImage::kHeightFieldNumber;
|
const int PbFaceList_FaceListImage::kTopLeftXFieldNumber;
|
const int PbFaceList_FaceListImage::kTopLeftYFieldNumber;
|
const int PbFaceList_FaceListImage::kImgFieldNumber;
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
PbFaceList_FaceListImage::PbFaceList_FaceListImage()
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
protobuf_PbFaceList::InitDefaults();
|
}
|
SharedCtor();
|
// @@protoc_insertion_point(constructor:PbFaceList.FaceListImage)
|
}
|
PbFaceList_FaceListImage::PbFaceList_FaceListImage(const PbFaceList_FaceListImage& from)
|
: ::google::protobuf::Message(),
|
_internal_metadata_(NULL),
|
_has_bits_(from._has_bits_),
|
_cached_size_(0),
|
img_(from.img_) {
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
::memcpy(&idx_, &from.idx_,
|
reinterpret_cast<char*>(&type_) -
|
reinterpret_cast<char*>(&idx_) + sizeof(type_));
|
// @@protoc_insertion_point(copy_constructor:PbFaceList.FaceListImage)
|
}
|
|
void PbFaceList_FaceListImage::SharedCtor() {
|
_cached_size_ = 0;
|
::memset(&idx_, 0, reinterpret_cast<char*>(&top_left_y_) -
|
reinterpret_cast<char*>(&idx_) + sizeof(top_left_y_));
|
type_ = 9;
|
}
|
|
PbFaceList_FaceListImage::~PbFaceList_FaceListImage() {
|
// @@protoc_insertion_point(destructor:PbFaceList.FaceListImage)
|
SharedDtor();
|
}
|
|
void PbFaceList_FaceListImage::SharedDtor() {
|
}
|
|
void PbFaceList_FaceListImage::SetCachedSize(int size) const {
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
_cached_size_ = size;
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
}
|
const ::google::protobuf::Descriptor* PbFaceList_FaceListImage::descriptor() {
|
protobuf_PbFaceList::protobuf_AssignDescriptorsOnce();
|
return protobuf_PbFaceList::file_level_metadata[0].descriptor;
|
}
|
|
const PbFaceList_FaceListImage& PbFaceList_FaceListImage::default_instance() {
|
protobuf_PbFaceList::InitDefaults();
|
return *internal_default_instance();
|
}
|
|
PbFaceList_FaceListImage* PbFaceList_FaceListImage::New(::google::protobuf::Arena* arena) const {
|
PbFaceList_FaceListImage* n = new PbFaceList_FaceListImage;
|
if (arena != NULL) {
|
arena->Own(n);
|
}
|
return n;
|
}
|
|
void PbFaceList_FaceListImage::Clear() {
|
// @@protoc_insertion_point(message_clear_start:PbFaceList.FaceListImage)
|
img_.Clear();
|
if (_has_bits_[0 / 32] & 255u) {
|
::memset(&idx_, 0, reinterpret_cast<char*>(&top_left_y_) -
|
reinterpret_cast<char*>(&idx_) + sizeof(top_left_y_));
|
type_ = 9;
|
}
|
_has_bits_.Clear();
|
_internal_metadata_.Clear();
|
}
|
|
bool PbFaceList_FaceListImage::MergePartialFromCodedStream(
|
::google::protobuf::io::CodedInputStream* input) {
|
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
|
::google::protobuf::uint32 tag;
|
// @@protoc_insertion_point(parse_start:PbFaceList.FaceListImage)
|
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 uint32 idx = 1;
|
case 1: {
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
static_cast< ::google::protobuf::uint8>(8u)) {
|
set_has_idx();
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
|
input, &idx_)));
|
} else {
|
goto handle_unusual;
|
}
|
break;
|
}
|
|
// required uint32 st_track_id = 2;
|
case 2: {
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
static_cast< ::google::protobuf::uint8>(16u)) {
|
set_has_st_track_id();
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
|
input, &st_track_id_)));
|
} else {
|
goto handle_unusual;
|
}
|
break;
|
}
|
|
// required uint32 size = 3;
|
case 3: {
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
static_cast< ::google::protobuf::uint8>(24u)) {
|
set_has_size();
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
|
input, &size_)));
|
} else {
|
goto handle_unusual;
|
}
|
break;
|
}
|
|
// required .PbFaceList.FaceListImage.ImageType type = 4 [default = MBFT_Y8];
|
case 4: {
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
static_cast< ::google::protobuf::uint8>(32u)) {
|
int value;
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
input, &value)));
|
if (::PbFaceList_FaceListImage_ImageType_IsValid(value)) {
|
set_type(static_cast< ::PbFaceList_FaceListImage_ImageType >(value));
|
} else {
|
mutable_unknown_fields()->AddVarint(4, value);
|
}
|
} else {
|
goto handle_unusual;
|
}
|
break;
|
}
|
|
// required uint32 width = 5;
|
case 5: {
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
static_cast< ::google::protobuf::uint8>(40u)) {
|
set_has_width();
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
|
input, &width_)));
|
} else {
|
goto handle_unusual;
|
}
|
break;
|
}
|
|
// required uint32 height = 6;
|
case 6: {
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
static_cast< ::google::protobuf::uint8>(48u)) {
|
set_has_height();
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
|
input, &height_)));
|
} else {
|
goto handle_unusual;
|
}
|
break;
|
}
|
|
// optional uint32 top_left_x = 7;
|
case 7: {
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
static_cast< ::google::protobuf::uint8>(56u)) {
|
set_has_top_left_x();
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
|
input, &top_left_x_)));
|
} else {
|
goto handle_unusual;
|
}
|
break;
|
}
|
|
// optional uint32 top_left_y = 8;
|
case 8: {
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
static_cast< ::google::protobuf::uint8>(64u)) {
|
set_has_top_left_y();
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
|
input, &top_left_y_)));
|
} else {
|
goto handle_unusual;
|
}
|
break;
|
}
|
|
// repeated bytes img = 9;
|
case 9: {
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
static_cast< ::google::protobuf::uint8>(74u)) {
|
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
|
input, this->add_img()));
|
} 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::WireFormat::SkipField(
|
input, tag, mutable_unknown_fields()));
|
break;
|
}
|
}
|
}
|
success:
|
// @@protoc_insertion_point(parse_success:PbFaceList.FaceListImage)
|
return true;
|
failure:
|
// @@protoc_insertion_point(parse_failure:PbFaceList.FaceListImage)
|
return false;
|
#undef DO_
|
}
|
|
void PbFaceList_FaceListImage::SerializeWithCachedSizes(
|
::google::protobuf::io::CodedOutputStream* output) const {
|
// @@protoc_insertion_point(serialize_start:PbFaceList.FaceListImage)
|
// required uint32 idx = 1;
|
if (has_idx()) {
|
::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->idx(), output);
|
}
|
|
// required uint32 st_track_id = 2;
|
if (has_st_track_id()) {
|
::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->st_track_id(), output);
|
}
|
|
// required uint32 size = 3;
|
if (has_size()) {
|
::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->size(), output);
|
}
|
|
// required .PbFaceList.FaceListImage.ImageType type = 4 [default = MBFT_Y8];
|
if (has_type()) {
|
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
4, this->type(), output);
|
}
|
|
// required uint32 width = 5;
|
if (has_width()) {
|
::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->width(), output);
|
}
|
|
// required uint32 height = 6;
|
if (has_height()) {
|
::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->height(), output);
|
}
|
|
// optional uint32 top_left_x = 7;
|
if (has_top_left_x()) {
|
::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->top_left_x(), output);
|
}
|
|
// optional uint32 top_left_y = 8;
|
if (has_top_left_y()) {
|
::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->top_left_y(), output);
|
}
|
|
// repeated bytes img = 9;
|
for (int i = 0, n = this->img_size(); i < n; i++) {
|
::google::protobuf::internal::WireFormatLite::WriteBytes(
|
9, this->img(i), output);
|
}
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
unknown_fields(), output);
|
}
|
// @@protoc_insertion_point(serialize_end:PbFaceList.FaceListImage)
|
}
|
|
::google::protobuf::uint8* PbFaceList_FaceListImage::InternalSerializeWithCachedSizesToArray(
|
bool deterministic, ::google::protobuf::uint8* target) const {
|
(void)deterministic; // Unused
|
// @@protoc_insertion_point(serialize_to_array_start:PbFaceList.FaceListImage)
|
// required uint32 idx = 1;
|
if (has_idx()) {
|
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->idx(), target);
|
}
|
|
// required uint32 st_track_id = 2;
|
if (has_st_track_id()) {
|
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->st_track_id(), target);
|
}
|
|
// required uint32 size = 3;
|
if (has_size()) {
|
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->size(), target);
|
}
|
|
// required .PbFaceList.FaceListImage.ImageType type = 4 [default = MBFT_Y8];
|
if (has_type()) {
|
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
4, this->type(), target);
|
}
|
|
// required uint32 width = 5;
|
if (has_width()) {
|
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->width(), target);
|
}
|
|
// required uint32 height = 6;
|
if (has_height()) {
|
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->height(), target);
|
}
|
|
// optional uint32 top_left_x = 7;
|
if (has_top_left_x()) {
|
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->top_left_x(), target);
|
}
|
|
// optional uint32 top_left_y = 8;
|
if (has_top_left_y()) {
|
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->top_left_y(), target);
|
}
|
|
// repeated bytes img = 9;
|
for (int i = 0, n = this->img_size(); i < n; i++) {
|
target = ::google::protobuf::internal::WireFormatLite::
|
WriteBytesToArray(9, this->img(i), target);
|
}
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
unknown_fields(), target);
|
}
|
// @@protoc_insertion_point(serialize_to_array_end:PbFaceList.FaceListImage)
|
return target;
|
}
|
|
size_t PbFaceList_FaceListImage::RequiredFieldsByteSizeFallback() const {
|
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:PbFaceList.FaceListImage)
|
size_t total_size = 0;
|
|
if (has_idx()) {
|
// required uint32 idx = 1;
|
total_size += 1 +
|
::google::protobuf::internal::WireFormatLite::UInt32Size(
|
this->idx());
|
}
|
|
if (has_st_track_id()) {
|
// required uint32 st_track_id = 2;
|
total_size += 1 +
|
::google::protobuf::internal::WireFormatLite::UInt32Size(
|
this->st_track_id());
|
}
|
|
if (has_size()) {
|
// required uint32 size = 3;
|
total_size += 1 +
|
::google::protobuf::internal::WireFormatLite::UInt32Size(
|
this->size());
|
}
|
|
if (has_width()) {
|
// required uint32 width = 5;
|
total_size += 1 +
|
::google::protobuf::internal::WireFormatLite::UInt32Size(
|
this->width());
|
}
|
|
if (has_height()) {
|
// required uint32 height = 6;
|
total_size += 1 +
|
::google::protobuf::internal::WireFormatLite::UInt32Size(
|
this->height());
|
}
|
|
if (has_type()) {
|
// required .PbFaceList.FaceListImage.ImageType type = 4 [default = MBFT_Y8];
|
total_size += 1 +
|
::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
|
}
|
|
return total_size;
|
}
|
size_t PbFaceList_FaceListImage::ByteSizeLong() const {
|
// @@protoc_insertion_point(message_byte_size_start:PbFaceList.FaceListImage)
|
size_t total_size = 0;
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
total_size +=
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
unknown_fields());
|
}
|
if (((_has_bits_[0] & 0x0000009f) ^ 0x0000009f) == 0) { // All required fields are present.
|
// required uint32 idx = 1;
|
total_size += 1 +
|
::google::protobuf::internal::WireFormatLite::UInt32Size(
|
this->idx());
|
|
// required uint32 st_track_id = 2;
|
total_size += 1 +
|
::google::protobuf::internal::WireFormatLite::UInt32Size(
|
this->st_track_id());
|
|
// required uint32 size = 3;
|
total_size += 1 +
|
::google::protobuf::internal::WireFormatLite::UInt32Size(
|
this->size());
|
|
// required uint32 width = 5;
|
total_size += 1 +
|
::google::protobuf::internal::WireFormatLite::UInt32Size(
|
this->width());
|
|
// required uint32 height = 6;
|
total_size += 1 +
|
::google::protobuf::internal::WireFormatLite::UInt32Size(
|
this->height());
|
|
// required .PbFaceList.FaceListImage.ImageType type = 4 [default = MBFT_Y8];
|
total_size += 1 +
|
::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
|
|
} else {
|
total_size += RequiredFieldsByteSizeFallback();
|
}
|
// repeated bytes img = 9;
|
total_size += 1 *
|
::google::protobuf::internal::FromIntSize(this->img_size());
|
for (int i = 0, n = this->img_size(); i < n; i++) {
|
total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
|
this->img(i));
|
}
|
|
if (_has_bits_[0 / 32] & 96u) {
|
// optional uint32 top_left_x = 7;
|
if (has_top_left_x()) {
|
total_size += 1 +
|
::google::protobuf::internal::WireFormatLite::UInt32Size(
|
this->top_left_x());
|
}
|
|
// optional uint32 top_left_y = 8;
|
if (has_top_left_y()) {
|
total_size += 1 +
|
::google::protobuf::internal::WireFormatLite::UInt32Size(
|
this->top_left_y());
|
}
|
|
}
|
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 PbFaceList_FaceListImage::MergeFrom(const ::google::protobuf::Message& from) {
|
// @@protoc_insertion_point(generalized_merge_from_start:PbFaceList.FaceListImage)
|
GOOGLE_DCHECK_NE(&from, this);
|
const PbFaceList_FaceListImage* source =
|
::google::protobuf::internal::DynamicCastToGenerated<const PbFaceList_FaceListImage>(
|
&from);
|
if (source == NULL) {
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:PbFaceList.FaceListImage)
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
} else {
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:PbFaceList.FaceListImage)
|
MergeFrom(*source);
|
}
|
}
|
|
void PbFaceList_FaceListImage::MergeFrom(const PbFaceList_FaceListImage& from) {
|
// @@protoc_insertion_point(class_specific_merge_from_start:PbFaceList.FaceListImage)
|
GOOGLE_DCHECK_NE(&from, this);
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
img_.MergeFrom(from.img_);
|
if (from._has_bits_[0 / 32] & 255u) {
|
if (from.has_idx()) {
|
set_idx(from.idx());
|
}
|
if (from.has_st_track_id()) {
|
set_st_track_id(from.st_track_id());
|
}
|
if (from.has_size()) {
|
set_size(from.size());
|
}
|
if (from.has_width()) {
|
set_width(from.width());
|
}
|
if (from.has_height()) {
|
set_height(from.height());
|
}
|
if (from.has_top_left_x()) {
|
set_top_left_x(from.top_left_x());
|
}
|
if (from.has_top_left_y()) {
|
set_top_left_y(from.top_left_y());
|
}
|
if (from.has_type()) {
|
set_type(from.type());
|
}
|
}
|
}
|
|
void PbFaceList_FaceListImage::CopyFrom(const ::google::protobuf::Message& from) {
|
// @@protoc_insertion_point(generalized_copy_from_start:PbFaceList.FaceListImage)
|
if (&from == this) return;
|
Clear();
|
MergeFrom(from);
|
}
|
|
void PbFaceList_FaceListImage::CopyFrom(const PbFaceList_FaceListImage& from) {
|
// @@protoc_insertion_point(class_specific_copy_from_start:PbFaceList.FaceListImage)
|
if (&from == this) return;
|
Clear();
|
MergeFrom(from);
|
}
|
|
bool PbFaceList_FaceListImage::IsInitialized() const {
|
if ((_has_bits_[0] & 0x0000009f) != 0x0000009f) return false;
|
return true;
|
}
|
|
void PbFaceList_FaceListImage::Swap(PbFaceList_FaceListImage* other) {
|
if (other == this) return;
|
InternalSwap(other);
|
}
|
void PbFaceList_FaceListImage::InternalSwap(PbFaceList_FaceListImage* other) {
|
img_.UnsafeArenaSwap(&other->img_);
|
std::swap(idx_, other->idx_);
|
std::swap(st_track_id_, other->st_track_id_);
|
std::swap(size_, other->size_);
|
std::swap(width_, other->width_);
|
std::swap(height_, other->height_);
|
std::swap(top_left_x_, other->top_left_x_);
|
std::swap(top_left_y_, other->top_left_y_);
|
std::swap(type_, other->type_);
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
std::swap(_cached_size_, other->_cached_size_);
|
}
|
|
::google::protobuf::Metadata PbFaceList_FaceListImage::GetMetadata() const {
|
protobuf_PbFaceList::protobuf_AssignDescriptorsOnce();
|
return protobuf_PbFaceList::file_level_metadata[0];
|
}
|
|
#if PROTOBUF_INLINE_NOT_IN_HEADERS
|
// PbFaceList_FaceListImage
|
|
// required uint32 idx = 1;
|
bool PbFaceList_FaceListImage::has_idx() const {
|
return (_has_bits_[0] & 0x00000001u) != 0;
|
}
|
void PbFaceList_FaceListImage::set_has_idx() {
|
_has_bits_[0] |= 0x00000001u;
|
}
|
void PbFaceList_FaceListImage::clear_has_idx() {
|
_has_bits_[0] &= ~0x00000001u;
|
}
|
void PbFaceList_FaceListImage::clear_idx() {
|
idx_ = 0u;
|
clear_has_idx();
|
}
|
::google::protobuf::uint32 PbFaceList_FaceListImage::idx() const {
|
// @@protoc_insertion_point(field_get:PbFaceList.FaceListImage.idx)
|
return idx_;
|
}
|
void PbFaceList_FaceListImage::set_idx(::google::protobuf::uint32 value) {
|
set_has_idx();
|
idx_ = value;
|
// @@protoc_insertion_point(field_set:PbFaceList.FaceListImage.idx)
|
}
|
|
// required uint32 st_track_id = 2;
|
bool PbFaceList_FaceListImage::has_st_track_id() const {
|
return (_has_bits_[0] & 0x00000002u) != 0;
|
}
|
void PbFaceList_FaceListImage::set_has_st_track_id() {
|
_has_bits_[0] |= 0x00000002u;
|
}
|
void PbFaceList_FaceListImage::clear_has_st_track_id() {
|
_has_bits_[0] &= ~0x00000002u;
|
}
|
void PbFaceList_FaceListImage::clear_st_track_id() {
|
st_track_id_ = 0u;
|
clear_has_st_track_id();
|
}
|
::google::protobuf::uint32 PbFaceList_FaceListImage::st_track_id() const {
|
// @@protoc_insertion_point(field_get:PbFaceList.FaceListImage.st_track_id)
|
return st_track_id_;
|
}
|
void PbFaceList_FaceListImage::set_st_track_id(::google::protobuf::uint32 value) {
|
set_has_st_track_id();
|
st_track_id_ = value;
|
// @@protoc_insertion_point(field_set:PbFaceList.FaceListImage.st_track_id)
|
}
|
|
// required uint32 size = 3;
|
bool PbFaceList_FaceListImage::has_size() const {
|
return (_has_bits_[0] & 0x00000004u) != 0;
|
}
|
void PbFaceList_FaceListImage::set_has_size() {
|
_has_bits_[0] |= 0x00000004u;
|
}
|
void PbFaceList_FaceListImage::clear_has_size() {
|
_has_bits_[0] &= ~0x00000004u;
|
}
|
void PbFaceList_FaceListImage::clear_size() {
|
size_ = 0u;
|
clear_has_size();
|
}
|
::google::protobuf::uint32 PbFaceList_FaceListImage::size() const {
|
// @@protoc_insertion_point(field_get:PbFaceList.FaceListImage.size)
|
return size_;
|
}
|
void PbFaceList_FaceListImage::set_size(::google::protobuf::uint32 value) {
|
set_has_size();
|
size_ = value;
|
// @@protoc_insertion_point(field_set:PbFaceList.FaceListImage.size)
|
}
|
|
// required .PbFaceList.FaceListImage.ImageType type = 4 [default = MBFT_Y8];
|
bool PbFaceList_FaceListImage::has_type() const {
|
return (_has_bits_[0] & 0x00000080u) != 0;
|
}
|
void PbFaceList_FaceListImage::set_has_type() {
|
_has_bits_[0] |= 0x00000080u;
|
}
|
void PbFaceList_FaceListImage::clear_has_type() {
|
_has_bits_[0] &= ~0x00000080u;
|
}
|
void PbFaceList_FaceListImage::clear_type() {
|
type_ = 9;
|
clear_has_type();
|
}
|
::PbFaceList_FaceListImage_ImageType PbFaceList_FaceListImage::type() const {
|
// @@protoc_insertion_point(field_get:PbFaceList.FaceListImage.type)
|
return static_cast< ::PbFaceList_FaceListImage_ImageType >(type_);
|
}
|
void PbFaceList_FaceListImage::set_type(::PbFaceList_FaceListImage_ImageType value) {
|
assert(::PbFaceList_FaceListImage_ImageType_IsValid(value));
|
set_has_type();
|
type_ = value;
|
// @@protoc_insertion_point(field_set:PbFaceList.FaceListImage.type)
|
}
|
|
// required uint32 width = 5;
|
bool PbFaceList_FaceListImage::has_width() const {
|
return (_has_bits_[0] & 0x00000008u) != 0;
|
}
|
void PbFaceList_FaceListImage::set_has_width() {
|
_has_bits_[0] |= 0x00000008u;
|
}
|
void PbFaceList_FaceListImage::clear_has_width() {
|
_has_bits_[0] &= ~0x00000008u;
|
}
|
void PbFaceList_FaceListImage::clear_width() {
|
width_ = 0u;
|
clear_has_width();
|
}
|
::google::protobuf::uint32 PbFaceList_FaceListImage::width() const {
|
// @@protoc_insertion_point(field_get:PbFaceList.FaceListImage.width)
|
return width_;
|
}
|
void PbFaceList_FaceListImage::set_width(::google::protobuf::uint32 value) {
|
set_has_width();
|
width_ = value;
|
// @@protoc_insertion_point(field_set:PbFaceList.FaceListImage.width)
|
}
|
|
// required uint32 height = 6;
|
bool PbFaceList_FaceListImage::has_height() const {
|
return (_has_bits_[0] & 0x00000010u) != 0;
|
}
|
void PbFaceList_FaceListImage::set_has_height() {
|
_has_bits_[0] |= 0x00000010u;
|
}
|
void PbFaceList_FaceListImage::clear_has_height() {
|
_has_bits_[0] &= ~0x00000010u;
|
}
|
void PbFaceList_FaceListImage::clear_height() {
|
height_ = 0u;
|
clear_has_height();
|
}
|
::google::protobuf::uint32 PbFaceList_FaceListImage::height() const {
|
// @@protoc_insertion_point(field_get:PbFaceList.FaceListImage.height)
|
return height_;
|
}
|
void PbFaceList_FaceListImage::set_height(::google::protobuf::uint32 value) {
|
set_has_height();
|
height_ = value;
|
// @@protoc_insertion_point(field_set:PbFaceList.FaceListImage.height)
|
}
|
|
// optional uint32 top_left_x = 7;
|
bool PbFaceList_FaceListImage::has_top_left_x() const {
|
return (_has_bits_[0] & 0x00000020u) != 0;
|
}
|
void PbFaceList_FaceListImage::set_has_top_left_x() {
|
_has_bits_[0] |= 0x00000020u;
|
}
|
void PbFaceList_FaceListImage::clear_has_top_left_x() {
|
_has_bits_[0] &= ~0x00000020u;
|
}
|
void PbFaceList_FaceListImage::clear_top_left_x() {
|
top_left_x_ = 0u;
|
clear_has_top_left_x();
|
}
|
::google::protobuf::uint32 PbFaceList_FaceListImage::top_left_x() const {
|
// @@protoc_insertion_point(field_get:PbFaceList.FaceListImage.top_left_x)
|
return top_left_x_;
|
}
|
void PbFaceList_FaceListImage::set_top_left_x(::google::protobuf::uint32 value) {
|
set_has_top_left_x();
|
top_left_x_ = value;
|
// @@protoc_insertion_point(field_set:PbFaceList.FaceListImage.top_left_x)
|
}
|
|
// optional uint32 top_left_y = 8;
|
bool PbFaceList_FaceListImage::has_top_left_y() const {
|
return (_has_bits_[0] & 0x00000040u) != 0;
|
}
|
void PbFaceList_FaceListImage::set_has_top_left_y() {
|
_has_bits_[0] |= 0x00000040u;
|
}
|
void PbFaceList_FaceListImage::clear_has_top_left_y() {
|
_has_bits_[0] &= ~0x00000040u;
|
}
|
void PbFaceList_FaceListImage::clear_top_left_y() {
|
top_left_y_ = 0u;
|
clear_has_top_left_y();
|
}
|
::google::protobuf::uint32 PbFaceList_FaceListImage::top_left_y() const {
|
// @@protoc_insertion_point(field_get:PbFaceList.FaceListImage.top_left_y)
|
return top_left_y_;
|
}
|
void PbFaceList_FaceListImage::set_top_left_y(::google::protobuf::uint32 value) {
|
set_has_top_left_y();
|
top_left_y_ = value;
|
// @@protoc_insertion_point(field_set:PbFaceList.FaceListImage.top_left_y)
|
}
|
|
// repeated bytes img = 9;
|
int PbFaceList_FaceListImage::img_size() const {
|
return img_.size();
|
}
|
void PbFaceList_FaceListImage::clear_img() {
|
img_.Clear();
|
}
|
const ::std::string& PbFaceList_FaceListImage::img(int index) const {
|
// @@protoc_insertion_point(field_get:PbFaceList.FaceListImage.img)
|
return img_.Get(index);
|
}
|
::std::string* PbFaceList_FaceListImage::mutable_img(int index) {
|
// @@protoc_insertion_point(field_mutable:PbFaceList.FaceListImage.img)
|
return img_.Mutable(index);
|
}
|
void PbFaceList_FaceListImage::set_img(int index, const ::std::string& value) {
|
// @@protoc_insertion_point(field_set:PbFaceList.FaceListImage.img)
|
img_.Mutable(index)->assign(value);
|
}
|
#if LANG_CXX11
|
void PbFaceList_FaceListImage::set_img(int index, ::std::string&& value) {
|
// @@protoc_insertion_point(field_set:PbFaceList.FaceListImage.img)
|
img_.Mutable(index)->assign(std::move(value));
|
}
|
#endif
|
void PbFaceList_FaceListImage::set_img(int index, const char* value) {
|
img_.Mutable(index)->assign(value);
|
// @@protoc_insertion_point(field_set_char:PbFaceList.FaceListImage.img)
|
}
|
void PbFaceList_FaceListImage::set_img(int index, const void* value, size_t size) {
|
img_.Mutable(index)->assign(
|
reinterpret_cast<const char*>(value), size);
|
// @@protoc_insertion_point(field_set_pointer:PbFaceList.FaceListImage.img)
|
}
|
::std::string* PbFaceList_FaceListImage::add_img() {
|
// @@protoc_insertion_point(field_add_mutable:PbFaceList.FaceListImage.img)
|
return img_.Add();
|
}
|
void PbFaceList_FaceListImage::add_img(const ::std::string& value) {
|
img_.Add()->assign(value);
|
// @@protoc_insertion_point(field_add:PbFaceList.FaceListImage.img)
|
}
|
#if LANG_CXX11
|
void PbFaceList_FaceListImage::add_img(::std::string&& value) {
|
img_.Add()->assign(std::move(value));
|
// @@protoc_insertion_point(field_add:PbFaceList.FaceListImage.img)
|
}
|
#endif
|
void PbFaceList_FaceListImage::add_img(const char* value) {
|
img_.Add()->assign(value);
|
// @@protoc_insertion_point(field_add_char:PbFaceList.FaceListImage.img)
|
}
|
void PbFaceList_FaceListImage::add_img(const void* value, size_t size) {
|
img_.Add()->assign(reinterpret_cast<const char*>(value), size);
|
// @@protoc_insertion_point(field_add_pointer:PbFaceList.FaceListImage.img)
|
}
|
const ::google::protobuf::RepeatedPtrField< ::std::string>&
|
PbFaceList_FaceListImage::img() const {
|
// @@protoc_insertion_point(field_list:PbFaceList.FaceListImage.img)
|
return img_;
|
}
|
::google::protobuf::RepeatedPtrField< ::std::string>*
|
PbFaceList_FaceListImage::mutable_img() {
|
// @@protoc_insertion_point(field_mutable_list:PbFaceList.FaceListImage.img)
|
return &img_;
|
}
|
|
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
|
|
// ===================================================================
|
|
#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
const int PbFaceList::kMagicFieldNumber;
|
const int PbFaceList::kImageCountFieldNumber;
|
const int PbFaceList::kSrcWidthFieldNumber;
|
const int PbFaceList::kSrcHeightFieldNumber;
|
const int PbFaceList::kImagesFieldNumber;
|
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
PbFaceList::PbFaceList()
|
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
|
protobuf_PbFaceList::InitDefaults();
|
}
|
SharedCtor();
|
// @@protoc_insertion_point(constructor:PbFaceList)
|
}
|
PbFaceList::PbFaceList(const PbFaceList& from)
|
: ::google::protobuf::Message(),
|
_internal_metadata_(NULL),
|
_has_bits_(from._has_bits_),
|
_cached_size_(0),
|
images_(from.images_) {
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
::memcpy(&image_count_, &from.image_count_,
|
reinterpret_cast<char*>(&magic_) -
|
reinterpret_cast<char*>(&image_count_) + sizeof(magic_));
|
// @@protoc_insertion_point(copy_constructor:PbFaceList)
|
}
|
|
void PbFaceList::SharedCtor() {
|
_cached_size_ = 0;
|
::memset(&image_count_, 0, reinterpret_cast<char*>(&src_height_) -
|
reinterpret_cast<char*>(&image_count_) + sizeof(src_height_));
|
magic_ = 11706629u;
|
}
|
|
PbFaceList::~PbFaceList() {
|
// @@protoc_insertion_point(destructor:PbFaceList)
|
SharedDtor();
|
}
|
|
void PbFaceList::SharedDtor() {
|
}
|
|
void PbFaceList::SetCachedSize(int size) const {
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
_cached_size_ = size;
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
}
|
const ::google::protobuf::Descriptor* PbFaceList::descriptor() {
|
protobuf_PbFaceList::protobuf_AssignDescriptorsOnce();
|
return protobuf_PbFaceList::file_level_metadata[1].descriptor;
|
}
|
|
const PbFaceList& PbFaceList::default_instance() {
|
protobuf_PbFaceList::InitDefaults();
|
return *internal_default_instance();
|
}
|
|
PbFaceList* PbFaceList::New(::google::protobuf::Arena* arena) const {
|
PbFaceList* n = new PbFaceList;
|
if (arena != NULL) {
|
arena->Own(n);
|
}
|
return n;
|
}
|
|
void PbFaceList::Clear() {
|
// @@protoc_insertion_point(message_clear_start:PbFaceList)
|
images_.Clear();
|
if (_has_bits_[0 / 32] & 15u) {
|
::memset(&image_count_, 0, reinterpret_cast<char*>(&src_height_) -
|
reinterpret_cast<char*>(&image_count_) + sizeof(src_height_));
|
magic_ = 11706629u;
|
}
|
_has_bits_.Clear();
|
_internal_metadata_.Clear();
|
}
|
|
bool PbFaceList::MergePartialFromCodedStream(
|
::google::protobuf::io::CodedInputStream* input) {
|
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
|
::google::protobuf::uint32 tag;
|
// @@protoc_insertion_point(parse_start:PbFaceList)
|
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 uint32 magic = 1 [default = 11706629];
|
case 1: {
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
static_cast< ::google::protobuf::uint8>(8u)) {
|
set_has_magic();
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
|
input, &magic_)));
|
} else {
|
goto handle_unusual;
|
}
|
break;
|
}
|
|
// required uint32 image_count = 2;
|
case 2: {
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
static_cast< ::google::protobuf::uint8>(16u)) {
|
set_has_image_count();
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
|
input, &image_count_)));
|
} else {
|
goto handle_unusual;
|
}
|
break;
|
}
|
|
// optional uint32 src_width = 3;
|
case 3: {
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
static_cast< ::google::protobuf::uint8>(24u)) {
|
set_has_src_width();
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
|
input, &src_width_)));
|
} else {
|
goto handle_unusual;
|
}
|
break;
|
}
|
|
// optional uint32 src_height = 4;
|
case 4: {
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
static_cast< ::google::protobuf::uint8>(32u)) {
|
set_has_src_height();
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
|
input, &src_height_)));
|
} else {
|
goto handle_unusual;
|
}
|
break;
|
}
|
|
// repeated .PbFaceList.FaceListImage images = 5;
|
case 5: {
|
if (static_cast< ::google::protobuf::uint8>(tag) ==
|
static_cast< ::google::protobuf::uint8>(42u)) {
|
DO_(input->IncrementRecursionDepth());
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
|
input, add_images()));
|
} else {
|
goto handle_unusual;
|
}
|
input->UnsafeDecrementRecursionDepth();
|
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::WireFormat::SkipField(
|
input, tag, mutable_unknown_fields()));
|
break;
|
}
|
}
|
}
|
success:
|
// @@protoc_insertion_point(parse_success:PbFaceList)
|
return true;
|
failure:
|
// @@protoc_insertion_point(parse_failure:PbFaceList)
|
return false;
|
#undef DO_
|
}
|
|
void PbFaceList::SerializeWithCachedSizes(
|
::google::protobuf::io::CodedOutputStream* output) const {
|
// @@protoc_insertion_point(serialize_start:PbFaceList)
|
// required uint32 magic = 1 [default = 11706629];
|
if (has_magic()) {
|
::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->magic(), output);
|
}
|
|
// required uint32 image_count = 2;
|
if (has_image_count()) {
|
::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->image_count(), output);
|
}
|
|
// optional uint32 src_width = 3;
|
if (has_src_width()) {
|
::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->src_width(), output);
|
}
|
|
// optional uint32 src_height = 4;
|
if (has_src_height()) {
|
::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->src_height(), output);
|
}
|
|
// repeated .PbFaceList.FaceListImage images = 5;
|
for (unsigned int i = 0, n = this->images_size(); i < n; i++) {
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
5, this->images(i), output);
|
}
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
unknown_fields(), output);
|
}
|
// @@protoc_insertion_point(serialize_end:PbFaceList)
|
}
|
|
::google::protobuf::uint8* PbFaceList::InternalSerializeWithCachedSizesToArray(
|
bool deterministic, ::google::protobuf::uint8* target) const {
|
(void)deterministic; // Unused
|
// @@protoc_insertion_point(serialize_to_array_start:PbFaceList)
|
// required uint32 magic = 1 [default = 11706629];
|
if (has_magic()) {
|
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->magic(), target);
|
}
|
|
// required uint32 image_count = 2;
|
if (has_image_count()) {
|
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->image_count(), target);
|
}
|
|
// optional uint32 src_width = 3;
|
if (has_src_width()) {
|
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->src_width(), target);
|
}
|
|
// optional uint32 src_height = 4;
|
if (has_src_height()) {
|
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->src_height(), target);
|
}
|
|
// repeated .PbFaceList.FaceListImage images = 5;
|
for (unsigned int i = 0, n = this->images_size(); i < n; i++) {
|
target = ::google::protobuf::internal::WireFormatLite::
|
InternalWriteMessageNoVirtualToArray(
|
5, this->images(i), false, target);
|
}
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
unknown_fields(), target);
|
}
|
// @@protoc_insertion_point(serialize_to_array_end:PbFaceList)
|
return target;
|
}
|
|
size_t PbFaceList::RequiredFieldsByteSizeFallback() const {
|
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:PbFaceList)
|
size_t total_size = 0;
|
|
if (has_image_count()) {
|
// required uint32 image_count = 2;
|
total_size += 1 +
|
::google::protobuf::internal::WireFormatLite::UInt32Size(
|
this->image_count());
|
}
|
|
if (has_magic()) {
|
// required uint32 magic = 1 [default = 11706629];
|
total_size += 1 +
|
::google::protobuf::internal::WireFormatLite::UInt32Size(
|
this->magic());
|
}
|
|
return total_size;
|
}
|
size_t PbFaceList::ByteSizeLong() const {
|
// @@protoc_insertion_point(message_byte_size_start:PbFaceList)
|
size_t total_size = 0;
|
|
if (_internal_metadata_.have_unknown_fields()) {
|
total_size +=
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
unknown_fields());
|
}
|
if (((_has_bits_[0] & 0x00000009) ^ 0x00000009) == 0) { // All required fields are present.
|
// required uint32 image_count = 2;
|
total_size += 1 +
|
::google::protobuf::internal::WireFormatLite::UInt32Size(
|
this->image_count());
|
|
// required uint32 magic = 1 [default = 11706629];
|
total_size += 1 +
|
::google::protobuf::internal::WireFormatLite::UInt32Size(
|
this->magic());
|
|
} else {
|
total_size += RequiredFieldsByteSizeFallback();
|
}
|
// repeated .PbFaceList.FaceListImage images = 5;
|
{
|
unsigned int count = this->images_size();
|
total_size += 1UL * count;
|
for (unsigned int i = 0; i < count; i++) {
|
total_size +=
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
this->images(i));
|
}
|
}
|
|
if (_has_bits_[0 / 32] & 6u) {
|
// optional uint32 src_width = 3;
|
if (has_src_width()) {
|
total_size += 1 +
|
::google::protobuf::internal::WireFormatLite::UInt32Size(
|
this->src_width());
|
}
|
|
// optional uint32 src_height = 4;
|
if (has_src_height()) {
|
total_size += 1 +
|
::google::protobuf::internal::WireFormatLite::UInt32Size(
|
this->src_height());
|
}
|
|
}
|
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 PbFaceList::MergeFrom(const ::google::protobuf::Message& from) {
|
// @@protoc_insertion_point(generalized_merge_from_start:PbFaceList)
|
GOOGLE_DCHECK_NE(&from, this);
|
const PbFaceList* source =
|
::google::protobuf::internal::DynamicCastToGenerated<const PbFaceList>(
|
&from);
|
if (source == NULL) {
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:PbFaceList)
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
} else {
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:PbFaceList)
|
MergeFrom(*source);
|
}
|
}
|
|
void PbFaceList::MergeFrom(const PbFaceList& from) {
|
// @@protoc_insertion_point(class_specific_merge_from_start:PbFaceList)
|
GOOGLE_DCHECK_NE(&from, this);
|
_internal_metadata_.MergeFrom(from._internal_metadata_);
|
images_.MergeFrom(from.images_);
|
if (from._has_bits_[0 / 32] & 15u) {
|
if (from.has_image_count()) {
|
set_image_count(from.image_count());
|
}
|
if (from.has_src_width()) {
|
set_src_width(from.src_width());
|
}
|
if (from.has_src_height()) {
|
set_src_height(from.src_height());
|
}
|
if (from.has_magic()) {
|
set_magic(from.magic());
|
}
|
}
|
}
|
|
void PbFaceList::CopyFrom(const ::google::protobuf::Message& from) {
|
// @@protoc_insertion_point(generalized_copy_from_start:PbFaceList)
|
if (&from == this) return;
|
Clear();
|
MergeFrom(from);
|
}
|
|
void PbFaceList::CopyFrom(const PbFaceList& from) {
|
// @@protoc_insertion_point(class_specific_copy_from_start:PbFaceList)
|
if (&from == this) return;
|
Clear();
|
MergeFrom(from);
|
}
|
|
bool PbFaceList::IsInitialized() const {
|
if ((_has_bits_[0] & 0x00000009) != 0x00000009) return false;
|
if (!::google::protobuf::internal::AllAreInitialized(this->images())) return false;
|
return true;
|
}
|
|
void PbFaceList::Swap(PbFaceList* other) {
|
if (other == this) return;
|
InternalSwap(other);
|
}
|
void PbFaceList::InternalSwap(PbFaceList* other) {
|
images_.UnsafeArenaSwap(&other->images_);
|
std::swap(image_count_, other->image_count_);
|
std::swap(src_width_, other->src_width_);
|
std::swap(src_height_, other->src_height_);
|
std::swap(magic_, other->magic_);
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
_internal_metadata_.Swap(&other->_internal_metadata_);
|
std::swap(_cached_size_, other->_cached_size_);
|
}
|
|
::google::protobuf::Metadata PbFaceList::GetMetadata() const {
|
protobuf_PbFaceList::protobuf_AssignDescriptorsOnce();
|
return protobuf_PbFaceList::file_level_metadata[1];
|
}
|
|
#if PROTOBUF_INLINE_NOT_IN_HEADERS
|
// PbFaceList
|
|
// required uint32 magic = 1 [default = 11706629];
|
bool PbFaceList::has_magic() const {
|
return (_has_bits_[0] & 0x00000008u) != 0;
|
}
|
void PbFaceList::set_has_magic() {
|
_has_bits_[0] |= 0x00000008u;
|
}
|
void PbFaceList::clear_has_magic() {
|
_has_bits_[0] &= ~0x00000008u;
|
}
|
void PbFaceList::clear_magic() {
|
magic_ = 11706629u;
|
clear_has_magic();
|
}
|
::google::protobuf::uint32 PbFaceList::magic() const {
|
// @@protoc_insertion_point(field_get:PbFaceList.magic)
|
return magic_;
|
}
|
void PbFaceList::set_magic(::google::protobuf::uint32 value) {
|
set_has_magic();
|
magic_ = value;
|
// @@protoc_insertion_point(field_set:PbFaceList.magic)
|
}
|
|
// required uint32 image_count = 2;
|
bool PbFaceList::has_image_count() const {
|
return (_has_bits_[0] & 0x00000001u) != 0;
|
}
|
void PbFaceList::set_has_image_count() {
|
_has_bits_[0] |= 0x00000001u;
|
}
|
void PbFaceList::clear_has_image_count() {
|
_has_bits_[0] &= ~0x00000001u;
|
}
|
void PbFaceList::clear_image_count() {
|
image_count_ = 0u;
|
clear_has_image_count();
|
}
|
::google::protobuf::uint32 PbFaceList::image_count() const {
|
// @@protoc_insertion_point(field_get:PbFaceList.image_count)
|
return image_count_;
|
}
|
void PbFaceList::set_image_count(::google::protobuf::uint32 value) {
|
set_has_image_count();
|
image_count_ = value;
|
// @@protoc_insertion_point(field_set:PbFaceList.image_count)
|
}
|
|
// optional uint32 src_width = 3;
|
bool PbFaceList::has_src_width() const {
|
return (_has_bits_[0] & 0x00000002u) != 0;
|
}
|
void PbFaceList::set_has_src_width() {
|
_has_bits_[0] |= 0x00000002u;
|
}
|
void PbFaceList::clear_has_src_width() {
|
_has_bits_[0] &= ~0x00000002u;
|
}
|
void PbFaceList::clear_src_width() {
|
src_width_ = 0u;
|
clear_has_src_width();
|
}
|
::google::protobuf::uint32 PbFaceList::src_width() const {
|
// @@protoc_insertion_point(field_get:PbFaceList.src_width)
|
return src_width_;
|
}
|
void PbFaceList::set_src_width(::google::protobuf::uint32 value) {
|
set_has_src_width();
|
src_width_ = value;
|
// @@protoc_insertion_point(field_set:PbFaceList.src_width)
|
}
|
|
// optional uint32 src_height = 4;
|
bool PbFaceList::has_src_height() const {
|
return (_has_bits_[0] & 0x00000004u) != 0;
|
}
|
void PbFaceList::set_has_src_height() {
|
_has_bits_[0] |= 0x00000004u;
|
}
|
void PbFaceList::clear_has_src_height() {
|
_has_bits_[0] &= ~0x00000004u;
|
}
|
void PbFaceList::clear_src_height() {
|
src_height_ = 0u;
|
clear_has_src_height();
|
}
|
::google::protobuf::uint32 PbFaceList::src_height() const {
|
// @@protoc_insertion_point(field_get:PbFaceList.src_height)
|
return src_height_;
|
}
|
void PbFaceList::set_src_height(::google::protobuf::uint32 value) {
|
set_has_src_height();
|
src_height_ = value;
|
// @@protoc_insertion_point(field_set:PbFaceList.src_height)
|
}
|
|
// repeated .PbFaceList.FaceListImage images = 5;
|
int PbFaceList::images_size() const {
|
return images_.size();
|
}
|
void PbFaceList::clear_images() {
|
images_.Clear();
|
}
|
const ::PbFaceList_FaceListImage& PbFaceList::images(int index) const {
|
// @@protoc_insertion_point(field_get:PbFaceList.images)
|
return images_.Get(index);
|
}
|
::PbFaceList_FaceListImage* PbFaceList::mutable_images(int index) {
|
// @@protoc_insertion_point(field_mutable:PbFaceList.images)
|
return images_.Mutable(index);
|
}
|
::PbFaceList_FaceListImage* PbFaceList::add_images() {
|
// @@protoc_insertion_point(field_add:PbFaceList.images)
|
return images_.Add();
|
}
|
::google::protobuf::RepeatedPtrField< ::PbFaceList_FaceListImage >*
|
PbFaceList::mutable_images() {
|
// @@protoc_insertion_point(field_mutable_list:PbFaceList.images)
|
return &images_;
|
}
|
const ::google::protobuf::RepeatedPtrField< ::PbFaceList_FaceListImage >&
|
PbFaceList::images() const {
|
// @@protoc_insertion_point(field_list:PbFaceList.images)
|
return images_;
|
}
|
|
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
// @@protoc_insertion_point(global_scope)
|