File image_data.pb.h
File List > calculators > util > image_data.pb.h
Go to the documentation of this file
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/calculators/util/image_data.proto
#ifndef GOOGLE_PROTOBUF_INCLUDED_mediapipe_2fcalculators_2futil_2fimage_5fdata_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_mediapipe_2fcalculators_2futil_2fimage_5fdata_2eproto
#include <limits>
#include <string>
#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3019000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3019001 < PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
#include <google/protobuf/port_undef.inc>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/metadata_lite.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/unknown_field_set.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
#define PROTOBUF_INTERNAL_EXPORT_mediapipe_2fcalculators_2futil_2fimage_5fdata_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
} // namespace internal
PROTOBUF_NAMESPACE_CLOSE
// Internal implementation detail -- do not use these members.
struct TableStruct_mediapipe_2fcalculators_2futil_2fimage_5fdata_2eproto {
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
static const uint32_t offsets[];
};
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_mediapipe_2fcalculators_2futil_2fimage_5fdata_2eproto;
namespace mediapipe {
class ImageData;
struct ImageDataDefaultTypeInternal;
extern ImageDataDefaultTypeInternal _ImageData_default_instance_;
} // namespace mediapipe
PROTOBUF_NAMESPACE_OPEN
template<> ::mediapipe::ImageData* Arena::CreateMaybeMessage<::mediapipe::ImageData>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace mediapipe {
// ===================================================================
class ImageData final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:mediapipe.ImageData) */ {
public:
inline ImageData() : ImageData(nullptr) {}
~ImageData() override;
explicit constexpr ImageData(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
ImageData(const ImageData& from);
ImageData(ImageData&& from) noexcept
: ImageData() {
*this = ::std::move(from);
}
inline ImageData& operator=(const ImageData& from) {
CopyFrom(from);
return *this;
}
inline ImageData& operator=(ImageData&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
}
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const ImageData& default_instance() {
return *internal_default_instance();
}
static inline const ImageData* internal_default_instance() {
return reinterpret_cast<const ImageData*>(
&_ImageData_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
friend void swap(ImageData& a, ImageData& b) {
a.Swap(&b);
}
inline void Swap(ImageData* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(ImageData* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
ImageData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<ImageData>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const ImageData& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom(const ImageData& from);
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(ImageData* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "mediapipe.ImageData";
}
protected:
explicit ImageData(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kFrameIdFieldNumber = 3,
kFirstPersonFieldNumber = 5,
kImageTypeFieldNumber = 4,
kWidthFieldNumber = 1,
kHeightFieldNumber = 2,
};
// optional uint64 frame_id = 3 [default = 0];
bool has_frame_id() const;
private:
bool _internal_has_frame_id() const;
public:
void clear_frame_id();
uint64_t frame_id() const;
void set_frame_id(uint64_t value);
private:
uint64_t _internal_frame_id() const;
void _internal_set_frame_id(uint64_t value);
public:
// optional bool first_person = 5 [default = false];
bool has_first_person() const;
private:
bool _internal_has_first_person() const;
public:
void clear_first_person();
bool first_person() const;
void set_first_person(bool value);
private:
bool _internal_first_person() const;
void _internal_set_first_person(bool value);
public:
// optional uint32 image_type = 4 [default = 2];
bool has_image_type() const;
private:
bool _internal_has_image_type() const;
public:
void clear_image_type();
uint32_t image_type() const;
void set_image_type(uint32_t value);
private:
uint32_t _internal_image_type() const;
void _internal_set_image_type(uint32_t value);
public:
// optional uint64 width = 1 [default = 640];
bool has_width() const;
private:
bool _internal_has_width() const;
public:
void clear_width();
uint64_t width() const;
void set_width(uint64_t value);
private:
uint64_t _internal_width() const;
void _internal_set_width(uint64_t value);
public:
// optional uint64 height = 2 [default = 480];
bool has_height() const;
private:
bool _internal_has_height() const;
public:
void clear_height();
uint64_t height() const;
void set_height(uint64_t value);
private:
uint64_t _internal_height() const;
void _internal_set_height(uint64_t value);
public:
// @@protoc_insertion_point(class_scope:mediapipe.ImageData)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
uint64_t frame_id_;
bool first_person_;
uint32_t image_type_;
uint64_t width_;
uint64_t height_;
friend struct ::TableStruct_mediapipe_2fcalculators_2futil_2fimage_5fdata_2eproto;
};
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// ImageData
// optional uint64 width = 1 [default = 640];
inline bool ImageData::_internal_has_width() const {
bool value = (_has_bits_[0] & 0x00000008u) != 0;
return value;
}
inline bool ImageData::has_width() const {
return _internal_has_width();
}
inline void ImageData::clear_width() {
width_ = uint64_t{640u};
_has_bits_[0] &= ~0x00000008u;
}
inline uint64_t ImageData::_internal_width() const {
return width_;
}
inline uint64_t ImageData::width() const {
// @@protoc_insertion_point(field_get:mediapipe.ImageData.width)
return _internal_width();
}
inline void ImageData::_internal_set_width(uint64_t value) {
_has_bits_[0] |= 0x00000008u;
width_ = value;
}
inline void ImageData::set_width(uint64_t value) {
_internal_set_width(value);
// @@protoc_insertion_point(field_set:mediapipe.ImageData.width)
}
// optional uint64 height = 2 [default = 480];
inline bool ImageData::_internal_has_height() const {
bool value = (_has_bits_[0] & 0x00000010u) != 0;
return value;
}
inline bool ImageData::has_height() const {
return _internal_has_height();
}
inline void ImageData::clear_height() {
height_ = uint64_t{480u};
_has_bits_[0] &= ~0x00000010u;
}
inline uint64_t ImageData::_internal_height() const {
return height_;
}
inline uint64_t ImageData::height() const {
// @@protoc_insertion_point(field_get:mediapipe.ImageData.height)
return _internal_height();
}
inline void ImageData::_internal_set_height(uint64_t value) {
_has_bits_[0] |= 0x00000010u;
height_ = value;
}
inline void ImageData::set_height(uint64_t value) {
_internal_set_height(value);
// @@protoc_insertion_point(field_set:mediapipe.ImageData.height)
}
// optional uint64 frame_id = 3 [default = 0];
inline bool ImageData::_internal_has_frame_id() const {
bool value = (_has_bits_[0] & 0x00000001u) != 0;
return value;
}
inline bool ImageData::has_frame_id() const {
return _internal_has_frame_id();
}
inline void ImageData::clear_frame_id() {
frame_id_ = uint64_t{0u};
_has_bits_[0] &= ~0x00000001u;
}
inline uint64_t ImageData::_internal_frame_id() const {
return frame_id_;
}
inline uint64_t ImageData::frame_id() const {
// @@protoc_insertion_point(field_get:mediapipe.ImageData.frame_id)
return _internal_frame_id();
}
inline void ImageData::_internal_set_frame_id(uint64_t value) {
_has_bits_[0] |= 0x00000001u;
frame_id_ = value;
}
inline void ImageData::set_frame_id(uint64_t value) {
_internal_set_frame_id(value);
// @@protoc_insertion_point(field_set:mediapipe.ImageData.frame_id)
}
// optional uint32 image_type = 4 [default = 2];
inline bool ImageData::_internal_has_image_type() const {
bool value = (_has_bits_[0] & 0x00000004u) != 0;
return value;
}
inline bool ImageData::has_image_type() const {
return _internal_has_image_type();
}
inline void ImageData::clear_image_type() {
image_type_ = 2u;
_has_bits_[0] &= ~0x00000004u;
}
inline uint32_t ImageData::_internal_image_type() const {
return image_type_;
}
inline uint32_t ImageData::image_type() const {
// @@protoc_insertion_point(field_get:mediapipe.ImageData.image_type)
return _internal_image_type();
}
inline void ImageData::_internal_set_image_type(uint32_t value) {
_has_bits_[0] |= 0x00000004u;
image_type_ = value;
}
inline void ImageData::set_image_type(uint32_t value) {
_internal_set_image_type(value);
// @@protoc_insertion_point(field_set:mediapipe.ImageData.image_type)
}
// optional bool first_person = 5 [default = false];
inline bool ImageData::_internal_has_first_person() const {
bool value = (_has_bits_[0] & 0x00000002u) != 0;
return value;
}
inline bool ImageData::has_first_person() const {
return _internal_has_first_person();
}
inline void ImageData::clear_first_person() {
first_person_ = false;
_has_bits_[0] &= ~0x00000002u;
}
inline bool ImageData::_internal_first_person() const {
return first_person_;
}
inline bool ImageData::first_person() const {
// @@protoc_insertion_point(field_get:mediapipe.ImageData.first_person)
return _internal_first_person();
}
inline void ImageData::_internal_set_first_person(bool value) {
_has_bits_[0] |= 0x00000002u;
first_person_ = value;
}
inline void ImageData::set_first_person(bool value) {
_internal_set_first_person(value);
// @@protoc_insertion_point(field_set:mediapipe.ImageData.first_person)
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
// @@protoc_insertion_point(namespace_scope)
} // namespace mediapipe
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_mediapipe_2fcalculators_2futil_2fimage_5fdata_2eproto