// Generated by the protocol buffer compiler. DO NOT EDIT! // source: common.proto #ifndef GOOGLE_PROTOBUF_INCLUDED_common_2eproto #define GOOGLE_PROTOBUF_INCLUDED_common_2eproto #include #include #include #if PROTOBUF_VERSION < 3009000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif #if 3009000 < PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif #include #include #include #include #include #include #include #include #include #include #include // IWYU pragma: export #include // IWYU pragma: export #include #include // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_common_2eproto PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_common_2eproto { static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[5] 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 ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; }; extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_common_2eproto; namespace milvus { namespace proto { namespace common { class Address; class AddressDefaultTypeInternal; extern AddressDefaultTypeInternal _Address_default_instance_; class Blob; class BlobDefaultTypeInternal; extern BlobDefaultTypeInternal _Blob_default_instance_; class Empty; class EmptyDefaultTypeInternal; extern EmptyDefaultTypeInternal _Empty_default_instance_; class KeyValuePair; class KeyValuePairDefaultTypeInternal; extern KeyValuePairDefaultTypeInternal _KeyValuePair_default_instance_; class Status; class StatusDefaultTypeInternal; extern StatusDefaultTypeInternal _Status_default_instance_; } // namespace common } // namespace proto } // namespace milvus PROTOBUF_NAMESPACE_OPEN template<> ::milvus::proto::common::Address* Arena::CreateMaybeMessage<::milvus::proto::common::Address>(Arena*); template<> ::milvus::proto::common::Blob* Arena::CreateMaybeMessage<::milvus::proto::common::Blob>(Arena*); template<> ::milvus::proto::common::Empty* Arena::CreateMaybeMessage<::milvus::proto::common::Empty>(Arena*); template<> ::milvus::proto::common::KeyValuePair* Arena::CreateMaybeMessage<::milvus::proto::common::KeyValuePair>(Arena*); template<> ::milvus::proto::common::Status* Arena::CreateMaybeMessage<::milvus::proto::common::Status>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace milvus { namespace proto { namespace common { enum ErrorCode : int { SUCCESS = 0, UNEXPECTED_ERROR = 1, CONNECT_FAILED = 2, PERMISSION_DENIED = 3, COLLECTION_NOT_EXISTS = 4, ILLEGAL_ARGUMENT = 5, ILLEGAL_DIMENSION = 7, ILLEGAL_INDEX_TYPE = 8, ILLEGAL_COLLECTION_NAME = 9, ILLEGAL_TOPK = 10, ILLEGAL_ROWRECORD = 11, ILLEGAL_VECTOR_ID = 12, ILLEGAL_SEARCH_RESULT = 13, FILE_NOT_FOUND = 14, META_FAILED = 15, CACHE_FAILED = 16, CANNOT_CREATE_FOLDER = 17, CANNOT_CREATE_FILE = 18, CANNOT_DELETE_FOLDER = 19, CANNOT_DELETE_FILE = 20, BUILD_INDEX_ERROR = 21, ILLEGAL_NLIST = 22, ILLEGAL_METRIC_TYPE = 23, OUT_OF_MEMORY = 24, ErrorCode_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), ErrorCode_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() }; bool ErrorCode_IsValid(int value); constexpr ErrorCode ErrorCode_MIN = SUCCESS; constexpr ErrorCode ErrorCode_MAX = OUT_OF_MEMORY; constexpr int ErrorCode_ARRAYSIZE = ErrorCode_MAX + 1; const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ErrorCode_descriptor(); template inline const std::string& ErrorCode_Name(T enum_t_value) { static_assert(::std::is_same::value || ::std::is_integral::value, "Incorrect type passed to function ErrorCode_Name."); return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( ErrorCode_descriptor(), enum_t_value); } inline bool ErrorCode_Parse( const std::string& name, ErrorCode* value) { return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( ErrorCode_descriptor(), name, value); } // =================================================================== class Empty : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.common.Empty) */ { public: Empty(); virtual ~Empty(); Empty(const Empty& from); Empty(Empty&& from) noexcept : Empty() { *this = ::std::move(from); } inline Empty& operator=(const Empty& from) { CopyFrom(from); return *this; } inline Empty& operator=(Empty&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } static const Empty& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Empty* internal_default_instance() { return reinterpret_cast( &_Empty_default_instance_); } static constexpr int kIndexInFileMessages = 0; friend void swap(Empty& a, Empty& b) { a.Swap(&b); } inline void Swap(Empty* other) { if (other == this) return; InternalSwap(other); } // implements Message ---------------------------------------------- inline Empty* New() const final { return CreateMaybeMessage(nullptr); } Empty* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const Empty& from); void MergeFrom(const Empty& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; #else bool MergePartialFromCodedStream( ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Empty* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "milvus.proto.common.Empty"; } private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { return nullptr; } public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_common_2eproto); return ::descriptor_table_common_2eproto.file_level_metadata[kIndexInFileMessages]; } public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // @@protoc_insertion_point(class_scope:milvus.proto.common.Empty) private: class _Internal; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_common_2eproto; }; // ------------------------------------------------------------------- class Status : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.common.Status) */ { public: Status(); virtual ~Status(); Status(const Status& from); Status(Status&& from) noexcept : Status() { *this = ::std::move(from); } inline Status& operator=(const Status& from) { CopyFrom(from); return *this; } inline Status& operator=(Status&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } static const Status& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Status* internal_default_instance() { return reinterpret_cast( &_Status_default_instance_); } static constexpr int kIndexInFileMessages = 1; friend void swap(Status& a, Status& b) { a.Swap(&b); } inline void Swap(Status* other) { if (other == this) return; InternalSwap(other); } // implements Message ---------------------------------------------- inline Status* New() const final { return CreateMaybeMessage(nullptr); } Status* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const Status& from); void MergeFrom(const Status& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; #else bool MergePartialFromCodedStream( ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Status* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "milvus.proto.common.Status"; } private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { return nullptr; } public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_common_2eproto); return ::descriptor_table_common_2eproto.file_level_metadata[kIndexInFileMessages]; } public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kReasonFieldNumber = 2, kErrorCodeFieldNumber = 1, }; // string reason = 2; void clear_reason(); const std::string& reason() const; void set_reason(const std::string& value); void set_reason(std::string&& value); void set_reason(const char* value); void set_reason(const char* value, size_t size); std::string* mutable_reason(); std::string* release_reason(); void set_allocated_reason(std::string* reason); // .milvus.proto.common.ErrorCode error_code = 1; void clear_error_code(); ::milvus::proto::common::ErrorCode error_code() const; void set_error_code(::milvus::proto::common::ErrorCode value); // @@protoc_insertion_point(class_scope:milvus.proto.common.Status) private: class _Internal; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reason_; int error_code_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_common_2eproto; }; // ------------------------------------------------------------------- class KeyValuePair : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.common.KeyValuePair) */ { public: KeyValuePair(); virtual ~KeyValuePair(); KeyValuePair(const KeyValuePair& from); KeyValuePair(KeyValuePair&& from) noexcept : KeyValuePair() { *this = ::std::move(from); } inline KeyValuePair& operator=(const KeyValuePair& from) { CopyFrom(from); return *this; } inline KeyValuePair& operator=(KeyValuePair&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } static const KeyValuePair& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const KeyValuePair* internal_default_instance() { return reinterpret_cast( &_KeyValuePair_default_instance_); } static constexpr int kIndexInFileMessages = 2; friend void swap(KeyValuePair& a, KeyValuePair& b) { a.Swap(&b); } inline void Swap(KeyValuePair* other) { if (other == this) return; InternalSwap(other); } // implements Message ---------------------------------------------- inline KeyValuePair* New() const final { return CreateMaybeMessage(nullptr); } KeyValuePair* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const KeyValuePair& from); void MergeFrom(const KeyValuePair& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; #else bool MergePartialFromCodedStream( ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(KeyValuePair* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "milvus.proto.common.KeyValuePair"; } private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { return nullptr; } public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_common_2eproto); return ::descriptor_table_common_2eproto.file_level_metadata[kIndexInFileMessages]; } public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kKeyFieldNumber = 1, kValueFieldNumber = 2, }; // string key = 1; void clear_key(); const std::string& key() const; void set_key(const std::string& value); void set_key(std::string&& value); void set_key(const char* value); void set_key(const char* value, size_t size); std::string* mutable_key(); std::string* release_key(); void set_allocated_key(std::string* key); // string value = 2; void clear_value(); const std::string& value() const; void set_value(const std::string& value); void set_value(std::string&& value); void set_value(const char* value); void set_value(const char* value, size_t size); std::string* mutable_value(); std::string* release_value(); void set_allocated_value(std::string* value); // @@protoc_insertion_point(class_scope:milvus.proto.common.KeyValuePair) private: class _Internal; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_common_2eproto; }; // ------------------------------------------------------------------- class Blob : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.common.Blob) */ { public: Blob(); virtual ~Blob(); Blob(const Blob& from); Blob(Blob&& from) noexcept : Blob() { *this = ::std::move(from); } inline Blob& operator=(const Blob& from) { CopyFrom(from); return *this; } inline Blob& operator=(Blob&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } static const Blob& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Blob* internal_default_instance() { return reinterpret_cast( &_Blob_default_instance_); } static constexpr int kIndexInFileMessages = 3; friend void swap(Blob& a, Blob& b) { a.Swap(&b); } inline void Swap(Blob* other) { if (other == this) return; InternalSwap(other); } // implements Message ---------------------------------------------- inline Blob* New() const final { return CreateMaybeMessage(nullptr); } Blob* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const Blob& from); void MergeFrom(const Blob& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; #else bool MergePartialFromCodedStream( ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Blob* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "milvus.proto.common.Blob"; } private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { return nullptr; } public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_common_2eproto); return ::descriptor_table_common_2eproto.file_level_metadata[kIndexInFileMessages]; } public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kValueFieldNumber = 1, }; // bytes value = 1; void clear_value(); const std::string& value() const; void set_value(const std::string& value); void set_value(std::string&& value); void set_value(const char* value); void set_value(const void* value, size_t size); std::string* mutable_value(); std::string* release_value(); void set_allocated_value(std::string* value); // @@protoc_insertion_point(class_scope:milvus.proto.common.Blob) private: class _Internal; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_common_2eproto; }; // ------------------------------------------------------------------- class Address : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.common.Address) */ { public: Address(); virtual ~Address(); Address(const Address& from); Address(Address&& from) noexcept : Address() { *this = ::std::move(from); } inline Address& operator=(const Address& from) { CopyFrom(from); return *this; } inline Address& operator=(Address&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } static const Address& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Address* internal_default_instance() { return reinterpret_cast( &_Address_default_instance_); } static constexpr int kIndexInFileMessages = 4; friend void swap(Address& a, Address& b) { a.Swap(&b); } inline void Swap(Address* other) { if (other == this) return; InternalSwap(other); } // implements Message ---------------------------------------------- inline Address* New() const final { return CreateMaybeMessage
(nullptr); } Address* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage
(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const Address& from); void MergeFrom(const Address& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; #else bool MergePartialFromCodedStream( ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Address* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "milvus.proto.common.Address"; } private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { return nullptr; } public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; private: static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_common_2eproto); return ::descriptor_table_common_2eproto.file_level_metadata[kIndexInFileMessages]; } public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kIpFieldNumber = 1, kPortFieldNumber = 2, }; // string ip = 1; void clear_ip(); const std::string& ip() const; void set_ip(const std::string& value); void set_ip(std::string&& value); void set_ip(const char* value); void set_ip(const char* value, size_t size); std::string* mutable_ip(); std::string* release_ip(); void set_allocated_ip(std::string* ip); // int64 port = 2; void clear_port(); ::PROTOBUF_NAMESPACE_ID::int64 port() const; void set_port(::PROTOBUF_NAMESPACE_ID::int64 value); // @@protoc_insertion_point(class_scope:milvus.proto.common.Address) private: class _Internal; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ip_; ::PROTOBUF_NAMESPACE_ID::int64 port_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_common_2eproto; }; // =================================================================== // =================================================================== #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // Empty // ------------------------------------------------------------------- // Status // .milvus.proto.common.ErrorCode error_code = 1; inline void Status::clear_error_code() { error_code_ = 0; } inline ::milvus::proto::common::ErrorCode Status::error_code() const { // @@protoc_insertion_point(field_get:milvus.proto.common.Status.error_code) return static_cast< ::milvus::proto::common::ErrorCode >(error_code_); } inline void Status::set_error_code(::milvus::proto::common::ErrorCode value) { error_code_ = value; // @@protoc_insertion_point(field_set:milvus.proto.common.Status.error_code) } // string reason = 2; inline void Status::clear_reason() { reason_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline const std::string& Status::reason() const { // @@protoc_insertion_point(field_get:milvus.proto.common.Status.reason) return reason_.GetNoArena(); } inline void Status::set_reason(const std::string& value) { reason_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.proto.common.Status.reason) } inline void Status::set_reason(std::string&& value) { reason_.SetNoArena( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:milvus.proto.common.Status.reason) } inline void Status::set_reason(const char* value) { GOOGLE_DCHECK(value != nullptr); reason_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.proto.common.Status.reason) } inline void Status::set_reason(const char* value, size_t size) { reason_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.proto.common.Status.reason) } inline std::string* Status::mutable_reason() { // @@protoc_insertion_point(field_mutable:milvus.proto.common.Status.reason) return reason_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline std::string* Status::release_reason() { // @@protoc_insertion_point(field_release:milvus.proto.common.Status.reason) return reason_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline void Status::set_allocated_reason(std::string* reason) { if (reason != nullptr) { } else { } reason_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), reason); // @@protoc_insertion_point(field_set_allocated:milvus.proto.common.Status.reason) } // ------------------------------------------------------------------- // KeyValuePair // string key = 1; inline void KeyValuePair::clear_key() { key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline const std::string& KeyValuePair::key() const { // @@protoc_insertion_point(field_get:milvus.proto.common.KeyValuePair.key) return key_.GetNoArena(); } inline void KeyValuePair::set_key(const std::string& value) { key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.proto.common.KeyValuePair.key) } inline void KeyValuePair::set_key(std::string&& value) { key_.SetNoArena( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:milvus.proto.common.KeyValuePair.key) } inline void KeyValuePair::set_key(const char* value) { GOOGLE_DCHECK(value != nullptr); key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.proto.common.KeyValuePair.key) } inline void KeyValuePair::set_key(const char* value, size_t size) { key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.proto.common.KeyValuePair.key) } inline std::string* KeyValuePair::mutable_key() { // @@protoc_insertion_point(field_mutable:milvus.proto.common.KeyValuePair.key) return key_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline std::string* KeyValuePair::release_key() { // @@protoc_insertion_point(field_release:milvus.proto.common.KeyValuePair.key) return key_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline void KeyValuePair::set_allocated_key(std::string* key) { if (key != nullptr) { } else { } key_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), key); // @@protoc_insertion_point(field_set_allocated:milvus.proto.common.KeyValuePair.key) } // string value = 2; inline void KeyValuePair::clear_value() { value_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline const std::string& KeyValuePair::value() const { // @@protoc_insertion_point(field_get:milvus.proto.common.KeyValuePair.value) return value_.GetNoArena(); } inline void KeyValuePair::set_value(const std::string& value) { value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.proto.common.KeyValuePair.value) } inline void KeyValuePair::set_value(std::string&& value) { value_.SetNoArena( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:milvus.proto.common.KeyValuePair.value) } inline void KeyValuePair::set_value(const char* value) { GOOGLE_DCHECK(value != nullptr); value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.proto.common.KeyValuePair.value) } inline void KeyValuePair::set_value(const char* value, size_t size) { value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.proto.common.KeyValuePair.value) } inline std::string* KeyValuePair::mutable_value() { // @@protoc_insertion_point(field_mutable:milvus.proto.common.KeyValuePair.value) return value_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline std::string* KeyValuePair::release_value() { // @@protoc_insertion_point(field_release:milvus.proto.common.KeyValuePair.value) return value_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline void KeyValuePair::set_allocated_value(std::string* value) { if (value != nullptr) { } else { } value_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set_allocated:milvus.proto.common.KeyValuePair.value) } // ------------------------------------------------------------------- // Blob // bytes value = 1; inline void Blob::clear_value() { value_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline const std::string& Blob::value() const { // @@protoc_insertion_point(field_get:milvus.proto.common.Blob.value) return value_.GetNoArena(); } inline void Blob::set_value(const std::string& value) { value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.proto.common.Blob.value) } inline void Blob::set_value(std::string&& value) { value_.SetNoArena( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:milvus.proto.common.Blob.value) } inline void Blob::set_value(const char* value) { GOOGLE_DCHECK(value != nullptr); value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.proto.common.Blob.value) } inline void Blob::set_value(const void* value, size_t size) { value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.proto.common.Blob.value) } inline std::string* Blob::mutable_value() { // @@protoc_insertion_point(field_mutable:milvus.proto.common.Blob.value) return value_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline std::string* Blob::release_value() { // @@protoc_insertion_point(field_release:milvus.proto.common.Blob.value) return value_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline void Blob::set_allocated_value(std::string* value) { if (value != nullptr) { } else { } value_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set_allocated:milvus.proto.common.Blob.value) } // ------------------------------------------------------------------- // Address // string ip = 1; inline void Address::clear_ip() { ip_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline const std::string& Address::ip() const { // @@protoc_insertion_point(field_get:milvus.proto.common.Address.ip) return ip_.GetNoArena(); } inline void Address::set_ip(const std::string& value) { ip_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.proto.common.Address.ip) } inline void Address::set_ip(std::string&& value) { ip_.SetNoArena( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:milvus.proto.common.Address.ip) } inline void Address::set_ip(const char* value) { GOOGLE_DCHECK(value != nullptr); ip_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.proto.common.Address.ip) } inline void Address::set_ip(const char* value, size_t size) { ip_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.proto.common.Address.ip) } inline std::string* Address::mutable_ip() { // @@protoc_insertion_point(field_mutable:milvus.proto.common.Address.ip) return ip_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline std::string* Address::release_ip() { // @@protoc_insertion_point(field_release:milvus.proto.common.Address.ip) return ip_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } inline void Address::set_allocated_ip(std::string* ip) { if (ip != nullptr) { } else { } ip_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ip); // @@protoc_insertion_point(field_set_allocated:milvus.proto.common.Address.ip) } // int64 port = 2; inline void Address::clear_port() { port_ = PROTOBUF_LONGLONG(0); } inline ::PROTOBUF_NAMESPACE_ID::int64 Address::port() const { // @@protoc_insertion_point(field_get:milvus.proto.common.Address.port) return port_; } inline void Address::set_port(::PROTOBUF_NAMESPACE_ID::int64 value) { port_ = value; // @@protoc_insertion_point(field_set:milvus.proto.common.Address.port) } #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // @@protoc_insertion_point(namespace_scope) } // namespace common } // namespace proto } // namespace milvus PROTOBUF_NAMESPACE_OPEN template <> struct is_proto_enum< ::milvus::proto::common::ErrorCode> : ::std::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::milvus::proto::common::ErrorCode>() { return ::milvus::proto::common::ErrorCode_descriptor(); } PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) #include #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_common_2eproto