| | |
| | | |
| | | } // namespace |
| | | |
| | | 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 }, |
| | | }; |
| | | |
| | | 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_ |
| | | ~0u, // no _weak_field_map_ |
| | | 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, _internal_metadata_), |
| | | ~0u, // no _extensions_ |
| | | ~0u, // no _oneof_case_ |
| | | ~0u, // no _weak_field_map_ |
| | | 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_), |
| | |
| | | }; |
| | | |
| | | static const ::google::protobuf::internal::MigrationSchema schemas[] = { |
| | | { 0, 14, sizeof(PbFaceList_FaceListImage)}, |
| | | { 23, 33, sizeof(PbFaceList)}, |
| | | { 0, 13, sizeof(PbFaceList_FaceListImage)}, |
| | | { 22, 31, sizeof(PbFaceList)}, |
| | | }; |
| | | |
| | | static ::google::protobuf::Message const * const file_default_instances[] = { |
| | |
| | | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
| | | ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); |
| | | } |
| | | // Force AddDescriptors() to be called at dynamic initialization time. |
| | | // Force AddDescriptors() to be called at static initialization time. |
| | | struct StaticDescriptorInitializer { |
| | | StaticDescriptorInitializer() { |
| | | AddDescriptors(); |
| | |
| | | img_(from.img_) { |
| | | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| | | ::memcpy(&idx_, &from.idx_, |
| | | static_cast<size_t>(reinterpret_cast<char*>(&type_) - |
| | | reinterpret_cast<char*>(&idx_)) + sizeof(type_)); |
| | | 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, static_cast<size_t>( |
| | | reinterpret_cast<char*>(&top_left_y_) - |
| | | reinterpret_cast<char*>(&idx_)) + sizeof(top_left_y_)); |
| | | ::memset(&idx_, 0, reinterpret_cast<char*>(&top_left_y_) - |
| | | reinterpret_cast<char*>(&idx_) + sizeof(top_left_y_)); |
| | | type_ = 9; |
| | | } |
| | | |
| | |
| | | } |
| | | const ::google::protobuf::Descriptor* PbFaceList_FaceListImage::descriptor() { |
| | | protobuf_PbFaceList::protobuf_AssignDescriptorsOnce(); |
| | | return protobuf_PbFaceList::file_level_metadata[kIndexInFileMessages].descriptor; |
| | | return protobuf_PbFaceList::file_level_metadata[0].descriptor; |
| | | } |
| | | |
| | | const PbFaceList_FaceListImage& PbFaceList_FaceListImage::default_instance() { |
| | |
| | | // @@protoc_insertion_point(message_clear_start:PbFaceList.FaceListImage) |
| | | img_.Clear(); |
| | | if (_has_bits_[0 / 32] & 255u) { |
| | | ::memset(&idx_, 0, static_cast<size_t>( |
| | | reinterpret_cast<char*>(&top_left_y_) - |
| | | reinterpret_cast<char*>(&idx_)) + sizeof(top_left_y_)); |
| | | ::memset(&idx_, 0, reinterpret_cast<char*>(&top_left_y_) - |
| | | reinterpret_cast<char*>(&idx_) + sizeof(top_left_y_)); |
| | | type_ = 9; |
| | | } |
| | | _has_bits_.Clear(); |
| | |
| | | if (::PbFaceList_FaceListImage_ImageType_IsValid(value)) { |
| | | set_type(static_cast< ::PbFaceList_FaceListImage_ImageType >(value)); |
| | | } else { |
| | | mutable_unknown_fields()->AddVarint( |
| | | 4, static_cast< ::google::protobuf::uint64>(value)); |
| | | mutable_unknown_fields()->AddVarint(4, value); |
| | | } |
| | | } else { |
| | | goto handle_unusual; |
| | |
| | | void PbFaceList_FaceListImage::SerializeWithCachedSizes( |
| | | ::google::protobuf::io::CodedOutputStream* output) const { |
| | | // @@protoc_insertion_point(serialize_start:PbFaceList.FaceListImage) |
| | | ::google::protobuf::uint32 cached_has_bits = 0; |
| | | (void) cached_has_bits; |
| | | |
| | | cached_has_bits = _has_bits_[0]; |
| | | // required uint32 idx = 1; |
| | | if (cached_has_bits & 0x00000001u) { |
| | | if (has_idx()) { |
| | | ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->idx(), output); |
| | | } |
| | | |
| | | // required uint32 st_track_id = 2; |
| | | if (cached_has_bits & 0x00000002u) { |
| | | if (has_st_track_id()) { |
| | | ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->st_track_id(), output); |
| | | } |
| | | |
| | | // required uint32 size = 3; |
| | | if (cached_has_bits & 0x00000004u) { |
| | | if (has_size()) { |
| | | ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->size(), output); |
| | | } |
| | | |
| | | // required .PbFaceList.FaceListImage.ImageType type = 4 [default = MBFT_Y8]; |
| | | if (cached_has_bits & 0x00000080u) { |
| | | if (has_type()) { |
| | | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| | | 4, this->type(), output); |
| | | } |
| | | |
| | | // required uint32 width = 5; |
| | | if (cached_has_bits & 0x00000008u) { |
| | | if (has_width()) { |
| | | ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->width(), output); |
| | | } |
| | | |
| | | // required uint32 height = 6; |
| | | if (cached_has_bits & 0x00000010u) { |
| | | if (has_height()) { |
| | | ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->height(), output); |
| | | } |
| | | |
| | | // optional uint32 top_left_x = 7; |
| | | if (cached_has_bits & 0x00000020u) { |
| | | if (has_top_left_x()) { |
| | | ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->top_left_x(), output); |
| | | } |
| | | |
| | | // optional uint32 top_left_y = 8; |
| | | if (cached_has_bits & 0x00000040u) { |
| | | if (has_top_left_y()) { |
| | | ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->top_left_y(), output); |
| | | } |
| | | |
| | |
| | | |
| | | ::google::protobuf::uint8* PbFaceList_FaceListImage::InternalSerializeWithCachedSizesToArray( |
| | | bool deterministic, ::google::protobuf::uint8* target) const { |
| | | (void)deterministic; // Unused |
| | | (void)deterministic; // Unused |
| | | // @@protoc_insertion_point(serialize_to_array_start:PbFaceList.FaceListImage) |
| | | ::google::protobuf::uint32 cached_has_bits = 0; |
| | | (void) cached_has_bits; |
| | | |
| | | cached_has_bits = _has_bits_[0]; |
| | | // required uint32 idx = 1; |
| | | if (cached_has_bits & 0x00000001u) { |
| | | if (has_idx()) { |
| | | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->idx(), target); |
| | | } |
| | | |
| | | // required uint32 st_track_id = 2; |
| | | if (cached_has_bits & 0x00000002u) { |
| | | if (has_st_track_id()) { |
| | | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->st_track_id(), target); |
| | | } |
| | | |
| | | // required uint32 size = 3; |
| | | if (cached_has_bits & 0x00000004u) { |
| | | if (has_size()) { |
| | | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->size(), target); |
| | | } |
| | | |
| | | // required .PbFaceList.FaceListImage.ImageType type = 4 [default = MBFT_Y8]; |
| | | if (cached_has_bits & 0x00000080u) { |
| | | if (has_type()) { |
| | | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| | | 4, this->type(), target); |
| | | } |
| | | |
| | | // required uint32 width = 5; |
| | | if (cached_has_bits & 0x00000008u) { |
| | | if (has_width()) { |
| | | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->width(), target); |
| | | } |
| | | |
| | | // required uint32 height = 6; |
| | | if (cached_has_bits & 0x00000010u) { |
| | | if (has_height()) { |
| | | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->height(), target); |
| | | } |
| | | |
| | | // optional uint32 top_left_x = 7; |
| | | if (cached_has_bits & 0x00000020u) { |
| | | if (has_top_left_x()) { |
| | | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->top_left_x(), target); |
| | | } |
| | | |
| | | // optional uint32 top_left_y = 8; |
| | | if (cached_has_bits & 0x00000040u) { |
| | | if (has_top_left_y()) { |
| | | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->top_left_y(), target); |
| | | } |
| | | |
| | |
| | | // @@protoc_insertion_point(class_specific_merge_from_start:PbFaceList.FaceListImage) |
| | | GOOGLE_DCHECK_NE(&from, this); |
| | | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| | | ::google::protobuf::uint32 cached_has_bits = 0; |
| | | (void) cached_has_bits; |
| | | |
| | | img_.MergeFrom(from.img_); |
| | | cached_has_bits = from._has_bits_[0]; |
| | | if (cached_has_bits & 255u) { |
| | | if (cached_has_bits & 0x00000001u) { |
| | | idx_ = from.idx_; |
| | | if (from._has_bits_[0 / 32] & 255u) { |
| | | if (from.has_idx()) { |
| | | set_idx(from.idx()); |
| | | } |
| | | if (cached_has_bits & 0x00000002u) { |
| | | st_track_id_ = from.st_track_id_; |
| | | if (from.has_st_track_id()) { |
| | | set_st_track_id(from.st_track_id()); |
| | | } |
| | | if (cached_has_bits & 0x00000004u) { |
| | | size_ = from.size_; |
| | | if (from.has_size()) { |
| | | set_size(from.size()); |
| | | } |
| | | if (cached_has_bits & 0x00000008u) { |
| | | width_ = from.width_; |
| | | if (from.has_width()) { |
| | | set_width(from.width()); |
| | | } |
| | | if (cached_has_bits & 0x00000010u) { |
| | | height_ = from.height_; |
| | | if (from.has_height()) { |
| | | set_height(from.height()); |
| | | } |
| | | if (cached_has_bits & 0x00000020u) { |
| | | top_left_x_ = from.top_left_x_; |
| | | if (from.has_top_left_x()) { |
| | | set_top_left_x(from.top_left_x()); |
| | | } |
| | | if (cached_has_bits & 0x00000040u) { |
| | | top_left_y_ = from.top_left_y_; |
| | | if (from.has_top_left_y()) { |
| | | set_top_left_y(from.top_left_y()); |
| | | } |
| | | if (cached_has_bits & 0x00000080u) { |
| | | type_ = from.type_; |
| | | if (from.has_type()) { |
| | | set_type(from.type()); |
| | | } |
| | | _has_bits_[0] |= cached_has_bits; |
| | | } |
| | | } |
| | | |
| | |
| | | InternalSwap(other); |
| | | } |
| | | void PbFaceList_FaceListImage::InternalSwap(PbFaceList_FaceListImage* other) { |
| | | img_.InternalSwap(&other->img_); |
| | | img_.UnsafeArenaSwap(&other->img_); |
| | | std::swap(idx_, other->idx_); |
| | | std::swap(st_track_id_, other->st_track_id_); |
| | | std::swap(size_, other->size_); |
| | |
| | | |
| | | ::google::protobuf::Metadata PbFaceList_FaceListImage::GetMetadata() const { |
| | | protobuf_PbFaceList::protobuf_AssignDescriptorsOnce(); |
| | | return protobuf_PbFaceList::file_level_metadata[kIndexInFileMessages]; |
| | | return protobuf_PbFaceList::file_level_metadata[0]; |
| | | } |
| | | |
| | | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| | |
| | | } |
| | | #endif |
| | | void PbFaceList_FaceListImage::set_img(int index, const char* value) { |
| | | GOOGLE_DCHECK(value != NULL); |
| | | img_.Mutable(index)->assign(value); |
| | | // @@protoc_insertion_point(field_set_char:PbFaceList.FaceListImage.img) |
| | | } |
| | |
| | | } |
| | | #if LANG_CXX11 |
| | | void PbFaceList_FaceListImage::add_img(::std::string&& value) { |
| | | img_.Add(std::move(value)); |
| | | img_.Add()->assign(std::move(value)); |
| | | // @@protoc_insertion_point(field_add:PbFaceList.FaceListImage.img) |
| | | } |
| | | #endif |
| | | void PbFaceList_FaceListImage::add_img(const char* value) { |
| | | GOOGLE_DCHECK(value != NULL); |
| | | img_.Add()->assign(value); |
| | | // @@protoc_insertion_point(field_add_char:PbFaceList.FaceListImage.img) |
| | | } |
| | |
| | | images_(from.images_) { |
| | | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| | | ::memcpy(&image_count_, &from.image_count_, |
| | | static_cast<size_t>(reinterpret_cast<char*>(&magic_) - |
| | | reinterpret_cast<char*>(&image_count_)) + sizeof(magic_)); |
| | | 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, static_cast<size_t>( |
| | | reinterpret_cast<char*>(&src_height_) - |
| | | reinterpret_cast<char*>(&image_count_)) + sizeof(src_height_)); |
| | | ::memset(&image_count_, 0, reinterpret_cast<char*>(&src_height_) - |
| | | reinterpret_cast<char*>(&image_count_) + sizeof(src_height_)); |
| | | magic_ = 11706629u; |
| | | } |
| | | |
| | |
| | | } |
| | | const ::google::protobuf::Descriptor* PbFaceList::descriptor() { |
| | | protobuf_PbFaceList::protobuf_AssignDescriptorsOnce(); |
| | | return protobuf_PbFaceList::file_level_metadata[kIndexInFileMessages].descriptor; |
| | | return protobuf_PbFaceList::file_level_metadata[1].descriptor; |
| | | } |
| | | |
| | | const PbFaceList& PbFaceList::default_instance() { |
| | |
| | | // @@protoc_insertion_point(message_clear_start:PbFaceList) |
| | | images_.Clear(); |
| | | if (_has_bits_[0 / 32] & 15u) { |
| | | ::memset(&image_count_, 0, static_cast<size_t>( |
| | | reinterpret_cast<char*>(&src_height_) - |
| | | reinterpret_cast<char*>(&image_count_)) + sizeof(src_height_)); |
| | | ::memset(&image_count_, 0, reinterpret_cast<char*>(&src_height_) - |
| | | reinterpret_cast<char*>(&image_count_) + sizeof(src_height_)); |
| | | magic_ = 11706629u; |
| | | } |
| | | _has_bits_.Clear(); |
| | |
| | | case 5: { |
| | | if (static_cast< ::google::protobuf::uint8>(tag) == |
| | | static_cast< ::google::protobuf::uint8>(42u)) { |
| | | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
| | | DO_(input->IncrementRecursionDepth()); |
| | | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| | | input, add_images())); |
| | | } else { |
| | | goto handle_unusual; |
| | | } |
| | | input->UnsafeDecrementRecursionDepth(); |
| | | break; |
| | | } |
| | | |
| | |
| | | void PbFaceList::SerializeWithCachedSizes( |
| | | ::google::protobuf::io::CodedOutputStream* output) const { |
| | | // @@protoc_insertion_point(serialize_start:PbFaceList) |
| | | ::google::protobuf::uint32 cached_has_bits = 0; |
| | | (void) cached_has_bits; |
| | | |
| | | cached_has_bits = _has_bits_[0]; |
| | | // required uint32 magic = 1 [default = 11706629]; |
| | | if (cached_has_bits & 0x00000008u) { |
| | | if (has_magic()) { |
| | | ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->magic(), output); |
| | | } |
| | | |
| | | // required uint32 image_count = 2; |
| | | if (cached_has_bits & 0x00000001u) { |
| | | if (has_image_count()) { |
| | | ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->image_count(), output); |
| | | } |
| | | |
| | | // optional uint32 src_width = 3; |
| | | if (cached_has_bits & 0x00000002u) { |
| | | if (has_src_width()) { |
| | | ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->src_width(), output); |
| | | } |
| | | |
| | | // optional uint32 src_height = 4; |
| | | if (cached_has_bits & 0x00000004u) { |
| | | 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 = static_cast<unsigned int>(this->images_size()); i < n; i++) { |
| | | for (unsigned int i = 0, n = this->images_size(); i < n; i++) { |
| | | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| | | 5, this->images(static_cast<int>(i)), output); |
| | | 5, this->images(i), output); |
| | | } |
| | | |
| | | if (_internal_metadata_.have_unknown_fields()) { |
| | |
| | | |
| | | ::google::protobuf::uint8* PbFaceList::InternalSerializeWithCachedSizesToArray( |
| | | bool deterministic, ::google::protobuf::uint8* target) const { |
| | | (void)deterministic; // Unused |
| | | (void)deterministic; // Unused |
| | | // @@protoc_insertion_point(serialize_to_array_start:PbFaceList) |
| | | ::google::protobuf::uint32 cached_has_bits = 0; |
| | | (void) cached_has_bits; |
| | | |
| | | cached_has_bits = _has_bits_[0]; |
| | | // required uint32 magic = 1 [default = 11706629]; |
| | | if (cached_has_bits & 0x00000008u) { |
| | | if (has_magic()) { |
| | | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->magic(), target); |
| | | } |
| | | |
| | | // required uint32 image_count = 2; |
| | | if (cached_has_bits & 0x00000001u) { |
| | | if (has_image_count()) { |
| | | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->image_count(), target); |
| | | } |
| | | |
| | | // optional uint32 src_width = 3; |
| | | if (cached_has_bits & 0x00000002u) { |
| | | if (has_src_width()) { |
| | | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->src_width(), target); |
| | | } |
| | | |
| | | // optional uint32 src_height = 4; |
| | | if (cached_has_bits & 0x00000004u) { |
| | | 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 = static_cast<unsigned int>(this->images_size()); i < n; i++) { |
| | | for (unsigned int i = 0, n = this->images_size(); i < n; i++) { |
| | | target = ::google::protobuf::internal::WireFormatLite:: |
| | | InternalWriteMessageNoVirtualToArray( |
| | | 5, this->images(static_cast<int>(i)), deterministic, target); |
| | | 5, this->images(i), false, target); |
| | | } |
| | | |
| | | if (_internal_metadata_.have_unknown_fields()) { |
| | |
| | | } |
| | | // repeated .PbFaceList.FaceListImage images = 5; |
| | | { |
| | | unsigned int count = static_cast<unsigned int>(this->images_size()); |
| | | 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(static_cast<int>(i))); |
| | | this->images(i)); |
| | | } |
| | | } |
| | | |
| | |
| | | // @@protoc_insertion_point(class_specific_merge_from_start:PbFaceList) |
| | | GOOGLE_DCHECK_NE(&from, this); |
| | | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| | | ::google::protobuf::uint32 cached_has_bits = 0; |
| | | (void) cached_has_bits; |
| | | |
| | | images_.MergeFrom(from.images_); |
| | | cached_has_bits = from._has_bits_[0]; |
| | | if (cached_has_bits & 15u) { |
| | | if (cached_has_bits & 0x00000001u) { |
| | | image_count_ = from.image_count_; |
| | | if (from._has_bits_[0 / 32] & 15u) { |
| | | if (from.has_image_count()) { |
| | | set_image_count(from.image_count()); |
| | | } |
| | | if (cached_has_bits & 0x00000002u) { |
| | | src_width_ = from.src_width_; |
| | | if (from.has_src_width()) { |
| | | set_src_width(from.src_width()); |
| | | } |
| | | if (cached_has_bits & 0x00000004u) { |
| | | src_height_ = from.src_height_; |
| | | if (from.has_src_height()) { |
| | | set_src_height(from.src_height()); |
| | | } |
| | | if (cached_has_bits & 0x00000008u) { |
| | | magic_ = from.magic_; |
| | | if (from.has_magic()) { |
| | | set_magic(from.magic()); |
| | | } |
| | | _has_bits_[0] |= cached_has_bits; |
| | | } |
| | | } |
| | | |
| | |
| | | InternalSwap(other); |
| | | } |
| | | void PbFaceList::InternalSwap(PbFaceList* other) { |
| | | images_.InternalSwap(&other->images_); |
| | | 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_); |
| | |
| | | |
| | | ::google::protobuf::Metadata PbFaceList::GetMetadata() const { |
| | | protobuf_PbFaceList::protobuf_AssignDescriptorsOnce(); |
| | | return protobuf_PbFaceList::file_level_metadata[kIndexInFileMessages]; |
| | | return protobuf_PbFaceList::file_level_metadata[1]; |
| | | } |
| | | |
| | | #if PROTOBUF_INLINE_NOT_IN_HEADERS |