2018-09-11 02:07:51 +08:00
|
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
|
|
// source: opencv-onnx.proto
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
#ifndef GOOGLE_PROTOBUF_INCLUDED_opencv_2donnx_2eproto
|
|
|
|
#define GOOGLE_PROTOBUF_INCLUDED_opencv_2donnx_2eproto
|
2018-09-11 02:07:51 +08:00
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
#include <limits>
|
2018-09-11 02:07:51 +08:00
|
|
|
#include <string>
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
#include <google/protobuf/port_def.inc>
|
|
|
|
#if PROTOBUF_VERSION < 3019000
|
2018-09-11 02:07:51 +08:00
|
|
|
#error This file was generated by a newer version of protoc which is
|
2021-11-10 20:03:45 +08:00
|
|
|
#error incompatible with your Protocol Buffer headers. Please update
|
2018-09-11 02:07:51 +08:00
|
|
|
#error your headers.
|
|
|
|
#endif
|
2021-11-10 20:03:45 +08:00
|
|
|
#if 3019001 < PROTOBUF_MIN_PROTOC_VERSION
|
2018-09-11 02:07:51 +08:00
|
|
|
#error This file was generated by an older version of protoc which is
|
2021-11-10 20:03:45 +08:00
|
|
|
#error incompatible with your Protocol Buffer headers. Please
|
2018-09-11 02:07:51 +08:00
|
|
|
#error regenerate this file with a newer version of protoc.
|
|
|
|
#endif
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
#include <google/protobuf/port_undef.inc>
|
2018-09-11 02:07:51 +08:00
|
|
|
#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>
|
2021-11-10 20:03:45 +08:00
|
|
|
#include <google/protobuf/metadata_lite.h>
|
|
|
|
#include <google/protobuf/generated_message_reflection.h>
|
2018-09-11 02:07:51 +08:00
|
|
|
#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/generated_enum_reflection.h>
|
|
|
|
#include <google/protobuf/unknown_field_set.h>
|
|
|
|
// @@protoc_insertion_point(includes)
|
2021-11-10 20:03:45 +08:00
|
|
|
#include <google/protobuf/port_def.inc>
|
|
|
|
#define PROTOBUF_INTERNAL_EXPORT_opencv_2donnx_2eproto
|
|
|
|
PROTOBUF_NAMESPACE_OPEN
|
|
|
|
namespace internal {
|
|
|
|
class AnyMetadata;
|
|
|
|
} // namespace internal
|
|
|
|
PROTOBUF_NAMESPACE_CLOSE
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// Internal implementation detail -- do not use these members.
|
2021-11-10 20:03:45 +08:00
|
|
|
struct TableStruct_opencv_2donnx_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[13]
|
|
|
|
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[];
|
2018-09-11 02:07:51 +08:00
|
|
|
};
|
2021-11-10 20:03:45 +08:00
|
|
|
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_opencv_2donnx_2eproto;
|
2018-09-11 02:07:51 +08:00
|
|
|
namespace opencv_onnx {
|
|
|
|
class AttributeProto;
|
2021-11-10 20:03:45 +08:00
|
|
|
struct AttributeProtoDefaultTypeInternal;
|
2018-09-11 02:07:51 +08:00
|
|
|
extern AttributeProtoDefaultTypeInternal _AttributeProto_default_instance_;
|
|
|
|
class GraphProto;
|
2021-11-10 20:03:45 +08:00
|
|
|
struct GraphProtoDefaultTypeInternal;
|
2018-09-11 02:07:51 +08:00
|
|
|
extern GraphProtoDefaultTypeInternal _GraphProto_default_instance_;
|
|
|
|
class ModelProto;
|
2021-11-10 20:03:45 +08:00
|
|
|
struct ModelProtoDefaultTypeInternal;
|
2018-09-11 02:07:51 +08:00
|
|
|
extern ModelProtoDefaultTypeInternal _ModelProto_default_instance_;
|
|
|
|
class NodeProto;
|
2021-11-10 20:03:45 +08:00
|
|
|
struct NodeProtoDefaultTypeInternal;
|
2018-09-11 02:07:51 +08:00
|
|
|
extern NodeProtoDefaultTypeInternal _NodeProto_default_instance_;
|
|
|
|
class OperatorSetIdProto;
|
2021-11-10 20:03:45 +08:00
|
|
|
struct OperatorSetIdProtoDefaultTypeInternal;
|
2018-09-11 02:07:51 +08:00
|
|
|
extern OperatorSetIdProtoDefaultTypeInternal _OperatorSetIdProto_default_instance_;
|
|
|
|
class StringStringEntryProto;
|
2021-11-10 20:03:45 +08:00
|
|
|
struct StringStringEntryProtoDefaultTypeInternal;
|
2018-09-11 02:07:51 +08:00
|
|
|
extern StringStringEntryProtoDefaultTypeInternal _StringStringEntryProto_default_instance_;
|
|
|
|
class TensorProto;
|
2021-11-10 20:03:45 +08:00
|
|
|
struct TensorProtoDefaultTypeInternal;
|
2018-09-11 02:07:51 +08:00
|
|
|
extern TensorProtoDefaultTypeInternal _TensorProto_default_instance_;
|
|
|
|
class TensorProto_Segment;
|
2021-11-10 20:03:45 +08:00
|
|
|
struct TensorProto_SegmentDefaultTypeInternal;
|
2018-09-11 02:07:51 +08:00
|
|
|
extern TensorProto_SegmentDefaultTypeInternal _TensorProto_Segment_default_instance_;
|
|
|
|
class TensorShapeProto;
|
2021-11-10 20:03:45 +08:00
|
|
|
struct TensorShapeProtoDefaultTypeInternal;
|
2018-09-11 02:07:51 +08:00
|
|
|
extern TensorShapeProtoDefaultTypeInternal _TensorShapeProto_default_instance_;
|
|
|
|
class TensorShapeProto_Dimension;
|
2021-11-10 20:03:45 +08:00
|
|
|
struct TensorShapeProto_DimensionDefaultTypeInternal;
|
2018-09-11 02:07:51 +08:00
|
|
|
extern TensorShapeProto_DimensionDefaultTypeInternal _TensorShapeProto_Dimension_default_instance_;
|
|
|
|
class TypeProto;
|
2021-11-10 20:03:45 +08:00
|
|
|
struct TypeProtoDefaultTypeInternal;
|
2018-09-11 02:07:51 +08:00
|
|
|
extern TypeProtoDefaultTypeInternal _TypeProto_default_instance_;
|
|
|
|
class TypeProto_Tensor;
|
2021-11-10 20:03:45 +08:00
|
|
|
struct TypeProto_TensorDefaultTypeInternal;
|
2018-09-11 02:07:51 +08:00
|
|
|
extern TypeProto_TensorDefaultTypeInternal _TypeProto_Tensor_default_instance_;
|
|
|
|
class ValueInfoProto;
|
2021-11-10 20:03:45 +08:00
|
|
|
struct ValueInfoProtoDefaultTypeInternal;
|
2018-09-11 02:07:51 +08:00
|
|
|
extern ValueInfoProtoDefaultTypeInternal _ValueInfoProto_default_instance_;
|
|
|
|
} // namespace opencv_onnx
|
2021-11-10 20:03:45 +08:00
|
|
|
PROTOBUF_NAMESPACE_OPEN
|
|
|
|
template<> ::opencv_onnx::AttributeProto* Arena::CreateMaybeMessage<::opencv_onnx::AttributeProto>(Arena*);
|
|
|
|
template<> ::opencv_onnx::GraphProto* Arena::CreateMaybeMessage<::opencv_onnx::GraphProto>(Arena*);
|
|
|
|
template<> ::opencv_onnx::ModelProto* Arena::CreateMaybeMessage<::opencv_onnx::ModelProto>(Arena*);
|
|
|
|
template<> ::opencv_onnx::NodeProto* Arena::CreateMaybeMessage<::opencv_onnx::NodeProto>(Arena*);
|
|
|
|
template<> ::opencv_onnx::OperatorSetIdProto* Arena::CreateMaybeMessage<::opencv_onnx::OperatorSetIdProto>(Arena*);
|
|
|
|
template<> ::opencv_onnx::StringStringEntryProto* Arena::CreateMaybeMessage<::opencv_onnx::StringStringEntryProto>(Arena*);
|
|
|
|
template<> ::opencv_onnx::TensorProto* Arena::CreateMaybeMessage<::opencv_onnx::TensorProto>(Arena*);
|
|
|
|
template<> ::opencv_onnx::TensorProto_Segment* Arena::CreateMaybeMessage<::opencv_onnx::TensorProto_Segment>(Arena*);
|
|
|
|
template<> ::opencv_onnx::TensorShapeProto* Arena::CreateMaybeMessage<::opencv_onnx::TensorShapeProto>(Arena*);
|
|
|
|
template<> ::opencv_onnx::TensorShapeProto_Dimension* Arena::CreateMaybeMessage<::opencv_onnx::TensorShapeProto_Dimension>(Arena*);
|
|
|
|
template<> ::opencv_onnx::TypeProto* Arena::CreateMaybeMessage<::opencv_onnx::TypeProto>(Arena*);
|
|
|
|
template<> ::opencv_onnx::TypeProto_Tensor* Arena::CreateMaybeMessage<::opencv_onnx::TypeProto_Tensor>(Arena*);
|
|
|
|
template<> ::opencv_onnx::ValueInfoProto* Arena::CreateMaybeMessage<::opencv_onnx::ValueInfoProto>(Arena*);
|
|
|
|
PROTOBUF_NAMESPACE_CLOSE
|
2018-09-11 02:07:51 +08:00
|
|
|
namespace opencv_onnx {
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
enum AttributeProto_AttributeType : int {
|
2018-09-11 02:07:51 +08:00
|
|
|
AttributeProto_AttributeType_UNDEFINED = 0,
|
|
|
|
AttributeProto_AttributeType_FLOAT = 1,
|
|
|
|
AttributeProto_AttributeType_INT = 2,
|
|
|
|
AttributeProto_AttributeType_STRING = 3,
|
|
|
|
AttributeProto_AttributeType_TENSOR = 4,
|
|
|
|
AttributeProto_AttributeType_GRAPH = 5,
|
|
|
|
AttributeProto_AttributeType_FLOATS = 6,
|
|
|
|
AttributeProto_AttributeType_INTS = 7,
|
|
|
|
AttributeProto_AttributeType_STRINGS = 8,
|
|
|
|
AttributeProto_AttributeType_TENSORS = 9,
|
|
|
|
AttributeProto_AttributeType_GRAPHS = 10
|
|
|
|
};
|
|
|
|
bool AttributeProto_AttributeType_IsValid(int value);
|
2021-11-10 20:03:45 +08:00
|
|
|
constexpr AttributeProto_AttributeType AttributeProto_AttributeType_AttributeType_MIN = AttributeProto_AttributeType_UNDEFINED;
|
|
|
|
constexpr AttributeProto_AttributeType AttributeProto_AttributeType_AttributeType_MAX = AttributeProto_AttributeType_GRAPHS;
|
|
|
|
constexpr int AttributeProto_AttributeType_AttributeType_ARRAYSIZE = AttributeProto_AttributeType_AttributeType_MAX + 1;
|
|
|
|
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* AttributeProto_AttributeType_descriptor();
|
|
|
|
template<typename T>
|
|
|
|
inline const std::string& AttributeProto_AttributeType_Name(T enum_t_value) {
|
|
|
|
static_assert(::std::is_same<T, AttributeProto_AttributeType>::value ||
|
|
|
|
::std::is_integral<T>::value,
|
|
|
|
"Incorrect type passed to function AttributeProto_AttributeType_Name.");
|
|
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
|
|
|
|
AttributeProto_AttributeType_descriptor(), enum_t_value);
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline bool AttributeProto_AttributeType_Parse(
|
2021-11-10 20:03:45 +08:00
|
|
|
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AttributeProto_AttributeType* value) {
|
|
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<AttributeProto_AttributeType>(
|
2018-09-11 02:07:51 +08:00
|
|
|
AttributeProto_AttributeType_descriptor(), name, value);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
enum TensorProto_DataType : int {
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto_DataType_UNDEFINED = 0,
|
|
|
|
TensorProto_DataType_FLOAT = 1,
|
|
|
|
TensorProto_DataType_UINT8 = 2,
|
|
|
|
TensorProto_DataType_INT8 = 3,
|
|
|
|
TensorProto_DataType_UINT16 = 4,
|
|
|
|
TensorProto_DataType_INT16 = 5,
|
|
|
|
TensorProto_DataType_INT32 = 6,
|
|
|
|
TensorProto_DataType_INT64 = 7,
|
|
|
|
TensorProto_DataType_STRING = 8,
|
|
|
|
TensorProto_DataType_BOOL = 9,
|
|
|
|
TensorProto_DataType_FLOAT16 = 10,
|
|
|
|
TensorProto_DataType_DOUBLE = 11,
|
|
|
|
TensorProto_DataType_UINT32 = 12,
|
|
|
|
TensorProto_DataType_UINT64 = 13,
|
|
|
|
TensorProto_DataType_COMPLEX64 = 14,
|
|
|
|
TensorProto_DataType_COMPLEX128 = 15
|
|
|
|
};
|
|
|
|
bool TensorProto_DataType_IsValid(int value);
|
2021-11-10 20:03:45 +08:00
|
|
|
constexpr TensorProto_DataType TensorProto_DataType_DataType_MIN = TensorProto_DataType_UNDEFINED;
|
|
|
|
constexpr TensorProto_DataType TensorProto_DataType_DataType_MAX = TensorProto_DataType_COMPLEX128;
|
|
|
|
constexpr int TensorProto_DataType_DataType_ARRAYSIZE = TensorProto_DataType_DataType_MAX + 1;
|
|
|
|
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* TensorProto_DataType_descriptor();
|
|
|
|
template<typename T>
|
|
|
|
inline const std::string& TensorProto_DataType_Name(T enum_t_value) {
|
|
|
|
static_assert(::std::is_same<T, TensorProto_DataType>::value ||
|
|
|
|
::std::is_integral<T>::value,
|
|
|
|
"Incorrect type passed to function TensorProto_DataType_Name.");
|
|
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
|
|
|
|
TensorProto_DataType_descriptor(), enum_t_value);
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline bool TensorProto_DataType_Parse(
|
2021-11-10 20:03:45 +08:00
|
|
|
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, TensorProto_DataType* value) {
|
|
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<TensorProto_DataType>(
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto_DataType_descriptor(), name, value);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
enum Version : int {
|
2018-09-11 02:07:51 +08:00
|
|
|
_START_VERSION = 0,
|
|
|
|
IR_VERSION_2017_10_10 = 1,
|
|
|
|
IR_VERSION_2017_10_30 = 2,
|
|
|
|
IR_VERSION = 3
|
|
|
|
};
|
|
|
|
bool Version_IsValid(int value);
|
2021-11-10 20:03:45 +08:00
|
|
|
constexpr Version Version_MIN = _START_VERSION;
|
|
|
|
constexpr Version Version_MAX = IR_VERSION;
|
|
|
|
constexpr int Version_ARRAYSIZE = Version_MAX + 1;
|
|
|
|
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Version_descriptor();
|
|
|
|
template<typename T>
|
|
|
|
inline const std::string& Version_Name(T enum_t_value) {
|
|
|
|
static_assert(::std::is_same<T, Version>::value ||
|
|
|
|
::std::is_integral<T>::value,
|
|
|
|
"Incorrect type passed to function Version_Name.");
|
|
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
|
|
|
|
Version_descriptor(), enum_t_value);
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline bool Version_Parse(
|
2021-11-10 20:03:45 +08:00
|
|
|
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Version* value) {
|
|
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Version>(
|
2018-09-11 02:07:51 +08:00
|
|
|
Version_descriptor(), name, value);
|
|
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
class AttributeProto final :
|
|
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_onnx.AttributeProto) */ {
|
2018-09-11 02:07:51 +08:00
|
|
|
public:
|
2021-11-10 20:03:45 +08:00
|
|
|
inline AttributeProto() : AttributeProto(nullptr) {}
|
|
|
|
~AttributeProto() override;
|
|
|
|
explicit constexpr AttributeProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
AttributeProto(const AttributeProto& from);
|
|
|
|
AttributeProto(AttributeProto&& from) noexcept
|
|
|
|
: AttributeProto() {
|
|
|
|
*this = ::std::move(from);
|
|
|
|
}
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
inline AttributeProto& operator=(const AttributeProto& from) {
|
|
|
|
CopyFrom(from);
|
|
|
|
return *this;
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline AttributeProto& operator=(AttributeProto&& from) noexcept {
|
2021-11-10 20:03:45 +08:00
|
|
|
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);
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
|
|
|
CopyFrom(from);
|
|
|
|
}
|
|
|
|
return *this;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
|
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
|
|
|
|
return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
|
|
|
|
return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
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 AttributeProto& default_instance() {
|
|
|
|
return *internal_default_instance();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
static inline const AttributeProto* internal_default_instance() {
|
|
|
|
return reinterpret_cast<const AttributeProto*>(
|
|
|
|
&_AttributeProto_default_instance_);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr int kIndexInFileMessages =
|
2018-09-11 02:07:51 +08:00
|
|
|
0;
|
|
|
|
|
|
|
|
friend void swap(AttributeProto& a, AttributeProto& b) {
|
|
|
|
a.Swap(&b);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void Swap(AttributeProto* 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(AttributeProto* other) {
|
|
|
|
if (other == this) return;
|
|
|
|
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
|
|
|
InternalSwap(other);
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
AttributeProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
|
|
|
return CreateMaybeMessage<AttributeProto>(arena);
|
|
|
|
}
|
|
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
2018-09-11 02:07:51 +08:00
|
|
|
void CopyFrom(const AttributeProto& from);
|
2021-11-10 20:03:45 +08:00
|
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
2018-09-11 02:07:51 +08:00
|
|
|
void MergeFrom(const AttributeProto& from);
|
2021-11-10 20:03:45 +08:00
|
|
|
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(); }
|
|
|
|
|
2018-09-11 02:07:51 +08:00
|
|
|
private:
|
|
|
|
void SharedCtor();
|
|
|
|
void SharedDtor();
|
2021-11-10 20:03:45 +08:00
|
|
|
void SetCachedSize(int size) const final;
|
2018-09-11 02:07:51 +08:00
|
|
|
void InternalSwap(AttributeProto* other);
|
2021-11-10 20:03:45 +08:00
|
|
|
|
2018-09-11 02:07:51 +08:00
|
|
|
private:
|
2021-11-10 20:03:45 +08:00
|
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
|
|
return "opencv_onnx.AttributeProto";
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
protected:
|
|
|
|
explicit AttributeProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
|
|
|
bool is_message_owned = false);
|
|
|
|
private:
|
|
|
|
static void ArenaDtor(void* object);
|
|
|
|
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
2018-09-11 02:07:51 +08:00
|
|
|
public:
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
static const ClassData _class_data_;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
|
|
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
|
|
|
|
typedef AttributeProto_AttributeType AttributeType;
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr AttributeType UNDEFINED =
|
2018-09-11 02:07:51 +08:00
|
|
|
AttributeProto_AttributeType_UNDEFINED;
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr AttributeType FLOAT =
|
2018-09-11 02:07:51 +08:00
|
|
|
AttributeProto_AttributeType_FLOAT;
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr AttributeType INT =
|
2018-09-11 02:07:51 +08:00
|
|
|
AttributeProto_AttributeType_INT;
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr AttributeType STRING =
|
2018-09-11 02:07:51 +08:00
|
|
|
AttributeProto_AttributeType_STRING;
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr AttributeType TENSOR =
|
2018-09-11 02:07:51 +08:00
|
|
|
AttributeProto_AttributeType_TENSOR;
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr AttributeType GRAPH =
|
2018-09-11 02:07:51 +08:00
|
|
|
AttributeProto_AttributeType_GRAPH;
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr AttributeType FLOATS =
|
2018-09-11 02:07:51 +08:00
|
|
|
AttributeProto_AttributeType_FLOATS;
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr AttributeType INTS =
|
2018-09-11 02:07:51 +08:00
|
|
|
AttributeProto_AttributeType_INTS;
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr AttributeType STRINGS =
|
2018-09-11 02:07:51 +08:00
|
|
|
AttributeProto_AttributeType_STRINGS;
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr AttributeType TENSORS =
|
2018-09-11 02:07:51 +08:00
|
|
|
AttributeProto_AttributeType_TENSORS;
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr AttributeType GRAPHS =
|
2018-09-11 02:07:51 +08:00
|
|
|
AttributeProto_AttributeType_GRAPHS;
|
|
|
|
static inline bool AttributeType_IsValid(int value) {
|
|
|
|
return AttributeProto_AttributeType_IsValid(value);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr AttributeType AttributeType_MIN =
|
2018-09-11 02:07:51 +08:00
|
|
|
AttributeProto_AttributeType_AttributeType_MIN;
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr AttributeType AttributeType_MAX =
|
2018-09-11 02:07:51 +08:00
|
|
|
AttributeProto_AttributeType_AttributeType_MAX;
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr int AttributeType_ARRAYSIZE =
|
2018-09-11 02:07:51 +08:00
|
|
|
AttributeProto_AttributeType_AttributeType_ARRAYSIZE;
|
2021-11-10 20:03:45 +08:00
|
|
|
static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
|
2018-09-11 02:07:51 +08:00
|
|
|
AttributeType_descriptor() {
|
|
|
|
return AttributeProto_AttributeType_descriptor();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
template<typename T>
|
|
|
|
static inline const std::string& AttributeType_Name(T enum_t_value) {
|
|
|
|
static_assert(::std::is_same<T, AttributeType>::value ||
|
|
|
|
::std::is_integral<T>::value,
|
|
|
|
"Incorrect type passed to function AttributeType_Name.");
|
|
|
|
return AttributeProto_AttributeType_Name(enum_t_value);
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
static inline bool AttributeType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
|
2018-09-11 02:07:51 +08:00
|
|
|
AttributeType* value) {
|
|
|
|
return AttributeProto_AttributeType_Parse(name, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
enum : int {
|
|
|
|
kFloatsFieldNumber = 7,
|
|
|
|
kIntsFieldNumber = 8,
|
|
|
|
kStringsFieldNumber = 9,
|
|
|
|
kTensorsFieldNumber = 10,
|
|
|
|
kGraphsFieldNumber = 11,
|
|
|
|
kNameFieldNumber = 1,
|
|
|
|
kSFieldNumber = 4,
|
|
|
|
kDocStringFieldNumber = 13,
|
|
|
|
kRefAttrNameFieldNumber = 21,
|
|
|
|
kTFieldNumber = 5,
|
|
|
|
kGFieldNumber = 6,
|
|
|
|
kIFieldNumber = 3,
|
|
|
|
kFFieldNumber = 2,
|
|
|
|
kTypeFieldNumber = 20,
|
|
|
|
};
|
2018-09-11 02:07:51 +08:00
|
|
|
// repeated float floats = 7;
|
|
|
|
int floats_size() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
int _internal_floats_size() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_floats();
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
float _internal_floats(int index) const;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
|
|
|
|
_internal_floats() const;
|
|
|
|
void _internal_add_floats(float value);
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
|
|
|
|
_internal_mutable_floats();
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
float floats(int index) const;
|
|
|
|
void set_floats(int index, float value);
|
|
|
|
void add_floats(float value);
|
2021-11-10 20:03:45 +08:00
|
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
|
2018-09-11 02:07:51 +08:00
|
|
|
floats() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
|
2018-09-11 02:07:51 +08:00
|
|
|
mutable_floats();
|
|
|
|
|
|
|
|
// repeated int64 ints = 8;
|
|
|
|
int ints_size() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
int _internal_ints_size() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_ints();
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
int64_t _internal_ints(int index) const;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
|
|
|
|
_internal_ints() const;
|
|
|
|
void _internal_add_ints(int64_t value);
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
|
|
|
|
_internal_mutable_ints();
|
|
|
|
public:
|
|
|
|
int64_t ints(int index) const;
|
|
|
|
void set_ints(int index, int64_t value);
|
|
|
|
void add_ints(int64_t value);
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
|
2018-09-11 02:07:51 +08:00
|
|
|
ints() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
|
2018-09-11 02:07:51 +08:00
|
|
|
mutable_ints();
|
|
|
|
|
|
|
|
// repeated bytes strings = 9;
|
|
|
|
int strings_size() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
int _internal_strings_size() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_strings();
|
2021-11-10 20:03:45 +08:00
|
|
|
const std::string& strings(int index) const;
|
|
|
|
std::string* mutable_strings(int index);
|
|
|
|
void set_strings(int index, const std::string& value);
|
|
|
|
void set_strings(int index, std::string&& value);
|
2018-09-11 02:07:51 +08:00
|
|
|
void set_strings(int index, const char* value);
|
|
|
|
void set_strings(int index, const void* value, size_t size);
|
2021-11-10 20:03:45 +08:00
|
|
|
std::string* add_strings();
|
|
|
|
void add_strings(const std::string& value);
|
|
|
|
void add_strings(std::string&& value);
|
2018-09-11 02:07:51 +08:00
|
|
|
void add_strings(const char* value);
|
|
|
|
void add_strings(const void* value, size_t size);
|
2021-11-10 20:03:45 +08:00
|
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& strings() const;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_strings();
|
|
|
|
private:
|
|
|
|
const std::string& _internal_strings(int index) const;
|
|
|
|
std::string* _internal_add_strings();
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// repeated .opencv_onnx.TensorProto tensors = 10;
|
|
|
|
int tensors_size() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
int _internal_tensors_size() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_tensors();
|
|
|
|
::opencv_onnx::TensorProto* mutable_tensors(int index);
|
2021-11-10 20:03:45 +08:00
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::TensorProto >*
|
2018-09-11 02:07:51 +08:00
|
|
|
mutable_tensors();
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
const ::opencv_onnx::TensorProto& _internal_tensors(int index) const;
|
|
|
|
::opencv_onnx::TensorProto* _internal_add_tensors();
|
|
|
|
public:
|
|
|
|
const ::opencv_onnx::TensorProto& tensors(int index) const;
|
|
|
|
::opencv_onnx::TensorProto* add_tensors();
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::TensorProto >&
|
2018-09-11 02:07:51 +08:00
|
|
|
tensors() const;
|
|
|
|
|
|
|
|
// repeated .opencv_onnx.GraphProto graphs = 11;
|
|
|
|
int graphs_size() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
int _internal_graphs_size() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_graphs();
|
|
|
|
::opencv_onnx::GraphProto* mutable_graphs(int index);
|
2021-11-10 20:03:45 +08:00
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::GraphProto >*
|
2018-09-11 02:07:51 +08:00
|
|
|
mutable_graphs();
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
const ::opencv_onnx::GraphProto& _internal_graphs(int index) const;
|
|
|
|
::opencv_onnx::GraphProto* _internal_add_graphs();
|
|
|
|
public:
|
|
|
|
const ::opencv_onnx::GraphProto& graphs(int index) const;
|
|
|
|
::opencv_onnx::GraphProto* add_graphs();
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::GraphProto >&
|
2018-09-11 02:07:51 +08:00
|
|
|
graphs() const;
|
|
|
|
|
|
|
|
// optional string name = 1;
|
|
|
|
bool has_name() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_name() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_name();
|
2021-11-10 20:03:45 +08:00
|
|
|
const std::string& name() const;
|
|
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
|
|
void set_name(ArgT0&& arg0, ArgT... args);
|
|
|
|
std::string* mutable_name();
|
|
|
|
PROTOBUF_NODISCARD std::string* release_name();
|
|
|
|
void set_allocated_name(std::string* name);
|
|
|
|
private:
|
|
|
|
const std::string& _internal_name() const;
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
|
|
|
|
std::string* _internal_mutable_name();
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// optional bytes s = 4;
|
|
|
|
bool has_s() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_s() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_s();
|
2021-11-10 20:03:45 +08:00
|
|
|
const std::string& s() const;
|
|
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
|
|
void set_s(ArgT0&& arg0, ArgT... args);
|
|
|
|
std::string* mutable_s();
|
|
|
|
PROTOBUF_NODISCARD std::string* release_s();
|
|
|
|
void set_allocated_s(std::string* s);
|
|
|
|
private:
|
|
|
|
const std::string& _internal_s() const;
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_s(const std::string& value);
|
|
|
|
std::string* _internal_mutable_s();
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// optional string doc_string = 13;
|
|
|
|
bool has_doc_string() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_doc_string() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_doc_string();
|
2021-11-10 20:03:45 +08:00
|
|
|
const std::string& doc_string() const;
|
|
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
|
|
void set_doc_string(ArgT0&& arg0, ArgT... args);
|
|
|
|
std::string* mutable_doc_string();
|
|
|
|
PROTOBUF_NODISCARD std::string* release_doc_string();
|
|
|
|
void set_allocated_doc_string(std::string* doc_string);
|
|
|
|
private:
|
|
|
|
const std::string& _internal_doc_string() const;
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_doc_string(const std::string& value);
|
|
|
|
std::string* _internal_mutable_doc_string();
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// optional string ref_attr_name = 21;
|
|
|
|
bool has_ref_attr_name() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_ref_attr_name() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_ref_attr_name();
|
2021-11-10 20:03:45 +08:00
|
|
|
const std::string& ref_attr_name() const;
|
|
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
|
|
void set_ref_attr_name(ArgT0&& arg0, ArgT... args);
|
|
|
|
std::string* mutable_ref_attr_name();
|
|
|
|
PROTOBUF_NODISCARD std::string* release_ref_attr_name();
|
|
|
|
void set_allocated_ref_attr_name(std::string* ref_attr_name);
|
|
|
|
private:
|
|
|
|
const std::string& _internal_ref_attr_name() const;
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_ref_attr_name(const std::string& value);
|
|
|
|
std::string* _internal_mutable_ref_attr_name();
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// optional .opencv_onnx.TensorProto t = 5;
|
|
|
|
bool has_t() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_t() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_t();
|
|
|
|
const ::opencv_onnx::TensorProto& t() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
PROTOBUF_NODISCARD ::opencv_onnx::TensorProto* release_t();
|
2018-09-11 02:07:51 +08:00
|
|
|
::opencv_onnx::TensorProto* mutable_t();
|
|
|
|
void set_allocated_t(::opencv_onnx::TensorProto* t);
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
const ::opencv_onnx::TensorProto& _internal_t() const;
|
|
|
|
::opencv_onnx::TensorProto* _internal_mutable_t();
|
|
|
|
public:
|
|
|
|
void unsafe_arena_set_allocated_t(
|
|
|
|
::opencv_onnx::TensorProto* t);
|
|
|
|
::opencv_onnx::TensorProto* unsafe_arena_release_t();
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// optional .opencv_onnx.GraphProto g = 6;
|
|
|
|
bool has_g() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_g() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_g();
|
|
|
|
const ::opencv_onnx::GraphProto& g() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
PROTOBUF_NODISCARD ::opencv_onnx::GraphProto* release_g();
|
2018-09-11 02:07:51 +08:00
|
|
|
::opencv_onnx::GraphProto* mutable_g();
|
|
|
|
void set_allocated_g(::opencv_onnx::GraphProto* g);
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
const ::opencv_onnx::GraphProto& _internal_g() const;
|
|
|
|
::opencv_onnx::GraphProto* _internal_mutable_g();
|
|
|
|
public:
|
|
|
|
void unsafe_arena_set_allocated_g(
|
|
|
|
::opencv_onnx::GraphProto* g);
|
|
|
|
::opencv_onnx::GraphProto* unsafe_arena_release_g();
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// optional int64 i = 3;
|
|
|
|
bool has_i() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_i() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_i();
|
2021-11-10 20:03:45 +08:00
|
|
|
int64_t i() const;
|
|
|
|
void set_i(int64_t value);
|
|
|
|
private:
|
|
|
|
int64_t _internal_i() const;
|
|
|
|
void _internal_set_i(int64_t value);
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// optional float f = 2;
|
|
|
|
bool has_f() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_f() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_f();
|
|
|
|
float f() const;
|
|
|
|
void set_f(float value);
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
float _internal_f() const;
|
|
|
|
void _internal_set_f(float value);
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// optional .opencv_onnx.AttributeProto.AttributeType type = 20;
|
|
|
|
bool has_type() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_type() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_type();
|
|
|
|
::opencv_onnx::AttributeProto_AttributeType type() const;
|
|
|
|
void set_type(::opencv_onnx::AttributeProto_AttributeType value);
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
::opencv_onnx::AttributeProto_AttributeType _internal_type() const;
|
|
|
|
void _internal_set_type(::opencv_onnx::AttributeProto_AttributeType value);
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// @@protoc_insertion_point(class_scope:opencv_onnx.AttributeProto)
|
|
|
|
private:
|
2021-11-10 20:03:45 +08:00
|
|
|
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_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedField< float > floats_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t > ints_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> strings_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::TensorProto > tensors_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::GraphProto > graphs_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr s_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr doc_string_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ref_attr_name_;
|
2018-09-11 02:07:51 +08:00
|
|
|
::opencv_onnx::TensorProto* t_;
|
|
|
|
::opencv_onnx::GraphProto* g_;
|
2021-11-10 20:03:45 +08:00
|
|
|
int64_t i_;
|
2018-09-11 02:07:51 +08:00
|
|
|
float f_;
|
|
|
|
int type_;
|
2021-11-10 20:03:45 +08:00
|
|
|
friend struct ::TableStruct_opencv_2donnx_2eproto;
|
2018-09-11 02:07:51 +08:00
|
|
|
};
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
class ValueInfoProto final :
|
|
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_onnx.ValueInfoProto) */ {
|
2018-09-11 02:07:51 +08:00
|
|
|
public:
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ValueInfoProto() : ValueInfoProto(nullptr) {}
|
|
|
|
~ValueInfoProto() override;
|
|
|
|
explicit constexpr ValueInfoProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
ValueInfoProto(const ValueInfoProto& from);
|
|
|
|
ValueInfoProto(ValueInfoProto&& from) noexcept
|
|
|
|
: ValueInfoProto() {
|
|
|
|
*this = ::std::move(from);
|
|
|
|
}
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ValueInfoProto& operator=(const ValueInfoProto& from) {
|
|
|
|
CopyFrom(from);
|
|
|
|
return *this;
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline ValueInfoProto& operator=(ValueInfoProto&& from) noexcept {
|
2021-11-10 20:03:45 +08:00
|
|
|
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);
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
|
|
|
CopyFrom(from);
|
|
|
|
}
|
|
|
|
return *this;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
|
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
|
|
|
|
return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
|
|
|
|
return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
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 ValueInfoProto& default_instance() {
|
|
|
|
return *internal_default_instance();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
static inline const ValueInfoProto* internal_default_instance() {
|
|
|
|
return reinterpret_cast<const ValueInfoProto*>(
|
|
|
|
&_ValueInfoProto_default_instance_);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr int kIndexInFileMessages =
|
2018-09-11 02:07:51 +08:00
|
|
|
1;
|
|
|
|
|
|
|
|
friend void swap(ValueInfoProto& a, ValueInfoProto& b) {
|
|
|
|
a.Swap(&b);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void Swap(ValueInfoProto* 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(ValueInfoProto* other) {
|
|
|
|
if (other == this) return;
|
|
|
|
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
|
|
|
InternalSwap(other);
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
ValueInfoProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
|
|
|
return CreateMaybeMessage<ValueInfoProto>(arena);
|
|
|
|
}
|
|
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
2018-09-11 02:07:51 +08:00
|
|
|
void CopyFrom(const ValueInfoProto& from);
|
2021-11-10 20:03:45 +08:00
|
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
2018-09-11 02:07:51 +08:00
|
|
|
void MergeFrom(const ValueInfoProto& from);
|
2021-11-10 20:03:45 +08:00
|
|
|
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(); }
|
|
|
|
|
2018-09-11 02:07:51 +08:00
|
|
|
private:
|
|
|
|
void SharedCtor();
|
|
|
|
void SharedDtor();
|
2021-11-10 20:03:45 +08:00
|
|
|
void SetCachedSize(int size) const final;
|
2018-09-11 02:07:51 +08:00
|
|
|
void InternalSwap(ValueInfoProto* other);
|
2021-11-10 20:03:45 +08:00
|
|
|
|
2018-09-11 02:07:51 +08:00
|
|
|
private:
|
2021-11-10 20:03:45 +08:00
|
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
|
|
return "opencv_onnx.ValueInfoProto";
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
protected:
|
|
|
|
explicit ValueInfoProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
|
|
|
bool is_message_owned = false);
|
|
|
|
private:
|
|
|
|
static void ArenaDtor(void* object);
|
|
|
|
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
2018-09-11 02:07:51 +08:00
|
|
|
public:
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
static const ClassData _class_data_;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
|
|
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
enum : int {
|
|
|
|
kNameFieldNumber = 1,
|
|
|
|
kDocStringFieldNumber = 3,
|
|
|
|
kTypeFieldNumber = 2,
|
|
|
|
};
|
2018-09-11 02:07:51 +08:00
|
|
|
// optional string name = 1;
|
|
|
|
bool has_name() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_name() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_name();
|
2021-11-10 20:03:45 +08:00
|
|
|
const std::string& name() const;
|
|
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
|
|
void set_name(ArgT0&& arg0, ArgT... args);
|
|
|
|
std::string* mutable_name();
|
|
|
|
PROTOBUF_NODISCARD std::string* release_name();
|
|
|
|
void set_allocated_name(std::string* name);
|
|
|
|
private:
|
|
|
|
const std::string& _internal_name() const;
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
|
|
|
|
std::string* _internal_mutable_name();
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// optional string doc_string = 3;
|
|
|
|
bool has_doc_string() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_doc_string() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_doc_string();
|
2021-11-10 20:03:45 +08:00
|
|
|
const std::string& doc_string() const;
|
|
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
|
|
void set_doc_string(ArgT0&& arg0, ArgT... args);
|
|
|
|
std::string* mutable_doc_string();
|
|
|
|
PROTOBUF_NODISCARD std::string* release_doc_string();
|
|
|
|
void set_allocated_doc_string(std::string* doc_string);
|
|
|
|
private:
|
|
|
|
const std::string& _internal_doc_string() const;
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_doc_string(const std::string& value);
|
|
|
|
std::string* _internal_mutable_doc_string();
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// optional .opencv_onnx.TypeProto type = 2;
|
|
|
|
bool has_type() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_type() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_type();
|
|
|
|
const ::opencv_onnx::TypeProto& type() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
PROTOBUF_NODISCARD ::opencv_onnx::TypeProto* release_type();
|
2018-09-11 02:07:51 +08:00
|
|
|
::opencv_onnx::TypeProto* mutable_type();
|
|
|
|
void set_allocated_type(::opencv_onnx::TypeProto* type);
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
const ::opencv_onnx::TypeProto& _internal_type() const;
|
|
|
|
::opencv_onnx::TypeProto* _internal_mutable_type();
|
|
|
|
public:
|
|
|
|
void unsafe_arena_set_allocated_type(
|
|
|
|
::opencv_onnx::TypeProto* type);
|
|
|
|
::opencv_onnx::TypeProto* unsafe_arena_release_type();
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// @@protoc_insertion_point(class_scope:opencv_onnx.ValueInfoProto)
|
|
|
|
private:
|
2021-11-10 20:03:45 +08:00
|
|
|
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_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr doc_string_;
|
2018-09-11 02:07:51 +08:00
|
|
|
::opencv_onnx::TypeProto* type_;
|
2021-11-10 20:03:45 +08:00
|
|
|
friend struct ::TableStruct_opencv_2donnx_2eproto;
|
2018-09-11 02:07:51 +08:00
|
|
|
};
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
class NodeProto final :
|
|
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_onnx.NodeProto) */ {
|
2018-09-11 02:07:51 +08:00
|
|
|
public:
|
2021-11-10 20:03:45 +08:00
|
|
|
inline NodeProto() : NodeProto(nullptr) {}
|
|
|
|
~NodeProto() override;
|
|
|
|
explicit constexpr NodeProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
NodeProto(const NodeProto& from);
|
|
|
|
NodeProto(NodeProto&& from) noexcept
|
|
|
|
: NodeProto() {
|
|
|
|
*this = ::std::move(from);
|
|
|
|
}
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
inline NodeProto& operator=(const NodeProto& from) {
|
|
|
|
CopyFrom(from);
|
|
|
|
return *this;
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline NodeProto& operator=(NodeProto&& from) noexcept {
|
2021-11-10 20:03:45 +08:00
|
|
|
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);
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
|
|
|
CopyFrom(from);
|
|
|
|
}
|
|
|
|
return *this;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
|
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
|
|
|
|
return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
|
|
|
|
return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
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 NodeProto& default_instance() {
|
|
|
|
return *internal_default_instance();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
static inline const NodeProto* internal_default_instance() {
|
|
|
|
return reinterpret_cast<const NodeProto*>(
|
|
|
|
&_NodeProto_default_instance_);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr int kIndexInFileMessages =
|
2018-09-11 02:07:51 +08:00
|
|
|
2;
|
|
|
|
|
|
|
|
friend void swap(NodeProto& a, NodeProto& b) {
|
|
|
|
a.Swap(&b);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void Swap(NodeProto* 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(NodeProto* other) {
|
|
|
|
if (other == this) return;
|
|
|
|
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
|
|
|
InternalSwap(other);
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
NodeProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
|
|
|
return CreateMaybeMessage<NodeProto>(arena);
|
|
|
|
}
|
|
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
2018-09-11 02:07:51 +08:00
|
|
|
void CopyFrom(const NodeProto& from);
|
2021-11-10 20:03:45 +08:00
|
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
2018-09-11 02:07:51 +08:00
|
|
|
void MergeFrom(const NodeProto& from);
|
2021-11-10 20:03:45 +08:00
|
|
|
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(); }
|
|
|
|
|
2018-09-11 02:07:51 +08:00
|
|
|
private:
|
|
|
|
void SharedCtor();
|
|
|
|
void SharedDtor();
|
2021-11-10 20:03:45 +08:00
|
|
|
void SetCachedSize(int size) const final;
|
2018-09-11 02:07:51 +08:00
|
|
|
void InternalSwap(NodeProto* other);
|
2021-11-10 20:03:45 +08:00
|
|
|
|
2018-09-11 02:07:51 +08:00
|
|
|
private:
|
2021-11-10 20:03:45 +08:00
|
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
|
|
return "opencv_onnx.NodeProto";
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
protected:
|
|
|
|
explicit NodeProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
|
|
|
bool is_message_owned = false);
|
|
|
|
private:
|
|
|
|
static void ArenaDtor(void* object);
|
|
|
|
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
2018-09-11 02:07:51 +08:00
|
|
|
public:
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
static const ClassData _class_data_;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
|
|
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
enum : int {
|
|
|
|
kInputFieldNumber = 1,
|
|
|
|
kOutputFieldNumber = 2,
|
|
|
|
kAttributeFieldNumber = 5,
|
|
|
|
kNameFieldNumber = 3,
|
|
|
|
kOpTypeFieldNumber = 4,
|
|
|
|
kDocStringFieldNumber = 6,
|
|
|
|
kDomainFieldNumber = 7,
|
|
|
|
};
|
2018-09-11 02:07:51 +08:00
|
|
|
// repeated string input = 1;
|
|
|
|
int input_size() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
int _internal_input_size() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_input();
|
2021-11-10 20:03:45 +08:00
|
|
|
const std::string& input(int index) const;
|
|
|
|
std::string* mutable_input(int index);
|
|
|
|
void set_input(int index, const std::string& value);
|
|
|
|
void set_input(int index, std::string&& value);
|
2018-09-11 02:07:51 +08:00
|
|
|
void set_input(int index, const char* value);
|
|
|
|
void set_input(int index, const char* value, size_t size);
|
2021-11-10 20:03:45 +08:00
|
|
|
std::string* add_input();
|
|
|
|
void add_input(const std::string& value);
|
|
|
|
void add_input(std::string&& value);
|
2018-09-11 02:07:51 +08:00
|
|
|
void add_input(const char* value);
|
|
|
|
void add_input(const char* value, size_t size);
|
2021-11-10 20:03:45 +08:00
|
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& input() const;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_input();
|
|
|
|
private:
|
|
|
|
const std::string& _internal_input(int index) const;
|
|
|
|
std::string* _internal_add_input();
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// repeated string output = 2;
|
|
|
|
int output_size() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
int _internal_output_size() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_output();
|
2021-11-10 20:03:45 +08:00
|
|
|
const std::string& output(int index) const;
|
|
|
|
std::string* mutable_output(int index);
|
|
|
|
void set_output(int index, const std::string& value);
|
|
|
|
void set_output(int index, std::string&& value);
|
2018-09-11 02:07:51 +08:00
|
|
|
void set_output(int index, const char* value);
|
|
|
|
void set_output(int index, const char* value, size_t size);
|
2021-11-10 20:03:45 +08:00
|
|
|
std::string* add_output();
|
|
|
|
void add_output(const std::string& value);
|
|
|
|
void add_output(std::string&& value);
|
2018-09-11 02:07:51 +08:00
|
|
|
void add_output(const char* value);
|
|
|
|
void add_output(const char* value, size_t size);
|
2021-11-10 20:03:45 +08:00
|
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& output() const;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_output();
|
|
|
|
private:
|
|
|
|
const std::string& _internal_output(int index) const;
|
|
|
|
std::string* _internal_add_output();
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// repeated .opencv_onnx.AttributeProto attribute = 5;
|
|
|
|
int attribute_size() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
int _internal_attribute_size() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_attribute();
|
|
|
|
::opencv_onnx::AttributeProto* mutable_attribute(int index);
|
2021-11-10 20:03:45 +08:00
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::AttributeProto >*
|
2018-09-11 02:07:51 +08:00
|
|
|
mutable_attribute();
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
const ::opencv_onnx::AttributeProto& _internal_attribute(int index) const;
|
|
|
|
::opencv_onnx::AttributeProto* _internal_add_attribute();
|
|
|
|
public:
|
|
|
|
const ::opencv_onnx::AttributeProto& attribute(int index) const;
|
|
|
|
::opencv_onnx::AttributeProto* add_attribute();
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::AttributeProto >&
|
2018-09-11 02:07:51 +08:00
|
|
|
attribute() const;
|
|
|
|
|
|
|
|
// optional string name = 3;
|
|
|
|
bool has_name() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_name() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_name();
|
2021-11-10 20:03:45 +08:00
|
|
|
const std::string& name() const;
|
|
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
|
|
void set_name(ArgT0&& arg0, ArgT... args);
|
|
|
|
std::string* mutable_name();
|
|
|
|
PROTOBUF_NODISCARD std::string* release_name();
|
|
|
|
void set_allocated_name(std::string* name);
|
|
|
|
private:
|
|
|
|
const std::string& _internal_name() const;
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
|
|
|
|
std::string* _internal_mutable_name();
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// optional string op_type = 4;
|
|
|
|
bool has_op_type() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_op_type() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_op_type();
|
2021-11-10 20:03:45 +08:00
|
|
|
const std::string& op_type() const;
|
|
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
|
|
void set_op_type(ArgT0&& arg0, ArgT... args);
|
|
|
|
std::string* mutable_op_type();
|
|
|
|
PROTOBUF_NODISCARD std::string* release_op_type();
|
|
|
|
void set_allocated_op_type(std::string* op_type);
|
|
|
|
private:
|
|
|
|
const std::string& _internal_op_type() const;
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_op_type(const std::string& value);
|
|
|
|
std::string* _internal_mutable_op_type();
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// optional string doc_string = 6;
|
|
|
|
bool has_doc_string() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_doc_string() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_doc_string();
|
2021-11-10 20:03:45 +08:00
|
|
|
const std::string& doc_string() const;
|
|
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
|
|
void set_doc_string(ArgT0&& arg0, ArgT... args);
|
|
|
|
std::string* mutable_doc_string();
|
|
|
|
PROTOBUF_NODISCARD std::string* release_doc_string();
|
|
|
|
void set_allocated_doc_string(std::string* doc_string);
|
|
|
|
private:
|
|
|
|
const std::string& _internal_doc_string() const;
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_doc_string(const std::string& value);
|
|
|
|
std::string* _internal_mutable_doc_string();
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// optional string domain = 7;
|
|
|
|
bool has_domain() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_domain() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_domain();
|
2021-11-10 20:03:45 +08:00
|
|
|
const std::string& domain() const;
|
|
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
|
|
void set_domain(ArgT0&& arg0, ArgT... args);
|
|
|
|
std::string* mutable_domain();
|
|
|
|
PROTOBUF_NODISCARD std::string* release_domain();
|
|
|
|
void set_allocated_domain(std::string* domain);
|
|
|
|
private:
|
|
|
|
const std::string& _internal_domain() const;
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_domain(const std::string& value);
|
|
|
|
std::string* _internal_mutable_domain();
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// @@protoc_insertion_point(class_scope:opencv_onnx.NodeProto)
|
|
|
|
private:
|
2021-11-10 20:03:45 +08:00
|
|
|
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_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> input_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> output_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::AttributeProto > attribute_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr op_type_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr doc_string_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr domain_;
|
|
|
|
friend struct ::TableStruct_opencv_2donnx_2eproto;
|
2018-09-11 02:07:51 +08:00
|
|
|
};
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
class ModelProto final :
|
|
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_onnx.ModelProto) */ {
|
2018-09-11 02:07:51 +08:00
|
|
|
public:
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ModelProto() : ModelProto(nullptr) {}
|
|
|
|
~ModelProto() override;
|
|
|
|
explicit constexpr ModelProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
ModelProto(const ModelProto& from);
|
|
|
|
ModelProto(ModelProto&& from) noexcept
|
|
|
|
: ModelProto() {
|
|
|
|
*this = ::std::move(from);
|
|
|
|
}
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ModelProto& operator=(const ModelProto& from) {
|
|
|
|
CopyFrom(from);
|
|
|
|
return *this;
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline ModelProto& operator=(ModelProto&& from) noexcept {
|
2021-11-10 20:03:45 +08:00
|
|
|
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);
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
|
|
|
CopyFrom(from);
|
|
|
|
}
|
|
|
|
return *this;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
|
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
|
|
|
|
return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
|
|
|
|
return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
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 ModelProto& default_instance() {
|
|
|
|
return *internal_default_instance();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
static inline const ModelProto* internal_default_instance() {
|
|
|
|
return reinterpret_cast<const ModelProto*>(
|
|
|
|
&_ModelProto_default_instance_);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr int kIndexInFileMessages =
|
2018-09-11 02:07:51 +08:00
|
|
|
3;
|
|
|
|
|
|
|
|
friend void swap(ModelProto& a, ModelProto& b) {
|
|
|
|
a.Swap(&b);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void Swap(ModelProto* 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(ModelProto* other) {
|
|
|
|
if (other == this) return;
|
|
|
|
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
|
|
|
InternalSwap(other);
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
ModelProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
|
|
|
return CreateMaybeMessage<ModelProto>(arena);
|
|
|
|
}
|
|
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
2018-09-11 02:07:51 +08:00
|
|
|
void CopyFrom(const ModelProto& from);
|
2021-11-10 20:03:45 +08:00
|
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
2018-09-11 02:07:51 +08:00
|
|
|
void MergeFrom(const ModelProto& from);
|
2021-11-10 20:03:45 +08:00
|
|
|
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(); }
|
|
|
|
|
2018-09-11 02:07:51 +08:00
|
|
|
private:
|
|
|
|
void SharedCtor();
|
|
|
|
void SharedDtor();
|
2021-11-10 20:03:45 +08:00
|
|
|
void SetCachedSize(int size) const final;
|
2018-09-11 02:07:51 +08:00
|
|
|
void InternalSwap(ModelProto* other);
|
2021-11-10 20:03:45 +08:00
|
|
|
|
2018-09-11 02:07:51 +08:00
|
|
|
private:
|
2021-11-10 20:03:45 +08:00
|
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
|
|
return "opencv_onnx.ModelProto";
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
protected:
|
|
|
|
explicit ModelProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
|
|
|
bool is_message_owned = false);
|
|
|
|
private:
|
|
|
|
static void ArenaDtor(void* object);
|
|
|
|
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
2018-09-11 02:07:51 +08:00
|
|
|
public:
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
static const ClassData _class_data_;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
|
|
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
enum : int {
|
|
|
|
kOpsetImportFieldNumber = 8,
|
|
|
|
kMetadataPropsFieldNumber = 14,
|
|
|
|
kProducerNameFieldNumber = 2,
|
|
|
|
kProducerVersionFieldNumber = 3,
|
|
|
|
kDomainFieldNumber = 4,
|
|
|
|
kDocStringFieldNumber = 6,
|
|
|
|
kGraphFieldNumber = 7,
|
|
|
|
kIrVersionFieldNumber = 1,
|
|
|
|
kModelVersionFieldNumber = 5,
|
|
|
|
};
|
2018-09-11 02:07:51 +08:00
|
|
|
// repeated .opencv_onnx.OperatorSetIdProto opset_import = 8;
|
|
|
|
int opset_import_size() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
int _internal_opset_import_size() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_opset_import();
|
|
|
|
::opencv_onnx::OperatorSetIdProto* mutable_opset_import(int index);
|
2021-11-10 20:03:45 +08:00
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::OperatorSetIdProto >*
|
2018-09-11 02:07:51 +08:00
|
|
|
mutable_opset_import();
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
const ::opencv_onnx::OperatorSetIdProto& _internal_opset_import(int index) const;
|
|
|
|
::opencv_onnx::OperatorSetIdProto* _internal_add_opset_import();
|
|
|
|
public:
|
|
|
|
const ::opencv_onnx::OperatorSetIdProto& opset_import(int index) const;
|
|
|
|
::opencv_onnx::OperatorSetIdProto* add_opset_import();
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::OperatorSetIdProto >&
|
2018-09-11 02:07:51 +08:00
|
|
|
opset_import() const;
|
|
|
|
|
|
|
|
// repeated .opencv_onnx.StringStringEntryProto metadata_props = 14;
|
|
|
|
int metadata_props_size() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
int _internal_metadata_props_size() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_metadata_props();
|
|
|
|
::opencv_onnx::StringStringEntryProto* mutable_metadata_props(int index);
|
2021-11-10 20:03:45 +08:00
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::StringStringEntryProto >*
|
2018-09-11 02:07:51 +08:00
|
|
|
mutable_metadata_props();
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
const ::opencv_onnx::StringStringEntryProto& _internal_metadata_props(int index) const;
|
|
|
|
::opencv_onnx::StringStringEntryProto* _internal_add_metadata_props();
|
|
|
|
public:
|
|
|
|
const ::opencv_onnx::StringStringEntryProto& metadata_props(int index) const;
|
|
|
|
::opencv_onnx::StringStringEntryProto* add_metadata_props();
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::StringStringEntryProto >&
|
2018-09-11 02:07:51 +08:00
|
|
|
metadata_props() const;
|
|
|
|
|
|
|
|
// optional string producer_name = 2;
|
|
|
|
bool has_producer_name() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_producer_name() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_producer_name();
|
2021-11-10 20:03:45 +08:00
|
|
|
const std::string& producer_name() const;
|
|
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
|
|
void set_producer_name(ArgT0&& arg0, ArgT... args);
|
|
|
|
std::string* mutable_producer_name();
|
|
|
|
PROTOBUF_NODISCARD std::string* release_producer_name();
|
|
|
|
void set_allocated_producer_name(std::string* producer_name);
|
|
|
|
private:
|
|
|
|
const std::string& _internal_producer_name() const;
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_producer_name(const std::string& value);
|
|
|
|
std::string* _internal_mutable_producer_name();
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// optional string producer_version = 3;
|
|
|
|
bool has_producer_version() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_producer_version() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_producer_version();
|
2021-11-10 20:03:45 +08:00
|
|
|
const std::string& producer_version() const;
|
|
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
|
|
void set_producer_version(ArgT0&& arg0, ArgT... args);
|
|
|
|
std::string* mutable_producer_version();
|
|
|
|
PROTOBUF_NODISCARD std::string* release_producer_version();
|
|
|
|
void set_allocated_producer_version(std::string* producer_version);
|
|
|
|
private:
|
|
|
|
const std::string& _internal_producer_version() const;
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_producer_version(const std::string& value);
|
|
|
|
std::string* _internal_mutable_producer_version();
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// optional string domain = 4;
|
|
|
|
bool has_domain() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_domain() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_domain();
|
2021-11-10 20:03:45 +08:00
|
|
|
const std::string& domain() const;
|
|
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
|
|
void set_domain(ArgT0&& arg0, ArgT... args);
|
|
|
|
std::string* mutable_domain();
|
|
|
|
PROTOBUF_NODISCARD std::string* release_domain();
|
|
|
|
void set_allocated_domain(std::string* domain);
|
|
|
|
private:
|
|
|
|
const std::string& _internal_domain() const;
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_domain(const std::string& value);
|
|
|
|
std::string* _internal_mutable_domain();
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// optional string doc_string = 6;
|
|
|
|
bool has_doc_string() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_doc_string() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_doc_string();
|
2021-11-10 20:03:45 +08:00
|
|
|
const std::string& doc_string() const;
|
|
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
|
|
void set_doc_string(ArgT0&& arg0, ArgT... args);
|
|
|
|
std::string* mutable_doc_string();
|
|
|
|
PROTOBUF_NODISCARD std::string* release_doc_string();
|
|
|
|
void set_allocated_doc_string(std::string* doc_string);
|
|
|
|
private:
|
|
|
|
const std::string& _internal_doc_string() const;
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_doc_string(const std::string& value);
|
|
|
|
std::string* _internal_mutable_doc_string();
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// optional .opencv_onnx.GraphProto graph = 7;
|
|
|
|
bool has_graph() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_graph() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_graph();
|
|
|
|
const ::opencv_onnx::GraphProto& graph() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
PROTOBUF_NODISCARD ::opencv_onnx::GraphProto* release_graph();
|
2018-09-11 02:07:51 +08:00
|
|
|
::opencv_onnx::GraphProto* mutable_graph();
|
|
|
|
void set_allocated_graph(::opencv_onnx::GraphProto* graph);
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
const ::opencv_onnx::GraphProto& _internal_graph() const;
|
|
|
|
::opencv_onnx::GraphProto* _internal_mutable_graph();
|
|
|
|
public:
|
|
|
|
void unsafe_arena_set_allocated_graph(
|
|
|
|
::opencv_onnx::GraphProto* graph);
|
|
|
|
::opencv_onnx::GraphProto* unsafe_arena_release_graph();
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// optional int64 ir_version = 1;
|
|
|
|
bool has_ir_version() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_ir_version() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_ir_version();
|
2021-11-10 20:03:45 +08:00
|
|
|
int64_t ir_version() const;
|
|
|
|
void set_ir_version(int64_t value);
|
|
|
|
private:
|
|
|
|
int64_t _internal_ir_version() const;
|
|
|
|
void _internal_set_ir_version(int64_t value);
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// optional int64 model_version = 5;
|
|
|
|
bool has_model_version() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_model_version() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_model_version();
|
2021-11-10 20:03:45 +08:00
|
|
|
int64_t model_version() const;
|
|
|
|
void set_model_version(int64_t value);
|
|
|
|
private:
|
|
|
|
int64_t _internal_model_version() const;
|
|
|
|
void _internal_set_model_version(int64_t value);
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// @@protoc_insertion_point(class_scope:opencv_onnx.ModelProto)
|
|
|
|
private:
|
2021-11-10 20:03:45 +08:00
|
|
|
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_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::OperatorSetIdProto > opset_import_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::StringStringEntryProto > metadata_props_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr producer_name_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr producer_version_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr domain_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr doc_string_;
|
2018-09-11 02:07:51 +08:00
|
|
|
::opencv_onnx::GraphProto* graph_;
|
2021-11-10 20:03:45 +08:00
|
|
|
int64_t ir_version_;
|
|
|
|
int64_t model_version_;
|
|
|
|
friend struct ::TableStruct_opencv_2donnx_2eproto;
|
2018-09-11 02:07:51 +08:00
|
|
|
};
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
class StringStringEntryProto final :
|
|
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_onnx.StringStringEntryProto) */ {
|
2018-09-11 02:07:51 +08:00
|
|
|
public:
|
2021-11-10 20:03:45 +08:00
|
|
|
inline StringStringEntryProto() : StringStringEntryProto(nullptr) {}
|
|
|
|
~StringStringEntryProto() override;
|
|
|
|
explicit constexpr StringStringEntryProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
StringStringEntryProto(const StringStringEntryProto& from);
|
|
|
|
StringStringEntryProto(StringStringEntryProto&& from) noexcept
|
|
|
|
: StringStringEntryProto() {
|
|
|
|
*this = ::std::move(from);
|
|
|
|
}
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
inline StringStringEntryProto& operator=(const StringStringEntryProto& from) {
|
|
|
|
CopyFrom(from);
|
|
|
|
return *this;
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline StringStringEntryProto& operator=(StringStringEntryProto&& from) noexcept {
|
2021-11-10 20:03:45 +08:00
|
|
|
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);
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
|
|
|
CopyFrom(from);
|
|
|
|
}
|
|
|
|
return *this;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
|
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
|
|
|
|
return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
|
|
|
|
return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
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 StringStringEntryProto& default_instance() {
|
|
|
|
return *internal_default_instance();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
static inline const StringStringEntryProto* internal_default_instance() {
|
|
|
|
return reinterpret_cast<const StringStringEntryProto*>(
|
|
|
|
&_StringStringEntryProto_default_instance_);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr int kIndexInFileMessages =
|
2018-09-11 02:07:51 +08:00
|
|
|
4;
|
|
|
|
|
|
|
|
friend void swap(StringStringEntryProto& a, StringStringEntryProto& b) {
|
|
|
|
a.Swap(&b);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void Swap(StringStringEntryProto* 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(StringStringEntryProto* other) {
|
|
|
|
if (other == this) return;
|
|
|
|
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
|
|
|
InternalSwap(other);
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
StringStringEntryProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
|
|
|
return CreateMaybeMessage<StringStringEntryProto>(arena);
|
|
|
|
}
|
|
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
2018-09-11 02:07:51 +08:00
|
|
|
void CopyFrom(const StringStringEntryProto& from);
|
2021-11-10 20:03:45 +08:00
|
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
2018-09-11 02:07:51 +08:00
|
|
|
void MergeFrom(const StringStringEntryProto& from);
|
2021-11-10 20:03:45 +08:00
|
|
|
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(); }
|
|
|
|
|
2018-09-11 02:07:51 +08:00
|
|
|
private:
|
|
|
|
void SharedCtor();
|
|
|
|
void SharedDtor();
|
2021-11-10 20:03:45 +08:00
|
|
|
void SetCachedSize(int size) const final;
|
2018-09-11 02:07:51 +08:00
|
|
|
void InternalSwap(StringStringEntryProto* other);
|
2021-11-10 20:03:45 +08:00
|
|
|
|
2018-09-11 02:07:51 +08:00
|
|
|
private:
|
2021-11-10 20:03:45 +08:00
|
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
|
|
return "opencv_onnx.StringStringEntryProto";
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
protected:
|
|
|
|
explicit StringStringEntryProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
|
|
|
bool is_message_owned = false);
|
|
|
|
private:
|
|
|
|
static void ArenaDtor(void* object);
|
|
|
|
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
2018-09-11 02:07:51 +08:00
|
|
|
public:
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
static const ClassData _class_data_;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
|
|
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
enum : int {
|
|
|
|
kKeyFieldNumber = 1,
|
|
|
|
kValueFieldNumber = 2,
|
|
|
|
};
|
2018-09-11 02:07:51 +08:00
|
|
|
// optional string key = 1;
|
|
|
|
bool has_key() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_key() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_key();
|
2021-11-10 20:03:45 +08:00
|
|
|
const std::string& key() const;
|
|
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
|
|
void set_key(ArgT0&& arg0, ArgT... args);
|
|
|
|
std::string* mutable_key();
|
|
|
|
PROTOBUF_NODISCARD std::string* release_key();
|
|
|
|
void set_allocated_key(std::string* key);
|
|
|
|
private:
|
|
|
|
const std::string& _internal_key() const;
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_key(const std::string& value);
|
|
|
|
std::string* _internal_mutable_key();
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// optional string value = 2;
|
|
|
|
bool has_value() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_value() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_value();
|
2021-11-10 20:03:45 +08:00
|
|
|
const std::string& value() const;
|
|
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
|
|
void set_value(ArgT0&& arg0, ArgT... args);
|
|
|
|
std::string* mutable_value();
|
|
|
|
PROTOBUF_NODISCARD std::string* release_value();
|
|
|
|
void set_allocated_value(std::string* value);
|
|
|
|
private:
|
|
|
|
const std::string& _internal_value() const;
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_value(const std::string& value);
|
|
|
|
std::string* _internal_mutable_value();
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// @@protoc_insertion_point(class_scope:opencv_onnx.StringStringEntryProto)
|
|
|
|
private:
|
2021-11-10 20:03:45 +08:00
|
|
|
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_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_;
|
|
|
|
friend struct ::TableStruct_opencv_2donnx_2eproto;
|
2018-09-11 02:07:51 +08:00
|
|
|
};
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
class GraphProto final :
|
|
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_onnx.GraphProto) */ {
|
2018-09-11 02:07:51 +08:00
|
|
|
public:
|
2021-11-10 20:03:45 +08:00
|
|
|
inline GraphProto() : GraphProto(nullptr) {}
|
|
|
|
~GraphProto() override;
|
|
|
|
explicit constexpr GraphProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
GraphProto(const GraphProto& from);
|
|
|
|
GraphProto(GraphProto&& from) noexcept
|
|
|
|
: GraphProto() {
|
|
|
|
*this = ::std::move(from);
|
|
|
|
}
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
inline GraphProto& operator=(const GraphProto& from) {
|
|
|
|
CopyFrom(from);
|
|
|
|
return *this;
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline GraphProto& operator=(GraphProto&& from) noexcept {
|
2021-11-10 20:03:45 +08:00
|
|
|
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);
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
|
|
|
CopyFrom(from);
|
|
|
|
}
|
|
|
|
return *this;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
|
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
|
|
|
|
return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
|
|
|
|
return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
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 GraphProto& default_instance() {
|
|
|
|
return *internal_default_instance();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
static inline const GraphProto* internal_default_instance() {
|
|
|
|
return reinterpret_cast<const GraphProto*>(
|
|
|
|
&_GraphProto_default_instance_);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr int kIndexInFileMessages =
|
2018-09-11 02:07:51 +08:00
|
|
|
5;
|
|
|
|
|
|
|
|
friend void swap(GraphProto& a, GraphProto& b) {
|
|
|
|
a.Swap(&b);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void Swap(GraphProto* 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(GraphProto* other) {
|
|
|
|
if (other == this) return;
|
|
|
|
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
|
|
|
InternalSwap(other);
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
GraphProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
|
|
|
return CreateMaybeMessage<GraphProto>(arena);
|
|
|
|
}
|
|
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
2018-09-11 02:07:51 +08:00
|
|
|
void CopyFrom(const GraphProto& from);
|
2021-11-10 20:03:45 +08:00
|
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
2018-09-11 02:07:51 +08:00
|
|
|
void MergeFrom(const GraphProto& from);
|
2021-11-10 20:03:45 +08:00
|
|
|
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(); }
|
|
|
|
|
2018-09-11 02:07:51 +08:00
|
|
|
private:
|
|
|
|
void SharedCtor();
|
|
|
|
void SharedDtor();
|
2021-11-10 20:03:45 +08:00
|
|
|
void SetCachedSize(int size) const final;
|
2018-09-11 02:07:51 +08:00
|
|
|
void InternalSwap(GraphProto* other);
|
2021-11-10 20:03:45 +08:00
|
|
|
|
2018-09-11 02:07:51 +08:00
|
|
|
private:
|
2021-11-10 20:03:45 +08:00
|
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
|
|
return "opencv_onnx.GraphProto";
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
protected:
|
|
|
|
explicit GraphProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
|
|
|
bool is_message_owned = false);
|
|
|
|
private:
|
|
|
|
static void ArenaDtor(void* object);
|
|
|
|
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
2018-09-11 02:07:51 +08:00
|
|
|
public:
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
static const ClassData _class_data_;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
|
|
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
enum : int {
|
|
|
|
kNodeFieldNumber = 1,
|
|
|
|
kInitializerFieldNumber = 5,
|
|
|
|
kInputFieldNumber = 11,
|
|
|
|
kOutputFieldNumber = 12,
|
|
|
|
kValueInfoFieldNumber = 13,
|
|
|
|
kNameFieldNumber = 2,
|
|
|
|
kDocStringFieldNumber = 10,
|
|
|
|
};
|
2018-09-11 02:07:51 +08:00
|
|
|
// repeated .opencv_onnx.NodeProto node = 1;
|
|
|
|
int node_size() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
int _internal_node_size() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_node();
|
|
|
|
::opencv_onnx::NodeProto* mutable_node(int index);
|
2021-11-10 20:03:45 +08:00
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::NodeProto >*
|
2018-09-11 02:07:51 +08:00
|
|
|
mutable_node();
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
const ::opencv_onnx::NodeProto& _internal_node(int index) const;
|
|
|
|
::opencv_onnx::NodeProto* _internal_add_node();
|
|
|
|
public:
|
|
|
|
const ::opencv_onnx::NodeProto& node(int index) const;
|
|
|
|
::opencv_onnx::NodeProto* add_node();
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::NodeProto >&
|
2018-09-11 02:07:51 +08:00
|
|
|
node() const;
|
|
|
|
|
|
|
|
// repeated .opencv_onnx.TensorProto initializer = 5;
|
|
|
|
int initializer_size() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
int _internal_initializer_size() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_initializer();
|
|
|
|
::opencv_onnx::TensorProto* mutable_initializer(int index);
|
2021-11-10 20:03:45 +08:00
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::TensorProto >*
|
2018-09-11 02:07:51 +08:00
|
|
|
mutable_initializer();
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
const ::opencv_onnx::TensorProto& _internal_initializer(int index) const;
|
|
|
|
::opencv_onnx::TensorProto* _internal_add_initializer();
|
|
|
|
public:
|
|
|
|
const ::opencv_onnx::TensorProto& initializer(int index) const;
|
|
|
|
::opencv_onnx::TensorProto* add_initializer();
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::TensorProto >&
|
2018-09-11 02:07:51 +08:00
|
|
|
initializer() const;
|
|
|
|
|
|
|
|
// repeated .opencv_onnx.ValueInfoProto input = 11;
|
|
|
|
int input_size() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
int _internal_input_size() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_input();
|
|
|
|
::opencv_onnx::ValueInfoProto* mutable_input(int index);
|
2021-11-10 20:03:45 +08:00
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::ValueInfoProto >*
|
2018-09-11 02:07:51 +08:00
|
|
|
mutable_input();
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
const ::opencv_onnx::ValueInfoProto& _internal_input(int index) const;
|
|
|
|
::opencv_onnx::ValueInfoProto* _internal_add_input();
|
|
|
|
public:
|
|
|
|
const ::opencv_onnx::ValueInfoProto& input(int index) const;
|
|
|
|
::opencv_onnx::ValueInfoProto* add_input();
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::ValueInfoProto >&
|
2018-09-11 02:07:51 +08:00
|
|
|
input() const;
|
|
|
|
|
|
|
|
// repeated .opencv_onnx.ValueInfoProto output = 12;
|
|
|
|
int output_size() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
int _internal_output_size() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_output();
|
|
|
|
::opencv_onnx::ValueInfoProto* mutable_output(int index);
|
2021-11-10 20:03:45 +08:00
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::ValueInfoProto >*
|
2018-09-11 02:07:51 +08:00
|
|
|
mutable_output();
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
const ::opencv_onnx::ValueInfoProto& _internal_output(int index) const;
|
|
|
|
::opencv_onnx::ValueInfoProto* _internal_add_output();
|
|
|
|
public:
|
|
|
|
const ::opencv_onnx::ValueInfoProto& output(int index) const;
|
|
|
|
::opencv_onnx::ValueInfoProto* add_output();
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::ValueInfoProto >&
|
2018-09-11 02:07:51 +08:00
|
|
|
output() const;
|
|
|
|
|
|
|
|
// repeated .opencv_onnx.ValueInfoProto value_info = 13;
|
|
|
|
int value_info_size() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
int _internal_value_info_size() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_value_info();
|
|
|
|
::opencv_onnx::ValueInfoProto* mutable_value_info(int index);
|
2021-11-10 20:03:45 +08:00
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::ValueInfoProto >*
|
2018-09-11 02:07:51 +08:00
|
|
|
mutable_value_info();
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
const ::opencv_onnx::ValueInfoProto& _internal_value_info(int index) const;
|
|
|
|
::opencv_onnx::ValueInfoProto* _internal_add_value_info();
|
|
|
|
public:
|
|
|
|
const ::opencv_onnx::ValueInfoProto& value_info(int index) const;
|
|
|
|
::opencv_onnx::ValueInfoProto* add_value_info();
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::ValueInfoProto >&
|
2018-09-11 02:07:51 +08:00
|
|
|
value_info() const;
|
|
|
|
|
|
|
|
// optional string name = 2;
|
|
|
|
bool has_name() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_name() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_name();
|
2021-11-10 20:03:45 +08:00
|
|
|
const std::string& name() const;
|
|
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
|
|
void set_name(ArgT0&& arg0, ArgT... args);
|
|
|
|
std::string* mutable_name();
|
|
|
|
PROTOBUF_NODISCARD std::string* release_name();
|
|
|
|
void set_allocated_name(std::string* name);
|
|
|
|
private:
|
|
|
|
const std::string& _internal_name() const;
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
|
|
|
|
std::string* _internal_mutable_name();
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// optional string doc_string = 10;
|
|
|
|
bool has_doc_string() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_doc_string() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_doc_string();
|
2021-11-10 20:03:45 +08:00
|
|
|
const std::string& doc_string() const;
|
|
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
|
|
void set_doc_string(ArgT0&& arg0, ArgT... args);
|
|
|
|
std::string* mutable_doc_string();
|
|
|
|
PROTOBUF_NODISCARD std::string* release_doc_string();
|
|
|
|
void set_allocated_doc_string(std::string* doc_string);
|
|
|
|
private:
|
|
|
|
const std::string& _internal_doc_string() const;
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_doc_string(const std::string& value);
|
|
|
|
std::string* _internal_mutable_doc_string();
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// @@protoc_insertion_point(class_scope:opencv_onnx.GraphProto)
|
|
|
|
private:
|
2021-11-10 20:03:45 +08:00
|
|
|
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_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::NodeProto > node_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::TensorProto > initializer_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::ValueInfoProto > input_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::ValueInfoProto > output_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::ValueInfoProto > value_info_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr doc_string_;
|
|
|
|
friend struct ::TableStruct_opencv_2donnx_2eproto;
|
2018-09-11 02:07:51 +08:00
|
|
|
};
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
class TensorProto_Segment final :
|
|
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_onnx.TensorProto.Segment) */ {
|
2018-09-11 02:07:51 +08:00
|
|
|
public:
|
2021-11-10 20:03:45 +08:00
|
|
|
inline TensorProto_Segment() : TensorProto_Segment(nullptr) {}
|
|
|
|
~TensorProto_Segment() override;
|
|
|
|
explicit constexpr TensorProto_Segment(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
TensorProto_Segment(const TensorProto_Segment& from);
|
|
|
|
TensorProto_Segment(TensorProto_Segment&& from) noexcept
|
|
|
|
: TensorProto_Segment() {
|
|
|
|
*this = ::std::move(from);
|
|
|
|
}
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
inline TensorProto_Segment& operator=(const TensorProto_Segment& from) {
|
|
|
|
CopyFrom(from);
|
|
|
|
return *this;
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline TensorProto_Segment& operator=(TensorProto_Segment&& from) noexcept {
|
2021-11-10 20:03:45 +08:00
|
|
|
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);
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
|
|
|
CopyFrom(from);
|
|
|
|
}
|
|
|
|
return *this;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
|
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
|
|
|
|
return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
|
|
|
|
return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
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 TensorProto_Segment& default_instance() {
|
|
|
|
return *internal_default_instance();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
static inline const TensorProto_Segment* internal_default_instance() {
|
|
|
|
return reinterpret_cast<const TensorProto_Segment*>(
|
|
|
|
&_TensorProto_Segment_default_instance_);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr int kIndexInFileMessages =
|
2018-09-11 02:07:51 +08:00
|
|
|
6;
|
|
|
|
|
|
|
|
friend void swap(TensorProto_Segment& a, TensorProto_Segment& b) {
|
|
|
|
a.Swap(&b);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void Swap(TensorProto_Segment* 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(TensorProto_Segment* other) {
|
|
|
|
if (other == this) return;
|
|
|
|
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
|
|
|
InternalSwap(other);
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
TensorProto_Segment* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
|
|
|
return CreateMaybeMessage<TensorProto_Segment>(arena);
|
|
|
|
}
|
|
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
2018-09-11 02:07:51 +08:00
|
|
|
void CopyFrom(const TensorProto_Segment& from);
|
2021-11-10 20:03:45 +08:00
|
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
2018-09-11 02:07:51 +08:00
|
|
|
void MergeFrom(const TensorProto_Segment& from);
|
2021-11-10 20:03:45 +08:00
|
|
|
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(); }
|
|
|
|
|
2018-09-11 02:07:51 +08:00
|
|
|
private:
|
|
|
|
void SharedCtor();
|
|
|
|
void SharedDtor();
|
2021-11-10 20:03:45 +08:00
|
|
|
void SetCachedSize(int size) const final;
|
2018-09-11 02:07:51 +08:00
|
|
|
void InternalSwap(TensorProto_Segment* other);
|
2021-11-10 20:03:45 +08:00
|
|
|
|
2018-09-11 02:07:51 +08:00
|
|
|
private:
|
2021-11-10 20:03:45 +08:00
|
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
|
|
return "opencv_onnx.TensorProto.Segment";
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
protected:
|
|
|
|
explicit TensorProto_Segment(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
|
|
|
bool is_message_owned = false);
|
|
|
|
private:
|
|
|
|
static void ArenaDtor(void* object);
|
|
|
|
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
2018-09-11 02:07:51 +08:00
|
|
|
public:
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
static const ClassData _class_data_;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
|
|
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
enum : int {
|
|
|
|
kBeginFieldNumber = 1,
|
|
|
|
kEndFieldNumber = 2,
|
|
|
|
};
|
2018-09-11 02:07:51 +08:00
|
|
|
// optional int64 begin = 1;
|
|
|
|
bool has_begin() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_begin() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_begin();
|
2021-11-10 20:03:45 +08:00
|
|
|
int64_t begin() const;
|
|
|
|
void set_begin(int64_t value);
|
|
|
|
private:
|
|
|
|
int64_t _internal_begin() const;
|
|
|
|
void _internal_set_begin(int64_t value);
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// optional int64 end = 2;
|
|
|
|
bool has_end() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_end() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_end();
|
2021-11-10 20:03:45 +08:00
|
|
|
int64_t end() const;
|
|
|
|
void set_end(int64_t value);
|
|
|
|
private:
|
|
|
|
int64_t _internal_end() const;
|
|
|
|
void _internal_set_end(int64_t value);
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// @@protoc_insertion_point(class_scope:opencv_onnx.TensorProto.Segment)
|
|
|
|
private:
|
2021-11-10 20:03:45 +08:00
|
|
|
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_;
|
|
|
|
int64_t begin_;
|
|
|
|
int64_t end_;
|
|
|
|
friend struct ::TableStruct_opencv_2donnx_2eproto;
|
2018-09-11 02:07:51 +08:00
|
|
|
};
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
class TensorProto final :
|
|
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_onnx.TensorProto) */ {
|
2018-09-11 02:07:51 +08:00
|
|
|
public:
|
2021-11-10 20:03:45 +08:00
|
|
|
inline TensorProto() : TensorProto(nullptr) {}
|
|
|
|
~TensorProto() override;
|
|
|
|
explicit constexpr TensorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
TensorProto(const TensorProto& from);
|
|
|
|
TensorProto(TensorProto&& from) noexcept
|
|
|
|
: TensorProto() {
|
|
|
|
*this = ::std::move(from);
|
|
|
|
}
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
inline TensorProto& operator=(const TensorProto& from) {
|
|
|
|
CopyFrom(from);
|
|
|
|
return *this;
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline TensorProto& operator=(TensorProto&& from) noexcept {
|
2021-11-10 20:03:45 +08:00
|
|
|
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);
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
|
|
|
CopyFrom(from);
|
|
|
|
}
|
|
|
|
return *this;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
|
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
|
|
|
|
return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
|
|
|
|
return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
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 TensorProto& default_instance() {
|
|
|
|
return *internal_default_instance();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
static inline const TensorProto* internal_default_instance() {
|
|
|
|
return reinterpret_cast<const TensorProto*>(
|
|
|
|
&_TensorProto_default_instance_);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr int kIndexInFileMessages =
|
2018-09-11 02:07:51 +08:00
|
|
|
7;
|
|
|
|
|
|
|
|
friend void swap(TensorProto& a, TensorProto& b) {
|
|
|
|
a.Swap(&b);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void Swap(TensorProto* 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(TensorProto* other) {
|
|
|
|
if (other == this) return;
|
|
|
|
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
|
|
|
InternalSwap(other);
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
TensorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
|
|
|
return CreateMaybeMessage<TensorProto>(arena);
|
|
|
|
}
|
|
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
2018-09-11 02:07:51 +08:00
|
|
|
void CopyFrom(const TensorProto& from);
|
2021-11-10 20:03:45 +08:00
|
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
2018-09-11 02:07:51 +08:00
|
|
|
void MergeFrom(const TensorProto& from);
|
2021-11-10 20:03:45 +08:00
|
|
|
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(); }
|
|
|
|
|
2018-09-11 02:07:51 +08:00
|
|
|
private:
|
|
|
|
void SharedCtor();
|
|
|
|
void SharedDtor();
|
2021-11-10 20:03:45 +08:00
|
|
|
void SetCachedSize(int size) const final;
|
2018-09-11 02:07:51 +08:00
|
|
|
void InternalSwap(TensorProto* other);
|
2021-11-10 20:03:45 +08:00
|
|
|
|
2018-09-11 02:07:51 +08:00
|
|
|
private:
|
2021-11-10 20:03:45 +08:00
|
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
|
|
return "opencv_onnx.TensorProto";
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
protected:
|
|
|
|
explicit TensorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
|
|
|
bool is_message_owned = false);
|
|
|
|
private:
|
|
|
|
static void ArenaDtor(void* object);
|
|
|
|
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
2018-09-11 02:07:51 +08:00
|
|
|
public:
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
static const ClassData _class_data_;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
|
|
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
|
|
|
|
typedef TensorProto_Segment Segment;
|
|
|
|
|
|
|
|
typedef TensorProto_DataType DataType;
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr DataType UNDEFINED =
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto_DataType_UNDEFINED;
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr DataType FLOAT =
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto_DataType_FLOAT;
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr DataType UINT8 =
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto_DataType_UINT8;
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr DataType INT8 =
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto_DataType_INT8;
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr DataType UINT16 =
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto_DataType_UINT16;
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr DataType INT16 =
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto_DataType_INT16;
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr DataType INT32 =
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto_DataType_INT32;
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr DataType INT64 =
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto_DataType_INT64;
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr DataType STRING =
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto_DataType_STRING;
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr DataType BOOL =
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto_DataType_BOOL;
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr DataType FLOAT16 =
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto_DataType_FLOAT16;
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr DataType DOUBLE =
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto_DataType_DOUBLE;
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr DataType UINT32 =
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto_DataType_UINT32;
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr DataType UINT64 =
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto_DataType_UINT64;
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr DataType COMPLEX64 =
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto_DataType_COMPLEX64;
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr DataType COMPLEX128 =
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto_DataType_COMPLEX128;
|
|
|
|
static inline bool DataType_IsValid(int value) {
|
|
|
|
return TensorProto_DataType_IsValid(value);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr DataType DataType_MIN =
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto_DataType_DataType_MIN;
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr DataType DataType_MAX =
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto_DataType_DataType_MAX;
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr int DataType_ARRAYSIZE =
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto_DataType_DataType_ARRAYSIZE;
|
2021-11-10 20:03:45 +08:00
|
|
|
static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
|
2018-09-11 02:07:51 +08:00
|
|
|
DataType_descriptor() {
|
|
|
|
return TensorProto_DataType_descriptor();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
template<typename T>
|
|
|
|
static inline const std::string& DataType_Name(T enum_t_value) {
|
|
|
|
static_assert(::std::is_same<T, DataType>::value ||
|
|
|
|
::std::is_integral<T>::value,
|
|
|
|
"Incorrect type passed to function DataType_Name.");
|
|
|
|
return TensorProto_DataType_Name(enum_t_value);
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
static inline bool DataType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
|
2018-09-11 02:07:51 +08:00
|
|
|
DataType* value) {
|
|
|
|
return TensorProto_DataType_Parse(name, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
enum : int {
|
|
|
|
kDimsFieldNumber = 1,
|
|
|
|
kFloatDataFieldNumber = 4,
|
|
|
|
kInt32DataFieldNumber = 5,
|
|
|
|
kStringDataFieldNumber = 6,
|
|
|
|
kInt64DataFieldNumber = 7,
|
|
|
|
kDoubleDataFieldNumber = 10,
|
|
|
|
kUint64DataFieldNumber = 11,
|
|
|
|
kNameFieldNumber = 8,
|
|
|
|
kRawDataFieldNumber = 9,
|
|
|
|
kDocStringFieldNumber = 12,
|
|
|
|
kSegmentFieldNumber = 3,
|
|
|
|
kDataTypeFieldNumber = 2,
|
|
|
|
};
|
2018-09-11 02:07:51 +08:00
|
|
|
// repeated int64 dims = 1;
|
|
|
|
int dims_size() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
int _internal_dims_size() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_dims();
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
int64_t _internal_dims(int index) const;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
|
|
|
|
_internal_dims() const;
|
|
|
|
void _internal_add_dims(int64_t value);
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
|
|
|
|
_internal_mutable_dims();
|
|
|
|
public:
|
|
|
|
int64_t dims(int index) const;
|
|
|
|
void set_dims(int index, int64_t value);
|
|
|
|
void add_dims(int64_t value);
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
|
2018-09-11 02:07:51 +08:00
|
|
|
dims() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
|
2018-09-11 02:07:51 +08:00
|
|
|
mutable_dims();
|
|
|
|
|
|
|
|
// repeated float float_data = 4 [packed = true];
|
|
|
|
int float_data_size() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
int _internal_float_data_size() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_float_data();
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
float _internal_float_data(int index) const;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
|
|
|
|
_internal_float_data() const;
|
|
|
|
void _internal_add_float_data(float value);
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
|
|
|
|
_internal_mutable_float_data();
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
float float_data(int index) const;
|
|
|
|
void set_float_data(int index, float value);
|
|
|
|
void add_float_data(float value);
|
2021-11-10 20:03:45 +08:00
|
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
|
2018-09-11 02:07:51 +08:00
|
|
|
float_data() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
|
2018-09-11 02:07:51 +08:00
|
|
|
mutable_float_data();
|
|
|
|
|
|
|
|
// repeated int32 int32_data = 5 [packed = true];
|
|
|
|
int int32_data_size() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
int _internal_int32_data_size() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_int32_data();
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
int32_t _internal_int32_data(int index) const;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
|
|
|
|
_internal_int32_data() const;
|
|
|
|
void _internal_add_int32_data(int32_t value);
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
|
|
|
|
_internal_mutable_int32_data();
|
|
|
|
public:
|
|
|
|
int32_t int32_data(int index) const;
|
|
|
|
void set_int32_data(int index, int32_t value);
|
|
|
|
void add_int32_data(int32_t value);
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
|
2018-09-11 02:07:51 +08:00
|
|
|
int32_data() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
|
2018-09-11 02:07:51 +08:00
|
|
|
mutable_int32_data();
|
|
|
|
|
|
|
|
// repeated bytes string_data = 6;
|
|
|
|
int string_data_size() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
int _internal_string_data_size() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_string_data();
|
2021-11-10 20:03:45 +08:00
|
|
|
const std::string& string_data(int index) const;
|
|
|
|
std::string* mutable_string_data(int index);
|
|
|
|
void set_string_data(int index, const std::string& value);
|
|
|
|
void set_string_data(int index, std::string&& value);
|
2018-09-11 02:07:51 +08:00
|
|
|
void set_string_data(int index, const char* value);
|
|
|
|
void set_string_data(int index, const void* value, size_t size);
|
2021-11-10 20:03:45 +08:00
|
|
|
std::string* add_string_data();
|
|
|
|
void add_string_data(const std::string& value);
|
|
|
|
void add_string_data(std::string&& value);
|
2018-09-11 02:07:51 +08:00
|
|
|
void add_string_data(const char* value);
|
|
|
|
void add_string_data(const void* value, size_t size);
|
2021-11-10 20:03:45 +08:00
|
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& string_data() const;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_string_data();
|
|
|
|
private:
|
|
|
|
const std::string& _internal_string_data(int index) const;
|
|
|
|
std::string* _internal_add_string_data();
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// repeated int64 int64_data = 7 [packed = true];
|
|
|
|
int int64_data_size() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
int _internal_int64_data_size() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_int64_data();
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
int64_t _internal_int64_data(int index) const;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
|
|
|
|
_internal_int64_data() const;
|
|
|
|
void _internal_add_int64_data(int64_t value);
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
|
|
|
|
_internal_mutable_int64_data();
|
|
|
|
public:
|
|
|
|
int64_t int64_data(int index) const;
|
|
|
|
void set_int64_data(int index, int64_t value);
|
|
|
|
void add_int64_data(int64_t value);
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
|
2018-09-11 02:07:51 +08:00
|
|
|
int64_data() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
|
2018-09-11 02:07:51 +08:00
|
|
|
mutable_int64_data();
|
|
|
|
|
|
|
|
// repeated double double_data = 10 [packed = true];
|
|
|
|
int double_data_size() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
int _internal_double_data_size() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_double_data();
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
double _internal_double_data(int index) const;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
|
|
|
|
_internal_double_data() const;
|
|
|
|
void _internal_add_double_data(double value);
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
|
|
|
|
_internal_mutable_double_data();
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
double double_data(int index) const;
|
|
|
|
void set_double_data(int index, double value);
|
|
|
|
void add_double_data(double value);
|
2021-11-10 20:03:45 +08:00
|
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
|
2018-09-11 02:07:51 +08:00
|
|
|
double_data() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
|
2018-09-11 02:07:51 +08:00
|
|
|
mutable_double_data();
|
|
|
|
|
|
|
|
// repeated uint64 uint64_data = 11 [packed = true];
|
|
|
|
int uint64_data_size() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
int _internal_uint64_data_size() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_uint64_data();
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
uint64_t _internal_uint64_data(int index) const;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >&
|
|
|
|
_internal_uint64_data() const;
|
|
|
|
void _internal_add_uint64_data(uint64_t value);
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >*
|
|
|
|
_internal_mutable_uint64_data();
|
|
|
|
public:
|
|
|
|
uint64_t uint64_data(int index) const;
|
|
|
|
void set_uint64_data(int index, uint64_t value);
|
|
|
|
void add_uint64_data(uint64_t value);
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >&
|
2018-09-11 02:07:51 +08:00
|
|
|
uint64_data() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >*
|
2018-09-11 02:07:51 +08:00
|
|
|
mutable_uint64_data();
|
|
|
|
|
|
|
|
// optional string name = 8;
|
|
|
|
bool has_name() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_name() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_name();
|
2021-11-10 20:03:45 +08:00
|
|
|
const std::string& name() const;
|
|
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
|
|
void set_name(ArgT0&& arg0, ArgT... args);
|
|
|
|
std::string* mutable_name();
|
|
|
|
PROTOBUF_NODISCARD std::string* release_name();
|
|
|
|
void set_allocated_name(std::string* name);
|
|
|
|
private:
|
|
|
|
const std::string& _internal_name() const;
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
|
|
|
|
std::string* _internal_mutable_name();
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// optional bytes raw_data = 9;
|
|
|
|
bool has_raw_data() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_raw_data() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_raw_data();
|
2021-11-10 20:03:45 +08:00
|
|
|
const std::string& raw_data() const;
|
|
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
|
|
void set_raw_data(ArgT0&& arg0, ArgT... args);
|
|
|
|
std::string* mutable_raw_data();
|
|
|
|
PROTOBUF_NODISCARD std::string* release_raw_data();
|
|
|
|
void set_allocated_raw_data(std::string* raw_data);
|
|
|
|
private:
|
|
|
|
const std::string& _internal_raw_data() const;
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_raw_data(const std::string& value);
|
|
|
|
std::string* _internal_mutable_raw_data();
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// optional string doc_string = 12;
|
|
|
|
bool has_doc_string() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_doc_string() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_doc_string();
|
2021-11-10 20:03:45 +08:00
|
|
|
const std::string& doc_string() const;
|
|
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
|
|
void set_doc_string(ArgT0&& arg0, ArgT... args);
|
|
|
|
std::string* mutable_doc_string();
|
|
|
|
PROTOBUF_NODISCARD std::string* release_doc_string();
|
|
|
|
void set_allocated_doc_string(std::string* doc_string);
|
|
|
|
private:
|
|
|
|
const std::string& _internal_doc_string() const;
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_doc_string(const std::string& value);
|
|
|
|
std::string* _internal_mutable_doc_string();
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// optional .opencv_onnx.TensorProto.Segment segment = 3;
|
|
|
|
bool has_segment() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_segment() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_segment();
|
|
|
|
const ::opencv_onnx::TensorProto_Segment& segment() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
PROTOBUF_NODISCARD ::opencv_onnx::TensorProto_Segment* release_segment();
|
2018-09-11 02:07:51 +08:00
|
|
|
::opencv_onnx::TensorProto_Segment* mutable_segment();
|
|
|
|
void set_allocated_segment(::opencv_onnx::TensorProto_Segment* segment);
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
const ::opencv_onnx::TensorProto_Segment& _internal_segment() const;
|
|
|
|
::opencv_onnx::TensorProto_Segment* _internal_mutable_segment();
|
|
|
|
public:
|
|
|
|
void unsafe_arena_set_allocated_segment(
|
|
|
|
::opencv_onnx::TensorProto_Segment* segment);
|
|
|
|
::opencv_onnx::TensorProto_Segment* unsafe_arena_release_segment();
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// optional .opencv_onnx.TensorProto.DataType data_type = 2;
|
|
|
|
bool has_data_type() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_data_type() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_data_type();
|
|
|
|
::opencv_onnx::TensorProto_DataType data_type() const;
|
|
|
|
void set_data_type(::opencv_onnx::TensorProto_DataType value);
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
::opencv_onnx::TensorProto_DataType _internal_data_type() const;
|
|
|
|
void _internal_set_data_type(::opencv_onnx::TensorProto_DataType value);
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// @@protoc_insertion_point(class_scope:opencv_onnx.TensorProto)
|
|
|
|
private:
|
2021-11-10 20:03:45 +08:00
|
|
|
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_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t > dims_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedField< float > float_data_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > int32_data_;
|
|
|
|
mutable std::atomic<int> _int32_data_cached_byte_size_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> string_data_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t > int64_data_;
|
|
|
|
mutable std::atomic<int> _int64_data_cached_byte_size_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedField< double > double_data_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t > uint64_data_;
|
|
|
|
mutable std::atomic<int> _uint64_data_cached_byte_size_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr raw_data_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr doc_string_;
|
2018-09-11 02:07:51 +08:00
|
|
|
::opencv_onnx::TensorProto_Segment* segment_;
|
|
|
|
int data_type_;
|
2021-11-10 20:03:45 +08:00
|
|
|
friend struct ::TableStruct_opencv_2donnx_2eproto;
|
2018-09-11 02:07:51 +08:00
|
|
|
};
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
class TensorShapeProto_Dimension final :
|
|
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_onnx.TensorShapeProto.Dimension) */ {
|
2018-09-11 02:07:51 +08:00
|
|
|
public:
|
2021-11-10 20:03:45 +08:00
|
|
|
inline TensorShapeProto_Dimension() : TensorShapeProto_Dimension(nullptr) {}
|
|
|
|
~TensorShapeProto_Dimension() override;
|
|
|
|
explicit constexpr TensorShapeProto_Dimension(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
TensorShapeProto_Dimension(const TensorShapeProto_Dimension& from);
|
2021-11-10 20:03:45 +08:00
|
|
|
TensorShapeProto_Dimension(TensorShapeProto_Dimension&& from) noexcept
|
|
|
|
: TensorShapeProto_Dimension() {
|
|
|
|
*this = ::std::move(from);
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
inline TensorShapeProto_Dimension& operator=(const TensorShapeProto_Dimension& from) {
|
|
|
|
CopyFrom(from);
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
inline TensorShapeProto_Dimension& operator=(TensorShapeProto_Dimension&& from) noexcept {
|
2021-11-10 20:03:45 +08:00
|
|
|
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);
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
|
|
|
CopyFrom(from);
|
|
|
|
}
|
|
|
|
return *this;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
|
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
|
|
|
|
return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
|
|
|
|
return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
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 TensorShapeProto_Dimension& default_instance() {
|
|
|
|
return *internal_default_instance();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
enum ValueCase {
|
|
|
|
kDimValue = 1,
|
|
|
|
kDimParam = 2,
|
|
|
|
VALUE_NOT_SET = 0,
|
|
|
|
};
|
|
|
|
|
|
|
|
static inline const TensorShapeProto_Dimension* internal_default_instance() {
|
|
|
|
return reinterpret_cast<const TensorShapeProto_Dimension*>(
|
|
|
|
&_TensorShapeProto_Dimension_default_instance_);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr int kIndexInFileMessages =
|
2018-09-11 02:07:51 +08:00
|
|
|
8;
|
|
|
|
|
|
|
|
friend void swap(TensorShapeProto_Dimension& a, TensorShapeProto_Dimension& b) {
|
|
|
|
a.Swap(&b);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void Swap(TensorShapeProto_Dimension* 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(TensorShapeProto_Dimension* other) {
|
|
|
|
if (other == this) return;
|
|
|
|
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
|
|
|
InternalSwap(other);
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
TensorShapeProto_Dimension* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
|
|
|
return CreateMaybeMessage<TensorShapeProto_Dimension>(arena);
|
|
|
|
}
|
|
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
2018-09-11 02:07:51 +08:00
|
|
|
void CopyFrom(const TensorShapeProto_Dimension& from);
|
2021-11-10 20:03:45 +08:00
|
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
2018-09-11 02:07:51 +08:00
|
|
|
void MergeFrom(const TensorShapeProto_Dimension& from);
|
2021-11-10 20:03:45 +08:00
|
|
|
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(); }
|
|
|
|
|
2018-09-11 02:07:51 +08:00
|
|
|
private:
|
|
|
|
void SharedCtor();
|
|
|
|
void SharedDtor();
|
2021-11-10 20:03:45 +08:00
|
|
|
void SetCachedSize(int size) const final;
|
2018-09-11 02:07:51 +08:00
|
|
|
void InternalSwap(TensorShapeProto_Dimension* other);
|
2021-11-10 20:03:45 +08:00
|
|
|
|
2018-09-11 02:07:51 +08:00
|
|
|
private:
|
2021-11-10 20:03:45 +08:00
|
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
|
|
return "opencv_onnx.TensorShapeProto.Dimension";
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
protected:
|
|
|
|
explicit TensorShapeProto_Dimension(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
|
|
|
bool is_message_owned = false);
|
|
|
|
private:
|
|
|
|
static void ArenaDtor(void* object);
|
|
|
|
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
2018-09-11 02:07:51 +08:00
|
|
|
public:
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
static const ClassData _class_data_;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
|
|
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
enum : int {
|
|
|
|
kDenotationFieldNumber = 3,
|
|
|
|
kDimValueFieldNumber = 1,
|
|
|
|
kDimParamFieldNumber = 2,
|
|
|
|
};
|
2018-09-11 02:07:51 +08:00
|
|
|
// optional string denotation = 3;
|
|
|
|
bool has_denotation() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_denotation() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_denotation();
|
2021-11-10 20:03:45 +08:00
|
|
|
const std::string& denotation() const;
|
|
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
|
|
void set_denotation(ArgT0&& arg0, ArgT... args);
|
|
|
|
std::string* mutable_denotation();
|
|
|
|
PROTOBUF_NODISCARD std::string* release_denotation();
|
|
|
|
void set_allocated_denotation(std::string* denotation);
|
|
|
|
private:
|
|
|
|
const std::string& _internal_denotation() const;
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_denotation(const std::string& value);
|
|
|
|
std::string* _internal_mutable_denotation();
|
|
|
|
public:
|
|
|
|
|
|
|
|
// int64 dim_value = 1;
|
2018-09-11 02:07:51 +08:00
|
|
|
bool has_dim_value() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_dim_value() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_dim_value();
|
2021-11-10 20:03:45 +08:00
|
|
|
int64_t dim_value() const;
|
|
|
|
void set_dim_value(int64_t value);
|
|
|
|
private:
|
|
|
|
int64_t _internal_dim_value() const;
|
|
|
|
void _internal_set_dim_value(int64_t value);
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
// string dim_param = 2;
|
2018-09-11 02:07:51 +08:00
|
|
|
bool has_dim_param() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_dim_param() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_dim_param();
|
2021-11-10 20:03:45 +08:00
|
|
|
const std::string& dim_param() const;
|
|
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
|
|
void set_dim_param(ArgT0&& arg0, ArgT... args);
|
|
|
|
std::string* mutable_dim_param();
|
|
|
|
PROTOBUF_NODISCARD std::string* release_dim_param();
|
|
|
|
void set_allocated_dim_param(std::string* dim_param);
|
|
|
|
private:
|
|
|
|
const std::string& _internal_dim_param() const;
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_dim_param(const std::string& value);
|
|
|
|
std::string* _internal_mutable_dim_param();
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
void clear_value();
|
2018-09-11 02:07:51 +08:00
|
|
|
ValueCase value_case() const;
|
|
|
|
// @@protoc_insertion_point(class_scope:opencv_onnx.TensorShapeProto.Dimension)
|
|
|
|
private:
|
2021-11-10 20:03:45 +08:00
|
|
|
class _Internal;
|
2018-09-11 02:07:51 +08:00
|
|
|
void set_has_dim_value();
|
|
|
|
void set_has_dim_param();
|
|
|
|
|
|
|
|
inline bool has_value() const;
|
|
|
|
inline void clear_has_value();
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
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_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr denotation_;
|
2018-09-11 02:07:51 +08:00
|
|
|
union ValueUnion {
|
2021-11-10 20:03:45 +08:00
|
|
|
constexpr ValueUnion() : _constinit_{} {}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
|
|
|
|
int64_t dim_value_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dim_param_;
|
2018-09-11 02:07:51 +08:00
|
|
|
} value_;
|
2021-11-10 20:03:45 +08:00
|
|
|
uint32_t _oneof_case_[1];
|
2018-09-11 02:07:51 +08:00
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
friend struct ::TableStruct_opencv_2donnx_2eproto;
|
2018-09-11 02:07:51 +08:00
|
|
|
};
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
class TensorShapeProto final :
|
|
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_onnx.TensorShapeProto) */ {
|
2018-09-11 02:07:51 +08:00
|
|
|
public:
|
2021-11-10 20:03:45 +08:00
|
|
|
inline TensorShapeProto() : TensorShapeProto(nullptr) {}
|
|
|
|
~TensorShapeProto() override;
|
|
|
|
explicit constexpr TensorShapeProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
TensorShapeProto(const TensorShapeProto& from);
|
|
|
|
TensorShapeProto(TensorShapeProto&& from) noexcept
|
|
|
|
: TensorShapeProto() {
|
|
|
|
*this = ::std::move(from);
|
|
|
|
}
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
inline TensorShapeProto& operator=(const TensorShapeProto& from) {
|
|
|
|
CopyFrom(from);
|
|
|
|
return *this;
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline TensorShapeProto& operator=(TensorShapeProto&& from) noexcept {
|
2021-11-10 20:03:45 +08:00
|
|
|
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);
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
|
|
|
CopyFrom(from);
|
|
|
|
}
|
|
|
|
return *this;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
|
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
|
|
|
|
return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
|
|
|
|
return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
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 TensorShapeProto& default_instance() {
|
|
|
|
return *internal_default_instance();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
static inline const TensorShapeProto* internal_default_instance() {
|
|
|
|
return reinterpret_cast<const TensorShapeProto*>(
|
|
|
|
&_TensorShapeProto_default_instance_);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr int kIndexInFileMessages =
|
2018-09-11 02:07:51 +08:00
|
|
|
9;
|
|
|
|
|
|
|
|
friend void swap(TensorShapeProto& a, TensorShapeProto& b) {
|
|
|
|
a.Swap(&b);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void Swap(TensorShapeProto* 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(TensorShapeProto* other) {
|
|
|
|
if (other == this) return;
|
|
|
|
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
|
|
|
InternalSwap(other);
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
TensorShapeProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
|
|
|
return CreateMaybeMessage<TensorShapeProto>(arena);
|
|
|
|
}
|
|
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
2018-09-11 02:07:51 +08:00
|
|
|
void CopyFrom(const TensorShapeProto& from);
|
2021-11-10 20:03:45 +08:00
|
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
2018-09-11 02:07:51 +08:00
|
|
|
void MergeFrom(const TensorShapeProto& from);
|
2021-11-10 20:03:45 +08:00
|
|
|
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(); }
|
|
|
|
|
2018-09-11 02:07:51 +08:00
|
|
|
private:
|
|
|
|
void SharedCtor();
|
|
|
|
void SharedDtor();
|
2021-11-10 20:03:45 +08:00
|
|
|
void SetCachedSize(int size) const final;
|
2018-09-11 02:07:51 +08:00
|
|
|
void InternalSwap(TensorShapeProto* other);
|
2021-11-10 20:03:45 +08:00
|
|
|
|
2018-09-11 02:07:51 +08:00
|
|
|
private:
|
2021-11-10 20:03:45 +08:00
|
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
|
|
return "opencv_onnx.TensorShapeProto";
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
protected:
|
|
|
|
explicit TensorShapeProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
|
|
|
bool is_message_owned = false);
|
|
|
|
private:
|
|
|
|
static void ArenaDtor(void* object);
|
|
|
|
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
2018-09-11 02:07:51 +08:00
|
|
|
public:
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
static const ClassData _class_data_;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
|
|
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
|
|
|
|
typedef TensorShapeProto_Dimension Dimension;
|
|
|
|
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
enum : int {
|
|
|
|
kDimFieldNumber = 1,
|
|
|
|
};
|
2018-09-11 02:07:51 +08:00
|
|
|
// repeated .opencv_onnx.TensorShapeProto.Dimension dim = 1;
|
|
|
|
int dim_size() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
int _internal_dim_size() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_dim();
|
|
|
|
::opencv_onnx::TensorShapeProto_Dimension* mutable_dim(int index);
|
2021-11-10 20:03:45 +08:00
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::TensorShapeProto_Dimension >*
|
2018-09-11 02:07:51 +08:00
|
|
|
mutable_dim();
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
const ::opencv_onnx::TensorShapeProto_Dimension& _internal_dim(int index) const;
|
|
|
|
::opencv_onnx::TensorShapeProto_Dimension* _internal_add_dim();
|
|
|
|
public:
|
|
|
|
const ::opencv_onnx::TensorShapeProto_Dimension& dim(int index) const;
|
|
|
|
::opencv_onnx::TensorShapeProto_Dimension* add_dim();
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::TensorShapeProto_Dimension >&
|
2018-09-11 02:07:51 +08:00
|
|
|
dim() const;
|
|
|
|
|
|
|
|
// @@protoc_insertion_point(class_scope:opencv_onnx.TensorShapeProto)
|
|
|
|
private:
|
2021-11-10 20:03:45 +08:00
|
|
|
class _Internal;
|
|
|
|
|
|
|
|
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
|
|
|
typedef void InternalArenaConstructable_;
|
|
|
|
typedef void DestructorSkippable_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::TensorShapeProto_Dimension > dim_;
|
|
|
|
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
|
|
|
friend struct ::TableStruct_opencv_2donnx_2eproto;
|
2018-09-11 02:07:51 +08:00
|
|
|
};
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
class TypeProto_Tensor final :
|
|
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_onnx.TypeProto.Tensor) */ {
|
2018-09-11 02:07:51 +08:00
|
|
|
public:
|
2021-11-10 20:03:45 +08:00
|
|
|
inline TypeProto_Tensor() : TypeProto_Tensor(nullptr) {}
|
|
|
|
~TypeProto_Tensor() override;
|
|
|
|
explicit constexpr TypeProto_Tensor(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
TypeProto_Tensor(const TypeProto_Tensor& from);
|
|
|
|
TypeProto_Tensor(TypeProto_Tensor&& from) noexcept
|
|
|
|
: TypeProto_Tensor() {
|
|
|
|
*this = ::std::move(from);
|
|
|
|
}
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
inline TypeProto_Tensor& operator=(const TypeProto_Tensor& from) {
|
|
|
|
CopyFrom(from);
|
|
|
|
return *this;
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline TypeProto_Tensor& operator=(TypeProto_Tensor&& from) noexcept {
|
2021-11-10 20:03:45 +08:00
|
|
|
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);
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
|
|
|
CopyFrom(from);
|
|
|
|
}
|
|
|
|
return *this;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
|
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
|
|
|
|
return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
|
|
|
|
return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
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 TypeProto_Tensor& default_instance() {
|
|
|
|
return *internal_default_instance();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
static inline const TypeProto_Tensor* internal_default_instance() {
|
|
|
|
return reinterpret_cast<const TypeProto_Tensor*>(
|
|
|
|
&_TypeProto_Tensor_default_instance_);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr int kIndexInFileMessages =
|
2018-09-11 02:07:51 +08:00
|
|
|
10;
|
|
|
|
|
|
|
|
friend void swap(TypeProto_Tensor& a, TypeProto_Tensor& b) {
|
|
|
|
a.Swap(&b);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void Swap(TypeProto_Tensor* 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(TypeProto_Tensor* other) {
|
|
|
|
if (other == this) return;
|
|
|
|
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
|
|
|
InternalSwap(other);
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
TypeProto_Tensor* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
|
|
|
return CreateMaybeMessage<TypeProto_Tensor>(arena);
|
|
|
|
}
|
|
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
2018-09-11 02:07:51 +08:00
|
|
|
void CopyFrom(const TypeProto_Tensor& from);
|
2021-11-10 20:03:45 +08:00
|
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
2018-09-11 02:07:51 +08:00
|
|
|
void MergeFrom(const TypeProto_Tensor& from);
|
2021-11-10 20:03:45 +08:00
|
|
|
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(); }
|
|
|
|
|
2018-09-11 02:07:51 +08:00
|
|
|
private:
|
|
|
|
void SharedCtor();
|
|
|
|
void SharedDtor();
|
2021-11-10 20:03:45 +08:00
|
|
|
void SetCachedSize(int size) const final;
|
2018-09-11 02:07:51 +08:00
|
|
|
void InternalSwap(TypeProto_Tensor* other);
|
2021-11-10 20:03:45 +08:00
|
|
|
|
2018-09-11 02:07:51 +08:00
|
|
|
private:
|
2021-11-10 20:03:45 +08:00
|
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
|
|
return "opencv_onnx.TypeProto.Tensor";
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
protected:
|
|
|
|
explicit TypeProto_Tensor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
|
|
|
bool is_message_owned = false);
|
|
|
|
private:
|
|
|
|
static void ArenaDtor(void* object);
|
|
|
|
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
2018-09-11 02:07:51 +08:00
|
|
|
public:
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
static const ClassData _class_data_;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
|
|
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
enum : int {
|
|
|
|
kShapeFieldNumber = 2,
|
|
|
|
kElemTypeFieldNumber = 1,
|
|
|
|
};
|
2018-09-11 02:07:51 +08:00
|
|
|
// optional .opencv_onnx.TensorShapeProto shape = 2;
|
|
|
|
bool has_shape() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_shape() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_shape();
|
|
|
|
const ::opencv_onnx::TensorShapeProto& shape() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
PROTOBUF_NODISCARD ::opencv_onnx::TensorShapeProto* release_shape();
|
2018-09-11 02:07:51 +08:00
|
|
|
::opencv_onnx::TensorShapeProto* mutable_shape();
|
|
|
|
void set_allocated_shape(::opencv_onnx::TensorShapeProto* shape);
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
const ::opencv_onnx::TensorShapeProto& _internal_shape() const;
|
|
|
|
::opencv_onnx::TensorShapeProto* _internal_mutable_shape();
|
|
|
|
public:
|
|
|
|
void unsafe_arena_set_allocated_shape(
|
|
|
|
::opencv_onnx::TensorShapeProto* shape);
|
|
|
|
::opencv_onnx::TensorShapeProto* unsafe_arena_release_shape();
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// optional .opencv_onnx.TensorProto.DataType elem_type = 1;
|
|
|
|
bool has_elem_type() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_elem_type() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_elem_type();
|
|
|
|
::opencv_onnx::TensorProto_DataType elem_type() const;
|
|
|
|
void set_elem_type(::opencv_onnx::TensorProto_DataType value);
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
::opencv_onnx::TensorProto_DataType _internal_elem_type() const;
|
|
|
|
void _internal_set_elem_type(::opencv_onnx::TensorProto_DataType value);
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// @@protoc_insertion_point(class_scope:opencv_onnx.TypeProto.Tensor)
|
|
|
|
private:
|
2021-11-10 20:03:45 +08:00
|
|
|
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_;
|
2018-09-11 02:07:51 +08:00
|
|
|
::opencv_onnx::TensorShapeProto* shape_;
|
|
|
|
int elem_type_;
|
2021-11-10 20:03:45 +08:00
|
|
|
friend struct ::TableStruct_opencv_2donnx_2eproto;
|
2018-09-11 02:07:51 +08:00
|
|
|
};
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
class TypeProto final :
|
|
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_onnx.TypeProto) */ {
|
2018-09-11 02:07:51 +08:00
|
|
|
public:
|
2021-11-10 20:03:45 +08:00
|
|
|
inline TypeProto() : TypeProto(nullptr) {}
|
|
|
|
~TypeProto() override;
|
|
|
|
explicit constexpr TypeProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
TypeProto(const TypeProto& from);
|
|
|
|
TypeProto(TypeProto&& from) noexcept
|
|
|
|
: TypeProto() {
|
|
|
|
*this = ::std::move(from);
|
|
|
|
}
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
inline TypeProto& operator=(const TypeProto& from) {
|
|
|
|
CopyFrom(from);
|
|
|
|
return *this;
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline TypeProto& operator=(TypeProto&& from) noexcept {
|
2021-11-10 20:03:45 +08:00
|
|
|
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);
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
|
|
|
CopyFrom(from);
|
|
|
|
}
|
|
|
|
return *this;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
|
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
|
|
|
|
return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
|
|
|
|
return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
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 TypeProto& default_instance() {
|
|
|
|
return *internal_default_instance();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
enum ValueCase {
|
|
|
|
kTensorType = 1,
|
|
|
|
VALUE_NOT_SET = 0,
|
|
|
|
};
|
|
|
|
|
|
|
|
static inline const TypeProto* internal_default_instance() {
|
|
|
|
return reinterpret_cast<const TypeProto*>(
|
|
|
|
&_TypeProto_default_instance_);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr int kIndexInFileMessages =
|
2018-09-11 02:07:51 +08:00
|
|
|
11;
|
|
|
|
|
|
|
|
friend void swap(TypeProto& a, TypeProto& b) {
|
|
|
|
a.Swap(&b);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void Swap(TypeProto* 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(TypeProto* other) {
|
|
|
|
if (other == this) return;
|
|
|
|
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
|
|
|
InternalSwap(other);
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
TypeProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
|
|
|
return CreateMaybeMessage<TypeProto>(arena);
|
|
|
|
}
|
|
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
2018-09-11 02:07:51 +08:00
|
|
|
void CopyFrom(const TypeProto& from);
|
2021-11-10 20:03:45 +08:00
|
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
2018-09-11 02:07:51 +08:00
|
|
|
void MergeFrom(const TypeProto& from);
|
2021-11-10 20:03:45 +08:00
|
|
|
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(); }
|
|
|
|
|
2018-09-11 02:07:51 +08:00
|
|
|
private:
|
|
|
|
void SharedCtor();
|
|
|
|
void SharedDtor();
|
2021-11-10 20:03:45 +08:00
|
|
|
void SetCachedSize(int size) const final;
|
2018-09-11 02:07:51 +08:00
|
|
|
void InternalSwap(TypeProto* other);
|
2021-11-10 20:03:45 +08:00
|
|
|
|
2018-09-11 02:07:51 +08:00
|
|
|
private:
|
2021-11-10 20:03:45 +08:00
|
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
|
|
return "opencv_onnx.TypeProto";
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
protected:
|
|
|
|
explicit TypeProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
|
|
|
bool is_message_owned = false);
|
|
|
|
private:
|
|
|
|
static void ArenaDtor(void* object);
|
|
|
|
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
2018-09-11 02:07:51 +08:00
|
|
|
public:
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
static const ClassData _class_data_;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
|
|
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
|
|
|
|
typedef TypeProto_Tensor Tensor;
|
|
|
|
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
enum : int {
|
|
|
|
kDenotationFieldNumber = 6,
|
|
|
|
kTensorTypeFieldNumber = 1,
|
|
|
|
};
|
2018-09-11 02:07:51 +08:00
|
|
|
// optional string denotation = 6;
|
|
|
|
bool has_denotation() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_denotation() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_denotation();
|
2021-11-10 20:03:45 +08:00
|
|
|
const std::string& denotation() const;
|
|
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
|
|
void set_denotation(ArgT0&& arg0, ArgT... args);
|
|
|
|
std::string* mutable_denotation();
|
|
|
|
PROTOBUF_NODISCARD std::string* release_denotation();
|
|
|
|
void set_allocated_denotation(std::string* denotation);
|
|
|
|
private:
|
|
|
|
const std::string& _internal_denotation() const;
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_denotation(const std::string& value);
|
|
|
|
std::string* _internal_mutable_denotation();
|
|
|
|
public:
|
|
|
|
|
|
|
|
// .opencv_onnx.TypeProto.Tensor tensor_type = 1;
|
2018-09-11 02:07:51 +08:00
|
|
|
bool has_tensor_type() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_tensor_type() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_tensor_type();
|
|
|
|
const ::opencv_onnx::TypeProto_Tensor& tensor_type() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
PROTOBUF_NODISCARD ::opencv_onnx::TypeProto_Tensor* release_tensor_type();
|
2018-09-11 02:07:51 +08:00
|
|
|
::opencv_onnx::TypeProto_Tensor* mutable_tensor_type();
|
|
|
|
void set_allocated_tensor_type(::opencv_onnx::TypeProto_Tensor* tensor_type);
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
const ::opencv_onnx::TypeProto_Tensor& _internal_tensor_type() const;
|
|
|
|
::opencv_onnx::TypeProto_Tensor* _internal_mutable_tensor_type();
|
|
|
|
public:
|
|
|
|
void unsafe_arena_set_allocated_tensor_type(
|
|
|
|
::opencv_onnx::TypeProto_Tensor* tensor_type);
|
|
|
|
::opencv_onnx::TypeProto_Tensor* unsafe_arena_release_tensor_type();
|
2018-09-11 02:07:51 +08:00
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
void clear_value();
|
2018-09-11 02:07:51 +08:00
|
|
|
ValueCase value_case() const;
|
|
|
|
// @@protoc_insertion_point(class_scope:opencv_onnx.TypeProto)
|
|
|
|
private:
|
2021-11-10 20:03:45 +08:00
|
|
|
class _Internal;
|
2018-09-11 02:07:51 +08:00
|
|
|
void set_has_tensor_type();
|
|
|
|
|
|
|
|
inline bool has_value() const;
|
|
|
|
inline void clear_has_value();
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
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_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr denotation_;
|
2018-09-11 02:07:51 +08:00
|
|
|
union ValueUnion {
|
2021-11-10 20:03:45 +08:00
|
|
|
constexpr ValueUnion() : _constinit_{} {}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
|
2018-09-11 02:07:51 +08:00
|
|
|
::opencv_onnx::TypeProto_Tensor* tensor_type_;
|
|
|
|
} value_;
|
2021-11-10 20:03:45 +08:00
|
|
|
uint32_t _oneof_case_[1];
|
2018-09-11 02:07:51 +08:00
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
friend struct ::TableStruct_opencv_2donnx_2eproto;
|
2018-09-11 02:07:51 +08:00
|
|
|
};
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
class OperatorSetIdProto final :
|
|
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:opencv_onnx.OperatorSetIdProto) */ {
|
2018-09-11 02:07:51 +08:00
|
|
|
public:
|
2021-11-10 20:03:45 +08:00
|
|
|
inline OperatorSetIdProto() : OperatorSetIdProto(nullptr) {}
|
|
|
|
~OperatorSetIdProto() override;
|
|
|
|
explicit constexpr OperatorSetIdProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
OperatorSetIdProto(const OperatorSetIdProto& from);
|
|
|
|
OperatorSetIdProto(OperatorSetIdProto&& from) noexcept
|
|
|
|
: OperatorSetIdProto() {
|
|
|
|
*this = ::std::move(from);
|
|
|
|
}
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
inline OperatorSetIdProto& operator=(const OperatorSetIdProto& from) {
|
|
|
|
CopyFrom(from);
|
|
|
|
return *this;
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline OperatorSetIdProto& operator=(OperatorSetIdProto&& from) noexcept {
|
2021-11-10 20:03:45 +08:00
|
|
|
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);
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
|
|
|
CopyFrom(from);
|
|
|
|
}
|
|
|
|
return *this;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
|
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
|
|
|
|
return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
|
|
|
|
return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
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 OperatorSetIdProto& default_instance() {
|
|
|
|
return *internal_default_instance();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
static inline const OperatorSetIdProto* internal_default_instance() {
|
|
|
|
return reinterpret_cast<const OperatorSetIdProto*>(
|
|
|
|
&_OperatorSetIdProto_default_instance_);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
static constexpr int kIndexInFileMessages =
|
2018-09-11 02:07:51 +08:00
|
|
|
12;
|
|
|
|
|
|
|
|
friend void swap(OperatorSetIdProto& a, OperatorSetIdProto& b) {
|
|
|
|
a.Swap(&b);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void Swap(OperatorSetIdProto* 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(OperatorSetIdProto* other) {
|
|
|
|
if (other == this) return;
|
|
|
|
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
|
|
|
InternalSwap(other);
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
OperatorSetIdProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
|
|
|
return CreateMaybeMessage<OperatorSetIdProto>(arena);
|
|
|
|
}
|
|
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
2018-09-11 02:07:51 +08:00
|
|
|
void CopyFrom(const OperatorSetIdProto& from);
|
2021-11-10 20:03:45 +08:00
|
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
2018-09-11 02:07:51 +08:00
|
|
|
void MergeFrom(const OperatorSetIdProto& from);
|
2021-11-10 20:03:45 +08:00
|
|
|
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(); }
|
|
|
|
|
2018-09-11 02:07:51 +08:00
|
|
|
private:
|
|
|
|
void SharedCtor();
|
|
|
|
void SharedDtor();
|
2021-11-10 20:03:45 +08:00
|
|
|
void SetCachedSize(int size) const final;
|
2018-09-11 02:07:51 +08:00
|
|
|
void InternalSwap(OperatorSetIdProto* other);
|
2021-11-10 20:03:45 +08:00
|
|
|
|
2018-09-11 02:07:51 +08:00
|
|
|
private:
|
2021-11-10 20:03:45 +08:00
|
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
|
|
return "opencv_onnx.OperatorSetIdProto";
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
protected:
|
|
|
|
explicit OperatorSetIdProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
|
|
|
bool is_message_owned = false);
|
|
|
|
private:
|
|
|
|
static void ArenaDtor(void* object);
|
|
|
|
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
2018-09-11 02:07:51 +08:00
|
|
|
public:
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
static const ClassData _class_data_;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
|
|
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
enum : int {
|
|
|
|
kDomainFieldNumber = 1,
|
|
|
|
kVersionFieldNumber = 2,
|
|
|
|
};
|
2018-09-11 02:07:51 +08:00
|
|
|
// optional string domain = 1;
|
|
|
|
bool has_domain() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_domain() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_domain();
|
2021-11-10 20:03:45 +08:00
|
|
|
const std::string& domain() const;
|
|
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
|
|
void set_domain(ArgT0&& arg0, ArgT... args);
|
|
|
|
std::string* mutable_domain();
|
|
|
|
PROTOBUF_NODISCARD std::string* release_domain();
|
|
|
|
void set_allocated_domain(std::string* domain);
|
|
|
|
private:
|
|
|
|
const std::string& _internal_domain() const;
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_domain(const std::string& value);
|
|
|
|
std::string* _internal_mutable_domain();
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// optional int64 version = 2;
|
|
|
|
bool has_version() const;
|
2021-11-10 20:03:45 +08:00
|
|
|
private:
|
|
|
|
bool _internal_has_version() const;
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
void clear_version();
|
2021-11-10 20:03:45 +08:00
|
|
|
int64_t version() const;
|
|
|
|
void set_version(int64_t value);
|
|
|
|
private:
|
|
|
|
int64_t _internal_version() const;
|
|
|
|
void _internal_set_version(int64_t value);
|
|
|
|
public:
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// @@protoc_insertion_point(class_scope:opencv_onnx.OperatorSetIdProto)
|
|
|
|
private:
|
2021-11-10 20:03:45 +08:00
|
|
|
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_;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr domain_;
|
|
|
|
int64_t version_;
|
|
|
|
friend struct ::TableStruct_opencv_2donnx_2eproto;
|
2018-09-11 02:07:51 +08:00
|
|
|
};
|
|
|
|
// ===================================================================
|
|
|
|
|
|
|
|
|
|
|
|
// ===================================================================
|
|
|
|
|
|
|
|
#ifdef __GNUC__
|
|
|
|
#pragma GCC diagnostic push
|
|
|
|
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
|
|
|
#endif // __GNUC__
|
|
|
|
// AttributeProto
|
|
|
|
|
|
|
|
// optional string name = 1;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool AttributeProto::_internal_has_name() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool AttributeProto::has_name() const {
|
|
|
|
return _internal_has_name();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void AttributeProto::clear_name() {
|
2021-11-10 20:03:45 +08:00
|
|
|
name_.ClearToEmpty();
|
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& AttributeProto::name() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.AttributeProto.name)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_name();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
template <typename ArgT0, typename... ArgT>
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
|
|
void AttributeProto::set_name(ArgT0&& arg0, ArgT... args) {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
|
|
|
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.AttributeProto.name)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* AttributeProto::mutable_name() {
|
|
|
|
std::string* _s = _internal_mutable_name();
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.AttributeProto.name)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _s;
|
|
|
|
}
|
|
|
|
inline const std::string& AttributeProto::_internal_name() const {
|
|
|
|
return name_.Get();
|
|
|
|
}
|
|
|
|
inline void AttributeProto::_internal_set_name(const std::string& value) {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
|
|
|
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
inline std::string* AttributeProto::_internal_mutable_name() {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
|
|
|
return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* AttributeProto::release_name() {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_release:opencv_onnx.AttributeProto.name)
|
2021-11-10 20:03:45 +08:00
|
|
|
if (!_internal_has_name()) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
|
|
auto* p = name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
return p;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void AttributeProto::set_allocated_name(std::string* name) {
|
|
|
|
if (name != nullptr) {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
|
|
|
|
GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set_allocated:opencv_onnx.AttributeProto.name)
|
|
|
|
}
|
|
|
|
|
|
|
|
// optional string ref_attr_name = 21;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool AttributeProto::_internal_has_ref_attr_name() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000008u) != 0;
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool AttributeProto::has_ref_attr_name() const {
|
|
|
|
return _internal_has_ref_attr_name();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void AttributeProto::clear_ref_attr_name() {
|
2021-11-10 20:03:45 +08:00
|
|
|
ref_attr_name_.ClearToEmpty();
|
|
|
|
_has_bits_[0] &= ~0x00000008u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& AttributeProto::ref_attr_name() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.AttributeProto.ref_attr_name)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_ref_attr_name();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
template <typename ArgT0, typename... ArgT>
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
|
|
void AttributeProto::set_ref_attr_name(ArgT0&& arg0, ArgT... args) {
|
|
|
|
_has_bits_[0] |= 0x00000008u;
|
|
|
|
ref_attr_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.AttributeProto.ref_attr_name)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* AttributeProto::mutable_ref_attr_name() {
|
|
|
|
std::string* _s = _internal_mutable_ref_attr_name();
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.AttributeProto.ref_attr_name)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _s;
|
|
|
|
}
|
|
|
|
inline const std::string& AttributeProto::_internal_ref_attr_name() const {
|
|
|
|
return ref_attr_name_.Get();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void AttributeProto::_internal_set_ref_attr_name(const std::string& value) {
|
|
|
|
_has_bits_[0] |= 0x00000008u;
|
|
|
|
ref_attr_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
inline std::string* AttributeProto::_internal_mutable_ref_attr_name() {
|
|
|
|
_has_bits_[0] |= 0x00000008u;
|
|
|
|
return ref_attr_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
inline std::string* AttributeProto::release_ref_attr_name() {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_release:opencv_onnx.AttributeProto.ref_attr_name)
|
2021-11-10 20:03:45 +08:00
|
|
|
if (!_internal_has_ref_attr_name()) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
|
|
auto* p = ref_attr_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (ref_attr_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
ref_attr_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
return p;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void AttributeProto::set_allocated_ref_attr_name(std::string* ref_attr_name) {
|
|
|
|
if (ref_attr_name != nullptr) {
|
|
|
|
_has_bits_[0] |= 0x00000008u;
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
|
|
}
|
|
|
|
ref_attr_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ref_attr_name,
|
|
|
|
GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (ref_attr_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
ref_attr_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set_allocated:opencv_onnx.AttributeProto.ref_attr_name)
|
|
|
|
}
|
|
|
|
|
|
|
|
// optional string doc_string = 13;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool AttributeProto::_internal_has_doc_string() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000004u) != 0;
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool AttributeProto::has_doc_string() const {
|
|
|
|
return _internal_has_doc_string();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void AttributeProto::clear_doc_string() {
|
2021-11-10 20:03:45 +08:00
|
|
|
doc_string_.ClearToEmpty();
|
|
|
|
_has_bits_[0] &= ~0x00000004u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& AttributeProto::doc_string() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.AttributeProto.doc_string)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_doc_string();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
template <typename ArgT0, typename... ArgT>
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
|
|
void AttributeProto::set_doc_string(ArgT0&& arg0, ArgT... args) {
|
|
|
|
_has_bits_[0] |= 0x00000004u;
|
|
|
|
doc_string_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.AttributeProto.doc_string)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* AttributeProto::mutable_doc_string() {
|
|
|
|
std::string* _s = _internal_mutable_doc_string();
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.AttributeProto.doc_string)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _s;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& AttributeProto::_internal_doc_string() const {
|
|
|
|
return doc_string_.Get();
|
|
|
|
}
|
|
|
|
inline void AttributeProto::_internal_set_doc_string(const std::string& value) {
|
|
|
|
_has_bits_[0] |= 0x00000004u;
|
|
|
|
doc_string_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
inline std::string* AttributeProto::_internal_mutable_doc_string() {
|
|
|
|
_has_bits_[0] |= 0x00000004u;
|
|
|
|
return doc_string_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
inline std::string* AttributeProto::release_doc_string() {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_release:opencv_onnx.AttributeProto.doc_string)
|
2021-11-10 20:03:45 +08:00
|
|
|
if (!_internal_has_doc_string()) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
|
|
auto* p = doc_string_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (doc_string_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
doc_string_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
return p;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void AttributeProto::set_allocated_doc_string(std::string* doc_string) {
|
|
|
|
if (doc_string != nullptr) {
|
|
|
|
_has_bits_[0] |= 0x00000004u;
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000004u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
doc_string_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), doc_string,
|
|
|
|
GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (doc_string_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
doc_string_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set_allocated:opencv_onnx.AttributeProto.doc_string)
|
|
|
|
}
|
|
|
|
|
|
|
|
// optional .opencv_onnx.AttributeProto.AttributeType type = 20;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool AttributeProto::_internal_has_type() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000100u) != 0;
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool AttributeProto::has_type() const {
|
|
|
|
return _internal_has_type();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void AttributeProto::clear_type() {
|
|
|
|
type_ = 0;
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000100u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::opencv_onnx::AttributeProto_AttributeType AttributeProto::_internal_type() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return static_cast< ::opencv_onnx::AttributeProto_AttributeType >(type_);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::opencv_onnx::AttributeProto_AttributeType AttributeProto::type() const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.AttributeProto.type)
|
|
|
|
return _internal_type();
|
|
|
|
}
|
|
|
|
inline void AttributeProto::_internal_set_type(::opencv_onnx::AttributeProto_AttributeType value) {
|
2018-09-11 02:07:51 +08:00
|
|
|
assert(::opencv_onnx::AttributeProto_AttributeType_IsValid(value));
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] |= 0x00000100u;
|
2018-09-11 02:07:51 +08:00
|
|
|
type_ = value;
|
2021-11-10 20:03:45 +08:00
|
|
|
}
|
|
|
|
inline void AttributeProto::set_type(::opencv_onnx::AttributeProto_AttributeType value) {
|
|
|
|
_internal_set_type(value);
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.AttributeProto.type)
|
|
|
|
}
|
|
|
|
|
|
|
|
// optional float f = 2;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool AttributeProto::_internal_has_f() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000080u) != 0;
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool AttributeProto::has_f() const {
|
|
|
|
return _internal_has_f();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void AttributeProto::clear_f() {
|
|
|
|
f_ = 0;
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000080u;
|
|
|
|
}
|
|
|
|
inline float AttributeProto::_internal_f() const {
|
|
|
|
return f_;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline float AttributeProto::f() const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.AttributeProto.f)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_f();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void AttributeProto::_internal_set_f(float value) {
|
|
|
|
_has_bits_[0] |= 0x00000080u;
|
2018-09-11 02:07:51 +08:00
|
|
|
f_ = value;
|
2021-11-10 20:03:45 +08:00
|
|
|
}
|
|
|
|
inline void AttributeProto::set_f(float value) {
|
|
|
|
_internal_set_f(value);
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.AttributeProto.f)
|
|
|
|
}
|
|
|
|
|
|
|
|
// optional int64 i = 3;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool AttributeProto::_internal_has_i() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000040u) != 0;
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool AttributeProto::has_i() const {
|
|
|
|
return _internal_has_i();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void AttributeProto::clear_i() {
|
|
|
|
i_ = int64_t{0};
|
2018-09-11 02:07:51 +08:00
|
|
|
_has_bits_[0] &= ~0x00000040u;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int64_t AttributeProto::_internal_i() const {
|
|
|
|
return i_;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int64_t AttributeProto::i() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.AttributeProto.i)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_i();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void AttributeProto::_internal_set_i(int64_t value) {
|
|
|
|
_has_bits_[0] |= 0x00000040u;
|
2018-09-11 02:07:51 +08:00
|
|
|
i_ = value;
|
2021-11-10 20:03:45 +08:00
|
|
|
}
|
|
|
|
inline void AttributeProto::set_i(int64_t value) {
|
|
|
|
_internal_set_i(value);
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.AttributeProto.i)
|
|
|
|
}
|
|
|
|
|
|
|
|
// optional bytes s = 4;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool AttributeProto::_internal_has_s() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool AttributeProto::has_s() const {
|
|
|
|
return _internal_has_s();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void AttributeProto::clear_s() {
|
2021-11-10 20:03:45 +08:00
|
|
|
s_.ClearToEmpty();
|
|
|
|
_has_bits_[0] &= ~0x00000002u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& AttributeProto::s() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.AttributeProto.s)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_s();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
template <typename ArgT0, typename... ArgT>
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
|
|
void AttributeProto::set_s(ArgT0&& arg0, ArgT... args) {
|
|
|
|
_has_bits_[0] |= 0x00000002u;
|
|
|
|
s_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.AttributeProto.s)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* AttributeProto::mutable_s() {
|
|
|
|
std::string* _s = _internal_mutable_s();
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.AttributeProto.s)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _s;
|
|
|
|
}
|
|
|
|
inline const std::string& AttributeProto::_internal_s() const {
|
|
|
|
return s_.Get();
|
|
|
|
}
|
|
|
|
inline void AttributeProto::_internal_set_s(const std::string& value) {
|
|
|
|
_has_bits_[0] |= 0x00000002u;
|
|
|
|
s_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
inline std::string* AttributeProto::_internal_mutable_s() {
|
|
|
|
_has_bits_[0] |= 0x00000002u;
|
|
|
|
return s_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* AttributeProto::release_s() {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_release:opencv_onnx.AttributeProto.s)
|
2021-11-10 20:03:45 +08:00
|
|
|
if (!_internal_has_s()) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
|
|
auto* p = s_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (s_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
s_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
return p;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void AttributeProto::set_allocated_s(std::string* s) {
|
|
|
|
if (s != nullptr) {
|
|
|
|
_has_bits_[0] |= 0x00000002u;
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000002u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
s_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), s,
|
|
|
|
GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (s_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
s_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set_allocated:opencv_onnx.AttributeProto.s)
|
|
|
|
}
|
|
|
|
|
|
|
|
// optional .opencv_onnx.TensorProto t = 5;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool AttributeProto::_internal_has_t() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000010u) != 0;
|
|
|
|
PROTOBUF_ASSUME(!value || t_ != nullptr);
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool AttributeProto::has_t() const {
|
|
|
|
return _internal_has_t();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void AttributeProto::clear_t() {
|
|
|
|
if (t_ != nullptr) t_->Clear();
|
2018-09-11 02:07:51 +08:00
|
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const ::opencv_onnx::TensorProto& AttributeProto::_internal_t() const {
|
|
|
|
const ::opencv_onnx::TensorProto* p = t_;
|
|
|
|
return p != nullptr ? *p : reinterpret_cast<const ::opencv_onnx::TensorProto&>(
|
|
|
|
::opencv_onnx::_TensorProto_default_instance_);
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline const ::opencv_onnx::TensorProto& AttributeProto::t() const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.AttributeProto.t)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_t();
|
|
|
|
}
|
|
|
|
inline void AttributeProto::unsafe_arena_set_allocated_t(
|
|
|
|
::opencv_onnx::TensorProto* t) {
|
|
|
|
if (GetArenaForAllocation() == nullptr) {
|
|
|
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(t_);
|
|
|
|
}
|
|
|
|
t_ = t;
|
|
|
|
if (t) {
|
|
|
|
_has_bits_[0] |= 0x00000010u;
|
|
|
|
} else {
|
|
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
|
|
}
|
|
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_onnx.AttributeProto.t)
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline ::opencv_onnx::TensorProto* AttributeProto::release_t() {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
|
|
::opencv_onnx::TensorProto* temp = t_;
|
|
|
|
t_ = nullptr;
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
|
|
|
|
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
|
|
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
|
|
if (GetArenaForAllocation() == nullptr) { delete old; }
|
|
|
|
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
|
|
|
|
if (GetArenaForAllocation() != nullptr) {
|
|
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
|
|
}
|
|
|
|
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
|
|
|
|
return temp;
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::TensorProto* AttributeProto::unsafe_arena_release_t() {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_release:opencv_onnx.AttributeProto.t)
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000010u;
|
2018-09-11 02:07:51 +08:00
|
|
|
::opencv_onnx::TensorProto* temp = t_;
|
2021-11-10 20:03:45 +08:00
|
|
|
t_ = nullptr;
|
2018-09-11 02:07:51 +08:00
|
|
|
return temp;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::opencv_onnx::TensorProto* AttributeProto::_internal_mutable_t() {
|
|
|
|
_has_bits_[0] |= 0x00000010u;
|
|
|
|
if (t_ == nullptr) {
|
|
|
|
auto* p = CreateMaybeMessage<::opencv_onnx::TensorProto>(GetArenaForAllocation());
|
|
|
|
t_ = p;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
return t_;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::opencv_onnx::TensorProto* AttributeProto::mutable_t() {
|
|
|
|
::opencv_onnx::TensorProto* _msg = _internal_mutable_t();
|
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.AttributeProto.t)
|
|
|
|
return _msg;
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline void AttributeProto::set_allocated_t(::opencv_onnx::TensorProto* t) {
|
2021-11-10 20:03:45 +08:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
|
|
|
if (message_arena == nullptr) {
|
2018-09-11 02:07:51 +08:00
|
|
|
delete t_;
|
|
|
|
}
|
|
|
|
if (t) {
|
2021-11-10 20:03:45 +08:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::opencv_onnx::TensorProto>::GetOwningArena(t);
|
2018-09-11 02:07:51 +08:00
|
|
|
if (message_arena != submessage_arena) {
|
2021-11-10 20:03:45 +08:00
|
|
|
t = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
2018-09-11 02:07:51 +08:00
|
|
|
message_arena, t, submessage_arena);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] |= 0x00000010u;
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000010u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
t_ = t;
|
|
|
|
// @@protoc_insertion_point(field_set_allocated:opencv_onnx.AttributeProto.t)
|
|
|
|
}
|
|
|
|
|
|
|
|
// optional .opencv_onnx.GraphProto g = 6;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool AttributeProto::_internal_has_g() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000020u) != 0;
|
|
|
|
PROTOBUF_ASSUME(!value || g_ != nullptr);
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool AttributeProto::has_g() const {
|
|
|
|
return _internal_has_g();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void AttributeProto::clear_g() {
|
|
|
|
if (g_ != nullptr) g_->Clear();
|
2018-09-11 02:07:51 +08:00
|
|
|
_has_bits_[0] &= ~0x00000020u;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const ::opencv_onnx::GraphProto& AttributeProto::_internal_g() const {
|
|
|
|
const ::opencv_onnx::GraphProto* p = g_;
|
|
|
|
return p != nullptr ? *p : reinterpret_cast<const ::opencv_onnx::GraphProto&>(
|
|
|
|
::opencv_onnx::_GraphProto_default_instance_);
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline const ::opencv_onnx::GraphProto& AttributeProto::g() const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.AttributeProto.g)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_g();
|
|
|
|
}
|
|
|
|
inline void AttributeProto::unsafe_arena_set_allocated_g(
|
|
|
|
::opencv_onnx::GraphProto* g) {
|
|
|
|
if (GetArenaForAllocation() == nullptr) {
|
|
|
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(g_);
|
|
|
|
}
|
|
|
|
g_ = g;
|
|
|
|
if (g) {
|
|
|
|
_has_bits_[0] |= 0x00000020u;
|
|
|
|
} else {
|
|
|
|
_has_bits_[0] &= ~0x00000020u;
|
|
|
|
}
|
|
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_onnx.AttributeProto.g)
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline ::opencv_onnx::GraphProto* AttributeProto::release_g() {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000020u;
|
|
|
|
::opencv_onnx::GraphProto* temp = g_;
|
|
|
|
g_ = nullptr;
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
|
|
|
|
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
|
|
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
|
|
if (GetArenaForAllocation() == nullptr) { delete old; }
|
|
|
|
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
|
|
|
|
if (GetArenaForAllocation() != nullptr) {
|
|
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
|
|
}
|
|
|
|
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
|
|
|
|
return temp;
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::GraphProto* AttributeProto::unsafe_arena_release_g() {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_release:opencv_onnx.AttributeProto.g)
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000020u;
|
2018-09-11 02:07:51 +08:00
|
|
|
::opencv_onnx::GraphProto* temp = g_;
|
2021-11-10 20:03:45 +08:00
|
|
|
g_ = nullptr;
|
2018-09-11 02:07:51 +08:00
|
|
|
return temp;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::opencv_onnx::GraphProto* AttributeProto::_internal_mutable_g() {
|
|
|
|
_has_bits_[0] |= 0x00000020u;
|
|
|
|
if (g_ == nullptr) {
|
|
|
|
auto* p = CreateMaybeMessage<::opencv_onnx::GraphProto>(GetArenaForAllocation());
|
|
|
|
g_ = p;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
return g_;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::opencv_onnx::GraphProto* AttributeProto::mutable_g() {
|
|
|
|
::opencv_onnx::GraphProto* _msg = _internal_mutable_g();
|
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.AttributeProto.g)
|
|
|
|
return _msg;
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline void AttributeProto::set_allocated_g(::opencv_onnx::GraphProto* g) {
|
2021-11-10 20:03:45 +08:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
|
|
|
if (message_arena == nullptr) {
|
2018-09-11 02:07:51 +08:00
|
|
|
delete g_;
|
|
|
|
}
|
|
|
|
if (g) {
|
2021-11-10 20:03:45 +08:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::opencv_onnx::GraphProto>::GetOwningArena(g);
|
2018-09-11 02:07:51 +08:00
|
|
|
if (message_arena != submessage_arena) {
|
2021-11-10 20:03:45 +08:00
|
|
|
g = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
2018-09-11 02:07:51 +08:00
|
|
|
message_arena, g, submessage_arena);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] |= 0x00000020u;
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000020u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
g_ = g;
|
|
|
|
// @@protoc_insertion_point(field_set_allocated:opencv_onnx.AttributeProto.g)
|
|
|
|
}
|
|
|
|
|
|
|
|
// repeated float floats = 7;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int AttributeProto::_internal_floats_size() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return floats_.size();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int AttributeProto::floats_size() const {
|
|
|
|
return _internal_floats_size();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline void AttributeProto::clear_floats() {
|
|
|
|
floats_.Clear();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline float AttributeProto::_internal_floats(int index) const {
|
|
|
|
return floats_.Get(index);
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline float AttributeProto::floats(int index) const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.AttributeProto.floats)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_floats(index);
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void AttributeProto::set_floats(int index, float value) {
|
|
|
|
floats_.Set(index, value);
|
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.AttributeProto.floats)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void AttributeProto::_internal_add_floats(float value) {
|
2018-09-11 02:07:51 +08:00
|
|
|
floats_.Add(value);
|
2021-11-10 20:03:45 +08:00
|
|
|
}
|
|
|
|
inline void AttributeProto::add_floats(float value) {
|
|
|
|
_internal_add_floats(value);
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_add:opencv_onnx.AttributeProto.floats)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
|
|
|
|
AttributeProto::_internal_floats() const {
|
|
|
|
return floats_;
|
|
|
|
}
|
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
|
2018-09-11 02:07:51 +08:00
|
|
|
AttributeProto::floats() const {
|
|
|
|
// @@protoc_insertion_point(field_list:opencv_onnx.AttributeProto.floats)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_floats();
|
|
|
|
}
|
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
|
|
|
|
AttributeProto::_internal_mutable_floats() {
|
|
|
|
return &floats_;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
|
2018-09-11 02:07:51 +08:00
|
|
|
AttributeProto::mutable_floats() {
|
|
|
|
// @@protoc_insertion_point(field_mutable_list:opencv_onnx.AttributeProto.floats)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_mutable_floats();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// repeated int64 ints = 8;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int AttributeProto::_internal_ints_size() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return ints_.size();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int AttributeProto::ints_size() const {
|
|
|
|
return _internal_ints_size();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline void AttributeProto::clear_ints() {
|
|
|
|
ints_.Clear();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int64_t AttributeProto::_internal_ints(int index) const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return ints_.Get(index);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int64_t AttributeProto::ints(int index) const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.AttributeProto.ints)
|
|
|
|
return _internal_ints(index);
|
|
|
|
}
|
|
|
|
inline void AttributeProto::set_ints(int index, int64_t value) {
|
2018-09-11 02:07:51 +08:00
|
|
|
ints_.Set(index, value);
|
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.AttributeProto.ints)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void AttributeProto::_internal_add_ints(int64_t value) {
|
2018-09-11 02:07:51 +08:00
|
|
|
ints_.Add(value);
|
2021-11-10 20:03:45 +08:00
|
|
|
}
|
|
|
|
inline void AttributeProto::add_ints(int64_t value) {
|
|
|
|
_internal_add_ints(value);
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_add:opencv_onnx.AttributeProto.ints)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
|
|
|
|
AttributeProto::_internal_ints() const {
|
|
|
|
return ints_;
|
|
|
|
}
|
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
|
2018-09-11 02:07:51 +08:00
|
|
|
AttributeProto::ints() const {
|
|
|
|
// @@protoc_insertion_point(field_list:opencv_onnx.AttributeProto.ints)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_ints();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
|
|
|
|
AttributeProto::_internal_mutable_ints() {
|
|
|
|
return &ints_;
|
|
|
|
}
|
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
|
2018-09-11 02:07:51 +08:00
|
|
|
AttributeProto::mutable_ints() {
|
|
|
|
// @@protoc_insertion_point(field_mutable_list:opencv_onnx.AttributeProto.ints)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_mutable_ints();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// repeated bytes strings = 9;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int AttributeProto::_internal_strings_size() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return strings_.size();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int AttributeProto::strings_size() const {
|
|
|
|
return _internal_strings_size();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline void AttributeProto::clear_strings() {
|
|
|
|
strings_.Clear();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* AttributeProto::add_strings() {
|
|
|
|
std::string* _s = _internal_add_strings();
|
|
|
|
// @@protoc_insertion_point(field_add_mutable:opencv_onnx.AttributeProto.strings)
|
|
|
|
return _s;
|
|
|
|
}
|
|
|
|
inline const std::string& AttributeProto::_internal_strings(int index) const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return strings_.Get(index);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& AttributeProto::strings(int index) const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.AttributeProto.strings)
|
|
|
|
return _internal_strings(index);
|
|
|
|
}
|
|
|
|
inline std::string* AttributeProto::mutable_strings(int index) {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.AttributeProto.strings)
|
|
|
|
return strings_.Mutable(index);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void AttributeProto::set_strings(int index, const std::string& value) {
|
2018-09-11 02:07:51 +08:00
|
|
|
strings_.Mutable(index)->assign(value);
|
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.AttributeProto.strings)
|
2021-11-10 20:03:45 +08:00
|
|
|
}
|
|
|
|
inline void AttributeProto::set_strings(int index, std::string&& value) {
|
2018-09-11 02:07:51 +08:00
|
|
|
strings_.Mutable(index)->assign(std::move(value));
|
2021-11-10 20:03:45 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.AttributeProto.strings)
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void AttributeProto::set_strings(int index, const char* value) {
|
2021-11-10 20:03:45 +08:00
|
|
|
GOOGLE_DCHECK(value != nullptr);
|
2018-09-11 02:07:51 +08:00
|
|
|
strings_.Mutable(index)->assign(value);
|
|
|
|
// @@protoc_insertion_point(field_set_char:opencv_onnx.AttributeProto.strings)
|
|
|
|
}
|
|
|
|
inline void AttributeProto::set_strings(int index, const void* value, size_t size) {
|
|
|
|
strings_.Mutable(index)->assign(
|
|
|
|
reinterpret_cast<const char*>(value), size);
|
|
|
|
// @@protoc_insertion_point(field_set_pointer:opencv_onnx.AttributeProto.strings)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* AttributeProto::_internal_add_strings() {
|
2018-09-11 02:07:51 +08:00
|
|
|
return strings_.Add();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void AttributeProto::add_strings(const std::string& value) {
|
2018-09-11 02:07:51 +08:00
|
|
|
strings_.Add()->assign(value);
|
|
|
|
// @@protoc_insertion_point(field_add:opencv_onnx.AttributeProto.strings)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void AttributeProto::add_strings(std::string&& value) {
|
2018-09-11 02:07:51 +08:00
|
|
|
strings_.Add(std::move(value));
|
|
|
|
// @@protoc_insertion_point(field_add:opencv_onnx.AttributeProto.strings)
|
|
|
|
}
|
|
|
|
inline void AttributeProto::add_strings(const char* value) {
|
2021-11-10 20:03:45 +08:00
|
|
|
GOOGLE_DCHECK(value != nullptr);
|
2018-09-11 02:07:51 +08:00
|
|
|
strings_.Add()->assign(value);
|
|
|
|
// @@protoc_insertion_point(field_add_char:opencv_onnx.AttributeProto.strings)
|
|
|
|
}
|
|
|
|
inline void AttributeProto::add_strings(const void* value, size_t size) {
|
|
|
|
strings_.Add()->assign(reinterpret_cast<const char*>(value), size);
|
|
|
|
// @@protoc_insertion_point(field_add_pointer:opencv_onnx.AttributeProto.strings)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
|
2018-09-11 02:07:51 +08:00
|
|
|
AttributeProto::strings() const {
|
|
|
|
// @@protoc_insertion_point(field_list:opencv_onnx.AttributeProto.strings)
|
|
|
|
return strings_;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
|
2018-09-11 02:07:51 +08:00
|
|
|
AttributeProto::mutable_strings() {
|
|
|
|
// @@protoc_insertion_point(field_mutable_list:opencv_onnx.AttributeProto.strings)
|
|
|
|
return &strings_;
|
|
|
|
}
|
|
|
|
|
|
|
|
// repeated .opencv_onnx.TensorProto tensors = 10;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int AttributeProto::_internal_tensors_size() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return tensors_.size();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int AttributeProto::tensors_size() const {
|
|
|
|
return _internal_tensors_size();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline void AttributeProto::clear_tensors() {
|
|
|
|
tensors_.Clear();
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::TensorProto* AttributeProto::mutable_tensors(int index) {
|
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.AttributeProto.tensors)
|
|
|
|
return tensors_.Mutable(index);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::TensorProto >*
|
2018-09-11 02:07:51 +08:00
|
|
|
AttributeProto::mutable_tensors() {
|
|
|
|
// @@protoc_insertion_point(field_mutable_list:opencv_onnx.AttributeProto.tensors)
|
|
|
|
return &tensors_;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const ::opencv_onnx::TensorProto& AttributeProto::_internal_tensors(int index) const {
|
|
|
|
return tensors_.Get(index);
|
|
|
|
}
|
|
|
|
inline const ::opencv_onnx::TensorProto& AttributeProto::tensors(int index) const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.AttributeProto.tensors)
|
|
|
|
return _internal_tensors(index);
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::TensorProto* AttributeProto::_internal_add_tensors() {
|
|
|
|
return tensors_.Add();
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::TensorProto* AttributeProto::add_tensors() {
|
|
|
|
::opencv_onnx::TensorProto* _add = _internal_add_tensors();
|
|
|
|
// @@protoc_insertion_point(field_add:opencv_onnx.AttributeProto.tensors)
|
|
|
|
return _add;
|
|
|
|
}
|
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::TensorProto >&
|
2018-09-11 02:07:51 +08:00
|
|
|
AttributeProto::tensors() const {
|
|
|
|
// @@protoc_insertion_point(field_list:opencv_onnx.AttributeProto.tensors)
|
|
|
|
return tensors_;
|
|
|
|
}
|
|
|
|
|
|
|
|
// repeated .opencv_onnx.GraphProto graphs = 11;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int AttributeProto::_internal_graphs_size() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return graphs_.size();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int AttributeProto::graphs_size() const {
|
|
|
|
return _internal_graphs_size();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline void AttributeProto::clear_graphs() {
|
|
|
|
graphs_.Clear();
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::GraphProto* AttributeProto::mutable_graphs(int index) {
|
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.AttributeProto.graphs)
|
|
|
|
return graphs_.Mutable(index);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::GraphProto >*
|
2018-09-11 02:07:51 +08:00
|
|
|
AttributeProto::mutable_graphs() {
|
|
|
|
// @@protoc_insertion_point(field_mutable_list:opencv_onnx.AttributeProto.graphs)
|
|
|
|
return &graphs_;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const ::opencv_onnx::GraphProto& AttributeProto::_internal_graphs(int index) const {
|
|
|
|
return graphs_.Get(index);
|
|
|
|
}
|
|
|
|
inline const ::opencv_onnx::GraphProto& AttributeProto::graphs(int index) const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.AttributeProto.graphs)
|
|
|
|
return _internal_graphs(index);
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::GraphProto* AttributeProto::_internal_add_graphs() {
|
|
|
|
return graphs_.Add();
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::GraphProto* AttributeProto::add_graphs() {
|
|
|
|
::opencv_onnx::GraphProto* _add = _internal_add_graphs();
|
|
|
|
// @@protoc_insertion_point(field_add:opencv_onnx.AttributeProto.graphs)
|
|
|
|
return _add;
|
|
|
|
}
|
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::GraphProto >&
|
2018-09-11 02:07:51 +08:00
|
|
|
AttributeProto::graphs() const {
|
|
|
|
// @@protoc_insertion_point(field_list:opencv_onnx.AttributeProto.graphs)
|
|
|
|
return graphs_;
|
|
|
|
}
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
|
|
// ValueInfoProto
|
|
|
|
|
|
|
|
// optional string name = 1;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool ValueInfoProto::_internal_has_name() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool ValueInfoProto::has_name() const {
|
|
|
|
return _internal_has_name();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void ValueInfoProto::clear_name() {
|
2021-11-10 20:03:45 +08:00
|
|
|
name_.ClearToEmpty();
|
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& ValueInfoProto::name() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.ValueInfoProto.name)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_name();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
template <typename ArgT0, typename... ArgT>
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
|
|
void ValueInfoProto::set_name(ArgT0&& arg0, ArgT... args) {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
|
|
|
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.ValueInfoProto.name)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* ValueInfoProto::mutable_name() {
|
|
|
|
std::string* _s = _internal_mutable_name();
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.ValueInfoProto.name)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _s;
|
|
|
|
}
|
|
|
|
inline const std::string& ValueInfoProto::_internal_name() const {
|
|
|
|
return name_.Get();
|
|
|
|
}
|
|
|
|
inline void ValueInfoProto::_internal_set_name(const std::string& value) {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
|
|
|
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
inline std::string* ValueInfoProto::_internal_mutable_name() {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
|
|
|
return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* ValueInfoProto::release_name() {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_release:opencv_onnx.ValueInfoProto.name)
|
2021-11-10 20:03:45 +08:00
|
|
|
if (!_internal_has_name()) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
|
|
auto* p = name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
return p;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void ValueInfoProto::set_allocated_name(std::string* name) {
|
|
|
|
if (name != nullptr) {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
|
|
|
|
GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set_allocated:opencv_onnx.ValueInfoProto.name)
|
|
|
|
}
|
|
|
|
|
|
|
|
// optional .opencv_onnx.TypeProto type = 2;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool ValueInfoProto::_internal_has_type() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000004u) != 0;
|
|
|
|
PROTOBUF_ASSUME(!value || type_ != nullptr);
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool ValueInfoProto::has_type() const {
|
|
|
|
return _internal_has_type();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void ValueInfoProto::clear_type() {
|
|
|
|
if (type_ != nullptr) type_->Clear();
|
2018-09-11 02:07:51 +08:00
|
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const ::opencv_onnx::TypeProto& ValueInfoProto::_internal_type() const {
|
|
|
|
const ::opencv_onnx::TypeProto* p = type_;
|
|
|
|
return p != nullptr ? *p : reinterpret_cast<const ::opencv_onnx::TypeProto&>(
|
|
|
|
::opencv_onnx::_TypeProto_default_instance_);
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline const ::opencv_onnx::TypeProto& ValueInfoProto::type() const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.ValueInfoProto.type)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_type();
|
|
|
|
}
|
|
|
|
inline void ValueInfoProto::unsafe_arena_set_allocated_type(
|
|
|
|
::opencv_onnx::TypeProto* type) {
|
|
|
|
if (GetArenaForAllocation() == nullptr) {
|
|
|
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(type_);
|
|
|
|
}
|
|
|
|
type_ = type;
|
|
|
|
if (type) {
|
|
|
|
_has_bits_[0] |= 0x00000004u;
|
|
|
|
} else {
|
|
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
|
|
}
|
|
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_onnx.ValueInfoProto.type)
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline ::opencv_onnx::TypeProto* ValueInfoProto::release_type() {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
|
|
::opencv_onnx::TypeProto* temp = type_;
|
|
|
|
type_ = nullptr;
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
|
|
|
|
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
|
|
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
|
|
if (GetArenaForAllocation() == nullptr) { delete old; }
|
|
|
|
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
|
|
|
|
if (GetArenaForAllocation() != nullptr) {
|
|
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
|
|
}
|
|
|
|
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
|
|
|
|
return temp;
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::TypeProto* ValueInfoProto::unsafe_arena_release_type() {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_release:opencv_onnx.ValueInfoProto.type)
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000004u;
|
2018-09-11 02:07:51 +08:00
|
|
|
::opencv_onnx::TypeProto* temp = type_;
|
2021-11-10 20:03:45 +08:00
|
|
|
type_ = nullptr;
|
2018-09-11 02:07:51 +08:00
|
|
|
return temp;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::opencv_onnx::TypeProto* ValueInfoProto::_internal_mutable_type() {
|
|
|
|
_has_bits_[0] |= 0x00000004u;
|
|
|
|
if (type_ == nullptr) {
|
|
|
|
auto* p = CreateMaybeMessage<::opencv_onnx::TypeProto>(GetArenaForAllocation());
|
|
|
|
type_ = p;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
return type_;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::opencv_onnx::TypeProto* ValueInfoProto::mutable_type() {
|
|
|
|
::opencv_onnx::TypeProto* _msg = _internal_mutable_type();
|
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.ValueInfoProto.type)
|
|
|
|
return _msg;
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline void ValueInfoProto::set_allocated_type(::opencv_onnx::TypeProto* type) {
|
2021-11-10 20:03:45 +08:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
|
|
|
if (message_arena == nullptr) {
|
2018-09-11 02:07:51 +08:00
|
|
|
delete type_;
|
|
|
|
}
|
|
|
|
if (type) {
|
2021-11-10 20:03:45 +08:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::opencv_onnx::TypeProto>::GetOwningArena(type);
|
2018-09-11 02:07:51 +08:00
|
|
|
if (message_arena != submessage_arena) {
|
2021-11-10 20:03:45 +08:00
|
|
|
type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
2018-09-11 02:07:51 +08:00
|
|
|
message_arena, type, submessage_arena);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] |= 0x00000004u;
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000004u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
type_ = type;
|
|
|
|
// @@protoc_insertion_point(field_set_allocated:opencv_onnx.ValueInfoProto.type)
|
|
|
|
}
|
|
|
|
|
|
|
|
// optional string doc_string = 3;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool ValueInfoProto::_internal_has_doc_string() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool ValueInfoProto::has_doc_string() const {
|
|
|
|
return _internal_has_doc_string();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void ValueInfoProto::clear_doc_string() {
|
2021-11-10 20:03:45 +08:00
|
|
|
doc_string_.ClearToEmpty();
|
|
|
|
_has_bits_[0] &= ~0x00000002u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& ValueInfoProto::doc_string() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.ValueInfoProto.doc_string)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_doc_string();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
template <typename ArgT0, typename... ArgT>
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
|
|
void ValueInfoProto::set_doc_string(ArgT0&& arg0, ArgT... args) {
|
|
|
|
_has_bits_[0] |= 0x00000002u;
|
|
|
|
doc_string_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.ValueInfoProto.doc_string)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* ValueInfoProto::mutable_doc_string() {
|
|
|
|
std::string* _s = _internal_mutable_doc_string();
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.ValueInfoProto.doc_string)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _s;
|
|
|
|
}
|
|
|
|
inline const std::string& ValueInfoProto::_internal_doc_string() const {
|
|
|
|
return doc_string_.Get();
|
|
|
|
}
|
|
|
|
inline void ValueInfoProto::_internal_set_doc_string(const std::string& value) {
|
|
|
|
_has_bits_[0] |= 0x00000002u;
|
|
|
|
doc_string_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* ValueInfoProto::_internal_mutable_doc_string() {
|
|
|
|
_has_bits_[0] |= 0x00000002u;
|
|
|
|
return doc_string_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
inline std::string* ValueInfoProto::release_doc_string() {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_release:opencv_onnx.ValueInfoProto.doc_string)
|
2021-11-10 20:03:45 +08:00
|
|
|
if (!_internal_has_doc_string()) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
|
|
auto* p = doc_string_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (doc_string_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
doc_string_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
return p;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void ValueInfoProto::set_allocated_doc_string(std::string* doc_string) {
|
|
|
|
if (doc_string != nullptr) {
|
|
|
|
_has_bits_[0] |= 0x00000002u;
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
|
|
}
|
|
|
|
doc_string_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), doc_string,
|
|
|
|
GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (doc_string_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
doc_string_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set_allocated:opencv_onnx.ValueInfoProto.doc_string)
|
|
|
|
}
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
|
|
// NodeProto
|
|
|
|
|
|
|
|
// repeated string input = 1;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int NodeProto::_internal_input_size() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return input_.size();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int NodeProto::input_size() const {
|
|
|
|
return _internal_input_size();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline void NodeProto::clear_input() {
|
|
|
|
input_.Clear();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* NodeProto::add_input() {
|
|
|
|
std::string* _s = _internal_add_input();
|
|
|
|
// @@protoc_insertion_point(field_add_mutable:opencv_onnx.NodeProto.input)
|
|
|
|
return _s;
|
|
|
|
}
|
|
|
|
inline const std::string& NodeProto::_internal_input(int index) const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return input_.Get(index);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& NodeProto::input(int index) const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.NodeProto.input)
|
|
|
|
return _internal_input(index);
|
|
|
|
}
|
|
|
|
inline std::string* NodeProto::mutable_input(int index) {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.NodeProto.input)
|
|
|
|
return input_.Mutable(index);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void NodeProto::set_input(int index, const std::string& value) {
|
2018-09-11 02:07:51 +08:00
|
|
|
input_.Mutable(index)->assign(value);
|
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.NodeProto.input)
|
2021-11-10 20:03:45 +08:00
|
|
|
}
|
|
|
|
inline void NodeProto::set_input(int index, std::string&& value) {
|
2018-09-11 02:07:51 +08:00
|
|
|
input_.Mutable(index)->assign(std::move(value));
|
2021-11-10 20:03:45 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.NodeProto.input)
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void NodeProto::set_input(int index, const char* value) {
|
2021-11-10 20:03:45 +08:00
|
|
|
GOOGLE_DCHECK(value != nullptr);
|
2018-09-11 02:07:51 +08:00
|
|
|
input_.Mutable(index)->assign(value);
|
|
|
|
// @@protoc_insertion_point(field_set_char:opencv_onnx.NodeProto.input)
|
|
|
|
}
|
|
|
|
inline void NodeProto::set_input(int index, const char* value, size_t size) {
|
|
|
|
input_.Mutable(index)->assign(
|
|
|
|
reinterpret_cast<const char*>(value), size);
|
|
|
|
// @@protoc_insertion_point(field_set_pointer:opencv_onnx.NodeProto.input)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* NodeProto::_internal_add_input() {
|
2018-09-11 02:07:51 +08:00
|
|
|
return input_.Add();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void NodeProto::add_input(const std::string& value) {
|
2018-09-11 02:07:51 +08:00
|
|
|
input_.Add()->assign(value);
|
|
|
|
// @@protoc_insertion_point(field_add:opencv_onnx.NodeProto.input)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void NodeProto::add_input(std::string&& value) {
|
2018-09-11 02:07:51 +08:00
|
|
|
input_.Add(std::move(value));
|
|
|
|
// @@protoc_insertion_point(field_add:opencv_onnx.NodeProto.input)
|
|
|
|
}
|
|
|
|
inline void NodeProto::add_input(const char* value) {
|
2021-11-10 20:03:45 +08:00
|
|
|
GOOGLE_DCHECK(value != nullptr);
|
2018-09-11 02:07:51 +08:00
|
|
|
input_.Add()->assign(value);
|
|
|
|
// @@protoc_insertion_point(field_add_char:opencv_onnx.NodeProto.input)
|
|
|
|
}
|
|
|
|
inline void NodeProto::add_input(const char* value, size_t size) {
|
|
|
|
input_.Add()->assign(reinterpret_cast<const char*>(value), size);
|
|
|
|
// @@protoc_insertion_point(field_add_pointer:opencv_onnx.NodeProto.input)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
|
2018-09-11 02:07:51 +08:00
|
|
|
NodeProto::input() const {
|
|
|
|
// @@protoc_insertion_point(field_list:opencv_onnx.NodeProto.input)
|
|
|
|
return input_;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
|
2018-09-11 02:07:51 +08:00
|
|
|
NodeProto::mutable_input() {
|
|
|
|
// @@protoc_insertion_point(field_mutable_list:opencv_onnx.NodeProto.input)
|
|
|
|
return &input_;
|
|
|
|
}
|
|
|
|
|
|
|
|
// repeated string output = 2;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int NodeProto::_internal_output_size() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return output_.size();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int NodeProto::output_size() const {
|
|
|
|
return _internal_output_size();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline void NodeProto::clear_output() {
|
|
|
|
output_.Clear();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* NodeProto::add_output() {
|
|
|
|
std::string* _s = _internal_add_output();
|
|
|
|
// @@protoc_insertion_point(field_add_mutable:opencv_onnx.NodeProto.output)
|
|
|
|
return _s;
|
|
|
|
}
|
|
|
|
inline const std::string& NodeProto::_internal_output(int index) const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return output_.Get(index);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& NodeProto::output(int index) const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.NodeProto.output)
|
|
|
|
return _internal_output(index);
|
|
|
|
}
|
|
|
|
inline std::string* NodeProto::mutable_output(int index) {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.NodeProto.output)
|
|
|
|
return output_.Mutable(index);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void NodeProto::set_output(int index, const std::string& value) {
|
2018-09-11 02:07:51 +08:00
|
|
|
output_.Mutable(index)->assign(value);
|
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.NodeProto.output)
|
2021-11-10 20:03:45 +08:00
|
|
|
}
|
|
|
|
inline void NodeProto::set_output(int index, std::string&& value) {
|
2018-09-11 02:07:51 +08:00
|
|
|
output_.Mutable(index)->assign(std::move(value));
|
2021-11-10 20:03:45 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.NodeProto.output)
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void NodeProto::set_output(int index, const char* value) {
|
2021-11-10 20:03:45 +08:00
|
|
|
GOOGLE_DCHECK(value != nullptr);
|
2018-09-11 02:07:51 +08:00
|
|
|
output_.Mutable(index)->assign(value);
|
|
|
|
// @@protoc_insertion_point(field_set_char:opencv_onnx.NodeProto.output)
|
|
|
|
}
|
|
|
|
inline void NodeProto::set_output(int index, const char* value, size_t size) {
|
|
|
|
output_.Mutable(index)->assign(
|
|
|
|
reinterpret_cast<const char*>(value), size);
|
|
|
|
// @@protoc_insertion_point(field_set_pointer:opencv_onnx.NodeProto.output)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* NodeProto::_internal_add_output() {
|
2018-09-11 02:07:51 +08:00
|
|
|
return output_.Add();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void NodeProto::add_output(const std::string& value) {
|
2018-09-11 02:07:51 +08:00
|
|
|
output_.Add()->assign(value);
|
|
|
|
// @@protoc_insertion_point(field_add:opencv_onnx.NodeProto.output)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void NodeProto::add_output(std::string&& value) {
|
2018-09-11 02:07:51 +08:00
|
|
|
output_.Add(std::move(value));
|
|
|
|
// @@protoc_insertion_point(field_add:opencv_onnx.NodeProto.output)
|
|
|
|
}
|
|
|
|
inline void NodeProto::add_output(const char* value) {
|
2021-11-10 20:03:45 +08:00
|
|
|
GOOGLE_DCHECK(value != nullptr);
|
2018-09-11 02:07:51 +08:00
|
|
|
output_.Add()->assign(value);
|
|
|
|
// @@protoc_insertion_point(field_add_char:opencv_onnx.NodeProto.output)
|
|
|
|
}
|
|
|
|
inline void NodeProto::add_output(const char* value, size_t size) {
|
|
|
|
output_.Add()->assign(reinterpret_cast<const char*>(value), size);
|
|
|
|
// @@protoc_insertion_point(field_add_pointer:opencv_onnx.NodeProto.output)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
|
2018-09-11 02:07:51 +08:00
|
|
|
NodeProto::output() const {
|
|
|
|
// @@protoc_insertion_point(field_list:opencv_onnx.NodeProto.output)
|
|
|
|
return output_;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
|
2018-09-11 02:07:51 +08:00
|
|
|
NodeProto::mutable_output() {
|
|
|
|
// @@protoc_insertion_point(field_mutable_list:opencv_onnx.NodeProto.output)
|
|
|
|
return &output_;
|
|
|
|
}
|
|
|
|
|
|
|
|
// optional string name = 3;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool NodeProto::_internal_has_name() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool NodeProto::has_name() const {
|
|
|
|
return _internal_has_name();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void NodeProto::clear_name() {
|
2021-11-10 20:03:45 +08:00
|
|
|
name_.ClearToEmpty();
|
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& NodeProto::name() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.NodeProto.name)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_name();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
template <typename ArgT0, typename... ArgT>
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
|
|
void NodeProto::set_name(ArgT0&& arg0, ArgT... args) {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
|
|
|
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.NodeProto.name)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* NodeProto::mutable_name() {
|
|
|
|
std::string* _s = _internal_mutable_name();
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.NodeProto.name)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _s;
|
|
|
|
}
|
|
|
|
inline const std::string& NodeProto::_internal_name() const {
|
|
|
|
return name_.Get();
|
|
|
|
}
|
|
|
|
inline void NodeProto::_internal_set_name(const std::string& value) {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
|
|
|
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* NodeProto::_internal_mutable_name() {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
|
|
|
return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
inline std::string* NodeProto::release_name() {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_release:opencv_onnx.NodeProto.name)
|
2021-11-10 20:03:45 +08:00
|
|
|
if (!_internal_has_name()) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
|
|
auto* p = name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
return p;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void NodeProto::set_allocated_name(std::string* name) {
|
|
|
|
if (name != nullptr) {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
|
|
}
|
|
|
|
name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
|
|
|
|
GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set_allocated:opencv_onnx.NodeProto.name)
|
|
|
|
}
|
|
|
|
|
|
|
|
// optional string op_type = 4;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool NodeProto::_internal_has_op_type() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool NodeProto::has_op_type() const {
|
|
|
|
return _internal_has_op_type();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void NodeProto::clear_op_type() {
|
2021-11-10 20:03:45 +08:00
|
|
|
op_type_.ClearToEmpty();
|
|
|
|
_has_bits_[0] &= ~0x00000002u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& NodeProto::op_type() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.NodeProto.op_type)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_op_type();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
template <typename ArgT0, typename... ArgT>
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
|
|
void NodeProto::set_op_type(ArgT0&& arg0, ArgT... args) {
|
|
|
|
_has_bits_[0] |= 0x00000002u;
|
|
|
|
op_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.NodeProto.op_type)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* NodeProto::mutable_op_type() {
|
|
|
|
std::string* _s = _internal_mutable_op_type();
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.NodeProto.op_type)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _s;
|
|
|
|
}
|
|
|
|
inline const std::string& NodeProto::_internal_op_type() const {
|
|
|
|
return op_type_.Get();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void NodeProto::_internal_set_op_type(const std::string& value) {
|
|
|
|
_has_bits_[0] |= 0x00000002u;
|
|
|
|
op_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
inline std::string* NodeProto::_internal_mutable_op_type() {
|
|
|
|
_has_bits_[0] |= 0x00000002u;
|
|
|
|
return op_type_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
inline std::string* NodeProto::release_op_type() {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_release:opencv_onnx.NodeProto.op_type)
|
2021-11-10 20:03:45 +08:00
|
|
|
if (!_internal_has_op_type()) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
|
|
auto* p = op_type_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (op_type_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
op_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
return p;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void NodeProto::set_allocated_op_type(std::string* op_type) {
|
|
|
|
if (op_type != nullptr) {
|
|
|
|
_has_bits_[0] |= 0x00000002u;
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000002u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
op_type_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), op_type,
|
|
|
|
GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (op_type_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
op_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set_allocated:opencv_onnx.NodeProto.op_type)
|
|
|
|
}
|
|
|
|
|
|
|
|
// optional string domain = 7;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool NodeProto::_internal_has_domain() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000008u) != 0;
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool NodeProto::has_domain() const {
|
|
|
|
return _internal_has_domain();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void NodeProto::clear_domain() {
|
2021-11-10 20:03:45 +08:00
|
|
|
domain_.ClearToEmpty();
|
|
|
|
_has_bits_[0] &= ~0x00000008u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& NodeProto::domain() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.NodeProto.domain)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_domain();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
template <typename ArgT0, typename... ArgT>
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
|
|
void NodeProto::set_domain(ArgT0&& arg0, ArgT... args) {
|
|
|
|
_has_bits_[0] |= 0x00000008u;
|
|
|
|
domain_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.NodeProto.domain)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* NodeProto::mutable_domain() {
|
|
|
|
std::string* _s = _internal_mutable_domain();
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.NodeProto.domain)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _s;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& NodeProto::_internal_domain() const {
|
|
|
|
return domain_.Get();
|
|
|
|
}
|
|
|
|
inline void NodeProto::_internal_set_domain(const std::string& value) {
|
|
|
|
_has_bits_[0] |= 0x00000008u;
|
|
|
|
domain_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
inline std::string* NodeProto::_internal_mutable_domain() {
|
|
|
|
_has_bits_[0] |= 0x00000008u;
|
|
|
|
return domain_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
inline std::string* NodeProto::release_domain() {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_release:opencv_onnx.NodeProto.domain)
|
2021-11-10 20:03:45 +08:00
|
|
|
if (!_internal_has_domain()) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
|
|
auto* p = domain_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (domain_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
domain_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
return p;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void NodeProto::set_allocated_domain(std::string* domain) {
|
|
|
|
if (domain != nullptr) {
|
|
|
|
_has_bits_[0] |= 0x00000008u;
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
|
|
}
|
|
|
|
domain_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), domain,
|
|
|
|
GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (domain_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
domain_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set_allocated:opencv_onnx.NodeProto.domain)
|
|
|
|
}
|
|
|
|
|
|
|
|
// repeated .opencv_onnx.AttributeProto attribute = 5;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int NodeProto::_internal_attribute_size() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return attribute_.size();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int NodeProto::attribute_size() const {
|
|
|
|
return _internal_attribute_size();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline void NodeProto::clear_attribute() {
|
|
|
|
attribute_.Clear();
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::AttributeProto* NodeProto::mutable_attribute(int index) {
|
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.NodeProto.attribute)
|
|
|
|
return attribute_.Mutable(index);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::AttributeProto >*
|
2018-09-11 02:07:51 +08:00
|
|
|
NodeProto::mutable_attribute() {
|
|
|
|
// @@protoc_insertion_point(field_mutable_list:opencv_onnx.NodeProto.attribute)
|
|
|
|
return &attribute_;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const ::opencv_onnx::AttributeProto& NodeProto::_internal_attribute(int index) const {
|
|
|
|
return attribute_.Get(index);
|
|
|
|
}
|
|
|
|
inline const ::opencv_onnx::AttributeProto& NodeProto::attribute(int index) const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.NodeProto.attribute)
|
|
|
|
return _internal_attribute(index);
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::AttributeProto* NodeProto::_internal_add_attribute() {
|
|
|
|
return attribute_.Add();
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::AttributeProto* NodeProto::add_attribute() {
|
|
|
|
::opencv_onnx::AttributeProto* _add = _internal_add_attribute();
|
|
|
|
// @@protoc_insertion_point(field_add:opencv_onnx.NodeProto.attribute)
|
|
|
|
return _add;
|
|
|
|
}
|
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::AttributeProto >&
|
2018-09-11 02:07:51 +08:00
|
|
|
NodeProto::attribute() const {
|
|
|
|
// @@protoc_insertion_point(field_list:opencv_onnx.NodeProto.attribute)
|
|
|
|
return attribute_;
|
|
|
|
}
|
|
|
|
|
|
|
|
// optional string doc_string = 6;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool NodeProto::_internal_has_doc_string() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000004u) != 0;
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool NodeProto::has_doc_string() const {
|
|
|
|
return _internal_has_doc_string();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void NodeProto::clear_doc_string() {
|
2021-11-10 20:03:45 +08:00
|
|
|
doc_string_.ClearToEmpty();
|
|
|
|
_has_bits_[0] &= ~0x00000004u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& NodeProto::doc_string() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.NodeProto.doc_string)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_doc_string();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
template <typename ArgT0, typename... ArgT>
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
|
|
void NodeProto::set_doc_string(ArgT0&& arg0, ArgT... args) {
|
|
|
|
_has_bits_[0] |= 0x00000004u;
|
|
|
|
doc_string_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.NodeProto.doc_string)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* NodeProto::mutable_doc_string() {
|
|
|
|
std::string* _s = _internal_mutable_doc_string();
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.NodeProto.doc_string)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _s;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& NodeProto::_internal_doc_string() const {
|
|
|
|
return doc_string_.Get();
|
|
|
|
}
|
|
|
|
inline void NodeProto::_internal_set_doc_string(const std::string& value) {
|
|
|
|
_has_bits_[0] |= 0x00000004u;
|
|
|
|
doc_string_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
inline std::string* NodeProto::_internal_mutable_doc_string() {
|
|
|
|
_has_bits_[0] |= 0x00000004u;
|
|
|
|
return doc_string_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
inline std::string* NodeProto::release_doc_string() {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_release:opencv_onnx.NodeProto.doc_string)
|
2021-11-10 20:03:45 +08:00
|
|
|
if (!_internal_has_doc_string()) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
|
|
auto* p = doc_string_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (doc_string_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
doc_string_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
return p;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void NodeProto::set_allocated_doc_string(std::string* doc_string) {
|
|
|
|
if (doc_string != nullptr) {
|
|
|
|
_has_bits_[0] |= 0x00000004u;
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000004u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
doc_string_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), doc_string,
|
|
|
|
GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (doc_string_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
doc_string_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set_allocated:opencv_onnx.NodeProto.doc_string)
|
|
|
|
}
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
|
|
// ModelProto
|
|
|
|
|
|
|
|
// optional int64 ir_version = 1;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool ModelProto::_internal_has_ir_version() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000020u) != 0;
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool ModelProto::has_ir_version() const {
|
|
|
|
return _internal_has_ir_version();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void ModelProto::clear_ir_version() {
|
|
|
|
ir_version_ = int64_t{0};
|
2018-09-11 02:07:51 +08:00
|
|
|
_has_bits_[0] &= ~0x00000020u;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int64_t ModelProto::_internal_ir_version() const {
|
|
|
|
return ir_version_;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int64_t ModelProto::ir_version() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.ModelProto.ir_version)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_ir_version();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void ModelProto::_internal_set_ir_version(int64_t value) {
|
|
|
|
_has_bits_[0] |= 0x00000020u;
|
2018-09-11 02:07:51 +08:00
|
|
|
ir_version_ = value;
|
2021-11-10 20:03:45 +08:00
|
|
|
}
|
|
|
|
inline void ModelProto::set_ir_version(int64_t value) {
|
|
|
|
_internal_set_ir_version(value);
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.ModelProto.ir_version)
|
|
|
|
}
|
|
|
|
|
|
|
|
// repeated .opencv_onnx.OperatorSetIdProto opset_import = 8;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int ModelProto::_internal_opset_import_size() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return opset_import_.size();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int ModelProto::opset_import_size() const {
|
|
|
|
return _internal_opset_import_size();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline void ModelProto::clear_opset_import() {
|
|
|
|
opset_import_.Clear();
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::OperatorSetIdProto* ModelProto::mutable_opset_import(int index) {
|
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.ModelProto.opset_import)
|
|
|
|
return opset_import_.Mutable(index);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::OperatorSetIdProto >*
|
2018-09-11 02:07:51 +08:00
|
|
|
ModelProto::mutable_opset_import() {
|
|
|
|
// @@protoc_insertion_point(field_mutable_list:opencv_onnx.ModelProto.opset_import)
|
|
|
|
return &opset_import_;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const ::opencv_onnx::OperatorSetIdProto& ModelProto::_internal_opset_import(int index) const {
|
|
|
|
return opset_import_.Get(index);
|
|
|
|
}
|
|
|
|
inline const ::opencv_onnx::OperatorSetIdProto& ModelProto::opset_import(int index) const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.ModelProto.opset_import)
|
|
|
|
return _internal_opset_import(index);
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::OperatorSetIdProto* ModelProto::_internal_add_opset_import() {
|
|
|
|
return opset_import_.Add();
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::OperatorSetIdProto* ModelProto::add_opset_import() {
|
|
|
|
::opencv_onnx::OperatorSetIdProto* _add = _internal_add_opset_import();
|
|
|
|
// @@protoc_insertion_point(field_add:opencv_onnx.ModelProto.opset_import)
|
|
|
|
return _add;
|
|
|
|
}
|
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::OperatorSetIdProto >&
|
2018-09-11 02:07:51 +08:00
|
|
|
ModelProto::opset_import() const {
|
|
|
|
// @@protoc_insertion_point(field_list:opencv_onnx.ModelProto.opset_import)
|
|
|
|
return opset_import_;
|
|
|
|
}
|
|
|
|
|
|
|
|
// optional string producer_name = 2;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool ModelProto::_internal_has_producer_name() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool ModelProto::has_producer_name() const {
|
|
|
|
return _internal_has_producer_name();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void ModelProto::clear_producer_name() {
|
2021-11-10 20:03:45 +08:00
|
|
|
producer_name_.ClearToEmpty();
|
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& ModelProto::producer_name() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.ModelProto.producer_name)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_producer_name();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
template <typename ArgT0, typename... ArgT>
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
|
|
void ModelProto::set_producer_name(ArgT0&& arg0, ArgT... args) {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
|
|
|
producer_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.ModelProto.producer_name)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* ModelProto::mutable_producer_name() {
|
|
|
|
std::string* _s = _internal_mutable_producer_name();
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.ModelProto.producer_name)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _s;
|
|
|
|
}
|
|
|
|
inline const std::string& ModelProto::_internal_producer_name() const {
|
|
|
|
return producer_name_.Get();
|
|
|
|
}
|
|
|
|
inline void ModelProto::_internal_set_producer_name(const std::string& value) {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
|
|
|
producer_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
inline std::string* ModelProto::_internal_mutable_producer_name() {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
|
|
|
return producer_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* ModelProto::release_producer_name() {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_release:opencv_onnx.ModelProto.producer_name)
|
2021-11-10 20:03:45 +08:00
|
|
|
if (!_internal_has_producer_name()) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
|
|
auto* p = producer_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (producer_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
producer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
return p;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void ModelProto::set_allocated_producer_name(std::string* producer_name) {
|
|
|
|
if (producer_name != nullptr) {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
|
|
}
|
|
|
|
producer_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), producer_name,
|
|
|
|
GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (producer_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
producer_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set_allocated:opencv_onnx.ModelProto.producer_name)
|
|
|
|
}
|
|
|
|
|
|
|
|
// optional string producer_version = 3;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool ModelProto::_internal_has_producer_version() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool ModelProto::has_producer_version() const {
|
|
|
|
return _internal_has_producer_version();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void ModelProto::clear_producer_version() {
|
2021-11-10 20:03:45 +08:00
|
|
|
producer_version_.ClearToEmpty();
|
|
|
|
_has_bits_[0] &= ~0x00000002u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& ModelProto::producer_version() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.ModelProto.producer_version)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_producer_version();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
template <typename ArgT0, typename... ArgT>
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
|
|
void ModelProto::set_producer_version(ArgT0&& arg0, ArgT... args) {
|
|
|
|
_has_bits_[0] |= 0x00000002u;
|
|
|
|
producer_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.ModelProto.producer_version)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* ModelProto::mutable_producer_version() {
|
|
|
|
std::string* _s = _internal_mutable_producer_version();
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.ModelProto.producer_version)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _s;
|
|
|
|
}
|
|
|
|
inline const std::string& ModelProto::_internal_producer_version() const {
|
|
|
|
return producer_version_.Get();
|
|
|
|
}
|
|
|
|
inline void ModelProto::_internal_set_producer_version(const std::string& value) {
|
|
|
|
_has_bits_[0] |= 0x00000002u;
|
|
|
|
producer_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* ModelProto::_internal_mutable_producer_version() {
|
|
|
|
_has_bits_[0] |= 0x00000002u;
|
|
|
|
return producer_version_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
inline std::string* ModelProto::release_producer_version() {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_release:opencv_onnx.ModelProto.producer_version)
|
2021-11-10 20:03:45 +08:00
|
|
|
if (!_internal_has_producer_version()) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
|
|
auto* p = producer_version_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (producer_version_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
producer_version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
return p;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void ModelProto::set_allocated_producer_version(std::string* producer_version) {
|
|
|
|
if (producer_version != nullptr) {
|
|
|
|
_has_bits_[0] |= 0x00000002u;
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000002u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
producer_version_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), producer_version,
|
|
|
|
GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (producer_version_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
producer_version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set_allocated:opencv_onnx.ModelProto.producer_version)
|
|
|
|
}
|
|
|
|
|
|
|
|
// optional string domain = 4;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool ModelProto::_internal_has_domain() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000004u) != 0;
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool ModelProto::has_domain() const {
|
|
|
|
return _internal_has_domain();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void ModelProto::clear_domain() {
|
2021-11-10 20:03:45 +08:00
|
|
|
domain_.ClearToEmpty();
|
|
|
|
_has_bits_[0] &= ~0x00000004u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& ModelProto::domain() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.ModelProto.domain)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_domain();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
template <typename ArgT0, typename... ArgT>
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
|
|
void ModelProto::set_domain(ArgT0&& arg0, ArgT... args) {
|
|
|
|
_has_bits_[0] |= 0x00000004u;
|
|
|
|
domain_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.ModelProto.domain)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* ModelProto::mutable_domain() {
|
|
|
|
std::string* _s = _internal_mutable_domain();
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.ModelProto.domain)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _s;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& ModelProto::_internal_domain() const {
|
|
|
|
return domain_.Get();
|
|
|
|
}
|
|
|
|
inline void ModelProto::_internal_set_domain(const std::string& value) {
|
|
|
|
_has_bits_[0] |= 0x00000004u;
|
|
|
|
domain_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
inline std::string* ModelProto::_internal_mutable_domain() {
|
|
|
|
_has_bits_[0] |= 0x00000004u;
|
|
|
|
return domain_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
inline std::string* ModelProto::release_domain() {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_release:opencv_onnx.ModelProto.domain)
|
2021-11-10 20:03:45 +08:00
|
|
|
if (!_internal_has_domain()) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
|
|
auto* p = domain_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (domain_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
domain_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
return p;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void ModelProto::set_allocated_domain(std::string* domain) {
|
|
|
|
if (domain != nullptr) {
|
|
|
|
_has_bits_[0] |= 0x00000004u;
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
|
|
}
|
|
|
|
domain_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), domain,
|
|
|
|
GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (domain_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
domain_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set_allocated:opencv_onnx.ModelProto.domain)
|
|
|
|
}
|
|
|
|
|
|
|
|
// optional int64 model_version = 5;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool ModelProto::_internal_has_model_version() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000040u) != 0;
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool ModelProto::has_model_version() const {
|
|
|
|
return _internal_has_model_version();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void ModelProto::clear_model_version() {
|
|
|
|
model_version_ = int64_t{0};
|
2018-09-11 02:07:51 +08:00
|
|
|
_has_bits_[0] &= ~0x00000040u;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int64_t ModelProto::_internal_model_version() const {
|
|
|
|
return model_version_;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int64_t ModelProto::model_version() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.ModelProto.model_version)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_model_version();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void ModelProto::_internal_set_model_version(int64_t value) {
|
|
|
|
_has_bits_[0] |= 0x00000040u;
|
2018-09-11 02:07:51 +08:00
|
|
|
model_version_ = value;
|
2021-11-10 20:03:45 +08:00
|
|
|
}
|
|
|
|
inline void ModelProto::set_model_version(int64_t value) {
|
|
|
|
_internal_set_model_version(value);
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.ModelProto.model_version)
|
|
|
|
}
|
|
|
|
|
|
|
|
// optional string doc_string = 6;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool ModelProto::_internal_has_doc_string() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000008u) != 0;
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool ModelProto::has_doc_string() const {
|
|
|
|
return _internal_has_doc_string();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void ModelProto::clear_doc_string() {
|
2021-11-10 20:03:45 +08:00
|
|
|
doc_string_.ClearToEmpty();
|
|
|
|
_has_bits_[0] &= ~0x00000008u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& ModelProto::doc_string() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.ModelProto.doc_string)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_doc_string();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
template <typename ArgT0, typename... ArgT>
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
|
|
void ModelProto::set_doc_string(ArgT0&& arg0, ArgT... args) {
|
|
|
|
_has_bits_[0] |= 0x00000008u;
|
|
|
|
doc_string_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.ModelProto.doc_string)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* ModelProto::mutable_doc_string() {
|
|
|
|
std::string* _s = _internal_mutable_doc_string();
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.ModelProto.doc_string)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _s;
|
|
|
|
}
|
|
|
|
inline const std::string& ModelProto::_internal_doc_string() const {
|
|
|
|
return doc_string_.Get();
|
|
|
|
}
|
|
|
|
inline void ModelProto::_internal_set_doc_string(const std::string& value) {
|
|
|
|
_has_bits_[0] |= 0x00000008u;
|
|
|
|
doc_string_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
inline std::string* ModelProto::_internal_mutable_doc_string() {
|
|
|
|
_has_bits_[0] |= 0x00000008u;
|
|
|
|
return doc_string_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* ModelProto::release_doc_string() {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_release:opencv_onnx.ModelProto.doc_string)
|
2021-11-10 20:03:45 +08:00
|
|
|
if (!_internal_has_doc_string()) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
|
|
auto* p = doc_string_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (doc_string_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
doc_string_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
return p;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void ModelProto::set_allocated_doc_string(std::string* doc_string) {
|
|
|
|
if (doc_string != nullptr) {
|
|
|
|
_has_bits_[0] |= 0x00000008u;
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
|
|
}
|
|
|
|
doc_string_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), doc_string,
|
|
|
|
GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (doc_string_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
doc_string_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set_allocated:opencv_onnx.ModelProto.doc_string)
|
|
|
|
}
|
|
|
|
|
|
|
|
// optional .opencv_onnx.GraphProto graph = 7;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool ModelProto::_internal_has_graph() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000010u) != 0;
|
|
|
|
PROTOBUF_ASSUME(!value || graph_ != nullptr);
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool ModelProto::has_graph() const {
|
|
|
|
return _internal_has_graph();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void ModelProto::clear_graph() {
|
|
|
|
if (graph_ != nullptr) graph_->Clear();
|
2018-09-11 02:07:51 +08:00
|
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const ::opencv_onnx::GraphProto& ModelProto::_internal_graph() const {
|
|
|
|
const ::opencv_onnx::GraphProto* p = graph_;
|
|
|
|
return p != nullptr ? *p : reinterpret_cast<const ::opencv_onnx::GraphProto&>(
|
|
|
|
::opencv_onnx::_GraphProto_default_instance_);
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline const ::opencv_onnx::GraphProto& ModelProto::graph() const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.ModelProto.graph)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_graph();
|
|
|
|
}
|
|
|
|
inline void ModelProto::unsafe_arena_set_allocated_graph(
|
|
|
|
::opencv_onnx::GraphProto* graph) {
|
|
|
|
if (GetArenaForAllocation() == nullptr) {
|
|
|
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(graph_);
|
|
|
|
}
|
|
|
|
graph_ = graph;
|
|
|
|
if (graph) {
|
|
|
|
_has_bits_[0] |= 0x00000010u;
|
|
|
|
} else {
|
|
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
|
|
}
|
|
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_onnx.ModelProto.graph)
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline ::opencv_onnx::GraphProto* ModelProto::release_graph() {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
|
|
::opencv_onnx::GraphProto* temp = graph_;
|
|
|
|
graph_ = nullptr;
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
|
|
|
|
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
|
|
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
|
|
if (GetArenaForAllocation() == nullptr) { delete old; }
|
|
|
|
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
|
|
|
|
if (GetArenaForAllocation() != nullptr) {
|
|
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
|
|
}
|
|
|
|
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
|
|
|
|
return temp;
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::GraphProto* ModelProto::unsafe_arena_release_graph() {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_release:opencv_onnx.ModelProto.graph)
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000010u;
|
2018-09-11 02:07:51 +08:00
|
|
|
::opencv_onnx::GraphProto* temp = graph_;
|
2021-11-10 20:03:45 +08:00
|
|
|
graph_ = nullptr;
|
2018-09-11 02:07:51 +08:00
|
|
|
return temp;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::opencv_onnx::GraphProto* ModelProto::_internal_mutable_graph() {
|
|
|
|
_has_bits_[0] |= 0x00000010u;
|
|
|
|
if (graph_ == nullptr) {
|
|
|
|
auto* p = CreateMaybeMessage<::opencv_onnx::GraphProto>(GetArenaForAllocation());
|
|
|
|
graph_ = p;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
return graph_;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::opencv_onnx::GraphProto* ModelProto::mutable_graph() {
|
|
|
|
::opencv_onnx::GraphProto* _msg = _internal_mutable_graph();
|
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.ModelProto.graph)
|
|
|
|
return _msg;
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline void ModelProto::set_allocated_graph(::opencv_onnx::GraphProto* graph) {
|
2021-11-10 20:03:45 +08:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
|
|
|
if (message_arena == nullptr) {
|
2018-09-11 02:07:51 +08:00
|
|
|
delete graph_;
|
|
|
|
}
|
|
|
|
if (graph) {
|
2021-11-10 20:03:45 +08:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::opencv_onnx::GraphProto>::GetOwningArena(graph);
|
2018-09-11 02:07:51 +08:00
|
|
|
if (message_arena != submessage_arena) {
|
2021-11-10 20:03:45 +08:00
|
|
|
graph = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
2018-09-11 02:07:51 +08:00
|
|
|
message_arena, graph, submessage_arena);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] |= 0x00000010u;
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000010u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
graph_ = graph;
|
|
|
|
// @@protoc_insertion_point(field_set_allocated:opencv_onnx.ModelProto.graph)
|
|
|
|
}
|
|
|
|
|
|
|
|
// repeated .opencv_onnx.StringStringEntryProto metadata_props = 14;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int ModelProto::_internal_metadata_props_size() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return metadata_props_.size();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int ModelProto::metadata_props_size() const {
|
|
|
|
return _internal_metadata_props_size();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline void ModelProto::clear_metadata_props() {
|
|
|
|
metadata_props_.Clear();
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::StringStringEntryProto* ModelProto::mutable_metadata_props(int index) {
|
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.ModelProto.metadata_props)
|
|
|
|
return metadata_props_.Mutable(index);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::StringStringEntryProto >*
|
2018-09-11 02:07:51 +08:00
|
|
|
ModelProto::mutable_metadata_props() {
|
|
|
|
// @@protoc_insertion_point(field_mutable_list:opencv_onnx.ModelProto.metadata_props)
|
|
|
|
return &metadata_props_;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const ::opencv_onnx::StringStringEntryProto& ModelProto::_internal_metadata_props(int index) const {
|
|
|
|
return metadata_props_.Get(index);
|
|
|
|
}
|
|
|
|
inline const ::opencv_onnx::StringStringEntryProto& ModelProto::metadata_props(int index) const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.ModelProto.metadata_props)
|
|
|
|
return _internal_metadata_props(index);
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::StringStringEntryProto* ModelProto::_internal_add_metadata_props() {
|
|
|
|
return metadata_props_.Add();
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::StringStringEntryProto* ModelProto::add_metadata_props() {
|
|
|
|
::opencv_onnx::StringStringEntryProto* _add = _internal_add_metadata_props();
|
|
|
|
// @@protoc_insertion_point(field_add:opencv_onnx.ModelProto.metadata_props)
|
|
|
|
return _add;
|
|
|
|
}
|
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::StringStringEntryProto >&
|
2018-09-11 02:07:51 +08:00
|
|
|
ModelProto::metadata_props() const {
|
|
|
|
// @@protoc_insertion_point(field_list:opencv_onnx.ModelProto.metadata_props)
|
|
|
|
return metadata_props_;
|
|
|
|
}
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
|
|
// StringStringEntryProto
|
|
|
|
|
|
|
|
// optional string key = 1;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool StringStringEntryProto::_internal_has_key() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool StringStringEntryProto::has_key() const {
|
|
|
|
return _internal_has_key();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void StringStringEntryProto::clear_key() {
|
2021-11-10 20:03:45 +08:00
|
|
|
key_.ClearToEmpty();
|
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& StringStringEntryProto::key() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.StringStringEntryProto.key)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_key();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
template <typename ArgT0, typename... ArgT>
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
|
|
void StringStringEntryProto::set_key(ArgT0&& arg0, ArgT... args) {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
|
|
|
key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.StringStringEntryProto.key)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* StringStringEntryProto::mutable_key() {
|
|
|
|
std::string* _s = _internal_mutable_key();
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.StringStringEntryProto.key)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _s;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& StringStringEntryProto::_internal_key() const {
|
|
|
|
return key_.Get();
|
|
|
|
}
|
|
|
|
inline void StringStringEntryProto::_internal_set_key(const std::string& value) {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
|
|
|
key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
inline std::string* StringStringEntryProto::_internal_mutable_key() {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
|
|
|
return key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
inline std::string* StringStringEntryProto::release_key() {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_release:opencv_onnx.StringStringEntryProto.key)
|
2021-11-10 20:03:45 +08:00
|
|
|
if (!_internal_has_key()) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
|
|
auto* p = key_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
return p;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void StringStringEntryProto::set_allocated_key(std::string* key) {
|
|
|
|
if (key != nullptr) {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
|
|
}
|
|
|
|
key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), key,
|
|
|
|
GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set_allocated:opencv_onnx.StringStringEntryProto.key)
|
|
|
|
}
|
|
|
|
|
|
|
|
// optional string value = 2;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool StringStringEntryProto::_internal_has_value() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool StringStringEntryProto::has_value() const {
|
|
|
|
return _internal_has_value();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void StringStringEntryProto::clear_value() {
|
2021-11-10 20:03:45 +08:00
|
|
|
value_.ClearToEmpty();
|
|
|
|
_has_bits_[0] &= ~0x00000002u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& StringStringEntryProto::value() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.StringStringEntryProto.value)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_value();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
template <typename ArgT0, typename... ArgT>
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
|
|
void StringStringEntryProto::set_value(ArgT0&& arg0, ArgT... args) {
|
|
|
|
_has_bits_[0] |= 0x00000002u;
|
|
|
|
value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.StringStringEntryProto.value)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* StringStringEntryProto::mutable_value() {
|
|
|
|
std::string* _s = _internal_mutable_value();
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.StringStringEntryProto.value)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _s;
|
|
|
|
}
|
|
|
|
inline const std::string& StringStringEntryProto::_internal_value() const {
|
|
|
|
return value_.Get();
|
|
|
|
}
|
|
|
|
inline void StringStringEntryProto::_internal_set_value(const std::string& value) {
|
|
|
|
_has_bits_[0] |= 0x00000002u;
|
|
|
|
value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
inline std::string* StringStringEntryProto::_internal_mutable_value() {
|
|
|
|
_has_bits_[0] |= 0x00000002u;
|
|
|
|
return value_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* StringStringEntryProto::release_value() {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_release:opencv_onnx.StringStringEntryProto.value)
|
2021-11-10 20:03:45 +08:00
|
|
|
if (!_internal_has_value()) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
|
|
auto* p = value_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (value_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
return p;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void StringStringEntryProto::set_allocated_value(std::string* value) {
|
|
|
|
if (value != nullptr) {
|
|
|
|
_has_bits_[0] |= 0x00000002u;
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
|
|
}
|
|
|
|
value_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value,
|
|
|
|
GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (value_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set_allocated:opencv_onnx.StringStringEntryProto.value)
|
|
|
|
}
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
|
|
// GraphProto
|
|
|
|
|
|
|
|
// repeated .opencv_onnx.NodeProto node = 1;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int GraphProto::_internal_node_size() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return node_.size();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int GraphProto::node_size() const {
|
|
|
|
return _internal_node_size();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline void GraphProto::clear_node() {
|
|
|
|
node_.Clear();
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::NodeProto* GraphProto::mutable_node(int index) {
|
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.GraphProto.node)
|
|
|
|
return node_.Mutable(index);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::NodeProto >*
|
2018-09-11 02:07:51 +08:00
|
|
|
GraphProto::mutable_node() {
|
|
|
|
// @@protoc_insertion_point(field_mutable_list:opencv_onnx.GraphProto.node)
|
|
|
|
return &node_;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const ::opencv_onnx::NodeProto& GraphProto::_internal_node(int index) const {
|
|
|
|
return node_.Get(index);
|
|
|
|
}
|
|
|
|
inline const ::opencv_onnx::NodeProto& GraphProto::node(int index) const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.GraphProto.node)
|
|
|
|
return _internal_node(index);
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::NodeProto* GraphProto::_internal_add_node() {
|
|
|
|
return node_.Add();
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::NodeProto* GraphProto::add_node() {
|
|
|
|
::opencv_onnx::NodeProto* _add = _internal_add_node();
|
|
|
|
// @@protoc_insertion_point(field_add:opencv_onnx.GraphProto.node)
|
|
|
|
return _add;
|
|
|
|
}
|
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::NodeProto >&
|
2018-09-11 02:07:51 +08:00
|
|
|
GraphProto::node() const {
|
|
|
|
// @@protoc_insertion_point(field_list:opencv_onnx.GraphProto.node)
|
|
|
|
return node_;
|
|
|
|
}
|
|
|
|
|
|
|
|
// optional string name = 2;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool GraphProto::_internal_has_name() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool GraphProto::has_name() const {
|
|
|
|
return _internal_has_name();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void GraphProto::clear_name() {
|
2021-11-10 20:03:45 +08:00
|
|
|
name_.ClearToEmpty();
|
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& GraphProto::name() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.GraphProto.name)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_name();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
template <typename ArgT0, typename... ArgT>
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
|
|
void GraphProto::set_name(ArgT0&& arg0, ArgT... args) {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
|
|
|
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.GraphProto.name)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* GraphProto::mutable_name() {
|
|
|
|
std::string* _s = _internal_mutable_name();
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.GraphProto.name)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _s;
|
|
|
|
}
|
|
|
|
inline const std::string& GraphProto::_internal_name() const {
|
|
|
|
return name_.Get();
|
|
|
|
}
|
|
|
|
inline void GraphProto::_internal_set_name(const std::string& value) {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
|
|
|
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
inline std::string* GraphProto::_internal_mutable_name() {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
|
|
|
return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* GraphProto::release_name() {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_release:opencv_onnx.GraphProto.name)
|
2021-11-10 20:03:45 +08:00
|
|
|
if (!_internal_has_name()) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
|
|
auto* p = name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
return p;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void GraphProto::set_allocated_name(std::string* name) {
|
|
|
|
if (name != nullptr) {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
|
|
}
|
|
|
|
name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
|
|
|
|
GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set_allocated:opencv_onnx.GraphProto.name)
|
|
|
|
}
|
|
|
|
|
|
|
|
// repeated .opencv_onnx.TensorProto initializer = 5;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int GraphProto::_internal_initializer_size() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return initializer_.size();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int GraphProto::initializer_size() const {
|
|
|
|
return _internal_initializer_size();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline void GraphProto::clear_initializer() {
|
|
|
|
initializer_.Clear();
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::TensorProto* GraphProto::mutable_initializer(int index) {
|
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.GraphProto.initializer)
|
|
|
|
return initializer_.Mutable(index);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::TensorProto >*
|
2018-09-11 02:07:51 +08:00
|
|
|
GraphProto::mutable_initializer() {
|
|
|
|
// @@protoc_insertion_point(field_mutable_list:opencv_onnx.GraphProto.initializer)
|
|
|
|
return &initializer_;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const ::opencv_onnx::TensorProto& GraphProto::_internal_initializer(int index) const {
|
|
|
|
return initializer_.Get(index);
|
|
|
|
}
|
|
|
|
inline const ::opencv_onnx::TensorProto& GraphProto::initializer(int index) const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.GraphProto.initializer)
|
|
|
|
return _internal_initializer(index);
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::TensorProto* GraphProto::_internal_add_initializer() {
|
|
|
|
return initializer_.Add();
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::TensorProto* GraphProto::add_initializer() {
|
|
|
|
::opencv_onnx::TensorProto* _add = _internal_add_initializer();
|
|
|
|
// @@protoc_insertion_point(field_add:opencv_onnx.GraphProto.initializer)
|
|
|
|
return _add;
|
|
|
|
}
|
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::TensorProto >&
|
2018-09-11 02:07:51 +08:00
|
|
|
GraphProto::initializer() const {
|
|
|
|
// @@protoc_insertion_point(field_list:opencv_onnx.GraphProto.initializer)
|
|
|
|
return initializer_;
|
|
|
|
}
|
|
|
|
|
|
|
|
// optional string doc_string = 10;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool GraphProto::_internal_has_doc_string() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool GraphProto::has_doc_string() const {
|
|
|
|
return _internal_has_doc_string();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void GraphProto::clear_doc_string() {
|
2021-11-10 20:03:45 +08:00
|
|
|
doc_string_.ClearToEmpty();
|
|
|
|
_has_bits_[0] &= ~0x00000002u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& GraphProto::doc_string() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.GraphProto.doc_string)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_doc_string();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
template <typename ArgT0, typename... ArgT>
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
|
|
void GraphProto::set_doc_string(ArgT0&& arg0, ArgT... args) {
|
|
|
|
_has_bits_[0] |= 0x00000002u;
|
|
|
|
doc_string_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.GraphProto.doc_string)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* GraphProto::mutable_doc_string() {
|
|
|
|
std::string* _s = _internal_mutable_doc_string();
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.GraphProto.doc_string)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _s;
|
|
|
|
}
|
|
|
|
inline const std::string& GraphProto::_internal_doc_string() const {
|
|
|
|
return doc_string_.Get();
|
|
|
|
}
|
|
|
|
inline void GraphProto::_internal_set_doc_string(const std::string& value) {
|
|
|
|
_has_bits_[0] |= 0x00000002u;
|
|
|
|
doc_string_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* GraphProto::_internal_mutable_doc_string() {
|
|
|
|
_has_bits_[0] |= 0x00000002u;
|
|
|
|
return doc_string_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
inline std::string* GraphProto::release_doc_string() {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_release:opencv_onnx.GraphProto.doc_string)
|
2021-11-10 20:03:45 +08:00
|
|
|
if (!_internal_has_doc_string()) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
|
|
auto* p = doc_string_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (doc_string_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
doc_string_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
return p;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void GraphProto::set_allocated_doc_string(std::string* doc_string) {
|
|
|
|
if (doc_string != nullptr) {
|
|
|
|
_has_bits_[0] |= 0x00000002u;
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
|
|
}
|
|
|
|
doc_string_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), doc_string,
|
|
|
|
GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (doc_string_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
doc_string_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set_allocated:opencv_onnx.GraphProto.doc_string)
|
|
|
|
}
|
|
|
|
|
|
|
|
// repeated .opencv_onnx.ValueInfoProto input = 11;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int GraphProto::_internal_input_size() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return input_.size();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int GraphProto::input_size() const {
|
|
|
|
return _internal_input_size();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline void GraphProto::clear_input() {
|
|
|
|
input_.Clear();
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::ValueInfoProto* GraphProto::mutable_input(int index) {
|
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.GraphProto.input)
|
|
|
|
return input_.Mutable(index);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::ValueInfoProto >*
|
2018-09-11 02:07:51 +08:00
|
|
|
GraphProto::mutable_input() {
|
|
|
|
// @@protoc_insertion_point(field_mutable_list:opencv_onnx.GraphProto.input)
|
|
|
|
return &input_;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const ::opencv_onnx::ValueInfoProto& GraphProto::_internal_input(int index) const {
|
|
|
|
return input_.Get(index);
|
|
|
|
}
|
|
|
|
inline const ::opencv_onnx::ValueInfoProto& GraphProto::input(int index) const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.GraphProto.input)
|
|
|
|
return _internal_input(index);
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::ValueInfoProto* GraphProto::_internal_add_input() {
|
|
|
|
return input_.Add();
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::ValueInfoProto* GraphProto::add_input() {
|
|
|
|
::opencv_onnx::ValueInfoProto* _add = _internal_add_input();
|
|
|
|
// @@protoc_insertion_point(field_add:opencv_onnx.GraphProto.input)
|
|
|
|
return _add;
|
|
|
|
}
|
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::ValueInfoProto >&
|
2018-09-11 02:07:51 +08:00
|
|
|
GraphProto::input() const {
|
|
|
|
// @@protoc_insertion_point(field_list:opencv_onnx.GraphProto.input)
|
|
|
|
return input_;
|
|
|
|
}
|
|
|
|
|
|
|
|
// repeated .opencv_onnx.ValueInfoProto output = 12;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int GraphProto::_internal_output_size() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return output_.size();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int GraphProto::output_size() const {
|
|
|
|
return _internal_output_size();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline void GraphProto::clear_output() {
|
|
|
|
output_.Clear();
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::ValueInfoProto* GraphProto::mutable_output(int index) {
|
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.GraphProto.output)
|
|
|
|
return output_.Mutable(index);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::ValueInfoProto >*
|
2018-09-11 02:07:51 +08:00
|
|
|
GraphProto::mutable_output() {
|
|
|
|
// @@protoc_insertion_point(field_mutable_list:opencv_onnx.GraphProto.output)
|
|
|
|
return &output_;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const ::opencv_onnx::ValueInfoProto& GraphProto::_internal_output(int index) const {
|
|
|
|
return output_.Get(index);
|
|
|
|
}
|
|
|
|
inline const ::opencv_onnx::ValueInfoProto& GraphProto::output(int index) const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.GraphProto.output)
|
|
|
|
return _internal_output(index);
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::ValueInfoProto* GraphProto::_internal_add_output() {
|
|
|
|
return output_.Add();
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::ValueInfoProto* GraphProto::add_output() {
|
|
|
|
::opencv_onnx::ValueInfoProto* _add = _internal_add_output();
|
|
|
|
// @@protoc_insertion_point(field_add:opencv_onnx.GraphProto.output)
|
|
|
|
return _add;
|
|
|
|
}
|
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::ValueInfoProto >&
|
2018-09-11 02:07:51 +08:00
|
|
|
GraphProto::output() const {
|
|
|
|
// @@protoc_insertion_point(field_list:opencv_onnx.GraphProto.output)
|
|
|
|
return output_;
|
|
|
|
}
|
|
|
|
|
|
|
|
// repeated .opencv_onnx.ValueInfoProto value_info = 13;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int GraphProto::_internal_value_info_size() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return value_info_.size();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int GraphProto::value_info_size() const {
|
|
|
|
return _internal_value_info_size();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline void GraphProto::clear_value_info() {
|
|
|
|
value_info_.Clear();
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::ValueInfoProto* GraphProto::mutable_value_info(int index) {
|
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.GraphProto.value_info)
|
|
|
|
return value_info_.Mutable(index);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::ValueInfoProto >*
|
2018-09-11 02:07:51 +08:00
|
|
|
GraphProto::mutable_value_info() {
|
|
|
|
// @@protoc_insertion_point(field_mutable_list:opencv_onnx.GraphProto.value_info)
|
|
|
|
return &value_info_;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const ::opencv_onnx::ValueInfoProto& GraphProto::_internal_value_info(int index) const {
|
|
|
|
return value_info_.Get(index);
|
|
|
|
}
|
|
|
|
inline const ::opencv_onnx::ValueInfoProto& GraphProto::value_info(int index) const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.GraphProto.value_info)
|
|
|
|
return _internal_value_info(index);
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::ValueInfoProto* GraphProto::_internal_add_value_info() {
|
|
|
|
return value_info_.Add();
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::ValueInfoProto* GraphProto::add_value_info() {
|
|
|
|
::opencv_onnx::ValueInfoProto* _add = _internal_add_value_info();
|
|
|
|
// @@protoc_insertion_point(field_add:opencv_onnx.GraphProto.value_info)
|
|
|
|
return _add;
|
|
|
|
}
|
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::ValueInfoProto >&
|
2018-09-11 02:07:51 +08:00
|
|
|
GraphProto::value_info() const {
|
|
|
|
// @@protoc_insertion_point(field_list:opencv_onnx.GraphProto.value_info)
|
|
|
|
return value_info_;
|
|
|
|
}
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
|
|
// TensorProto_Segment
|
|
|
|
|
|
|
|
// optional int64 begin = 1;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool TensorProto_Segment::_internal_has_begin() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool TensorProto_Segment::has_begin() const {
|
|
|
|
return _internal_has_begin();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void TensorProto_Segment::clear_begin() {
|
|
|
|
begin_ = int64_t{0};
|
2018-09-11 02:07:51 +08:00
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int64_t TensorProto_Segment::_internal_begin() const {
|
|
|
|
return begin_;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int64_t TensorProto_Segment::begin() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.TensorProto.Segment.begin)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_begin();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void TensorProto_Segment::_internal_set_begin(int64_t value) {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
2018-09-11 02:07:51 +08:00
|
|
|
begin_ = value;
|
2021-11-10 20:03:45 +08:00
|
|
|
}
|
|
|
|
inline void TensorProto_Segment::set_begin(int64_t value) {
|
|
|
|
_internal_set_begin(value);
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.TensorProto.Segment.begin)
|
|
|
|
}
|
|
|
|
|
|
|
|
// optional int64 end = 2;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool TensorProto_Segment::_internal_has_end() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool TensorProto_Segment::has_end() const {
|
|
|
|
return _internal_has_end();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void TensorProto_Segment::clear_end() {
|
|
|
|
end_ = int64_t{0};
|
2018-09-11 02:07:51 +08:00
|
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int64_t TensorProto_Segment::_internal_end() const {
|
|
|
|
return end_;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int64_t TensorProto_Segment::end() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.TensorProto.Segment.end)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_end();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void TensorProto_Segment::_internal_set_end(int64_t value) {
|
|
|
|
_has_bits_[0] |= 0x00000002u;
|
2018-09-11 02:07:51 +08:00
|
|
|
end_ = value;
|
2021-11-10 20:03:45 +08:00
|
|
|
}
|
|
|
|
inline void TensorProto_Segment::set_end(int64_t value) {
|
|
|
|
_internal_set_end(value);
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.TensorProto.Segment.end)
|
|
|
|
}
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
|
|
// TensorProto
|
|
|
|
|
|
|
|
// repeated int64 dims = 1;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int TensorProto::_internal_dims_size() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return dims_.size();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int TensorProto::dims_size() const {
|
|
|
|
return _internal_dims_size();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline void TensorProto::clear_dims() {
|
|
|
|
dims_.Clear();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int64_t TensorProto::_internal_dims(int index) const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return dims_.Get(index);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int64_t TensorProto::dims(int index) const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.TensorProto.dims)
|
|
|
|
return _internal_dims(index);
|
|
|
|
}
|
|
|
|
inline void TensorProto::set_dims(int index, int64_t value) {
|
2018-09-11 02:07:51 +08:00
|
|
|
dims_.Set(index, value);
|
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.TensorProto.dims)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void TensorProto::_internal_add_dims(int64_t value) {
|
2018-09-11 02:07:51 +08:00
|
|
|
dims_.Add(value);
|
2021-11-10 20:03:45 +08:00
|
|
|
}
|
|
|
|
inline void TensorProto::add_dims(int64_t value) {
|
|
|
|
_internal_add_dims(value);
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_add:opencv_onnx.TensorProto.dims)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
|
|
|
|
TensorProto::_internal_dims() const {
|
|
|
|
return dims_;
|
|
|
|
}
|
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto::dims() const {
|
|
|
|
// @@protoc_insertion_point(field_list:opencv_onnx.TensorProto.dims)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_dims();
|
|
|
|
}
|
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
|
|
|
|
TensorProto::_internal_mutable_dims() {
|
|
|
|
return &dims_;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto::mutable_dims() {
|
|
|
|
// @@protoc_insertion_point(field_mutable_list:opencv_onnx.TensorProto.dims)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_mutable_dims();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// optional .opencv_onnx.TensorProto.DataType data_type = 2;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool TensorProto::_internal_has_data_type() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000010u) != 0;
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool TensorProto::has_data_type() const {
|
|
|
|
return _internal_has_data_type();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void TensorProto::clear_data_type() {
|
|
|
|
data_type_ = 0;
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::TensorProto_DataType TensorProto::_internal_data_type() const {
|
|
|
|
return static_cast< ::opencv_onnx::TensorProto_DataType >(data_type_);
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline ::opencv_onnx::TensorProto_DataType TensorProto::data_type() const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.TensorProto.data_type)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_data_type();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void TensorProto::_internal_set_data_type(::opencv_onnx::TensorProto_DataType value) {
|
2018-09-11 02:07:51 +08:00
|
|
|
assert(::opencv_onnx::TensorProto_DataType_IsValid(value));
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] |= 0x00000010u;
|
2018-09-11 02:07:51 +08:00
|
|
|
data_type_ = value;
|
2021-11-10 20:03:45 +08:00
|
|
|
}
|
|
|
|
inline void TensorProto::set_data_type(::opencv_onnx::TensorProto_DataType value) {
|
|
|
|
_internal_set_data_type(value);
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.TensorProto.data_type)
|
|
|
|
}
|
|
|
|
|
|
|
|
// optional .opencv_onnx.TensorProto.Segment segment = 3;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool TensorProto::_internal_has_segment() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000008u) != 0;
|
|
|
|
PROTOBUF_ASSUME(!value || segment_ != nullptr);
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool TensorProto::has_segment() const {
|
|
|
|
return _internal_has_segment();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void TensorProto::clear_segment() {
|
|
|
|
if (segment_ != nullptr) segment_->Clear();
|
2018-09-11 02:07:51 +08:00
|
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const ::opencv_onnx::TensorProto_Segment& TensorProto::_internal_segment() const {
|
|
|
|
const ::opencv_onnx::TensorProto_Segment* p = segment_;
|
|
|
|
return p != nullptr ? *p : reinterpret_cast<const ::opencv_onnx::TensorProto_Segment&>(
|
|
|
|
::opencv_onnx::_TensorProto_Segment_default_instance_);
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline const ::opencv_onnx::TensorProto_Segment& TensorProto::segment() const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.TensorProto.segment)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_segment();
|
|
|
|
}
|
|
|
|
inline void TensorProto::unsafe_arena_set_allocated_segment(
|
|
|
|
::opencv_onnx::TensorProto_Segment* segment) {
|
|
|
|
if (GetArenaForAllocation() == nullptr) {
|
|
|
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(segment_);
|
|
|
|
}
|
|
|
|
segment_ = segment;
|
|
|
|
if (segment) {
|
|
|
|
_has_bits_[0] |= 0x00000008u;
|
|
|
|
} else {
|
|
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
|
|
}
|
|
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_onnx.TensorProto.segment)
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline ::opencv_onnx::TensorProto_Segment* TensorProto::release_segment() {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
|
|
::opencv_onnx::TensorProto_Segment* temp = segment_;
|
|
|
|
segment_ = nullptr;
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
|
|
|
|
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
|
|
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
|
|
if (GetArenaForAllocation() == nullptr) { delete old; }
|
|
|
|
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
|
|
|
|
if (GetArenaForAllocation() != nullptr) {
|
|
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
|
|
}
|
|
|
|
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
|
|
|
|
return temp;
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::TensorProto_Segment* TensorProto::unsafe_arena_release_segment() {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_release:opencv_onnx.TensorProto.segment)
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000008u;
|
2018-09-11 02:07:51 +08:00
|
|
|
::opencv_onnx::TensorProto_Segment* temp = segment_;
|
2021-11-10 20:03:45 +08:00
|
|
|
segment_ = nullptr;
|
2018-09-11 02:07:51 +08:00
|
|
|
return temp;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::opencv_onnx::TensorProto_Segment* TensorProto::_internal_mutable_segment() {
|
|
|
|
_has_bits_[0] |= 0x00000008u;
|
|
|
|
if (segment_ == nullptr) {
|
|
|
|
auto* p = CreateMaybeMessage<::opencv_onnx::TensorProto_Segment>(GetArenaForAllocation());
|
|
|
|
segment_ = p;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
return segment_;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::opencv_onnx::TensorProto_Segment* TensorProto::mutable_segment() {
|
|
|
|
::opencv_onnx::TensorProto_Segment* _msg = _internal_mutable_segment();
|
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.TensorProto.segment)
|
|
|
|
return _msg;
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline void TensorProto::set_allocated_segment(::opencv_onnx::TensorProto_Segment* segment) {
|
2021-11-10 20:03:45 +08:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
|
|
|
if (message_arena == nullptr) {
|
2018-09-11 02:07:51 +08:00
|
|
|
delete segment_;
|
|
|
|
}
|
|
|
|
if (segment) {
|
2021-11-10 20:03:45 +08:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::opencv_onnx::TensorProto_Segment>::GetOwningArena(segment);
|
2018-09-11 02:07:51 +08:00
|
|
|
if (message_arena != submessage_arena) {
|
2021-11-10 20:03:45 +08:00
|
|
|
segment = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
2018-09-11 02:07:51 +08:00
|
|
|
message_arena, segment, submessage_arena);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] |= 0x00000008u;
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000008u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
segment_ = segment;
|
|
|
|
// @@protoc_insertion_point(field_set_allocated:opencv_onnx.TensorProto.segment)
|
|
|
|
}
|
|
|
|
|
|
|
|
// repeated float float_data = 4 [packed = true];
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int TensorProto::_internal_float_data_size() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return float_data_.size();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int TensorProto::float_data_size() const {
|
|
|
|
return _internal_float_data_size();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline void TensorProto::clear_float_data() {
|
|
|
|
float_data_.Clear();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline float TensorProto::_internal_float_data(int index) const {
|
|
|
|
return float_data_.Get(index);
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline float TensorProto::float_data(int index) const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.TensorProto.float_data)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_float_data(index);
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void TensorProto::set_float_data(int index, float value) {
|
|
|
|
float_data_.Set(index, value);
|
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.TensorProto.float_data)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void TensorProto::_internal_add_float_data(float value) {
|
2018-09-11 02:07:51 +08:00
|
|
|
float_data_.Add(value);
|
2021-11-10 20:03:45 +08:00
|
|
|
}
|
|
|
|
inline void TensorProto::add_float_data(float value) {
|
|
|
|
_internal_add_float_data(value);
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_add:opencv_onnx.TensorProto.float_data)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
|
|
|
|
TensorProto::_internal_float_data() const {
|
|
|
|
return float_data_;
|
|
|
|
}
|
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto::float_data() const {
|
|
|
|
// @@protoc_insertion_point(field_list:opencv_onnx.TensorProto.float_data)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_float_data();
|
|
|
|
}
|
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
|
|
|
|
TensorProto::_internal_mutable_float_data() {
|
|
|
|
return &float_data_;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto::mutable_float_data() {
|
|
|
|
// @@protoc_insertion_point(field_mutable_list:opencv_onnx.TensorProto.float_data)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_mutable_float_data();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// repeated int32 int32_data = 5 [packed = true];
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int TensorProto::_internal_int32_data_size() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return int32_data_.size();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int TensorProto::int32_data_size() const {
|
|
|
|
return _internal_int32_data_size();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline void TensorProto::clear_int32_data() {
|
|
|
|
int32_data_.Clear();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int32_t TensorProto::_internal_int32_data(int index) const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return int32_data_.Get(index);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int32_t TensorProto::int32_data(int index) const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.TensorProto.int32_data)
|
|
|
|
return _internal_int32_data(index);
|
|
|
|
}
|
|
|
|
inline void TensorProto::set_int32_data(int index, int32_t value) {
|
2018-09-11 02:07:51 +08:00
|
|
|
int32_data_.Set(index, value);
|
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.TensorProto.int32_data)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void TensorProto::_internal_add_int32_data(int32_t value) {
|
2018-09-11 02:07:51 +08:00
|
|
|
int32_data_.Add(value);
|
2021-11-10 20:03:45 +08:00
|
|
|
}
|
|
|
|
inline void TensorProto::add_int32_data(int32_t value) {
|
|
|
|
_internal_add_int32_data(value);
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_add:opencv_onnx.TensorProto.int32_data)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
|
|
|
|
TensorProto::_internal_int32_data() const {
|
|
|
|
return int32_data_;
|
|
|
|
}
|
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto::int32_data() const {
|
|
|
|
// @@protoc_insertion_point(field_list:opencv_onnx.TensorProto.int32_data)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_int32_data();
|
|
|
|
}
|
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
|
|
|
|
TensorProto::_internal_mutable_int32_data() {
|
|
|
|
return &int32_data_;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto::mutable_int32_data() {
|
|
|
|
// @@protoc_insertion_point(field_mutable_list:opencv_onnx.TensorProto.int32_data)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_mutable_int32_data();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// repeated bytes string_data = 6;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int TensorProto::_internal_string_data_size() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return string_data_.size();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int TensorProto::string_data_size() const {
|
|
|
|
return _internal_string_data_size();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline void TensorProto::clear_string_data() {
|
|
|
|
string_data_.Clear();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* TensorProto::add_string_data() {
|
|
|
|
std::string* _s = _internal_add_string_data();
|
|
|
|
// @@protoc_insertion_point(field_add_mutable:opencv_onnx.TensorProto.string_data)
|
|
|
|
return _s;
|
|
|
|
}
|
|
|
|
inline const std::string& TensorProto::_internal_string_data(int index) const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return string_data_.Get(index);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& TensorProto::string_data(int index) const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.TensorProto.string_data)
|
|
|
|
return _internal_string_data(index);
|
|
|
|
}
|
|
|
|
inline std::string* TensorProto::mutable_string_data(int index) {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.TensorProto.string_data)
|
|
|
|
return string_data_.Mutable(index);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void TensorProto::set_string_data(int index, const std::string& value) {
|
2018-09-11 02:07:51 +08:00
|
|
|
string_data_.Mutable(index)->assign(value);
|
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.TensorProto.string_data)
|
2021-11-10 20:03:45 +08:00
|
|
|
}
|
|
|
|
inline void TensorProto::set_string_data(int index, std::string&& value) {
|
2018-09-11 02:07:51 +08:00
|
|
|
string_data_.Mutable(index)->assign(std::move(value));
|
2021-11-10 20:03:45 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.TensorProto.string_data)
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void TensorProto::set_string_data(int index, const char* value) {
|
2021-11-10 20:03:45 +08:00
|
|
|
GOOGLE_DCHECK(value != nullptr);
|
2018-09-11 02:07:51 +08:00
|
|
|
string_data_.Mutable(index)->assign(value);
|
|
|
|
// @@protoc_insertion_point(field_set_char:opencv_onnx.TensorProto.string_data)
|
|
|
|
}
|
|
|
|
inline void TensorProto::set_string_data(int index, const void* value, size_t size) {
|
|
|
|
string_data_.Mutable(index)->assign(
|
|
|
|
reinterpret_cast<const char*>(value), size);
|
|
|
|
// @@protoc_insertion_point(field_set_pointer:opencv_onnx.TensorProto.string_data)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* TensorProto::_internal_add_string_data() {
|
2018-09-11 02:07:51 +08:00
|
|
|
return string_data_.Add();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void TensorProto::add_string_data(const std::string& value) {
|
2018-09-11 02:07:51 +08:00
|
|
|
string_data_.Add()->assign(value);
|
|
|
|
// @@protoc_insertion_point(field_add:opencv_onnx.TensorProto.string_data)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void TensorProto::add_string_data(std::string&& value) {
|
2018-09-11 02:07:51 +08:00
|
|
|
string_data_.Add(std::move(value));
|
|
|
|
// @@protoc_insertion_point(field_add:opencv_onnx.TensorProto.string_data)
|
|
|
|
}
|
|
|
|
inline void TensorProto::add_string_data(const char* value) {
|
2021-11-10 20:03:45 +08:00
|
|
|
GOOGLE_DCHECK(value != nullptr);
|
2018-09-11 02:07:51 +08:00
|
|
|
string_data_.Add()->assign(value);
|
|
|
|
// @@protoc_insertion_point(field_add_char:opencv_onnx.TensorProto.string_data)
|
|
|
|
}
|
|
|
|
inline void TensorProto::add_string_data(const void* value, size_t size) {
|
|
|
|
string_data_.Add()->assign(reinterpret_cast<const char*>(value), size);
|
|
|
|
// @@protoc_insertion_point(field_add_pointer:opencv_onnx.TensorProto.string_data)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto::string_data() const {
|
|
|
|
// @@protoc_insertion_point(field_list:opencv_onnx.TensorProto.string_data)
|
|
|
|
return string_data_;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto::mutable_string_data() {
|
|
|
|
// @@protoc_insertion_point(field_mutable_list:opencv_onnx.TensorProto.string_data)
|
|
|
|
return &string_data_;
|
|
|
|
}
|
|
|
|
|
|
|
|
// repeated int64 int64_data = 7 [packed = true];
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int TensorProto::_internal_int64_data_size() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return int64_data_.size();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int TensorProto::int64_data_size() const {
|
|
|
|
return _internal_int64_data_size();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline void TensorProto::clear_int64_data() {
|
|
|
|
int64_data_.Clear();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int64_t TensorProto::_internal_int64_data(int index) const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return int64_data_.Get(index);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int64_t TensorProto::int64_data(int index) const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.TensorProto.int64_data)
|
|
|
|
return _internal_int64_data(index);
|
|
|
|
}
|
|
|
|
inline void TensorProto::set_int64_data(int index, int64_t value) {
|
2018-09-11 02:07:51 +08:00
|
|
|
int64_data_.Set(index, value);
|
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.TensorProto.int64_data)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void TensorProto::_internal_add_int64_data(int64_t value) {
|
2018-09-11 02:07:51 +08:00
|
|
|
int64_data_.Add(value);
|
2021-11-10 20:03:45 +08:00
|
|
|
}
|
|
|
|
inline void TensorProto::add_int64_data(int64_t value) {
|
|
|
|
_internal_add_int64_data(value);
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_add:opencv_onnx.TensorProto.int64_data)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
|
|
|
|
TensorProto::_internal_int64_data() const {
|
|
|
|
return int64_data_;
|
|
|
|
}
|
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >&
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto::int64_data() const {
|
|
|
|
// @@protoc_insertion_point(field_list:opencv_onnx.TensorProto.int64_data)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_int64_data();
|
|
|
|
}
|
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
|
|
|
|
TensorProto::_internal_mutable_int64_data() {
|
|
|
|
return &int64_data_;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto::mutable_int64_data() {
|
|
|
|
// @@protoc_insertion_point(field_mutable_list:opencv_onnx.TensorProto.int64_data)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_mutable_int64_data();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// optional string name = 8;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool TensorProto::_internal_has_name() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool TensorProto::has_name() const {
|
|
|
|
return _internal_has_name();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void TensorProto::clear_name() {
|
2021-11-10 20:03:45 +08:00
|
|
|
name_.ClearToEmpty();
|
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& TensorProto::name() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.TensorProto.name)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_name();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
template <typename ArgT0, typename... ArgT>
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
|
|
void TensorProto::set_name(ArgT0&& arg0, ArgT... args) {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
|
|
|
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.TensorProto.name)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* TensorProto::mutable_name() {
|
|
|
|
std::string* _s = _internal_mutable_name();
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.TensorProto.name)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _s;
|
|
|
|
}
|
|
|
|
inline const std::string& TensorProto::_internal_name() const {
|
|
|
|
return name_.Get();
|
|
|
|
}
|
|
|
|
inline void TensorProto::_internal_set_name(const std::string& value) {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
|
|
|
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* TensorProto::_internal_mutable_name() {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
|
|
|
return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
inline std::string* TensorProto::release_name() {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_release:opencv_onnx.TensorProto.name)
|
2021-11-10 20:03:45 +08:00
|
|
|
if (!_internal_has_name()) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
|
|
auto* p = name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
return p;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void TensorProto::set_allocated_name(std::string* name) {
|
|
|
|
if (name != nullptr) {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
|
|
}
|
|
|
|
name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
|
|
|
|
GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set_allocated:opencv_onnx.TensorProto.name)
|
|
|
|
}
|
|
|
|
|
|
|
|
// optional string doc_string = 12;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool TensorProto::_internal_has_doc_string() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000004u) != 0;
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool TensorProto::has_doc_string() const {
|
|
|
|
return _internal_has_doc_string();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void TensorProto::clear_doc_string() {
|
2021-11-10 20:03:45 +08:00
|
|
|
doc_string_.ClearToEmpty();
|
|
|
|
_has_bits_[0] &= ~0x00000004u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& TensorProto::doc_string() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.TensorProto.doc_string)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_doc_string();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
template <typename ArgT0, typename... ArgT>
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
|
|
void TensorProto::set_doc_string(ArgT0&& arg0, ArgT... args) {
|
|
|
|
_has_bits_[0] |= 0x00000004u;
|
|
|
|
doc_string_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.TensorProto.doc_string)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* TensorProto::mutable_doc_string() {
|
|
|
|
std::string* _s = _internal_mutable_doc_string();
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.TensorProto.doc_string)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _s;
|
|
|
|
}
|
|
|
|
inline const std::string& TensorProto::_internal_doc_string() const {
|
|
|
|
return doc_string_.Get();
|
|
|
|
}
|
|
|
|
inline void TensorProto::_internal_set_doc_string(const std::string& value) {
|
|
|
|
_has_bits_[0] |= 0x00000004u;
|
|
|
|
doc_string_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
inline std::string* TensorProto::_internal_mutable_doc_string() {
|
|
|
|
_has_bits_[0] |= 0x00000004u;
|
|
|
|
return doc_string_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* TensorProto::release_doc_string() {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_release:opencv_onnx.TensorProto.doc_string)
|
2021-11-10 20:03:45 +08:00
|
|
|
if (!_internal_has_doc_string()) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
|
|
auto* p = doc_string_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (doc_string_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
doc_string_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
return p;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void TensorProto::set_allocated_doc_string(std::string* doc_string) {
|
|
|
|
if (doc_string != nullptr) {
|
|
|
|
_has_bits_[0] |= 0x00000004u;
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000004u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
doc_string_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), doc_string,
|
|
|
|
GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (doc_string_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
doc_string_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set_allocated:opencv_onnx.TensorProto.doc_string)
|
|
|
|
}
|
|
|
|
|
|
|
|
// optional bytes raw_data = 9;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool TensorProto::_internal_has_raw_data() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool TensorProto::has_raw_data() const {
|
|
|
|
return _internal_has_raw_data();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void TensorProto::clear_raw_data() {
|
2021-11-10 20:03:45 +08:00
|
|
|
raw_data_.ClearToEmpty();
|
|
|
|
_has_bits_[0] &= ~0x00000002u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& TensorProto::raw_data() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.TensorProto.raw_data)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_raw_data();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
template <typename ArgT0, typename... ArgT>
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
|
|
void TensorProto::set_raw_data(ArgT0&& arg0, ArgT... args) {
|
|
|
|
_has_bits_[0] |= 0x00000002u;
|
|
|
|
raw_data_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.TensorProto.raw_data)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* TensorProto::mutable_raw_data() {
|
|
|
|
std::string* _s = _internal_mutable_raw_data();
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.TensorProto.raw_data)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _s;
|
|
|
|
}
|
|
|
|
inline const std::string& TensorProto::_internal_raw_data() const {
|
|
|
|
return raw_data_.Get();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void TensorProto::_internal_set_raw_data(const std::string& value) {
|
|
|
|
_has_bits_[0] |= 0x00000002u;
|
|
|
|
raw_data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
inline std::string* TensorProto::_internal_mutable_raw_data() {
|
|
|
|
_has_bits_[0] |= 0x00000002u;
|
|
|
|
return raw_data_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
inline std::string* TensorProto::release_raw_data() {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_release:opencv_onnx.TensorProto.raw_data)
|
2021-11-10 20:03:45 +08:00
|
|
|
if (!_internal_has_raw_data()) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
|
|
auto* p = raw_data_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (raw_data_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
raw_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
return p;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void TensorProto::set_allocated_raw_data(std::string* raw_data) {
|
|
|
|
if (raw_data != nullptr) {
|
|
|
|
_has_bits_[0] |= 0x00000002u;
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
|
|
}
|
|
|
|
raw_data_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), raw_data,
|
|
|
|
GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (raw_data_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
raw_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set_allocated:opencv_onnx.TensorProto.raw_data)
|
|
|
|
}
|
|
|
|
|
|
|
|
// repeated double double_data = 10 [packed = true];
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int TensorProto::_internal_double_data_size() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return double_data_.size();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int TensorProto::double_data_size() const {
|
|
|
|
return _internal_double_data_size();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline void TensorProto::clear_double_data() {
|
|
|
|
double_data_.Clear();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline double TensorProto::_internal_double_data(int index) const {
|
|
|
|
return double_data_.Get(index);
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline double TensorProto::double_data(int index) const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.TensorProto.double_data)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_double_data(index);
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void TensorProto::set_double_data(int index, double value) {
|
|
|
|
double_data_.Set(index, value);
|
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.TensorProto.double_data)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void TensorProto::_internal_add_double_data(double value) {
|
2018-09-11 02:07:51 +08:00
|
|
|
double_data_.Add(value);
|
2021-11-10 20:03:45 +08:00
|
|
|
}
|
|
|
|
inline void TensorProto::add_double_data(double value) {
|
|
|
|
_internal_add_double_data(value);
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_add:opencv_onnx.TensorProto.double_data)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
|
|
|
|
TensorProto::_internal_double_data() const {
|
|
|
|
return double_data_;
|
|
|
|
}
|
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >&
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto::double_data() const {
|
|
|
|
// @@protoc_insertion_point(field_list:opencv_onnx.TensorProto.double_data)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_double_data();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
|
|
|
|
TensorProto::_internal_mutable_double_data() {
|
|
|
|
return &double_data_;
|
|
|
|
}
|
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< double >*
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto::mutable_double_data() {
|
|
|
|
// @@protoc_insertion_point(field_mutable_list:opencv_onnx.TensorProto.double_data)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_mutable_double_data();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// repeated uint64 uint64_data = 11 [packed = true];
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int TensorProto::_internal_uint64_data_size() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return uint64_data_.size();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int TensorProto::uint64_data_size() const {
|
|
|
|
return _internal_uint64_data_size();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline void TensorProto::clear_uint64_data() {
|
|
|
|
uint64_data_.Clear();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline uint64_t TensorProto::_internal_uint64_data(int index) const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return uint64_data_.Get(index);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline uint64_t TensorProto::uint64_data(int index) const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.TensorProto.uint64_data)
|
|
|
|
return _internal_uint64_data(index);
|
|
|
|
}
|
|
|
|
inline void TensorProto::set_uint64_data(int index, uint64_t value) {
|
2018-09-11 02:07:51 +08:00
|
|
|
uint64_data_.Set(index, value);
|
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.TensorProto.uint64_data)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void TensorProto::_internal_add_uint64_data(uint64_t value) {
|
2018-09-11 02:07:51 +08:00
|
|
|
uint64_data_.Add(value);
|
2021-11-10 20:03:45 +08:00
|
|
|
}
|
|
|
|
inline void TensorProto::add_uint64_data(uint64_t value) {
|
|
|
|
_internal_add_uint64_data(value);
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_add:opencv_onnx.TensorProto.uint64_data)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >&
|
|
|
|
TensorProto::_internal_uint64_data() const {
|
|
|
|
return uint64_data_;
|
|
|
|
}
|
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >&
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto::uint64_data() const {
|
|
|
|
// @@protoc_insertion_point(field_list:opencv_onnx.TensorProto.uint64_data)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_uint64_data();
|
|
|
|
}
|
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >*
|
|
|
|
TensorProto::_internal_mutable_uint64_data() {
|
|
|
|
return &uint64_data_;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >*
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorProto::mutable_uint64_data() {
|
|
|
|
// @@protoc_insertion_point(field_mutable_list:opencv_onnx.TensorProto.uint64_data)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_mutable_uint64_data();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
|
|
// TensorShapeProto_Dimension
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
// int64 dim_value = 1;
|
|
|
|
inline bool TensorShapeProto_Dimension::_internal_has_dim_value() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return value_case() == kDimValue;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool TensorShapeProto_Dimension::has_dim_value() const {
|
|
|
|
return _internal_has_dim_value();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline void TensorShapeProto_Dimension::set_has_dim_value() {
|
|
|
|
_oneof_case_[0] = kDimValue;
|
|
|
|
}
|
|
|
|
inline void TensorShapeProto_Dimension::clear_dim_value() {
|
2021-11-10 20:03:45 +08:00
|
|
|
if (_internal_has_dim_value()) {
|
|
|
|
value_.dim_value_ = int64_t{0};
|
2018-09-11 02:07:51 +08:00
|
|
|
clear_has_value();
|
|
|
|
}
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int64_t TensorShapeProto_Dimension::_internal_dim_value() const {
|
|
|
|
if (_internal_has_dim_value()) {
|
2018-09-11 02:07:51 +08:00
|
|
|
return value_.dim_value_;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
return int64_t{0};
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void TensorShapeProto_Dimension::_internal_set_dim_value(int64_t value) {
|
|
|
|
if (!_internal_has_dim_value()) {
|
2018-09-11 02:07:51 +08:00
|
|
|
clear_value();
|
|
|
|
set_has_dim_value();
|
|
|
|
}
|
|
|
|
value_.dim_value_ = value;
|
2021-11-10 20:03:45 +08:00
|
|
|
}
|
|
|
|
inline int64_t TensorShapeProto_Dimension::dim_value() const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.TensorShapeProto.Dimension.dim_value)
|
|
|
|
return _internal_dim_value();
|
|
|
|
}
|
|
|
|
inline void TensorShapeProto_Dimension::set_dim_value(int64_t value) {
|
|
|
|
_internal_set_dim_value(value);
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.TensorShapeProto.Dimension.dim_value)
|
|
|
|
}
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
// string dim_param = 2;
|
|
|
|
inline bool TensorShapeProto_Dimension::_internal_has_dim_param() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return value_case() == kDimParam;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool TensorShapeProto_Dimension::has_dim_param() const {
|
|
|
|
return _internal_has_dim_param();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline void TensorShapeProto_Dimension::set_has_dim_param() {
|
|
|
|
_oneof_case_[0] = kDimParam;
|
|
|
|
}
|
|
|
|
inline void TensorShapeProto_Dimension::clear_dim_param() {
|
2021-11-10 20:03:45 +08:00
|
|
|
if (_internal_has_dim_param()) {
|
|
|
|
value_.dim_param_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
clear_has_value();
|
|
|
|
}
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& TensorShapeProto_Dimension::dim_param() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.TensorShapeProto.Dimension.dim_param)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_dim_param();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
template <typename ArgT0, typename... ArgT>
|
|
|
|
inline void TensorShapeProto_Dimension::set_dim_param(ArgT0&& arg0, ArgT... args) {
|
|
|
|
if (!_internal_has_dim_param()) {
|
2018-09-11 02:07:51 +08:00
|
|
|
clear_value();
|
|
|
|
set_has_dim_param();
|
2021-11-10 20:03:45 +08:00
|
|
|
value_.dim_param_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
value_.dim_param_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.TensorShapeProto.Dimension.dim_param)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* TensorShapeProto_Dimension::mutable_dim_param() {
|
|
|
|
std::string* _s = _internal_mutable_dim_param();
|
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.TensorShapeProto.Dimension.dim_param)
|
|
|
|
return _s;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& TensorShapeProto_Dimension::_internal_dim_param() const {
|
|
|
|
if (_internal_has_dim_param()) {
|
|
|
|
return value_.dim_param_.Get();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void TensorShapeProto_Dimension::_internal_set_dim_param(const std::string& value) {
|
|
|
|
if (!_internal_has_dim_param()) {
|
2018-09-11 02:07:51 +08:00
|
|
|
clear_value();
|
|
|
|
set_has_dim_param();
|
2021-11-10 20:03:45 +08:00
|
|
|
value_.dim_param_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
value_.dim_param_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* TensorShapeProto_Dimension::_internal_mutable_dim_param() {
|
|
|
|
if (!_internal_has_dim_param()) {
|
2018-09-11 02:07:51 +08:00
|
|
|
clear_value();
|
|
|
|
set_has_dim_param();
|
2021-11-10 20:03:45 +08:00
|
|
|
value_.dim_param_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
return value_.dim_param_.Mutable(
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* TensorShapeProto_Dimension::release_dim_param() {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_release:opencv_onnx.TensorShapeProto.Dimension.dim_param)
|
2021-11-10 20:03:45 +08:00
|
|
|
if (_internal_has_dim_param()) {
|
2018-09-11 02:07:51 +08:00
|
|
|
clear_has_value();
|
2021-11-10 20:03:45 +08:00
|
|
|
return value_.dim_param_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
2021-11-10 20:03:45 +08:00
|
|
|
return nullptr;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void TensorShapeProto_Dimension::set_allocated_dim_param(std::string* dim_param) {
|
|
|
|
if (has_value()) {
|
|
|
|
clear_value();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
if (dim_param != nullptr) {
|
2018-09-11 02:07:51 +08:00
|
|
|
set_has_dim_param();
|
2021-11-10 20:03:45 +08:00
|
|
|
value_.dim_param_.UnsafeSetDefault(dim_param);
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaForAllocation();
|
|
|
|
if (arena != nullptr) {
|
|
|
|
arena->Own(dim_param);
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
// @@protoc_insertion_point(field_set_allocated:opencv_onnx.TensorShapeProto.Dimension.dim_param)
|
|
|
|
}
|
|
|
|
|
|
|
|
// optional string denotation = 3;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool TensorShapeProto_Dimension::_internal_has_denotation() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool TensorShapeProto_Dimension::has_denotation() const {
|
|
|
|
return _internal_has_denotation();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void TensorShapeProto_Dimension::clear_denotation() {
|
2021-11-10 20:03:45 +08:00
|
|
|
denotation_.ClearToEmpty();
|
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& TensorShapeProto_Dimension::denotation() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.TensorShapeProto.Dimension.denotation)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_denotation();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
template <typename ArgT0, typename... ArgT>
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
|
|
void TensorShapeProto_Dimension::set_denotation(ArgT0&& arg0, ArgT... args) {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
|
|
|
denotation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.TensorShapeProto.Dimension.denotation)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* TensorShapeProto_Dimension::mutable_denotation() {
|
|
|
|
std::string* _s = _internal_mutable_denotation();
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.TensorShapeProto.Dimension.denotation)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _s;
|
|
|
|
}
|
|
|
|
inline const std::string& TensorShapeProto_Dimension::_internal_denotation() const {
|
|
|
|
return denotation_.Get();
|
|
|
|
}
|
|
|
|
inline void TensorShapeProto_Dimension::_internal_set_denotation(const std::string& value) {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
|
|
|
denotation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
inline std::string* TensorShapeProto_Dimension::_internal_mutable_denotation() {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
|
|
|
return denotation_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* TensorShapeProto_Dimension::release_denotation() {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_release:opencv_onnx.TensorShapeProto.Dimension.denotation)
|
2021-11-10 20:03:45 +08:00
|
|
|
if (!_internal_has_denotation()) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
|
|
auto* p = denotation_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (denotation_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
denotation_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
return p;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void TensorShapeProto_Dimension::set_allocated_denotation(std::string* denotation) {
|
|
|
|
if (denotation != nullptr) {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
denotation_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), denotation,
|
|
|
|
GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (denotation_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
denotation_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set_allocated:opencv_onnx.TensorShapeProto.Dimension.denotation)
|
|
|
|
}
|
|
|
|
|
|
|
|
inline bool TensorShapeProto_Dimension::has_value() const {
|
|
|
|
return value_case() != VALUE_NOT_SET;
|
|
|
|
}
|
|
|
|
inline void TensorShapeProto_Dimension::clear_has_value() {
|
|
|
|
_oneof_case_[0] = VALUE_NOT_SET;
|
|
|
|
}
|
|
|
|
inline TensorShapeProto_Dimension::ValueCase TensorShapeProto_Dimension::value_case() const {
|
|
|
|
return TensorShapeProto_Dimension::ValueCase(_oneof_case_[0]);
|
|
|
|
}
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
|
|
// TensorShapeProto
|
|
|
|
|
|
|
|
// repeated .opencv_onnx.TensorShapeProto.Dimension dim = 1;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int TensorShapeProto::_internal_dim_size() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return dim_.size();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int TensorShapeProto::dim_size() const {
|
|
|
|
return _internal_dim_size();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline void TensorShapeProto::clear_dim() {
|
|
|
|
dim_.Clear();
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::TensorShapeProto_Dimension* TensorShapeProto::mutable_dim(int index) {
|
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.TensorShapeProto.dim)
|
|
|
|
return dim_.Mutable(index);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::TensorShapeProto_Dimension >*
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorShapeProto::mutable_dim() {
|
|
|
|
// @@protoc_insertion_point(field_mutable_list:opencv_onnx.TensorShapeProto.dim)
|
|
|
|
return &dim_;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const ::opencv_onnx::TensorShapeProto_Dimension& TensorShapeProto::_internal_dim(int index) const {
|
|
|
|
return dim_.Get(index);
|
|
|
|
}
|
|
|
|
inline const ::opencv_onnx::TensorShapeProto_Dimension& TensorShapeProto::dim(int index) const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.TensorShapeProto.dim)
|
|
|
|
return _internal_dim(index);
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::TensorShapeProto_Dimension* TensorShapeProto::_internal_add_dim() {
|
|
|
|
return dim_.Add();
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::TensorShapeProto_Dimension* TensorShapeProto::add_dim() {
|
|
|
|
::opencv_onnx::TensorShapeProto_Dimension* _add = _internal_add_dim();
|
|
|
|
// @@protoc_insertion_point(field_add:opencv_onnx.TensorShapeProto.dim)
|
|
|
|
return _add;
|
|
|
|
}
|
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opencv_onnx::TensorShapeProto_Dimension >&
|
2018-09-11 02:07:51 +08:00
|
|
|
TensorShapeProto::dim() const {
|
|
|
|
// @@protoc_insertion_point(field_list:opencv_onnx.TensorShapeProto.dim)
|
|
|
|
return dim_;
|
|
|
|
}
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
|
|
// TypeProto_Tensor
|
|
|
|
|
|
|
|
// optional .opencv_onnx.TensorProto.DataType elem_type = 1;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool TypeProto_Tensor::_internal_has_elem_type() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool TypeProto_Tensor::has_elem_type() const {
|
|
|
|
return _internal_has_elem_type();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void TypeProto_Tensor::clear_elem_type() {
|
|
|
|
elem_type_ = 0;
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::TensorProto_DataType TypeProto_Tensor::_internal_elem_type() const {
|
|
|
|
return static_cast< ::opencv_onnx::TensorProto_DataType >(elem_type_);
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline ::opencv_onnx::TensorProto_DataType TypeProto_Tensor::elem_type() const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.TypeProto.Tensor.elem_type)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_elem_type();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void TypeProto_Tensor::_internal_set_elem_type(::opencv_onnx::TensorProto_DataType value) {
|
2018-09-11 02:07:51 +08:00
|
|
|
assert(::opencv_onnx::TensorProto_DataType_IsValid(value));
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] |= 0x00000002u;
|
2018-09-11 02:07:51 +08:00
|
|
|
elem_type_ = value;
|
2021-11-10 20:03:45 +08:00
|
|
|
}
|
|
|
|
inline void TypeProto_Tensor::set_elem_type(::opencv_onnx::TensorProto_DataType value) {
|
|
|
|
_internal_set_elem_type(value);
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.TypeProto.Tensor.elem_type)
|
|
|
|
}
|
|
|
|
|
|
|
|
// optional .opencv_onnx.TensorShapeProto shape = 2;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool TypeProto_Tensor::_internal_has_shape() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
|
|
PROTOBUF_ASSUME(!value || shape_ != nullptr);
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool TypeProto_Tensor::has_shape() const {
|
|
|
|
return _internal_has_shape();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void TypeProto_Tensor::clear_shape() {
|
|
|
|
if (shape_ != nullptr) shape_->Clear();
|
2018-09-11 02:07:51 +08:00
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const ::opencv_onnx::TensorShapeProto& TypeProto_Tensor::_internal_shape() const {
|
|
|
|
const ::opencv_onnx::TensorShapeProto* p = shape_;
|
|
|
|
return p != nullptr ? *p : reinterpret_cast<const ::opencv_onnx::TensorShapeProto&>(
|
|
|
|
::opencv_onnx::_TensorShapeProto_default_instance_);
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline const ::opencv_onnx::TensorShapeProto& TypeProto_Tensor::shape() const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.TypeProto.Tensor.shape)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_shape();
|
|
|
|
}
|
|
|
|
inline void TypeProto_Tensor::unsafe_arena_set_allocated_shape(
|
|
|
|
::opencv_onnx::TensorShapeProto* shape) {
|
|
|
|
if (GetArenaForAllocation() == nullptr) {
|
|
|
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(shape_);
|
|
|
|
}
|
|
|
|
shape_ = shape;
|
|
|
|
if (shape) {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
|
|
|
} else {
|
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
|
|
}
|
|
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_onnx.TypeProto.Tensor.shape)
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline ::opencv_onnx::TensorShapeProto* TypeProto_Tensor::release_shape() {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
|
|
::opencv_onnx::TensorShapeProto* temp = shape_;
|
|
|
|
shape_ = nullptr;
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
|
|
|
|
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
|
|
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
|
|
if (GetArenaForAllocation() == nullptr) { delete old; }
|
|
|
|
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
|
|
|
|
if (GetArenaForAllocation() != nullptr) {
|
|
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
|
|
}
|
|
|
|
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
|
|
|
|
return temp;
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::TensorShapeProto* TypeProto_Tensor::unsafe_arena_release_shape() {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_release:opencv_onnx.TypeProto.Tensor.shape)
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
2018-09-11 02:07:51 +08:00
|
|
|
::opencv_onnx::TensorShapeProto* temp = shape_;
|
2021-11-10 20:03:45 +08:00
|
|
|
shape_ = nullptr;
|
2018-09-11 02:07:51 +08:00
|
|
|
return temp;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::opencv_onnx::TensorShapeProto* TypeProto_Tensor::_internal_mutable_shape() {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
|
|
|
if (shape_ == nullptr) {
|
|
|
|
auto* p = CreateMaybeMessage<::opencv_onnx::TensorShapeProto>(GetArenaForAllocation());
|
|
|
|
shape_ = p;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
return shape_;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::opencv_onnx::TensorShapeProto* TypeProto_Tensor::mutable_shape() {
|
|
|
|
::opencv_onnx::TensorShapeProto* _msg = _internal_mutable_shape();
|
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.TypeProto.Tensor.shape)
|
|
|
|
return _msg;
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline void TypeProto_Tensor::set_allocated_shape(::opencv_onnx::TensorShapeProto* shape) {
|
2021-11-10 20:03:45 +08:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
|
|
|
if (message_arena == nullptr) {
|
2018-09-11 02:07:51 +08:00
|
|
|
delete shape_;
|
|
|
|
}
|
|
|
|
if (shape) {
|
2021-11-10 20:03:45 +08:00
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::opencv_onnx::TensorShapeProto>::GetOwningArena(shape);
|
2018-09-11 02:07:51 +08:00
|
|
|
if (message_arena != submessage_arena) {
|
2021-11-10 20:03:45 +08:00
|
|
|
shape = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
2018-09-11 02:07:51 +08:00
|
|
|
message_arena, shape, submessage_arena);
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] |= 0x00000001u;
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
shape_ = shape;
|
|
|
|
// @@protoc_insertion_point(field_set_allocated:opencv_onnx.TypeProto.Tensor.shape)
|
|
|
|
}
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
|
|
// TypeProto
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
// .opencv_onnx.TypeProto.Tensor tensor_type = 1;
|
|
|
|
inline bool TypeProto::_internal_has_tensor_type() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
return value_case() == kTensorType;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool TypeProto::has_tensor_type() const {
|
|
|
|
return _internal_has_tensor_type();
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline void TypeProto::set_has_tensor_type() {
|
|
|
|
_oneof_case_[0] = kTensorType;
|
|
|
|
}
|
|
|
|
inline void TypeProto::clear_tensor_type() {
|
2021-11-10 20:03:45 +08:00
|
|
|
if (_internal_has_tensor_type()) {
|
|
|
|
if (GetArenaForAllocation() == nullptr) {
|
|
|
|
delete value_.tensor_type_;
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
clear_has_value();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::TypeProto_Tensor* TypeProto::release_tensor_type() {
|
|
|
|
// @@protoc_insertion_point(field_release:opencv_onnx.TypeProto.tensor_type)
|
2021-11-10 20:03:45 +08:00
|
|
|
if (_internal_has_tensor_type()) {
|
2018-09-11 02:07:51 +08:00
|
|
|
clear_has_value();
|
|
|
|
::opencv_onnx::TypeProto_Tensor* temp = value_.tensor_type_;
|
2021-11-10 20:03:45 +08:00
|
|
|
if (GetArenaForAllocation() != nullptr) {
|
|
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
|
|
}
|
|
|
|
value_.tensor_type_ = nullptr;
|
2018-09-11 02:07:51 +08:00
|
|
|
return temp;
|
|
|
|
} else {
|
2021-11-10 20:03:45 +08:00
|
|
|
return nullptr;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const ::opencv_onnx::TypeProto_Tensor& TypeProto::_internal_tensor_type() const {
|
|
|
|
return _internal_has_tensor_type()
|
|
|
|
? *value_.tensor_type_
|
|
|
|
: reinterpret_cast< ::opencv_onnx::TypeProto_Tensor&>(::opencv_onnx::_TypeProto_Tensor_default_instance_);
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
inline const ::opencv_onnx::TypeProto_Tensor& TypeProto::tensor_type() const {
|
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.TypeProto.tensor_type)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_tensor_type();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::opencv_onnx::TypeProto_Tensor* TypeProto::unsafe_arena_release_tensor_type() {
|
|
|
|
// @@protoc_insertion_point(field_unsafe_arena_release:opencv_onnx.TypeProto.tensor_type)
|
|
|
|
if (_internal_has_tensor_type()) {
|
|
|
|
clear_has_value();
|
|
|
|
::opencv_onnx::TypeProto_Tensor* temp = value_.tensor_type_;
|
|
|
|
value_.tensor_type_ = nullptr;
|
|
|
|
return temp;
|
|
|
|
} else {
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
inline void TypeProto::unsafe_arena_set_allocated_tensor_type(::opencv_onnx::TypeProto_Tensor* tensor_type) {
|
|
|
|
clear_value();
|
|
|
|
if (tensor_type) {
|
|
|
|
set_has_tensor_type();
|
|
|
|
value_.tensor_type_ = tensor_type;
|
|
|
|
}
|
|
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:opencv_onnx.TypeProto.tensor_type)
|
|
|
|
}
|
|
|
|
inline ::opencv_onnx::TypeProto_Tensor* TypeProto::_internal_mutable_tensor_type() {
|
|
|
|
if (!_internal_has_tensor_type()) {
|
2018-09-11 02:07:51 +08:00
|
|
|
clear_value();
|
|
|
|
set_has_tensor_type();
|
2021-11-10 20:03:45 +08:00
|
|
|
value_.tensor_type_ = CreateMaybeMessage< ::opencv_onnx::TypeProto_Tensor >(GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
return value_.tensor_type_;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline ::opencv_onnx::TypeProto_Tensor* TypeProto::mutable_tensor_type() {
|
|
|
|
::opencv_onnx::TypeProto_Tensor* _msg = _internal_mutable_tensor_type();
|
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.TypeProto.tensor_type)
|
|
|
|
return _msg;
|
|
|
|
}
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// optional string denotation = 6;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool TypeProto::_internal_has_denotation() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool TypeProto::has_denotation() const {
|
|
|
|
return _internal_has_denotation();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void TypeProto::clear_denotation() {
|
2021-11-10 20:03:45 +08:00
|
|
|
denotation_.ClearToEmpty();
|
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& TypeProto::denotation() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.TypeProto.denotation)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_denotation();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
template <typename ArgT0, typename... ArgT>
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
|
|
void TypeProto::set_denotation(ArgT0&& arg0, ArgT... args) {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
|
|
|
denotation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.TypeProto.denotation)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* TypeProto::mutable_denotation() {
|
|
|
|
std::string* _s = _internal_mutable_denotation();
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.TypeProto.denotation)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _s;
|
|
|
|
}
|
|
|
|
inline const std::string& TypeProto::_internal_denotation() const {
|
|
|
|
return denotation_.Get();
|
|
|
|
}
|
|
|
|
inline void TypeProto::_internal_set_denotation(const std::string& value) {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
|
|
|
denotation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* TypeProto::_internal_mutable_denotation() {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
|
|
|
return denotation_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
inline std::string* TypeProto::release_denotation() {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_release:opencv_onnx.TypeProto.denotation)
|
2021-11-10 20:03:45 +08:00
|
|
|
if (!_internal_has_denotation()) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
|
|
auto* p = denotation_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (denotation_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
denotation_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
return p;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void TypeProto::set_allocated_denotation(std::string* denotation) {
|
|
|
|
if (denotation != nullptr) {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
|
|
}
|
|
|
|
denotation_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), denotation,
|
|
|
|
GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (denotation_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
denotation_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set_allocated:opencv_onnx.TypeProto.denotation)
|
|
|
|
}
|
|
|
|
|
|
|
|
inline bool TypeProto::has_value() const {
|
|
|
|
return value_case() != VALUE_NOT_SET;
|
|
|
|
}
|
|
|
|
inline void TypeProto::clear_has_value() {
|
|
|
|
_oneof_case_[0] = VALUE_NOT_SET;
|
|
|
|
}
|
|
|
|
inline TypeProto::ValueCase TypeProto::value_case() const {
|
|
|
|
return TypeProto::ValueCase(_oneof_case_[0]);
|
|
|
|
}
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
|
|
// OperatorSetIdProto
|
|
|
|
|
|
|
|
// optional string domain = 1;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool OperatorSetIdProto::_internal_has_domain() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool OperatorSetIdProto::has_domain() const {
|
|
|
|
return _internal_has_domain();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
|
|
|
inline void OperatorSetIdProto::clear_domain() {
|
2021-11-10 20:03:45 +08:00
|
|
|
domain_.ClearToEmpty();
|
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline const std::string& OperatorSetIdProto::domain() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.OperatorSetIdProto.domain)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_domain();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
template <typename ArgT0, typename... ArgT>
|
|
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
|
|
void OperatorSetIdProto::set_domain(ArgT0&& arg0, ArgT... args) {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
|
|
|
domain_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.OperatorSetIdProto.domain)
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* OperatorSetIdProto::mutable_domain() {
|
|
|
|
std::string* _s = _internal_mutable_domain();
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_mutable:opencv_onnx.OperatorSetIdProto.domain)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _s;
|
|
|
|
}
|
|
|
|
inline const std::string& OperatorSetIdProto::_internal_domain() const {
|
|
|
|
return domain_.Get();
|
|
|
|
}
|
|
|
|
inline void OperatorSetIdProto::_internal_set_domain(const std::string& value) {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
|
|
|
domain_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
inline std::string* OperatorSetIdProto::_internal_mutable_domain() {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
|
|
|
return domain_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline std::string* OperatorSetIdProto::release_domain() {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_release:opencv_onnx.OperatorSetIdProto.domain)
|
2021-11-10 20:03:45 +08:00
|
|
|
if (!_internal_has_domain()) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
|
|
auto* p = domain_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (domain_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
domain_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
return p;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void OperatorSetIdProto::set_allocated_domain(std::string* domain) {
|
|
|
|
if (domain != nullptr) {
|
|
|
|
_has_bits_[0] |= 0x00000001u;
|
2018-09-11 02:07:51 +08:00
|
|
|
} else {
|
2021-11-10 20:03:45 +08:00
|
|
|
_has_bits_[0] &= ~0x00000001u;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
domain_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), domain,
|
|
|
|
GetArenaForAllocation());
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
if (domain_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
|
|
|
domain_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
|
|
|
}
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set_allocated:opencv_onnx.OperatorSetIdProto.domain)
|
|
|
|
}
|
|
|
|
|
|
|
|
// optional int64 version = 2;
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool OperatorSetIdProto::_internal_has_version() const {
|
|
|
|
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
|
|
|
return value;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline bool OperatorSetIdProto::has_version() const {
|
|
|
|
return _internal_has_version();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void OperatorSetIdProto::clear_version() {
|
|
|
|
version_ = int64_t{0};
|
2018-09-11 02:07:51 +08:00
|
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int64_t OperatorSetIdProto::_internal_version() const {
|
|
|
|
return version_;
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline int64_t OperatorSetIdProto::version() const {
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_get:opencv_onnx.OperatorSetIdProto.version)
|
2021-11-10 20:03:45 +08:00
|
|
|
return _internal_version();
|
2018-09-11 02:07:51 +08:00
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
inline void OperatorSetIdProto::_internal_set_version(int64_t value) {
|
|
|
|
_has_bits_[0] |= 0x00000002u;
|
2018-09-11 02:07:51 +08:00
|
|
|
version_ = value;
|
2021-11-10 20:03:45 +08:00
|
|
|
}
|
|
|
|
inline void OperatorSetIdProto::set_version(int64_t value) {
|
|
|
|
_internal_set_version(value);
|
2018-09-11 02:07:51 +08:00
|
|
|
// @@protoc_insertion_point(field_set:opencv_onnx.OperatorSetIdProto.version)
|
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef __GNUC__
|
|
|
|
#pragma GCC diagnostic pop
|
|
|
|
#endif // __GNUC__
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
|
|
|
|
|
|
} // namespace opencv_onnx
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
PROTOBUF_NAMESPACE_OPEN
|
2018-09-11 02:07:51 +08:00
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
template <> struct is_proto_enum< ::opencv_onnx::AttributeProto_AttributeType> : ::std::true_type {};
|
2018-09-11 02:07:51 +08:00
|
|
|
template <>
|
|
|
|
inline const EnumDescriptor* GetEnumDescriptor< ::opencv_onnx::AttributeProto_AttributeType>() {
|
|
|
|
return ::opencv_onnx::AttributeProto_AttributeType_descriptor();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
template <> struct is_proto_enum< ::opencv_onnx::TensorProto_DataType> : ::std::true_type {};
|
2018-09-11 02:07:51 +08:00
|
|
|
template <>
|
|
|
|
inline const EnumDescriptor* GetEnumDescriptor< ::opencv_onnx::TensorProto_DataType>() {
|
|
|
|
return ::opencv_onnx::TensorProto_DataType_descriptor();
|
|
|
|
}
|
2021-11-10 20:03:45 +08:00
|
|
|
template <> struct is_proto_enum< ::opencv_onnx::Version> : ::std::true_type {};
|
2018-09-11 02:07:51 +08:00
|
|
|
template <>
|
|
|
|
inline const EnumDescriptor* GetEnumDescriptor< ::opencv_onnx::Version>() {
|
|
|
|
return ::opencv_onnx::Version_descriptor();
|
|
|
|
}
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
PROTOBUF_NAMESPACE_CLOSE
|
2018-09-11 02:07:51 +08:00
|
|
|
|
|
|
|
// @@protoc_insertion_point(global_scope)
|
|
|
|
|
2021-11-10 20:03:45 +08:00
|
|
|
#include <google/protobuf/port_undef.inc>
|
|
|
|
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_opencv_2donnx_2eproto
|